/**
 * Hydroposhan Academy — homepage layout, spacing, grids, typography
 * Scoped to body.page-home; load after site-grids.css
 */

html.ha-unified body.page-home {
    --home-content-max: 72ch;
}

/* —— Layout shell —— */
html.ha-unified body.page-home .container {
    width: 100%;
    max-width: var(--container-max, 1280px);
    margin-inline: auto;
    padding-inline: var(--gutter, clamp(16px, 4vw, 40px)) !important;
}

html.ha-unified body.page-home .section-padding {
    padding-block: var(--section-pad-y, clamp(40px, 6vw, 72px)) !important;
}

/* Tighter rhythm between stacked light sections */
html.ha-unified body.page-home .section-padding.bg-light + .section-padding.bg-light {
    padding-top: clamp(28px, 4.5vw, 48px) !important;
}

html.ha-unified body.page-home #about.section-padding {
    padding-bottom: clamp(40px, 5.5vw, 64px) !important;
}

html.ha-unified body.page-home #infrastructure.section-padding {
    padding-top: clamp(40px, 5.5vw, 64px) !important;
}

/* —— Unified section headers —— */
html.ha-unified body.page-home .section-header {
    text-align: center;
    max-width: 780px;
    margin-inline: auto;
    margin-bottom: clamp(32px, 5vw, 52px) !important;
}

html.ha-unified body.page-home .section-header h2,
html.ha-unified body.page-home .home-section-title {
    font-family: var(--font-display) !important;
    font-size: var(--text-2xl) !important;
    font-weight: 700 !important;
    color: var(--dark-green) !important;
    line-height: var(--leading-tight) !important;
    letter-spacing: var(--tracking-tight) !important;
    margin: 0 0 var(--space-4) !important;
    display: block !important;
    width: 100%;
    text-wrap: balance;
}

/* section-eyebrow labels removed site-wide */

html.ha-unified body.page-home .section-header p,
html.ha-unified body.page-home .home-lead,
html.ha-unified body.page-home .home-body {
    font-family: var(--font-body) !important;
    font-size: var(--text-base) !important;
    line-height: var(--leading-loose) !important;
    color: var(--text-main) !important;
    margin: 0 auto var(--space-4);
    max-width: var(--home-content-max);
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.ha-unified body.page-home .home-lead {
    font-weight: 600 !important;
    font-size: var(--text-lg) !important;
    margin-bottom: var(--space-2) !important;
}

html.ha-unified body.page-home .section-header .home-body {
    font-weight: 500 !important;
    font-size: var(--text-base) !important;
    color: var(--text-light) !important;
    margin-bottom: 0 !important;
}

html.ha-unified body.page-home .section-header .home-lead + .home-body {
    margin-top: 0;
}

html.ha-unified body.page-home .divider {
    width: clamp(52px, 10vw, 72px) !important;
    height: 3px !important;
    margin: var(--space-4) auto var(--space-5) !important;
}

/* —— About —— */
html.ha-unified body.page-home #about {
    position: relative;
    overflow: hidden;
}

html.ha-unified body.page-home #about .two-col-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

html.ha-unified body.page-home #about .about-copy {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

html.ha-unified body.page-home #about .about-copy::before {
    display: none;
}

html.ha-unified body.page-home #about .about-clarity-list {
    list-style: none;
    margin: var(--space-4) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

html.ha-unified body.page-home #about .about-clarity-list li {
    padding: 14px 18px !important;
    font-size: var(--text-base) !important;
    background: #fff !important;
    border-radius: 12px;
    display: flex !important;
    align-items: center !important;
    gap: 14px;
    min-height: 48px;
    border: 1px solid rgba(0, 115, 5, 0.08);
    box-shadow: 0 4px 14px rgba(0, 75, 4, 0.04);
}

html.ha-unified body.page-home #about .about-clarity-list li::before {
    content: none !important;
    display: none !important;
}

html.ha-unified body.page-home #about .about-clarity-list__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 115, 5, 0.1);
    color: var(--primary-green, #007305);
}

html.ha-unified body.page-home #about .about-clarity-list__icon svg {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

html.ha-unified body.page-home #about .about-media-card {
    min-width: 0;
}

html.ha-unified body.page-home #about .about-main-media img {
    height: clamp(260px, 38vw, 380px);
}

/* —— Infrastructure grid —— */
html.ha-unified body.page-home .infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(20px, 3vw, 32px);
    align-items: stretch;
}

html.ha-unified body.page-home .infra-card {
    padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 32px) !important;
    min-width: 0;
}

html.ha-unified body.page-home .infra-card h3 {
    font-size: var(--text-xl) !important;
    margin-bottom: var(--space-3) !important;
}

html.ha-unified body.page-home .infra-card p {
    font-size: var(--text-base) !important;
    line-height: var(--leading-loose) !important;
}

html.ha-unified body.page-home .infra-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(0, 115, 5, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

html.ha-unified body.page-home .infra-icon-wrap i,
html.ha-unified body.page-home .infra-icon-wrap svg.ha-infra-icon {
    font-size: 2.4rem;
    width: 2.4rem;
    height: 2.4rem;
    color: var(--primary-green);
    fill: currentColor;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html.ha-unified body.page-home .infra-card:hover .infra-icon-wrap i,
html.ha-unified body.page-home .infra-card:hover .infra-icon-wrap svg.ha-infra-icon {
    transform: scale(1.08);
}

html.ha-unified body.page-home .home-section-cta {
    text-align: center;
    margin-top: clamp(28px, 4vw, 40px);
}

/* —— Methodology —— */
html.ha-unified body.page-home .methodology-panel {
    max-width: 1050px;
    margin-inline: auto;
}

html.ha-unified body.page-home .methodology-kicker {
    font-size: var(--text-sm) !important;
    margin-bottom: clamp(20px, 4vw, 36px) !important;
}

html.ha-unified body.page-home .methodology-body {
    font-size: var(--text-base) !important;
    line-height: var(--leading-loose) !important;
    max-width: var(--home-content-max);
    margin-inline: auto;
}

/* Methodology steps — flex row on desktop; 2×2 grid on tablet; stack on phone */
html.ha-unified body.page-home .methodology-flow {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(12px, 3vw, 18px) !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: clamp(28px, 5vw, 48px) !important;
}

html.ha-unified body.page-home .methodology-flow-arrow {
    display: none !important;
}

html.ha-unified body.page-home .methodology-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    min-height: 100%;
    padding: clamp(18px, 4vw, 28px) clamp(14px, 3vw, 20px) !important;
}

html.ha-unified body.page-home .methodology-step .step-icon-wrap {
    margin: 0 auto clamp(16px, 3vw, 22px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--primary-green, #007305) !important;
}

html.ha-unified body.page-home .methodology-step .step-icon-wrap svg,
html.ha-unified body.page-home .methodology-flow-arrow svg {
    display: block !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    fill: currentColor !important;
    color: inherit !important;
}

html.ha-unified body.page-home .methodology-flow-arrow svg {
    width: 1.15rem !important;
    height: 1.15rem !important;
}

html.ha-unified body.page-home .methodology-step h4 {
    margin: 0 !important;
    padding-top: 2px !important;
    line-height: 1.35 !important;
}

@media (min-width: 900px) {
    html.ha-unified body.page-home .methodology-flow {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        gap: clamp(6px, 1.2vw, 12px) !important;
    }

    html.ha-unified body.page-home .methodology-step {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    html.ha-unified body.page-home .methodology-flow-arrow {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        color: #008224 !important;
        opacity: 0.35 !important;
        font-size: 1.1rem !important;
        padding: 0 2px !important;
        min-width: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    html.ha-unified body.page-home .methodology-flow {
        grid-template-columns: 1fr !important;
    }
}

/* —— Training gallery —— */
html.ha-unified body.page-home #home-training-gallery .training-gallery-header {
    margin-bottom: clamp(24px, 4vw, 36px) !important;
}

/* —— Training gallery slider —— */
html.ha-unified body.page-home #home-training-gallery .home-training-gallery-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 14px);
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    touch-action: pan-y pinch-zoom;
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: unset !important;
    gap: clamp(12px, 2vw, 18px) !important;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    justify-content: flex-start !important;
    align-items: stretch !important;
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-item {
    flex: 0 0 calc((100% - 2 * clamp(12px, 2vw, 18px)) / 3) !important;
    max-width: none !important;
    width: auto !important;
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0, 115, 5, 0.35);
    background: #fff;
    color: var(--primary-green, #007305);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(0, 75, 4, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-nav svg {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-nav:hover:not(:disabled) {
    background: var(--primary-green, #007305);
    color: #fff;
    border-color: var(--primary-green, #007305);
    transform: scale(1.06);
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-item.is-slider-active {
    border-color: rgba(0, 115, 5, 0.45);
    box-shadow: 0 12px 32px rgba(0, 115, 5, 0.18);
}

html.ha-unified body.page-home #home-training-gallery .training-gallery-intro {
    color: var(--text-light) !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

html.ha-unified body.page-home #home-training-gallery .training-gallery-intro--sub {
    margin-top: 0.35rem;
    font-size: var(--text-sm) !important;
}

/* —— Programs showcase —— */
html.ha-unified body.page-home #programs.programs-showcase .programs-showcase-grid,
html.ha-unified body.page-home .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(20px, 3vw, 28px);
    align-items: stretch;
}

html.ha-unified body.page-home #programs.programs-showcase .program-showcase-card h3.card-title {
    font-size: var(--text-xl) !important;
}

html.ha-unified body.page-home #programs.programs-showcase .program-showcase-card p.card-desc {
    font-size: var(--text-base) !important;
    line-height: var(--leading-loose) !important;
}

html.ha-unified body.page-home .home-link-more {
    text-align: center;
    margin-top: clamp(24px, 4vw, 32px);
    font-size: var(--text-base);
}

html.ha-unified body.page-home .home-link-more a {
    color: var(--dark-green);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 75, 4, 0.35);
    padding-bottom: 2px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

html.ha-unified body.page-home .home-link-more a:hover {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

/* —— Institutional training —— */
html.ha-unified body.page-home .inst-training-section {
    padding-block: var(--section-pad-y) !important;
}

html.ha-unified body.page-home .inst-features {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: clamp(12px, 2vw, 16px);
}

html.ha-unified body.page-home .inst-card__lead {
    font-size: var(--text-base) !important;
    line-height: var(--leading-loose) !important;
}

/* —— Why Choose Hydroposhan Academy —— */
html.ha-unified body.page-home .why-choose-section {
    background: #fff;
}

html.ha-unified body.page-home .why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.5vw, 20px);
    margin-top: clamp(8px, 2vw, 16px);
}

html.ha-unified body.page-home .why-choose-card {
    background: #f8fcf9;
    border: 1px solid rgba(0, 115, 5, 0.1);
    border-radius: 16px;
    padding: clamp(20px, 3vw, 26px);
    box-shadow: 0 8px 24px rgba(0, 75, 4, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

html.ha-unified body.page-home .why-choose-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 115, 5, 0.22);
    box-shadow: 0 14px 32px rgba(0, 75, 4, 0.1);
}

html.ha-unified body.page-home .why-choose-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 115, 5, 0.1);
    color: var(--primary-green, #007305);
    margin-bottom: 14px;
}

html.ha-unified body.page-home .why-choose-card__icon svg {
    display: block;
    width: 1.4rem;
    height: 1.4rem;
    fill: currentColor;
}

html.ha-unified body.page-home .why-choose-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--dark-green, #004b04);
    margin: 0 0 8px;
    line-height: 1.3;
}

html.ha-unified body.page-home .why-choose-card p {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-light, #525a54);
}

@media (max-width: 900px) {
    html.ha-unified body.page-home .why-choose-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    html.ha-unified body.page-home .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

html.ha-unified body.page-home .inst-card__eyebrow {
    display: none !important;
}

html.ha-unified body.page-home .inst-card__icon svg,
html.ha-unified body.page-home .inst-feature__icon svg {
    display: block !important;
    width: 1.4rem !important;
    height: 1.4rem !important;
    fill: currentColor !important;
    color: inherit !important;
}

html.ha-unified body.page-home .inst-feature__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--primary-green, #007305) !important;
    margin-bottom: 0.35rem;
}

/* —— Calendar table —— */
html.ha-unified body.page-home #calendar .upcoming-programs-table-wrap {
    max-width: min(920px, 100%);
}

/* —— CTA —— */
html.ha-unified body.page-home .cta-section {
    padding: clamp(56px, 8vw, 96px) 0 !important;
    text-align: center;
    background: var(--dark-green);
    background-image: radial-gradient(circle at center, rgba(0, 115, 5, 0.8) 0%, rgba(0, 75, 4, 1) 100%);
    border-radius: 0 !important;
    width: 100%;
    margin-inline: 0;
}

html.ha-unified body.page-home .cta-section h2 {
    font-family: var(--font-display) !important;
    font-size: var(--text-2xl) !important;
    color: #fff !important;
    max-width: min(680px, 92vw);
    margin: 0 auto var(--space-5) !important;
    line-height: var(--leading-tight) !important;
}

html.ha-unified body.page-home .cta-btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

html.ha-unified body.page-home .cta-btn-row .btn {
    font-size: var(--text-base) !important;
    padding: 14px 32px !important;
    border-radius: 999px;
}

html.ha-unified body.page-home .cta-btn-row .btn-cta-primary {
    background: #fff;
    color: var(--dark-green);
}

html.ha-unified body.page-home .cta-btn-row .btn-cta-outline {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    background: transparent;
}

/* —— Responsive —— */
@media (max-width: 1023.98px) {
    html.ha-unified body.page-home #about .two-col-grid {
        grid-template-columns: 1fr;
    }

    html.ha-unified body.page-home #about .about-media-card {
        max-width: 560px;
        margin-inline: auto;
    }
}

@media (max-width: 767.98px) {
    html.ha-unified body.page-home .section-padding {
        padding-block: clamp(40px, 10vw, 56px) !important;
    }

    html.ha-unified body.page-home .infra-card:hover,
    html.ha-unified body.page-home .program-card:hover {
        transform: none;
    }

    html.ha-unified body.page-home .cta-section h2 {
        max-width: none;
        padding-inline: var(--gutter);
    }

    html.ha-unified body.page-home .cta-btn-row {
        flex-direction: column;
        align-items: stretch;
        padding-inline: var(--gutter);
        max-width: min(480px, 100%);
        margin-inline: auto;
    }

html.ha-unified body.page-home .cta-btn-row .btn {
    width: 100%;
}

html.ha-unified body.page-home .cta-btn-row .ha-book-counselling,
html.ha-unified body.page-home .cta-btn-row .ha-counselling-trigger {
    width: 100%;
}
}

/* —— Interactive CTA band —— */
html.ha-unified body.page-home .home-cta-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

html.ha-unified body.page-home .home-cta-band__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

html.ha-unified body.page-home .home-cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.45;
    animation: home-cta-orb-float 14s ease-in-out infinite;
}

html.ha-unified body.page-home .home-cta-orb--1 {
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    top: -12%;
    left: -8%;
    background: rgba(52, 211, 153, 0.35);
}

html.ha-unified body.page-home .home-cta-orb--2 {
    width: min(360px, 48vw);
    height: min(360px, 48vw);
    bottom: -18%;
    right: -6%;
    background: rgba(0, 121, 198, 0.28);
    animation-delay: -5s;
}

html.ha-unified body.page-home .home-cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
    opacity: 0.5;
}

@keyframes home-cta-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -12px) scale(1.06); }
}

html.ha-unified body.page-home .home-cta-band__inner {
    position: relative;
    z-index: 1;
}

html.ha-unified body.page-home .home-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 14px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(167, 243, 208, 0.35);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d1fae5;
}

html.ha-unified body.page-home .cta-section .home-cta-title {
    font-family: var(--font-display) !important;
    font-size: clamp(1.65rem, 4vw, 2.35rem) !important;
    color: #fff !important;
    line-height: 1.2 !important;
    margin: 0 auto 28px !important;
    max-width: min(720px, 94vw);
    text-align: center;
}

html.ha-unified body.page-home .home-cta-rotate {
    display: inline-block;
    color: #86efac;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

html.ha-unified body.page-home .home-cta-rotate.is-fading {
    opacity: 0;
    transform: translateY(8px);
}

html.ha-unified body.page-home .home-cta-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 18px);
    max-width: min(920px, 100%);
    margin: 0 auto;
    width: 100%;
}

html.ha-unified body.page-home .home-cta-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    min-width: 0;
    transition: transform 0.28s ease;
}

html.ha-unified body.page-home .home-cta-column.is-active {
    transform: translateY(-2px);
}

html.ha-unified body.page-home .home-cta-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 1 1 auto;
    width: 100%;
    padding: clamp(16px, 2.5vw, 20px) clamp(14px, 2vw, 16px);
    border-radius: 16px;
    border: 1px solid rgba(167, 243, 208, 0.22);
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    font-family: var(--font-body);
    cursor: pointer;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

html.ha-unified body.page-home .home-cta-path:hover {
    transform: translateY(-4px);
    border-color: rgba(110, 231, 183, 0.55);
    background: rgba(0, 115, 5, 0.28);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

html.ha-unified body.page-home .home-cta-path.is-active,
html.ha-unified body.page-home .home-cta-column.is-active .home-cta-path {
    border-color: rgba(134, 239, 172, 0.75);
    background: rgba(0, 115, 5, 0.38);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.25), 0 16px 36px rgba(0, 0, 0, 0.28);
}

html.ha-unified body.page-home .home-cta-path__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #86efac;
    font-size: 1.05rem;
}

html.ha-unified body.page-home .home-cta-path strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

html.ha-unified body.page-home .home-cta-path__desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    max-width: 18rem;
}

html.ha-unified body.page-home .home-cta-column .home-cta-action,
html.ha-unified body.page-home .home-cta-column .ha-book-counselling {
    width: 100%;
    min-width: 0;
}

html.ha-unified body.page-home .home-cta-column .btn,
html.ha-unified body.page-home .home-cta-column .ha-counselling-trigger {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.88rem !important;
    padding: 12px 18px !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

html.ha-unified body.page-home .home-cta-action:not(.is-featured).btn-cta-primary,
html.ha-unified body.page-home .home-cta-action:not(.is-featured).btn-cta-outline,
html.ha-unified body.page-home .home-cta-action:not(.is-featured) .ha-counselling-trigger {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 2px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

html.ha-unified body.page-home .home-cta-action.is-featured.btn-cta-primary,
html.ha-unified body.page-home .home-cta-action.is-featured.btn-cta-outline,
html.ha-unified body.page-home .home-cta-action.is-featured .ha-counselling-trigger {
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: var(--dark-green, #004b04) !important;
    -webkit-text-fill-color: var(--dark-green, #004b04) !important;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

html.ha-unified body.page-home .home-cta-action.is-featured.btn-cta-primary::after,
html.ha-unified body.page-home .home-cta-action.is-featured.btn-cta-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

html.ha-unified body.page-home .home-cta-action.is-featured.btn-cta-primary:hover,
html.ha-unified body.page-home .home-cta-action.is-featured.btn-cta-outline:hover,
html.ha-unified body.page-home .home-cta-action.is-featured .ha-counselling-trigger:hover,
html.ha-unified body.page-home .home-cta-action.is-featured.btn-cta-primary:focus-visible,
html.ha-unified body.page-home .home-cta-action.is-featured.btn-cta-outline:focus-visible,
html.ha-unified body.page-home .home-cta-action.is-featured .ha-counselling-trigger:focus-visible {
    background: #f0fdf4 !important;
    color: var(--dark-green, #004b04) !important;
    -webkit-text-fill-color: var(--dark-green, #004b04) !important;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
    outline: none;
}

html.ha-unified body.page-home .home-cta-action.is-featured.btn-cta-primary:hover::after,
html.ha-unified body.page-home .home-cta-action.is-featured.btn-cta-outline:hover::after {
    transform: translateX(120%);
}

html.ha-unified body.page-home .home-cta-action:not(.is-featured):hover,
html.ha-unified body.page-home .home-cta-action:not(.is-featured) .ha-counselling-trigger:hover,
html.ha-unified body.page-home .home-cta-action:not(.is-featured):focus-visible,
html.ha-unified body.page-home .home-cta-action:not(.is-featured) .ha-counselling-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-2px);
    outline: none;
}

html.ha-unified body.page-home .home-cta-action.is-featured i,
html.ha-unified body.page-home .home-cta-action.is-featured .ha-counselling-trigger i {
    transition: transform 0.25s ease;
}

html.ha-unified body.page-home .home-cta-action.is-featured:hover i,
html.ha-unified body.page-home .home-cta-action.is-featured:focus-visible i,
html.ha-unified body.page-home .home-cta-action.is-featured .ha-counselling-trigger:hover i {
    transform: translateY(2px);
}

html.ha-unified body.page-home .home-cta-action.is-pulse,
html.ha-unified body.page-home .home-cta-action.is-pulse .ha-counselling-trigger {
    animation: home-cta-pulse 0.52s ease;
}

html.ha-unified body.page-home .home-cta-path.is-pulse {
    animation: home-cta-path-pulse 0.48s ease;
}

html.ha-unified body.page-home .home-cta-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: home-cta-ripple 0.55s ease-out forwards;
    z-index: 2;
}

@keyframes home-cta-path-pulse {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.02); }
}

@keyframes home-cta-ripple {
    to {
        transform: scale(2.6);
        opacity: 0;
    }
}

@keyframes home-cta-pulse {
    0%, 100% { transform: translateY(-2px) scale(1); }
    45% { transform: translateY(-2px) scale(1.04); }
}

@media (min-width: 769px) {
    html.ha-unified body.page-home .cta-section .home-cta-title {
        text-align: center;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    html.ha-unified body.page-home .home-cta-eyebrow {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    html.ha-unified body.page-home .home-cta-columns {
        grid-template-columns: 1fr;
        max-width: min(420px, 100%);
    }

    html.ha-unified body.page-home .home-cta-column {
        gap: 10px;
    }

    html.ha-unified body.page-home .home-cta-path {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        padding: 14px 16px;
    }

    html.ha-unified body.page-home .home-cta-path__icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    html.ha-unified body.page-home .home-cta-path strong {
        flex: 1 1 auto;
    }

    html.ha-unified body.page-home .home-cta-path__desc {
        flex: 1 1 100%;
        padding-left: 48px;
        max-width: none;
    }

    html.ha-unified body.page-home .home-cta-column.is-active {
        transform: none;
    }

    html.ha-unified body.page-home .home-cta-action.is-featured.btn-cta-primary,
    html.ha-unified body.page-home .home-cta-action.is-featured.btn-cta-outline,
    html.ha-unified body.page-home .home-cta-action.is-featured .ha-counselling-trigger {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.ha-unified body.page-home .home-cta-orb {
        animation: none;
    }

    html.ha-unified body.page-home .home-cta-path:hover,
    html.ha-unified body.page-home .home-cta-column.is-active {
        transform: none;
    }

    html.ha-unified body.page-home .home-cta-action.is-pulse,
    html.ha-unified body.page-home .home-cta-action.is-pulse .ha-counselling-trigger {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    html.ha-unified body.page-home #home-training-gallery .home-training-gallery-item {
        flex: 0 0 calc((100% - clamp(12px, 2vw, 18px)) / 2) !important;
    }
}

@media (max-width: 639.98px) {
    html.ha-unified body.page-home #home-training-gallery .home-training-gallery-item {
        flex: 0 0 100% !important;
    }

    html.ha-unified body.page-home #home-training-gallery .home-training-gallery-nav {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

html.ha-unified body.page-home section.hero .hero-dots,
html.ha-unified body.page-home section.hero .hero-dot {
    display: none !important;
}

/* Mobile hero — keep title below fixed header (top bar stacks on narrow screens) */
@media (max-width: 768px) {
    html.ha-unified body.page-home section.hero {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding-top: calc(var(--site-fixed-header-offset) + clamp(12px, 3vw, 24px)) !important;
        padding-bottom: clamp(72px, 13vw, 88px) !important;
    }

    html.ha-unified body.page-home section.hero .container {
        width: 100%;
        padding-top: clamp(4px, 1.5vw, 12px);
    }

    html.ha-unified body.page-home section.hero .hero-content {
        margin-bottom: clamp(6px, 2vw, 12px);
        padding-bottom: clamp(10px, 2.5vw, 16px) !important;
    }

    html.ha-unified body.page-home section.hero .hero-controls {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        inset: auto 16px calc(env(safe-area-inset-bottom, 0px) + clamp(14px, 3.5vw, 22px)) 16px !important;
        gap: 0 !important;
        padding: 0 !important;
        z-index: 3 !important;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: none;
        max-width: none;
        margin-inline: 0;
    }

    html.ha-unified body.page-home section.hero .hero-arrow {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
        pointer-events: auto;
        border-color: rgba(255, 255, 255, 0.35) !important;
        background: rgba(0, 0, 0, 0.38) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
        transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    html.ha-unified body.page-home section.hero .hero-arrow.is-pressed,
    html.ha-unified body.page-home section.hero .hero-arrow:active {
        transform: scale(0.92);
        background: rgba(0, 115, 5, 0.55) !important;
    }

    html.ha-unified body.page-home section.hero .scroll-indicator {
        display: none !important;
    }

    html.ha-unified body.page-home section.hero.hero--interactive::after {
        content: 'Swipe to explore';
        position: absolute;
        left: 50%;
        bottom: calc(clamp(14px, 3vw, 20px) + 58px);
        transform: translateX(-50%);
        z-index: 3;
        padding: 4px 12px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.28);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.82);
        font-family: 'Inter', system-ui, sans-serif;
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        pointer-events: none;
        opacity: 0;
        animation: ha-hero-swipe-hint 0.6s ease 1.4s forwards;
    }

    @keyframes ha-hero-swipe-hint {
        from { opacity: 0; transform: translateX(-50%) translateY(6px); }
        to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
}

@media (max-width: 480px) {
    html.ha-unified body.page-home section.hero .hero-controls {
        inset: auto 10px calc(env(safe-area-inset-bottom, 0px) + clamp(12px, 3vw, 18px)) 10px !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    html.ha-unified body.page-home section.hero .hero-arrow {
        width: 36px !important;
        height: 36px !important;
    }

    html.ha-unified body.page-home section.hero {
        padding-bottom: clamp(64px, 11vw, 76px) !important;
    }
}

/* —— Home training gallery (migrated from index.html inline) —— */
html.ha-unified body.page-home #home-training-gallery .home-training-gallery-dots {
    display: none !important;
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-dot {
    display: none !important;
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-shell {
    background: linear-gradient(180deg, #ffffff 0%, #f6fbf7 100%);
    border: 1px solid rgba(0, 115, 5, 0.12);
    border-radius: 20px;
    padding: clamp(16px, 3vw, 28px);
    box-shadow: 0 18px 48px rgba(0, 75, 4, 0.06);
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-item {
    position: relative;
    margin: 0;
    border: none;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 75, 4, 0.08);
    background: #0f172a;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.25s ease;
    aspect-ratio: 4 / 3;
    min-height: 0;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    border: 2px solid transparent;
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-item:hover,
html.ha-unified body.page-home #home-training-gallery .home-training-gallery-item:focus-visible {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 44px rgba(0, 115, 5, 0.22);
    outline: none;
    border-color: rgba(0, 115, 5, 0.35);
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-item img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

html.ha-unified body.page-home #home-training-gallery .home-training-gallery-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
    opacity: 0.85;
    pointer-events: none;
}

html.ha-unified body.page-home #home-training-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10060;
    background: rgba(5, 10, 8, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 4vw, 32px);
}

html.ha-unified body.page-home #home-training-lightbox.open {
    display: flex;
}

html.ha-unified body.page-home #home-training-lightbox img {
    width: min(1080px, 94vw);
    max-height: 84vh;
    object-fit: contain;
    border-radius: 12px;
}

html.ha-unified body.page-home .home-training-lightbox-btn {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

html.ha-unified body.page-home #home-training-gallery .zoom-hint,
html.ha-unified body.page-home #home-training-gallery .home-training-gallery-label {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html.ha-unified body.page-home #home-training-gallery .home-training-gallery-item:hover {
        transform: none;
    }
}

/* =============================================================================
   Homepage final overrides — wins over home-legacy-inline.css
   ============================================================================= */

/* Hero — readable text over photo slider; cancel legacy fade-in opacity:0 */
html.ha-unified body.page-home section.hero .hero-subtitle,
html.ha-unified body.page-home section.hero h1,
html.ha-unified body.page-home section.hero p.desc,
html.ha-unified body.page-home section.hero .hero-highlights,
html.ha-unified body.page-home section.hero .hero-badges,
html.ha-unified body.page-home section.hero .btn-group {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

html.ha-unified body.page-home section.hero .hero-content {
    background: rgba(0, 22, 10, 0.42) !important;
    backdrop-filter: blur(14px) saturate(1.15) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
}

/* Hero photo slider — visible behind glass content card */
html.ha-unified body.page-home section.hero .hero-bg-slider,
html.ha-unified body.page-home section.hero .hero-overlay {
    display: block;
}

html.ha-unified body.page-home section.hero .hero-controls {
    display: flex;
}

html.ha-unified body.page-home section.hero .text-gradient {
    background: linear-gradient(92deg, #86efac 0%, #34d399 45%, #22c55e 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* Buttons — sentence case, consistent with site-wide system */
html.ha-unified body.page-home .btn,
html.ha-unified body.page-home a.btn {
    text-transform: none !important;
    letter-spacing: 0.04em !important;
    font-size: 0.9rem !important;
    padding: 12px 24px !important;
    font-family: var(--font-body) !important;
}

/* Section headers — full-width centered titles (not inline-block offset) */
html.ha-unified body.page-home .section-header h2 {
    display: block !important;
    width: 100%;
}

html.ha-unified body.page-home .section-header .home-body {
    margin-bottom: 0 !important;
}

/* About — left-aligned copy (not centered lead under left heading) */
html.ha-unified body.page-home #about .home-section-title,
html.ha-unified body.page-home #about .home-lead,
html.ha-unified body.page-home #about .home-body {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html.ha-unified body.page-home #about .home-lead {
    max-width: none;
}

html.ha-unified body.page-home .about-main-media {
    position: relative;
}

html.ha-unified body.page-home .about-main-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}

/* Program cards — left-aligned body text */
html.ha-unified body.page-home .program-showcase-card {
    text-align: left;
}

html.ha-unified body.page-home .program-showcase-icon {
    margin-left: 0;
    margin-bottom: 1.1rem;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    background: rgba(0, 115, 5, 0.1) !important;
    color: var(--primary-green, #007305) !important;
}

html.ha-unified body.page-home .program-showcase-icon svg {
    display: block !important;
    width: 1.55rem !important;
    height: 1.55rem !important;
    max-width: none !important;
    fill: currentColor !important;
    color: inherit !important;
}

/* Calendar table — centered block */
html.ha-unified body.page-home #calendar .upcoming-programs-table-wrap {
    margin-inline: auto;
}

html.ha-unified body.page-home #calendar .upcoming-programs-table {
    width: 100%;
}

/* Training gallery lightbox controls */
html.ha-unified body.page-home #home-training-lightbox-caption {
    position: absolute;
    bottom: clamp(16px, 4vw, 28px);
    left: 50%;
    transform: translateX(-50%);
    max-width: min(720px, 92vw);
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 8px 16px;
}

html.ha-unified body.page-home #home-training-lightbox-counter {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

html.ha-unified body.page-home #home-training-lightbox-close {
    top: 14px;
    right: 14px;
}

html.ha-unified body.page-home #home-training-lightbox-prev {
    left: clamp(10px, 3vw, 20px);
    top: 50%;
    transform: translateY(-50%);
}

html.ha-unified body.page-home #home-training-lightbox-next {
    right: clamp(10px, 3vw, 20px);
    top: 50%;
    transform: translateY(-50%);
}

/* Testimonials CTA */
html.ha-unified body.page-home .testimonials-home-cta {
    text-align: center;
    margin-top: 36px;
}

/* Mobile — always show content; no hidden reveal blocks */
@media (max-width: 768px) {
    html.ha-unified body.page-home .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    html.ha-unified body.page-home section.hero {
        padding-bottom: clamp(72px, 13vw, 88px) !important;
    }

    html.ha-unified body.page-home section.hero .hero-controls {
        inset: auto 12px clamp(14px, 3vw, 20px) 12px !important;
    }

    html.ha-unified body.page-home .hero .btn-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: min(400px, 100%);
        margin-inline: auto;
        gap: 12px;
    }

    html.ha-unified body.page-home .hero .btn-group .btn {
        width: 100%;
    }
}
