    body { margin: 0; font-family: Arial, sans-serif; line-height: 1.6; }

/* Fix anchor scroll offset for sticky header */
html {  scroll-behavior: smooth;  scroll-padding-top: 100px; /* adjust to your header height */}

/* Sticky header */
.site-header {  position: sticky;  top: 0;  z-index: 9999;  background: #ffffff;  border-bottom: 1px solid #ddd;}

/* Flex container */
.header-inner {  display: flex;  align-items: center;  gap: 15px;  padding: 8px 16px;}

/* Logo */
.header-logo img {  max-height: 80px;   /* controls header height */  width: auto;  display: block;}

/* Text */
.header-text h2 {  margin: 0;  font-size: 30px;  color: #a30c33;}
.header-text p {  margin: 2px 0 0;  font-size: 18px;  color: #555;}

/* ✅ Mobile fix */
@media (max-width: 768px) {
  .header-inner {    flex-direction: row;        /* still side by side */    gap: 10px;  }
  .header-logo img {    max-height: 45px;  }
  .header-text h2 {    font-size: 16px;  }
  .header-text p {    font-size: 11px;  }
}


    header nav a { color: white; text-decoration: none; margin-left: 20px; font-size: 14px; }
    header nav a:hover { text-decoration: underline; }

    .header-wrapper {  position: absolute;  background-color: #ffffff;    padding: 10px;   text-align: left;}
    .header-wrapper img {   margin: 0 auto;  max-width: 20%;   height: 50%; align-items: left;}
    
    
/* Youtube */
    .video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; }
    .video-wrapper {  position: relative;  width: 100%;  padding-top: 56.25%; /* 16:9 ratio = 9/16*100 */}
    .youtube-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
   
/* Hero Content */
    .hero {position: relative;      height: 100vh;      display: flex;      justify-content: space-between;      align-items: center;      padding: 2px;      color: white;      overflow: hidden;  background: maroon;  }
    .hero-overlay { background: rgba(0,0,0,0); position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
    .hero-content, .form-box { position: relative; z-index: 2; }
    .hero-content { max-width: 100%; text-align: left;}
    .hero-content h1 { font-size: 40px; margin-bottom: 15px; }
    .hero-content h2 { font-size: 24px; margin-bottom: 15px; }
    .hero-content p { font-size: 18px; margin-bottom: 10px; text-align: left;}

/* HERO CAROUSEL */
.hero-image {
  position: relative;
  width: 100%;
  height: 100vh;      /* full viewport height */
  overflow: hidden;
}

.hero-carousel {
  display: flex;
  height: 100%;       /* fills hero-image height */
  transition: transform 0.8s ease-in-out;
}

.hero-carousel img {
  width: 100%;
  height: 100%;       /* fill container height */
  flex-shrink: 0;
  object-fit: cover;  /* cover container, crops minimally */
  object-position: top center; /* prioritize top of image */
}

/* Carousel buttons remain same */
.hero-image .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  z-index: 20; 
}
.hero-image .carousel-btn.left { left: 20px; }
.hero-image .carousel-btn.right { right: 20px; }
.hero-image .carousel-btn:hover { background: rgba(0,0,0,0.8); }

/* Mobile fix */
@media (max-width: 768px) {
  .hero-image { height: 300px; }
}

/* Add this to your existing CSS */

/* Hero text overlay with background */
.hero-image .hero-text {
  position: absolute;
  top: 80%;               
  left: 40%;              
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 15;            
  max-width: 80%;
  padding: 20px 30px;     /* some padding inside overlay */
  background: rgba(128, 0, 0, 0.50); /* semi-transparent black background */
  border-radius: 10px;    /* smooth rounded edges */
}

/* Heading inside hero text */
.hero-image .hero-text h1 {
  font-size: 2em;
  margin: 0 0 10px;
}

/* Paragraph inside hero text */
.hero-image .hero-text p {
  font-size: 1.2em;
  margin: 0;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .hero-image {
    height: 300px; /* mobile hero height */
  }

  .hero-image .hero-text {
    top: auto;           /* override top: 50% */
    bottom: 20px;        /* place text near bottom */
    left: 50%;
    transform: translateX(-50%); /* only center horizontally */
    padding: 10px 15px;
    max-width: 90%;
    background: rgba(0, 0, 0, 0.2); /* maintain overlay */
    border-radius: 8px;
  }

  .hero-image .hero-text h1 {
    font-size: 1em;   /* smaller heading */
    margin: 0 0 5px;
  }

  .hero-image .hero-text p {
    font-size: 0.9em;   /* smaller paragraph */
    margin: 0;
  }
}


/* ===== HERO TEXT + VIDEO (DESKTOP) ===== */
.hero-text-video {  display: flex;  align-items: center;  justify-content: space-between;  padding: 10px;  gap: 40px;  height: auto;}

/* Background color for SECOND hero (text + video) */
.hero-text-video {  background-color: #003366; /* deep navy */}
.hero-text-video .hero-content {  flex: 1;  max-width: 50%;  color: #fff;}
.hero-text-video .video-side {  position: relative;  flex: 1;  max-width: 50%;  height: auto;}
.hero-text-video .video-wrapper {  width: 100%;  padding-top: 56.25%; /* 16:9 */  position: relative;}
.hero-text-video .youtube-video {  position: absolute;  inset: 0;  width: 100%;  height: 100%;}

@media (max-width: 768px) {
  .hero-text-video {    flex-direction: column;    padding: 30px 15px;    text-align: center;  }
  .hero-text-video .hero-content,
  .hero-text-video .video-side {    max-width: 100%;  }
  .hero-text-video .video-wrapper {    margin-top: 20px;  }
  #muteBtn {    position: relative;    margin-top: 10px;    left: auto;    top: auto;  }
}

/* GALLERY CAROUSEL */
.gallery {  background: #f9f9f9;  padding: 40px 0;  text-align: center;}
.carousel-wrapper {  position: relative;  width: 80%;  max-width: 900px;  margin: auto;  overflow: hidden;  border-radius: 10px;}
.gallery-carousel {  display: flex;  transition: transform 0.8s ease-in-out;}
.gallery-carousel img {  width: 100%;  height: 400px;  flex-shrink: 0;  object-fit: cover;  border-radius: 10px;}

@media (max-width: 768px) {
  .gallery-carousel img {    height: 250px;  }
}

/* Gallery arrow buttons – always on left & right */
.gallery .carousel-btn {  position: absolute;  top: 50%;  transform: translateY(-50%);  background: rgba(0,0,0,0.6);  color: #fff;  border: none;  border-radius: 50%;  font-size: 22px;  padding: 10px 14px;  cursor: pointer;  z-index: 10;}
.gallery .carousel-btn.left {  left: 15px;}
.gallery .carousel-btn.right {  right: 15px;}
.gallery .carousel-btn:hover {  background: rgba(0,0,0,0.8);}


/* CTA CSS*/
.cta-overlay {  position: absolute;  bottom: 30px;              /* adjust vertical position */  left: 50%;  transform: translateX(-50%);  z-index: 5;  display: flex;  gap: 15px;}    
.cta { background: gold; color: black; padding: 12px 25px; text-decoration: none; margin-right: 10px; border-radius: 5px; font-weight: bold; white-space: nowrap; }
.ctafooter { background: gold; color: black; padding: 12px 25px; font-size: 16px; margin-right: 10px; border-radius: 5px; font-weight: bold; white-space: nowrap; }    
.cta-row { display: flex; justify-content: center; gap: 10px; flex-wrap: nowrap; }

    /* Make video container the reference */
.video-container {
  position: relative;
}

/* Unmute button INSIDE video */
#muteBtn {  position: absolute;  bottom: 15px;        /* inside video */  right: 15px;  z-index: 5;  padding: 8px 12px;  background: rgba(0,0,0,0.6);  color: #fff;  border: none;  border-radius: 6px;  cursor: pointer;  font-size: 14px;}

#muteBtn:hover {  background: rgba(0,0,0,0.85);}

/* Mobile Optimization mute button */
@media (max-width: 768px) {
  #muteBtn {    bottom: 10px;    right: 10px;    font-size: 13px;    padding: 6px 10px;  }
}


    /* Desktop: form on right side of hero */
.form-box {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%); /* PERFECT vertical center */
    background: rgba(128, 0, 0, 0.50);
    padding: 8px;
    width: 320px;
    max-width: 90%;
    border: 2px solid white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.form-box h2 {
    text-align: center;
    color: white;
    }

.form-box p {
    text-align: center;
    color: white;
    font-size: 15px;
   }

.form-box input,
.form-box select,
.form-box button {
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.form-box button {
    background: navy;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;  
}

.form-box button:hover {
    background: purple;
}

/* Highlight effect for the authorization checkbox */
  .highlight-checkbox {    display: flex;    align-items: flex-start;    font-size: 12px;    color: white;    line-height: 1.5;    margin-top: 10px;    cursor: pointer;    user-select: none;}
  .highlight-checkbox input[type="checkbox"] {    margin-right: 8px;    margin-top: 3px;    accent-color: maroon;    width: 16px;    height: 16px;    cursor: pointer;    box-shadow: 0 0 0 2px maroon;    border-radius: 3px;    transition: all 0.2s ease;  }
  .highlight-checkbox input[type="checkbox"]:checked {    box-shadow: 0 0 0 2px gold;  }
  .highlight-checkbox strong {    color: white;  }
  

/* MOBILE FORM FIX */
@media (max-width: 768px) {

  .hero {
    height: auto; /* allow content to expand */
  }

  .hero-image {
    position: relative;
    height: 300px; /* slider height on mobile */
  }
.form-box {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 90%;
    margin: 20px auto;
    background: maroon; /* solid for readability */
  }
  }


    .legacy { padding: 60px 20px; text-align: center; background: #f4f4f4; }

 .features { background: #fff; padding: 50px 0; position: relative; overflow: hidden; }

/* Features container */
.features-container {  
display: flex;  
overflow-x: auto;  -webkit-overflow-scrolling: touch; /* smooth native momentum on iOS */  
scroll-behavior: smooth;  
scroll-snap-type: x mandatory;  
gap: 20px;  
padding: 0 20px;  
box-sizing: border-box;  
align-items: stretch;  
scrollbar-width: none; /* Firefox */
}

/* hide chrome/safari scrollbar */
.features-container::-webkit-scrollbar { display: none; }

/* each card - desktop: 3 cards visible (2 gaps of 20px => 40px) */
.feature {
  flex: 0 0 calc((100% - 40px) / 3); /* three cards per row */
  box-sizing: border-box;
  background: #fafafa;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  text-align: center;
  padding: 12px;
  scroll-snap-align: center;
  min-width: 220px; /* prevents cards becoming too small on narrow desktops */
  max-width: 100%;
}

/* image inside card */
.feature img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 8px;
}

/* headings / text */
.feature h2 { font-size: 18px; margin: 8px 0; color: navy; }
.feature p { font-size: 14px; color: #a30c33; line-height: 1.4; margin: 0; }

/* Scroll buttons – desktop (side arrows) */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  color: navy;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 10;
}
.scroll-btn.left { left: 10px; }
.scroll-btn.right { right: 10px; }
.scroll-btn:hover { background: #800000; color: #fff; }

/* ===== Mobile: one card per view + buttons below ===== */
@media (max-width: 768px) {
  .features-container {
    gap: 16px;
    padding: 0 12px 50px; /* extra space for buttons below */
  }

  .feature {
    flex: 0 0 90vw;
    width: 90vw;
    margin: 0 auto;
    scroll-snap-align: center;
    padding: 14px;
  }

  /* Move scroll buttons below carousel, centered */
  .scroll-btn {
    position: absolute;
    top: auto;
    bottom: 10px;
    transform: translateY(0);
    background: white;
    color: navy;
    font-size: 22px;
    padding: 8px 12px;
  }

  .scroll-btn.left {
    left: 50%;
    transform: translateX(-150%);
  }

  .scroll-btn.right {
    right: 50%;
    transform: translateX(150%);
  }
}
      
    .boarding { background: #a30c33; color: white; padding: 30px 20px; text-align: justify; }
    .boarding h2 { background: #a30c33; color: white; text-align: center; }
    .school { background: #003366; color: white; padding: 30px 20px; text-align: justify; }
    .school h2 { background: #003366; color: white; text-align: center; }

   /* Prevent footer stretching */
footer, .footer-section {
  height: auto !important;
  min-height: auto !important;
  flex-grow: 0 !important;
}

/* If body uses flex layout */
body {
  display: block;   /* safest */
}

/* Footer layout control */
.footer-section {
  padding: 30px 20px;
  background: maroon;
  color: white;
}

/* Footer container alignment */
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* IMPORTANT */
  gap: 20px;
}


/* LEFT COLUMN */
.footer-left {
  flex: 1;
min-width:250px;
  font-size: 20px;
}

.footer-left .subhead{
  flex: 1;
  font-size: 15px;
}
.footer-left h3 {
  color: gold;
  margin-bottom: 10px;
}
.footer-left p {
  margin: 3px 0;      /* Reduce space between lines */
  line-height: 1.5;   /* Tighten line spacing */
}

.footer-left a {
  color: gold;
  text-decoration: none;
font-size: 10px;
}

.footer-left a:hover {
  text-decoration: underline;
}

/* RIGHT COLUMN MAP */
.footer-right {
  flex: 1;
min-width:250px;
}

.footer-right iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 12px;
}

/* MOBILE STACKING */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-right iframe {
    height: 200px;
  }
}


#visitorCount {
  font-weight: bold;
  color: maroon;
}


    @media (max-width: 768px) {
      .hero { flex-direction: column; padding: 20px; text-align: center; height: auto; }
      .hero-content { max-width: 100%; margin-bottom: 20px; }
      .form-box { width: 90%; margin: 20px auto !important; }

      .youtube-video { height: 250px; }
      .cta { font-size: 13px; padding: 10px 14px; }
    }

/* Map CSS */
.map-container {
  width: 100%;
  max-width: 1600px;
  margin: 20px auto;
}
@media (max-width:768px){
  .map-container iframe { height:200px; }
}

/* Whatsapp CSS */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #25D366;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.whatsapp-btn img {
    width: 50px;
    height: 50px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* MARQUEE TEXT */
.marquee {
  width: 100%;
  overflow: hidden;
  background: maroon;
  color: white;
  font-size: 24px;
  font-weight: bold;
  padding: 8px 0;
  white-space: nowrap;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 768px) {
  .marquee {
    font-size: 14px;
  }
}

/* RIGHT SIDE ENQUIRY BUTTON*/

.enquiry-side-btn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; /* Vertical text */
  
  background: rgba(0,0,128,0.75);
  color: white;
  padding: 3px 6px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0px 12px 12px 0px;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

/* Hover Effect */
.enquiry-side-btn:hover {
  background: gold;
  color: black;
  right: 5px; /* small slide effect */
}
/* Hidden SEO Footer */
.seo-footer-text {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
    display: none;
  overflow: hidden;
}
/* ==============================
   THANK YOU PAGE STYLES
   ============================== */

.thankyou-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  padding: 40px 20px;
}

.thankyou-box {
  background: #ffffff;
  max-width: 600px;
  width: 100%;
  padding: 40px 30px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.thankyou-box img {
  max-width: 120px;
  margin-bottom: 20px;
}

.thankyou-box h1 {
  color: #800000;
  font-size: 32px;
  margin-bottom: 15px;
}

.thankyou-box p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 25px;
}

.thankyou-box a {
  display: inline-block;
  padding: 12px 25px;
  background: #800000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.thankyou-box a:hover {
  background: #5e0000;
}

@media (max-width: 768px) {
  .thankyou-box h1 {
    font-size: 24px;
  }
}