

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Container for consistent width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em;
}

/* Header styling */
header {
  background-color: #ffffff;
  color: #002b45;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .brand img {
  height: 50px;
}

nav a {
  color: #002b45;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #9b1c1c;
}




/* Hero Section */
.hero {
  background: #9b1c1c;
  color: white;
  text-align: center;
  padding: 4em 2em;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 2em;
}

.hero-img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* -------------------------------------------
   Enhanced Hero Section
   ------------------------------------------- */
.hero {
  position: relative;
  background-color: #9b1c1c;
  color: #ffffff;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4em 2em;
  gap: 2em;
}

.hero-text {
  flex: 1 1 400px;
  z-index: 1; /* keep text above overlay */
}
.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5em;
  font-weight: 700;
}
.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 1.5em;
  line-height: 1.4;
}

/* Primary CTA button */
.btn-primary {
  display: inline-block;
  background-color: #ffffff;
  color: #9b1c1c;
  padding: 0.75em 1.5em;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Image wrapper with semi-transparent overlay */
.hero-image-wrap {
  position: relative;
  flex: 1 1 400px;
  max-width: 600px;
}
.hero-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(1.02);
  animation: fadeInImage 1s ease forwards;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  pointer-events: none;
}

/* Fade‐in for hero image */
@keyframes fadeInImage {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2.4rem;
  }
  .hero-text p {
    font-size: 1.1rem;
  }
  .btn-primary {
    margin-top: 1em;
  }
  .map-box img {
    width: 100%;
    height: auto;
    display: block;
  }

}

/* Curriculum Hero Carousel Styles */
.curriculum-hero {
  background: #9b1c1c;
  color: white;
  text-align: center;
  padding: 4em 2em;
}

.curriculum-slider {
  overflow: hidden;
  margin-top: 2em;
  position: relative;
}

.slide-track {
  display: flex;
  gap: 1em;
  animation: scrollSlider 25s linear infinite;
  width: fit-content;
}

.curriculum-card {
  flex: 0 0 auto;
  background: white;
  color: #002b45;
  padding: 1.5em 2em;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 240px;
  text-align: center;
  transition: transform 0.2s ease;
}

.curriculum-card:hover {
  transform: scale(1.05);
}

@keyframes scrollSlider {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.curriculum-slider:hover .slide-track {
  animation-play-state: paused;
}


/* Section layout */
section {
  padding: 4em 0;
}

.section-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2em;
}

.section-img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.section-text h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #002b45;
  font-weight: 700;
}

.section-text p {
  font-size: 1.1em;
  color: #555;
}

/* Alternate section background */
.about {
  background: #ffffff;
}

.why-choose {
  background: #f0f0f0;
}

/* -------------------------------------------
   About Us Section (refined)
   ------------------------------------------- */
.about .section-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2em;
}

.about .section-img {
  flex: 1 1 400px;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about .section-text {
  flex: 1 1 400px;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 0.75em;
  color: #002b45;
  font-weight: 700;
}

.about p {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 1.5em;
  line-height: 1.6;
}

/* Core Values List */
.core-values {
  list-style: none;
  padding: 0;
  margin: 0;
}

.core-values li {
  font-size: 1rem;
  color: #333333;
  margin-bottom: 0.75em;
  line-height: 1.5;
}

.core-values li strong {
  color: #002b45;
}

/* Responsive adjustments for About Us */
@media (max-width: 768px) {
  .about .section-container {
    flex-direction: column;
    text-align: center;
  }
  .about .section-img,
  .about .section-text {
    flex: 1 1 100%;
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}
/* -------------------------------------------
   Why Choose Us? (feature list)
   ------------------------------------------- */
.why-choose .section-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2em;
}

.why-choose .section-text {
  flex: 1 1 400px;
}

.why-choose h2 {
  font-size: 2rem;
  margin-bottom: 0.75em;
  color: #002b45;
  font-weight: 700;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  margin-bottom: 1.5em;
}

.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.features-list h4 {
  font-size: 1.2rem;
  color: #002b45;
  margin-bottom: 0.3em;
}

.features-list p {
  font-size: 1rem;
  color: #555555;
  line-height: 1.5;
}

.why-choose .section-img {
  flex: 1 1 400px;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for Why Choose Us */
@media (max-width: 768px) {
  .why-choose .section-container {
    flex-direction: column;
    text-align: center;
  }
  .features-list li {
    justify-content: center;
  }
  .features-list li div {
    text-align: left;
  }
  .why-choose .section-img,
  .why-choose .section-text {
    flex: 1 1 100%;
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}


/* -------------------------------------------
   Curriculum Intro
   ------------------------------------------- */
.curriculum-intro {
  background: #ffffff;
  color: #002b45;
  text-align: center;
  padding: 4em 2em;
  margin-top: 2em; /* Push intro (and grid) below the hero */
}

.curriculum-intro .container {
  max-width: 800px;
  margin: 0 auto;
}

.curriculum-intro h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.curriculum-intro p {
  font-size: 1.15rem;
  color: #555555;
  margin-bottom: 0;
  line-height: 1.5;
}

/* -------------------------------------------
   Curriculum Cards Grid
   ------------------------------------------- */
.curriculum-cards {
  background: #f9f9f9;
  padding: 4em 2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 2em; /* Additional spacing below the intro */
}

/* Individual Card */
.curriculum-cards .card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.75em 1.5em;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer; /* Show pointer on hover */
}

.curriculum-cards .card:hover {
  background-color: #f0f0f0; /* Subtle tint to indicate clickability */
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.curriculum-cards .card h3 {
  font-size: 1.4rem;
  color: #002b45;
  margin-bottom: 0.75em;
  font-weight: 600;
  line-height: 1.3;
}

.curriculum-cards .card p {
  font-size: 1rem;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 0.75em;
}

/* Badge Base Styles */
.curriculum-cards .badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.25em 0.6em;
  border-radius: 4px;
  vertical-align: middle;
}

/* Badge Variants */
.curriculum-cards .badge.popular {
  background: #9b1c1c;
  color: #ffffff;
}

.curriculum-cards .badge.cambridge {
  background: #002b45;
  color: #ffffff;
}

/* Default badge (e.g. Singapore, NZEA, IGCSE) */
.curriculum-cards .badge:not(.popular):not(.cambridge) {
  background: #4a7c59;
  color: #ffffff;
}

/* -------------------------------------------
   Responsive Adjustments
   ------------------------------------------- */
@media (max-width: 768px) {
  .curriculum-intro h1 {
    font-size: 2.2rem;
  }

  .curriculum-intro p {
    font-size: 1.05rem;
  }

  .curriculum-cards {
    padding: 3em 1.5em;
    gap: 1.5em;
  }

  .curriculum-cards .card {
    padding: 1.5em 1.25em;
  }
}

@media (max-width: 480px) {
  .curriculum-intro h1 {
    font-size: 2rem;
  }

  .curriculum-intro p {
    font-size: 1rem;
  }

  .curriculum-cards {
    padding: 2em 1em;
    gap: 1em;
  }

  .curriculum-cards .card {
    padding: 1.25em 1em;
  }

  .curriculum-cards .card h3 {
    font-size: 1.25rem;
  }

  .curriculum-cards .card p {
    font-size: 0.95rem;
  }
}

/* ===========================
   Modal Overlay & Window
   =========================== */

/* 1) Hidden by default (force‐hide on load) */
.hidden {
  display: none !important;
  opacity: 0;
}

/* 2) Full-screen semi-transparent background + subtle blur */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* semi-transparent dark + backdrop‐blur for depth */
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 10000; /* high enough to float above header/hero */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  
  /* fade‐in/out animation */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* when not hidden, show at full opacity */
.modal-overlay:not(.hidden) {
  opacity: 1;
}

/* 3) White “window” in the center with richer shadow and smooth scale animation */
.modal-window {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  padding: 2.5em 2em;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  width: 90%;
  max-width: 600px;

  transform: scale(0.95);
  transition: transform 0.3s ease;
  opacity: 0;
}

/* when overlay is visible, “pop” the modal into place */
.modal-overlay:not(.hidden) .modal-window {
  transform: scale(1);
  opacity: 1;
}

/* 4) Close (“×”) button styling */
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #333333;
  cursor: pointer;
  line-height: 1;
  z-index: 10001; /* keep above modal window content */
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: #9b1c1c;
  transform: scale(1.1);
}

/* 5) Modal title styling with a bottom border accent */
.modal-window h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.9rem;
  color: #002b45;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  position: relative;

  /* accent line under the title */
}
.modal-window h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #9b1c1c;
  margin: 0.5rem auto 0; /* space below the title */
  border-radius: 2px;
}

/* 6) Modal content area (bulleted list + paragraphs) */
.modal-content {
  font-size: 1rem;
  color: #444444;
  line-height: 1.7;
  margin-top: 1rem;
}

/* Custom bullet style for lists */
.modal-content ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.modal-content ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.modal-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #9b1c1c; /* red bullet */
  font-size: 1.2rem;
  line-height: 1;
  top: 0;
}

/* 7) Responsive adjustments for small screens */
@media (max-width: 480px) {
  .modal-window {
    padding: 2em 1em;
  }
  .modal-window h2 {
    font-size: 1.6rem;
  }
  .modal-close {
    font-size: 1.25rem;
    top: 0.5rem;
    right: 0.5rem;
  }
  .modal-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .modal-content ul li {
    margin-bottom: 0.75em;
    padding-left: 1.2em;
  }
  .modal-content ul li::before {
    font-size: 1rem;
  }
}





/* Footer styling */
footer {
  background: #002b45;
  color: #ccc;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 2em;
}

.footer-content div {
  flex: 1 1 200px;
  margin-bottom: 1em;
}

.footer-content h3 {
  font-size: 1.1em;
  margin-bottom: 0.5em;
  color: #fff;
}

.footer-content a {
  color: #ccc;
  text-decoration: none;
}

.footer-content a:hover {
  color: #fff;
}

footer .copyright {
  background: #001d2e;
  padding: 1em;
  margin-top: 1em;
  font-size: 0.9em;
}

/* Responsive styling */
@media (max-width: 800px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  .header-container {
    flex-direction: column;
    align-items: center;
    padding: 1em 0;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    display: block;
    margin: 8px 0;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}



/* Contact Form */
.contact-form {
  background-color: #fff;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85em 1em;
  margin-bottom: 1.2em;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #9b1c1c;
  box-shadow: 0 0 6px rgba(155, 28, 28, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background-color: #9b1c1c;
  color: #fff;
  border: none;
  padding: 0.9em 1.6em;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-info-block {
  margin: 0 auto;
  text-align: center;
}


.contact-form button:hover {
  background-color: #7f1616;
  transform: translateY(-2px);
}

/* Success Message Popup */
.success-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #7f1616;
  color: white;
  padding: 1em 1.5em;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.success-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.success-popup .close-success {
  background: none;
  border: none;
  color: white;
  font-size: 1.2em;
  margin-left: 1em;
  cursor: pointer;
}

/* Google Map */
.branch-locations {
  padding: 4em 0;
  background-color: #f9f9f9;
}

.branch-locations h2 {
  text-align: center;
  margin-bottom: 2em;
  color: #002b45;
  font-size: 2em;
}

.map-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}

.map-box {
  flex: 1 1 300px;
  max-width: 600px;
  background: #fff;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.map-box h4 {
  margin-bottom: 1em;
  font-size: 1.1em;
  color: #9b1c1c;
}

.map-box iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
}


/* Floating Sticky Contact Buttons */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.floating-buttons a,
.floating-buttons button {
  background: transparent;       /* ❌ No background */
  border: none;
  padding: 0;                    /* Remove inner padding */
  width: 40px;
  height: 40px;
  box-shadow: none;              /* Remove shadow */
  cursor: pointer;
}

.floating-buttons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.floating-buttons a:hover img,
.floating-buttons button:hover img {
  transform: scale(1.1);
}

/* WeChat Modal */
.wechat-modal {
  display: none;
  position: fixed;
  z-index: 1500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.wechat-modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  width: 300px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.wechat-modal-content img {
  max-width: 100%;
  margin-top: 10px;
}

.close-btn {
  float: right;
  font-size: 1.5em;
  cursor: pointer;
}

/* Better spacing and alignment for Contact Section */
.contact-layout {
  align-items: flex-start;
  gap: 4em;
  margin-top: 3em;
}

.contact-layout .section-text {
  flex: 2;
}

.contact-form-wrapper {
  flex: 1;
  min-width: 300px;
}

.section-text h2 {
  margin-bottom: 1.5em;
}

.contact-form-wrapper h2 {
  margin-bottom: 1.5em;
}

.map-grid {
  margin-top: 1em;
  gap: 1.5em;
}

.map-box {
  margin-bottom: 1em;
}

/* Optional: border for visual separation */
@media (min-width: 992px) {
  .contact-layout .section-text {
    border-right: 1px solid #eee;
    padding-right: 2em;
  }
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .contact-layout {
    flex-direction: column;
    align-items: center;
  }

  .contact-form-wrapper {
    width: 100%;
  }

  .map-grid {
    flex-direction: column;
    align-items: center;
  }
}


/* -------------------------------------------
   Featured Programs Section
   ------------------------------------------- */
.featured-programs {
  background: #ffffff;
  color: #002b45;
  text-align: center;
  padding: 4em 2em;
}

.featured-programs h2 {
  font-size: 2.4rem;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.featured-programs .section-subtitle {
  font-size: 1.15rem;
  color: #555555;
  margin-bottom: 2em;
  line-height: 1.5;
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.program-card {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 2em 1.5em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.program-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5em;
  color: #002b45;
  font-weight: 600;
}
.program-card p {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 1.5em;
  line-height: 1.5;
}

.btn-secondary {
  display: inline-block;
  background-color: #9b1c1c;
  color: #ffffff;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-secondary:hover {
  background-color: #7f1616;
  transform: translateY(-2px);
}

/* Responsive adjustments for Featured Programs */
@media (max-width: 768px) {
  .featured-programs h2 {
    font-size: 2.2rem;
  }
  .featured-programs .section-subtitle {
    font-size: 1.05rem;
  }
  .program-cards {
    gap: 1.5em;
  }
  .program-card {
    padding: 1.5em 1.25em;
  }
}

@media (max-width: 480px) {
  .featured-programs h2 {
    font-size: 2rem;
  }
  .featured-programs .section-subtitle {
    font-size: 1rem;
  }
  .program-card {
    padding: 1.25em 1em;
  }
  .program-card h3 {
    font-size: 1.3rem;
  }
  .program-card p {
    font-size: 0.95rem;
  }
}

/* -------------------------------------------
   Statistics / Impact Strip
   ------------------------------------------- */
.stats-strip {
  background: #002b45;
  color: #ffffff;
  padding: 3em 2em;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  flex: 1 1 200px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.3em;
  font-weight: 700;
  color: #9b1c1c;
}

.stat-item p {
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Responsive adjustments for Stats Strip */
@media (max-width: 768px) {
  .stats-grid {
    flex-direction: column;
    gap: 1.5em;
  }
  .stat-item h3 {
    font-size: 2rem;
  }
  .stat-item p {
    font-size: 1rem;
  }
}


/* -------------------------------------------
   Testimonials Section
   ------------------------------------------- */
.testimonials {
  background: #f0f0f0;
  color: #002b45;
  text-align: center;
  padding: 4em 2em;
}

.testimonials h2 {
  font-size: 2.4rem;
  margin-bottom: 1.5em;
  font-weight: 700;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  display: none; /* Only one visible at a time via JS */
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2em;
  margin: 0 auto;
  max-width: 600px;
  animation: fadeInTestimonial 0.5s ease;
}

@keyframes fadeInTestimonial {
  from {
    opacity: 0;
    transform: translateY(10%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-card p {
  font-size: 1.1rem;
  color: #444444;
  margin-bottom: 1.5em;
  line-height: 1.5;
}

.testimonial-card h4 {
  font-size: 1rem;
  color: #9b1c1c;
  font-style: italic;
}

/* Responsive adjustments for Testimonials */
@media (max-width: 480px) {
  .testimonials h2 {
    font-size: 2rem;
  }
  .testimonial-card p {
    font-size: 1rem;
  }
  .testimonial-card h4 {
    font-size: 0.95rem;
  }
}

/* -------------------------------------------
   Competition Page: Section Backgrounds & Padding
   ------------------------------------------- */
/* Ensure the two “about”‐style sections have consistent spacing */
.about {
  background: #ffffff;
  padding: 4em 2em;
}
.why-choose {
  background: #f9f0e9; /* a very light warm tone to differentiate from white */
  padding: 4em 2em;
}

/* -------------------------------------------
   Competition Page: Section Containers
   ------------------------------------------- */
.about .section-container,
.why-choose .section-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2em;
}
.about .section-img,
.why-choose .section-img {
  flex: 1 1 400px;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.about .section-text,
.why-choose .section-text {
  flex: 1 1 400px;
}
.about h2,
.why-choose h2 {
  font-size: 2rem;
  margin-bottom: 0.75em;
  color: #002b45;
  font-weight: 700;
}
.about p,
.why-choose p {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 1.5em;
  line-height: 1.6;
}

/* -------------------------------------------
   Competition Page: Feature List (Brain Bee, Chess, NZ Intermediate)
   ------------------------------------------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 1em;
  font-size: 1rem;
  color: #333333;
  line-height: 1.5;
}
.feature-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  color: #9b1c1c; /* matches brand red */
  font-size: 1rem;
  line-height: 1;
}

/* Adjust the strong text in feature-list */
.feature-list li strong {
  color: #002b45;
}

/* -------------------------------------------
   Competition Page: “Get Involved” Button
   ------------------------------------------- */
.btn-cta {
  display: inline-block;
  background-color: #9b1c1c;
  color: #ffffff;
  padding: 0.85em 1.8em;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-cta:hover {
  background-color: #7f1616;
  transform: translateY(-2px);
}

/* -------------------------------------------
   Competition Page: Call‐to‐Action Section
   ------------------------------------------- */
.testimonials {
  background: #e8f2f5; /* light, muted blue to set off the CTA */
  padding: 4em 2em;
}
.testimonials h2 {
  font-size: 2.4rem;
  color: #002b45;
  margin-bottom: 0.75em;
  font-weight: 700;
}
.testimonials p {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 1.5em;
  line-height: 1.6;
}

/* -------------------------------------------
   Responsive Adjustments for Competition Page
   ------------------------------------------- */
@media (max-width: 768px) {
  .about .section-container,
  .why-choose .section-container {
    flex-direction: column;
    text-align: center;
  }
  .feature-list li {
    padding-left: 1.5em;
  }
  .feature-list li::before {
    left: 0;
    top: 0.1em;
  }
  .btn-cta {
    width: 100%;
    text-align: center;
  }
  .testimonials h2 {
    font-size: 2rem;
  }
  .testimonials p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .about h2,
  .why-choose h2 {
    font-size: 1.8rem;
  }
  .about p,
  .why-choose p {
    font-size: 1rem;
  }
  .feature-list li {
    font-size: 0.95rem;
  }
  .feature-list li::before {
    font-size: 0.9rem;
  }
  .btn-cta {
    font-size: 1rem;
    padding: 0.75em 1.2em;
  }
  .testimonials {
    padding: 3em 1em;
  }
  .testimonials h2 {
    font-size: 1.8rem;
  }
  .testimonials p {
    font-size: 0.95rem;
  }
}

/* ================================
   CONTACT PAGE: NEW STYLES
   ================================ */

/* 1) Entire section wrapper */
.contact-section {
  padding: 4em 0;
  background-color: #ffffff;
}

/* 2) “Row 1”: two‐column layout for info‐card + form‐card */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
}

/* 3) Info card (left) */
.contact-info-card {
  flex: 1 1 380px;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 2em 1.5em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 4) Form wrapper (right) */
.contact-form-wrapper {
  flex: 1 1 380px;
}

/* 5) Heading inside the info‐card */
.contact-info-card h2 {
  font-size: 1.8rem;
  color: #002b45;
  text-align: center;
  margin-bottom: 1em;
}

/* 6) Reset UL & LI for contact info */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 7) Each line: icon + label + text/link */
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.6em;
  font-size: 1rem;
  color: #333333;
  line-height: 1.4;
}

/* 8) Icon wrapper */
.ci-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.ci-icon svg {
  width: 100%;
  height: 100%;
  fill: #9b1c1c; /* brand red for icons */
}

/* 9) Label part (“Email:”, “Phone:”, etc.) */
.ci-label {
  font-weight: 600;
  color: #002b45;
  min-width: 70px;
}

/* 10) Text block for address lines (Option A) */
.ci-text {
  display: inline-block;
  margin-left: 4px;
  color: #333333;
}

/* 11) Links styling (email/phone) */
.contact-info-list a {
  color: #9b1c1c;
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-info-list a:hover {
  color: #7f1616;
}

/* 12) Form heading */
.contact-form-wrapper > h2 {
  font-size: 1.8rem;
  color: #002b45;
  text-align: center;
  margin-bottom: 1em;
}

/* 13) The form itself */
.contact-form {
  background-color: #f9f9f9;
  padding: 2em 1.5em;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  width: 100%;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85em 1em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #9b1c1c;
  box-shadow: 0 0 6px rgba(155, 28, 28, 0.2);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-cta {
  display: inline-block;
  background-color: #9b1c1c;
  color: #ffffff;
  border: none;
  padding: 0.85em 1.6em;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: 1em;
}
.btn-cta:hover {
  background-color: #7f1616;
  transform: translateY(-1px);
}

/* 14) “Row 2”: Our Branches (full width under row 1) */
.branches-section {
  margin-top: 3em;
}
.branches-title {
  font-size: 1.5rem;
  color: #002b45;
  text-align: center;
  margin-bottom: 1em;
}

/* 15) Maps grid */
.map-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
}
.map-box {
  flex: 1 1 300px;
  max-width: 500px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.map-box h4 {
  margin: 0;
  background-color: #9b1c1c;
  color: #ffffff;
  font-size: 1rem;
  padding: 0.75em 1em;
  text-align: center;
}
.map-box iframe {
  width: 100%;
  height: 260px;
  border: none;
}

/* 16) Success popup */
.success-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #7f1616;
  color: white;
  padding: 0.8em 1.2em;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.success-popup.show {
  opacity: 1;
  pointer-events: auto;
}
.success-popup .close-success {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  margin-left: 0.5em;
  cursor: pointer;
}

/* =================================================
   RESPONSIVE ADJUSTMENTS
   ================================================= */
@media (max-width: 768px) {
  .contact-row {
    flex-direction: column;
    gap: 2em;
  }
  .contact-info-card,
  .contact-form-wrapper {
    flex: 1 1 100%;
  }
  .ci-icon {
    width: 18px;
    height: 18px;
  }
  .ci-label {
    min-width: 60px;
  }
  .map-box iframe {
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: 100%;
  
    
  }
  .map-box img {
    width: 100%;
    height: auto;
    display: block;
}

}

@media (max-width: 480px) {
  .contact-info-list li {
    font-size: 0.95rem;
    gap: 0.4em;
    margin-bottom: 0.5em;
  }
  .contact-form {
    padding: 1.5em 1em;
  }
  .btn-cta {
    width: 100%;
    text-align: center;
    padding: 0.75em 1.2em;
    font-size: 0.95rem;
  }
  .map-box iframe {
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: 100%;
  }
  .map-box img {
    width: 100%;
    height: auto;
    display: block;
}

}

