/* Inner marketing pages — matches homepage (Nipun India Schools ERP) */

.hp-inner-page .hp-inner-main {
    min-height: 50vh;
}

.hp-page-hero {
    padding: 3.5rem 0 3rem;
    background: linear-gradient(135deg, #002443 0%, #0a3d6e 55%, #0f4c81 100%);
    color: #fff;
}

.hp-page-hero .container {
    max-width: 52rem;
}

.hp-page-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.hp-page-hero h1 {
    margin: 0 0 1rem;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.hp-page-hero-lead {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 42rem;
}

.hp-page-section {
    padding: 3.5rem 0;
}

.hp-page-section--alt {
    background: #f8fafc;
}

.hp-page-section-head {
    max-width: 40rem;
    margin-bottom: 2.25rem;
}

.hp-page-section-head h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #002443;
}

.hp-page-section-head p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.72);
}

.hp-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.hp-service-card {
    padding: 1.5rem 1.35rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 36, 67, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 36, 67, 0.1);
}

.hp-service-card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 1.25rem;
}

.hp-service-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #002443;
}

.hp-service-card p {
    margin: 0;
    font-size: 0.9875rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.68);
}

.hp-service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e40af;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.hp-service-card-link:hover {
    color: var(--hp-color-hover-accent, #ea580c);
    gap: 0.5rem;
}

.hp-service-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.hp-service-jump-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #002443;
    text-decoration: none;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hp-service-jump-link:hover {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.hp-services-page .hp-breadcrumb {
    margin-bottom: 1.5rem;
}

.hp-contact-page .hp-breadcrumb,
.hp-gallery-page .hp-breadcrumb,
.hp-about-page .hp-breadcrumb,
.hp-centers-page .hp-breadcrumb,
.hp-legal-page .hp-breadcrumb,
.hp-franchise-enquiry-page .hp-breadcrumb {
    margin-bottom: 1rem;
}

.hp-page-trust {
    margin-bottom: 1.75rem;
}

.hp-franchise-enquiry-stats {
    margin-bottom: 2rem;
}

.hp-legal-page .hp-page-prose {
    margin-top: 0;
}

.hp-page-quick-links {
    margin-bottom: 1.75rem;
}

.hp-services-stats {
    margin-top: 0;
}

.hp-service-card:target {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), 0 12px 28px rgba(0, 36, 67, 0.1);
}

.hp-about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 0;
}

.hp-about-stat {
    padding: 1.35rem 1.15rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 36, 67, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hp-about-stat:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 6px 18px rgba(0, 36, 67, 0.08);
    transform: translateY(-2px);
}

.hp-about-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #002443;
    line-height: 1.15;
}

.hp-about-stat span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.62);
}

.hp-about-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 1.75rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, rgba(0, 36, 67, 0.04), rgba(212, 175, 55, 0.07));
    border: 1px solid rgba(0, 36, 67, 0.1);
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #002443;
}

.hp-about-credentials span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hp-about-credentials i {
    color: #b8860b;
    font-size: 0.75rem;
}

.hp-about-beliefs-section {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
}

.hp-about-belief-card {
    border-top: 3px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-about-belief-card:hover {
    border-top-color: #b8860b;
    box-shadow: 0 10px 28px rgba(0, 36, 67, 0.08);
}

.hp-about-cta {
    max-width: 42rem;
    margin: 0 auto;
}

.hp-gallery-page .hp-gallery-grid {
    margin-top: 0;
}

/* ---- Gallery page (professional) ---- */
.hp-gallery-page {
    padding-top: 2.5rem;
}

.hp-gallery-stats {
    margin-bottom: 1.75rem;
}

.hp-gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 36, 67, 0.05);
}

.hp-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hp-gallery-filter {
    padding: 0.45rem 0.9rem;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #002443;
    cursor: pointer;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hp-gallery-filter:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.hp-gallery-filter.is-active {
    color: #fff;
    background: linear-gradient(135deg, #002443, #0f4c81);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 36, 67, 0.22);
}

.hp-gallery-count {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.55);
}

.hp-gallery-count span {
    color: #002443;
}

.hp-gallery-grid--pro {
    grid-auto-rows: minmax(180px, 200px);
    gap: 1.15rem;
}

.hp-gallery-page .hp-gallery-item {
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-gallery-page .hp-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 36, 67, 0.14);
}

.hp-gallery-page .hp-gallery-item--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.hp-gallery-page .hp-gallery-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    cursor: pointer;
    background: transparent;
    position: relative;
}

.hp-gallery-page .hp-gallery-open img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-gallery-item-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.55) 100%);
    opacity: 0.85;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.hp-gallery-item-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #002443;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hp-gallery-page .hp-gallery-item:hover .hp-gallery-item-zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hp-gallery-page .hp-gallery-item figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 2.5rem 1rem 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.hp-gallery-page .hp-gallery-item figcaption strong {
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hp-gallery-page .hp-gallery-item figcaption span {
    font-weight: 500;
    font-size: 0.78rem;
    opacity: 0.92;
}

.hp-gallery-empty {
    margin: 0 0 1rem;
    padding: 2rem;
    text-align: center;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.55);
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.hp-gallery-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.15rem;
}

.hp-gallery-module-card {
    display: block;
    padding: 1.35rem 1.25rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 36, 67, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hp-gallery-module-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 28px rgba(0, 36, 67, 0.1);
}

.hp-gallery-module-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 1.15rem;
}

.hp-gallery-module-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.0625rem;
    font-weight: 800;
    color: #002443;
}

.hp-gallery-module-card p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.68);
}

.hp-gallery-credit {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

/* Lightbox */
body.hp-gallery-lightbox-open {
    overflow: hidden;
}

.hp-gallery-lightbox[hidden] {
    display: none !important;
}

.hp-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.hp-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 40, 0.88);
    backdrop-filter: blur(6px);
}

.hp-gallery-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hp-gallery-lightbox-figure {
    flex: 1;
    margin: 0;
    min-width: 0;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hp-gallery-lightbox-figure img {
    display: block;
    width: 100%;
    max-height: min(72vh, 640px);
    object-fit: contain;
    background: #020617;
}

.hp-gallery-lightbox-figure figcaption {
    position: static;
    padding: 1rem 1.15rem 1.15rem;
    background: #fff;
    color: #002443;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hp-gallery-lightbox-figure figcaption strong {
    font-size: 1.0625rem;
}

.hp-gallery-lightbox-figure figcaption span {
    font-size: 0.9375rem;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.5;
}

.hp-gallery-lightbox-close {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    transform: translateY(-100%);
}

.hp-gallery-lightbox-nav {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.hp-gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 768px) {
    .hp-gallery-page .hp-gallery-item--featured,
    .hp-gallery-page .hp-gallery-item--wide {
        grid-column: span 2;
        grid-row: span 1;
    }

    .hp-gallery-grid--pro {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

    .hp-gallery-lightbox-prev,
    .hp-gallery-lightbox-next {
        position: absolute;
        bottom: -3.25rem;
    }

    .hp-gallery-lightbox-prev {
        left: calc(50% - 3rem);
    }

    .hp-gallery-lightbox-next {
        right: calc(50% - 3rem);
    }

    .hp-gallery-lightbox-panel {
        padding-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .hp-gallery-grid--pro {
        grid-template-columns: 1fr;
    }

    .hp-gallery-page .hp-gallery-item--featured,
    .hp-gallery-page .hp-gallery-item--wide {
        grid-column: span 1;
    }
}

/* ---- Schools / Colleges directory (4-column card grid) ---- */
.hp-centers-page {
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
}

.hp-centers-page .hp-breadcrumb {
    margin-bottom: 1.25rem;
}

.hp-centers-page .hp-page-section-head {
    max-width: 38rem;
    margin-bottom: 1.5rem;
}

.hp-centers-page .hp-page-section-head h2 {
    letter-spacing: var(--hp-tracking-tight, -0.02em);
    line-height: 1.2;
}

.hp-centers-page .hp-page-section-head p {
    font-size: 1.025rem;
    line-height: 1.6;
    color: var(--hp-color-text-muted, rgba(0, 0, 0, 0.68));
}

.hp-centers-stats {
    margin: 0 0 1.35rem;
}

.hp-centers-state-jump {
    margin-bottom: 1.65rem;
}

.hp-centers-state:target {
    scroll-margin-top: 5.5rem;
}

.hp-centers-state:target .hp-centers-state-head {
    border-bottom-color: var(--hp-brand);
}

.hp-centers-state:target .hp-centers-state-head h2 {
    color: var(--hp-indigo-dark);
}

/* Recent schools strip */
.hp-centers-recent {
    margin: 0 0 2.25rem;
    padding: 1.5rem 1.35rem 1.6rem;
    border-radius: calc(var(--hp-radius-md) + 4px);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(49, 112, 222, 0.12), transparent 55%),
        radial-gradient(90% 70% at 100% 10%, rgba(0, 36, 67, 0.06), transparent 50%),
        var(--hp-surface);
    border: 1px solid var(--hp-brand-border);
    box-shadow: var(--hp-shadow-sm);
    scroll-margin-top: 5.5rem;
}

.hp-centers-recent-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.hp-centers-recent-kicker {
    margin: 0 0 0.35rem;
    font-size: var(--hp-text-xs);
    font-weight: var(--hp-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hp-indigo-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hp-centers-recent-head h2 {
    margin: 0 0 0.35rem;
    font-family: var(--hp-font-sans);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: var(--hp-weight-extrabold);
    color: var(--hp-navy);
    letter-spacing: var(--hp-tracking-tight);
}

.hp-centers-recent-lead {
    margin: 0;
    max-width: 36rem;
    font-size: var(--hp-text-sm);
    color: var(--hp-color-text-muted);
    line-height: 1.5;
}

.hp-centers-recent-jump {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    font-size: var(--hp-text-sm);
    font-weight: var(--hp-weight-semibold);
    color: var(--hp-indigo-dark);
    text-decoration: none;
    border: 1px solid var(--hp-brand-border);
    border-radius: var(--hp-radius-pill);
    background: rgba(255, 255, 255, 0.75);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hp-centers-recent-jump:hover {
    background: var(--hp-brand-soft);
    border-color: var(--hp-brand);
    transform: translateY(-1px);
}

.hp-centers-recent-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hp-centers-recent-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.15rem 1.1rem 1.15rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-md);
    box-shadow: var(--hp-shadow-sm);
    animation: hp-centers-recent-in 0.55s var(--hp-ease, ease) both;
    animation-delay: calc(var(--hp-recent-i, 0) * 0.06s);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.hp-centers-recent-card:hover {
    transform: translateY(-3px);
    border-color: var(--hp-brand-border);
    box-shadow: var(--hp-shadow-card);
}

@keyframes hp-centers-recent-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hp-centers-recent-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: var(--hp-weight-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--hp-brand), var(--hp-indigo-dark, #1e4a9a));
    border-radius: var(--hp-radius-pill);
}

.hp-centers-recent-icon {
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.7rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-indigo-dark);
    background: linear-gradient(135deg, var(--hp-brand-soft) 0%, #fff 100%);
    font-size: 1.05rem;
}

.hp-centers-recent-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    font-weight: var(--hp-weight-bold);
    line-height: var(--hp-leading-tight);
    color: var(--hp-navy);
    padding-right: 3.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-centers-recent-meta {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: var(--hp-weight-semibold);
    color: var(--hp-color-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.hp-centers-recent-meta i {
    margin-top: 0.15rem;
    color: var(--hp-color-hover-accent);
}

.hp-centers-recent-state {
    margin: 0 0 0.55rem;
    font-size: 0.75rem;
    font-weight: var(--hp-weight-semibold);
    color: var(--hp-indigo-dark);
    opacity: 0.85;
}

.hp-centers-recent-card .hp-center-box-phone {
    margin-top: auto;
}

.hp-centers-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.05rem 1.25rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--hp-surface) 100%);
    border: 1px solid var(--hp-brand-border, var(--hp-border));
    border-radius: calc(var(--hp-radius) + 2px);
    box-shadow: var(--hp-shadow-sm);
    scroll-margin-top: 5.5rem;
}

.hp-centers-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin: 0;
}

.hp-centers-filter-label {
    font-family: var(--hp-font-sans);
    font-size: var(--hp-text-sm);
    font-weight: var(--hp-weight-semibold);
    color: var(--hp-color-text);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hp-centers-filter-label i {
    color: var(--hp-brand);
}

.hp-centers-select {
    min-width: 12rem;
    min-height: 2.75rem;
    padding: 0 1rem;
    font-family: var(--hp-font-sans);
    font-size: var(--hp-text-sm);
    color: var(--hp-color-text);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    background: var(--hp-surface);
}

.hp-centers-search-wrap {
    position: relative;
    flex: 1 1 14rem;
    min-width: 12rem;
    max-width: 22rem;
}

.hp-centers-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hp-color-text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.hp-centers-search {
    width: 100%;
    min-height: 2.75rem;
    padding: 0 0.9rem 0 2.35rem;
    font-family: var(--hp-font-sans);
    font-size: var(--hp-text-sm);
    color: var(--hp-color-text);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    background: var(--hp-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-centers-search:focus {
    outline: none;
    border-color: var(--hp-brand);
    box-shadow: 0 0 0 3px rgba(49, 112, 222, 0.15);
}

.hp-centers-count {
    margin: 0;
    font-size: var(--hp-text-sm);
    color: var(--hp-color-text-muted);
}

.hp-centers-count strong {
    font-size: var(--hp-text-lg);
    font-weight: var(--hp-weight-extrabold);
    color: var(--hp-navy);
}

.hp-centers-search-empty {
    margin: 1.5rem 0 0;
    padding: 1.25rem;
    text-align: center;
    font-size: var(--hp-text-sm);
    color: var(--hp-color-text-muted);
    background: var(--hp-surface);
    border: 1px dashed var(--hp-border);
    border-radius: var(--hp-radius);
}

.hp-centers-state {
    margin-bottom: 2.35rem;
}

.hp-centers-state:last-child {
    margin-bottom: 0;
}

.hp-centers-state-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    padding: 0.15rem 0 0.7rem;
    border-bottom: 2px solid var(--hp-brand-soft);
}

.hp-centers-state-head h2 {
    margin: 0;
    font-family: var(--hp-font-sans);
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: var(--hp-weight-extrabold);
    color: var(--hp-navy);
    letter-spacing: var(--hp-tracking-tight);
}

.hp-centers-state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.22rem 0.7rem;
    font-size: var(--hp-text-xs);
    font-weight: var(--hp-weight-bold);
    color: var(--hp-indigo-dark);
    background: var(--hp-brand-soft);
    border: 1px solid var(--hp-brand-border, transparent);
    border-radius: var(--hp-radius-pill);
}

.hp-centers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}

.hp-center-box {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.2rem 1.15rem 1.25rem;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 1) 0%, var(--hp-surface) 100%);
    border: 1px solid var(--hp-border);
    border-radius: calc(var(--hp-radius-md) + 2px);
    box-shadow: var(--hp-shadow-sm);
    transition: transform 0.22s var(--hp-ease, ease), box-shadow 0.22s ease, border-color 0.2s ease;
}

.hp-center-box:hover {
    transform: translateY(-3px);
    border-color: var(--hp-brand-border);
    box-shadow: var(--hp-shadow-card);
}

.hp-center-box-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.hp-center-box-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--hp-brand-soft) 0%, var(--hp-surface) 100%);
    color: var(--hp-indigo-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hp-center-box-chip {
    font-size: 0.6875rem;
    font-weight: var(--hp-weight-bold);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--hp-indigo-dark);
    background: var(--hp-brand-soft);
    padding: 0.2rem 0.5rem;
    border-radius: var(--hp-radius-pill);
    white-space: nowrap;
}

.hp-center-box-title {
    margin: 0 0 0.5rem;
    font-family: var(--hp-font-sans);
    font-size: 1rem;
    font-weight: var(--hp-weight-bold);
    line-height: var(--hp-leading-tight);
    color: var(--hp-navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-center-box-meta {
    margin: 0 0 0.4rem;
    font-size: 0.875rem;
    font-weight: var(--hp-weight-semibold);
    color: var(--hp-color-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.4;
}

.hp-center-box-meta i {
    margin-top: 0.15rem;
    color: var(--hp-color-hover-accent);
    flex-shrink: 0;
}

.hp-center-box-address {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--hp-color-text-subtle);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.hp-center-box-phone {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: var(--hp-weight-semibold);
    color: var(--hp-indigo-dark);
    text-decoration: none;
    padding-top: 0.5rem;
    border-top: 1px solid var(--hp-border);
    transition: color 0.2s ease;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.hp-center-box-phone--masked {
    cursor: default;
    user-select: none;
    color: var(--hp-color-text-muted);
}

.hp-center-box-phone:hover {
    color: var(--hp-color-hover-accent);
}

.hp-center-box-phone--masked:hover {
    color: var(--hp-color-text-muted);
}

.hp-centers-empty {
    text-align: center;
}

.hp-centers-empty p:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

@media (max-width: 1200px) {
    .hp-centers-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hp-centers-recent-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hp-centers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-centers-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hp-centers-search-wrap {
        max-width: none;
    }

    .hp-centers-count {
        text-align: center;
    }

    .hp-centers-recent-head {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hp-centers-recent-track {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hp-centers-grid {
        grid-template-columns: 1fr;
    }

    .hp-centers-select {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-centers-recent-card {
        animation: none;
    }

    .hp-center-box,
    .hp-centers-recent-card,
    .hp-centers-recent-jump {
        transition: none;
    }
}

.hp-contact-trust,
.hp-page-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin: 0 0 2rem;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(135deg, rgba(0, 36, 67, 0.04), rgba(212, 175, 55, 0.08));
    border: 1px solid rgba(0, 36, 67, 0.1);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #002443;
}

.hp-contact-trust span,
.hp-page-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hp-contact-trust i,
.hp-page-trust i {
    color: #b8860b;
}

.hp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: start;
}

.hp-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hp-contact-block {
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 36, 67, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-contact-block:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 4px 14px rgba(0, 36, 67, 0.06);
}

.hp-contact-block h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #002443;
}

.hp-contact-block h3 i {
    color: #b8860b;
    font-size: 0.9375rem;
}

.hp-contact-block a {
    color: #0a3d6e;
    font-weight: 600;
    text-decoration: none;
}

.hp-contact-block a:hover {
    text-decoration: underline;
}

.hp-contact-form-wrap {
    position: sticky;
    top: 1.5rem;
}

.public-form-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hp-contact-form-card {
    padding: 1.5rem 1.65rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 36, 67, 0.07);
}

.hp-contact-form-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #002443;
}

.hp-contact-form-title i {
    color: #b8860b;
}

.hp-contact-form-lead {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.62);
}

.hp-contact-form .input-group {
    margin-bottom: 1rem;
}

.hp-contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #002443;
}

.hp-contact-form input,
.hp-contact-form select,
.hp-contact-form textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6rem 0.85rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hp-contact-form input:focus,
.hp-contact-form select:focus,
.hp-contact-form textarea:focus {
    outline: none;
    border-color: #b8860b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.hp-contact-form textarea {
    min-height: 7rem;
    resize: vertical;
}

.hp-contact-submit {
    width: 100%;
    margin-top: 0.25rem;
    gap: 0.5rem;
}

.hp-alert {
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    font-size: 0.9375rem;
}

.hp-alert--ok {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.hp-alert--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.hp-page-cta {
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #002443, #0a3d6e);
    border-radius: 16px;
    color: #fff;
}

.hp-page-cta h2 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.hp-page-cta p {
    margin: 0 0 1.25rem;
    opacity: 0.9;
}

.hp-page-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ---- Enterprise header (top SaaS / ed-tech pattern) ---- */
.hp-header--enterprise {
    background: rgba(255, 255, 255, 0.92);
}

.hp-header--enterprise .hp-header-inner {
    min-height: var(--hp-header-h);
}

.hp-nav--enterprise {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    gap: 0.35rem 1.25rem;
    min-width: 0;
}

.hp-nav-primary {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.1rem 0.15rem;
}

/* Nav chrome colors/hover — legacy fallback only (site-national.css owns body.hp-national) */
body:not(.hp-national) .hp-nav--enterprise .hp-nav-link-top {
    position: relative;
    padding: 0.5rem 0.7rem;
    font-family: var(--hp-font-sans);
    font-size: 0.9375rem;
    font-weight: var(--hp-weight-semibold);
    letter-spacing: var(--hp-tracking-wide);
    color: var(--hp-color-text);
    text-decoration: none;
    border-radius: var(--hp-radius-pill);
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

body:not(.hp-national) .hp-nav--enterprise .hp-nav-link-top::after {
    content: '';
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--hp-brand);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s var(--hp-ease, ease);
}

body:not(.hp-national) .hp-nav--enterprise .hp-nav-link-top:hover {
    color: var(--hp-indigo-dark);
    background: rgba(49, 112, 222, 0.06);
}

body:not(.hp-national) .hp-nav--enterprise .hp-nav-link-top:hover::after,
body:not(.hp-national) .hp-nav--enterprise .hp-nav-link-top.is-active::after {
    transform: scaleX(1);
}

body:not(.hp-national) .hp-nav--enterprise .hp-nav-link-top.is-active {
    color: var(--hp-indigo-dark);
    font-weight: var(--hp-weight-bold);
}

/* Nav dropdown clusters (Services, Schools, About, Log In) */
.hp-nav--enterprise .hp-nav-cluster {
    position: relative;
}

body:not(.hp-national) .hp-nav--enterprise .hp-nav-cluster-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.7rem;
    border: none;
    border-radius: var(--hp-radius-pill);
    background: transparent;
    font-family: var(--hp-font-sans);
    font-size: 0.9375rem;
    font-weight: var(--hp-weight-semibold);
    letter-spacing: var(--hp-tracking-wide);
    color: var(--hp-color-text);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.hp-nav--enterprise .hp-nav-cluster-toggle i {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.hp-nav--enterprise .hp-nav-cluster.is-open .hp-nav-cluster-toggle i,
.hp-nav--enterprise .hp-nav-cluster-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

body:not(.hp-national) .hp-nav--enterprise .hp-nav-cluster-toggle:hover,
body:not(.hp-national) .hp-nav--enterprise .hp-nav-cluster.is-open .hp-nav-cluster-toggle,
body:not(.hp-national) .hp-nav--enterprise .hp-nav-cluster-toggle.is-active {
    color: var(--hp-indigo-dark);
    background: rgba(49, 112, 222, 0.06);
}

.hp-nav--enterprise .hp-nav-cluster-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    min-width: 16.5rem;
    padding: 0.45rem;
    background: #fff;
    border: 1px solid rgba(0, 36, 67, 0.1);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 36, 67, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 400;
}

.hp-nav--enterprise .hp-nav-cluster.is-open .hp-nav-cluster-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hp-nav--enterprise .hp-nav-sublink {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
}

body:not(.hp-national) .hp-nav--enterprise .hp-nav-sublink:hover,
body:not(.hp-national) .hp-nav--enterprise .hp-nav-sublink.is-active {
    background: rgba(49, 112, 222, 0.06);
}

.hp-nav--enterprise .hp-nav-sublink--overview {
    margin-bottom: 0.15rem;
    border-bottom: 1px solid rgba(0, 36, 67, 0.08);
    border-radius: 10px 10px 8px 8px;
}

.hp-nav--enterprise .hp-nav-sublink-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--hp-navy);
}

.hp-nav--enterprise .hp-nav-sublink-desc {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.58);
}

body:not(.hp-national) .hp-nav--enterprise .hp-nav-sublink.is-active .hp-nav-sublink-title {
    color: var(--hp-indigo-dark);
}

.hp-nav-utility .hp-nav-cluster-panel {
    right: 0;
    left: auto;
}

.hp-nav-utility .hp-nav-cluster-toggle--action.hp-btn-nav-login {
    min-height: 2.35rem;
}

.hp-nav-utility {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding-left: 1rem;
    margin-left: 0.25rem;
    border-left: 1px solid var(--hp-border);
}

body:not(.hp-national) .hp-btn-nav-login {
    min-height: 2.5rem;
    padding: 0 1rem;
    font-family: var(--hp-font-sans);
    font-size: 0.9375rem;
    font-weight: var(--hp-weight-semibold);
    color: var(--hp-color-text) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: var(--hp-radius-pill);
}

body:not(.hp-national) .hp-btn-nav-login:hover {
    color: var(--hp-indigo-dark) !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

body:not(.hp-national) .hp-btn-nav-signup {
    min-height: 2.5rem;
    padding: 0 1.25rem;
    font-family: var(--hp-font-sans);
    font-size: 0.9375rem;
    font-weight: var(--hp-weight-bold);
    letter-spacing: var(--hp-tracking-wide);
    background: linear-gradient(135deg, var(--hp-navy) 0%, var(--hp-navy-mid) 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 36, 67, 0.22);
}

body:not(.hp-national) .hp-btn-nav-signup:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

@media (min-width: 1280px) {
    .hp-nav--enterprise .hp-nav-link-top {
        font-size: 1rem;
        padding: 0.55rem 0.85rem;
    }
}

@media (max-width: 1199px) {
    .hp-nav--enterprise .hp-nav-link-top,
    .hp-nav--enterprise .hp-nav-cluster-toggle {
        font-size: 0.875rem;
        padding: 0.45rem 0.55rem;
    }
}

@media (min-width: 901px) {
    .hp-nav--enterprise {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    .hp-nav-primary {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .hp-nav-utility {
        flex-direction: row;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    .hp-nav--enterprise .hp-nav-cluster,
    .hp-nav--enterprise .hp-nav-link-top,
    .hp-nav--enterprise .hp-nav-cluster-toggle {
        width: auto;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .hp-nav--enterprise {
        gap: 0.25rem 0.65rem;
    }

    .hp-nav--enterprise .hp-nav-link-top,
    .hp-nav--enterprise .hp-nav-cluster-toggle {
        font-size: 0.8125rem;
        padding: 0.4rem 0.45rem;
    }

    .hp-nav-utility {
        padding-left: 0.5rem;
        gap: 0.35rem;
    }
}

@media (max-width: 900px) {
    .hp-contact-grid {
        grid-template-columns: 1fr;
    }

    .hp-contact-form-wrap {
        position: static;
    }

    .hp-nav--enterprise {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .hp-nav-primary {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hp-nav--enterprise .hp-nav-link-top {
        width: 100%;
        text-align: left;
        font-size: var(--hp-text-base);
        padding: 0.75rem 1rem;
    }

    .hp-nav--enterprise .hp-nav-link-top::after {
        display: none;
    }

    .hp-nav--enterprise .hp-nav-cluster {
        width: 100%;
    }

    .hp-nav--enterprise .hp-nav-cluster-toggle {
        width: 100%;
        justify-content: space-between;
        text-align: left;
        font-size: var(--hp-text-base);
        padding: 0.65rem 0.75rem;
        border-radius: 10px;
    }

    .hp-nav--enterprise .hp-nav-cluster-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0.15rem 0 0.35rem 0.65rem;
        display: none;
        min-width: 0;
    }

    .hp-nav--enterprise .hp-nav-cluster.is-open .hp-nav-cluster-panel {
        display: block;
    }

    .hp-nav-utility .hp-nav-cluster {
        width: 100%;
    }

    .hp-nav-utility .hp-nav-cluster-toggle--action {
        width: 100%;
        justify-content: space-between;
    }

    .hp-nav-utility {
        flex-direction: column;
        width: 100%;
        margin: 0.75rem 0 0;
        padding: 0.75rem 0 0;
        border-left: none;
        border-top: 1px solid var(--hp-border);
    }

    .hp-btn-nav-login,
    .hp-btn-nav-signup {
        width: 100%;
        min-height: 2.75rem;
        justify-content: center;
    }
}

/* Form layout (franchise, contact) */
.hp-page-card {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 36, 67, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.22s ease;
}

.hp-page-prose.hp-page-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 36px rgba(0, 36, 67, 0.08);
}

.hp-form-grid {
    display: grid;
    gap: 1rem;
}

.hp-form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.hp-form-grid .hp-span-2 {
    grid-column: 1 / -1;
}

.hp-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.hp-form-grid label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #002443;
}

.hp-form-grid input,
.hp-form-grid select,
.hp-form-grid textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6rem 0.85rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hp-form-grid textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.hp-form-grid input:focus,
.hp-form-grid select:focus,
.hp-form-grid textarea:focus {
    outline: none;
    border-color: #b8860b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.hp-franchise-form-card {
    max-width: 52rem;
}

.hp-franchise-form-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #002443;
}

.hp-franchise-form-title i {
    color: #b8860b;
}

.hp-franchise-form-lead {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.62);
}

.hp-training-partner-layout {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

@media (min-width: 960px) {
    .hp-training-partner-layout {
        grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.15fr);
    }
}

.hp-training-partner-aside .hp-page-section-head--left {
    text-align: left;
    margin-bottom: 1.25rem;
}

.hp-training-partner-points {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.hp-training-partner-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.72);
}

.hp-training-partner-points i {
    color: #0d9488;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.hp-training-partner-note {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(0, 36, 67, 0.05);
    border: 1px solid rgba(0, 36, 67, 0.08);
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.65);
}

.hp-training-partner-form-card {
    margin: 0;
}

.hp-tp-fieldset {
    border: 0;
    margin: 0 0 1.35rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid rgba(0, 36, 67, 0.08);
}

.hp-tp-fieldset:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.hp-tp-fieldset legend {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1rem;
    color: #002443;
    margin-bottom: 1rem;
    padding: 0;
}

.hp-tp-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #002443, #0d4a7a);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}

.hp-tp-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.72);
    margin-bottom: 0.65rem;
}

.hp-tp-scheme-grid {
    display: grid;
    gap: 0.55rem;
}

@media (min-width: 640px) {
    .hp-tp-scheme-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hp-tp-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(0, 36, 67, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.45;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.hp-tp-check:has(input:checked) {
    border-color: rgba(13, 148, 136, 0.45);
    background: rgba(13, 148, 136, 0.06);
}

.hp-tp-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.hp-tp-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.5rem 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.68);
    cursor: pointer;
}

.hp-tp-consent input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.hp-tp-form-note {
    min-height: 1.25rem;
}

.hp-tp-full-reg-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 36, 67, 0.06) 0%, rgba(13, 148, 136, 0.08) 100%);
    border: 1px solid rgba(13, 148, 136, 0.2);
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.06);
}

.hp-tp-full-reg-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.25);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}

.hp-tp-full-reg-banner__copy h2 {
    margin: 0.25rem 0 0.5rem;
    font-size: 1.15rem;
    color: #002443;
}

.hp-tp-full-reg-banner__copy p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.68);
    max-width: 42rem;
}

.hp-tp-full-reg-banner__cta {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .hp-tp-full-reg-banner__cta {
        width: 100%;
        justify-content: center;
    }
}

.hp-training-partner-process {
    margin: 0 0 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 36, 67, 0.04);
    border: 1px solid rgba(0, 36, 67, 0.08);
}

.hp-training-partner-process h3 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    color: #002443;
}

.hp-training-partner-process ol {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.68);
}

.hp-tp-thank-you .hp-tp-ref-badge {
    margin: 0.5rem 0 0;
    padding: 0.45rem 0.85rem;
    display: inline-block;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    font-size: 0.95rem;
}

.hp-tp-thank-summary {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 36, 67, 0.04);
    text-align: center;
}

.hp-legal-cta {
    max-width: 42rem;
    margin: 2.5rem auto 0;
}

/* Legal / long text */
.hp-page-prose {
    max-width: 48rem;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(0, 0, 0, 0.78);
}

.hp-page-prose h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.375rem;
    font-weight: 800;
    color: #002443;
}

.hp-page-prose h2:first-child {
    margin-top: 0;
}

.hp-page-prose h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.hp-page-prose p,
.hp-page-prose ul {
    margin: 0 0 1rem;
}

.hp-page-prose ul {
    padding-left: 1.35rem;
}

.hp-page-prose li {
    margin-bottom: 0.35rem;
}

.hp-page-prose .hp-legal-updated {
    text-align: center;
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.hp-breadcrumb {
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.hp-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.35rem;
    color: #94a3b8;
}

.hp-breadcrumb a {
    color: #1e40af;
    font-weight: 600;
    text-decoration: none;
}

.hp-breadcrumb a:hover {
    color: var(--hp-color-hover-accent);
    text-decoration: underline;
}

.hp-page-prose a:hover {
    color: var(--hp-color-hover-accent);
}

.hp-gallery-credit a:hover {
    color: var(--hp-color-hover-accent);
}

@media (max-width: 640px) {
    .hp-form-grid--2 {
        grid-template-columns: 1fr;
    }
}

/* Student app release download page */
.hp-release-page {
    padding-bottom: 2rem;
}

.hp-release-hero {
    padding-top: 2rem;
}

.hp-release-card {
    max-width: 40rem;
    margin: 1.5rem auto 0;
    padding: 2rem 2.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #002443 0%, #003a6b 100%);
    color: #fff;
    box-shadow: 0 24px 48px rgba(0, 36, 67, 0.22);
}

.hp-release-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(184, 134, 11, 0.18);
    color: #e8c547;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.hp-release-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 197, 71, 0.92);
}

.hp-release-card-head h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
}

.hp-release-lead {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.hp-release-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.75rem 0 0;
    padding: 0;
}

.hp-release-meta div {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
}

.hp-release-meta dt {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.hp-release-meta dd {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
}

.hp-release-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hp-release-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hp-release-btn--primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #002443;
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.35);
}

.hp-release-btn--primary:hover {
    transform: translateY(-1px);
    color: #001a30;
}

.hp-release-btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

.hp-release-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hp-release-steps {
    margin: 1.75rem 0 0;
    padding-left: 1.25rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
}

.hp-release-steps li + li {
    margin-top: 0.45rem;
}

.hp-release-note {
    margin: 1.5rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.hp-release-note a {
    color: #e8c547;
    font-weight: 600;
}

.hp-release-note a:hover {
    color: #fff;
}

/* Multi-app release hub */
.hp-release-hub-page {
    background: linear-gradient(180deg, #f0f7ff 0%, #fff 50%);
}

.hp-release-hub-head {
    max-width: 40rem;
    margin: 1.5rem auto 2rem;
    text-align: center;
}

.hp-release-hub-head h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: #022248;
    line-height: 1.15;
}

.hp-release-hub-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #475569;
}

.hp-release-app-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hp-release-app-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hp-release-app {
    border-radius: 1.25rem;
    padding: 1.75rem;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 36, 67, 0.18);
}

.hp-release-app--student {
    background: linear-gradient(145deg, #002443 0%, #003a6b 100%);
}

.hp-release-app--parent {
    background: linear-gradient(145deg, #0f2d4a 0%, #1a5080 100%);
}

.hp-release-app-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.hp-release-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px;
    flex-shrink: 0;
}

.hp-release-app h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.hp-release-app-top p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.hp-release-meta--app {
    margin-top: 0 !important;
}

.hp-release-qr {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.25rem;
    padding: 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.hp-release-qr img {
    border-radius: 10px;
    background: #fff;
    padding: 5px;
    flex-shrink: 0;
}

.hp-release-qr p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

.hp-release-qr code {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.hp-release-steps--compact {
    font-size: 0.85rem !important;
    margin-top: 1rem !important;
}

.hp-release-web-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e8c547;
    text-decoration: none;
}

.hp-release-web-link:hover {
    color: #fff;
}

.hp-release-hub-note {
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
}

.hp-release-hub-note a {
    color: #0369a1;
    font-weight: 600;
}

@media (max-width: 640px) {
    .hp-release-card {
        padding: 1.5rem 1.25rem;
    }

    .hp-release-meta {
        grid-template-columns: 1fr;
    }

    .hp-release-actions {
        flex-direction: column;
    }

    .hp-release-btn {
        justify-content: center;
    }
}

/* Mobile portals + student APK showcase */
.hp-mobile-portals-page {
    background: linear-gradient(180deg, #f0f7ff 0%, #fff 42%);
}

.hp-mp-hero {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.hp-mp-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hp-mp-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hp-mp-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0369a1;
    margin-bottom: 0.75rem;
}

.hp-mp-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #022248;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hp-mp-lead {
    font-size: 1.05rem;
    color: #475569;
    max-width: 36rem;
    line-height: 1.6;
}

.hp-mp-bullets {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    gap: 0.5rem;
}

.hp-mp-bullets li {
    font-size: 0.95rem;
    color: #334155;
    font-weight: 600;
}

.hp-mp-bullets i {
    color: #059669;
    margin-right: 0.35rem;
}

.hp-mp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.hp-mp-apk-section--schools {
    padding-top: 1.5rem;
}

.hp-mp-apk-card--schools {
    background: linear-gradient(145deg, #002443 0%, #0a3d6e 55%, #0369a1 100%);
    border: 1px solid rgba(234, 173, 58, 0.35);
}

.hp-mp-card--schools {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
    border: 2px solid rgba(234, 173, 58, 0.45);
}

.hp-mp-card--schools .hp-mp-card-icon {
    background: linear-gradient(135deg, #002443, #0a3d6e);
    color: #f2b244;
}

.hp-mp-legacy-divider {
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
}

.hp-mp-legacy-banner {
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.hp-mp-legacy-banner h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 0.35rem;
}

.hp-mp-legacy-banner h2 span {
    font-weight: 600;
    color: #64748b;
    font-size: 0.95rem;
}

.hp-mp-legacy-banner p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

.hp-mp-phones {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.hp-mp-phone {
    width: 148px;
    height: 300px;
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 24px 48px rgba(2, 34, 72, 0.18);
    position: relative;
}

.hp-mp-phone--parent {
    background: linear-gradient(145deg, #1e3a5f, #022248);
    transform: rotate(-4deg);
}

.hp-mp-phone--student {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    transform: rotate(4deg) translateY(12px);
}

.hp-mp-phone-notch {
    width: 56px;
    height: 6px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 99px;
    margin: 4px auto 10px;
}

.hp-mp-phone-screen {
    background: #f8fafc;
    border-radius: 18px;
    height: calc(100% - 24px);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hp-mp-phone-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
}

.hp-mp-phone-stat {
    font-size: 13px;
    font-weight: 700;
    color: #022248;
}

.hp-mp-phone-nav {
    height: 28px;
    border-radius: 12px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    margin-top: auto;
}

.hp-mp-apk-section {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

.hp-mp-apk-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 960px) {
    .hp-mp-apk-grid {
        grid-template-columns: minmax(260px, 340px) 1fr;
        gap: 2.5rem;
    }

    .hp-mp-apk-grid--reverse {
        grid-template-columns: 1fr minmax(260px, 340px);
    }

    .hp-mp-apk-grid--reverse .hp-mp-apk-preview {
        order: 2;
    }

    .hp-mp-apk-grid--reverse .hp-mp-apk-card {
        order: 1;
    }
}

.hp-mp-apk-card--parent {
    background: linear-gradient(145deg, #0f2d4a 0%, #1e4a6f 100%);
}

.hp-mp-btn--ghost-light {
    border-color: rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #fff;
}

.hp-mp-btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hp-mp-device {
    width: min(100%, 300px);
    margin: 0 auto;
    padding: 12px 12px 10px;
    border-radius: 36px;
    background: linear-gradient(160deg, #1e293b, #0f172a);
    box-shadow: 0 28px 56px rgba(2, 34, 72, 0.22);
}

.hp-mp-device-notch {
    width: 88px;
    height: 22px;
    margin: 0 auto 8px;
    border-radius: 0 0 14px 14px;
    background: #0f172a;
}

.hp-mp-device-screen {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 9 / 19;
    position: relative;
}

.hp-mp-device-screen iframe {
    width: 360px;
    height: 760px;
    border: 0;
    transform: scale(0.72);
    transform-origin: top left;
    pointer-events: none;
}

@media (min-width: 960px) {
    .hp-mp-device-screen iframe {
        transform: scale(0.78);
    }
}

.hp-mp-device-bar {
    width: 96px;
    height: 4px;
    margin: 10px auto 2px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
}

.hp-mp-preview-caption {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.hp-mp-apk-card {
    background: linear-gradient(145deg, #002443 0%, #003a6b 100%);
    color: #fff;
    border-radius: 24px;
    padding: 1.75rem 2rem;
    box-shadow: 0 24px 48px rgba(0, 36, 67, 0.2);
}

.hp-mp-apk-card-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.hp-mp-apk-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px;
    flex-shrink: 0;
}

.hp-mp-apk-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e8c547;
}

.hp-mp-apk-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hp-mp-apk-tagline {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.hp-mp-apk-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
}

@media (min-width: 560px) {
    .hp-mp-apk-meta {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.hp-mp-apk-meta div {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.hp-mp-apk-meta dt {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.hp-mp-apk-meta dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.hp-mp-apk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.hp-mp-btn--apk {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #002443;
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.35);
}

.hp-mp-btn--apk:hover {
    color: #001a30;
    transform: translateY(-1px);
}

.hp-mp-apk-qr-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.hp-mp-apk-qr {
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    flex-shrink: 0;
}

.hp-mp-apk-qr-copy strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.hp-mp-apk-qr-copy p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

.hp-mp-apk-qr-copy code {
    font-size: 0.78rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.hp-mp-apk-file {
    margin-top: 0.5rem !important;
    font-size: 0.78rem !important;
    word-break: break-all;
    color: rgba(255, 255, 255, 0.55) !important;
}

.hp-mp-apk-steps {
    margin: 1.25rem 0 0;
    padding-left: 1.2rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.hp-mp-apk-steps li + li {
    margin-top: 0.35rem;
}

.hp-mp-card-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hp-mp-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hp-mp-card--teacher .hp-mp-card-icon {
    background: #ede9fe;
    color: #6d28d9;
}

.hp-mp-apk-card--teacher {
    background: linear-gradient(145deg, #1e1b4b 0%, #312e81 100%);
}

.hp-release-app--teacher {
    background: linear-gradient(145deg, #1e1b4b 0%, #4338ca 100%);
}

@media (min-width: 1024px) {
    .hp-release-app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hp-mp-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.hp-mp-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.hp-mp-card--parent .hp-mp-card-icon {
    background: #e0f2fe;
    color: #0369a1;
}

.hp-mp-card--student .hp-mp-card-icon {
    background: #fef3c7;
    color: #b45309;
}

.hp-mp-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #022248;
    margin-bottom: 0.5rem;
}

.hp-mp-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.hp-mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hp-mp-btn--primary {
    background: #022248;
    color: #fff;
}

.hp-mp-btn--primary:hover {
    background: #001a33;
    color: #fff;
}

.hp-mp-btn--ghost {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.hp-mp-demo-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem;
    max-width: 720px;
    margin: 0 auto;
}

.hp-mp-demo-box h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #022248;
    margin-bottom: 0.35rem;
}

.hp-mp-demo-note {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.hp-mp-demo-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 560px) {
    .hp-mp-demo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hp-mp-demo-grid dt {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.hp-mp-demo-grid dd {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #0f172a;
}

.hp-mp-demo-grid code {
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.82rem;
}

.hp-mp-desktop-hint {
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: #475569;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 640px) {
    .hp-mp-apk-card {
        padding: 1.35rem 1.25rem;
    }

    .hp-mp-apk-qr-row {
        flex-direction: column;
        text-align: center;
    }

    .hp-mp-apk-actions {
        flex-direction: column;
    }

    .hp-mp-btn {
        justify-content: center;
        margin-right: 0;
    }
}

/* Mobile portals — WhatsApp share */
.hp-mp-btn--whatsapp {
    background: #25d366;
    color: #073b1c;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.hp-mp-btn--whatsapp:hover {
    background: #1ebe5b;
    color: #052e16;
    transform: translateY(-1px);
}

.hp-mp-btn--demo {
    background: #022248;
    color: #fff;
    box-shadow: 0 8px 20px rgba(2, 34, 72, 0.24);
}

.hp-mp-btn--demo:hover {
    background: #0369a1;
    color: #fff;
    transform: translateY(-1px);
}

/* Mobile portals — clear three-step introduction */
.hp-mp-how-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hp-mp-section-heading {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 1.4rem;
}

.hp-mp-eyebrow {
    margin: 0 0 0.35rem;
    color: #0369a1;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hp-mp-section-heading h2 {
    margin: 0;
    color: #022248;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
}

.hp-mp-section-heading > p:last-child {
    margin: 0.45rem 0 0;
    color: #64748b;
}

.hp-mp-how-grid {
    display: grid;
    gap: 1rem;
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.hp-mp-how-grid li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.2rem;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.hp-mp-step-number {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #022248;
    color: #fff;
    font-weight: 800;
}

.hp-mp-how-grid h3 {
    margin: 0 0 0.25rem;
    color: #022248;
    font-size: 1rem;
    font-weight: 800;
}

.hp-mp-how-grid p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (min-width: 760px) {
    .hp-mp-how-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile portals — anchor offset below fixed header + sticky chips */
.hp-mobile-portals [id] {
    scroll-margin-top: calc(var(--hp-chrome-h, 6.75rem) + 4.25rem);
}

/* Mobile portals — sticky quick-jump chips */
.hp-mp-quicknav {
    position: sticky;
    top: var(--hp-chrome-h, 6.75rem);
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.6rem 0;
}

.hp-mp-quicknav-track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hp-mp-quicknav-track::-webkit-scrollbar {
    display: none;
}

.hp-mp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.hp-mp-chip:hover {
    background: #022248;
    border-color: #022248;
    color: #fff;
}

.hp-mp-chip--gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: rgba(234, 173, 58, 0.55);
    color: #7c5203;
}

.hp-mp-chip--gold:hover {
    background: #b8860b;
    border-color: #b8860b;
    color: #fff;
}

/* Mobile portals — tap-to-copy demo credentials */
.hp-mp-demo-grid code {
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.hp-mp-demo-grid code:hover {
    background: #e0f2fe;
}

.hp-mp-demo-grid code.hp-mp-copied {
    background: #059669;
    color: #fff;
}

/* Mobile portals — role-based demo app guide */
.hp-mp-demo-box {
    max-width: 1040px;
}

.hp-mp-demo-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 1.35rem;
}

.hp-mp-demo-head h2 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.hp-mp-demo-head > p:not(.hp-mp-eyebrow) {
    margin: 0;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.6;
}

.hp-mp-demo-head > span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e3a5f;
    font-size: 0.82rem;
    font-weight: 700;
}

.hp-mp-demo-role {
    position: relative;
    padding: 1.15rem;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #0369a1;
    border-radius: 16px;
    background: #f8fafc;
}

.hp-mp-demo-role--student {
    border-top-color: #d97706;
}

.hp-mp-demo-role--teacher {
    border-top-color: #6d28d9;
}

.hp-mp-demo-role--owner {
    border-top-color: #059669;
}

.hp-mp-demo-role dd + dd {
    margin-top: 0.7rem;
}

.hp-mp-demo-help {
    min-height: 2.8em;
    color: #64748b !important;
    font-size: 0.82rem !important;
    line-height: 1.45;
}

.hp-mp-demo-open {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    background: #022248;
    color: #fff;
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
}

.hp-mp-demo-open:hover {
    background: #0369a1;
    color: #fff;
}

/* Mobile portals — FAQ */
.hp-mp-faq-section {
    padding-bottom: 3rem;
}

.hp-mp-faq-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 1.75rem;
}

.hp-mp-faq-head h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    color: #022248;
    margin-bottom: 0.5rem;
}

.hp-mp-faq-head p {
    color: #64748b;
    font-size: 0.98rem;
    margin: 0;
}

.hp-mp-faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.hp-mp-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.hp-mp-faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: #022248;
    font-size: 0.98rem;
}

.hp-mp-faq-item summary::-webkit-details-marker {
    display: none;
}

.hp-mp-faq-item summary i {
    color: #94a3b8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.hp-mp-faq-item[open] summary i {
    transform: rotate(180deg);
    color: #0369a1;
}

.hp-mp-faq-item > p {
    margin: 0;
    padding: 0 1.25rem 1.1rem;
    color: #475569;
    font-size: 0.93rem;
    line-height: 1.6;
}

.hp-mp-faq-cta {
    text-align: center;
    margin-top: 1.75rem;
}

.hp-mp-faq-cta p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}
