/* ==========================================================================
   PRODRIVERS - HOME CONTENT (CLINICAL SAAS AESTHETIC)
   ========================================================================== */

   /* GLOBAL TYPOGRAPHY */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* HERO BUTTON FIXES */
.hero-actions .btn-primary {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm, 10px);
    box-shadow: 0 10px 28px -8px var(--brand-glow-40), 0 4px 12px -4px var(--brand-glow-32);
}
.hero-actions .btn-primary:hover {
    background-color: var(--brand-primary-dark) !important;
    transform: translateY(-2px);
}

.hero-actions .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 8px;
    backdrop-filter: blur(8px);
}
.hero-actions .btn-secondary:hover {
    background-color: #ffffff !important;
    color: #0f172a !important; /* Dark text on hover */
}

/* CRITICAL OVERFLOW FIX */
*, *::before, *::after { box-sizing: border-box; }

/* ==========================================================================
   PACKAGE DETAILS - RICH FEATURES & FINE PRINT (PREMIUM OVERHAUL)
   ========================================================================== */

/* Force strict typography everywhere in the package section */
.package-content, .package-features, .package-pricing-card {
    font-family: 'Inter', sans-serif !important;
}

.package-features h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 3rem;
}

/* Transform the list into a premium 2-column SaaS grid */
.rich-feature-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem 2.5rem; 
    margin-bottom: 4rem; 
}

.rich-feature { 
    display: flex; 
    gap: 1.25rem; 
    align-items: flex-start; 
}

.feature-icon-box {
    background: linear-gradient(135deg, var(--brand-tint-subtle), var(--brand-tint-soft)); 
    color: var(--brand-primary); 
    width: 54px; 
    height: 54px; 
    border-radius: var(--radius-md, 14px); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
    box-shadow: 0 4px 14px -4px var(--brand-glow-22);
    border: 1px solid var(--brand-border-soft);
}

.feature-icon-box svg { 
    width: 28px; 
    height: 28px; 
    stroke-width: 2.5;
}

.rich-feature-text h3 { 
    margin: 0 0 0.5rem 0; 
    font-size: 1.15rem; 
    font-weight: 700;
    color: var(--text-main); 
    line-height: 1.3;
}

.rich-feature-text p { 
    margin: 0; 
    color: var(--text-muted); 
    line-height: 1.6; 
    font-size: 0.95rem; 
}

/* Enhanced Insurance Callout */
.insurance-box {
    margin-top: 4rem; 
    padding: 2.5rem; 
    background: linear-gradient(to right, #eff6ff, #f8fafc);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.insurance-box h3 {
    color: #1e3a8a; 
    margin-top: 0; 
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.insurance-box p { 
    color: #334155; 
    margin: 0; 
    line-height: 1.7; 
    font-size: 1.05rem;
}

/* Subtle, professional fine print */
.fine-print-box {
    margin-top: 3rem; 
    padding: 2rem; 
    border: 1px dashed var(--border-light); 
    border-radius: 12px; 
    background: var(--bg-soft);
}

.fine-print-box h4 {
    margin-top: 0; 
    margin-bottom: 1rem;
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
}

.fine-print-box p { 
    margin: 0; 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    line-height: 1.6; 
}

.text-center { text-align: center; }


section { padding: clamp(4rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 2rem); position: relative; }
.section-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 50rem; margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(1.85rem, 4vw, 2.5rem); font-weight: 800; color: var(--text-main); margin-bottom: 1rem; letter-spacing: -0.03em; line-height: 1.15; }
.section-subtitle { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-muted); line-height: 1.65; max-width: 36rem; margin-left: auto; margin-right: auto; }


/* --- HERO SECTION --- */
.hero-section {
    padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem) clamp(2.5rem, 8vw, 4rem);
    text-align: center;
    background-image: 
        linear-gradient(165deg, color-mix(in srgb, var(--bg-dark) 42%, transparent) 0%, color-mix(in srgb, var(--bg-dark) 88%, transparent) 100%), 
        url('../img/web/smooth-asphalt-road.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-bottom: 1px solid color-mix(in srgb, var(--text-main) 8%, transparent);
    min-height: min(58vh, 44rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Never hide hero content behind scroll-reveal (animations.js also adds is-visible). */
.hero-section .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
}

.hero-content { 
    max-width: 900px; 
    margin: 0 auto; 
}

.hero-promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 auto clamp(1rem, 3vw, 1.5rem);
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
}

/* Glassmorphism badge for the dark background */
.badge-trust {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1); 
    color: #ffffff;
    padding: 0.5rem 1rem; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px; font-size: 0.8rem; font-weight: 600;
    margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

/* White text for the main titles against the dark overlay */
.hero-title { 
    font-size: clamp(3rem, 5vw, 4rem); 
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem); 
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle { 
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
    font-weight: 500;
    color: #e2e8f0;
    margin: 0 auto clamp(1.25rem, 3vw, 1.75rem); 
    max-width: 38rem;
    line-height: 1.55;
}

.hero-support-line {
    margin: clamp(1.25rem, 3vw, 1.75rem) auto 0.65rem;
    max-width: 38rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.55;
}
.hero-support-line a {
    color: #86efac;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hero-support-line a:hover {
    color: #bbf7d0;
}

.hero-support-muted {
    margin: 0 auto 0;
    max-width: 36rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.5;
}

.hero-proof-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.65rem;
    margin: clamp(1rem, 2.5vw, 1.35rem) auto 0;
}

.hero-proof-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.01em;
}

.hero-proof-chip--link {
    text-decoration: none;
    color: #86efac;
    transition: background 0.2s ease, color 0.2s ease;
}
.hero-proof-chip--link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #bbf7d0;
}

.hero-actions { 
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

/* Mobile-first stack for multiple hero CTAs (in-class calendar + packages) */
.hero-actions.hero-actions--stack-sm {
    flex-direction: column;
    align-items: stretch;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}
@media (min-width: 640px) {
    .hero-actions.hero-actions--stack-sm {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        max-width: none;
    }
}

.hero-cta-primary {
    padding: 1.15rem 1.85rem !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 28px -8px var(--brand-glow-40), 0 4px 14px -4px rgba(0, 0, 0, 0.35);
}

.hero-cta-secondary {
    padding: 0.95rem 1.5rem !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

.hero-cta-tertiary {
    padding: 0.95rem 1.5rem !important;
    font-size: 0.95rem !important;
}

@media (prefers-reduced-motion: reduce) {
    .hero-cta-primary:hover,
    .hero-cta-secondary:hover,
    .btn-primary:hover {
        transform: none;
    }
}

.hero-section a:focus-visible {
    outline: 2px solid #86efac;
    outline-offset: 3px;
}

.hero-section .btn-primary:focus-visible {
    outline-color: #ffffff;
    outline-offset: 4px;
}

.hero-urgency-bar {
    margin-top: clamp(1.25rem, 3vw, 1.75rem);
    margin-left: auto;
    margin-right: auto;
    max-width: 40rem;
    padding: 0.75rem 1.15rem;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fde68a;
    line-height: 1.45;
}
.hero-actions .btn-hero-calendar {
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff !important;
    padding: 1.1rem 1.75rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    text-align: center;
    backdrop-filter: blur(4px);
}
.hero-actions .btn-hero-calendar:hover {
    background: #ffffff;
    color: var(--text-main, #0f172a) !important;
}
.hero-hero-microcopy {
    margin-top: clamp(0.85rem, 2vw, 1.15rem);
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.45;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.bde-dual-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bde-dual-cta .btn-enroll-secondary {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--brand-primary, #16a34a);
    color: var(--brand-primary, #16a34a) !important;
    background: #ffffff;
}
.bde-dual-cta .btn-enroll-secondary:hover {
    background: #f0fdf4;
}
.bde-inclass-sessions-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-primary, #16a34a);
    text-decoration: none;
}
.bde-inclass-sessions-link:hover {
    text-decoration: underline;
}

.hero-actions .btn-primary {
    background-color: var(--brand-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 24px -6px var(--brand-glow-40);
}
.hero-actions .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid #ffffff;
    backdrop-filter: blur(4px);
}
.hero-actions .btn-secondary:hover {
    background-color: #ffffff;
    color: var(--text-main);
}
.btn-primary {
    background: var(--brand-primary); 
    color: white !important; 
    border: none;
    box-shadow: 0 10px 28px -8px var(--brand-glow-40), 0 4px 12px -4px var(--brand-glow-32);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm, 10px);
}
.btn-primary:hover { 
    background: var(--brand-primary-dark); 
    transform: translateY(-2px);
}
/* Ensure the secondary button works on a dark background */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1); 
    color: #ffffff !important; 
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 1rem 2.5rem;
}
.btn-secondary:hover { 
    background: #ffffff; 
    color: var(--text-main) !important; 
}

.trust-indicators { 
    display: flex; justify-content: center; gap: 2.5rem; padding-top: 2rem; 
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white line */
}

/* Lighten the trust text at the bottom of the hero */
.trust-item { 
    font-size: 0.9rem; font-weight: 500; color: #cbd5e1; 
    display: flex; align-items: center; gap: 0.5rem; 
}
.trust-icon { color: var(--brand-primary); font-weight: bold; }

/* High-Impact Trust Strip */
.trust-strip {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.trust-strip-inner { margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.trust-strip-header { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: color-mix(in srgb, #ffffff 92%, transparent); }
.trust-items-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; font-weight: 600; font-size: 1rem; }
.trust-items-grid span { display: flex; align-items: center; gap: 0.5rem; }
.trust-items-grid svg { width: 20px; height: 20px; color: color-mix(in srgb, #ffffff 78%, transparent); }

.trust-strip-reviews {
    margin: 1rem 0 0 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
}

.trust-strip-reviews-link {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: color-mix(in srgb, #ffffff 60%, transparent);
}

.trust-strip-reviews-link:hover {
    color: #fef9c3;
    text-decoration-color: #fef9c3;
}

.trust-strip-reviews-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    border-radius: 3px;
}

/* Momentum CTAs */
.momentum-cta { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 3rem; padding-top: 3rem; border-top: 1px dashed var(--border-light); }
.momentum-cta h4 { font-size: 1.5rem; color: var(--text-main); margin-bottom: 1.5rem; font-weight: 800; }

/* --- FEATURES SECTION (homepage “Why choose us”) --- */
.features-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-soft) 0%, color-mix(in srgb, var(--bg-primary) 92%, var(--bg-soft)) 45%, var(--bg-soft) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    max-width: var(--layout-max, 1220px);
    margin: 0 auto;
}

/* Scoped so enhancements.css generic .feature-card hover doesn’t fight layout */
.features-section .feature-card {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(165deg, var(--bg-primary) 0%, color-mix(in srgb, var(--bg-primary) 94%, var(--brand-tint-subtle)) 100%);
    padding: 2.5rem 2rem;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--border-light) 88%, var(--brand-border-soft));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 2px 4px -2px rgba(15, 23, 42, 0.04);
    transition: transform 0.35s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)), box-shadow 0.35s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)), border-color 0.25s ease;
}

.features-section .feature-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--brand-primary) 22%, var(--border-light));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 22px 44px -16px rgba(15, 23, 42, 0.14),
        0 10px 20px -12px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.features-section .feature-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    background: linear-gradient(145deg, var(--brand-tint-subtle) 0%, color-mix(in srgb, var(--brand-tint-subtle) 55%, #ffffff) 100%);
    border: 1px solid color-mix(in srgb, var(--brand-border-soft) 75%, transparent);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 6px 16px -6px color-mix(in srgb, var(--brand-primary) 28%, transparent);
}

.features-section .feature-badge svg {
    display: block;
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.65;
    flex-shrink: 0;
}

.features-section .feature-card__title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text-main);
    margin: 0 0 0.75rem;
    max-width: 26ch;
}

.features-section .feature-card__text {
    font-size: 0.975rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    max-width: 36ch;
}

@media (max-width: 640px) {
    .features-section {
        padding: 4rem 1.25rem;
    }
    .features-section .feature-card__title {
        font-size: 1.1rem;
        max-width: none;
    }
    .features-section .feature-card__text {
        max-width: none;
    }
}

/* Legacy: other pages may still use .feature-card without .features-section */
.feature-card { background: var(--bg-primary); padding: 2.5rem; border-radius: var(--radius-md, 14px); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--text-main) 12%, var(--border-light)); }
.feature-badge { width: 54px; height: 54px; background: var(--brand-tint-subtle); color: var(--brand-primary); border-radius: var(--radius-md, 14px); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; border: 1px solid var(--brand-border-soft); }
.feature-badge svg { width: 24px; height: 24px; stroke: currentColor; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--text-main); }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* SaaS Comparison Matrix */
.comparison-section { background: var(--bg-primary); border-bottom: 1px solid var(--border-light); }
.comparison-table-wrap { max-width: 900px; margin: 0 auto; background: var(--bg-primary); border-radius: 16px; border: 1px solid var(--border-light); overflow: hidden; box-shadow: var(--shadow-md); }
.comparison-table { width: 100%; border-collapse: collapse; text-align: left; }
.comparison-table th, .comparison-table td { padding: 1.5rem; border-bottom: 1px solid var(--border-light); }
.comparison-table th { background: var(--bg-soft); font-weight: 800; color: var(--text-main); font-size: 1.1rem; }
.comparison-table th.brand-col { background: var(--brand-primary); color: white; width: 25%; text-align: center; }
.comparison-table td.brand-col { background: var(--brand-tint-subtle); color: var(--brand-primary); font-weight: 800; text-align: center; border-left: 1px solid var(--brand-border-soft); border-right: 1px solid var(--brand-border-soft); }
.comparison-table th.brand-col-highlight,
.comparison-table td.brand-col-highlight { background: linear-gradient(135deg, var(--brand-tint-subtle) 0%, var(--brand-tint-soft) 100%) !important; box-shadow: inset 0 0 0 2px var(--brand-glow-22); }
.comparison-table th.brand-col-highlight { background: var(--brand-primary) !important; }
.comparison-table td.typ-col { color: var(--text-muted); text-align: center; width: 25%; font-weight: 500; }
.comparison-table tr:last-child td { border-bottom: none; }

/* Local SEO Block */
.local-seo-section { background: var(--bg-dark); color: white; }
.local-seo-grid { max-width: var(--layout-max, 1220px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.local-seo-media { min-width: 0; }
/* Premium Google Map (lazy-loaded; see assets/js/maps-premium.js) */
.apex-maps-shell {
    width: 100%;
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.45);
    background: rgba(15, 23, 42, 0.5);
}
.apex-maps-shell--dark .apex-maps-canvas {
    width: 100%;
    min-height: 320px;
    height: clamp(260px, 42vw, 400px);
}
@media (max-width: 900px) {
    .apex-maps-shell--dark .apex-maps-canvas { min-height: 240px; height: 280px; }
}

/* Map sections (schedule, packages, FAQ, BDE, package detail, pay online) */
.apex-maps-section {
    max-width: var(--layout-max, 1220px);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}
.apex-maps-section--flush {
    padding: 0;
    max-width: none;
    margin: 0;
}
.apex-maps-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}
.apex-maps-lead {
    color: var(--text-muted);
    margin: 0 0 1rem;
    line-height: 1.55;
    max-width: 52ch;
}
.apex-maps-footnote {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.75rem 0 0;
    line-height: 1.45;
}
.apex-maps-shell--light {
    width: 100%;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.14);
    background: #fff;
}
.apex-maps-shell--light .apex-maps-canvas {
    width: 100%;
    min-height: 240px;
    height: clamp(200px, 32vw, 320px);
}
.package-sidebar-map .apex-maps-section {
    padding: 0;
    max-width: none;
    margin-top: 1.5rem;
}
.package-sidebar-map .apex-maps-heading {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.package-sidebar-map .apex-maps-shell--light .apex-maps-canvas {
    min-height: 180px;
    height: 200px;
}

.apex-maps-canvas--lazy:not(.apex-maps-loaded) {
    background: linear-gradient(90deg, var(--bg-soft) 0%, #e2e8f0 45%, var(--bg-soft) 100%);
    background-size: 220% 100%;
    animation: apexMapShimmer 1.35s ease-in-out infinite;
}
@keyframes apexMapShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.bde-value-strip {
    padding: 2.25rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-light);
}
.bde-value-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .bde-value-strip-inner { grid-template-columns: 1fr; }
}
.bde-value-pillar {
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.bde-value-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.95rem;
    background: color-mix(in srgb, var(--brand-primary) 12%, #fff);
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}
.bde-value-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}
.bde-value-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.public-testimonials-strip {
    background: #ffffff;

}
.public-testimonials-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.public-testimonials-head {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2rem;
}
.public-testimonials-title {
    margin: 0 0 0.5rem;
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.02em;
}
.public-testimonials-lead {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.public-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.public-testimonial-card {
    margin: 0;
    padding: 1.35rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: var(--bg-soft);
}
.public-testimonial-stars {
    color: var(--brand-accent, #f59e0b);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
}
.public-testimonial-quote {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-main);
    font-weight: 500;
}
.public-testimonial-cite {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.public-testimonial-author { font-weight: 800; color: var(--text-main); }
.public-testimonials-cta { text-align: center; margin: 2rem 0 0; }
.public-testimonials-link {
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
}
.public-testimonials-link:hover { text-decoration: underline; }

.bde-map-section {
    background: #ffffff;
    padding-top: 2.5rem;
}

.local-seo-content h2 { color: white; font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.local-seo-content p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.6; }
.local-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.local-list li { display: flex; align-items: center; gap: 0.75rem; color: #f8fafc; font-weight: 500; }
.local-list li svg { color: var(--brand-primary); width: 20px; height: 20px; }

/* FAQ Accordion Grid */
.faq-section { background: var(--bg-soft); }
.faq-grid { max-width: 900px; margin: 0 auto; display: grid; gap: 1.5rem; }
.faq-item { background: white; padding: 2rem; border-radius: var(--radius-md, 14px); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
.faq-item h4 { margin: 0 0 0.5rem 0; font-size: 1.15rem; color: var(--text-main); font-weight: 800; }
.faq-item p { margin: 0; color: var(--text-muted); line-height: 1.6; }

/* Google Review Badge */
.google-review-badge { display: inline-flex; align-items: center; gap: 1rem; background: white; padding: 1rem 2rem; border-radius: 100px; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); margin: 0 auto 3rem; }
.google-stars { color: #f59e0b; font-size: 1.25rem; letter-spacing: 2px; }
.google-text { font-weight: 700; color: var(--text-main); }

/* Special & Conversion */
.special-packages-header { margin-bottom: 1.5rem; }
.special-packages-header .special-subtext { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
/* card-badge-special colors come from Settings → Marketing (promo_bg_color, promo_bg_dark, promo_text_color) */

/* Training Path Grid — auto-fit so 4 intent cards wrap evenly */
.training-path-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
@media (max-width: 768px) {
    .training-path-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 520px) {
    .training-path-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Training Path Buttons */
.training-path-btn {
    background: var(--bg-primary); border: 2px solid var(--border-light); border-radius: 12px; padding: 2rem 1.5rem;
    text-align: center; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; align-items: center;
}
.training-path-btn:hover { border-color: var(--brand-primary); transform: translateY(-4px); box-shadow: 0 14px 32px -8px var(--brand-glow-32); }
.training-path-btn strong { font-size: 1.1rem; color: var(--text-main); font-weight: 800; }
.training-path-btn span:last-of-type { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.4; }
@media (max-width: 600px) {
    .training-path-btn { padding: 1.5rem 1rem; }
    .training-path-btn strong { font-size: 1rem; }
}

/* BDE Dominant Cards */
.pricing-card[data-pkg-type=bde] { border: 2px solid var(--brand-glow-32); box-shadow: 0 10px 28px -10px var(--brand-glow-22); }
.pricing-card[data-pkg-type=bde].popular { transform: scale(1.02); }

/* Progressive Conversion CSS */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 var(--brand-glow-40); border-color: var(--brand-primary); }
    70% { box-shadow: 0 0 0 15px transparent; border-color: var(--brand-primary); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 transparent; border-color: var(--border-light); transform: scale(1); }
}
.pricing-card.highlight-pulse { animation: pulseGlow 1.5s ease-out; border-color: var(--brand-primary); z-index: 10; }

/* --- BDE EXPLAINER --- */
.bde-explainer {
    background-color: var(--bg-dark) !important;
    padding: 6rem 2rem; color: white !important;
}
.bde-container {
    max-width: var(--layout-max, 1220px); margin: 0 auto; display: grid;
    grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
@media (max-width: 900px) { .bde-container { grid-template-columns: 1fr; gap: 3rem; } }

.bde-content .section-title { color: white !important; }
.bde-content .section-subtitle { color: #94a3b8; margin-left: 0; }

.timeline-list { margin-top: 3rem; list-style: none; padding: 0; }
.timeline-list li { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.step-number {
    flex-shrink: 0; width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    color: var(--brand-primary); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem;
}
.step-text strong { display: block; font-size: 1.1rem; margin-bottom: 0.25rem; color: white; }
.step-text { color: #94a3b8; font-size: 0.95rem; line-height: 1.5; }

/* --- IMAGE FRAME POLISH --- */
.image-frame-premium {
    width: 100%; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
    border: 1px solid rgba(255,255,255,0.1);
}
.image-frame-premium img {
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.premium-img-fill { width: 100%; height: 100%; object-fit: cover; }

/* --- TESTIMONIALS --- */
.testimonials-section { padding: 6rem 2rem; background: #ffffff; border-bottom: 1px solid var(--border-light); }
.testimonial-grid {
    margin-top: 4rem; max-width: var(--layout-max, 1220px); margin-left: auto; margin-right: auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.testimonial-card {
    background: var(--bg-soft); padding: 2.5rem; border-radius: var(--radius-md, 14px); border: 1px solid var(--border-light);
}
.testimonial-card p { font-size: 1rem; color: var(--text-main); line-height: 1.6; margin-bottom: 2rem; }
.student-info { display: flex; align-items: center; gap: 1rem; }
.student-avatar { width: 40px; height: 40px; background: #cbd5e1; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold;}
.student-details .stars { color: var(--brand-accent); font-size: 0.85rem; margin-bottom: 0.2rem; }
.student-details .student-name { font-weight: 600; font-size: 0.9rem; color: var(--text-main); }

/* --- PRICING SECTION --- */
.pricing-section { padding: 8rem 2rem; background: var(--bg-soft); }
/* ==========================================================================
   PRICING CARDS REFINEMENT
   ========================================================================== */
.pricing-grid {
    max-width: var(--layout-max, 1220px);
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

/* BDE cards: 1/2 width each (2 per row). Other packages: 1/3 width (3 per row) */
.pricing-grid-bde {
    max-width: var(--layout-max, 1220px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
}
@media (max-width: 768px) {
    .pricing-grid-bde { grid-template-columns: 1fr; }
}

/* Unified BDE card (single card with two options inside) */
.pricing-card-bde-unified { grid-column: 1 / -1; }
.pricing-grid-bde-row-unified { grid-template-columns: 1fr !important; }
.bde-option-card { transition: transform 0.2s, box-shadow 0.2s; }
.bde-option-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.bde-option-highlight { box-shadow: 0 0 0 2px var(--brand-glow-22); }

/* BDE format selector (radio-style) */
.bde-format-selector { display: flex; flex-direction: column; gap: 0.75rem; }
.bde-format-option {
    display: block;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    background: var(--bg-soft);
}
.bde-format-option:hover { border-color: #cbd5e1; background: #f8fafc; }
.bde-format-option.bde-format-selected {
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, var(--brand-tint-subtle) 0%, var(--brand-tint-soft) 100%);
    box-shadow: 0 0 0 1px var(--brand-glow-22);
}
.bde-format-radio { font-size: 1.1rem; margin-right: 0.5rem; color: var(--text-muted); }
.bde-format-selected .bde-format-radio { color: var(--brand-primary); }
.bde-format-label { font-weight: 800; font-size: 1rem; color: var(--text-main); }
.bde-format-desc { display: block; font-size: 0.9rem; color: var(--text-muted); margin-top: 0.35rem; line-height: 1.45; }
.bde-format-micro { display: block; font-size: 0.85rem; font-weight: 600; color: var(--brand-primary); margin-top: 0.5rem; }

/* BDE format compare: do not use inline grid-template-columns on the markup — it breaks this layout on small screens */
.bde-format-compare-wrap {
    max-width: 1100px;
    margin: 3.5rem auto 0;
    padding-inline: clamp(0.75rem, 4vw, 1.25rem);
    box-sizing: border-box;
    width: 100%;
}
.bde-page .bde-format-compare-heading.bde-section-title {
    text-align: center;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    text-wrap: balance;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    line-height: 1.28;
    padding-inline: 0.25rem;
}
.bde-format-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: 0;
    align-items: stretch;
    width: 100%;
}
.bde-format-features-grid li {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
@media (max-width: 900px) {
    .bde-format-features-grid { grid-template-columns: 1fr; }
    .bde-page .bde-format-features-grid > .bde-card {
        padding: 1.35rem 1.2rem;
    }
}
@media (max-width: 768px) {
    .bde-curriculum-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BDE PAGE POLISH
   ========================================================================== */
.bde-page .bde-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}
.bde-page .bde-section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}
.bde-page .bde-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.bde-page .bde-card-accent {
    background: linear-gradient(135deg, var(--brand-tint-subtle) 0%, var(--brand-tint-soft) 100%);
    border: 1px solid var(--brand-border-soft);
}
.bde-page .bde-notice {
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}
.bde-page .bde-curriculum-details summary {
    transition: background 0.2s;
}
.bde-page .bde-curriculum-details summary:hover {
    background: #f1f5f9 !important;
}
.bde-page .bde-curriculum-details[open] summary {
    border-bottom: 1px solid var(--border-light);
}
.bde-page .bde-mto-badge {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: 0.03em;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--brand-border-soft);
}
.bde-page .bde-faq-section {
    padding: 5rem 2rem 6rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.pricing-grid-split {
    max-width: var(--layout-max, 1220px);
    margin: 4rem auto 0;
}
.pricing-grid-bde-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.pricing-grid-other-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}
@media (max-width: 1024px) {
    .pricing-grid-other-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pricing-grid-bde-row,
    .pricing-grid-other-row { grid-template-columns: 1fr; }
}

.pricing-card { 
    background: #ffffff !important;
    border: 1px solid var(--border-light); 
    border-radius: var(--radius-md, 14px);
    padding: 2.5rem 2rem;
    display: flex; 
    flex-direction: column; /* Establishes vertical flow */
    height: 100%; 
    box-sizing: border-box;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
    position: relative; 
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.pricing-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* Most Popular Card Emphasis */
.pricing-card.popular {
    border: 2px solid var(--brand-primary); 
    box-shadow: 0 24px 48px -16px var(--brand-glow-32), var(--shadow-md); 
    transform: scale(1.02);
    z-index: 10;
}

.pricing-card.popular .card-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--brand-primary); color: white; 
    padding: 0.4rem 1.25rem; border-radius: 9999px; 
    font-size: 0.8rem; font-weight: 800; 
    text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}

/* Card Headers & Badges */
.card-header h3,
.card-header .package-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.package-outcome {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
    font-weight: 500;
    line-height: 1.4;
}

.urgency-cta {
    font-size: 0.8rem;
    color: var(--brand-primary);
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    text-align: center;
}

.format-badge {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--text-muted);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.current-price { font-size: 2.75rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.03em; line-height: 1;}
.tax-note { font-size: 0.85rem; color: var(--text-muted); font-weight: 500;}

/* FIXED BUTTONS */
.btn-enroll { 
    display: flex !important; /* Forces it to act as a block/flex container */
    align-items: center;
    justify-content: center;
    width: 100% !important; /* Stretches across the card */
    box-sizing: border-box;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
}

.pricing-card .btn-enroll { 
    background: #ffffff; 
    color: var(--text-main); 
    border: 2px solid var(--border-light); 
}

.pricing-card .btn-enroll:hover { 
    background: var(--bg-soft); 
    border-color: #cbd5e1; 
}

/* Popular Card Button */
.pricing-card.popular .btn-enroll { 
    background: var(--brand-primary); 
    color: #ffffff; 
    border: 2px solid var(--brand-primary); 
    box-shadow: 0 6px 20px -6px var(--brand-glow-32);
}

.pricing-card.popular .btn-enroll:hover { 
    background: var(--brand-primary-dark); 
    border-color: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px var(--brand-glow-40);
}

.card-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brand-primary); color: white; padding: 0.25rem 1rem;
    border-radius: 9999px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}

.card-header h3 { font-size: 1.15rem; margin-bottom: 1rem; color: var(--text-main) !important; }

/* Pricing Math Formatting */
.price-block { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.current-price { font-size: 2.5rem; font-weight: 800; color: var(--text-main) !important; letter-spacing: -0.03em; line-height: 1;}
.compare-price { text-decoration: line-through; color: var(--text-muted); font-size: 1rem; }
.tax-note { font-size: 0.85rem; color: var(--text-muted); }
.delivery-mode { font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem;}

.card-body { flex-grow: 1; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-muted) !important; line-height: 1.4; }

.custom-check { color: var(--brand-primary); font-weight: bold; flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; }
.custom-check svg { width: 100%; height: 100%; }

.card-footer { 
    margin-top: auto; /* This is the magic bullet that aligns all buttons */
    padding-top: 2rem; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; 
}

/* MOBILE FIX: Prevents the comparison table from squishing */
.comparison-table-wrap { 
    max-width: 900px; 
    margin: 0 auto; 
    background: #ffffff; 
    border-radius: 16px; 
    border: 1px solid var(--border-light); 
    overflow-x: auto; /* Allows side-scrolling on phones */
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-md); 
}


/* MOBILE FIX: Force the 'Popular' BDE package to the top on mobile */
@media (max-width: 768px) {
    .pricing-card.popular {
        order: -1;
    }
}

/* ==========================================================================
   PACKAGE DETAILS PAGE
   ========================================================================== */

.package-hero {
    background-image: 
        linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95)), /* Darker overlay */
        url('../images/smooth-asphalt-road.jpg'); /* Same image */
    background-size: cover;
    background-position: center;
}

.package-hero::before {
    content: '';
    position: absolute; inset: 0; opacity: 0.05;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.package-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px; 
    margin: 0 auto;
}

.package-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.package-hero .hero-title {
    color: #ffffff;
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.package-hero .hero-subtitle {
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0;
    max-width: none;
}

.package-content {
    padding: 6rem 2rem;
    background: var(--bg-soft);
}

.package-grid {
    max-width: var(--layout-max, 1220px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .package-grid { grid-template-columns: 1fr; gap: 3rem;}
}

.package-features h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    margin-top: 0;
}

.large-features li {
    display: flex;
    align-items: center; /* Centers the icon with the text */
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-main) !important;
}

.large-features .custom-check {
    width: 32px; 
    height: 32px;
}

.insurance-box {
    margin-top: 3.5rem;
    padding: 2rem;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
}

.insurance-box h3 { color: #1e3a8a; margin-top: 0; margin-bottom: 0.75rem; font-size: 1.2rem;}
.insurance-box p { color: #334155; margin: 0; line-height: 1.6; font-size: 0.95rem;}

.package-pricing-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 120px; /* Sticks to the screen as you scroll down the features */
}

.package-pricing-card .pricing-header {
    margin-top: 0; 
    margin-bottom: 2rem;
    color: var(--text-main); 
    font-size: 1.5rem;
    font-weight: 800;
}

.package-pricing-card .price-block {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.package-pricing-card .meta-details {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.package-pricing-card .meta-details p {
    margin: 0.75rem 0;
    font-size: 0.95rem;
}

.btn-checkout {
    display: block;
    text-align: center;
    background: var(--brand-primary);
    color: white;
    padding: 1.25rem;
    border-radius: var(--radius-sm, 10px);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 6px 20px -6px var(--brand-glow-32);
}

.btn-checkout:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px var(--brand-glow-40);
}

.secure-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.secure-note svg {
    width: 16px; height: 16px;
}

/* ==========================================================================
   PACKAGE DETAILS - RICH FEATURES & FINE PRINT (PREMIUM OVERHAUL)
   ========================================================================== */

/* Force strict typography everywhere in the package section */
.package-content, .package-features, .package-pricing-card {
    font-family: 'Inter', sans-serif !important;
}

.package-features h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 3rem;
}

/* Transform the list into a premium 2-column SaaS grid */
.rich-feature-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Creates the 2 columns */
    gap: 2.5rem; 
    margin-bottom: 4rem; 
}

.rich-feature { 
    display: flex; 
    gap: 1.25rem; 
    align-items: flex-start; 
}

.feature-icon-box {
    background: linear-gradient(135deg, var(--brand-tint-subtle), var(--brand-tint-soft)); 
    color: var(--brand-primary); 
    width: 54px; 
    height: 54px; 
    border-radius: var(--radius-md, 14px); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
    box-shadow: 0 4px 14px -4px var(--brand-glow-22);
    border: 1px solid var(--brand-border-soft);
}

.feature-icon-box svg { 
    width: 28px; 
    height: 28px; 
    stroke-width: 2.5;
}

.rich-feature-text h3 { 
    margin: 0 0 0.5rem 0; 
    font-size: 1.15rem; 
    font-weight: 700;
    color: var(--text-main); 
    line-height: 1.3;
}

.rich-feature-text p { 
    margin: 0; 
    color: var(--text-muted); 
    line-height: 1.6; 
    font-size: 0.95rem; 
}

/* Enhanced Insurance Callout */
.insurance-box {
    margin-top: 4rem; 
    padding: 2.5rem; 
    background: linear-gradient(to right, #eff6ff, #f8fafc);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.insurance-box h3 {
    color: #1e3a8a; 
    margin-top: 0; 
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.insurance-box p { 
    color: #334155; 
    margin: 0; 
    line-height: 1.7; 
    font-size: 1.05rem;
}

/* Subtle, professional fine print */
.fine-print-box {
    margin-top: 3rem; 
    padding: 2rem; 
    border: 1px dashed var(--border-light); 
    border-radius: 12px; 
    background: var(--bg-soft);
}

.fine-print-box h4 {
    margin-top: 0; 
    margin-bottom: 1rem;
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
}

.fine-print-box p { 
    margin: 0; 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    line-height: 1.6; 
}

/* --- BDE: in-class at other locations --- */
.bde-inclass-remote-callout {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(22, 163, 74, 0.25);
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
}
.bde-inclass-remote-title {
    margin: 0 0 0.35rem 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}
.bde-inclass-remote-desc {
    margin: 0 0 0.85rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.bde-inclass-remote-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.bde-inclass-remote-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.55rem 0.65rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}
.bde-inclass-remote-loc {
    font-weight: 700;
    color: var(--text-main);
}
.bde-inclass-remote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}
a.bde-inclass-remote-btn {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--brand-primary);
    color: #fff !important;
}
a.bde-inclass-remote-btn:hover {
    filter: brightness(1.05);
}
a.bde-inclass-remote-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: underline;
}

/* --- PREMIUM FOOTER --- */
.site-footer {
    background-color: var(--bg-dark, #0f172a);
    color: #94a3b8;
    padding: 5rem 2rem 2rem;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    max-width: var(--layout-max, 1220px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.footer-brand p { line-height: 1.6; font-size: 0.95rem; margin-bottom: 1.5rem; max-width: 300px; }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: #cbd5e1; transition: color 0.2s; width: 24px; height: 24px; display: block; }
.social-links a:hover { color: var(--brand-primary); }

.footer-links h4 { color: #ffffff; font-size: 1.05rem; font-weight: 700; margin-bottom: 1.5rem; margin-top: 0; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: color 0.2s; font-size: 0.95rem; }
.footer-links a:hover { color: var(--brand-primary); }
.contact-info li { font-size: 0.95rem; color: #cbd5e1; display: flex; gap: 0.5rem; }

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}
.footer-contact-list li {
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
}
.footer-contact-company {
    font-weight: 800;
    color: #f1f5f9;
    font-size: 1.05rem;
}
.footer-contact-address {
    white-space: pre-line;
}
.footer-contact-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-link:hover {
    color: var(--brand-primary);
}
.footer-contact-muted {
    font-size: 0.9rem;
    color: #64748b;
}
.footer-location-note {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #94a3b8;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-location-change {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
}
.footer-location-change:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: var(--layout-max, 1220px);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.legal-links { display: flex; gap: 1.5rem; }
.legal-links a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.legal-links a:hover { color: #ffffff; }