/* Homepage V2 — visual match to Edu Rise landing mockup
   Navy #0f1c3d / Gold #e8a317 / Soft surfaces #f7f8fb */

:root {
    --v2-navy: #0f1c3d;
    --v2-navy-2: #162548;
    --v2-gold: #e8a317;
    --v2-gold-hover: #d4920f;
    --v2-blue: #1d438a;
    --v2-muted: #667085;
    --v2-line: #e7ebf1;
    --v2-soft: #f7f8fb;
    --v2-green: #027a48;
    --v2-red: #b42318;
}

/* ===== Hero (dark navy like mockup) ===== */
.hero-section-modern.v2-hero {
    background: linear-gradient(160deg, #0b1530 0%, var(--v2-navy) 45%, #1a2750 100%) !important;
    color: #fff;
    min-height: clamp(520px, 78vh, 720px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section-modern.v2-hero.has-video-bg {
    min-height: clamp(520px, 78vh, 720px);
    background: var(--v2-navy) !important;
}

.hero-section-modern.v2-hero .hero-video-overlay {
    background:
        linear-gradient(180deg, rgba(11, 21, 48, .72) 0%, rgba(15, 28, 61, .82) 50%, rgba(15, 28, 61, .92) 100%),
        radial-gradient(ellipse at 70% 20%, rgba(232, 163, 23, .12), transparent 55%) !important;
}

.hero-section-modern.v2-hero .hero-content-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 920px !important;
    margin: 0 auto !important;
    min-height: clamp(480px, 70vh, 680px);
    text-align: center !important;
}

.hero-section-modern.v2-hero .hero-text-wrapper {
    flex: 1 1 100% !important;
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: 72px 0 56px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.hero-section-modern.v2-hero .hero-image-wrapper {
    display: none !important;
}

.hero-section-modern.v2-hero .hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(232, 163, 23, .14);
    border: 1px solid rgba(232, 163, 23, .45);
    color: #ffd978 !important;
    font-size: 14px;
    font-weight: 700;
}

.hero-section-modern.v2-hero .hero-text-wrapper h1 {
    color: #ffffff !important;
    font-size: clamp(1.85rem, 4.2vw, 3.15rem) !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    margin: 0 0 18px !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.hero-section-modern.v2-hero .hero-text-wrapper p {
    color: rgba(255, 255, 255, .88) !important;
    font-size: clamp(1rem, 1.8vw, 1.15rem) !important;
    line-height: 1.9 !important;
    max-width: 720px !important;
    margin: 0 auto 28px !important;
}

.v2-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 4px;
}

.v2-hero .hero-cta-button--gold {
    background: var(--v2-gold) !important;
    color: #fff !important;
    padding: 14px 30px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    display: inline-block;
    border: none !important;
    box-shadow: 0 12px 28px rgba(232, 163, 23, .35) !important;
}

.v2-hero .hero-cta-button--gold:hover {
    background: var(--v2-gold-hover) !important;
    color: #fff !important;
}

.v2-hero .hero-cta-button--outline {
    background: transparent !important;
    color: #fff !important;
    padding: 13px 28px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block;
    border: 1.5px solid rgba(255, 255, 255, .7) !important;
}

.v2-hero .hero-cta-button--outline:hover {
    background: rgba(255, 255, 255, .1) !important;
    color: #fff !important;
}

.v2-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    justify-content: center;
}

.v2-hero .hero-meta li {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* ===== Side door ===== */
.v2-side-door {
    padding: 18px 0 0;
    margin-top: -8px;
    position: relative;
    z-index: 3;
}

.v2-side-door__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 16px 22px;
    border-radius: 14px;
    background: linear-gradient(90deg, #fff6d6, #ffe9a8);
    border: 1px solid #f0c866;
    color: #55451f;
    font-weight: 600;
    line-height: 1.7;
    box-shadow: 0 10px 24px rgba(232, 163, 23, .15);
}

.v2-side-door__inner a {
    color: var(--v2-blue);
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

.v2-side-door__inner a:hover { text-decoration: underline; }

/* ===== Shared section shell ===== */
.v2-section {
    padding: 56px 0;
    background: #fff;
}

.v2-section:nth-of-type(even),
.v2-why-egyptian,
.v2-comparison,
.v2-trust,
.v2-other {
    background: var(--v2-soft);
}

.v2-stages,
.v2-pricing {
    background: #fff;
}

.v2-section__header {
    text-align: center;
    margin: 0 auto 32px;
    max-width: 780px;
}

.v2-section__header h2 {
    margin: 0;
    color: var(--v2-navy);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.45;
}

.v2-section__header p {
    margin: 12px auto 0;
    color: var(--v2-muted);
    font-size: 16px;
    line-height: 1.85;
}

.v2-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.v2-card {
    padding: 28px 20px;
    border: 1px solid var(--v2-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 28, 61, .06);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.v2-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(15, 28, 61, .1);
}

.v2-card__icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef3ff;
    border: 1px solid #d5e2f6;
    color: var(--v2-blue);
    font-size: 22px;
    margin-bottom: 14px;
}

.v2-card h3 {
    margin: 0 0 8px;
    color: var(--v2-navy);
    font-size: 17px;
    font-weight: 800;
}

.v2-card p {
    margin: 0;
    color: var(--v2-muted);
    font-size: 14px;
    line-height: 1.85;
}

/* ===== Stages (color accents like mockup) ===== */
.v2-stages__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.v2-stage {
    padding: 26px;
    border: 1px solid var(--v2-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 28, 61, .05);
    border-top: 4px solid var(--v2-blue);
}

.v2-stage--kg { border-top-color: #7c3aed; }
.v2-stage--primary { border-top-color: #ea580c; }
.v2-stage--prep { border-top-color: #059669; }
.v2-stage--secondary { border-top-color: #2563eb; }

.v2-stage h3 {
    margin: 0 0 14px;
    color: var(--v2-navy);
    font-size: 18px;
    font-weight: 800;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e3d5b8;
}

.v2-stage--kg h3 { color: #6d28d9; }
.v2-stage--primary h3 { color: #c2410c; }
.v2-stage--prep h3 { color: #047857; }
.v2-stage--secondary h3 { color: #1d4ed8; }

.v2-stage__subjects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.v2-stage__subject {
    padding: 9px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border-inline-start: 3px solid var(--v2-blue);
    font-size: 14px;
    font-weight: 600;
    color: #27364f;
}

.v2-stage--kg .v2-stage__subject { border-inline-start-color: #7c3aed; }
.v2-stage--primary .v2-stage__subject { border-inline-start-color: #ea580c; }
.v2-stage--prep .v2-stage__subject { border-inline-start-color: #059669; }
.v2-stage--secondary .v2-stage__subject { border-inline-start-color: #2563eb; }

.v2-stage__hours {
    margin: 0;
    color: var(--v2-blue);
    font-size: 13px;
    font-weight: 700;
}

.v2-stage--empty .v2-stage__subjects { min-height: 48px; }

/* ===== Stages accordion (hierarchical) ===== */
.v2-stages-acc {
    display: grid;
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

.v2-stage-block {
    background: #fff;
    border: 1px solid var(--v2-line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 28, 61, .05);
    overflow: hidden;
}

.v2-stage-block__summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 8px 1fr auto auto;
    align-items: center;
    gap: 12px 14px;
    padding: 16px 18px;
    user-select: none;
}

.v2-stage-block__summary::-webkit-details-marker { display: none; }

.v2-stage-block__tone {
    width: 8px;
    height: 42px;
    border-radius: 999px;
    background: var(--v2-blue);
}

.v2-stage-block--kg .v2-stage-block__tone { background: #7c3aed; }
.v2-stage-block--primary .v2-stage-block__tone { background: #ea580c; }
.v2-stage-block--prep .v2-stage-block__tone { background: #059669; }
.v2-stage-block--secondary .v2-stage-block__tone { background: #2563eb; }

.v2-stage-block--soon {
    opacity: .92;
}

.v2-stage-block--soon .v2-stage-block__tone {
    background: #94a3b8;
}

.v2-stage-block__badge-soon {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #dbe3ee;
}

.v2-level-card--soon {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.v2-level-card--soon .v2-level-card__desc {
    color: #475569;
    font-weight: 700;
    font-size: 16px;
    margin: 8px 0 0;
}

.v2-stage-block__title {
    color: var(--v2-navy);
    font-size: 18px;
    font-weight: 800;
}

.v2-stage-block__hint {
    color: var(--v2-muted);
    font-size: 13px;
    font-weight: 600;
    justify-self: end;
}

.v2-stage-block__chev {
    width: 10px;
    height: 10px;
    border-inline-end: 2px solid #98a2b3;
    border-bottom: 2px solid #98a2b3;
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-inline-start: 4px;
}

.v2-stage-block[open] .v2-stage-block__chev {
    transform: rotate(-135deg);
    margin-top: 6px;
}

.v2-stage-block__body {
    padding: 0 18px 18px;
    border-top: 1px solid #eef2f6;
}

.v2-stage-block__note {
    margin: 14px 0 12px;
    color: #55451f;
    background: #fff8e8;
    border: 1px solid #f0d48a;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.8;
}

.v2-level-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.v2-level-card {
    background: #fbfcfe;
    border: 1px solid #e7ebf1;
    border-radius: 14px;
    padding: 16px;
}

.v2-level-card h3 {
    margin: 0 0 12px;
    color: var(--v2-navy);
    font-size: 16px;
    font-weight: 800;
}

.v2-level-card__desc {
    margin: 0;
    color: var(--v2-muted);
    line-height: 1.8;
    font-size: 14px;
}

.v2-track-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}

.v2-track {
    margin-bottom: 0;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8eef6;
}

.v2-track h4 {
    margin: 0 0 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.v2-price-card--soon {
    position: relative;
    opacity: .88;
    background: #f5f7fa;
    border-color: #d9e0ea;
    box-shadow: none;
}

.v2-price-card__soon-badge {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8edf5;
    color: #5b6b82;
    font-size: 12px;
    font-weight: 800;
}

.v2-price-card__soon-text {
    margin: 0;
    color: #667085;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
}

.v2-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 4px;
}

.v2-chips li {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d9e4f5;
    color: #27364f;
    font-size: 12px;
    font-weight: 700;
}

.v2-hours-line {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eef3ff;
    border: 1px solid #d5e2f6;
    color: #1d438a;
    font-size: 13px;
    line-height: 1.85;
    font-weight: 600;
}

.v2-hours-line--compact {
    margin-top: 12px;
    background: #f8fafc;
    border-color: #e7ebf1;
    color: #344054;
}

.v2-stages__footer {
    margin-top: 26px;
    text-align: center;
}

.v2-stages__footer p {
    margin: 0 0 14px;
    color: #55451f;
    font-weight: 700;
}

/* Pricing SAR primary */
.v2-price-card__sar-main {
    margin: 0;
    color: var(--v2-gold);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
}

.v2-price-card__egp-ref {
    margin: 4px 0 0;
    color: #98a2b3;
    font-size: 13px;
    font-weight: 600;
}

.v2-price-card__amount { display: none; }
.v2-price-card__sar { display: none; }

@media (max-width: 767px) {
    .v2-level-grid {
        grid-template-columns: 1fr;
    }

    .v2-track-cols {
        grid-template-columns: 1fr;
    }

    .v2-stage-block__summary {
        grid-template-columns: 8px 1fr auto;
    }

    .v2-stage-block__hint {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

.v2-stages__footer {
    margin-top: 26px;
    text-align: center;
}

.v2-stages__footer p {
    margin: 0 0 14px;
    color: #55451f;
    font-weight: 700;
}

/* Buttons */
.v2-btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.v2-btn--primary {
    background: var(--v2-navy);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 28, 61, .22);
}

.v2-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
}

.v2-btn--gold {
    background: var(--v2-gold);
    color: #fff;
    box-shadow: 0 10px 24px rgba(232, 163, 23, .28);
}

.v2-btn--gold:hover {
    color: #fff;
    background: var(--v2-gold-hover);
}

.v2-btn--outline {
    background: transparent;
    color: var(--v2-navy);
    border: 1.5px solid var(--v2-navy);
}

.v2-btn--outline:hover {
    background: var(--v2-navy);
    color: #fff;
}

.v2-btn--wa {
    background: #25d366;
    color: #fff;
}

.v2-btn--wa:hover {
    color: #fff;
    background: #1ebe57;
}

/* ===== Comparison ===== */
.v2-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
}

.v2-compare__col {
    padding: 28px 24px;
    border-radius: 18px;
    border: 1px solid var(--v2-line);
    background: #fff;
}

.v2-compare__col--bad {
    background: #fff8f8;
    border-color: #f0d0d0;
}

.v2-compare__col--good {
    background: #f3faf6;
    border-color: #cfe8d8;
    box-shadow: 0 12px 30px rgba(2, 122, 72, .08);
}

.v2-compare__col h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
}

.v2-compare__col--bad h3 { color: var(--v2-red); }
.v2-compare__col--good h3 { color: var(--v2-green); }

.v2-compare__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v2-compare__col li {
    position: relative;
    padding: 11px 0;
    padding-inline-start: 28px;
    border-bottom: 1px solid rgba(0,0,0,.05);
    color: #344054;
    font-size: 14px;
    line-height: 1.7;
}

.v2-compare__col li:last-child { border-bottom: 0; }

.v2-compare__col--bad li::before {
    content: '✕';
    position: absolute;
    inset-inline-start: 0;
    color: var(--v2-red);
    font-weight: 800;
}

.v2-compare__col--good li::before {
    content: '✓';
    position: absolute;
    inset-inline-start: 0;
    color: var(--v2-green);
    font-weight: 800;
}

/* ===== Pricing ===== */
.v2-pricing__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.v2-price-card {
    padding: 28px 18px;
    border-radius: 18px;
    border: 1px solid var(--v2-line);
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 28px rgba(15, 28, 61, .05);
    transition: transform .2s ease, border-color .2s ease;
}

.v2-price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 163, 23, .45);
}

.v2-price-card h3 {
    margin: 0 0 10px;
    color: var(--v2-navy);
    font-size: 17px;
    font-weight: 800;
}

.v2-price-card .v2-price-card__amount {
    margin: 0;
    color: var(--v2-gold);
    font-size: 30px;
    font-weight: 800;
}

.v2-price-card .v2-price-card__amount.is-empty {
    font-size: 16px;
    color: #98a2b3;
    font-weight: 600;
}

.v2-price-card .v2-price-card__detail {
    margin: 8px 0 0;
    color: var(--v2-muted);
    font-size: 13px;
}

.v2-price-card .v2-price-card__sar { display: none; }

.v2-pricing__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 18px;
}

.v2-pricing__badges span {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d9e4f5;
    color: var(--v2-blue);
    font-size: 13px;
    font-weight: 600;
}

.v2-pricing__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ===== Other programs ===== */
.v2-other__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.v2-other-card {
    padding: 32px 28px;
    border-radius: 18px;
    border: 1px solid var(--v2-line);
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 28, 61, .06);
}

.v2-other-card h3 {
    margin: 0 0 10px;
    color: var(--v2-navy);
    font-size: 20px;
    font-weight: 800;
}

.v2-other-card p {
    margin: 0 0 18px;
    color: var(--v2-muted);
    line-height: 1.8;
}

/* ===== Free day CTA ===== */
.v2-free-cta {
    padding: 64px 0;
    background: linear-gradient(135deg, #fff3d1 0%, #eef3ff 55%, #f7f8fb 100%);
}

.v2-free-cta__box {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 28px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--v2-line);
    box-shadow: 0 18px 44px rgba(15, 28, 61, .1);
}

.v2-free-cta__box h2 {
    margin: 0 0 12px;
    color: var(--v2-navy);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
}

.v2-free-cta__box p {
    margin: 0 auto 22px;
    max-width: 640px;
    color: var(--v2-muted);
    line-height: 1.85;
}

.v2-free-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ===== Testimonials restyle (match mockup, kill LMS purple) ===== */
.v2-testimonials-wrap {
    background: #fff !important;
    padding: 56px 0 !important;
}

.v2-testimonials-wrap .section-title {
    color: var(--v2-navy) !important;
    font-weight: 800 !important;
}

.v2-testimonials-wrap .section-description {
    color: var(--v2-muted) !important;
}

.v2-testimonials-wrap .shadow-effect {
    background: #fff !important;
    border: 1px solid var(--v2-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(15, 28, 61, .06) !important;
    height: auto !important;
    min-height: 240px;
    padding: 8px;
}

.v2-testimonials-wrap .instructors-card-info p.font-14 {
    color: #344054 !important;
    font-weight: 600 !important;
    line-height: 1.8 !important;
}

/* Hide leftover LMS blocks after landing content when present */
.home-v2-hide-lms .home-sections.container:has(.blog-grid-card),
.home-v2-hide-lms section.home-sections.container:has(.instructors-swiper-container) {
    display: none !important;
}

@media (max-width: 991px) {
    .v2-card-grid,
    .v2-pricing__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-stages__grid,
    .v2-compare,
    .v2-other__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .v2-card-grid,
    .v2-pricing__grid,
    .v2-stage__subjects {
        grid-template-columns: 1fr;
    }

    .v2-side-door__inner {
        text-align: center;
        justify-content: center;
    }

    .v2-hero .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 360px;
    }

    .v2-hero .hero-cta-button--gold,
    .v2-hero .hero-cta-button--outline {
        text-align: center;
    }

    .hero-section-modern.v2-hero .hero-text-wrapper {
        padding: 56px 0 40px !important;
    }
}
