/* ============================================
   Jungezelle — Light Theme (IoH-Inspired Layout)
   Primary: #27A8DB  Secondary: #2A4060  Base: #fff
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #27A8DB;
  --primary-dark: #1e8fbf;
  --primary-light: rgba(39, 168, 219, 0.1);
  --secondary: #2A4060;
  --secondary-light: #35527a;
  --white: #ffffff;
  --bg-body: #ffffff;
  --bg-soft: #f7f9fc;
  --text-heading: #1a2a3a;
  --text-body: #4a5568;
  --text-muted: #8896a6;
  --border: rgba(42, 64, 96, 0.1);

  --font-main: 'Space Grotesk', sans-serif;
  --section-pad: clamp(5rem, 10vw, 9rem);
  --content-gap: clamp(1.25rem, 3vw, 2.5rem);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.4s var(--ease-smooth);
}


/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all var(--transition); }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--primary); color: var(--white); }


/* ============================================
   HEADER / NAVBAR (IoH-style flat transparent)
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 20px 0;
  transition: all 0.4s ease;
}

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

/* Logo */
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img { height: 26px; }
.logo-dark { display: none; }
.logo-light { display: block; }

/* Center links */
.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Right side */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nav link styling */
.h-link {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.4s ease;
  white-space: nowrap;
}

/* CTA Button in header */
.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 4px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  white-space: nowrap;
}

.header-btn .bi { font-size: 12px; }

/* --- Light state (over hero/dark bg) --- */
.header.is-light .h-link { color: var(--white); }
.header.is-light .h-link:hover { opacity: 0.7; }
.header.is-light .h-link.active { opacity: 1; }
.header.is-light .header-btn {
  background: rgba(241, 241, 241, 0.15);
  color: var(--white);
  border: 1px solid rgba(241, 241, 241, 0.08);
}
.header.is-light .header-btn:hover { background: rgba(241, 241, 241, 0.25); }
.header.is-light .logo-light { display: block; }
.header.is-light .logo-dark { display: none; }

/* --- Dark state (over light bg) --- */
.header.is-dark {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
  padding: 14px 0;
}
.header.is-dark .h-link { color: var(--text-heading); }
.header.is-dark .h-link:hover { color: var(--primary); opacity: 1; }
.header.is-dark .h-link.active { color: var(--primary); }
.header.is-dark .header-btn {
  background: var(--secondary);
  color: var(--white);
  border: 1px solid var(--secondary);
}
.header.is-dark .header-btn:hover { background: var(--primary); border-color: var(--primary); }
.header.is-dark .logo-light { display: none; }
.header.is-dark .logo-dark { display: block; }

/* Hamburger */
.header-hamburger {
  display: none;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.hamburger-text { font-size: 13px; font-weight: 500; }
.header.is-light .hamburger-text { color: var(--white); }
.header.is-dark .hamburger-text { color: var(--text-heading); }
.menu-close { display: none; }
.header-hamburger.open .menu-open { display: none; }
.header-hamburger.open .menu-close { display: inline; }

.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 24px;
}

.hamburger-lines span {
  display: block;
  height: 1.5px;
  border-radius: 1px;
  transition: all 0.3s ease;
}
.header.is-light .hamburger-lines span { background: var(--white); }
.header.is-dark .hamburger-lines span { background: var(--text-heading); }

.header-hamburger.open .line-1 { transform: rotate(45deg) translate(3px, 3px); }
.header-hamburger.open .line-2 { transform: rotate(-45deg) translate(3px, -3px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--secondary);
  z-index: 98;
  padding-top: 100px;
  flex-direction: column;
  align-items: center;
}
.mobile-nav.show { display: flex; }

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
}

.mobile-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  font-weight: 400;
  transition: color 0.3s ease;
}
.mobile-link:hover, .mobile-link.active { color: var(--white); opacity: 1; }

.mobile-nav .header-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
}


/* ============================================
   HERO (IoH-style: full viewport, text bottom)
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--secondary);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 64, 96, 0.3) 0%,
    rgba(42, 64, 96, 0.15) 40%,
    rgba(42, 64, 96, 0.5) 100%
  );
  z-index: 1;
}

/* Hero wrapper (stats area) */
.hero-wrapper {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8em 32px 0;
}

/* Stats on right */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 28%;
  margin-left: auto;
}

.hero-stat-block {}

.stat-bar-line {
  background: rgba(255, 255, 255, 0.15);
  width: 100%;
  height: 1px;
  position: relative;
  margin-bottom: 12px;
}

.stat-bar-active {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, 0.6);
  transition: width 1.5s ease-in-out;
}

.stat-title {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  margin-bottom: 4px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-big-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.stat-dot.active { background: var(--white); }

/* Bottom section */
.hero-bottom {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 32px 40px;
}

.hero-bottom-left {
  max-width: 65ch;
}

.hero-heading {
  font-size: clamp(2.5rem, 5vw, 4em);
  font-weight: 500;
  color: var(--white);
  line-height: 0.95;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero-subtext {
  font-size: clamp(0.95rem, 1.2vw, 1.15em);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  line-height: 1.5;
  max-width: 50ch;
}

/* Hero button (bottom-right) */
.hero-bottom-right {
  flex-shrink: 0;
}

.hero-btn {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 10px;
  background: rgba(241, 241, 241, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(241, 241, 241, 0.08);
  border-radius: 4px;
  color: var(--white);
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.4s ease;
  min-width: 120px;
}

.hero-btn:hover {
  background: rgba(241, 241, 241, 0.18);
  color: var(--white);
  opacity: 1;
}

.hero-btn-text { margin-bottom: 6px; }
.hero-btn-arrow { font-size: 16px; }


/* ============================================
   PAGE HEADER (subpages)
   ============================================ */
.page-header {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 60px;
  color: var(--white);
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--secondary);
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 64, 96, 0.4) 0%,
    rgba(42, 64, 96, 0.5) 40%,
    rgba(42, 64, 96, 0.85) 100%
  );
}

.page-header > .container {
  position: relative;
  z-index: 2;
}

.page-header .label-text { color: var(--primary); margin-bottom: 16px; }
.page-header .display-heading { max-width: 700px; color: var(--white); }
.page-header .body-text { color: rgba(255, 255, 255, 0.7); max-width: 560px; margin-top: 20px; }


/* ============================================
   SECTIONS
   ============================================ */
.section-light {
  background: var(--white);
  color: var(--text-heading);
  padding: var(--section-pad) 0;
}

.section-soft {
  background: var(--bg-soft);
  color: var(--text-heading);
  padding: var(--section-pad) 0;
}

.section-dark {
  background: var(--secondary);
  color: var(--white);
  padding: var(--section-pad) 0;
}

.section-light + .section-light,
.section-soft + .section-soft,
.section-dark + .section-dark {
  padding-top: 0;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
.display-heading {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}
.section-dark .display-heading { color: var(--white); }

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}
.section-dark .section-heading { color: var(--white); }

.h2-large {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-heading);
  max-width: 56ch;
}

.label-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
}
.section-dark .label-text { color: rgba(39, 168, 219, 0.8); }

.body-text {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.75;
  color: var(--text-body);
}
.section-dark .body-text { color: rgba(255, 255, 255, 0.75); }

/* Split Reveal */
.split-reveal .line { overflow: hidden; }
.split-reveal .line > div {
  transform: translateY(100%) rotateX(-80deg);
  opacity: 0;
  transform-origin: top center;
}


/* ============================================
   HEADLINE ROW (IoH "courses" intro style)
   ============================================ */
.headline-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.headline-box { flex: 1; }

.headline-btn { flex-shrink: 0; padding-top: 8px; }

.btn-general {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.btn-general:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  opacity: 1;
}

.btn-general .bi { font-size: 14px; }


/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary-dark:hover {
  background: var(--primary-dark);
  color: var(--white);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(39, 168, 219, 0.25);
}

.btn-primary-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary-light:hover {
  background: var(--white);
  color: var(--secondary);
  border-color: var(--white);
  opacity: 1;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  opacity: 1;
  transform: translateY(-1px);
}

.btn-primary-dark .bi, .btn-primary-light .bi, .btn-outline .bi {
  font-size: 14px;
  transition: transform 0.3s ease;
}
.btn-primary-dark:hover .bi, .btn-primary-light:hover .bi, .btn-outline:hover .bi {
  transform: translateX(3px);
}


/* ============================================
   CONTENT CARDS
   ============================================ */
.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  height: 100%;
  border: 1px solid var(--border);
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(42, 64, 96, 0.08);
  border-color: transparent;
}
.section-dark .content-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}
.section-dark .content-card:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.section-soft .content-card { background: var(--white); }

.content-card .card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
}
.section-dark .content-card .card-icon {
  background: rgba(39, 168, 219, 0.2);
}

.content-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--text-heading); }
.section-dark .content-card h3 { color: var(--white); }
.content-card p { font-size: 14px; line-height: 1.7; margin: 0; color: var(--text-muted); }
.section-dark .content-card p { color: rgba(255, 255, 255, 0.6); }


/* ============================================
   NUMBERED CARDS
   ============================================ */
.numbered-card { position: relative; padding-left: 80px; margin-bottom: 48px; }
.numbered-card .card-number {
  position: absolute; left: 0; top: -4px;
  font-size: 48px; font-weight: 700; color: var(--primary); opacity: 0.15; line-height: 1;
}
.numbered-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--text-heading); }
.numbered-card p { font-size: 15px; line-height: 1.75; color: var(--text-body); }
.section-dark .numbered-card .card-number { opacity: 0.3; }
.section-dark .numbered-card h3 { color: var(--white); }
.section-dark .numbered-card p { color: rgba(255, 255, 255, 0.65); }


/* ============================================
   STATS (standalone, non-hero)
   ============================================ */
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(3rem, 5vw, 5rem); font-weight: 700;
  line-height: 1; margin-bottom: 8px; color: var(--primary);
}
.section-dark .stat-number { color: var(--white); }
.stat-label { font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.section-dark .stat-label { color: rgba(255, 255, 255, 0.5); }

.stat-bar { height: 3px; background: var(--primary-light); border-radius: 2px; margin-top: 24px; overflow: hidden; }
.stat-bar-fill { height: 100%; background: var(--primary); border-radius: 2px; width: 0; transition: width 1.5s var(--ease-smooth); }
.section-dark .stat-bar { background: rgba(255, 255, 255, 0.1); }
.section-dark .stat-bar-fill { background: var(--primary); }


/* ============================================
   GRIDS & LAYOUTS
   ============================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--content-gap); }
.feature-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--content-gap); }


/* ---------- Timeline Editorial (numbered vertical) ---------- */
.timeline-editorial {
  position: relative;
  padding-left: 60px;
  margin-top: 48px;
}

.timeline-editorial::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 56px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-number {
  position: absolute;
  left: -60px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-item:hover .timeline-number {
  border-color: var(--primary);
  color: var(--primary);
}

.timeline-content h3 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 14px;
  line-height: 1.3;
}

.timeline-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0;
}

@media (max-width: 767px) {
  .timeline-editorial { padding-left: 48px; }
  .timeline-editorial::before { left: 16px; }
  .timeline-number { left: -48px; width: 34px; height: 34px; font-size: 13px; }
}


/* ---------- Benefits Carousel (editorial image slider) ---------- */
.benefits-hero-heading {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 48px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.benefits-carousel-section {
  overflow: hidden;
}

.benefits-carousel-wrap {
  padding-left: max(32px, calc((100vw - 1140px) / 2 + 12px));
}

.benefits-splide .splide__track { overflow: visible; touch-action: pan-y; }
.benefits-splide .splide__list { align-items: stretch; touch-action: pan-y; }

.benefits-splide .splide__slide {
  border-radius: var(--radius-lg);
  overflow: hidden;
  touch-action: pan-y;
}

.benefit-slide {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.benefit-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(42, 64, 96, 0.5) 65%,
    rgba(42, 64, 96, 0.88) 100%
  );
}

.benefit-slide-content {
  position: relative;
  z-index: 2;
  padding: 32px 28px;
}

.benefit-slide-content h3 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.25;
}

.benefit-slide-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

/* Nav: progress bar + circle arrows */
.benefit-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 0 0;
  max-width: 500px;
}

.benefit-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(42, 64, 96, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.benefit-progress-fill {
  height: 100%;
  background: var(--secondary);
  border-radius: 2px;
  width: 33%;
  transition: width 0.4s ease;
}

.benefit-arrows {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.benefit-arrow-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-heading);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.benefit-arrow-btn:hover { color: var(--primary); }

.benefit-arrow-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(42, 64, 96, 0.2);
  flex-shrink: 0;
}

/* Hide default Splide pagination/arrows */
.benefits-splide .splide__pagination,
.benefits-splide .splide__arrows { display: none; }

@media (max-width: 767px) {
  .benefits-carousel-wrap { padding-left: 20px; }
  .benefit-slide { height: 400px; }
  .benefit-nav { max-width: 100%; padding-right: 20px; }
}


/* ---------- Service Image Cards ---------- */
.service-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-image-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease-smooth);
}

.service-image-card:hover {
  transform: scale(1.02);
  opacity: 1;
}

.service-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(39, 168, 219, 0.3) 0%, rgba(39, 168, 219, 0.75) 70%, rgba(39, 168, 219, 0.9) 100%);
  transition: background 0.4s ease;
}

.service-image-overlay.overlay-dark {
  background: linear-gradient(180deg, rgba(42, 64, 96, 0.3) 0%, rgba(42, 64, 96, 0.75) 70%, rgba(42, 64, 96, 0.9) 100%);
}

.service-image-card:hover .service-image-overlay {
  background: linear-gradient(180deg, rgba(39, 168, 219, 0.4) 0%, rgba(39, 168, 219, 0.85) 70%, rgba(39, 168, 219, 0.95) 100%);
}

.service-image-card:hover .service-image-overlay.overlay-dark {
  background: linear-gradient(180deg, rgba(42, 64, 96, 0.4) 0%, rgba(42, 64, 96, 0.85) 70%, rgba(42, 64, 96, 0.95) 100%);
}

.service-image-content {
  position: relative;
  z-index: 2;
  padding: 32px 28px;
}

.service-image-content h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.25;
}

.service-image-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .service-image-grid { grid-template-columns: 1fr 1fr; }
  .service-image-card { min-height: 340px; }
}

@media (max-width: 767px) {
  .service-image-grid { grid-template-columns: 1fr; }
  .service-image-card { min-height: 300px; }
}


/* ---------- Quality Section (full-bleed hero-style) ---------- */
.quality-section {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
}

.quality-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--secondary);
}

.quality-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42, 64, 96, 0.92) 0%,
    rgba(42, 64, 96, 0.8) 40%,
    rgba(39, 168, 219, 0.3) 100%
  );
}

.quality-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.quality-text .label-text {
  color: var(--primary);
  margin-bottom: 16px;
}

.quality-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.quality-text p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.quality-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quality-stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  transition: all 0.4s ease;
}

.quality-stat-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(6px);
}

.quality-stat-number {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
}

.quality-stat-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 10px;
  overflow: hidden;
}

.quality-stat-bar .stat-bar-fill {
  background: var(--primary);
}

.quality-stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991px) {
  .quality-inner { grid-template-columns: 1fr; }
  .quality-stats { flex-direction: row; flex-wrap: wrap; }
  .quality-stat-card { flex: 1; min-width: 200px; }
}

@media (max-width: 576px) {
  .quality-stats { flex-direction: column; }
  .quality-stat-card { min-width: auto; }
}


/* ---------- Video Section ---------- */
.video-section {
  padding: var(--section-pad) 0;
  background: var(--bg-soft);
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(42, 64, 96, 0.12);
}

.video-wrapper::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumb {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.video-thumb.is-playing .video-play-btn,
.video-thumb.is-playing::after { display: none; }

.video-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.video-thumb:hover img {
  transform: scale(1.03);
}

.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
  transition: background 0.3s ease;
}

.video-thumb:hover::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c41e3a;
  font-size: 2.5rem;
  padding-left: 6px;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.video-thumb:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: #ffffff;
}

.video-play-btn::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: videoPulse 2s ease-out infinite;
}

@keyframes videoPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}


.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.two-col-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; color: var(--text-heading); }
.section-dark .two-col-text h2 { color: var(--white); }
.two-col-text p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; color: var(--text-body); }
.section-dark .two-col-text p { color: rgba(255, 255, 255, 0.7); }

.two-col-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.two-col-visual img { width: 100%; border-radius: var(--radius-lg); }

.img-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-muted);
}
.section-dark .img-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
}


/* ============================================
   CONDITIONS GRID
   ============================================ */
.conditions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.condition-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; transition: all var(--transition);
  color: var(--text-heading);
}
.section-dark .condition-item { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--white); }
.section-light .condition-item, .section-soft .condition-item { background: var(--white); border: 1px solid var(--border); }
.condition-item:hover { transform: translateX(4px); }
.condition-item .bi { font-size: 18px; flex-shrink: 0; color: var(--primary); }


/* ============================================
   TIMELINE / STEPS
   ============================================ */
.steps-list { counter-reset: step; padding: 0; list-style: none; }
.step-item {
  counter-increment: step; position: relative;
  padding-left: 72px; padding-bottom: 40px;
  border-left: 1px solid var(--border); margin-left: 24px;
}
.section-dark .step-item { border-left-color: rgba(255, 255, 255, 0.1); }
.step-item:last-child { padding-bottom: 0; border-left: none; }
.step-item::before {
  content: counter(step); position: absolute; left: -17px; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.step-item h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text-heading); }
.section-dark .step-item h4 { color: var(--white); }
.step-item p { font-size: 14px; line-height: 1.7; margin: 0; color: var(--text-body); }
.section-dark .step-item p { color: rgba(255, 255, 255, 0.6); }


/* ============================================
   PROGRAM CARDS
   ============================================ */
.program-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: all var(--transition); height: 100%;
  display: flex; flex-direction: column;
}
.program-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(42, 64, 96, 0.08); border-color: var(--primary); }
.section-dark .program-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.section-dark .program-card:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--primary); }
.program-card .card-badge { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; color: var(--primary); }
.program-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; color: var(--text-heading); }
.section-dark .program-card h3 { color: var(--white); }
.program-card p { font-size: 14px; line-height: 1.75; flex-grow: 1; color: var(--text-body); }
.section-dark .program-card p { color: rgba(255, 255, 255, 0.6); }
.program-card .card-limit { font-size: 12px; font-weight: 600; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--primary); }
.section-dark .program-card .card-limit { border-top-color: rgba(255, 255, 255, 0.08); }


/* ============================================
   COMMITMENT FAQ ACCORDION
   ============================================ */
.commitment-accordion .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.commitment-accordion .accordion-item:first-of-type {
  border-top: 1px solid var(--border);
}
.commitment-accordion .accordion-header { margin: 0; }
.commitment-accordion .accordion-button {
  background: transparent;
  border: 0;
  border-radius: 0 !important;
  padding: 22px 8px;
  font-family: var(--font-main);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-heading);
  box-shadow: none;
  transition: color var(--transition);
}
.commitment-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}
.commitment-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
.commitment-accordion .accordion-button:hover { color: var(--primary); }
.commitment-accordion .accordion-button::after {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-size: 18px;
}
.commitment-accordion .accordion-body {
  padding: 4px 8px 28px;
  color: var(--text-body);
}
.commitment-accordion .accordion-body p {
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.commitment-accordion .accordion-body p:last-child { margin-bottom: 0; }
.commitment-accordion .faq-subhead {
  font-weight: 700;
  color: var(--text-heading);
}
.commitment-accordion .faq-limit {
  font-weight: 700;
  color: var(--primary);
  margin-top: 18px !important;
}


/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form .form-control {
  background: var(--white); border: 1px solid rgba(42, 64, 96, 0.15);
  border-radius: var(--radius-md); padding: 14px 18px;
  font-family: var(--font-main); font-size: 14px; color: var(--text-heading);
  transition: border-color var(--transition);
}
.contact-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(39, 168, 219, 0.1); outline: none; }
.contact-form .form-control::placeholder { color: var(--text-muted); }
.contact-form .form-label { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }

/* Contact info */
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; font-size: 15px; color: var(--text-body); }
.contact-info-list li .bi { font-size: 20px; margin-top: 2px; flex-shrink: 0; color: var(--primary); }
.contact-info-list a { color: var(--text-body); }
.contact-info-list a:hover { color: var(--primary); opacity: 1; }


/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--secondary); color: rgba(255, 255, 255, 0.6); padding: 80px 0 0; }
.footer-brand-logo img { height: 28px; opacity: 0.9; margin-bottom: 20px; }
.footer p { font-size: 14px; line-height: 1.7; }
.footer h6 { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); margin-bottom: 24px; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; opacity: 1; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.footer-links a:hover { color: #fff; opacity: 1; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.footer-contact li .bi { margin-top: 3px; color: var(--primary); flex-shrink: 0; }
.footer-contact a { color: rgba(255, 255, 255, 0.5); }
.footer-contact a:hover { color: #fff; opacity: 1; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 24px 0; margin-top: 60px; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255, 255, 255, 0.3); margin: 0; }


/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease; z-index: 999;
  border: none; box-shadow: 0 4px 16px rgba(39, 168, 219, 0.3);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); color: var(--white); opacity: 1; transform: translateY(-2px); }


/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.revealed { opacity: 1; transform: translateY(0); transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth); }


/* ============================================
   RESPONSIVE
   ============================================ */

/* ---------- TABLET & BELOW (≤991px) ---------- */
@media (max-width: 991px) {
  /* Navbar */
  .header-links, .header-right { display: none; }
  .header-hamburger { display: flex; padding: 8px; min-height: 44px; }
  .header.is-dark { padding: 12px 0; }

  /* Hero */
  .hero-stats { width: 40%; }
  .hero-heading { font-size: clamp(2rem, 5vw, 3rem); }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-wrapper { padding: 7em 24px 0; }

  /* Layout */
  .headline-row { flex-direction: column; gap: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid-2 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col-visual img { max-height: 480px; object-fit: cover; }

  /* Page header */
  .page-header { min-height: 45vh; padding-bottom: 48px; }

  /* Sections */
  .section-light, .section-soft, .section-dark { padding: clamp(4rem, 8vw, 6rem) 0; }

  /* Commitment accordion — stack columns */
  .commitment-accordion { margin-top: 12px; }
}


/* ---------- MOBILE (≤767px) ---------- */
@media (max-width: 767px) {
  /* Hero */
  .hero-wrapper { padding: 6.5em 20px 0; }
  .hero-bottom { padding: 0 20px 32px; }
  .hero-stats { width: 70%; }
  .hero-heading { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .hero-subtext { font-size: 0.95rem; }

  /* Hero button — full-width friendly */
  .hero-btn { min-width: 140px; }

  /* Typography */
  .display-heading { font-size: clamp(2rem, 8vw, 2.75rem); }
  .section-heading { font-size: clamp(1.6rem, 6vw, 2.1rem); }

  /* Grids */
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .conditions-grid { grid-template-columns: 1fr; }

  /* Page header */
  .page-header { min-height: 38vh; padding-bottom: 40px; }
  .page-header .body-text { font-size: 14px; }

  /* Cards — reduce padding */
  .content-card { padding: 28px 22px; }
  .content-card .card-icon { width: 44px; height: 44px; font-size: 18px; margin-bottom: 16px; }
  .program-card { padding: 28px 22px; }
  .numbered-card { padding-left: 60px; margin-bottom: 36px; }
  .numbered-card .card-number { font-size: 36px; }

  /* Buttons — touch target + readable size */
  .btn-primary-dark, .btn-primary-light, .btn-outline {
    padding: 14px 24px;
    font-size: 14px;
    min-height: 48px;
  }
  .btn-general { padding: 12px 18px; min-height: 44px; font-size: 13px; }

  /* Forms — 16px to prevent iOS zoom on focus */
  .contact-form .form-control,
  input.form-control, select.form-control, textarea.form-control {
    font-size: 16px;
    padding: 14px 16px;
  }
  .contact-form .form-label { font-size: 11px; }

  /* Sections */
  .section-light, .section-soft, .section-dark { padding: clamp(3.5rem, 10vw, 5rem) 0; }
  .section-light + .section-light, .section-soft + .section-soft, .section-dark + .section-dark { padding-top: 0; }

  /* Accordion */
  .commitment-accordion .accordion-button { padding: 18px 4px; font-size: 16px; }
  .commitment-accordion .accordion-body { padding: 2px 4px 22px; }
  .commitment-accordion .accordion-body p { font-size: 14px; }

  /* Footer */
  .footer { padding-top: 60px; }
  .footer h6 { margin-bottom: 16px; margin-top: 24px; }
  .footer-bottom { margin-top: 40px; }

  /* Timeline */
  .timeline-editorial { padding-left: 44px; margin-top: 32px; }
  .timeline-editorial::before { left: 14px; }
  .timeline-number { left: -44px; width: 30px; height: 30px; font-size: 12px; }
  .timeline-item { padding-bottom: 40px; }

  /* Step item */
  .step-item { padding-left: 52px; padding-bottom: 32px; }
  .step-item::before { width: 30px; height: 30px; left: -15px; font-size: 12px; }

  /* Quality stats */
  .quality-stats { flex-direction: column; }
  .quality-stat-card { min-width: auto; padding: 22px; }

  /* Contact info list */
  .contact-info-list li { font-size: 14px; gap: 12px; margin-bottom: 22px; }
  .contact-info-list li .bi { font-size: 18px; }

  /* Video */
  .video-play-btn { width: 64px; height: 64px; font-size: 2rem; }

  /* Back to top */
  .back-to-top { bottom: 20px; right: 20px; }

  /* Container padding */
  .container { padding-left: 20px; padding-right: 20px; }

  /* Benefit carousel */
  .benefit-slide-content { padding: 24px 20px; }
}


/* ---------- SMALL MOBILE (≤479px) ---------- */
@media (max-width: 479px) {
  .hero-stats { width: 100%; }
  .hero-heading { font-size: 1.85rem; }
  .stat-big-number { font-size: 2rem; }
  .stat-title { font-size: 0.78rem; }

  .display-heading { font-size: clamp(1.85rem, 9vw, 2.3rem); }
  .section-heading { font-size: clamp(1.45rem, 7vw, 1.85rem); }

  .content-card, .program-card { padding: 24px 18px; }
  .numbered-card { padding-left: 52px; }
  .numbered-card .card-number { font-size: 32px; }

  .btn-primary-dark, .btn-primary-light, .btn-outline { padding: 13px 20px; font-size: 13px; }

  .commitment-accordion .accordion-button { font-size: 15px; padding: 16px 2px; }

  .video-play-btn { width: 54px; height: 54px; font-size: 1.6rem; }
}


/* ---------- TOUCH DEVICES: remove hover lifts ---------- */
@media (hover: none) {
  .content-card:hover,
  .program-card:hover,
  .btn-primary-dark:hover,
  .btn-primary-light:hover,
  .btn-outline:hover,
  .service-image-card:hover,
  .back-to-top:hover { transform: none; }
}


/* ---------- SAFEGUARD ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
