/* reset */
:root {
  --background-color: #ffffff;
  --color-primary: #1c344e;
  --color-secondary: #5d9ad6;
  --light-color: #f4f4f4;
  --dark-color: #333;
  --max-width: 1300px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Gotham SSm", -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, sans-serif;

  line-height: 1.5;
  font-size: 16px;
  background: var(--background-color);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
ul {
  list-style: none;
}
p {
  margin: 0.5rem 0;
  line-height: 1.7;
}
img {
  width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.55rem;
  line-height: 1.3;
  color: var(--color-primary);
}
i {
  color: var(--color-secondary);
  margin-bottom: 10px;
}
/* utility */
.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem 2rem;
  overflow: hidden;
}
.card {
  padding: 20px;
  border: 1px solid #ddd;
  text-align: center;
  border-radius: 5px;
  transition: all 0.4s ease-in-out;
}
.card *:first-child {
  margin: auto;
  padding: 10px;
}
.card-img {
  width: 200px;
  border-radius: 5px;
}
.card:hover {
  box-shadow: 2px 25px 20px #f4f4f4, -2px -0px 20px #f4f4f4;
  transform: translateY(-5px);
}
.header-content {
  text-align: center;
  padding: 20px;
  width: 70%;
  margin: auto;
  line-height: 1.7;
  position: relative;
}
.articles-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.article-grid .card {
  display: grid;
  border: none;
  grid-template-columns: repeat(2, 1fr);
  grid-column: 1 / span 2;
  text-align: start;
  gap: 1rem;
}
.btn {
  cursor: pointer;
  display: inline-block;
  border: 1px solid #fff;
  color: var(--light-color);
  background: var(--color-primary);
  padding: 0.5rem 1.5rem;
  /* transition: all 0.4s ease-in-out; */
}
.list a:hover {
  color: #5d9ad6 !important;
}

.text-primary {
  color: #5d9ad6;
}

.py-2 {
  padding: 20px 0;
}
.py-3 {
  padding: 30px 0;
}
.f-width {
  width: 100%;
}

.l-heading {
  font-size: 4rem;
  font-weight: 500;
}
.hidden {
  display: none;
}
.l-text {
  font-size: 20px;
}
.justify-text {
  text-align: justify;
}

.i {
  display: flex;
  width: 100%;
  height: 100px;
  align-items: center;
  justify-content: center;
}

.i svg {
  height: 100px;
  width: 100px;
}

/* body scroll bar */

body::-webkit-scrollbar {
  width: 0.7rem;
}
body::-webkit-scrollbar-track {
  background: var(--light-color);
  border-radius: 2px;
}

body::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 5px;
}

/* navigation */
#main-nav.top {
  background: transparent;
  color: #fff;
}
#main-nav {
  position: fixed !important;
  height: 80px;
  width: 100%;
  top: 0;
  z-index: 11;
  background: #f4f4f4;
  opacity: 0.9;
  transition: 0.5s;
}

#main-nav .container {
  display: grid;
  grid-template-columns: 4fr 9fr 2fr;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
}

#main-nav .logo {
  width: 80px;
}
#main-nav .nav-list {
  display: flex;
}

#main-nav .nav-list a {
  padding: 0.75rem;
  margin: 0 5px;
}
#main-nav .container #main-menu li a:hover,
#main-nav .container #main-menu li .current {
  border-bottom: 1px solid var(--color-primary);
}

#main-nav #main-menu {
  justify-self: flex-end;
  padding-right: 1rem;
}
#main-nav .social {
  display: flex;
}
#main-nav .social i {
  padding-right: 15px;
  color: var(--color-primary);
}
/* Style for dropdown */

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  /* color: black; */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  text-decoration: none !important;
}

.dropdown-content a:hover {
  border-bottom: none !important;
  background-color: #ddd;
  margin: 0 !important;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #f4f4f4;
}

/* svg */
.articles-content .card .svg {
  width: 16px;
  height: 16px;
}
/* header */
.hero {
  background: url("../src/img/showcase-bg-img.jpg") no-repeat center 1px / cover;
  height: 100vh;
  color: #fff;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(253, 253, 253, 0.1);
}

.hero * {
  z-index: 10;
}
/* showcase */

#showcase {
  color: var(--color-primary);
  padding: 2rem;
}

#showcase .showcase-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  justify-content: center;
  align-items: center;
  height: 70vh;
}

#showcase .showcase-content p {
  margin-bottom: 1rem;
}

/* main */
#main .main-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#main .video {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#main .header-content {
  color: #fff;
  width: 60%;
  padding: 20px;
  margin-top: 3rem;
}
#main .header-content::before {
  background: #444;
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  opacity: 0.4;
  width: 100%;
  height: 100%;
}
#main .header-content p,
#main .header-content h1 {
  position: relative;
  z-index: 1;
}
/* home-articles */
#articles {
  overflow: hidden;
}

/* Team */

#team .articles-content {
  grid-template-columns: repeat(4, 1fr);
}
#team .articles-content .card,
#team .articles-content .card:hover {
  padding: 0;
  border: none;
  background: none;
  border-radius: 5px;
  box-shadow: none;
  /* transform: none; */
}

#team .articles-content .card img {
  width: 100%;
  max-height: 400px;
  min-height: 218px;
  border-radius: 5px;
  object-fit: contain;
  padding: 0;
  aspect-ratio: 1/1;
}

#team .articles-content .card h3 {
  padding-top: 15px;
}

.img-team {
  max-height: 500px;
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
}
/* about  */
#about {
  height: 80vh;
}
#about .container {
  height: 100%;
}

#about .article-grid {
  height: 100%;
}
#about .article-grid .card .card-content {
  overflow-y: scroll;
}
#about .article-grid .card {
  height: 100%;
  justify-content: center;
}
#about .article-grid .about-img-container {
  height: 100%;
  overflow: hidden;
}

#about .article-grid .about-img-container img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

#about .article-grid .card div {
  height: 100%;
}
#about .article-grid .card:hover {
  box-shadow: none;
}
#about .article-grid .card div::-webkit-scrollbar {
  width: 0.6rem;
}
#about .article-grid .card div::-webkit-scrollbar-track {
  background: #f4f4f4;
  border-radius: 2px;
}

#about .article-grid .card div::-webkit-scrollbar-thumb {
  background: #5d9ad6;
  border-radius: 5px;
}
/* #about #about-articles .card p {
  text-align: justify;
}
#about #about-articles .card .btn-about {
  display: inline-block;
  padding-top: 20px;
}
#about #about-articles .card i {
  color: var(--color-primary);
}
#about #about-articles .card .btn-about:hover {
  color: var(--color-secondary);
} */

/* blog */

#blog #blog-articles .articles-content {
  grid-template-columns: repeat(2, 1fr);
}

#blog #blog-articles .articles-content .card img {
  max-height: 400px;
  object-fit: cover;
  /* object-position: center top; */
}
/* contact */

#contact .page-container {
  display: grid;
  grid-template-columns: 5fr 2fr;
  margin: 1rem;
  margin-top: 5rem;
  gap: 1.5rem;
}

#contact .page-container > *:first-child {
  grid-row: 1 / span 3;
  padding: 20px;
}
#contact .social {
  background: #f4f4f4;
  padding: 1rem;
}

.social ul {
  display: flex;
}
.social ul li {
  text-align: center;
}
.social ul a {
  padding: 5px;
  text-align: center;
}
#contact .form-container input,
textarea {
  display: block;
  padding: 23px 15px;
  margin: 15px 0;
  width: 100%;
  background-color: #f4f4f4;
  border: none;
  border-radius: 10px;
}

#contact .form-container textarea {
  height: 200px;
}
#contact .form-container button {
  padding: 15px;
}
#contact .form-container input:focus,
#contact .form-container textarea:focus {
  outline: none;
  border: var(--color-primary) 2px solid !important;
}
/* scroll btn */
.scroll__btn {
  margin-right: 20px;
  position: fixed;
  top: 90%;
  right: 00;
  z-index: 60;
  border: none;
  background: rgba(197, 196, 196, 0.7);
  color: #333;
  border-radius: 50%;
  height: 3rem;
  width: 3rem;
  font-size: 1.25rem;
  cursor: pointer;
  /* margin-top: 60px; */
}

/* footer */

#main-footer {
  background: var(--light-color);
  color: var(--color-primary);
}

#main-footer img {
  width: 80px;
}

#main-footer .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}
#main-footer .footer-container > *:last-child {
  background: var(--background-color);
  grid-column: 1 / span 4;
  padding: 8px;
  text-align: center;
  font-size: 16px;
}
#main-footer .footer-container input[type="email"] {
  width: 90%;
  padding: 8px;
  margin-bottom: 8px;
}

#main-footer .footer-container input[type="submit"] {
  width: 90%;
}
.list li {
  padding: 8px 0;
  border-bottom: var(--color-primary) dotted 1px;
}
.list li a:hover {
  color: var(--dark-color);
}
