/* Spark home page: spacing, motion and glow for the sections below the hero. Scoped to .landing-spark only. */

.landing-spark {
    --spark-night: #010819;
    --spark-navy: #05296a;
    --spark-electric: #0a47b8;
    --spark-sky: #4fb4ff;
    --spark-ice: #9fe2ff;
}

/* Sections breathe */
.landing-spark .trending-categories-section {
    padding: 96px 0 40px;
}

.landing-spark .multi-tab-courses-section {
    margin-top: 56px;
}

.landing-spark .features-4x-section {
    margin-top: 96px;
}

.landing-spark .full-width-bar-cta-section {
    margin-top: 40px;
    margin-bottom: 96px;
}

/* Section titles get a spark underline */
.landing-spark .trending-categories-section h2,
.landing-spark .multi-tab-courses-section h2,
.landing-spark .features-4x-section h2 {
    position: relative;
    letter-spacing: -.01em;
}

.landing-spark .trending-categories-section h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--spark-electric), var(--spark-sky));
}

/* Category tiles: lift, glow and a sliding arrow */
.landing-spark .trending-categories-section__item-card > .position-relative {
    border: 1px solid rgba(10, 71, 184, .10);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.landing-spark .trending-categories-section a:hover .trending-categories-section__item-card > .position-relative {
    transform: translateY(-6px);
    border-color: rgba(79, 180, 255, .65);
    box-shadow: 0 18px 40px rgba(10, 71, 184, .18), 0 0 0 4px rgba(79, 180, 255, .12);
}

.landing-spark .trending-categories-section__item-card h4 {
    font-size: 18px;
    line-height: 1.35;
}

/* Course cards react to the pointer */
.landing-spark .multi-tab-courses-section .course-grid-card-1,
.landing-spark .multi-tab-courses-section [class*="grid-card"] {
    transition: transform .25s ease, box-shadow .25s ease;
}

.landing-spark .multi-tab-courses-section [class*="grid-card"]:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(5, 41, 106, .18);
}

/* Feature cards */
.landing-spark .features-4x-section__card-item {
    transition: transform .25s ease, box-shadow .25s ease;
}

.landing-spark .features-4x-section__card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(5, 41, 106, .16);
}

/* Closing call to action: same night sky as the hero */
.landing-spark .full-width-bar-cta-section {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(600px 260px at 90% 0%, rgba(79, 180, 255, .35), transparent 65%),
        linear-gradient(120deg, #010819 0%, #05296a 100%) !important;
    box-shadow: 0 24px 60px rgba(5, 41, 106, .35);
}

.landing-spark .full-width-bar-cta-section .bg-info {
    background: linear-gradient(135deg, #0a47b8, #4fb4ff) !important;
    box-shadow: 0 0 0 8px rgba(79, 180, 255, .15);
}

/* Reveal on scroll (added by the script below, so the page still works without it) */
.landing-spark .js-spark-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

.landing-spark .js-spark-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 991.98px) {
    .landing-spark .trending-categories-section {
        padding-top: 64px;
    }

    .landing-spark .features-4x-section {
        margin-top: 64px;
    }

    .landing-spark .full-width-bar-cta-section {
        margin-bottom: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-spark .js-spark-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .landing-spark * {
        transition: none !important;
    }
}
