/**
 * Homepage UI v2 — premium academy layout (content unchanged)
 * Brand: #5786c7 | Clean white canvas, no section band splits
 */

body.is-home-page:not(.dark),
body.is-home-page:not(.dark) #app,
body.is-home-page:not(.dark) .main-content,
body.is-home-page:not(.dark) main {
    background: #ffffff !important;
    background-image: none !important;
}

/* Hide animated page backdrop — seamless white */
body.is-home-page:not(.dark) .premium-pupil-bg,
body.is-home-page:not(.dark) .premium-pupil-bg--aurora,
body.is-home-page:not(.dark) .premium-pupil-bg--mesh,
body.is-home-page:not(.dark) .premium-pupil-bg--speckles,
body.is-home-page:not(.dark) .premium-pupil-bg--grid,
body.is-home-page:not(.dark) .premium-pupil-bg--orbs,
body.is-home-page:not(.dark) .premium-pupil-bg--glitter,
body.is-home-page:not(.dark) .premium-home-bg-accent,
body.is-home-page:not(.dark) .premium-home-bg-accent__layer {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body.is-home-page:not(.dark) {
    color: #0f2044;
}

/* ── Unified white sections (no cream/navy/sky bands) — exclude blue CTA banner ── */
body.is-home-page:not(.dark) .home-sections:not(.premium-home-conversion-banner),
body.is-home-page:not(.dark) .section-premium,
body.is-home-page:not(.dark) .section-premium.section-skin-cream,
body.is-home-page:not(.dark) .section-premium.section-skin-navy,
body.is-home-page:not(.dark) .section-premium.section-skin-deep-green,
body.is-home-page:not(.dark) .section-premium.section-skin-sky-light,
body.is-home-page:not(.dark) .premium-features-section,
body.is-home-page:not(.dark) .premium-latest-section,
body.is-home-page:not(.dark) .premium-bento-section,
body.is-home-page:not(.dark) .premium-testimonials-section,
body.is-home-page:not(.dark) .premium-instructors-section,
body.is-home-page:not(.dark) .premium-products-home-section,
body.is-home-page:not(.dark) .premium-flagship-diploma,
body.is-home-page:not(.dark) .premium-graduate-videos-section,
body.is-home-page:not(.dark) .premium-home-strip--testimonials,
body.is-home-page:not(.dark) .mmw-xp {
    background: #ffffff !important;
    background-image: none !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Keep bottom CTA banner blue (#5786c7) — see end of file for full override */
body.is-home-page .premium-section-curve {
    display: none !important;
}

body.is-home-page:not(.dark) .mmw-xp,
body.is-home-page:not(.dark) .mmw-xp__ambient {
    --mmw-bg: #ffffff;
    background-color: #ffffff !important;
}

body.is-home-page:not(.dark) .premium-hero-ref__stats {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Hero — full viewport width */
body.is-home-page .premium-hero-banner-mock--ref-layout {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 0 !important;
}

body.is-home-page .premium-hero-ref__outer {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 0 !important;
}

body.is-home-page .premium-hero-ref__body {
    max-width: none !important;
    width: 100% !important;
    padding-inline: clamp(1rem, 4vw, 2.5rem) !important;
}

body.is-home-page .premium-hero-ref__stats {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    border-radius: 0 !important;
}

/* ── Section rhythm ── */
body.is-home-page .home-sections.section-premium {
    padding-block: clamp(2.75rem, 5.5vw, 4.25rem) !important;
}

body.is-home-page:not(.dark) .section-premium.section-skin-cream {
    background: #ffffff !important;
    border-block: none !important;
}

/* ── لماذا تختارنا — RTL header on the right ── */
body.is-home-page .premium-features-section__intro {
    width: 100%;
    text-align: right !important;
    direction: rtl;
}

body.is-home-page .premium-features-section__eyebrow {
    text-align: right !important;
    color: rgba(87, 134, 199, 0.85) !important;
}

body.is-home-page .premium-features-section__title {
    display: block !important;
    width: 100%;
    text-align: right !important;
    direction: rtl;
}

body.is-home-page .premium-features-section__title::after,
body.is-home-page .home-sections .premium-features-section__title.section-title::after {
    left: auto !important;
    right: 0 !important;
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
}

body.is-home-page .section-title,
body.is-home-page .premium-latest-title,
body.is-home-page .premium-features-section__title {
    color: #0b2d6b;
    letter-spacing: -0.02em;
}

body.is-home-page .premium-latest-title::after,
body.is-home-page .premium-features-section__title::after {
    background: linear-gradient(90deg, rgba(87, 134, 199, 0.25), #5786c7 45%, rgba(87, 134, 199, 0.2)) !important;
}

body.is-home-page .premium-latest-eyebrow,
body.is-home-page .premium-features-section__eyebrow {
    color: rgba(87, 134, 199, 0.85) !important;
    font-weight: 700;
}

/* ── Course cards ── */
body.is-home-page .premium-mock-course-card {
    border-radius: 20px !important;
    border: 1px solid rgba(87, 134, 199, 0.1) !important;
    background: #ffffff !important;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.95) inset,
        0 14px 36px rgba(87, 134, 199, 0.08) !important;
}

body.is-home-page .premium-course-card-shell:hover .premium-mock-course-card {
    border-color: rgba(87, 134, 199, 0.22) !important;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 1) inset,
        0 28px 56px rgba(87, 134, 199, 0.14) !important;
}

body.is-home-page .premium-mock-course-card__image-wrap {
    border-radius: 20px 20px 0 0;
    aspect-ratio: 16 / 10;
}

body.is-home-page .premium-mock-course-card__body {
    padding: 1.1rem 1.15rem 1.2rem !important;
}

body.is-home-page .premium-mock-course-card__title {
    font-size: clamp(0.92rem, 1.5vw, 1rem);
    font-weight: 800;
    color: #0b2d6b;
    line-height: 1.45;
}

body.is-home-page .premium-mock-course-card__stars .fa-star {
    color: #5786c7 !important;
}

body.is-home-page .premium-mock-course-card__level-badge {
    background: rgba(87, 134, 199, 0.1) !important;
    color: #466aa8 !important;
    border: 1px solid rgba(87, 134, 199, 0.16);
    border-radius: 999px;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
}

body.is-home-page .premium-latest-cta {
    border-radius: 999px !important;
    border-color: rgba(87, 134, 199, 0.28) !important;
    color: #0b2d6b !important;
    background: #ffffff !important;
}

body.is-home-page .premium-latest-cta:hover {
    border-color: #5786c7 !important;
    background: rgba(87, 134, 199, 0.06) !important;
}

body.is-home-page .premium-latest-classes-swiper .swiper-button-prev,
body.is-home-page .premium-latest-classes-swiper .swiper-button-next {
    border-radius: 14px !important;
    border: 1px solid rgba(87, 134, 199, 0.16) !important;
    background: #ffffff !important;
    color: #5786c7 !important;
    box-shadow: 0 8px 20px rgba(87, 134, 199, 0.1);
}

/* ── Feature section cards ── */
body.is-home-page .premium-feature-glass {
    border-radius: 20px !important;
    border: 1px solid rgba(87, 134, 199, 0.1) !important;
    background: #ffffff !important;
    box-shadow: 0 12px 32px rgba(87, 134, 199, 0.07) !important;
    padding: 1.35rem 1.25rem !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.is-home-page .premium-feature-glass:hover {
    transform: translateY(-4px);
    border-color: rgba(87, 134, 199, 0.2) !important;
    box-shadow: 0 20px 44px rgba(87, 134, 199, 0.12) !important;
}

body.is-home-page .premium-feature-icon {
    border-radius: 14px !important;
}

body.is-home-page .premium-feature-icon--blue {
    background: rgba(87, 134, 199, 0.12) !important;
    color: #5786c7 !important;
}

body.is-home-page .premium-feature-spotlight {
    border-radius: 22px !important;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(87, 134, 199, 0.12) !important;
}

body.is-home-page .btn-premium-spotlight {
    border-radius: 999px !important;
    background: linear-gradient(135deg, #5786c7, #466aa8) !important;
    border: none !important;
    box-shadow: 0 10px 24px rgba(87, 134, 199, 0.3);
}

/* ── Bento / testimonials spacing ── */
body.is-home-page .premium-bento-section,
body.is-home-page .premium-testimonials-section,
body.is-home-page .premium-instructors-section,
body.is-home-page .premium-products-home-section {
    padding-block: clamp(2.5rem, 5vw, 4rem) !important;
}

@media (max-width: 767.98px) {
    body.is-home-page .home-sections.section-premium {
        padding-block: clamp(2rem, 8vw, 2.75rem) !important;
    }

    body.is-home-page .premium-mock-course-card__body {
        padding: 0.95rem 1rem 1.05rem !important;
    }

    body.is-home-page .premium-latest-classes-swiper .swiper-button-prev,
    body.is-home-page .premium-latest-classes-swiper .swiper-button-next {
        display: none;
    }
}

/* ── Bottom CTA banner — restore blue (#5786c7), must beat .home-sections white rules ── */
body.is-home-page:not(.dark) section.home-sections.premium-home-conversion-banner,
body.is-home-page:not(.dark) .home-sections.premium-home-conversion-banner,
body.is-home-page:not(.dark) .premium-home-conversion-banner {
    position: relative;
    overflow: hidden;
    margin-inline: clamp(10px, 2vw, 18px) !important;
    margin-top: clamp(0.82rem, 2.38vw, 1.58rem) !important;
    margin-bottom: clamp(0.4rem, 1.53vw, 0.82rem) !important;
    border-radius: clamp(18px, 2.3vw, 26px) !important;
    background-color: #5786c7 !important;
    background-image: linear-gradient(158deg, #6b98d6 0%, #5786c7 42%, #4575b8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 28px 70px rgba(20, 45, 95, 0.28) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.is-home-page .home-sections.premium-home-conversion-banner::before {
    display: none !important;
    content: none !important;
}

body.is-home-page .premium-home-conversion-banner__title {
    color: #ffffff !important;
}

body.is-home-page .premium-home-conversion-banner__hint {
    color: rgba(255, 255, 255, 0.88) !important;
}
