.home-slider,
.faq-section {
  --primary-blue: #3274B5;
  --primary: #3274B5;
  --primary-dark: #3274B5;
  --primary-light: #ffffff;
  --white: #ffffff;
}

.hero-slider .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.hero-slider .btn-primary {
  background-color: var(--white);
  color: var(--primary-dark);
}

.hero-slider .btn-primary:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.hero-slider .btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.hero-slider .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.home-slider + .pathways {
  margin-top: 28px;
}
    .hero-slider {
      position: relative;
      overflow: hidden;
      width: 100%;
      min-height: min(88vh, 820px);
      background: #0a1528;
      color: var(--white);
    }

    .hero-track {
      position: relative;
      width: 100%;
      min-height: inherit;
    }

    .hero-slide {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: flex-end;
      padding: 0 0 110px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.85s ease, visibility 0.85s ease;
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
    }

    .hero-slide.is-active {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      z-index: 2;
    }

    .hero-slide::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 1;
      background:
        linear-gradient(90deg, rgba(6, 14, 28, 0.88) 0%, rgba(6, 14, 28, 0.55) 48%, rgba(6, 14, 28, 0.2) 100%),
        linear-gradient(0deg, rgba(6, 14, 28, 0.82) 0%, rgba(6, 14, 28, 0.25) 45%, rgba(6, 14, 28, 0.35) 100%);
    }


    .hero-slide .container {
      position: relative;
      z-index: 2;
      width: 100%;
    }

    .hero-slide-content {
      max-width: 720px;
      transform: translateY(18px);
      opacity: 0;
      transition: transform 0.7s ease 0.15s, opacity 0.7s ease 0.15s;
    }

    .hero-slide.is-active .hero-slide-content {
      transform: translateY(0);
      opacity: 1;
    }

    .hero-kicker {
      display: inline-block;
      margin-bottom: 14px;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.78);
    }

    .hero-slide h1 {
      font-size: clamp(2.1rem, 5.2vw, 3.6rem);
      font-weight: 800;
      line-height: 1.08;
      margin-bottom: 18px;
      color: var(--white);
      text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    }

    .hero-slide .hero-lead {
      font-size: clamp(1.02rem, 2vw, 1.22rem);
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 28px;
      max-width: 560px;
      line-height: 1.55;
    }

    .hero-slide .btn-primary {
      background: var(--white);
      color: var(--primary-dark);
    }
    .hero-slide .btn-primary:hover {
      background: var(--primary-light);
      color: var(--primary-dark);
    }

    .hero-slide .btn-outline {
      color: var(--white);
      border-color: rgba(255, 255, 255, 0.55);
    }
    .hero-slide .btn-outline:hover {
      background: rgba(255, 255, 255, 0.14);
      color: var(--white);
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }

    .hero-controls {
      position: absolute;
      left: 50%;
      right: auto;
      bottom: 0;
      z-index: 12;
      transform: translateX(-50%);
      padding: 0 24px calc(28px + env(safe-area-inset-bottom, 0px));
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      width: auto;
      max-width: calc(100% - 32px);
      box-sizing: border-box;
    }

    .hero-controls-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
      row-gap: 8px;
    }

    .hero-ctrl {
      width: 46px;
      height: 46px;
      border: 1px solid rgba(255, 255, 255, 0.5);
      border-radius: 50%;
      background: rgba(8, 18, 34, 0.45);
      color: var(--white);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      padding: 0;
    }

    .hero-ctrl:hover {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.9);
      transform: scale(1.05);
    }

    .hero-ctrl:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 2px;
    }

    .hero-ctrl svg {
      width: 18px;
      height: 18px;
      display: block;
      fill: currentColor;
    }

    .hero-ctrl[data-action="playpause"] {
      width: 56px;
      height: 56px;
      border-width: 2px;
      background: rgba(255, 255, 255, 0.18);
      position: relative;
      font-size: 1.15rem;
      line-height: 1;
    }

    .hero-ctrl[data-action="playpause"] .icon-play,
    .hero-ctrl[data-action="playpause"] .icon-pause {
      display: none;
      font-style: normal;
      font-weight: 700;
      letter-spacing: 0;
      color: currentColor;
      speak: never;
    }

    .hero-ctrl[data-action="playpause"] .icon-play {
      margin-left: 2px;
      font-size: 1.05rem;
    }

    .hero-ctrl[data-action="playpause"] .icon-pause {
      font-size: 0.95rem;
      letter-spacing: 0.06em;
    }

    .hero-ctrl[data-action="playpause"]:not(.is-paused) .icon-pause {
      display: inline;
    }

    .hero-ctrl[data-action="playpause"].is-paused .icon-play {
      display: inline;
    }

    .hero-counter {
      margin-left: 4px;
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      color: rgba(255, 255, 255, 0.85);
      font-variant-numeric: tabular-nums;
      min-width: 4.5em;
    }

    .hero-progress {
      width: min(220px, 60vw);
      height: 2px;
      background: rgba(255, 255, 255, 0.25);
      overflow: hidden;
    }

    .hero-progress-fill {
      height: 100%;
      width: 0%;
      background: #fff;
      transform-origin: left center;
    }

    .hero-progress-fill.is-running {
      animation: heroProgress var(--hero-duration, 6s) linear forwards;
    }

    @keyframes heroProgress {
      from { width: 0%; }
      to { width: 100%; }
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-slide,
      .hero-slide-content,
      .hero-progress-fill {
        transition: none;
        animation: none;
      }
    }
    .faq-section { padding: 32px 0; }

    .faq-main summary {
      padding: 18px 20px;
      background: #f3f5f8;
      border-radius: 14px;
      cursor: pointer;
      list-style: none;
    }

    .faq-main summary::-webkit-details-marker { display: none; }

    .faq-main h2 {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin: 0;
      font-size: 1.15rem;
      font-weight: 600;
      color: #2c333a;
      line-height: 1.4;
    }

    .faq-main h2::after {
      content: "";
      width: 8px;
      height: 8px;
      border-right: 2px solid #8b95a1;
      border-bottom: 2px solid #8b95a1;
      transform: rotate(-45deg);
      flex-shrink: 0;
    }

    .faq-main[open] h2::after { transform: rotate(45deg); }

    .faq-main:not([open]) > .faq-grid { display: none; }

    .faq-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      align-items: start;
      margin-top: 12px;
    }

    .faq-card {
      background: #f3f5f8;
      border-radius: 14px;
    }

    .faq-card summary {
      padding: 18px 20px;
      cursor: pointer;
      list-style: none;
    }

    .faq-card summary::-webkit-details-marker { display: none; }

    .faq-q {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      color: #2c333a;
      font-size: 1rem;
      font-weight: 500;
      line-height: 1.4;
    }

    .faq-q::after {
      content: "";
      width: 8px;
      height: 8px;
      border-right: 2px solid #8b95a1;
      border-bottom: 2px solid #8b95a1;
      transform: rotate(-45deg);
      flex-shrink: 0;
    }

    .faq-card[open] .faq-q::after { transform: rotate(45deg); }

    .faq-card p {
      margin: 0;
      padding: 0 20px 18px;
      color: #5a6d7e;
      font-size: 0.95rem;
      line-height: 1.5;
    }

    .faq-card a { color: var(--primary-blue); font-weight: 600; }
@media (max-width: 768px) {
      .hero-slider {
        height: calc(100vh - 72px - 64px);
        height: calc(100dvh - 72px - 64px);
        height: calc(100svh - 72px - 64px);
        min-height: 0;
        max-height: calc(100vh - 72px - 64px);
        max-height: calc(100dvh - 72px - 64px);
        max-height: calc(100svh - 72px - 64px);
      }
      .hero-track { height: 100%; min-height: 100%; }
      .hero-slide {
        padding: 78px 0 36px;
        align-items: center;
        background-position: center top;
      }
      .hero-slide-content {
        max-width: 100%;
        margin-top: 0;
      }
      .hero-kicker { margin-bottom: 8px; font-size: 0.68rem; }
      .hero-slide h1 {
        font-size: clamp(1.4rem, 6.4vw, 1.95rem);
        margin-bottom: 10px;
        line-height: 1.12;
      }
      .hero-slide .hero-lead {
        font-size: 0.92rem;
        margin-bottom: 14px;
        max-width: 100%;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .hero-actions {
        justify-content: flex-start;
        gap: 8px;
      }
      .hero-actions .btn {
        flex: 1 1 auto;
        min-width: min(100%, 140px);
        justify-content: center;
        text-align: center;
        padding: 11px 16px;
        font-size: 0.88rem;
      }
      .hero-controls {
        inset: 0;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 12px 12px 16px;
        justify-content: space-between;
        pointer-events: none;
      }
      .hero-controls-bar,
      .hero-progress {
        pointer-events: auto;
      }
      .hero-controls-bar {
        background: rgba(8, 18, 34, 0.42);
        padding: 6px 10px;
        border-radius: 100px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
      }
      .hero-ctrl { width: 40px; height: 40px; }
      .hero-ctrl[data-action="playpause"] { width: 50px; height: 50px; }
      .hero-progress { width: min(200px, 60vw); }

      .faq-section { padding: 24px 0; }
      .faq-grid { grid-template-columns: 1fr; }

}
@media (max-width: 480px) {
      .hero-slider {
        height: calc(100vh - 68px - 62px);
        height: calc(100dvh - 68px - 62px);
        height: calc(100svh - 68px - 62px);
        max-height: calc(100vh - 68px - 62px);
        max-height: calc(100dvh - 68px - 62px);
        max-height: calc(100svh - 68px - 62px);
      }
      .hero-slide {
        padding: 72px 0 28px;
        align-items: center;
      }
      .hero-slide-content { margin-top: 0; }
      .hero-slide h1 { font-size: clamp(1.28rem, 6.8vw, 1.7rem); }
      .hero-slide .hero-lead {
        font-size: 0.86rem;
        -webkit-line-clamp: 2;
        margin-bottom: 12px;
      }
      .hero-actions .btn { width: 100%; min-width: 0; padding: 10px 14px; }
      .hero-controls { padding: 10px 10px 14px; gap: 8px; }
      .hero-ctrl { width: 36px; height: 36px; }
      .hero-ctrl[data-action="playpause"] { width: 44px; height: 44px; }
      .hero-counter { margin-left: 2px; font-size: 0.7rem; }
      .hero-progress { width: min(160px, 55vw); }

}
/* Compact homepage slider */
#home-slider {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
}

#home-slider .hero-slider {
  height: 420px;
  min-height: 0;
  max-height: none;
  border-radius: 16px;
}

#home-slider .hero-track {
  height: 100%;
  min-height: 0;
}

#home-slider .hero-slide {
  box-sizing: border-box;
  align-items: center;
  padding: 28px 32px 90px;
}

#home-slider .hero-slide .container {
  padding: 0;
}

#home-slider .hero-slide-content {
  max-width: 680px;
}

#home-slider .hero-slide h1 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  margin: 0 0 14px;
}

#home-slider .hero-lead {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 18px;
}

#home-slider .hero-actions .btn {
  padding: 10px 16px;
  font-size: 14px;
}

#home-slider .hero-controls {
  inset: auto 0 14px;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 0 16px;
  gap: 8px;
}

#home-slider .hero-ctrl,
#home-slider .hero-ctrl[data-action="playpause"] {
  width: 36px;
  height: 36px;
}

@media (max-width: 768px) {
  #home-slider {
    margin: 20px auto;
    padding: 0 16px;
  }

  #home-slider .hero-slider {
    height: 460px;
  }

  #home-slider .hero-slide {
    padding: 24px 20px 90px;
  }

  #home-slider .hero-slide h1 {
    font-size: 24px;
  }

  #home-slider .hero-lead {
    font-size: 14px;
    display: block;
    overflow: visible;
  }

  #home-slider .hero-actions {
    gap: 8px;
  }

  #home-slider .hero-actions .btn {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
  }
}