/* Home page component styles — hero_banner, featured_courses,
   live_course_feature, webinar, stats, faq. Previously these were inline
   <style> blocks pushed into <head> via @push('css'), which fixed an
   earlier bug (SVG icons rendering unstyled/oversized before their CSS
   loaded) but introduced a smaller one: inline <style> content only
   applies once the browser has actually received those bytes as part of
   the streamed HTML document, so on a slow TTFB/large-head page there was
   still a window where the browser could paint before this content had
   arrived. As a real external stylesheet, this is atomic (the browser
   waits for the whole file or doesn't render) and cacheable across
   reloads — both fix the remaining flash in a way inline blocks can't. */

.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin-top: calc(-1 * var(--nav-height, 80px));
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 991px) {
    .hero-banner {
        margin-top: -56px;
    }
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/frontend/default/images/hero-model-banner.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 10, 20, 0.92) 0%, rgba(8, 10, 20, 0.75) 35%, rgba(8, 10, 20, 0.25) 65%, rgba(8, 10, 20, 0.05) 100%);
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-banner-content {
    padding: 60px 0;
}

.hero-banner-title {
    color: #ffffff;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-banner-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: var(--radius-lg, 10px);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background: var(--primary-color);
    color: #000000;
    border: 1px solid var(--primary-color);
}

.btn-hero-primary:hover {
    background: #e8c518;
    color: #000000;
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 56px;
}

.hero-trust-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-trust-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-trust-rating span {
    margin-left: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
}

.hero-trust-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin: 0;
}

.hero-trust-text strong {
    color: #ffffff;
}

@media (max-width: 991px) {
    .hero-banner-bg {
        background-image: url('/assets/frontend/default/images/hero-banner-vertical.webp');
        background-position: top center;
    }

    .hero-banner-overlay {
        background: linear-gradient(180deg, rgba(8, 10, 20, 0.55) 0%, rgba(8, 10, 20, 0.85) 60%, rgba(8, 10, 20, 0.95) 100%);
    }

    .hero-banner-title {
        font-size: 32px;
    }

    .hero-banner-description {
        font-size: 15px;
    }
}

.hero-highlights-wrapper {
    position: relative;
    z-index: 3;
    margin-top: -64px;
}

.hero-highlights {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: stretch;
    padding: 32px 24px;
}

.highlight-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 0 16px;
}

.highlight-card + .highlight-card {
    border-left: 1px solid #edEDf0;
}

.highlight-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 28px;
    height: 28px;
}

.highlight-label {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .hero-highlights-wrapper {
        margin-top: -40px;
    }

    .hero-highlights {
        padding: 24px 16px;
    }

    .highlight-icon {
        width: 48px;
        height: 48px;
    }

    .highlight-icon svg {
        width: 24px;
        height: 24px;
    }

    .highlight-label {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .hero-highlights {
        flex-wrap: wrap;
        row-gap: 20px;
        border-radius: 20px;
    }

    .highlight-card {
        flex: 0 0 50%;
    }

    .highlight-card:nth-child(2n) {
        border-left: 1px solid #edEDf0;
    }

    .highlight-card:nth-child(odd) {
        border-left: none;
    }

    .highlight-card:nth-child(n+3) {
        border-top: 1px solid #edEDf0;
        padding-top: 16px;
    }
}

/* featured_courses */

.featured-courses {
    padding-bottom: 60px;
}

.featured-courses .section-header h1 {
    margin-bottom: 8px;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* webinar / app-showcase */

.app-showcase-section {
    background-color: #020112;
    background-image:
        url(/assets/frontend/default/image/cta-mosaic-overlay.svg),
        linear-gradient(135deg, #171449 0%, #0a0836 40%, #050328 70%, #020112 100%);
    background-repeat: repeat, no-repeat;
    background-position: left top, center;
    background-size: 960px 480px, cover;
    background-attachment: fixed, scroll;
    overflow: hidden;
    padding-top: 160px;
    padding-bottom: 120px;
}

.app-showcase-title {
    color: #ffffff;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

.app-showcase-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 460px;
}

.app-showcase-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: var(--radius-lg, 10px);
    background: var(--primary-color);
    color: #000000;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.app-showcase-btn:hover {
    background: #e8c518;
    color: #000000;
    transform: translateY(-2px);
}

.app-phones-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.app-phone {
    width: 45%;
    max-width: 260px;
    height: auto;
    will-change: transform;
    transition: transform 0.1s linear;
}

.app-phone--up {
    transform: translateY(-30px);
}

.app-phone--down {
    transform: translateY(30px);
}

@media (min-width: 992px) {
    #app-showcase .row {
        flex-wrap: nowrap;
    }
}

@media (max-width: 991px) {
    .app-showcase-section {
        padding-top: 60px;
        padding-bottom: 60px;
        background-size: 480px 240px, cover;
    }

    .app-showcase-title {
        font-size: 28px;
    }

    .app-phone--up,
    .app-phone--down {
        transform: none;
    }
}

/* live_course_feature */

.live-course-features-section {
    padding-bottom: 60px;
}

/* stats */

.stats-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFFCF0 0%, #ffffff 100%);
}

.stats-header {
    max-width: 640px;
    margin: 0 auto 48px;
}

.stats-kicker {
    display: inline-block;
    background: #FFF6D6;
    color: #A8790A;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.stats-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.stats-subtitle {
    font-family: var(--font-primary);
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(255, 218, 28, 0.22);
}

.stat-card-inner {
    background: linear-gradient(135deg, #ffffff 0%, #FFF6D6 25%, #FFEDA8 50%, #FFF6D6 75%, #ffffff 100%);
    border-radius: 19px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stat-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-value {
    font-family: var(--font-primary);
    font-size: 34px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stat-suffix {
    color: #1a1a2e;
    display: inline-flex;
    align-items: center;
}

.stat-suffix--plus svg {
    width: 18px;
    height: 18px;
}

.stat-suffix--rating {
    font-size: 20px;
    font-weight: 600;
    gap: 4px;
}

.rating-slash {
    display: inline-block;
    width: 2px;
    height: 20px;
    background: currentColor;
    transform: rotate(20deg);
    border-radius: 1px;
}

.stat-label {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: rgba(26, 26, 46, 0.7);
    margin: 6px 0 0;
}

@media (max-width: 991px) {
    .stats-section {
        padding: 60px 0;
    }

    .stats-title {
        font-size: 26px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stat-value {
        font-size: 28px;
    }
}

/* faq */

.faq-section {
    padding-bottom: 60px;
}
