* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Quicksand", sans-serif;
  overflow-x: hidden;
  background-color: #f5f5f5;
}

/* TOP NAVIGATION */

.topnav {
  width: 100%;
  height: 90px;
  background-color: #0b4f8a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  position: fixed;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
}

.brand i {
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: #d9ecff;
}

/* HERO */

.hero {
  background-color: #f5f5f5;
  padding-top: 90px;
  padding-bottom: 120px;
}

.hero-image {
  height: 95vh;
  width: 100vw; /* Full viewport width */
  max-width: 100%; /* Prevents scaling beyond screen */
  background-image: url("VanCastle.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.hero-box {
  background: white;
  width: 92%;
  max-width: 1600px;
  margin: 60px auto 0 auto;
  padding: 70px 50px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-box h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 30px;
  color: #0b4f8a;
}

.hero-box p {
  font-size: 2rem;
  color: #222;
  max-width: 1200px;
  margin: auto auto 40px auto;
  line-height: 1.5;
}

/* BUTTON */

.button {
  background-color: #0b4f8a;
  color: white;
  padding: 18px 45px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1.4rem;
  display: inline-block;
  transition: 0.3s;
}

.button:hover {
  background-color: #1565a7;
  transform: translateY(-3px);
}

/* ABOUT */

.about {
  padding: 100px 60px;
  background-color: white;
  text-align: center;
}

.about-logo {
  margin-bottom: 40px;
}

.about-logo img {
  width: 220px;
}

.about-text {
  max-width: 900px;
  margin: auto;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #0b4f8a;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.sponsorship {
  padding: 80px 40px;
  text-align: center;
}

.sponsorship h2 {
  font-size: 4rem;
  color: #0b4f8a;
  margin-bottom: 30px;
}

.sponsorship p {
  max-width: 1000px;
  margin: 0 auto 25px;
  font-size: 1.3rem;
  line-height: 1.8;
}

.kit-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-top: 50px;
}

.kit-gallery img {
  width: 400px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.kit-gallery img:hover {
  transform: translateY(-8px);
}

.kit-gallery img:first-child {
  height: 533px; /* adjust until it matches */
  width: 400px;
}

/* SERVICES */

.services {
  padding: 100px 60px;
}

.services h2 {
  font-size: 3rem;
  margin-bottom: 40px;
  color: #0b4f8a;
  text-align: center;
}

.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-bottom: 15px;
  color: #0b4f8a;
}

.card p {
  line-height: 1.6;
}

/* IMAGE CAROUSEL */

.gallery {
  position: relative;
  max-width: 1000px;
  height: 400px;
  margin: 80px auto 0 auto;
  overflow: hidden;
}

.mySlides {
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CAROUSEL ARROWS */

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 45px;
  user-select: none;
  transition: 0.3s;
  z-index: 10;
  background: transparent;
  border: none;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* FADE EFFECT */

.fade {
  animation: fadeEffect 0.6s;
}

@keyframes fadeEffect {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}

/* REVIEWS */

.reviews {
  padding: 100px 60px;
  background-color: white;
  text-align: center;
}

.reviews h2 {
  font-size: 3rem;
  margin-bottom: 40px;
  color: #0b4f8a;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.review-card {
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.review-card p {
  line-height: 1.7;
  color: #333;
}

.review-card h3 {
  margin-top: 20px;
  color: #0b4f8a;
  font-size: 1.3rem;
}

.admin-header {
  max-width: 1400px;
  margin: 20px auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logout-btn {
  display: inline-block;
  background-color: #0b4f8a;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  transition: 0.3s;
}

.logout-btn:hover {
  background-color: #083b66;
  transform: translateY(-2px);
}

/* POST REVIEW BOX */

.review-form {
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.review-row {
  display: flex;
  gap: 20px;
}

.field {
  flex: 1;
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #0b4f8a;
  font-weight: 700;
  font-size: 1.1rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  background: white;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.review-form .button {
  background-color: #0b4f8a;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 35px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: 0.3s;
}

.review-form .button:hover {
  background-color: #1565a7;
}

/* CONTACT */

.contact {
  padding: 80px 60px;
  background-color: #f5f5f5;
}

.contact h2 {
  font-size: 3rem;
  margin-bottom: 30px;
  color: #0b4f8a;
  text-align: center;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.contact-logo img {
  width: 220px;
}

.contact-info p {
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-info i {
  color: #0b4f8a;
}

.facebook-link a {
  color: #0b4f8a;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.facebook-link a:hover {
  color: #1565a7;
  text-decoration: underline;
}

/* FOOTER */

#footer {
  background-color: #0b4f8a;
  color: white;
  text-align: center;
  padding: 25px;
  margin: 0;
}

/* MOBILE */

@media screen and (max-width: 992px) {
  .review-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .topnav {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 15px;
  }

  .brand {
    font-size: 1.3rem;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-image {
    height: 50vh;
  }

  .hero-box {
    width: 92%;
    margin-top: 30px;
    padding: 35px 20px;
  }

  .hero-box h1 {
    font-size: 2.5rem;
  }

  .hero-box p {
    font-size: 1.1rem;
  }

  .button {
    font-size: 1rem;
    padding: 14px 28px;
  }

  .about,
  .services,
  .reviews,
  .contact {
    padding: 80px 20px;
  }

  .cards {
    flex-direction: column;
  }

  .review-cards {
    grid-template-columns: 1fr;
  }

  .review-row {
    flex-direction: column;
  }

  .gallery {
    height: 320px;
  }

  .prev,
  .next {
    font-size: 35px;
  }

  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-info p {
    justify-content: center;
  }

  .review-form {
    padding: 25px;
  }

  html {
    scroll-padding-top: 140px;
  }

  @media screen and (max-width: 768px) {
    .kit-gallery {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 25px;
      width: 100%;
      overflow: hidden;
    }

    .kit-gallery img {
      width: 90%;
      max-width: 360px;
      height: auto;
      object-fit: contain;
    }

    .kit-gallery img:first-child {
      height: auto;
      width: 90%;
      max-width: 360px;
    }
  }
}
