/**
 * Site Mobile — phones & small tablets (max-width: 768px)
 * Load after site-grids.css, before site-performance.css
 */

@media (max-width: 768px) {
    html.ha-unified {
        overflow-x: clip;
        -webkit-text-size-adjust: 100%;
    }

    html.ha-unified body {
        overflow-x: clip;
        min-width: 0;
    }

    html.ha-unified .container {
        padding-inline: clamp(14px, 4vw, 20px) !important;
    }

    /* First block after fixed header (no hero pages) */
    html.ha-unified body > header + .section-padding,
    html.ha-unified body > header + #how-to-enroll,
    html.ha-unified body > header + main,
    html.ha-unified body > header + main.container {
        padding-top: calc(var(--site-fixed-header-offset) + clamp(16px, 4vw, 28px)) !important;
    }

    html.ha-unified .section-padding {
        padding-bottom: clamp(36px, 8vw, 56px) !important;
    }

    html.ha-unified .section-header h2,
    html.ha-unified .section-title {
        font-size: clamp(1.3rem, 5.8vw, 1.75rem) !important;
        line-height: 1.25 !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    html.ha-unified .section-header p,
    html.ha-unified .section-text,
    html.ha-unified main p {
        font-size: clamp(0.94rem, 3.8vw, 1.05rem) !important;
        line-height: 1.6 !important;
    }

    /* Stack multi-column content blocks */
    html.ha-unified .grid-2,
    html.ha-unified .grid-3,
    html.ha-unified .infra-grid,
    html.ha-unified .steps-grid,
    html.ha-unified .enroll-steps,
    html.ha-unified .two-col,
    html.ha-unified .split-layout,
    html.ha-unified .partner-grid,
    html.ha-unified .faq-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    html.ha-unified .step-card,
    html.ha-unified .content-box,
    html.ha-unified .enroll-step,
    html.ha-unified .batch-list-card {
        padding: clamp(18px, 4vw, 24px) !important;
    }

    html.ha-unified .batch-list-card,
    html.ha-unified .program-card--horizontal {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center;
        gap: 14px !important;
    }

    /* Hide pill/dot pagers — they render as vertical bars on mobile touch targets */
    html.ha-unified .hero-dots,
    html.ha-unified .home-training-gallery-dots,
    html.ha-unified .hwt-gallery-dots,
    html.ha-unified .testimonials-carousel__dots,
    html.ha-unified button.hero-dot,
    html.ha-unified button.home-training-gallery-dot,
    html.ha-unified button.hwt-gallery-dot,
    html.ha-unified button.testimonials-carousel__dot {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        pointer-events: none !important;
    }

    html.ha-unified .testimonials-carousel__footer {
        gap: 0;
        min-height: 0;
        padding-top: 0;
    }

    /* Touch-friendly controls (Apple HIG 44px) — exclude pagination dots */
    html.ha-unified button:not(.hero-dot):not(.home-training-gallery-dot):not(.hwt-gallery-dot):not(.testimonials-carousel__dot):not(.calendar-filter):not(.ha-mobile-bottom-nav__item):not(.ha-admission-side-tab__btn):not(.ha-admission-side-panel__close),
    html.ha-unified .btn,
    html.ha-unified a.btn,
    html.ha-unified .gallery-filter,
    html.ha-unified .filter-btn,
    html.ha-unified .programs-filter,
    html.ha-unified .mobile-toggle,
    html.ha-unified .top-bar a,
    html.ha-unified .ha-back-to-top {
        min-height: 44px;
    }

    html.ha-unified .gallery-filter,
    html.ha-unified .programs-filter,
    html.ha-unified .filter-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
    }

    /* Full-width CTA stacks */
    html.ha-unified .cta-section {
        padding: clamp(36px, 8vw, 52px) clamp(16px, 4vw, 24px) !important;
    }

    html.ha-unified .cta-btn-group,
    html.ha-unified .inst-btn-group,
    html.ha-unified .btn-group,
    html.ha-unified .hero .btn-group {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 10px !important;
    }

    html.ha-unified .cta-btn-group .btn,
    html.ha-unified .inst-btn-group .btn,
    html.ha-unified .btn-group .btn,
    html.ha-unified .hero .btn-group .btn {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* Gallery toolbar */
    html.ha-unified .gallery-toolbar {
        gap: 12px !important;
    }

    html.ha-unified .gallery-search {
        width: 100% !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
    }

    html.ha-unified .gallery-filters {
        max-width: 100% !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    html.ha-unified .page-gallery .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    /* Notched phones — safe areas */
    html.ha-unified header {
        padding-top: env(safe-area-inset-top, 0px);
    }

    html.ha-unified .ha-back-to-top {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    }

    html.ha-unified footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    }

    html.ha-unified body.page-program-detail main#program-main {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* —— All-page hero & CTA stacks —— */
    html.ha-unified .programs-hero-actions,
    html.ha-unified .programs-hero-cta,
    html.ha-unified .programs-cta-row,
    html.ha-unified .programs-spotlight-cta,
    html.ha-unified .hwt-power-cta .cta-buttons,
    html.ha-unified .about-power-cta .cta-buttons,
    html.ha-unified .infra-power-cta .cta-buttons,
    html.ha-unified .ins-power-cta .cta-buttons,
    html.ha-unified .con-power-cta .cta-buttons,
    html.ha-unified .program-power-cta .cta-buttons,
    html.ha-unified .program-hero-cta,
    html.ha-unified .program-hero-cta--triple,
    html.ha-unified .hwt-hero-cta,
    html.ha-unified .about-hero-cta,
    html.ha-unified .infra-hero-cta,
    html.ha-unified .ins-hero-cta,
    html.ha-unified .con-hero-cta,
    html.ha-unified .programs-hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 10px !important;
    }

    html.ha-unified .programs-hero-actions .btn,
    html.ha-unified .programs-hero-actions .ha-book-counselling,
    html.ha-unified .programs-hero-actions .ha-counselling-trigger,
    html.ha-unified .programs-cta-row .btn,
    html.ha-unified .programs-cta-row .ha-book-counselling,
    html.ha-unified .programs-cta-row .ha-counselling-trigger,
    html.ha-unified .programs-spotlight-cta .btn-card,
    html.ha-unified .programs-spotlight-cta .ha-counselling-trigger,
    html.ha-unified .hwt-power-cta .btn,
    html.ha-unified .program-hero-cta .program-hero-btn,
    html.ha-unified .program-hero-cta .ha-counselling-trigger,
    html.ha-unified .program-hero-cta--triple .program-hero-btn,
    html.ha-unified .program-hero-cta--triple .ha-counselling-trigger,
    html.ha-unified .hwt-hero-cta .btn,
    html.ha-unified .hwt-hero-cta .ha-counselling-trigger,
    html.ha-unified .about-hero-cta .btn,
    html.ha-unified .about-hero-cta .ha-counselling-trigger,
    html.ha-unified .infra-hero-cta .btn,
    html.ha-unified .con-hero-cta .btn,
    html.ha-unified .con-hero-cta .ha-counselling-trigger,
    html.ha-unified .calendar-hero__actions .btn,
    html.ha-unified .calendar-hero-btn {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* —— Typography & text safety —— */
    html.ha-unified .programs-title-line,
    html.ha-unified .programs-pathway-flow,
    html.ha-unified .hwt-sequence-flow {
        white-space: normal !important;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    html.ha-unified .programs-pathway-flow {
        font-size: clamp(0.82rem, 3.2vw, 0.95rem) !important;
        line-height: 1.55 !important;
        padding-inline: 4px;
    }

    /* —— Stats & batch strips —— */
    html.ha-unified .programs-hero-stats,
    html.ha-unified .power-stats-bar,
    html.ha-unified .batch-info-strip,
    html.ha-unified .programs-batch-strip {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html.ha-unified .programs-flagship-highlights {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* —— Common multi-column page grids —— */
    html.ha-unified .testimonials-grid:not(.testimonials-carousel__track),
    html.ha-unified .partner-benefits-grid,
    html.ha-unified .partner-grid,
    html.ha-unified .faq-categories,
    html.ha-unified .calendar-legend,
    html.ha-unified .company-details-grid,
    html.ha-unified .hwt-outcomes-grid,
    html.ha-unified .con-action-grid,
    html.ha-unified .ins-action-grid,
    html.ha-unified .ins-hub-layout,
    html.ha-unified .pf-layout {
        grid-template-columns: 1fr !important;
    }

    /* —— Media & embeds —— */
    html.ha-unified main iframe,
    html.ha-unified main embed,
    html.ha-unified main object,
    html.ha-unified main svg:not(.fa):not([class*="icon"]) {
        max-width: 100% !important;
    }

    html.ha-unified main pre,
    html.ha-unified main code {
        overflow-x: auto;
        word-break: break-word;
    }

    /* —— Power CTA bands —— */
    html.ha-unified .hwt-power-cta,
    html.ha-unified .programs-power-cta,
    html.ha-unified .about-power-cta,
    html.ha-unified .infra-power-cta,
    html.ha-unified .ins-power-cta,
    html.ha-unified .con-power-cta,
    html.ha-unified .program-power-cta,
    html.ha-unified .hwt-why-band {
        padding-inline: clamp(16px, 4vw, 24px) !important;
    }
}

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

    /* Legal strip: see footer-premium.css FOOTER LOCK block */

    html.ha-unified .programs-hero-stats,
    html.ha-unified .power-stats-bar {
        grid-template-columns: 1fr !important;
    }

    html.ha-unified .hwt-why-pill-list {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    html.ha-unified .hwt-why-pill-list span {
        width: 100% !important;
        justify-content: center !important;
        text-align: center;
    }
}

/* =============================================================================
   RESPONSIVE COMPLETION — all pages (phones & small tablets)
   ============================================================================= */
@media (max-width: 768px) {
    html.ha-unified main,
    html.ha-unified main.container {
        padding-top: calc(var(--site-fixed-header-offset, 9.5rem) + clamp(12px, 3vw, 20px)) !important;
        padding-bottom: clamp(48px, 10vw, 72px) !important;
    }

    html.ha-unified body.page-home main#main {
        padding-top: 0 !important;
    }

    html.ha-unified .content-card,
    html.ha-unified .section-box,
    html.ha-unified .content-block {
        padding: clamp(20px, 5vw, 32px) !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html.ha-unified .page-title h1 {
        font-size: clamp(1.65rem, 7vw, 2.35rem) !important;
        line-height: 1.2 !important;
    }

    html.ha-unified .faq-category-header,
    html.ha-unified .faq-question,
    html.ha-unified .partner-acc-header {
        min-height: 48px !important;
        padding: 14px 16px !important;
        font-size: clamp(0.95rem, 4vw, 1.1rem) !important;
    }

    html.ha-unified .faq-container {
        max-width: 100% !important;
    }

    html.ha-unified .form-control,
    html.ha-unified input[type="text"],
    html.ha-unified input[type="email"],
    html.ha-unified input[type="tel"],
    html.ha-unified input[type="url"],
    html.ha-unified input[type="number"],
    html.ha-unified textarea,
    html.ha-unified select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-height: 44px;
    }

    html.ha-unified .radio-group,
    html.ha-unified .checkbox-group {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: start !important;
        gap: 12px !important;
        width: 100% !important;
    }

    html.ha-unified .radio-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px 18px !important;
    }

    html.ha-unified body.page-partner .checkbox-label {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        text-align: left !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        column-gap: 10px !important;
    }

    html.ha-unified body.page-partner .checkbox-label input[type="checkbox"],
    html.ha-unified body.page-partner .checkbox-label input[type="radio"] {
        flex: 0 0 18px !important;
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        max-width: 18px !important;
        margin-top: 3px !important;
    }

    html.ha-unified body.page-partner .checkbox-label span {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        text-align: left !important;
        text-wrap: wrap !important;
        word-break: normal !important;
    }

    html.ha-unified body.page-partner .radio-group .checkbox-label {
        display: inline-flex !important;
        width: auto !important;
        flex: 0 1 auto !important;
    }

    html.ha-unified body.page-home section.hero h1 {
        font-size: clamp(2rem, 9vw, 2.85rem) !important;
        line-height: 1.12 !important;
    }

    html.ha-unified body.page-home .content-box {
        padding: clamp(22px, 5vw, 36px) !important;
    }

    html.ha-unified body.page-home .inst-section-container,
    html.ha-unified body.page-home .inst-image-collage {
        max-width: 100% !important;
    }

    html.ha-unified body.page-home .methodology-panel {
        padding: clamp(20px, 5vw, 32px) !important;
    }

    html.ha-unified body.page-home .flow-diagram {
        flex-direction: column !important;
        align-items: center !important;
        gap: clamp(24px, 5vw, 40px) !important;
        padding: clamp(24px, 5vw, 40px) clamp(12px, 3vw, 20px) !important;
    }

    html.ha-unified main div[style*="padding: 40px"],
    html.ha-unified main div[style*="padding:40px"] {
        padding: clamp(18px, 4.5vw, 28px) !important;
    }

    html.ha-unified main div[style*="gap: 40px"],
    html.ha-unified main div[style*="gap:40px"] {
        gap: clamp(18px, 4vw, 28px) !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    html.ha-unified .program-section table,
    html.ha-unified .content-card table {
        font-size: clamp(0.82rem, 3.2vw, 0.95rem) !important;
    }

    html.ha-unified .images-page .image-grid,
    html.ha-unified #image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    html.ha-unified .images-page .image-grid,
    html.ha-unified #image-grid {
        grid-template-columns: 1fr !important;
    }

    html.ha-unified body.page-home .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================================================
   ALL DEVICES — 320px phones → tablets → landscape → notched → touch
   ============================================================================= */

html.ha-unified main [class*="-grid"] > *,
html.ha-unified main [class*="grid-"] > *,
html.ha-unified main .content-card > *,
html.ha-unified main section > .container {
    min-width: 0;
    box-sizing: border-box;
}

html.ha-unified body.page-home section.hero {
    min-height: min(calc(var(--ha-vh, 1vh) * 100), 920px);
}

/* Extra-small phones (320px — iPhone SE) */
@media (max-width: 359px) {
    html.ha-unified .container {
        padding-inline: 12px !important;
    }

    html.ha-unified .section-header h2,
    html.ha-unified .section-title {
        font-size: clamp(1.15rem, 6.5vw, 1.45rem) !important;
    }

    html.ha-unified body.page-home section.hero h1 {
        font-size: clamp(1.7rem, 8.5vw, 2.1rem) !important;
    }

    html.ha-unified .btn,
    html.ha-unified a.btn {
        font-size: 0.9rem !important;
        padding-inline: 14px !important;
    }
}

/* Landscape phones & short viewports */
@media (max-height: 500px) and (orientation: landscape) {
    html.ha-unified body.page-home section.hero {
        min-height: auto !important;
        padding-top: calc(var(--site-fixed-header-offset, 7rem) + 10px) !important;
        padding-bottom: 20px !important;
    }

    html.ha-unified body.page-home section.hero h1 {
        font-size: clamp(1.45rem, 5vw, 1.9rem) !important;
    }

    html.ha-unified .page-hero,
    html.ha-unified .program-hero,
    html.ha-unified .programs-hero,
    html.ha-unified .about-hero,
    html.ha-unified .infra-hero,
    html.ha-unified .hwt-hero,
    html.ha-unified .ins-hero,
    html.ha-unified .con-hero {
        padding-top: calc(var(--site-fixed-header-offset, 7rem) + 10px) !important;
        padding-bottom: 20px !important;
    }

    html.ha-unified .hero-stats,
    html.ha-unified .program-power-stats,
    html.ha-unified [class*="-hero-stats"],
    html.ha-unified [class*="-power-stats"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

/* Phablets (480–767px) */
@media (min-width: 480px) and (max-width: 767.98px) {
    html.ha-unified .page-gallery .gallery-grid,
    html.ha-unified [data-gallery-grid] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    html.ha-unified .con-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Tablets (768–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    html.ha-unified .section-padding {
        padding-top: clamp(48px, 6vw, 72px) !important;
        padding-bottom: clamp(48px, 6vw, 72px) !important;
    }

    html.ha-unified .programs-filter-bar {
        justify-content: center !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
    }

    html.ha-unified .testimonials-grid:not(.testimonials-carousel__track) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Large desktop */
@media (min-width: 1440px) {
    html.ha-unified .container {
        padding-inline: clamp(24px, 2vw, 40px);
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    html.ha-unified a,
    html.ha-unified button,
    html.ha-unified .btn {
        -webkit-tap-highlight-color: rgba(0, 115, 5, 0.12);
    }
}

/* Mobile — inline-style & component fixes */
@media (max-width: 768px) {
    html.ha-unified main [style*="min-width: 240px"],
    html.ha-unified main [style*="min-width:240px"] {
        min-width: 0 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        border-left: none !important;
    }

    html.ha-unified main [style*="padding-left: 40px"],
    html.ha-unified main [style*="padding-left:40px"] {
        padding-left: clamp(12px, 4vw, 20px) !important;
    }

    html.ha-unified .global-cta {
        padding: clamp(32px, 8vw, 52px) clamp(16px, 4vw, 24px) !important;
        margin: clamp(32px, 6vw, 56px) auto !important;
        border-radius: clamp(14px, 3vw, 20px) !important;
    }

    html.ha-unified .lead-text[style*="font-size: 1.35rem"],
    html.ha-unified main p[style*="font-size: 1.35rem"] {
        font-size: clamp(1.05rem, 4.5vw, 1.25rem) !important;
        line-height: 1.55 !important;
    }

    html.ha-unified main p[style*="font-size: 1.15rem"] {
        font-size: clamp(0.95rem, 4vw, 1.1rem) !important;
    }

    html.ha-unified .program-hero-title,
    html.ha-unified .program-title,
    html.ha-unified h1.programs-title {
        font-size: clamp(1.5rem, 6.5vw, 2.25rem) !important;
        line-height: 1.15 !important;
        overflow-wrap: anywhere;
    }

    html.ha-unified .programs-quick-nav,
    html.ha-unified .program-quick-nav,
    html.ha-unified .about-quick-nav,
    html.ha-unified .hwt-quick-nav,
    html.ha-unified .infra-quick-nav,
    html.ha-unified .ins-quick-nav,
    html.ha-unified .con-quick-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain;
        gap: 8px !important;
        padding-bottom: 8px !important;
        scrollbar-width: thin;
        max-width: 100% !important;
    }

    html.ha-unified .programs-quick-nav a,
    html.ha-unified .program-quick-nav a,
    html.ha-unified .about-quick-nav a,
    html.ha-unified .hwt-quick-nav a,
    html.ha-unified .infra-quick-nav a,
    html.ha-unified .ins-quick-nav a,
    html.ha-unified .con-quick-nav a {
        flex-shrink: 0;
        white-space: nowrap;
    }

    html.ha-unified .ha-counselling-modal__dialog {
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(96vh, 900px) !important;
        border-radius: 18px 18px 0 0 !important;
    }

    html.ha-unified .ha-counselling-modal__frame {
        min-height: 560px !important;
        height: calc(96vh - 210px) !important;
    }

    html.ha-unified .skip-link:focus {
        top: env(safe-area-inset-top, 0);
    }

    html.ha-unified .page-gallery {
        min-height: auto !important;
    }
}

/* Notched phones — safe areas */
@supports (padding: max(0px)) {
    html.ha-unified header#header {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    html.ha-unified .ha-back-to-top {
        right: max(12px, env(safe-area-inset-right)) !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
    }

    html.ha-unified .ha-counselling-modal {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

/* =============================================================================
   Mobile polish — sticky CTAs, spacing, touch targets (Option A)
   ============================================================================= */
@media (max-width: 768px) {
    :root {
        --ha-mobile-dock-h: 80px;
        /* Nav row only — top-bar hidden on phone */
        --site-fixed-header-offset: calc(4.75rem + env(safe-area-inset-top, 0px));
    }

    /* Hide green top-bar CTAs on phone (View Calendar / How to Enroll / Enquire Now) */
    html.ha-unified header#header .top-bar,
    html.ha-unified header .top-bar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        pointer-events: none !important;
    }

    html.ha-unified body.page-program-detail main#program-main {
        padding-bottom: calc(var(--ha-mobile-dock-h, 72px) + 20px + env(safe-area-inset-bottom, 0px)) !important;
    }

    html.ha-unified body.ha-mobile-dock-visible main,
    html.ha-unified body.ha-mobile-dock-visible main.container,
    html.ha-unified body.ha-mobile-scroll-dock main,
    html.ha-unified body.ha-mobile-scroll-dock main.container {
        padding-bottom: calc(var(--ha-mobile-dock-h, 72px) + 24px + env(safe-area-inset-bottom, 0px)) !important;
    }

    html.ha-unified body.page-program-detail .ha-back-to-top,
    html.ha-unified body.ha-mobile-dock-visible .ha-back-to-top,
    html.ha-unified body.ha-mobile-program-dock .ha-back-to-top {
        bottom: calc(var(--ha-mobile-dock-h, 80px) + 14px + env(safe-area-inset-bottom, 0px)) !important;
    }

    html.ha-unified body.ha-mobile-scroll-dock:not(.ha-mobile-dock-visible) .ha-back-to-top {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }

    html.ha-unified body.ha-mobile-dock-visible footer.ha-footer,
    html.ha-unified body.ha-mobile-dock-visible footer#contact,
    html.ha-unified body.ha-enroll-dock-desktop footer.ha-footer,
    html.ha-unified body.ha-enroll-dock-desktop footer#contact {
        scroll-margin-bottom: calc(var(--ha-mobile-dock-h, 80px) + 16px);
    }

    /* Dock must not cover footer — extra bottom space when footer is in view handled via JS hide */

    /* —— All pages: cards, CTAs, forms —— */
    html.ha-unified main .content-card,
    html.ha-unified main .content-card--power,
    html.ha-unified main .global-cta,
    html.ha-unified main .program-section {
        margin-bottom: 14px;
    }

    html.ha-unified main .btn,
    html.ha-unified main a.btn,
    html.ha-unified main .btn-card,
    html.ha-unified main .btn-primary-green,
    html.ha-unified main .footer-cta {
        min-height: 48px;
    }

    html.ha-unified main input:not([type="checkbox"]):not([type="radio"]),
    html.ha-unified main select,
    html.ha-unified main textarea {
        min-height: 44px;
        font-size: 16px;
    }

    html.ha-unified body.page-calendar .calendar-search__input {
        min-height: 0 !important;
        height: auto !important;
        font-size: 16px;
    }

    html.ha-unified body.page-calendar .calendar-search {
        height: 44px;
        min-height: 44px;
        max-height: 44px;
    }

    html.ha-unified .faq-question {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    html.ha-unified .calendar-table-wrap,
    html.ha-unified .ha-fee-table-wrap,
    html.ha-unified .programs-compare-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    html.ha-unified .page-contact .con-contact-card,
    html.ha-unified .page-about .about-card,
    html.ha-unified .page-insights .article-card,
    html.ha-unified .page-testimonials .testimonial-card {
        padding: clamp(16px, 4vw, 22px) !important;
    }

    html.ha-unified .page-blog-article .blog-article-body {
        padding-inline: clamp(14px, 4vw, 20px);
    }

    html.ha-unified .legal-footer,
    html.ha-unified .disclaimer-text {
        font-size: clamp(0.78rem, 3.2vw, 0.88rem) !important;
        line-height: 1.55 !important;
    }

    html.ha-unified body.page-program-detail .program-overview-facts li {
        padding: 4px 0;
        line-height: 1.55;
    }

    html.ha-unified .footer-cta,
    html.ha-unified .footer-contact-card,
    html.ha-unified footer.ha-footer .horizontal-legal-links a {
        min-height: 48px;
    }

    html.ha-unified .page-gallery .gallery-panel {
        padding: clamp(14px, 4vw, 20px);
    }

    html.ha-unified .page-gallery button.gallery-card {
        min-height: 120px;
    }

    html.ha-unified .ha-mobile-enroll-dock {
        display: none !important;
    }

    html.ha-unified body.page-home .hero .btn-group .btn,
    html.ha-unified body.page-programs .programs-hero-cta .btn,
    html.ha-unified body.page-about .about-hero-cta .btn,
    html.ha-unified body.page-infrastructure .infra-hero-cta .btn,
    html.ha-unified body.page-how-we-train .hwt-hero-cta .btn,
    html.ha-unified body.page-contact .con-hero-cta .btn,
    html.ha-unified body.page-insights .ins-hero-cta .btn,
    html.ha-unified body.page-calendar .calendar-hero__actions .btn,
    html.ha-unified body.page-calendar .calendar-hero-btn {
        min-height: 48px;
    }
}

@media (max-width: 640px) {
    html.ha-unified .programs-compare-wrap,
    html.ha-unified .enroll-fee-wrap,
    html.ha-unified .infra-compare-wrap,
    html.ha-unified .program-compare-wrap,
    html.ha-unified .program-batch-wrap,
    html.ha-unified .program-schedule-wrap {
        overflow-x: visible !important;
    }
}

/* =============================================================================
   Mobile bottom navigation dock (Admissions · Contact · Menu) — phone only
   ============================================================================= */
@media (max-width: 640px) {
    :root {
        --ha-mobile-bottom-nav-h: calc(84px + env(safe-area-inset-bottom, 0px));
        --ha-bottom-nav-bg: #003808;
        --ha-bottom-nav-fg: #ffffff;
        --ha-bottom-nav-muted: rgba(255, 255, 255, 0.88);
        --ha-bottom-nav-pill: rgba(255, 255, 255, 0.12);
        --ha-bottom-nav-pill-active: rgba(184, 255, 196, 0.32);
    }

    @keyframes ha-bottom-nav-in {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes ha-nav-item-stagger {
        from {
            opacity: 0;
            transform: translateY(12px) scale(0.94);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes ha-nav-ripple {
        to {
            transform: scale(2.4);
            opacity: 0;
        }
    }

    @keyframes ha-nav-icon-pop {
        0% { transform: scale(1); }
        45% { transform: scale(1.18) translateY(-2px); }
        100% { transform: scale(1) translateY(0); }
    }

    @keyframes ha-sheet-link-in {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes ha-nav-pill-glow {
        0%, 100% {
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.18),
                0 0 0 1px rgba(184, 255, 196, 0.22),
                0 4px 16px rgba(0, 0, 0, 0.22);
        }
        50% {
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.24),
                0 0 14px rgba(184, 255, 196, 0.38),
                0 6px 20px rgba(0, 0, 0, 0.28);
        }
    }

    @keyframes ha-nav-shine {
        0% { transform: translateX(-130%) skewX(-12deg); opacity: 0; }
        18% { opacity: 0.55; }
        100% { transform: translateX(130%) skewX(-12deg); opacity: 0; }
    }

    @keyframes ha-sheet-spring {
        0% {
            opacity: 0;
            transform: translateY(28px) scale(0.94);
        }
        68% {
            opacity: 1;
            transform: translateY(-4px) scale(1.01);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes ha-nav-menu-spin {
        from { transform: rotate(0deg) scale(1); }
        to { transform: rotate(90deg) scale(1.06); }
    }

    html.ha-unified .ha-mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 10052;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        align-content: center;
        justify-content: space-between;
        gap: clamp(6px, 2vw, 10px);
        height: calc(84px + env(safe-area-inset-bottom, 0px));
        min-height: calc(84px + env(safe-area-inset-bottom, 0px));
        max-height: calc(84px + env(safe-area-inset-bottom, 0px));
        padding: 10px clamp(8px, 3vw, 14px) calc(10px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        overflow: visible;
        isolation: isolate;
        background:
            linear-gradient(180deg, rgba(0, 91, 8, 0.97) 0%, rgba(0, 50, 8, 0.99) 100%);
        border-top: 1px solid rgba(200, 255, 210, 0.42);
        box-shadow:
            0 -10px 32px rgba(0, 0, 0, 0.38),
            0 -2px 0 rgba(184, 255, 196, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(18px) saturate(1.35);
        -webkit-backdrop-filter: blur(18px) saturate(1.35);
        opacity: 0;
        transform: translateY(100%);
        transition: box-shadow 0.28s ease;
    }

    html.ha-unified .ha-mobile-bottom-nav.is-ready {
        animation: ha-bottom-nav-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    html.ha-unified .ha-mobile-bottom-nav.is-ready .ha-mobile-bottom-nav__item {
        animation: ha-nav-item-stagger 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        animation-delay: calc(var(--nav-i, 0) * 0.08s + 0.14s);
        opacity: 1;
        visibility: visible;
    }

    html.ha-unified .ha-mobile-bottom-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 8%;
        right: 8%;
        height: 1px;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, rgba(220, 255, 225, 0.75), transparent);
        pointer-events: none;
        z-index: 2;
    }

    html.ha-unified .ha-mobile-bottom-nav.is-sheet-open {
        box-shadow:
            0 -12px 36px rgba(0, 0, 0, 0.42),
            0 0 24px rgba(52, 211, 153, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.16);
        height: calc(84px + env(safe-area-inset-bottom, 0px));
        min-height: calc(84px + env(safe-area-inset-bottom, 0px));
        max-height: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    html.ha-unified .ha-mobile-bottom-nav[hidden] {
        display: none !important;
    }

    html.ha-unified body.page-program-detail .ha-mobile-bottom-nav {
        display: none !important;
    }

    html.ha-unified .ha-mobile-bottom-nav__item {
        appearance: none;
        -webkit-appearance: none;
        position: relative;
        overflow: hidden;
        flex: 1 1 0 !important;
        align-self: stretch !important;
        max-width: none;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: clamp(4px, 1.6vw, 7px);
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        min-width: 0;
        margin: 0;
        padding: 0 clamp(8px, 2.8vw, 12px);
        box-sizing: border-box;
        border: 1px solid rgba(200, 255, 210, 0.28);
        border-radius: 999px;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%);
        color: var(--ha-bottom-nav-fg);
        font-family: 'Inter', system-ui, sans-serif;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        opacity: 1;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 2px 8px rgba(0, 0, 0, 0.12);
        transform: translateY(0) scale(1);
        transition:
            background 0.22s ease,
            border-color 0.22s ease,
            box-shadow 0.22s ease,
            transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    }

    html.ha-unified .ha-mobile-bottom-nav__ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.32);
        pointer-events: none;
        transform: scale(0);
        animation: ha-nav-ripple 0.52s ease-out forwards;
        z-index: 0;
    }

    html.ha-unified .ha-mobile-bottom-nav__item::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 52%);
        pointer-events: none;
        z-index: 0;
        opacity: 1;
        transition: opacity 0.22s ease;
    }

    html.ha-unified .ha-mobile-bottom-nav__item::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 50%;
        width: 0;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(184, 255, 196, 0.2), rgba(220, 255, 225, 0.95), rgba(184, 255, 196, 0.2));
        box-shadow: 0 0 10px rgba(184, 255, 196, 0.55);
        transform: translateX(-50%);
        opacity: 0;
        transition:
            width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.22s ease;
        pointer-events: none;
        z-index: 2;
    }

    html.ha-unified .ha-mobile-bottom-nav__item.is-pressed::before {
        opacity: 0.55;
    }

    html.ha-unified .ha-mobile-bottom-nav__item.is-tapped::after {
        animation: none;
    }

    html.ha-unified .ha-mobile-bottom-nav__item.is-pressed {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0.96);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.14),
            0 1px 4px rgba(0, 0, 0, 0.18);
    }

    html.ha-unified .ha-mobile-bottom-nav__item.is-pressed .ha-mobile-bottom-nav__icon,
    html.ha-unified .ha-mobile-bottom-nav__icon.is-pop {
        animation: ha-nav-icon-pop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @media (hover: hover) and (pointer: fine) {
        html.ha-unified .ha-mobile-bottom-nav__item:hover,
        html.ha-unified .ha-mobile-bottom-nav__item:focus-visible {
            background: rgba(255, 255, 255, 0.16);
            border-color: rgba(220, 255, 225, 0.42);
            outline: none;
            transform: none;
        }
    }

    html.ha-unified .ha-mobile-bottom-nav__icon-wrap {
        display: contents;
    }

    html.ha-unified .ha-mobile-bottom-nav__icon {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: clamp(22px, 6vw, 26px);
        height: clamp(22px, 6vw, 26px);
        flex: 0 0 clamp(22px, 6vw, 26px);
        font-size: clamp(1.1rem, 4.2vw, 1.35rem);
        line-height: 1;
        color: var(--ha-bottom-nav-fg);
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
        transition: color 0.2s ease, transform 0.2s ease;
    }

    html.ha-unified .ha-mobile-bottom-nav__icon .ha-bottom-nav-svg,
    html.ha-unified .ha-mobile-bottom-nav__icon svg {
        width: 1.72rem;
        height: 1.72rem;
        display: block;
        flex-shrink: 0;
    }

    html.ha-unified .ha-mobile-bottom-nav__icon i {
        font-size: 1.45rem;
        line-height: 1;
        color: var(--ha-bottom-nav-fg) !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html.ha-unified .ha-mobile-bottom-nav__dot {
        display: none !important;
    }

    html.ha-unified .ha-mobile-bottom-nav__item.is-active {
        background: linear-gradient(145deg, rgba(184, 255, 196, 0.36) 0%, rgba(120, 220, 140, 0.22) 100%);
        border-color: rgba(220, 255, 225, 0.68);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.22),
            0 0 0 1px rgba(184, 255, 196, 0.28),
            0 6px 18px rgba(0, 0, 0, 0.24);
        transform: translateY(-2px) scale(1.03);
        animation: ha-nav-pill-glow 2.6s ease-in-out infinite;
    }

    html.ha-unified .ha-mobile-bottom-nav__item.is-active::after,
    html.ha-unified .ha-mobile-bottom-nav__item[aria-expanded="true"]::after {
        width: clamp(18px, 28%, 28px);
        opacity: 1;
    }

    html.ha-unified .ha-mobile-bottom-nav__item.is-active .ha-mobile-bottom-nav__icon {
        color: #ffffff;
        transform: scale(1.08);
    }

    html.ha-unified .ha-mobile-bottom-nav__item.is-active[data-nav-key="menu"] .ha-mobile-bottom-nav__icon {
        animation: ha-nav-menu-spin 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    html.ha-unified .ha-mobile-bottom-nav__label {
        position: relative;
        z-index: 1;
        flex: 0 1 auto;
        font-size: clamp(0.58rem, 2.6vw, 0.68rem);
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        line-height: 1;
        text-align: left;
        color: var(--ha-bottom-nav-muted);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-text-fill-color: currentColor !important;
        transition: color 0.2s ease;
    }

    html.ha-unified .ha-mobile-bottom-nav__item.is-active .ha-mobile-bottom-nav__label {
        color: #ffffff;
        -webkit-text-fill-color: #ffffff !important;
    }

    html.ha-unified .ha-mobile-admission-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10050;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(0, 20, 4, 0.42);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        filter: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        cursor: pointer;
    }

    html.ha-unified .ha-mobile-admission-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
        z-index: 10053;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        filter: none;
    }

    html.ha-unified .ha-mobile-admission-backdrop[hidden] {
        display: none !important;
    }

    html.ha-unified body.ha-mobile-sheet-open {
        overflow: hidden;
        touch-action: none;
    }

    html.ha-unified .ha-mobile-admission-sheet {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(var(--ha-mobile-bottom-nav-h, 78px) + 10px);
        z-index: 10051;
        display: grid;
        gap: 8px;
        padding: 14px;
        border-radius: 20px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 251, 247, 0.98) 100%);
        border: 1px solid rgba(0, 115, 5, 0.16);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.95) inset,
            0 24px 52px rgba(0, 0, 0, 0.32),
            0 0 0 1px rgba(184, 255, 196, 0.12);
        transform: translateY(18px) scale(0.97);
        opacity: 0;
        pointer-events: none;
        transition:
            transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.28s ease;
    }

    html.ha-unified .ha-mobile-admission-sheet.is-open {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
        z-index: 10054;
        animation: ha-sheet-spring 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    }

    html.ha-unified .ha-mobile-admission-sheet[hidden] {
        display: none !important;
    }

    html.ha-unified .ha-mobile-admission-sheet__head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
        padding: 2px 4px 4px;
    }

    html.ha-unified .ha-mobile-admission-sheet__title {
        font-family: 'Inter', system-ui, sans-serif;
        font-size: 0.92rem;
        font-weight: 800;
        color: var(--dark-green, #004b04);
        letter-spacing: 0.02em;
    }

    html.ha-unified .ha-mobile-admission-sheet__hint {
        font-size: 0.72rem;
        font-weight: 600;
        color: rgba(0, 75, 4, 0.55);
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    html.ha-unified .ha-mobile-admission-sheet__link {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 11px 14px;
        border-radius: 13px;
        background: #f6fbf7;
        border: 1px solid rgba(0, 115, 5, 0.1);
        color: var(--dark-green, #004b04);
        font-family: 'Inter', system-ui, sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        transition:
            background 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
        opacity: 0;
        transform: translateY(8px);
    }

    html.ha-unified .ha-mobile-admission-sheet.is-open .ha-mobile-admission-sheet__link {
        animation: ha-sheet-link-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        animation-delay: calc(0.04s + (var(--sheet-i, 0) * 0.05s));
    }

    html.ha-unified .ha-mobile-admission-sheet__link.is-pressed {
        transform: scale(0.98);
        background: #ecfdf5;
    }

    html.ha-unified .ha-mobile-admission-sheet__link:hover,
    html.ha-unified .ha-mobile-admission-sheet__link:focus-visible {
        background: #ecfdf5;
        border-color: rgba(0, 115, 5, 0.28);
        transform: translateX(4px);
        outline: none;
    }

    html.ha-unified .ha-mobile-admission-sheet__link--cta {
        background: linear-gradient(135deg, #006b04 0%, #004b04 100%);
        border-color: rgba(255, 255, 255, 0.12);
        color: #fff;
        box-shadow: 0 8px 20px rgba(0, 75, 4, 0.28);
    }

    html.ha-unified .ha-mobile-admission-sheet__link--cta i {
        color: #bbf7d0 !important;
    }

    html.ha-unified .ha-mobile-admission-sheet__link--cta:hover,
    html.ha-unified .ha-mobile-admission-sheet__link--cta:focus-visible {
        background: linear-gradient(135deg, #007a05 0%, #005805 100%);
        color: #fff;
    }

    html.ha-unified .ha-mobile-admission-sheet__link i {
        width: 20px;
        color: var(--primary-green, #007305);
        text-align: center;
        font-size: 0.95rem;
        transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    }

    html.ha-unified .ha-mobile-admission-sheet__link:hover i,
    html.ha-unified .ha-mobile-admission-sheet__link:focus-visible i,
    html.ha-unified .ha-mobile-admission-sheet__link.is-pressed i {
        transform: scale(1.12) translateX(2px);
    }

    html.ha-unified .ha-mobile-admission-sheet__ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(0, 115, 5, 0.14);
        pointer-events: none;
        transform: scale(0);
        animation: ha-nav-ripple 0.52s ease-out forwards;
        z-index: 0;
    }

    html.ha-unified body.ha-mobile-bottom-nav-on main,
    html.ha-unified body.ha-mobile-bottom-nav-on main.container,
    html.ha-unified body.ha-mobile-bottom-nav-on #program-main {
        padding-bottom: var(--ha-page-pad-nav-clear, calc(var(--ha-mobile-bottom-nav-h, 78px) + 24px)) !important;
    }

    html.ha-unified body.ha-mobile-bottom-nav-on footer.ha-footer,
    html.ha-unified body.ha-mobile-bottom-nav-on footer#contact {
        padding-bottom: calc(var(--ha-mobile-bottom-nav-h, 78px) + 12px) !important;
    }

    html.ha-unified body.ha-mobile-bottom-nav-on .ha-back-to-top {
        bottom: calc(var(--ha-mobile-bottom-nav-h, 78px) + 12px) !important;
    }

    html.ha-unified #global-mobile-menu-panel {
        z-index: 10100 !important;
    }
}

@media (max-width: 380px) {
    html.ha-unified .ha-mobile-bottom-nav {
        padding-inline: 6px;
        gap: 5px;
        height: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
        min-height: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    }

    html.ha-unified .ha-mobile-bottom-nav__item {
        padding: 0 6px !important;
        gap: 4px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }

    html.ha-unified .ha-mobile-bottom-nav__label {
        font-size: 0.54rem !important;
        letter-spacing: 0.04em !important;
    }

    html.ha-unified .ha-mobile-admission-sheet {
        left: 8px;
        right: 8px;
        padding: 10px;
    }
}

@media (max-width: 320px) {
    html.ha-unified .ha-mobile-bottom-nav__label {
        font-size: 0.5rem !important;
    }

    html.ha-unified .ha-mobile-bottom-nav__item {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding: 0 5px !important;
    }
}

/* =============================================================================
   Site-wide padding normalization
   ============================================================================= */
@media (max-width: 768px) {
    /* Power hero CTAs — stack with even padding on phones */
    html.ha-unified .about-hero-cta,
    html.ha-unified .infra-hero-cta,
    html.ha-unified .hwt-hero-cta,
    html.ha-unified .con-hero-cta,
    html.ha-unified .ins-hero-cta {
        gap: 10px !important;
        padding-inline: clamp(4px, 2vw, 8px);
    }

    html.ha-unified .about-hero-cta .btn,
    html.ha-unified .infra-hero-cta .btn,
    html.ha-unified .hwt-hero-cta .btn,
    html.ha-unified .con-hero-cta .btn,
    html.ha-unified .ins-hero-cta .btn,
    html.ha-unified .about-hero-cta .ha-counselling-trigger,
    html.ha-unified .infra-hero-cta .ha-counselling-trigger,
    html.ha-unified .hwt-hero-cta .ha-counselling-trigger,
    html.ha-unified .con-hero-cta .ha-counselling-trigger,
    html.ha-unified .ins-hero-cta .ha-counselling-trigger {
        min-height: 46px;
        padding: 12px 20px;
        box-sizing: border-box;
    }

    html.ha-unified body.page-programs main.container {
        margin-top: 0 !important;
    }

    html.ha-unified body.page-programs .content-card {
        padding: clamp(20px, 5vw, 36px) clamp(16px, 4vw, 24px) !important;
    }

    html.ha-unified body.page-calendar main.calendar-main,
    html.ha-unified body.page-calendar main.container {
        padding-top: clamp(20px, 4vw, 32px) !important;
        padding-bottom: clamp(40px, 8vw, 64px) !important;
    }

    html.ha-unified body.page-calendar .calendar-shell {
        padding-inline: var(--gutter) !important;
    }

    html.ha-unified main#program-main:has(.batch-info-strip) {
        margin-top: 0 !important;
        padding-top: clamp(12px, 3vw, 20px) !important;
    }

    html.ha-unified .container,
    html.ha-unified main.container {
        padding-inline: var(--gutter) !important;
        box-sizing: border-box;
    }
}

@media (max-width: 900px) {
    html.ha-unified .about-hero-cta,
    html.ha-unified .infra-hero-cta,
    html.ha-unified .hwt-hero-cta,
    html.ha-unified .con-hero-cta,
    html.ha-unified .ins-hero-cta {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 360px !important;
        margin-inline: auto !important;
    }

    html.ha-unified .about-hero-cta .btn,
    html.ha-unified .infra-hero-cta .btn,
    html.ha-unified .hwt-hero-cta .btn,
    html.ha-unified .con-hero-cta .btn,
    html.ha-unified .ins-hero-cta .btn,
    html.ha-unified .about-hero-cta .ha-book-counselling,
    html.ha-unified .infra-hero-cta .ha-book-counselling,
    html.ha-unified .hwt-hero-cta .ha-book-counselling,
    html.ha-unified .con-hero-cta .ha-book-counselling,
    html.ha-unified .ins-hero-cta .ha-book-counselling,
    html.ha-unified .about-hero-cta .ha-counselling-trigger,
    html.ha-unified .infra-hero-cta .ha-counselling-trigger,
    html.ha-unified .hwt-hero-cta .ha-counselling-trigger,
    html.ha-unified .con-hero-cta .ha-counselling-trigger,
    html.ha-unified .ins-hero-cta .ha-counselling-trigger {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.ha-unified .ha-mobile-bottom-nav.is-ready,
    html.ha-unified .ha-mobile-bottom-nav.is-ready .ha-mobile-bottom-nav__item,
    html.ha-unified .ha-mobile-bottom-nav__icon.is-pop {
        animation: none !important;
    }
}

@media (min-width: 641px) {
    html.ha-unified .ha-mobile-bottom-nav,
    html.ha-unified .ha-mobile-admission-sheet,
    html.ha-unified .ha-mobile-admission-backdrop {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }
}
