:root {
  --primary: #393562;
  --accent: #6e9df5;
  --light: #fcfcfc;
  --dark: #232334;
  --text: #3a3742;
  --gray: #9190a9;
  --white: #ffffff;
  --light-gray: #f7f6f2;
  --bg-color: #f5fffc;
  --black: #000;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --navbar-height: 80px;
  --hero-height: 95vh;
  --container-width: 100%;
  --container-max-width: 1450px;
  --yellow: #fffdb2;
  --purple: #e8e1f9;
  --pink: #ffe1f3;
  --blue: #e5f0ff;
  --new-gray: #f4f4f4;
  --text-dark: #252532;
  --text-mid: #44495a;
  --creme: #fef7ed;
  --new-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.07);
  --section-pad: 36px;
  --tab-height: 54px;
}

/* Navbar Layout (Default: Transparent/White Text) */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  /* Start Transparent */
  background-color: transparent;
  box-shadow: none; /* No shadow initially */
  transition: var(--transition);
}

/* 🌟 SCROLLED STATE: Applies when the 'scrolled' class is added via JavaScript 🌟 */
.navbar.scrolled {
  background-color: var(--white); /* White background on scroll */
  box-shadow: var(--new-shadow); /* Subtle shadow when scrolled */
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Desktop Navigation and Buttons (Default View) */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Default Link Color (Transparent/Hero State) */
.nav-links a,
.dropdown summary {
  text-decoration: none;
  color: var(--white); /* White text color initially */
  font-weight: 500;
  transition: var(--transition);
  font-size: 17px;
  padding: 6px 8px;
  border-radius: 6px;
  display: inline-block;
  cursor: pointer; /* Ensure dropdown summary is treated like a link */
  list-style: none; /* Hide default arrow in summary */
}

/* Scrolled State Link Color (White Background State) */
.navbar.scrolled .nav-links a,
.navbar.scrolled .dropdown summary {
  color: var(--text-dark); /* Dark text color when scrolled */
}

.nav-links a:hover,
.dropdown summary:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}
.btn-primary-a {
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 14px;
  background: #6e9df5;
  color: var(--dark);
  text-decoration: none;
}
.btn-primary-a:hover {
  background: #6e9df5;
  transform: translateY(-2px);
  color: var(--dark);
}
.btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--new-gray);
  font-size: 14px;
  background: transparent;
  color: var(--text);
}
.btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Mega Menu Base Styles (unchanged as they are already white background/dark text) */
.dropdown {
  position: relative;
}
.mega-menu,
.account-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--new-shadow);
  border: 1px solid var(--new-gray);
  z-index: 2000;
  box-sizing: border-box;
  padding: 30px 30px 20px 30px;
  min-width: 250px;
}
.dropdown:hover > .mega-menu,
.account-link:hover > .account-dropdown,
.account-dropdown:hover {
  display: block;
}

/* Mega menu columns */
.mega-col {
  min-width: 180px;
  max-width: 340px;
  padding-right: 16px;
}
.mega-title {
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 5px;
}
.mega-col ul {
  list-style: none;
  padding: 0;
  margin-bottom: 7px;
}
.mega-col ul li {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 400;
  line-height: 1.4;
}
.mega-col ul li a {
  text-decoration: none;
  color: var(--text);
  display: block;
  padding: 2px 0;
}
.mega-col ul li a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* OUR THERAPIES MEGA MENU TWO-ROW GRID */
.our-therapies-mega-menu {
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  max-width: 96vw;
  padding: 32px 32px 18px 32px;
  background: var(--white, #fff);
}
.therapy-mega-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 26px 20px;
}
.therapy-mega-card {
  background: var(--light-gray, #f5f5f7);
  border-radius: 14px;
  padding: 18px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-light, 0 1px 4px rgba(20, 20, 38, 0.04));
  align-items: flex-start;
  min-height: 110px;
  transition: box-shadow 0.15s;
}
.therapy-mega-card:hover {
  box-shadow: 0 6px 24px rgba(20, 20, 38, 0.13);
}
.therapy-mega-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 7px;
}
.therapy-mega-desc {
  font-size: 13px;
  color: var(--text, #232324);
  opacity: 0.77;
  margin-bottom: 9px;
  line-height: 1.5;
}
.therapy-mega-learn {
  font-size: 13px;
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  margin-top: auto;
  margin-bottom: 0;
}
.therapy-mega-learn:hover {
  color: var(--accent, #ffcb31);
}

/* Hide default arrow in summary tag if accidentally used */
summary::-webkit-details-marker {
  display: none;
}

/* --- */

/* MOBILE MENU STYLES */
/* Start by hiding mobile elements by default */

/* FIX: Visually hide the checkbox but keep it clickable via the label */
#menu-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Hide mobile menu elements by default */
.hamburger-menu,
.close-btn {
  display: none;
}
.mobile-menu {
  display: none;
}

/* Media Query for devices smaller than 1024px (Tablets & Phones) */
@media (max-width: 1024px) {
  /* Hide the desktop navigation on small screens */
  .nav-links,
  .nav-buttons {
    display: none;
  }

  /* Show the hamburger menu icon */
  .hamburger-menu {
    display: block; /* Ensure it's visible in mobile */
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: 30px;
    height: 25px;
  }

  /* Default Mobile Hamburger Color (Transparent/Hero State) */
  .hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white); /* White for dark/hero background */
    margin-bottom: 6px;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  /* 🌟 SCROLLED STATE Mobile Hamburger Color 🌟 */
  .navbar.scrolled .hamburger-menu .bar {
    background-color: var(--text-dark); /* Dark for white background */
  }

  .hamburger-menu .bar:last-child {
    margin-bottom: 0;
  }

  /* Mobile Sidebar Menu */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: min(85vw, 350px); /* Responsive width, no wider than 350px */
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1002;
    transition: right 0.4s ease-in-out;
    overflow-y: auto; /* Enable scrolling for long menus */
    padding: 60px 25px 30px;
  }

  .mobile-menu > a,
  .mobile-dropdown summary {
    color: var(--text-dark);
    font-weight: 500;
    padding: 15px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--new-gray);
    cursor: pointer;
  }

  /* Styles for the mobile dropdowns */
  .mobile-dropdown {
    border-bottom: 1px solid var(--new-gray);
  }
  .mobile-dropdown ul {
    list-style: none;
    padding-left: 15px;
    padding-bottom: 15px;
  }
  .mobile-dropdown li a {
    display: block;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-mid);
  }
  .mobile-dropdown ul li a:hover {
    color: var(--primary);
  }

  /* Styles for the close button */
  .close-btn {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
  }

  /* Mobile buttons */
  .mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
  }
  .mobile-buttons .btn-primary-a {
    padding: 12px 20px;
    text-align: center;
    font-size: 1rem;
  }
  .mobile-buttons .btn {
    padding: 12px 20px;
    text-align: center;
    font-size: 1rem;
  }

  /* ANIMATION EFFECT: CHECKBOX TOGGLE */
  #menu-toggle:checked ~ .mobile-menu {
    right: 0;
  }
  #menu-toggle:checked ~ .hamburger-menu .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  #menu-toggle:checked ~ .hamburger-menu .bar:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle:checked ~ .hamburger-menu .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* 1. Global Setup & Typography */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #f3f4f6; /* bg-gray-100 */
}

/* 2. Footer Styling */
.footer-base {
  color: #fff;
  padding-top: 2.5rem; /* pt-10 */
  margin-top: auto; /* mt-auto */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-2xl */
}

/* 3. Background and Overlay */
.footer-bg-container {
  position: relative;
  background-size: cover;
  background-position: center;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background-color: #fff;
  opacity: 0.9;
}

/* 4. Content Wrapper */
.footer-content-wrapper {
  position: relative;
  max-width: 1280px; /* max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem; /* px-4 */
  font-size: 0.875rem; /* text-sm */
  padding-top: 2rem; /* pt-8 */
  padding-bottom: 1rem; /* pb-4 */
}

@media (min-width: 640px) {
  /* sm breakpoint */
  .footer-content-wrapper {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  } /* sm:px-6 */
}

@media (min-width: 1024px) {
  /* lg breakpoint */
  .footer-content-wrapper {
    padding-left: 2rem;
    padding-right: 2rem;
  } /* lg:px-8 */
}

/* 5. Navigation Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* grid-cols-2 */
  gap: 2rem 1.5rem; /* gap-y-8 gap-x-6 */
  padding-bottom: 2.5rem; /* pb-10 */
  border-bottom: 1px solid #d1d5db; /* border-b border-gray-300 */
}

@media (min-width: 768px) {
  /* md breakpoint */
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  } /* md:grid-cols-4 */
}

@media (min-width: 1024px) {
  /* lg breakpoint */
  .footer-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  } /* lg:grid-cols-8 */
}

/* 6. Column Headings and Links */
.column-title a {
  color: #111827; /* text-gray-900 */
  font-weight: 700; /* font-bold */
  text-transform: uppercase;
  letter-spacing: 0.05em; /* tracking-wider */
  font-size: 1rem; /* text-base */
  margin-bottom: 1rem; /* mb-4 */
  display: block; /* Ensure it's clickable */
  transition: color 0.3s ease;
  text-decoration: none; /* Removed underline */
}

.column-title a:hover {
  color: #4f46e5; /* hover:text-indigo-600 */
  text-decoration: underline; /* Optional: Re-add underline on hover for visibility */
}

.footer-link-group a {
  display: block;
  color: #374151; /* text-gray-700 */
  transition: color 0.3s ease; /* transition-colors */
  padding: 0.25rem 0;
  text-decoration: none; /* Removed underline */
}

.footer-link-group a:hover {
  color: #4f46e5; /* hover:text-indigo-600 */
  text-decoration: underline; /* Optional: Re-add underline on hover for visibility */
}

/* 7. Social Media Links */
.social-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0; /* py-6 */
  border-bottom: 1px solid #d1d5db; /* border-b border-gray-300 */
  gap: 1rem; /* space-y-4 */
}

.social-links a {
  color: #374151; /* text-gray-700 */
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space-x-2 */
  text-decoration: none; /* Removed underline */
}

.social-links a:hover {
  color: #4f46e5; /* hover:text-indigo-600 */
  /* No underline on hover for cleaner look on social icons */
}

.social-divider {
  color: #9ca3af; /* text-gray-400 */
  display: none;
}

@media (min-width: 768px) {
  /* md breakpoint */
  .social-links {
    flex-direction: row;
    gap: 0;
  }
  .social-links a {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .social-divider {
    display: block;
  }
}

/* 8. Accreditation Strip */
.accreditation-strip {
  background-color: #fff;
  padding: 1.5rem 0; /* py-6 */
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); /* shadow-inner */
}

.logo-container {
  position: relative;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 1rem; /* gap-4 */
}

.accreditation-logo {
  width: 3rem; /* w-12 */
  height: 3rem; /* h-12 */
  object-fit: contain;
  border-radius: 0.5rem; /* rounded-lg */
}

.accreditation-logo[alt="Adarsh World School Dwarka 011 4501 7923, 4501 7924  NEASC Logo"] {
  width: 5rem; /* w-20 */
  height: 2.5rem; /* h-10 */
}

@media (min-width: 768px) {
  /* md breakpoint */
  .accreditation-logo {
    width: 4rem; /* md:w-16 */
    height: 4rem; /* md:h-16 */
  }
  .accreditation-logo[alt="Adarsh World School Dwarka 011 4501 7923, 4501 7924  NEASC Logo"] {
    width: 6rem; /* md:w-24 */
    height: 3rem; /* md:h-12 */
  }
}

/* 9. WhatsApp Button */
.whatsapp-btn {
  position: absolute;
  right: 1rem; /* right-4 */
  top: 50%;
  transform: translateY(-50%);
  background-color: #10b981; /* bg-green-500 */
  border-radius: 9999px; /* rounded-full */
  padding: 0.5rem; /* p-2 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.06); /* shadow-lg */
  transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #059669; /* hover:bg-green-600 */
}

@media (min-width: 768px) {
  /* md breakpoint for static positioning */
  .whatsapp-btn {
    position: static;
    transform: none;
    margin-left: 1.5rem; /* md:ml-6 */
  }
}
