/* =====================================================================
 * Nova ID Hero Standardization (css/page-hero.css)
 * Shared by the 22 public pages migrated to the Home hero visual identity:
 * - Transparent glass header over hero (white links + white logo via hero.js)
 * - Home deep midnight-blue radial gradient
 * - Cursor-reactive luminous dot grid (.hero-grid) behind centered title
 * - Centered typography, glass eyebrows, and unified sub-components
 * ===================================================================== */

:root {
    --pl-hero-top: 121px;
}
@media (max-width: 1024px) {
    :root { --pl-hero-top: 61px; }
}
@media (max-width: 768px) {
    :root { --pl-hero-top: 57px; }
}

/* ═══ HEADER OVER HERO ════════════════════════════════════════════════ */
body.page-hero-v2 .top-bar-wrapper {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
}
body.page-hero-v2 .glass-nav {
    transition: background-color 0.4s ease, -webkit-backdrop-filter 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
body.page-hero-v2 .nav-logo-box img {
    aspect-ratio: 585.63 / 120.25;
    object-fit: contain;
    object-position: left center;
}
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-nav {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%) brightness(1) !important;
    backdrop-filter: blur(16px) saturate(160%) brightness(1) !important;
}
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-link-item > a,
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-mobile-toggle i {
    color: #fff !important;
}
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-link-item > a:hover {
    color: #64D2FF !important;
}
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-actions .btn-lang,
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-actions .btn-theme {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
}
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-actions .btn-lang:hover,
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-actions .btn-theme:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-actions .btn-login {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: none !important;
    color: #fff !important;
}
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-actions .btn-login:hover {
    background: #fff !important;
    color: #0071e3 !important;
}
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-actions .btn-apply {
    background: #fff !important;
    border-color: #fff !important;
    color: #0071e3 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-actions .btn-apply:hover {
    background: #eaf4ff !important;
    color: #005bb5 !important;
}
body.page-hero-v2 .nav-glass-container:not(.scrolled):not(.mobile-menu-open):not(.login-island-open) .glass-mobile-toggle {
    background: rgba(255, 255, 255, 0.14) !important;
}

@media (max-width: 1024px) {
    body.page-hero-v2 .mobile-menu-panel {
        max-height: calc(100vh - var(--nav-h, 61px));
        max-height: calc(100svh - var(--nav-h, 61px));
        overscroll-behavior: contain;
    }
    body.page-hero-v2 .mobile-menu-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    body.page-hero-v2 .mobile-menu-actions .btn-glass-sm {
        min-width: 0;
        min-height: 46px;
        padding: 12px 14px !important;
    }
    body.page-hero-v2 .mobile-menu-actions .btn-lang {
        grid-column: 1 / -1;
        margin: 0 !important;
    }
}

/* ═══ NOVA ID HERO CONTAINER & DEEP BLUE BACKGROUND ═══════════════════ */
body.page-hero-v2 section.hero {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    margin-top: calc(-1 * var(--pl-hero-top)) !important;
    padding: calc(var(--pl-hero-top) + 48px) 0 56px !important;
    background:
        radial-gradient(80% 70% at 60% 30%, rgba(0, 82, 155, 0.92) 0%, rgba(0, 60, 120, 0.72) 28%, rgba(0, 40, 90, 0.42) 55%, transparent 78%),
        radial-gradient(100% 100% at 45% 55%, rgba(0, 113, 227, 0.45) 0%, rgba(0, 70, 140, 0.25) 35%, transparent 65%),
        linear-gradient(135deg, #000000 0%, #001525 30%, #002a4a 52%, #001a35 74%, #00040a 100%) !important;
    background-color: #000305 !important;
    background-image:
        radial-gradient(80% 70% at 60% 30%, rgba(0, 82, 155, 0.92) 0%, rgba(0, 60, 120, 0.72) 28%, rgba(0, 40, 90, 0.42) 55%, transparent 78%),
        radial-gradient(100% 100% at 45% 55%, rgba(0, 113, 227, 0.45) 0%, rgba(0, 70, 140, 0.25) 35%, transparent 65%),
        linear-gradient(135deg, #000000 0%, #001525 30%, #002a4a 52%, #001a35 74%, #00040a 100%) !important;
    background-attachment: scroll !important;
    border-bottom: 0 !important;
    color: #ffffff !important;
    text-align: center !important;
    z-index: 10;
}

@media (max-width: 768px) {
    body.page-hero-v2 section.hero {
        min-height: clamp(440px, 68svh, 680px) !important;
        padding: calc(var(--pl-hero-top) + 40px) 0 56px !important;
    }
}

/* Suppress legacy particle canvases, mouse spotlights, flares, and pseudo overlays */
body.page-hero-v2 section.hero::before,
body.page-hero-v2 section.hero::after {
    content: none !important;
    display: none !important;
}
body.page-hero-v2 section.hero canvas,
body.page-hero-v2 section.hero .hero-particles,
body.page-hero-v2 section.hero .hero-particle,
body.page-hero-v2 section.hero .hero-mouse-glow,
body.page-hero-v2 section.hero .hero-mouse-light,
body.page-hero-v2 section.hero .hero-flare,
body.page-hero-v2 section.hero .hero-glow-line,
body.page-hero-v2 section.hero #hero-mouse-light,
body.page-hero-v2 section.hero #hero-mouse-light-faq,
body.page-hero-v2 section.hero #hero-mouse-light-jobs,
body.page-hero-v2 section.hero #hero-mouse-light-policy {
    display: none !important;
}

/* ═══ LUMINOUS DOT GRID (.hero-grid) ══════════════════════════════════ */
@property --hg-open {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}
body.page-hero-v2 section.hero .hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(148, 218, 255, 0.56) 1.35px, transparent 2px);
    background-size: 26px 26px;
    --hg-open: 0.72;
    -webkit-mask-image: radial-gradient(
        max(1px, calc((var(--hg-tw, 360px) + var(--hg-sx, 0px)) * var(--hg-open)))
        max(1px, calc((var(--hg-th, 130px) + var(--hg-sy, 0px)) * var(--hg-open)))
        at var(--hg-lx, 50%) var(--hg-ly, 48%),
        #000 22%, rgba(0, 0, 0, 0.55) 60%, transparent 100%
    );
    mask-image: radial-gradient(
        max(1px, calc((var(--hg-tw, 360px) + var(--hg-sx, 0px)) * var(--hg-open)))
        max(1px, calc((var(--hg-th, 130px) + var(--hg-sy, 0px)) * var(--hg-open)))
        at var(--hg-lx, 50%) var(--hg-ly, 48%),
        #000 22%, rgba(0, 0, 0, 0.55) 60%, transparent 100%
    );
    opacity: 0.34;
    transition: opacity 0.5s ease, --hg-open 1s cubic-bezier(0.22, 1, 0.36, 1);
}
body.page-hero-v2 section.hero.is-grid-on .hero-grid {
    opacity: 1;
    --hg-open: 1;
}
@media (hover: none), (max-width: 1024px) {
    body.page-hero-v2 section.hero .hero-grid {
        opacity: 0.32;
        --hg-open: 0.85;
        --hg-lx: 50%;
        --hg-ly: 46%;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.page-hero-v2 section.hero .hero-grid {
        transition: none;
    }
}

/* ═══ CENTERED INNER LAYOUT & TYPOGRAPHY ══════════════════════════════ */
body.page-hero-v2 section.hero > .container,
body.page-hero-v2 section.hero > .cm-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

body.page-hero-v2 section.hero .hero-container,
body.page-hero-v2 section.hero .hero-content,
body.page-hero-v2 section.hero .hero-text,
body.page-hero-v2 section.hero .bt-hero-container,
body.page-hero-v2 section.hero .bt-hero-text,
body.page-hero-v2 section.hero .cm-hero-grid,
body.page-hero-v2 section.hero .cm-hero-grid > .cm-reveal:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 880px !important;
    margin: 0 auto !important;
    text-align: center !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

body.page-hero-v2 section.hero h1,
body.page-hero-v2 section.hero h1.display-1,
body.page-hero-v2 section.hero h1.bt-display-1,
body.page-hero-v2 section.hero h1.cm-h1 {
    margin: 0 auto 20px !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(36px, min(5.2vw, 7.6vh), 72px) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.025em !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    text-align: center !important;
    text-shadow: 0 2px 24px rgba(0, 12, 30, 0.35) !important;
    text-wrap: balance;
}

body.page-hero-v2 section.hero h1 span,
body.page-hero-v2 section.hero h1 .grad-text-blue {
    background: linear-gradient(135deg, #64d2ff 0%, #3b9eff 55%, #bfdbfe 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #64d2ff !important;
}

body.page-hero-v2 section.hero p,
body.page-hero-v2 section.hero .lead,
body.page-hero-v2 section.hero .bt-lead,
body.page-hero-v2 section.hero .cm-lead-lg {
    max-width: 680px !important;
    margin: 0 auto 24px !important;
    font-size: clamp(16px, 1.5vw, 19px) !important;
    line-height: 1.62 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    text-align: center !important;
    text-shadow: none !important;
}

body.page-hero-v2 section.hero p strong {
    color: #ffffff !important;
}

/* ═══ GLASS EYEBROW / BADGES ══════════════════════════════════════════ */
body.page-hero-v2 section.hero .eyebrow,
body.page-hero-v2 section.hero .hero-eyebrow,
body.page-hero-v2 section.hero .cm-eyebrow,
body.page-hero-v2 section.hero div.btn-liquid {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 auto 18px !important;
    padding: 8px 18px !important;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, 0.11) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #ffffff !important;
    font: 700 12.5px/1.4 Inter, -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: default;
}

body.page-hero-v2 section.hero .eyebrow::before,
body.page-hero-v2 section.hero .cm-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64d2ff !important;
    box-shadow: 0 0 0 4px rgba(100, 210, 255, 0.22);
    flex-shrink: 0;
}

body.page-hero-v2 section.hero .hero-eyebrow::before {
    content: none !important;
    display: none !important;
}

body.page-hero-v2 section.hero .hero-eyebrow svg,
body.page-hero-v2 section.hero div.btn-liquid i {
    width: 15px;
    height: 15px;
    color: #64d2ff !important;
    flex-shrink: 0;
}

/* ═══ CENTERED CTA ROWS & BUTTONS ═════════════════════════════════════ */
body.page-hero-v2 section.hero .bt-hero-actions,
body.page-hero-v2 section.hero .cm-hero-cta,
body.page-hero-v2 section.hero .hero-text > div[style*="display:flex"],
body.page-hero-v2 section.hero .hero-text > div[style*="display: flex"] {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 8px !important;
}

body.page-hero-v2 section.hero a.btn-liquid,
body.page-hero-v2 section.hero a.btn-primary,
body.page-hero-v2 section.hero a.cm-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 14px 28px !important;
    border-radius: 100px !important;
    background: linear-gradient(135deg, #0071e3 0%, #1a8fff 50%, #005bb5 100%) !important;
    border: 1.5px solid transparent !important;
    box-shadow: 0 6px 22px rgba(0, 113, 227, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

body.page-hero-v2 section.hero a.btn-liquid:hover,
body.page-hero-v2 section.hero a.btn-primary:hover,
body.page-hero-v2 section.hero a.cm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

body.page-hero-v2 section.hero a.btn-outline,
body.page-hero-v2 section.hero a.cm-btn-secondary,
body.page-hero-v2 section.hero a.bt-link-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 14px 26px !important;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}

body.page-hero-v2 section.hero a.btn-outline:hover,
body.page-hero-v2 section.hero a.cm-btn-secondary:hover,
body.page-hero-v2 section.hero a.bt-link-arrow:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #0071e3 !important;
    transform: translateY(-2px);
}

/* ═══ SUB-COMPONENTS (CHIPS, STEPS, FAQ TOC, BT TRIAL, CHURCH MATCH) ══ */
body.page-hero-v2 section.hero .free-tag {
    margin: 0 auto 8px !important;
    background: rgba(52, 199, 89, 0.16) !important;
    border-color: rgba(52, 199, 89, 0.38) !important;
    color: #86efac !important;
}

body.page-hero-v2 section.hero .hero-steps {
    justify-content: center !important;
    margin: 26px auto 0 !important;
}

body.page-hero-v2 section.hero .hero-info-cards {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 28px auto 0 !important;
}

body.page-hero-v2 section.hero .hero-info-chip {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

body.page-hero-v2 section.hero .hero-info-chip i {
    color: #64d2ff !important;
}

body.page-hero-v2 section.hero .faq-toc {
    justify-content: center !important;
    margin: 28px auto 0 !important;
}

body.page-hero-v2 section.hero .faq-toc a {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

body.page-hero-v2 section.hero .faq-toc a:hover {
    background: rgba(100, 210, 255, 0.22) !important;
    border-color: rgba(100, 210, 255, 0.5) !important;
}

/* Bible College / Christian College / Theological Seminary trial card */
body.page-hero-v2 section.hero .bt-trial-badge {
    order: 0 !important;
    width: 100% !important;
    max-width: 620px !important;
    margin: 32px auto 0 !important;
    padding: 26px 28px !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(100, 210, 255, 0.25) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 44px rgba(0, 8, 22, 0.35) !important;
    text-align: center !important;
    color: #ffffff !important;
}
body.page-hero-v2 section.hero .bt-trial-title,
body.page-hero-v2 section.hero .bt-trial-desc {
    color: #ffffff !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.page-hero-v2 section.hero .bt-trial-desc {
    color: rgba(255, 255, 255, 0.84) !important;
    margin-bottom: 16px !important;
}
body.page-hero-v2 section.hero .bt-trial-btn {
    background: #ffffff !important;
    color: #0071e3 !important;
    border-radius: 980px !important;
    padding: 10px 22px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    text-decoration: none !important;
}

/* Church Match split visual centered below CTAs */
body.page-hero-v2 section.hero .cm-hero-grid > .cm-reveal:nth-child(2) {
    width: 100%;
    max-width: 560px;
    margin: 34px auto 0 !important;
}
body.page-hero-v2 section.hero .cm-split-stack {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(100, 210, 255, 0.22) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 8, 22, 0.45) !important;
    padding: 24px !important;
    text-align: left !important;
}
body.page-hero-v2 section.hero .cm-split-row {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
body.page-hero-v2 section.hero .cm-split-row .cm-split-label {
    color: #ffffff !important;
}
body.page-hero-v2 section.hero .cm-split-row .cm-split-sub {
    color: rgba(255, 255, 255, 0.78) !important;
}
body.page-hero-v2 section.hero .cm-split-row.cm-row-student .cm-pct { color: #64d2ff !important; }
body.page-hero-v2 section.hero .cm-split-row.cm-row-church .cm-pct { color: #4ade80 !important; }
body.page-hero-v2 section.hero .cm-split-row.cm-row-lucent .cm-pct { color: #c084fc !important; }
body.page-hero-v2 section.hero .cm-split-equals {
    background: rgba(0, 113, 227, 0.22) !important;
    border: 1px solid rgba(100, 210, 255, 0.24) !important;
    color: #ffffff !important;
}
body.page-hero-v2 section.hero .cm-split-equals strong {
    color: #64d2ff !important;
}
body.page-hero-v2 section.hero .cm-hero-trust {
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 24px !important;
}
