/* Cô giáo Emily red-and-white theme overrides. */
:root {
    --primary: #c8102e;
    --secondary: #ef4444;
    --accent: #151515;
    --accent-soft: #fff1f2;
    --leaf: #fecdd3;
    --sunny: #fff7f8;
    --deep-blue: #171717;
    --soft-bg: #fff7f8;
    --mint: #ffe4e6;
    --bee-gold: #c8102e;
    --bee-gold-050: #fff7f8;
    --bee-gold-100: #fff1f2;
    --bee-gold-200: #ffe4e6;
    --bee-gold-300: #fb7185;
    --bee-gold-400: #c8102e;
    --bee-gold-500: #a30d25;
}

body.home-page {
    background:
        linear-gradient(180deg, #ffffff 0%, #fff7f8 42%, #ffffff 100%) !important;
    color: #171717;
}

body.home-page .home-section,
body.home-page .home-learning-hub,
body.home-page .class-section {
    background-color: #ffffff !important;
}

body.home-page .section-kicker,
body.home-page .course-showcase-hero__eyebrow,
body.home-page .class-showcase-card__source-badge,
body.home-page .class-hero-panel__kicker,
body.home-page .site-footer__consultation-kicker,
body.home-page .site-footer__consultation-success-kicker {
    color: #c8102e !important;
    -webkit-text-fill-color: #c8102e !important;
}

body.home-page .btn-primary,
body.home-page .course-showcase-hero__button,
body.home-page .exam-category-pill.is-active,
body.home-page .category-tab.is-active,
body.home-page .course-card .course-action,
body.home-page .class-showcase-card__primary-action,
body.home-page .class-homework-inline__auth-link--primary,
body.home-page .site-footer.site-footer--sunflower .site-footer__cta,
body.home-page .site-footer.site-footer--sunflower .site-footer__consultation-submit,
body.home-page .site-footer.site-footer--sunflower .site-footer__consultation-success-button {
    border-color: #c8102e !important;
    background: linear-gradient(135deg, #e11d48 0%, #c8102e 58%, #8f1024 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(200, 16, 46, 0.22) !important;
}

body.home-page .btn-primary:hover,
body.home-page .btn-primary:focus-visible,
body.home-page .course-showcase-hero__button:hover,
body.home-page .course-showcase-hero__button:focus-visible,
body.home-page .course-card:hover .course-action,
body.home-page .site-footer.site-footer--sunflower .site-footer__cta:hover,
body.home-page .site-footer.site-footer--sunflower .site-footer__cta:focus-visible {
    background: linear-gradient(135deg, #f43f5e 0%, #c8102e 58%, #7f1021 100%) !important;
    box-shadow: 0 18px 34px rgba(200, 16, 46, 0.3) !important;
}

body.home-page .btn-ghost,
body.home-page .course-showcase-hero__button--ghost,
body.home-page .course-showcase-list-all,
body.home-page .category-tab,
body.home-page .exam-category-pill,
body.home-page .site-footer.site-footer--sunflower .site-footer__map-link,
body.home-page .site-footer.site-footer--sunflower a.site-footer__contact-value {
    border-color: rgba(200, 16, 46, 0.18) !important;
    background: #ffffff !important;
    color: #c8102e !important;
    -webkit-text-fill-color: #c8102e !important;
}

body.home-page .btn-ghost:hover,
body.home-page .btn-ghost:focus-visible,
body.home-page .course-showcase-hero__button--ghost:hover,
body.home-page .course-showcase-hero__button--ghost:focus-visible,
body.home-page .course-showcase-list-all:hover,
body.home-page .course-showcase-list-all:focus-visible,
body.home-page .category-tab:hover,
body.home-page .category-tab:focus-visible,
body.home-page .exam-category-pill:hover,
body.home-page .exam-category-pill:focus-visible {
    border-color: rgba(200, 16, 46, 0.42) !important;
    background: #fff1f2 !important;
    color: #9f1239 !important;
    -webkit-text-fill-color: #9f1239 !important;
}

body.home-page .course-progress__bar,
body.home-page .class-hero-stat__bar span,
body.home-page .course-member-leaderboard__progress span,
body.home-page .class-showcase-card__progress-bar span,
body.home-page .exam-card__progress span {
    background: linear-gradient(90deg, #c8102e 0%, #fb7185 100%) !important;
}

body.home-page .class-hero-panel,
body.home-page .class-showcase-card,
body.home-page .course-showcase-hero,
body.home-page .course-card,
body.home-page .blog-card,
body.home-page .home-games-card,
body.home-page .home-exams-card,
body.home-page .site-footer.site-footer--sunflower .site-footer__shell,
body.home-page .site-footer.site-footer--sunflower .site-footer__consultation-panel,
body.home-page .site-footer.site-footer--sunflower .site-footer__consultation-success-dialog {
    border-color: rgba(200, 16, 46, 0.12) !important;
    box-shadow: 0 18px 42px rgba(98, 15, 32, 0.08) !important;
}

body.home-page .class-hero-panel__mark,
body.home-page .course-showcase-list-title__mark,
body.home-page .course-showcase-visual__note-icon,
body.home-page .site-footer.site-footer--sunflower .site-brand-mark,
body.home-page .site-footer.site-footer--sunflower .site-footer__contact-icon,
body.home-page .site-footer.site-footer--sunflower .site-footer__badge {
    background: #fff1f2 !important;
    color: #c8102e !important;
    -webkit-text-fill-color: #c8102e !important;
}

body.home-page .class-showcase-card:hover,
body.home-page .course-card:hover,
body.home-page .blog-card:hover {
    border-color: rgba(200, 16, 46, 0.24) !important;
    box-shadow: 0 24px 48px rgba(98, 15, 32, 0.12) !important;
}

body.home-page .blog-card .blog-link,
body.home-page .home-gallery__link,
body.home-page .site-footer.site-footer--sunflower .site-footer__nav-link:hover,
body.home-page .site-footer.site-footer--sunflower .site-footer__nav-link:focus-visible,
body.home-page .site-footer.site-footer--sunflower a.site-footer__contact-value:hover,
body.home-page .site-footer.site-footer--sunflower a.site-footer__contact-value:focus-visible {
    color: #c8102e !important;
    -webkit-text-fill-color: #c8102e !important;
}

body.home-page .slider-dot.active,
body.home-page .back-to-top {
    background: #c8102e !important;
    color: #ffffff !important;
}

/* Course Card Redesign */
body.home-page .course-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

body.home-page .course-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 22px 35px rgba(98, 15, 32, 0.15) !important;
    border-color: rgba(200, 16, 46, 0.3) !important;
}

body.home-page .course-card .course-body {
    padding: 1.35rem 1.35rem 1.25rem !important;
    gap: 0.7rem !important;
}

body.home-page .course-category-tag {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(200, 16, 46, 0.08) !important;
    color: #c8102e !important;
    -webkit-text-fill-color: #c8102e !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.22rem 0.65rem !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
}

body.home-page .course-card .course-title {
    font-size: 1.22rem !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    margin-bottom: 0.1rem !important;
    line-height: 1.35 !important;
}

body.home-page .course-card .course-meta-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.8rem !important;
    margin: 0 0 0.4rem 0 !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}

body.home-page .course-card .course-meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

body.home-page .course-card .course-meta-icon {
    width: 0.88rem !important;
    height: 0.88rem !important;
    stroke: #94a3b8 !important;
    flex-shrink: 0 !important;
}

body.home-page .home-courses .course-progress {
    margin-top: auto !important;
    padding-top: 0.75rem !important;
    border-top: 1px dashed rgba(200, 16, 46, 0.1) !important;
    gap: 0.45rem !important;
}

body.home-page .home-courses .course-progress__label {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #c8102e !important;
    -webkit-text-fill-color: #c8102e !important;
    margin-bottom: 0.15rem !important;
}

body.home-page .home-courses .course-progress__track {
    height: 6px !important;
    background: #f1f5f9 !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.home-page .course-card .course-action {
    width: 100% !important;
    min-height: 2.6rem !important;
    padding: 0.6rem 1.2rem !important;
    justify-content: center !important;
    border-radius: 12px !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.12) !important;
    margin-top: 0.4rem !important;
}

body.home-page .course-card .course-action:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.24) !important;
}
