/* ==========================================================================
   Homepage Specific Styles (Figma Perfect Match)
   ========================================================================== */

/* Utility colors */
.bg-light-blue {
  background-color: var(--accent-light);
}
.bg-primary-dark {
  background-color: var(--secondary-color);
}
.bg-secondary-dark {
  background-color: var(--secondary-color);
}
.text-green-500 {
  color: #00c300;
}
.text-blue-500 {
  color: #1877f2;
}

/* 0. Header (Overrides for perfect fit) */
.site-header {
  background: white;
  /* Box shadow below header if needed, but keeping subtle */
  box-shadow: var(--shadow-md);
  padding: 0; /* Removing padding, using height/flex for perfect centering */
  height: 104px; /* Exact height from screenshot */
  position: sticky;
  top: 0;
  z-index: 9999; /* Ensure header and its dropdowns sit above hero banner text */
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%; /* Fill the 104px header */
}
.header-logo {
  margin-right: 0;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

/* Navigation */
.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
}
.main-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  gap: 4px; /* Figma exact gap */
  align-items: center;
  height: 100%;
}
.main-nav ul li {
  display: flex;
  align-items: center;
  height: 100%;
}
.main-nav a {
  text-decoration: none;
  color: #053039; /* Exact Figma inactive color */
  font-family: "Noto Sans Thai", sans-serif; /* Match Figma visual render */
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 12px; /* Figma layout_8W21YZ */
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}
/* Active and Hover state styles */
.main-nav a.active,
.main-nav a:hover {
  color: #20a3ad; /* Exact Figma active color */
  border-color: #20a3ad;
}

/* Language switcher styles moved to index.html inline for precise Figma matching */

/* Mobile hamburger button — hidden by default on desktop */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 4px;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #053039;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 1. Hero Section (Container Width Image Slider) */
.hero-section {
  position: relative;
  padding: 40px 0 56px 0; /* Add top padding to separate from header */
  background: white;
}
.hero-slider-wrap {
  position: relative;
  width: 100%;
  /* Keep banner constrained horizontally to match container */
  max-width: 1320px; /* Assuming standard Bootstrap XXL container width, adjust if needed */
  margin: 0 auto;
  border-radius: 12px;
  /* Add slight shadow to match Figma */
  box-shadow: var(--shadow-sm);
}

.hero-slider {
  display: flex;
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden; /* Ensure image respects border radius */
}

.hero-slide {
  min-width: 100%;
  display: none; /* Hide non-active slides */
}
.hero-slide.active {
  display: block;
}

.slide-image-wrapper {
  width: 100%;
  /* Ensure image scales proportionally and crops if necessary */
  aspect-ratio: 16 / 7; /* Adjust aspect ratio to roughly match the screenshot */
  background-color: var(--accent-light);
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This makes the WP uploaded image cover the box beautifully without stretching */
  display: block;
}

/* Slider Controls (Arrows) */
.slider-controls-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; /* Matches .container width */
  height: 0;
  pointer-events: none; /* Let clicks pass through empty space */
}

.slider-nav-btn {
  position: absolute;
  top: 50%; /* Centered based on wrapper height */
  transform: translateY(-50%);
  width: 48px; /* Slightly smaller buttons to match screenshot */
  height: 48px;
  background: white;
  border-radius: 50%;
  border: 1px solid var(--divider-color); /* Light border */
  box-shadow: var(--shadow-sm); /* Subtle shadow */
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10; /* Ensure it stays above the image */
}
.slider-nav-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.05);
}
.slider-nav-btn.prev {
  left: 24px; /* Move inside the container */
}
.slider-nav-btn.next {
  right: 24px; /* Move inside the container */
}

/* Dots */
.slider-dots-container {
  position: absolute;
  bottom: 24px; /* Position over the image */
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}
.slider-dots-container .dot {
  display: inline-block;
  width: 20px; /* Short capsule for inactive */
  height: 6px;
  background: #e2e8f0; /* Soft gray color from screenshot */
  border-radius: 4px;
  margin: 0 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dots-container .dot.active {
  background: var(--primary-color);
  width: 48px; /* Significantly wider for active state */
}
.slider-dots-container .dot:hover {
  opacity: 0.8;
}

/* Base Section Spacing */
.section-padding {
  padding: 56px 0;
}

/* Section Titles - Exact Figma values */




/* 3. Hero Text Section */
.hero-text-section {
  background-color: var(--accent-light);
  padding: 56px 20px;
}
.hero-text-container {
  max-width: 800px;
  margin: 0 auto;
}
.hero-text-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 24px;
  line-height: 1.21em;
}
.hero-text-desc {
  font-family: "Noto Sans Thai", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4em;
  color: #353b41;
  margin: 0;
}

/* 4. Why Us Section */
.why-us-section {
  background-color: var(--bg-white);
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid transparent; /* no border in normal state */
  box-shadow: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  height: 416px;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: #69ced6;
  box-shadow: 0px 4px 12px 0px rgba(87, 214, 224, 0.3);
}

/* Image wrapper fills the full card */
.why-card__img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

/* Background photo */
.why-card__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay — logo top, text bottom (same as gallery card) */
.why-card-overlay {
  position: absolute;
  inset: 0;
  padding: 16px;
  background: linear-gradient(
    180deg,
    rgba(32, 163, 173, 0) 40%,
    rgba(32, 163, 173, 1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.why-card-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.why-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.why-card h3 {
  color: white;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}
.why-card p {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}


/* 5. Programs & Schedule Sections */
.programs-section {
  background-color: var(--accent-light);
}
.other-progs-section {
  background-color: white;
}
.home-schedules {
  background-color: var(--accent-light);
}

/* 3. Programs Section */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prog-card {
  background: white;
  border-radius: 16px; /* Figma exact */
  overflow: hidden;
  position: relative;
  border: 1px solid transparent; /* default no border */
  box-shadow: 0px 4px 12px 0px rgba(150, 150, 150, 0.2); /* Figma RangsitNa/Card-Drop */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.prog-card:hover {
  transform: translateY(-4px);
  border-color: #69ced6; /* Figma stroke teal on hover */
  box-shadow: 0px 4px 12px 0px rgba(87, 214, 224, 0.3); /* Figma RangsitNa/Card-Hover */
}
.prog-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ff3b30;
  color: white;
  padding: 6px 12px;
  border-radius: var(--border-radius-pill);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.prog-img {
  height: 318px;
  display: block;
  overflow: hidden;
} /* Figma: 318px */
.prog-img svg {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
}
.prog-card:hover .prog-img svg {
  transform: scale(1.05);
}

.prog-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
} /* Figma: padding 16px, gap 24px, LEFT align */
.prog-body .prog-label {
  color: #20a3ad;
  font-size: 24px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
} /* Figma: 24px/600 */
.prog-body h3 {
  color: #20a3ad;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.21;
  margin: 0;
} /* Figma: 32px/600/#20A3AD */
.prog-body .prog-duration {
  color: #053039;
  font-weight: 500;
  font-size: 20px;
  margin: 0;
} /* Figma: 20px/500/#053039 */
.prog-body .prog-desc {
  color: #353b41;
  font-size: 16px;
  line-height: 1.375;
  margin: 0;
  flex-grow: 1;
  font-weight: 400;
} /* Figma: 16px/400/#353B41 */

.btn-outline-cyan {
  border: 1px solid #20a3ad; /* Figma stroke */
  color: #053039; /* Figma fill_MI8615 */
  background: white;
  padding: 12px 24px; /* Figma layout */
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  align-self: flex-start; /* Figma: hug width, not stretch */
}
.btn-outline-cyan:hover {
  background: #20a3ad;
  color: white;
}

/* 4. Other Progs Section */
.other-progs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Figma: 2 columns, 648px each */
  column-gap: 24px; /* Figma: gap between columns */
  row-gap: 16px; /* Figma: gap between rows */
  max-width: 1320px;
  margin: 0 auto;
}
.other-prog-box {
  display: flex;
  flex-direction: row; /* Figma: horizontal card */
  align-items: flex-start;
  gap: 24px; /* Figma: gap between image and text */
  padding: 16px; /* Figma: 16px all sides */
  border: 1px solid transparent; /* default: no border */
  border-radius: 16px; /* Figma: 16px */
  background: white; /* Figma: default white bg */
  box-shadow: 0px 4px 12px 0px rgba(150, 150, 150, 0.2); /* Figma: RangsitNa/Card-Drop */
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}
.other-prog-box:hover {
  background: #eaf6f8; /* Added bg color on hover as requested */
  border-color: #69ced6; /* Figma: teal border on hover */
  box-shadow: 0px 4px 12px 0px rgba(87, 214, 224, 0.3); /* Figma: RangsitNa/Card-Hover */
  transform: translateY(-2px);
}
/* Card 1 special: has hover state by default in Figma (teal border + bg) */
.other-prog-box.active-card {
  background: #eaf6f8; /* Figma: fill_VHRCMU */
  border-color: #69ced6; /* Figma: stroke_S22682 */
  box-shadow: 0px 4px 12px 0px rgba(87, 214, 224, 0.3); /* Figma: Card-Hover */
}
.other-prog-box .prog-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #d4edf0;
}
.other-prog-box .prog-circle img,
.other-prog-box .prog-circle svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.other-prog-box .info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.other-prog-box .info h4 {
  color: #20a3ad;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  line-height: 1.21;
} /* Figma: 24px/600/#20A3AD */
.other-prog-box .info p {
  color: #353b41;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  line-height: 1.375;
} /* Figma: 16px/400/#353B41 */

/* 5. Schedules */
.home-schedules {
  background-color: var(--accent-light); /* Match Figma bg color */
}
.sched-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sched-col {
  background-color: var(--primary-color);
  border-radius: 16px;
  padding: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: default;
}
.sched-col:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(32, 163, 173, 0.2);
}

.sched-header {
  color: white;
  padding: 16px 24px;
  text-align: left;
}
.sched-header-eyebrow {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 500;
  margin-bottom: 4px;
}
.sched-header h3 {
  font-size: 32px;
  font-weight: 500;
  color: white;
  margin: 0;
  line-height: 1.2;
}
.sched-header-time {
  font-size: 20px;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 8px;
  display: block;
}

.sched-body {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  transition: background-color 0.3s ease;
}
.sched-col:hover .sched-body {
  background-color: var(--accent-light);
}

.sched-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sched-timeline li {
  position: relative;
  padding-left: 50px;
  padding-bottom: 32px;
}
.sched-timeline li:last-child {
  padding-bottom: 0;
}
.sched-timeline li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 15px;
  height: 100%;
  width: 8px;
  background-color: var(--accent-light);
  z-index: 1;
  transition: background-color 0.3s ease;
}
.sched-col:hover .sched-timeline li::before {
  background-color: white;
}
.sched-timeline li:last-child::before {
  display: none;
}
.sched-timeline li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #9fa4aa;
  z-index: 2;
}
.sched-timeline li:first-child::after {
  background-color: var(--primary-color);
}
.sched-timeline .model-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  display: block;
  margin-bottom: 12px;
  line-height: 1.2;
}
.sched-timeline .date-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  line-height: 1.2;
}
.sched-timeline .date-row:last-child {
  margin-bottom: 0;
}
.sched-timeline .date-label {
  font-size: 16px;
  font-weight: 500;
  color: #62676c;
}
.sched-timeline .date-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary-color);
}

.btn-schedule-view-all {
  display: inline-block;
  padding: 24px 32px;
  font-size: 24px;
  font-weight: 500;
  border-radius: 12px;
  border: 1px solid var(--primary-color);
  color: var(--secondary-color);
  background-color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-schedule-view-all:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 6. CTA / Pre-Footer */
.cta-banner {
  background-color: var(--primary-color);
  padding: 56px 0;
}
.cta-banner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.cta-banner-content {
  text-align: center;
}
.cta-banner h2 {
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 24px 0;
  line-height: 1.21em;
  color: white;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}
.cta-banner-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-white {
  background: white;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  padding: 24px 32px;
  font-size: 24px;
  border-radius: 12px;
  transition: background 0.3s;
}
.btn-white:hover {
  background: var(--accent-light);
}
.btn-outline-white {
  background: transparent;
  border: 1px solid white;
  color: white;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  padding: 24px 32px;
  font-size: 24px;
  border-radius: 12px;
  transition:
    background 0.3s,
    color 0.3s;
}
.btn-outline-white:hover {
  background: white;
  color: var(--primary-color);
}

/* 7. Gallery */
.gallery-section {
  background-color: white;
}
.gallery-section 
.gallery-section 
.gallery-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.gallery-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.gallery-block {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.gallery-block img,
.gallery-block svg {
  transition: transform 0.5s ease;
}
.gallery-block:hover img,
.gallery-block:hover svg {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 32px;
  text-align: center;
  background-color: var(--dark-bg);
  border-radius: 12px;
}
.gallery-overlay h3 {
  color: white;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.gallery-overlay p {
  color: white;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

/* 8. Footer Base Fixes */
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 32px;
  align-items: flex-start;
}
.footer-col.brand {
  grid-column: auto;
}
.footer-col h4,
.footer-col p,
.footer-col a {
  color: white;
}
.footer-col.nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: all 0.3s;
  text-decoration: none;
  margin-left: -13px; /* Offset the 12px padding + 1px border so it visually aligns left with logo */
}
.footer-col.nav a:hover {
  border-color: var(--primary-color);
  background-color: transparent;
}

/* 9. Home Contact Section (Refactored from inline) */
.home-contact-section {
  background-color: #053039;
  text-align: center;
  color: white;
}
.home-contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}




.home-contact-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
  width: 100%;
  max-width: 992px;
}

.home-contact-social {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 24px;
}
.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
  text-align: center;
}
.social-icon {
  width: 64px;
  height: 64px;
}
.social-text {
  font-size: 18px;
  font-weight: 400;
  color: white;
}

.social-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  text-align: center;
}
.qr-img {
  width: 136px;
  height: 136px;
  border-radius: 12px;
  background: white;
  padding: 4px;
}
.qr-text {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qr-text span {
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.home-contact-hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0;
  width: 100%;
}

.home-contact-phones {
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 24px;
}
.phone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  text-align: center;
}
.phone-icon {
  width: 32px;
  height: 32px;
}
.phone-text {
  font-size: 16px;
  font-weight: 500;
  color: white;
  text-align: center;
  line-height: 1.5;
}
.phone-name {
  font-weight: 400;
}
.phone-divider {
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   RESPONSIVE — Tablet & Mobile
   ========================================================================== */

/* --- Tablet: 768px – 1199px --- */
@media (max-width: 1199px) {
  /* Header */
  .site-header {
    height: auto;
    min-height: 72px;
  }
  .header-container {
    padding: 12px 24px;
    flex-wrap: wrap;
  }
  .site-brand-text h1 {
    font-size: 22px;
  }
  .site-brand-text span {
    font-size: 13px;
  }
  .header-logo img {
    width: 60px !important;
    height: 60px !important;
  }

  /* Hero */
  .hero-slider-wrap {
    border-radius: 12px;
  }
  .hero-slider img,
  .hero-slide img {
    height: 380px;
    object-fit: cover;
  }

  /* Why Us */
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Programs */
  .prog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .other-progs-grid {
    grid-template-columns: 1fr;
  }

  /* Schedule */
  .sched-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-col.brand {
    grid-column: 1 / -1;
  }
  .footer-col.qr {
    align-items: flex-start;
    text-align: left;
  }

  /* Section titles */
  
}

/* --- Mobile: max 767px --- */
@media (max-width: 767px) {
  /* Container */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Header */
  .site-header {
    height: auto !important;
    min-height: 64px;
  }
  .header-container {
    padding: 10px 16px !important;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .site-brand-text h1 {
    font-size: 18px !important;
  }
  .site-brand-text span {
    display: none !important;
  }
  .header-logo img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
  }

  /* Show hamburger, hide desktop nav */
  .mobile-menu-toggle {
    display: flex !important;
  }
  .main-nav {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    height: auto !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb;
    padding: 0;
    /* Position absolute to span full width under header */
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99999 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Smooth animation state (Hidden) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  /* header-right: hamburger + lang-switcher */
  .header-right {
    gap: 4px !important;
  }
  .header-divider {
    display: none !important;
  }

  /* Mobile nav dropdown (shown when .open) */
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column !important;
    gap: 0 !important;
    height: auto !important;
    align-items: stretch !important;
    width: 100%;
  }
  .main-nav ul li {
    height: auto !important;
  }
  .main-nav a {
    padding: 16px 16px !important; /* Changed from 20px to 16px to perfectly align with logo */
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    width: 100%;
    display: block;
    font-size: 16px !important;
    color: #053039;
    text-align: left !important;
  }

  /* Hamburger to X animation */
  .mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile sub-menu: override hover — disable desktop hover completely */
  .menu-item-has-children {
    flex-direction: column;
    align-items: stretch;
  }
  .menu-item-has-children:hover .sub-menu {
    opacity: 0;
    visibility: hidden;
    transform: none;
    display: block;
  }
  .menu-item-has-children:hover > a {
    border-color: transparent;
    background-color: transparent;
    color: inherit;
  }

  /* Mobile sub-menu base: override ALL desktop properties */
  .main-nav ul.sub-menu {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: #f3f7f7;
    border: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, padding 0.3s ease;
    margin: 0;
    z-index: auto;
    transform: none;
    list-style: none;
    flex-direction: column;
    gap: 0;
  }

  /* Open state: expand inline */
  .menu-item-has-children.sub-menu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    padding: 0;
    display: block;
  }
  .menu-item-has-children.sub-menu-open > a {
    color: #20A3AD;
  }

  /* Sub-menu items: full-width accordion style */
  .main-nav .sub-menu a:hover,
  .main-nav .sub-menu a:active {
    background-color: #e6f3f4;
  }

  /* Arrow rotation */
  .menu-item-has-children > a i {
    transition: transform 0.3s;
  }
  .menu-item-has-children.sub-menu-open > a i {
    transform: rotate(180deg);
  }

  /* Hero */
  .hero-section {
    padding: 16px 0 24px !important;
  }

  /* Section padding — override inline styles */
  section[style*="padding: 56px 0"] {
    padding: 40px 0 !important;
  }

  /* Section titles */
  
  

  /* Why Us grid */
  .why-us-grid {
    grid-template-columns: 1fr !important;
  }
  .why-card {
    max-width: 100%;
  }

  /* Programs */
  .prog-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px;
    margin: 0 auto;
  }
  .other-progs-grid {
    grid-template-columns: 1fr !important;
  }

  /* Schedule */
  .sched-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Gallery */
  .gallery-layout {
    grid-template-columns: 1fr !important;
  }

  /* CTA section */
  .cta-banner h2 {
    font-size: 24px !important;
    line-height: 1.4 !important;
  }
  .cta-banner p {
    font-size: 16px !important;
  }
  .btn-white,
  .btn-outline-white {
    padding: 14px 24px !important;
    font-size: 16px !important;
    max-width: 320px;
    text-align: center;
    justify-content: center;
  }

  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }
  .site-main,
  section {
    max-width: 100%;
    overflow-x: hidden;
  }
  .container {
    max-width: 100%;
  }

  /* Home Contact Mobile Adjustments */
  

  .home-contact-social {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .social-qr {
    order: -1;
    margin-bottom: 16px;
  } /* Put QR at top on mobile */

  .home-contact-phones {
    flex-direction: column;
    gap: 24px;
  }
  .phone-divider {
    width: 100%;
    height: 1px;
  } /* Change vertical divider to horizontal */

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }
  .footer-col.brand {
    grid-column: auto;
    text-align: center;
  }
  .footer-brand-wrap {
    justify-content: center;
  }
  .footer-col.nav {
    text-align: left;
  }
  .footer-col.nav a {
    margin-left: 0;
  }
  .footer-col.contact {
    text-align: left;
  }
  .footer-col.qr {
    align-items: center;
    text-align: center;
  }
  .footer-copyright {
    margin-top: 32px;
    font-size: 14px;
  }
}
