*,
p,
body,
html {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: #222;
  background-color: #f9f9f9;
}

body {
  height: auto;
  display: flex;
  flex-direction: column;
}

.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  position: fixed;
  top: 0;
  z-index: 1000000;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: #0077cc;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;

  transition: all 0.2s;
}

.nav-links a:hover {
  color: #9d8970;
}

.hero-section {
  padding-top: 56px;
  max-width: 1920px;
  margin: 0 auto;
}

.hero-section .hero-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.about-us,
.facilities {
  max-width: 1920px;
  margin: 0 auto;
  padding: 1rem;
}

.about-us .heading {
  font-size: 2.5rem;
  font-weight: 500;
  padding-bottom: 0.5rem;
  color: #9d8970;
  margin: 1rem 0;

  &::after {
    content: "";
    display: block;
    width: 100%;
    height: 0.15rem;
    background-color: #9d8970;
    margin: 0 auto;
  }
}

.text-semibold {
  font-weight: 500;
}

.about-us .departments {
  text-align: left;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
}

.about-us .departments h2 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.about-us .departments article {
  padding-bottom: 0.5rem;
}

.about-us .philosophy {
  text-align: left;

  h2 {
    font-size: 1.1rem;
  }
}

.facilities .heading,
.contact .heading {
  font-size: 2.5rem;
  font-weight: 500;
  color: #9d8970;
  text-align: center;
  width: 100%;
  padding-bottom: 1rem;

  &::after {
    content: "";
    display: block;
    width: 100%;
    height: 0.15rem;
    background-color: #9d8970;
    margin: 0.25rem auto 0;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;

  text-align: center;
}

.hondos-logo {
  width: 100%;
  max-width: 18rem;
  object-fit: cover;
}

.carousel-item {
  max-height: 43rem;
  height: 100%;
}

.carousel-item .text {
  padding: 1rem 0;
  max-width: 800px;
}

.carousel-item .title {
  font-size: 2rem;
  font-weight: 600;
  text-align: left;
}

.carousel-image {
  display: flex !important;
  flex-direction: row;
  gap: 0.5rem;
  height: 30rem;

  img {
    flex: 1 !important;
    object-fit: cover;
    height: 30rem;
    width: 50%;
  }
}

.carousel-control-next,
.carousel-control-prev {
  top: 15%;
  width: 10%;
}

.grid {
  padding-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
  row-gap: 2.5rem;
}

.grid .grid-item {
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  .upper-img {
    width: 15rem;
    margin: 0 auto;
  }

  .upper-img.ovs {
    width: 3.5rem;
  }

  .lower-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.grid .logo-image {
  padding: 0 1rem;
}

.bold {
  font-weight: 600;
  font-size: 1.2rem;
  padding-bottom: 0.6rem;
}

.contact .inner-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 5rem;
}

.banner {
  position: sticky;
  bottom: 0;

  img {
    width: 30rem;
    cursor: pointer;
  }
}

footer {
  height: 5rem;
  padding: 1rem;
  background-color: #212529;
  color: #f9f9f9;
  margin-top: 0.2rem;

  display: flex;
  align-items: center;
}

footer .container {
  text-align: left;
}

@media screen and (max-width: 1024px) {
  .header {
    padding: 1rem;
  }
  .nav-links {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-section .hero-img {
    aspect-ratio: 2 / 1.5;
  }
  .container {
    padding: 1rem;
  }
  .about-us .heading {
    font-size: 1.8rem;
  }
  .about-us,
  .facilities {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
  }
  .facilities .heading,
  .contact .heading {
    font-size: 1.8rem;
    font-weight: 500;
    color: #9d8970;
    text-align: center;
    width: 100%;
    padding-bottom: 1rem;
  }
  .carousel-image {
    flex-direction: column;
    gap: 0.5rem;
    height: auto;

    img {
      width: 100%;
      height: 15rem;
      flex: unset !important;
    }
  }
  .mobile-display-none {
    display: none;
  }
  .carousel-item .title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
  }
  .carousel-control-next,
  .carousel-control-prev {
    top: 30%;
    width: 10%;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .grid .grid-item {
    .lower-img {
      width: 100%;
      height: unset;
      object-fit: cover;
      aspect-ratio: 1.3 / 1;
    }
  }
  .contact .inner-wrapper {
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
  }

  .banner {
    width: 100%;
    img {
      width: 100%;
    }
  }
  footer {
    height: 3rem;
  }
}
