@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,100..900&display=swap");
/* ============================================================
   class-showcase-card.is-expanded — Flat / minimalist UX layer
   Loads after editorial-apiary.css + class-layout2.css to win
   the cascade. Touches only .is-expanded so collapsed cards
   keep their existing visual.
   ============================================================ */

body.home-page .class-showcase-card.is-expanded {
    --csc-brand: #108138;
    --csc-accent: var(--csc-brand);
    --csc-accent-soft: color-mix(in srgb, var(--csc-accent) 12%, #ffffff);
    --csc-accent-ink: color-mix(in srgb, var(--csc-accent) 78%, #000000);
    --csc-bg: #ffffff;
    --csc-bg-soft: #f7f8fa;
    --csc-bg-softer: #fafbfc;
    --csc-border: rgba(15, 23, 42, 0.08);
    --csc-border-strong: rgba(15, 23, 42, 0.14);
    --csc-text: #111418;
    --csc-text-soft: #4b5260;
    --csc-text-muted: #6b7280;
    --csc-radius-sm: 10px;
    --csc-radius: 14px;
    --csc-radius-lg: 18px;
    --csc-shadow-flat: 0 1px 0 rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.05);

    background: var(--csc-bg) !important;
    border: 1px solid var(--csc-border) !important;
    border-radius: var(--csc-radius-lg) !important;
    box-shadow: var(--csc-shadow-flat) !important;
    padding: clamp(1rem, 1.6vw, 1.4rem) !important;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr) !important;
    gap: clamp(1rem, 2vw, 1.5rem) !important;
    overflow: visible !important;
}

body.home-page .class-showcase-card.is-expanded:has(> .class-showcase-card__class-options-slot) {
    grid-template-areas:
        "class-options class-options"
        "lead content" !important;
    align-items: start !important;
}

body.home-page .class-showcase-card.is-expanded:has(> .class-showcase-card__class-options-slot) > .class-showcase-card__class-options-slot {
    grid-area: class-options;
}

body.home-page .class-showcase-card.is-expanded:has(> .class-showcase-card__class-options-slot) > .class-showcase-card__lead {
    grid-area: lead;
}

body.home-page .class-showcase-card.is-expanded:has(> .class-showcase-card__class-options-slot) > .class-showcase-card__content {
    grid-area: content;
}

body.home-page .class-grid[data-class-switcher-grid] .class-showcase-card,
body.home-page .class-grid[data-class-switcher-grid] .class-showcase-card *,
body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card,
body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card * {
    transition: none !important;
    animation: none !important;
}

body.home-page .class-showcase-card.is-expanded::before,
body.home-page .class-showcase-card.is-expanded::after {
    content: none !important;
}

body.home-page .class-grid[data-class-switcher-grid] > .class-showcase-card.is-collapsed {
    display: none !important;
}

body.home-page .class-showcase-card.is-collapsed .class-showcase-card__function-nav,
body.home-page .class-showcase-card.is-collapsed .class-showcase-card__class-options-slot,
body.home-page .class-showcase-card.is-collapsed .class-showcase-card__detail-shell,
body.home-page .class-showcase-card.is-collapsed .class-showcase-card__leaderboard {
    display: none !important;
}

/* --- Lead column ----------------------------------------------------- */
body.home-page .class-showcase-card.is-expanded .class-showcase-card__lead {
    display: grid;
    align-content: start;
    gap: 0.85rem;
}

/* Media: flat, no gradient overlay */
body.home-page .class-showcase-card.is-expanded .class-showcase-card__media {
    order: 1;
    border-radius: var(--csc-radius);
    border: 1px solid var(--csc-border);
    background: var(--csc-bg-soft);
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__media::after {
    content: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__badge {
    background: rgba(255, 255, 255, 0.96);
    color: var(--csc-text);
    border: 1px solid var(--csc-border);
    box-shadow: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__lead > .class-showcase-card__leaderboard {
    display: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-nav {
    order: 2;
    display: grid;
    gap: 0.55rem;
    padding: 0.65rem;
    border: 1px solid var(--csc-border);
    border-radius: var(--csc-radius);
    background: var(--csc-bg-soft);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-btn {
    width: 100%;
    min-height: 3.85rem;
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--csc-text-soft);
    font-family: 'Google Sans Flex';
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-btn:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-btn:focus-visible {
    background: var(--csc-bg);
    border-color: var(--csc-border-strong);
    color: var(--csc-text);
    outline: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-btn.is-active {
    background: var(--csc-brand);
    border-color: var(--csc-brand);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(16, 129, 56, 0.24);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-btn.is-active .class-showcase-card__function-copy small {
    color: rgba(255, 255, 255, 0.85);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-icon {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(16, 129, 56, 0.09);
    color: var(--csc-accent);
    font-size: 0.72rem;
    font-weight: 800;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-icon svg {
    width: 1.12rem;
    height: 1.12rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-btn.is-active .class-showcase-card__function-icon {
    background: #ffffff !important;
    color: var(--csc-accent) !important;
    -webkit-text-fill-color: var(--csc-accent) !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-btn.is-active .class-showcase-card__function-icon svg,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-btn.is-active .class-showcase-card__function-icon svg * {
    color: var(--csc-accent) !important;
    -webkit-text-fill-color: var(--csc-accent) !important;
    stroke: currentColor !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-copy strong {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: inherit;
    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 800;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-badge {
    min-width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 0.38rem;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-badge.is-empty {
    background: rgba(15, 23, 42, 0.16);
    color: var(--csc-text-muted);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-btn.is-active .class-showcase-card__function-badge {
    background: #ffffff !important;
    color: var(--csc-brand) !important;
    -webkit-text-fill-color: var(--csc-brand) !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-btn.is-active .class-showcase-card__function-badge.is-empty {
    color: var(--csc-accent) !important;
    -webkit-text-fill-color: var(--csc-accent) !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-copy small {
    color: var(--csc-text-muted);
    font-size: 0.74rem;
    line-height: 1.35;
    font-weight: 600;
}

/* --- Leaderboard ---------------------------------------------------- */
body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard {
    background: var(--csc-bg-soft) !important;
    border: 1px solid var(--csc-border) !important;
    border-radius: var(--csc-radius) !important;
    padding: 0.95rem !important;
    box-shadow: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-head {
    margin-bottom: 0.7rem;
    align-items: center;
    gap: 0.5rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-head h4 {
    margin: 0;
    color: var(--csc-text);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-head span {
    background: var(--csc-bg);
    color: var(--csc-accent-ink);
    border: 1px solid var(--csc-border);
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-note {
    background: var(--csc-bg);
    color: var(--csc-text-soft);
    border: 1px solid var(--csc-border);
    border-radius: var(--csc-radius-sm);
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-list {
    display: grid;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.6rem;
    background: var(--csc-bg);
    border: 1px solid var(--csc-border);
    border-radius: var(--csc-radius-sm);
    padding: 0.5rem 0.7rem;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-item.is-me {
    background: var(--csc-accent-soft);
    border-color: var(--csc-accent);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-item.is-top-1 {
    border-color: #f4b400;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-rank {
    width: 1.6rem;
    height: 1.6rem;
    background: var(--csc-bg-soft);
    color: var(--csc-text);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-item.is-top-1 .class-showcase-card__leaderboard-rank {
    background: linear-gradient(135deg, #ffd84d 0%, #f4b400 100%);
    color: #1a1308;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-item.is-top:not(.is-top-1) .class-showcase-card__leaderboard-rank {
    background: var(--csc-bg);
    color: var(--csc-accent-ink);
    border: 1px solid var(--csc-border-strong);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-name {
    color: var(--csc-text);
    font-weight: 600;
    font-size: 0.92rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-score {
    color: var(--csc-accent-ink);
    font-weight: 700;
    font-size: 0.92rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-empty,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-foot {
    color: var(--csc-text-muted);
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}

/* Badge progress */
body.home-page .class-showcase-card.is-expanded .class-showcase-card__badge-progress {
    background: var(--csc-bg) !important;
    border: 1px solid var(--csc-border) !important;
    border-radius: var(--csc-radius-sm) !important;
    padding: 0.7rem 0.85rem !important;
    box-shadow: none !important;
    margin-bottom: 0.65rem !important;
    gap: 0.7rem !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__badge-progress-thumb {
    background: var(--csc-bg-soft);
    border: 1px solid var(--csc-border);
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__badge-progress-title strong {
    color: var(--csc-text);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__badge-progress-title em {
    color: var(--csc-text-muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 600;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__badge-progress-track {
    background: rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    overflow: hidden;
    height: 6px;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__badge-progress-track > span {
    background: var(--csc-accent);
    border-radius: 999px;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__badge-progress-pin {
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__badge-progress-pin.is-claimed,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__badge-progress-pin.is-next {
    background: transparent;
    border: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__badge-progress-caption {
    color: var(--csc-text-muted);
    font-size: 0.78rem;
    font-style: normal;
}

/* --- Homework inline panel ------------------------------------------ */
body.home-page .class-showcase-card.is-expanded .class-homework-inline {
    background: var(--csc-bg) !important;
    border: 1px solid var(--csc-border) !important;
    border-radius: var(--csc-radius) !important;
    padding: 1rem !important;
    box-shadow: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__head {
    gap: 0.35rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--csc-border);
    margin-bottom: 0.85rem;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__head h4 {
    margin: 0;
    color: var(--csc-text);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__head p {
    margin: 0;
    color: var(--csc-text-muted);
    font-size: 0.82rem;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__eyebrow {
    background: var(--csc-bg-soft);
    color: var(--csc-text-soft);
    border: 1px solid var(--csc-border);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: none;
    width: fit-content;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__tabs {
    background: var(--csc-bg-soft);
    border: 1px solid var(--csc-border);
    border-radius: 999px;
    padding: 0.25rem;
    gap: 0.2rem;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__tab {
    background: transparent;
    color: var(--csc-text-soft);
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__tab:hover {
    color: var(--csc-text);
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__tab.is-active {
    background: var(--csc-bg);
    color: var(--csc-text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__tab-count {
    min-width: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
    color: currentColor;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 700;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__picker {
    background: var(--csc-bg-softer);
    border: 1px dashed var(--csc-border-strong);
    border-radius: var(--csc-radius);
    color: var(--csc-text);
    box-shadow: none;
    padding: 1rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__picker:hover,
body.home-page .class-showcase-card.is-expanded .class-homework-inline__picker:focus-visible {
    background: var(--csc-accent-soft);
    border-color: var(--csc-accent);
    outline: none;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__picker-icon {
    background: var(--csc-bg);
    color: var(--csc-accent-ink);
    border: 1px solid var(--csc-border);
    box-shadow: none;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    font-weight: 700;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__picker-copy strong {
    color: var(--csc-text);
    font-weight: 700;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__picker-copy span {
    color: var(--csc-text-muted);
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__file {
    background: var(--csc-bg-soft);
    border: 1px solid var(--csc-border);
    border-radius: var(--csc-radius-sm);
    padding: 0.7rem 0.9rem;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__remove {
    background: transparent;
    color: var(--csc-text-muted);
    border: 1px solid var(--csc-border-strong);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__remove:hover {
    background: #fff5f5;
    border-color: #ef4444;
    color: #ef4444;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__label {
    color: var(--csc-text-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__note-field textarea {
    background: var(--csc-bg);
    border: 1px solid var(--csc-border-strong);
    border-radius: var(--csc-radius-sm);
    color: var(--csc-text);
    padding: 0.7rem 0.85rem;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__note-field textarea:focus {
    outline: none;
    border-color: var(--csc-accent);
    box-shadow: 0 0 0 3px var(--csc-accent-soft);
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__constraints,
body.home-page .class-showcase-card.is-expanded .class-homework-inline__feedback {
    color: var(--csc-text-muted);
    font-size: 0.82rem;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__progress-track {
    background: rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__progress-fill {
    background: var(--csc-accent);
    border-radius: 999px;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__submit {
    background: var(--csc-accent) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 0.75rem 1.2rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    transition: background 0.15s ease, transform 0.15s ease;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__submit:hover,
body.home-page .class-showcase-card.is-expanded .class-homework-inline__submit:focus-visible {
    background: var(--csc-accent-ink) !important;
    transform: translateY(-1px);
    outline: none;
}

body.home-page .class-showcase-card.is-expanded .class-homework-inline__submit:disabled {
    background: var(--csc-bg-soft) !important;
    color: var(--csc-text-muted) !important;
    cursor: not-allowed;
    transform: none;
}

/* --- Content column ------------------------------------------------- */
body.home-page .class-showcase-card.is-expanded .class-showcase-card__content {
    gap: 0.95rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12.5rem, 18rem);
    align-items: start;
    gap: 1rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__hero-copy {
    min-width: 0;
    display: grid;
    gap: 0.72rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__eyebrow-row {
    margin-bottom: -0.25rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__eyebrow {
    background: var(--csc-bg-soft);
    color: var(--csc-text-soft);
    border: 1px solid var(--csc-border);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__title {
    margin: 0;
    color: var(--csc-text);
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__user-card {
    justify-self: end;
    width: min(100%, 18rem);
    min-height: 4.4rem;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.78rem;
    border: 1px solid var(--csc-border);
    border-radius: var(--csc-radius-sm);
    background: linear-gradient(180deg, #ffffff 0%, var(--csc-bg-soft) 100%);
    color: var(--csc-text);
    text-decoration: none;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__user-card:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__user-card:focus-visible {
    border-color: color-mix(in srgb, var(--csc-accent) 34%, var(--csc-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--csc-accent) 10%, transparent);
    outline: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__user-avatar {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--csc-accent) 26%, var(--csc-border));
    background: var(--csc-accent-soft);
    color: var(--csc-accent-ink);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__user-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__user-copy {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__user-copy span {
    color: var(--csc-text-muted);
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 700;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__user-copy strong {
    min-width: 0;
    overflow: hidden;
    color: var(--csc-text);
    font-size: 0.98rem;
    line-height: 1.2;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__class-options-slot {
    min-width: 0;
    display: grid;
    gap: 0.62rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--csc-border);
    border-radius: 10px;
    background: var(--csc-bg-soft);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__class-options-slot:not(:has(.class-section__class-switcher)) {
    display: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__class-options-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--csc-text-muted);
    font-size: 0.75rem;
    line-height: 1.3;
    font-weight: 800;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__class-options-head span,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__class-options-head small {
    font: inherit;
    letter-spacing: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__class-options-head small {
    flex: 0 0 auto;
    color: var(--csc-text-soft);
}

body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    align-items: stretch;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}

body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card .class-section__class-tab {
    position: relative;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.62rem;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 3.65rem;
    padding: 0.5rem 0.62rem;
    border: 1px solid var(--csc-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--csc-text);
    box-shadow: none;
    text-decoration: none;
    transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card .class-section__class-tab:hover,
body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card .class-section__class-tab:focus-visible {
    border-color: color-mix(in srgb, var(--csc-accent) 36%, var(--csc-border));
    background: #ffffff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--csc-accent) 12%, transparent);
    outline: none;
    transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card .class-section__class-tab.is-active {
    padding-right: 2.2rem;
    border-color: color-mix(in srgb, var(--csc-accent) 46%, var(--csc-border));
    background: color-mix(in srgb, var(--csc-accent) 8%, #ffffff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--csc-accent) 16%, transparent);
}

body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card .class-section__class-tab.is-active::after {
    content: "\2713";
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 1.15rem;
    height: 1.15rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--csc-accent);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
}

body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card .class-section__class-tab-thumb {
    width: 3rem;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    border: 1px solid var(--csc-border);
    background: #eef2f0;
    overflow: hidden;
}

body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card .class-section__class-tab-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card .class-section__class-tab-copy {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card .class-section__class-tab-label {
    color: var(--csc-text-muted);
    font-size: 0.68rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card .class-section__class-tab-title {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: var(--csc-text);
    font-size: 0.88rem;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__summary {
    margin: 0;
    color: var(--csc-text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__detail-shell {
    display: grid;
    min-width: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__stats,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__footer {
    display: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 0.9rem;
    padding: clamp(0.95rem, 1.3vw, 1.15rem);
    border: 1px solid var(--csc-border);
    border-radius: var(--csc-radius);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[hidden] {
    display: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-head {
    display: grid;
    gap: 0.28rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--csc-border);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-head span {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: var(--csc-accent-soft);
    color: var(--csc-accent-ink);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-head h4 {
    margin: 0;
    color: var(--csc-text);
    font-size: clamp(1.05rem, 1.45vw, 1.3rem);
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-head p,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-empty {
    margin: 0;
    color: var(--csc-text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-empty {
    padding: 0.9rem 1rem;
    border: 1px dashed var(--csc-border-strong);
    border-radius: var(--csc-radius-sm);
    background: var(--csc-bg-soft);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(0.9rem, 1.4vw, 1.2rem);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-showcase-card__notes.class-notes-panel {
    grid-area: auto !important;
    justify-self: stretch;
    align-self: stretch;
    display: grid;
    width: 100%;
    max-width: none;
    margin: 0;
    gap: clamp(0.9rem, 1.4vw, 1.15rem);
    padding: clamp(0.95rem, 1.5vw, 1.25rem) !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-showcase-card__notes-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    margin: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-showcase-card__notes-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-title {
    font-size: clamp(1rem, 1.3vw, 1.12rem);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-tab-btn {
    width: auto;
    min-width: min(100%, 13.5rem);
    min-height: 2.8rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-tab-panels,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-tab-panel {
    min-width: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-tab-panel {
    gap: 0.8rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-filters {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.6rem 0.86rem 0.6rem 1rem !important;
    border: 1px solid rgba(52, 177, 147, 0.18) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #17342b !important;
    -webkit-text-fill-color: #17342b !important;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-filter-btn:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-filter-btn:focus-visible {
    border-color: rgba(13, 122, 60, 0.36) !important;
    background: #ffffff !important;
    color: #17342b !important;
    -webkit-text-fill-color: #17342b !important;
    transform: translateY(-1px);
    outline: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-filter-btn.is-active,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-filter-btn.is-active:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-filter-btn.is-active:focus-visible {
    border-color: #08723a !important;
    background: linear-gradient(135deg, #0d7a3c 0%, #149c64 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(13, 122, 60, 0.22) !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.36rem;
    border: 1px solid rgba(18, 95, 68, 0.08);
    border-radius: 999px;
    background: #e9eef1;
    color: #385066;
    -webkit-text-fill-color: #385066;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-filter-btn.is-active .class-notes-filter-count {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-scroll {
    max-height: min(32rem, 60vh);
    padding-right: 0.35rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-list {
    --notes-timeline-pad: clamp(1.55rem, 2.2vw, 2rem);
    --notes-timeline-x: 0.54rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0.2rem 0 0.2rem var(--notes-timeline-pad);
    position: relative;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-list::before {
    content: '';
    position: absolute;
    left: var(--notes-timeline-x);
    top: 0.46rem;
    bottom: 0.46rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(15, 116, 54, 0.42), rgba(235, 191, 44, 0.34));
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
    min-height: 0;
    padding: 0 0 1.05rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-list li:last-child {
    padding-bottom: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-marker {
    display: block;
    position: absolute;
    left: calc(var(--notes-timeline-x) - var(--notes-timeline-pad));
    top: 1.05rem;
    width: 0.78rem;
    height: 0.78rem;
    min-height: 0;
    border-radius: 999px;
    background: #0f7436;
    box-shadow:
        0 0 0 5px #fffdf8,
        0 0 0 7px rgba(15, 116, 54, 0.14);
    transform: translate(-50%, -50%);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-content {
    gap: 0.35rem;
    padding-bottom: 1.05rem;
    border-bottom: 1px solid rgba(19, 19, 19, 0.07);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-note-tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    line-height: 1;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-list li:last-child .class-notes-content {
    padding-bottom: 0;
    border-bottom: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-note-sticker-gift {
    margin-top: 0.28rem;
}

@media (max-width: 760px) {
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-showcase-card__notes-headline {
        align-items: flex-start;
        flex-direction: column;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-tab-btn,
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-filters {
        width: 100%;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-filter-btn {
        flex: 1 1 0;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='notes'] .class-notes-scroll {
        max-height: min(28rem, 62vh);
        padding-right: 0.15rem;
    }
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-slot {
    display: grid;
    min-width: 0;
}

/* Course tabs inside the expanded class card */
body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tabs {
    min-width: 0;
    display: grid;
    gap: 0.8rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tabs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tabs-head > div {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tabs-head span:first-child,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel-kicker {
    color: var(--csc-text-muted);
    font-size: 0.72rem;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tabs-head h5 {
    margin: 0;
    color: var(--csc-text);
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 800;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tabs-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.8rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--csc-bg-soft);
    border: 1px solid var(--csc-border);
    color: var(--csc-accent-ink);
    font-size: 0.76rem;
    font-weight: 800;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tablist {
    min-width: 0;
    display: flex;
    gap: 0.45rem;
    padding: 0.35rem;
    border: 1px solid var(--csc-border);
    border-radius: var(--csc-radius);
    background: var(--csc-bg-soft);
    overflow-x: auto;
    scrollbar-width: thin;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab {
    flex: 1 1 18rem;
    min-width: min(18rem, 84vw);
    display: grid;
    grid-template-columns: auto 4.2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem 0.78rem;
    border: 1px solid transparent;
    border-radius: var(--csc-radius-sm);
    background: transparent;
    color: var(--csc-text-soft);
    font-family: 'Google Sans Flex';
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab:focus-visible {
    background: var(--csc-bg);
    border-color: var(--csc-border-strong);
    color: var(--csc-text);
    outline: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab.is-active {
    background: var(--csc-bg);
    border-color: color-mix(in srgb, var(--csc-accent) 34%, transparent);
    color: var(--csc-text);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab-index {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--csc-bg);
    border: 1px solid var(--csc-border);
    color: var(--csc-accent-ink);
    font-size: 0.72rem;
    font-weight: 900;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab.is-active .class-showcase-card__course-tab-index {
    background: var(--csc-accent);
    border-color: var(--csc-accent);
    color: #ffffff;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab-thumb,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel-thumb {
    display: block;
    overflow: hidden;
    border: 1px solid var(--csc-border);
    border-radius: 10px;
    background: var(--csc-bg);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab-thumb {
    width: 4.2rem;
    aspect-ratio: 4 / 3;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab.is-active .class-showcase-card__course-tab-thumb {
    border-color: color-mix(in srgb, var(--csc-accent) 36%, var(--csc-border));
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab-thumb img,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab-copy {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab-copy strong {
    overflow: hidden;
    color: inherit;
    font-size: 0.88rem;
    line-height: 1.28;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab-copy small {
    overflow: hidden;
    color: var(--csc-text-muted);
    font-size: 0.72rem;
    line-height: 1.3;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panels {
    min-width: 0;
    display: grid;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel {
    min-width: 0;
    display: grid;
    grid-template-columns: 5.8rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem;
    border: 1px solid var(--csc-border);
    border-radius: var(--csc-radius);
    background: linear-gradient(180deg, #ffffff 0%, var(--csc-bg-softer) 100%);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel[hidden] {
    display: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel-thumb {
    width: 5.8rem;
    aspect-ratio: 4 / 3;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel-copy {
    min-width: 0;
    display: grid;
    gap: 0.28rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel-kicker {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel-kicker em {
    min-height: 1.45rem;
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    background: var(--csc-accent-soft);
    color: var(--csc-accent-ink);
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel h5 {
    margin: 0;
    color: var(--csc-text);
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.28;
    font-weight: 800;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel p {
    margin: 0;
    color: var(--csc-text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-progress {
    display: grid;
    gap: 0.48rem;
    margin-top: 0.42rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-progress-head span {
    color: var(--csc-text-soft);
    font-size: 0.76rem;
    line-height: 1.25;
    font-weight: 800;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-progress-head strong {
    color: var(--csc-accent-ink);
    font-size: 0.92rem;
    line-height: 1;
    font-weight: 900;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-progress-track {
    width: 100%;
    height: 0.58rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--csc-accent) 0%, color-mix(in srgb, var(--csc-accent) 72%, #f4b400) 100%);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-progress-summary {
    color: var(--csc-text-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.38rem;
    margin: 0.18rem 0 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-stats > div {
    min-width: 0;
    display: grid;
    gap: 0.1rem;
    padding: 0.42rem 0.48rem;
    border-radius: 8px;
    background: var(--csc-bg);
    border: 1px solid var(--csc-border);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-stats dt {
    overflow: hidden;
    color: var(--csc-text-muted);
    font-size: 0.66rem;
    line-height: 1.2;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-stats dd {
    overflow: hidden;
    margin: 0;
    color: var(--csc-text);
    font-size: 0.78rem;
    line-height: 1.25;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-action {
    min-height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--csc-accent);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.15s ease;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-action:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-action:focus-visible {
    background: var(--csc-accent-ink);
    outline: none;
    transform: translateY(-1px);
}

/* Actions: single horizontal cluster */
body.home-page .class-showcase-card.is-expanded .class-showcase-card__actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__actions:not(:has(.class-showcase-card__action-main)) {
    justify-content: flex-end;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__action-main {
    flex: 1 1 14rem;
    min-width: 0;
    display: flex;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__button {
    background: var(--csc-text) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    padding: 0.75rem 1.2rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    width: 100%;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__button:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__button.class-zoom-link,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__button.class-learn-now-link,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__button--guest-card {
    background: var(--csc-accent) !important;
    color: #ffffff !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__button.class-zoom-link:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__button.class-learn-now-link:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__button--guest-card:hover {
    background: var(--csc-accent-ink) !important;
}

body.home-page .class-showcase-card.is-expanded .class-zoom-link__live {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-right: 0.5rem;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-zoom-link__live-dot {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__button--disabled {
    background: var(--csc-bg-soft) !important;
    color: var(--csc-text-muted) !important;
    border: 1px solid var(--csc-border) !important;
    cursor: not-allowed;
}

/* Attendance pill */
body.home-page .class-showcase-card.is-expanded .class-showcase-card__attendance {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    flex: 0 0 auto;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__attendance-btn {
    background: var(--csc-bg) !important;
    color: var(--csc-text) !important;
    border: 1px solid var(--csc-border-strong) !important;
    border-radius: 999px !important;
    padding: 0.7rem 1.05rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__attendance-btn:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__attendance-btn:focus-visible {
    background: var(--csc-accent-soft) !important;
    border-color: var(--csc-accent) !important;
    color: var(--csc-accent-ink) !important;
    outline: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__attendance-btn.is-completed,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__attendance-btn:disabled {
    background: var(--csc-accent-soft) !important;
    border-color: var(--csc-accent) !important;
    color: var(--csc-accent-ink) !important;
    cursor: default;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__attendance-meta {
    margin: 0;
    color: var(--csc-text-muted);
    font-size: 0.78rem;
    text-align: center;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__homework-mobile-toggle {
    display: none !important;
}

/* Mobile homework toggle button */
body.home-page .class-showcase-card.is-expanded .class-showcase-card__homework-mobile-toggle-btn {
    background: var(--csc-bg) !important;
    color: var(--csc-text) !important;
    border: 1px solid var(--csc-border-strong) !important;
    border-radius: 999px !important;
    padding: 0.7rem 1rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    width: 100%;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__homework-mobile-toggle-btn:hover {
    background: var(--csc-bg-soft) !important;
    border-color: var(--csc-accent) !important;
    color: var(--csc-accent-ink) !important;
}

/* --- Practice section ----------------------------------------------- */
body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice {
    background: var(--csc-bg-soft) !important;
    border: 1px solid var(--csc-border) !important;
    border-radius: var(--csc-radius) !important;
    padding: 1rem !important;
    box-shadow: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-head {
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-eyebrow {
    background: transparent;
    color: var(--csc-text-muted);
    padding: 0;
    border: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-title {
    margin: 0;
    color: var(--csc-text);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-count {
    background: var(--csc-bg);
    color: var(--csc-accent-ink);
    border: 1px solid var(--csc-border);
    border-radius: 999px;
    padding: 0.2rem 0.62rem;
    font-size: 0.76rem;
    font-weight: 700;
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-note {
    margin: 0 0 0.7rem;
    color: var(--csc-text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.75rem, 1fr));
    align-items: stretch;
    gap: 0.55rem;
    overflow: visible;
    margin: 0.85rem 0 0.75rem;
    padding: 0.55rem !important;
    border: 1px solid var(--csc-border);
    border-radius: var(--csc-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62)),
        var(--csc-bg-soft) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
    scrollbar-width: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-filters::-webkit-scrollbar {
    display: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-filters .exam-category-pill {
    width: 100%;
    min-height: 3rem;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.58rem 0.68rem 0.58rem 0.82rem !important;
    border: 1px solid var(--csc-border) !important;
    border-radius: 12px;
    background: var(--csc-bg) !important;
    color: var(--csc-text-soft) !important;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03) !important;
    transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-filters .exam-category-pill:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-filters .exam-category-pill:focus {
    border-color: color-mix(in srgb, var(--csc-accent) 34%, var(--csc-border)) !important;
    background: var(--csc-bg-softer) !important;
    color: var(--csc-text) !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06) !important;
    transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-filters .exam-category-pill span {
    flex: 0 0 auto;
    min-width: 1.6rem;
    min-height: 1.6rem !important;
    height: 1.6rem;
    padding: 0 0.42rem;
    border-radius: 999px;
    background: var(--csc-bg-soft) !important;
    color: var(--csc-text) !important;
    font-size: 0.68rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px var(--csc-border) !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-filters .exam-category-pill.is-active,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-filters .exam-category-pill[aria-pressed="true"] {
    border-color: #0d7a3c !important;
    background: linear-gradient(135deg, #0d7a3c 0%, #149c64 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(13, 122, 60, 0.22) !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-filters .exam-category-pill.is-active span,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice-filters .exam-category-pill[aria-pressed="true"] span {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35) !important;
}

/* --- Todo section --------------------------------------------------- */
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo {
    grid-area: auto !important;
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-self: stretch;
    align-self: start;
    display: grid;
    gap: 0.85rem;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
}

body.home-page .class-showcase-card.is-expanded .class-todo-home__title {
    margin: 0;
    color: var(--csc-text);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--csc-bg);
    border: 1px solid var(--csc-border-strong);
    color: var(--csc-accent-ink);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__status {
    margin: 0 !important;
    min-height: 0;
    position: relative;
    display: block;
    padding: 0.78rem 0.9rem 0.78rem 3rem;
    border: 1px solid var(--csc-border);
    border-radius: var(--csc-radius-sm);
    background: var(--csc-bg-soft);
    color: var(--csc-text-soft);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    box-shadow: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__status::before {
    content: "\2022";
    position: absolute;
    left: 0.9rem;
    top: 50%;
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--csc-bg);
    border: 1px solid var(--csc-border-strong);
    color: var(--csc-accent-ink);
    font-size: 0.85rem;
    font-weight: 900;
    transform: translateY(-50%);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__status::after {
    content: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__status[data-tone='success'] {
    border-color: color-mix(in srgb, var(--csc-accent) 28%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--csc-accent) 10%, #ffffff), #ffffff);
    color: var(--csc-accent-ink);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__status[data-tone='success']::before {
    content: "\2713";
    background: var(--csc-accent);
    border-color: var(--csc-accent);
    color: #ffffff;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__status[data-tone='error'] {
    border-color: rgba(180, 35, 24, 0.24);
    background: #fff7f5;
    color: #8f281d;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__status[data-tone='error']::before {
    content: "!";
    background: #b42318;
    border-color: #b42318;
    color: #ffffff;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo[data-attention="focus"] .class-todo-home__status {
    border-color: color-mix(in srgb, var(--csc-accent) 34%, transparent);
    background: var(--csc-accent-soft);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 0.85rem;
    align-items: stretch;
    position: relative;
    border-radius: 1rem;
    padding: 0.65rem;
    isolation: isolate;
    outline: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo-layout:focus,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo-layout:focus-visible,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo-layout:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo-layout::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from var(--csc-todo-beam-angle, 0deg),
        rgba(255, 214, 90, 0) 0%,
        rgba(255, 214, 90, 0) 55%,
        #ffe98a 70%,
        #ffffff 76%,
        #ffd65a 82%,
        rgba(255, 214, 90, 0) 95%,
        rgba(255, 214, 90, 0) 100%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
    animation: cscTodoLayoutBeam 4.5s linear infinite;
    filter: drop-shadow(0 0 6px rgba(255, 214, 90, 0.55));
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo-layout > * {
    position: relative;
    z-index: 1;
}

@property --csc-todo-beam-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes cscTodoLayoutBeam {
    to {
        --csc-todo-beam-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo-layout::before {
        animation: none;
        background: conic-gradient(
            from 0deg,
            rgba(255, 214, 90, 0.55),
            rgba(255, 255, 255, 0.78),
            rgba(255, 214, 90, 0.55),
            rgba(255, 214, 90, 0.4),
            rgba(255, 214, 90, 0.55)
        );
    }
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo-layout:has([data-class-todo-pending][hidden]) {
    grid-template-columns: minmax(13rem, 0.85fr) minmax(18rem, 1.15fr);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group {
    position: relative;
    min-width: 0;
    min-height: clamp(12rem, 26vh, 18rem);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.72rem;
    padding: 0.9rem;
    border-radius: var(--csc-radius);
    border: 1px solid var(--csc-border);
    background: #ffffff;
    box-shadow: none !important;
    transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group::before {
    content: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed {
    background: #ffffff;
    border: 1px solid var(--csc-border);
    border-radius: var(--csc-radius);
    padding: 0.9rem;
    box-shadow: none !important;
    transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed::before {
    content: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group-head {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    gap: 0.65rem;
    margin: 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--csc-border);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group-head h5 {
    margin: 0;
    color: var(--csc-text-soft);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group-count {
    min-width: 1.85rem;
    min-height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--csc-bg-soft);
    border: 1px solid var(--csc-border);
    color: var(--csc-text);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__empty {
    margin: 0;
    min-height: 8.5rem;
    display: grid;
    place-items: center;
    padding: 1rem;
    border: 1px dashed var(--csc-border-strong);
    border-radius: var(--csc-radius-sm);
    background: var(--csc-bg-softer);
    color: var(--csc-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__list {
    min-height: 0;
    max-height: min(18rem, 42vh) !important;
    display: grid;
    align-content: start;
    gap: 0.6rem;
    margin: 0;
    padding: 0 0.35rem 0 0 !important;
    list-style: none;
    overflow-y: auto;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__item {
    width: 100%;
    min-height: 3.45rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    padding: 0.72rem 0.78rem;
    border-radius: var(--csc-radius-sm);
    border: 1px solid var(--csc-border);
    background: var(--csc-bg);
    color: var(--csc-text);
    box-shadow: none !important;
    transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__item:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__item:focus-visible {
    border-color: color-mix(in srgb, var(--csc-accent) 36%, transparent);
    background: var(--csc-accent-soft);
    outline: none;
    transform: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__item.is-completed {
    background: color-mix(in srgb, var(--csc-bg-soft) 72%, #ffffff);
    border-color: var(--csc-border);
    color: var(--csc-text-muted);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__item.is-completed::after {
    content: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__check {
    width: 2.15rem;
    min-width: 2.15rem;
    max-width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: var(--csc-bg-soft);
    border: 1px solid var(--csc-border-strong);
    box-shadow: none;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__item.is-completed .class-todo-home__check {
    background: var(--csc-accent);
    border-color: var(--csc-accent);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__item-title {
    color: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__item.is-completed .class-todo-home__item-title {
    color: var(--csc-text-muted) !important;
    font-weight: 700;
    text-decoration-color: color-mix(in srgb, var(--csc-text-muted) 48%, transparent);
    text-decoration-thickness: 1px;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__item-date {
    color: var(--csc-text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

/* --- Restricted (logged-out) state ---------------------------------- */
body.home-page .class-showcase-card.is-expanded.is-restricted {
    background: var(--csc-bg-softer) !important;
}

body.home-page .class-showcase-card.is-expanded.is-restricted .class-showcase-card__media::after {
    content: "" !important;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(2px);
}

/* --- Responsive ----------------------------------------------------- */
@media (max-width: 920px) {
    body.home-page .class-showcase-card.is-expanded {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0.95rem !important;
    }

    body.home-page .class-showcase-card.is-expanded:has(> .class-showcase-card__class-options-slot) {
        grid-template-areas:
            "class-options"
            "lead"
            "content" !important;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__hero {
        grid-template-columns: 1fr;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__user-card {
        justify-self: start;
        width: min(100%, 22rem);
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__action-main {
        flex: 1 1 100%;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__attendance,
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__homework-mobile-toggle {
        flex: 1 1 100%;
    }
}

@media (max-width: 560px) {
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard,
    body.home-page .class-showcase-card.is-expanded .class-homework-inline,
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__practice,
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo {
        padding: 0.85rem !important;
    }

    body.home-page .class-showcase-card.is-expanded .class-homework-inline__head {
        flex-wrap: wrap;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__user-card {
        width: 100%;
    }
}

@media (max-width: 760px) {
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo {
        padding: 0 !important;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__class-options-slot {
        padding: 0.55rem;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__class-options-head {
        align-items: flex-start;
    }

    body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        padding-bottom: 0.1rem;
    }

    body.home-page .class-showcase-card.is-expanded .class-section__class-switcher.is-inside-card .class-section__class-tab {
        flex: 0 0 min(14rem, 82vw);
        scroll-snap-align: start;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tabs-head,
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel {
        grid-template-columns: 1fr;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tabs-head {
        display: grid;
        align-items: start;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tablist {
        scroll-snap-type: x proximity;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-tab {
        flex-basis: min(18rem, 86vw);
        scroll-snap-align: start;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-panel-thumb {
        width: 100%;
        max-height: 10rem;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-stats > div:last-child {
        grid-column: 1 / -1;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__course-action {
        width: 100%;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo-head {
        align-items: flex-start;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo-layout,
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo-layout:has([data-class-todo-pending][hidden]) {
        grid-template-columns: 1fr;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group {
        min-height: 0;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__empty {
        min-height: 6rem;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__list {
        max-height: min(22rem, 58vh) !important;
    }
}

/* --- Leaderboard two-column layout ---------------------------------- */
body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-grid {
    display: grid;
    grid-template-columns: minmax(15rem, 0.9fr) minmax(0, 1.45fr);
    gap: 0.9rem;
    align-items: stretch;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-types,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-board {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-types-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-types-head h4 {
    margin: 0;
    color: var(--csc-text);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-types-head span {
    flex: 0 0 auto;
    background: var(--csc-bg);
    color: var(--csc-accent-ink);
    border: 1px solid var(--csc-border);
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    font-size: 0.75rem;
    font-weight: 700;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-types-list {
    display: grid;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 0 0.25rem 0 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-type {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.62rem;
    align-items: center;
    background: var(--csc-bg);
    border: 1px solid var(--csc-border);
    border-radius: var(--csc-radius-sm);
    padding: 0.52rem 0.62rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-type-thumb {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 999px;
    background: var(--csc-bg-soft);
    border: 1px solid var(--csc-border);
    color: var(--csc-accent-ink);
    font-size: 0.72rem;
    font-weight: 800;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-type-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-type-body {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-type-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: baseline;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-type-title strong {
    min-width: 0;
    overflow: hidden;
    color: var(--csc-text);
    font-size: 0.86rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-type-title em {
    color: var(--csc-accent-ink);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 800;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-type-bar {
    height: 0.32rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.07);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-type-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--csc-accent);
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-types-empty {
    margin: 0;
    color: var(--csc-text-muted);
    font-size: 0.85rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-list--pinned {
    margin-bottom: 0.55rem;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-list--scroll {
    max-height: min(18rem, 46vh);
    overflow-y: auto !important;
    padding-right: 0.25rem !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-list--scroll .class-showcase-card__leaderboard-item,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-item:nth-child(n + 4) {
    display: grid !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-list--scroll .class-showcase-card__leaderboard-item:not(.is-top) {
    background: var(--csc-bg) !important;
    border-color: var(--csc-border) !important;
    color: var(--csc-text) !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-list--scroll .class-showcase-card__leaderboard-item:not(.is-top) .class-showcase-card__leaderboard-rank {
    background: var(--csc-bg-soft) !important;
    border-color: transparent !important;
    color: var(--csc-text) !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-list--scroll .class-showcase-card__leaderboard-item:not(.is-top) .class-showcase-card__leaderboard-name {
    color: var(--csc-text) !important;
    font-weight: 600 !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-list--scroll .class-showcase-card__leaderboard-item:not(.is-top) .class-showcase-card__leaderboard-score {
    color: var(--csc-accent-ink) !important;
    font-weight: 700 !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-item.is-top-1 {
    background: linear-gradient(135deg, #ffe27a 0%, #ffd141 100%) !important;
    border-color: rgba(212, 154, 0, 0.32) !important;
    color: #3a2c00 !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-item.is-top-2 {
    background: linear-gradient(135deg, #ffc99a 0%, #ffae6b 100%) !important;
    border-color: rgba(204, 110, 36, 0.28) !important;
    color: #3d2200 !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-item.is-top-3 {
    background: linear-gradient(135deg, #ff9f5c 0%, #ff7a30 100%) !important;
    border-color: rgba(167, 70, 14, 0.32) !important;
    color: #fff8ef !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-item.is-top .class-showcase-card__leaderboard-rank {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #131313 !important;
}

@media (max-width: 900px) {
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-grid {
        grid-template-columns: 1fr;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__sticker-types-list,
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__leaderboard-list--scroll {
        max-height: min(18rem, 48vh);
    }
}

/* Final home blog presentation override */
body.home-page .blog-showcase {
    scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 13.5rem);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3.8rem, 6vw, 5.2rem) 0 clamp(3.6rem, 5.4vw, 4.8rem) !important;
    background:
        radial-gradient(circle at 91% 16%, rgba(217, 240, 231, 0.72) 0 0, rgba(217, 240, 231, 0.72) 5.1rem, transparent 5.2rem),
        linear-gradient(180deg, #f8fbfa 0%, #ffffff 100%) !important;
}

body.home-page .blog-showcase::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 10px;
    background: linear-gradient(180deg, rgba(52, 177, 147, 0.14), rgba(52, 177, 147, 0));
    pointer-events: none;
    z-index: -1;
}

body.home-page .blog-showcase > .container {
    width: min(1424px, calc(100% - 112px));
    position: relative;
    z-index: 1;
}

body.home-page .blog-showcase__head,
body.home-page .blog-showcase .section-intro,
body.home-page .blog-showcase .section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 0 clamp(2.2rem, 4vw, 3.1rem) !important;
    padding-top: 0;
}

body.home-page .blog-showcase .section-text {
    max-width: 620px;
}

body.home-page .blog-showcase .section-kicker::before {
    content: none !important;
}

body.home-page .blog-showcase__kicker {
    gap: 0.72rem;
    padding: 0 !important;
    background: transparent !important;
    color: #218457 !important;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

body.home-page .blog-showcase__kicker-icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.48rem;
    border-radius: 999px;
    background: #e6f5ef;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

body.home-page .blog-showcase .section-text h2,
body.home-page .blog-showcase .section-intro h2 {
    margin: 1rem 0 0.85rem !important;
    color: #111827 !important;
    font-size: clamp(3.25rem, 5vw, 4.35rem) !important;
    line-height: 0.95 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

body.home-page .blog-showcase .section-text p,
body.home-page .blog-showcase .section-intro p {
    max-width: 610px;
    color: #657084 !important;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.75;
}

body.home-page .blog-showcase__art {
    display: block;
    position: relative;
    flex: 0 0 clamp(190px, 18vw, 260px);
    min-height: 170px;
    margin-top: 1.1rem;
    color: #a8d9c5;
}

body.home-page .blog-showcase__art::before {
    content: '';
    position: absolute;
    right: 0.3rem;
    top: -0.35rem;
    width: clamp(130px, 12vw, 156px);
    aspect-ratio: 1;
    border-radius: 999px;
    background: rgba(217, 240, 231, 0.62);
}

body.home-page .blog-showcase__art-dot {
    position: absolute;
    top: 1.25rem;
    left: 1.6rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: #b8decf;
}

body.home-page .blog-showcase__art svg {
    position: absolute;
    right: 1.1rem;
    top: 1.7rem;
    width: clamp(168px, 15vw, 210px);
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

body.home-page .blog-showcase .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.6rem, 3vw, 2.35rem);
    align-items: stretch;
}

body.home-page .blog-showcase .blog-card {
    border-radius: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: #ffffff !important;
    background-image: none !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.08) !important;
    transform: none;
}

body.home-page .blog-showcase .blog-card:hover,
body.home-page .blog-showcase .blog-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(52, 177, 147, 0.22) !important;
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.12) !important;
}

body.home-page .blog-showcase .blog-thumb {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    aspect-ratio: 16 / 8.7;
    background: #eef8f4 !important;
    box-shadow: none !important;
}

body.home-page .blog-showcase .blog-info {
    flex: 1;
    gap: 0.95rem;
    padding: clamp(1.35rem, 2.1vw, 1.75rem) clamp(1.45rem, 2.3vw, 1.9rem) clamp(1.45rem, 2.4vw, 2rem);
}

body.home-page .blog-showcase .blog-meta {
    align-items: center;
    gap: 0.75rem;
}

body.home-page .blog-showcase .blog-meta .blog-meta-pill {
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    background: transparent !important;
    color: #667085 !important;
    box-shadow: none !important;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

body.home-page .blog-showcase .blog-meta .blog-meta-pill span {
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

body.home-page .blog-showcase .blog-meta .blog-meta-pill--category {
    padding: 0.5rem 0.78rem !important;
    background: #e6f5ef !important;
    color: #32835f !important;
}

body.home-page .blog-showcase .blog-meta .blog-meta-pill--date {
    text-transform: none;
    letter-spacing: 0;
}

body.home-page .blog-showcase .blog-meta .blog-meta-pill--category + .blog-meta-pill--date {
    padding-left: 1rem !important;
    border-left: 1px solid rgba(15, 23, 42, 0.1) !important;
}

body.home-page .blog-showcase .blog-meta svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

body.home-page .blog-showcase .blog-info h3 {
    color: #151a25 !important;
    font-family: 'Google Sans Flex' !important;
    font-size: clamp(1.38rem, 1.9vw, 1.72rem);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: 0 !important;
}

body.home-page .blog-showcase .blog-excerpt {
    min-height: 0;
    color: #667085 !important;
    font-size: clamp(0.98rem, 1.35vw, 1.08rem);
    line-height: 1.72;
    -webkit-line-clamp: 2;
}

body.home-page .blog-showcase .blog-link {
    width: max-content;
    max-width: 100%;
    justify-content: flex-start;
    gap: 0.65rem;
    margin-top: auto;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #168957 !important;
    font-size: 1rem;
    font-weight: 900;
}

body.home-page .blog-showcase .blog-link::after {
    content: '\2192' !important;
    display: inline-flex;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: currentColor !important;
    font-size: 1.35rem;
    line-height: 1;
}

body.home-page .blog-showcase .blog-card:hover .blog-link::after,
body.home-page .blog-showcase .blog-card:focus-within .blog-link::after {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    body.home-page .blog-showcase {
        padding: 3rem 0 3.4rem !important;
    }

    body.home-page .blog-showcase > .container {
        width: min(100% - 40px, 720px);
    }

    body.home-page .blog-showcase__head,
    body.home-page .blog-showcase .section-intro,
    body.home-page .blog-showcase .section-heading {
        display: block;
    }

    body.home-page .blog-showcase__art {
        display: none;
    }

    body.home-page .blog-showcase .blog-list {
        grid-template-columns: 1fr;
    }

    body.home-page .blog-showcase .section-text h2,
    body.home-page .blog-showcase .section-intro h2 {
        font-size: clamp(2.8rem, 12vw, 3.4rem) !important;
    }
}

@media (max-width: 560px) {
    body.home-page .blog-showcase {
        padding: 2.5rem 0 3rem !important;
    }

    body.home-page .blog-showcase > .container {
        width: calc(100% - 32px);
    }

    body.home-page .blog-showcase .blog-thumb {
        aspect-ratio: 16 / 10;
    }

    body.home-page .blog-showcase .blog-info {
        padding: 1.15rem;
    }

    body.home-page .blog-showcase .blog-meta {
        align-items: flex-start;
        gap: 0.58rem;
    }

    body.home-page .blog-showcase .blog-meta .blog-meta-pill--category + .blog-meta-pill--date {
        padding-left: 0 !important;
        border-left: 0 !important;
    }
}

body.home-page .home-main > section#blog.blog-showcase,
body.home-page .home-main--guest > section#blog.blog-showcase {
    margin-top: -4.5rem !important;
    padding-top: clamp(2.1rem, 3.6vw, 3rem) !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 91% 18%, rgba(217, 240, 231, 0.7) 0 0, rgba(217, 240, 231, 0.7) 5.1rem, transparent 5.2rem),
        linear-gradient(180deg, rgba(248, 251, 250, 0) 0%, #f8fbfa 7rem, #ffffff 100%) !important;
}

body.home-page .home-main > section#blog.blog-showcase::before,
body.home-page .home-main--guest > section#blog.blog-showcase::before {
    content: none !important;
}

@media (max-width: 900px) {
    body.home-page .home-main > section#blog.blog-showcase,
    body.home-page .home-main--guest > section#blog.blog-showcase {
        margin-top: -4.5rem !important;
        padding-top: 2rem !important;
    }
}

body.home-page .class-todo-home__group--completed .class-todo-home__list {
    gap: 0.42rem;
}

body.home-page .class-todo-home__group--completed .class-todo-home__item.is-completed,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed .class-todo-home__item.is-completed {
    min-height: 3.7rem;
    grid-template-columns: 1.45rem minmax(0, 1fr);
    gap: 0.72rem;
    align-items: center;
    padding: 0.68rem 0.85rem;
    border-radius: 0.45rem;
    border-color: rgba(15, 23, 42, 0.08) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #6f7b83 !important;
    box-shadow: none !important;
}

body.home-page .class-todo-home__group--completed .class-todo-home__item.is-completed:hover,
body.home-page .class-todo-home__group--completed .class-todo-home__item.is-completed:focus-visible,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed .class-todo-home__item.is-completed:hover,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed .class-todo-home__item.is-completed:focus-visible {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    transform: none !important;
}

body.home-page .class-todo-home__group--completed .class-todo-home__item.is-completed::after,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed .class-todo-home__item.is-completed::after {
    content: none !important;
}

body.home-page .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__check,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__check {
    width: 1.45rem;
    min-width: 1.45rem;
    max-width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 1.45rem;
    border: 0 !important;
    border-radius: 999px;
    background: #6f7d86 !important;
    box-shadow: none !important;
}

body.home-page .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__check-sticker,
body.home-page .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__check-sticker-fallback,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__check-sticker,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__check-sticker-fallback {
    display: none !important;
}

body.home-page .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__check-mark,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__check-mark {
    opacity: 1 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 0.82rem;
    text-shadow: none !important;
}

body.home-page .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__content,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__content {
    gap: 0;
}

body.home-page .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__item-title,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__item-title {
    display: block;
    color: color(srgb 0.0489412 0.394588 0.171294) !important;
    -webkit-text-fill-color: color(srgb 0.0489412 0.394588 0.171294) !important;
    font-weight: 700;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: currentColor;
}

body.home-page .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__item-date,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group--completed .class-todo-home__item.is-completed .class-todo-home__item-date {
    display: none !important;
}

/* Match homepage section headings to the Blog & News heading style. */
body.home-page .class-section > .container > .section-heading,
body.home-page .home-courses > .container > .section-heading,
body.home-page .home-exams > .container > .section-heading,
body.home-page .home-games > .container > .section-heading {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    margin: 0 0 clamp(2.2rem, 4vw, 3.1rem) !important;
    padding-top: 0 !important;
    text-align: left !important;
}

body.home-page .home-about .home-about__content,
body.home-page .class-section > .container > .section-heading > .section-text,
body.home-page .home-courses > .container > .section-heading > .section-text,
body.home-page .home-exams > .container > .section-heading > .section-text,
body.home-page .home-games > .container > .section-heading > .section-text,
body.home-page .home-exams-guest-copy {
    max-width: 620px !important;
    text-align: left !important;
}

body.home-page .home-about .section-kicker,
body.home-page .class-section > .container > .section-heading .section-kicker,
body.home-page .home-courses > .container > .section-heading .section-kicker,
body.home-page .home-exams > .container > .section-heading .section-kicker,
body.home-page .home-games > .container > .section-heading .section-kicker {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.72rem !important;
    width: fit-content !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #218457 !important;
    font-size: 0.86rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}

body.home-page .home-about .section-kicker::before,
body.home-page .class-section > .container > .section-heading .section-kicker::before,
body.home-page .home-courses > .container > .section-heading .section-kicker::before,
body.home-page .home-exams > .container > .section-heading .section-kicker::before,
body.home-page .home-games > .container > .section-heading .section-kicker::before {
    content: "" !important;
    display: inline-block !important;
    width: 2.25rem !important;
    min-width: 2.25rem !important;
    height: 2.25rem !important;
    flex: 0 0 2.25rem !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: #e6f5ef url("../img/logo-mark.svg") center / 1.25rem 1.25rem no-repeat !important;
    box-shadow: none !important;
}

body.home-page .home-about .home-about__content h2,
body.home-page .class-section > .container > .section-heading h2,
body.home-page section#lop-hoc.class-section.home-section .class-section__guest-heading h2,
body.home-page .home-courses > .container > .section-heading h2,
body.home-page .home-exams > .container > .section-heading h2,
body.home-page .home-games > .container > .section-heading h2,
body.home-page .home-gallery .section-text h2 {
    margin: 1rem 0 0.85rem !important;
    color: #111827 !important;
    font-size: 58px !important;
    line-height: 0.95 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    background: none !important;
    -webkit-text-fill-color: #111827 !important;
    -webkit-background-clip: unset !important;
}

body.home-page main span.section-kicker.section-kicker,
body.home-page .home-main span.section-kicker.section-kicker,
body.home-page .home-main--guest span.section-kicker.section-kicker {
    display: none !important;
}

body.home-page .home-main .home-section span.section-kicker.section-kicker.section-kicker,
body.home-page .home-main--guest .home-section span.section-kicker.section-kicker.section-kicker {
    display: none !important;
}

body.home-page .home-about .home-about__content h2,
body.home-page .home-courses > .container > .section-heading h2,
body.home-page .home-exams > .container > .section-heading h2,
body.home-page .home-games > .container > .section-heading h2,
body.home-page .home-gallery .section-text h2,
body.home-page .blog-showcase .section-text h2,
body.home-page .blog-showcase .section-intro h2 {
    margin-top: 0 !important;
}

body.home-page .home-about .home-about__content h2::after,
body.home-page .class-section > .container > .section-heading h2::after,
body.home-page .home-courses > .container > .section-heading h2::after,
body.home-page .home-exams > .container > .section-heading h2::after,
body.home-page .home-games > .container > .section-heading h2::after,
body.home-page .home-gallery .section-text h2::after {
    content: none !important;
    display: none !important;
}

body.home-page .home-about .home-about__content p,
body.home-page .class-section > .container > .section-heading p,
body.home-page .home-courses > .container > .section-heading p,
body.home-page .home-exams > .container > .section-heading p,
body.home-page .home-games > .container > .section-heading p,
body.home-page .home-gallery .section-text p {
    max-width: 610px !important;
    color: #657084 !important;
    font-size: clamp(1rem, 1.4vw, 1.12rem) !important;
    line-height: 1.75 !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-section__guest-heading {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 clamp(2.2rem, 4vw, 3.1rem) !important;
    padding-top: 0 !important;
    text-align: left !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-section__guest-heading h2 {
    margin: 0 0 0.85rem !important;
    color: #111827 !important;
    font-size: 58px !important;
    line-height: 0.95 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    background: none !important;
    -webkit-text-fill-color: #111827 !important;
    -webkit-background-clip: unset !important;
}

@media (max-width: 900px) {
    body.home-page .class-section > .container > .section-heading,
    body.home-page .home-courses > .container > .section-heading,
    body.home-page .home-exams > .container > .section-heading,
    body.home-page .home-games > .container > .section-heading {
        display: block !important;
    }

    body.home-page .home-about .home-about__content h2,
    body.home-page .class-section > .container > .section-heading h2,
    body.home-page .home-courses > .container > .section-heading h2,
    body.home-page .home-exams > .container > .section-heading h2,
    body.home-page .home-games > .container > .section-heading h2 {
        font-size: clamp(2.8rem, 12vw, 3.4rem) !important;
    }

    body.home-page section#lop-hoc.class-section.home-section .class-section__guest-heading h2 {
        font-size: clamp(2.8rem, 12vw, 3.4rem) !important;
    }
}

/* Course card hierarchy: image, title, metadata, action. */
body.home-page .home-courses .course-card .course-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 1rem 1.15rem 1.1rem !important;
    box-sizing: border-box !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

@media (min-width: 1181px) {
    body.home-page .class-grid.class-grid--desktop-3.class-grid--guest-showcase {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        align-items: stretch !important;
    }
}

/* APUS guest class join cards. */
body.home-page .class-grid.class-grid--guest-showcase {
    gap: clamp(1rem, 1.7vw, 1.35rem) !important;
    align-items: stretch !important;
}

@media (min-width: 700px) and (max-width: 1180px) {
    body.home-page .class-grid.class-grid--desktop-3.class-grid--guest-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 699px) {
    body.home-page .class-grid.class-grid--desktop-3.class-grid--guest-showcase {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.95rem !important;
    }
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden !important;
    cursor: default !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted:hover,
body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted:focus-within {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.11), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__lead {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__media {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #eef8f2 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__media::after {
    content: none !important;
    display: none !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__content {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-height: 0 !important;
    padding: 0.95rem 1rem 1rem !important;
    background: #ffffff !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__hero,
body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__hero-copy {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__eyebrow-row {
    display: none !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    min-height: 1.1rem !important;
    padding: 0.16rem 0.45rem !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f0eaff !important;
    color: #7c3aed !important;
    box-shadow: none !important;
    font-size: 0.6rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted:nth-child(3n+2) .class-showcase-card__eyebrow {
    background: #fff2cf !important;
    color: #d17800 !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted:nth-child(3n+3) .class-showcase-card__eyebrow {
    background: #ffe7ef !important;
    color: #e24573 !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__state {
    display: none !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__title {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 0 0.42rem !important;
    color: #111827 !important;
    font-size: clamp(1.02rem, 1.14vw, 1.1rem) !important;
    font-weight: 900 !important;
    line-height: 1.24 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: none !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__guest-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.28rem 0.42rem !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 0.8rem !important;
    padding: 0 !important;
    color: #667085 !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__guest-meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.42rem !important;
    max-width: 100% !important;
    min-height: 0 !important;
    color: inherit !important;
    font: inherit !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__guest-meta-item--category {
    color: #14845f !important;
    font-weight: 900 !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__guest-meta-item + .class-showcase-card__guest-meta-item::before {
    content: "" !important;
    display: inline-block !important;
    width: 0.28rem !important;
    min-width: 0.28rem !important;
    height: 0.28rem !important;
    border-radius: 999px !important;
    background: #c5ccd8 !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__summary {
    display: -webkit-box !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    color: #5d6b82 !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__detail-shell {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__feature-panel {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__feature-panel > :not(.class-showcase-card__actions) {
    display: none !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__actions,
body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__action-main {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: auto 0 0 !important;
    padding: 0.78rem 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #e5e9f0 !important;
    background: transparent !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__action-main {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__button.class-showcase-card__button--guest-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
    min-height: 1.55rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__button.class-showcase-card__button--guest-card::before {
    content: none !important;
    display: none !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__button.class-showcase-card__button--guest-card:hover,
body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__button.class-showcase-card__button--guest-card:focus-visible {
    background: transparent !important;
    color: #087342 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__button-label {
    color: inherit !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__button-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__button-icon::before {
    content: "\2192" !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

@media (max-width: 560px) {
    body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__media {
        aspect-ratio: 16 / 9 !important;
    }

    body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__content {
        padding: 0.9rem 0.95rem 0.95rem !important;
    }

    body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted .class-showcase-card__guest-meta-item {
        white-space: normal !important;
    }
}

body.home-page .home-courses .course-card {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

body.home-page .home-main--guest .home-courses .course-card,
body.home-page .home-main:not(.home-main--guest) .home-courses .course-card {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

body.home-page .home-courses .course-card .course-card__labels {
    order: 2 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    margin: 0 0 0.5rem !important;
}

body.home-page .home-courses .course-card .course-card__source-badge {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #14845f !important;
    box-shadow: none !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

body.home-page .home-courses .course-card .course-title {
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 0 0.55rem !important;
    color: #111827 !important;
    font-size: clamp(1.02rem, 1.2vw, 1.16rem) !important;
    font-weight: 900 !important;
    line-height: 1.28 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: none !important;
    flex-grow: 0 !important;
}

body.home-page .home-courses .course-card .course-summary {
    order: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.34rem 0.55rem !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 0 1rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #667085 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    flex-grow: 0 !important;
}

body.home-page .home-courses .course-card .course-summary::before {
    content: none !important;
    display: none !important;
}

body.home-page .home-courses .course-card .course-summary__item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    min-height: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    flex: 0 1 auto !important;
}

body.home-page .home-courses .course-card .course-summary__item::before {
    content: none !important;
    display: none !important;
}

body.home-page .home-courses .course-card .course-summary__item + .course-summary__item::before {
    content: "" !important;
    display: inline-block !important;
    width: 0.3rem !important;
    min-width: 0.3rem !important;
    height: 0.3rem !important;
    border-radius: 999px !important;
    background: #c5ccd8 !important;
    box-shadow: none !important;
}

body.home-page .home-courses .course-card .course-summary__item--category {
    color: #14845f !important;
    font-weight: 800 !important;
}

body.home-page .home-courses .course-card .course-action {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: auto 0 0 !important;
    padding: 0.78rem 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #e5e9f0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 0.92rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    justify-content: space-between !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
}

body.home-page .home-main--guest .home-courses .course-card .course-action.course-action--guest-card,
body.home-page .home-main:not(.home-main--guest) .home-courses .course-card .course-action.course-action--member-card {
    margin: auto 0 0 !important;
    padding: 0.78rem 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #e5e9f0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.home-page .home-main--guest .home-courses .course-card .course-action.course-action--guest-card:hover,
body.home-page .home-main--guest .home-courses .course-card .course-action.course-action--guest-card:focus-visible,
body.home-page .home-main:not(.home-main--guest) .home-courses .course-card .course-action.course-action--member-card:hover,
body.home-page .home-main:not(.home-main--guest) .home-courses .course-card .course-action.course-action--member-card:focus-visible {
    background: transparent !important;
    color: #087342 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.home-page .home-courses .course-card .course-action-label {
    font: inherit !important;
    letter-spacing: 0 !important;
    line-height: inherit !important;
}

body.home-page .home-courses .course-card .course-action-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.home-page .home-main--guest .home-courses .course-card .course-action.course-action--guest-card .course-action-icon,
body.home-page .home-main:not(.home-main--guest) .home-courses .course-card .course-action.course-action--member-card .course-action-icon {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
}

@media (max-width: 560px) {
    body.home-page .home-courses .course-card .course-body {
        padding: 0.9rem 1rem 1rem !important;
    }

    body.home-page .home-courses .course-card .course-summary__item {
        white-space: normal !important;
    }
}

/* Match the public exam bank cards to the flat class/course card boxes. */
body.home-page .home-exams--guest-showcase .home-exams-grid {
    gap: clamp(1rem, 1.7vw, 1.35rem) !important;
    align-items: stretch !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card {
    --exam-card-accent: #14845f;
    --exam-card-strong: #14845f;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card:hover,
body.home-page .home-exams--guest-showcase .exam-home-card:focus-within {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.11), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card__thumb {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e5e9f0 !important;
    border-radius: 0 !important;
    background: #eef8f2 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card__thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card__body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-height: 0 !important;
    padding: 0.95rem 1rem 1rem !important;
    background: #ffffff !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card__tags {
    order: 1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.32rem 0.5rem !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 0.5rem !important;
}

body.home-page .home-exams--guest-showcase .exam-home-tag {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #14845f !important;
    box-shadow: none !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

body.home-page .home-exams--guest-showcase .exam-home-tag.is-vip {
    color: #8b6500 !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card h3 {
    order: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 0 0.5rem !important;
    color: #111827 !important;
    font-size: clamp(1.02rem, 1.2vw, 1.16rem) !important;
    font-weight: 900 !important;
    line-height: 1.28 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: none !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card p {
    order: 3 !important;
    display: -webkit-box !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 0 0.85rem !important;
    color: #5d6b82 !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card__info {
    order: 4 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.34rem 0.55rem !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: auto 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #667085 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card__info span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    font: inherit !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card__info span + span::before {
    content: "" !important;
    display: inline-block !important;
    width: 0.3rem !important;
    min-width: 0.3rem !important;
    height: 0.3rem !important;
    border-radius: 999px !important;
    background: #c5ccd8 !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card__info strong {
    color: #14845f !important;
    font: inherit !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

body.home-page .home-exams--guest-showcase .exam-home-card__footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: auto 0 0 !important;
    padding: 0.78rem 1rem 1rem !important;
    border: 0 !important;
    border-top: 1px solid #e5e9f0 !important;
    background: #ffffff !important;
}

body.home-page .home-exams--guest-showcase .exam-home-action,
body.home-page .home-exams--guest-showcase .exam-home-action.is-login-required,
body.home-page .home-exams--guest-showcase .exam-home-action.is-resume {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.55rem !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    box-shadow: none !important;
    font-size: 0.92rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: normal !important;
    transform: none !important;
}

body.home-page .home-exams--guest-showcase .exam-home-action::after {
    content: "\2192" !important;
    flex: 0 0 auto !important;
    color: inherit !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
}

body.home-page .home-exams--guest-showcase .exam-home-action:hover,
body.home-page .home-exams--guest-showcase .exam-home-action:focus-visible {
    background: transparent !important;
    color: #087342 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.home-page .home-exams--guest-showcase .exam-home-action.is-locked {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.58 !important;
    color: #667085 !important;
}

body.home-page .home-exams--guest-showcase .exam-home-duration {
    justify-self: end !important;
    white-space: nowrap !important;
    color: #667085 !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 560px) {
    body.home-page .home-exams--guest-showcase .exam-home-card__body {
        padding: 0.9rem 1rem 1rem !important;
    }

    body.home-page .home-exams--guest-showcase .exam-home-card__info span,
    body.home-page .home-exams--guest-showcase .exam-home-tag {
        white-space: normal !important;
    }

    body.home-page .home-exams--guest-showcase .exam-home-card__footer {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.45rem !important;
    }

    body.home-page .home-exams--guest-showcase .exam-home-duration {
        justify-self: start !important;
    }
}

/* Specificity bridge over the editorial guest exam theme. */
body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card {
    --exam-card-accent: #14845f;
    --exam-card-strong: #14845f;
    gap: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    color: #111827 !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card::before,
body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card::after {
    content: none !important;
    display: none !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card:hover,
body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card:focus-within {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.11), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card__thumb {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e5e9f0 !important;
    border-radius: 0 !important;
    background: #eef8f2 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card__thumb img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    object-fit: cover !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card__body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0.95rem 1rem 1rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card__tags,
body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card__info {
    display: flex !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card__tags {
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.32rem 0.5rem !important;
    margin: 0 0 0.5rem !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-tag {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #14845f !important;
    box-shadow: none !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-tag.is-vip {
    color: #8b6500 !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card h3 {
    min-height: 0 !important;
    margin: 0 0 0.5rem !important;
    color: #111827 !important;
    font-size: clamp(1.02rem, 1.2vw, 1.16rem) !important;
    font-weight: 900 !important;
    line-height: 1.28 !important;
    letter-spacing: 0 !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card p[data-exam-meta] {
    min-height: 0 !important;
    margin: 0 0 0.85rem !important;
    color: #5d6b82 !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    -webkit-line-clamp: 2 !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card__info {
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.34rem 0.55rem !important;
    margin: auto 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #667085 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card__info span {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    font: inherit !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card__info span + span::before {
    content: "" !important;
    display: inline-block !important;
    width: 0.3rem !important;
    min-width: 0.3rem !important;
    height: 0.3rem !important;
    border-radius: 999px !important;
    background: #c5ccd8 !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card__info strong {
    color: #14845f !important;
    font: inherit !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card__footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin: auto 0 0 !important;
    padding: 0.78rem 1rem 1rem !important;
    border: 0 !important;
    border-top: 1px solid #e5e9f0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-action,
body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-action.is-login-required,
body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-action.is-resume {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.65rem !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    box-shadow: none !important;
    font-size: 0.92rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-decoration: none !important;
    transform: none !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-action:hover,
body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-action:focus-visible,
body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-action.is-login-required:hover,
body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-action.is-login-required:focus-visible {
    background: transparent !important;
    color: #087342 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-action::after {
    content: "\2192" !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.05rem !important;
    height: 2.05rem !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 999px !important;
    background: #f4f1ef !important;
    color: #111827 !important;
    box-shadow: none !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}

body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-action:hover::after,
body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-action:focus-visible::after {
    border-color: rgba(8, 115, 66, 0.18) !important;
    background: #e6f7f1 !important;
    color: #087342 !important;
    transform: translateX(2px) !important;
}

@media (max-width: 560px) {
    body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card__footer {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-action {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

body.home-page .class-showcase-card.is-closed {
    opacity: 0.64;
    filter: grayscale(0.42);
}

body.home-page .class-showcase-card.is-closed:hover,
body.home-page .class-showcase-card.is-closed:focus-within {
    transform: none !important;
}

body.home-page .class-showcase-card.is-closed .class-showcase-card__media img {
    filter: grayscale(0.75);
}

body.home-page .class-showcase-card.is-closed a[aria-disabled="true"],
body.home-page .class-showcase-card.is-closed button:disabled,
body.home-page .class-showcase-card.is-closed input:disabled,
body.home-page .class-showcase-card.is-closed select:disabled,
body.home-page .class-showcase-card.is-closed textarea:disabled {
    cursor: not-allowed;
}

body.home-page .class-showcase-card.is-closed .class-section__class-switcher a,
body.home-page .class-showcase-card.is-closed .class-section__class-switcher button {
    cursor: pointer;
}

body.home-page .class-showcase-card__state,
body.home-page .class-section__class-tab-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.35rem;
    padding: 0.18rem 0.58rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 0.72rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

body.home-page .class-showcase-card__state.is-closed {
    background: #dfe3e8;
    color: #3f4854;
}

body.home-page .class-section__class-tab.is-closed {
    opacity: 0.64;
    filter: grayscale(0.5);
}

body.home-page .class-section__class-tab.is-closed .class-section__class-tab-thumb img {
    filter: grayscale(0.75);
}

body.home-page .class-section__class-tab-state {
    justify-self: start;
    margin-top: 0.1rem;
}

body.home-page a.class-showcase-card__button.class-showcase-card__button--dark.class-zoom-link,
body.home-page .class-showcase-card.is-expanded a.class-showcase-card__button.class-showcase-card__button--dark.class-zoom-link {
    background: #e53935 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(229, 57, 53, 0.24) !important;
}

body.home-page a.class-showcase-card__button.class-showcase-card__button--dark.class-zoom-link:hover,
body.home-page a.class-showcase-card__button.class-showcase-card__button--dark.class-zoom-link:focus-visible,
body.home-page .class-showcase-card.is-expanded a.class-showcase-card__button.class-showcase-card__button--dark.class-zoom-link:hover,
body.home-page .class-showcase-card.is-expanded a.class-showcase-card__button.class-showcase-card__button--dark.class-zoom-link:focus-visible {
    background: #c62828 !important;
    color: #ffffff !important;
    box-shadow: 0 16px 30px rgba(198, 40, 40, 0.28) !important;
}

/* Merge hero panel and the active showcase card into a single unified box. */
body.home-page .class-section .class-hero-panel + .class-grid:not(.class-grid--guest-showcase),
body.home-page .class-section .class-hero-panel + .class-section__class-switcher + .class-grid {
    margin-top: 0 !important;
}

body.home-page .class-section .class-hero-panel + .class-section__class-switcher,
body.home-page .class-section .class-hero-panel:has(+ .class-section__class-switcher + .class-grid) + .class-section__class-switcher {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0.85rem 1rem !important;
    background: #ffffff !important;
    border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 0 !important;
}

body.home-page .class-section .class-hero-panel:has(+ .class-grid:not(.class-grid--guest-showcase)),
body.home-page .class-section .class-hero-panel:has(+ .class-section__class-switcher + .class-grid) {
    border-bottom: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left-color: rgba(15, 23, 42, 0.08) !important;
    border-right-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: none !important;
    padding-bottom: 1.1rem !important;
}

body.home-page .class-section .class-hero-panel + .class-grid:not(.class-grid--guest-showcase) > .class-showcase-card.is-expanded,
body.home-page .class-section .class-hero-panel + .class-section__class-switcher + .class-grid > .class-showcase-card.is-expanded {
    margin-top: 0 !important;
    border-top: 0 !important;
    border-top-right-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-left-color: rgba(15, 23, 42, 0.08) !important;
    border-right-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07) !important;
}

/* Keep homepage sections aligned to the About section container. */
body.home-page {
    --home-section-standard-width: min(calc(100% - 2rem), 96rem);
}

body.home-page .home-about > .container,
body.home-page .class-section > .container,
body.home-page .home-courses > .container,
body.home-page .home-exams > .container,
body.home-page .home-games > .container,
body.home-page .home-gallery > .container,
body.home-page .blog-showcase > .container {
    width: var(--home-section-standard-width) !important;
    max-width: none !important;
    margin-inline: auto !important;
}

@media (max-width: 760px) {
    body.home-page {
        --home-section-standard-width: min(calc(100% - 1rem), 96rem);
    }
}

/* Home game library redesign */
body.home-page .home-main > .home-games,
body.home-page .home-main--guest > .home-games {
    position: relative !important;
    padding-top: 2.4rem !important;
    padding-bottom: 3.2rem !important;
    margin-top: 0 !important;
    background: transparent !important;
    overflow: hidden;
}

body.home-page .home-games > .container > .section-heading.home-games-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 22rem !important;
    align-items: start !important;
    gap: 2rem !important;
    margin: 0 0 2rem !important;
    padding: 0 !important;
    text-align: left !important;
}

body.home-page .home-games .home-games-hero__copy {
    max-width: 44rem !important;
    text-align: left !important;
}

body.home-page .home-games .home-games-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
    color: #667085;
    font-size: 0.95rem;
    font-weight: 800;
}

body.home-page .home-games .home-games-breadcrumb a {
    color: #16a35a;
    text-decoration: none;
}

body.home-page .home-games .home-games-breadcrumb a:hover,
body.home-page .home-games .home-games-breadcrumb a:focus-visible {
    color: #0b6f34;
    outline: none;
}

body.home-page .home-main > .home-games > .container > .section-heading.home-games-hero h2,
body.home-page .home-main--guest > .home-games > .container > .section-heading.home-games-hero h2,
body.home-page .home-games .home-games-hero h2 {
    margin: 0 0 0.65rem !important;
    color: #10223b !important;
    font-size: 2.15rem !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    background: none !important;
    -webkit-text-fill-color: #10223b !important;
}

body.home-page .home-main > .home-games > .container > .section-heading.home-games-hero p,
body.home-page .home-main--guest > .home-games > .container > .section-heading.home-games-hero p,
body.home-page .home-games .home-games-hero p {
    margin: 0 !important;
    max-width: 38rem !important;
    color: #5d6b82 !important;
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
    font-weight: 700;
}

body.home-page .home-games .home-games-hero__art {
    position: relative;
    min-height: 8.6rem;
}

body.home-page .home-games .home-games-hero__badge,
body.home-page .home-games .home-games-hero__star,
body.home-page .home-games .home-games-hero__spark {
    position: absolute;
    display: block;
}

body.home-page .home-games .home-games-hero__badge {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 1rem 1.8rem rgba(16, 34, 59, 0.12);
}

body.home-page .home-games .home-games-hero__badge--puzzle {
    left: 4.3rem;
    top: 0.45rem;
    background: linear-gradient(145deg, #8ee2a7, #39bf73);
}

body.home-page .home-games .home-games-hero__badge--puzzle::before,
body.home-page .home-games .home-games-hero__badge--puzzle::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 0.45rem;
}

body.home-page .home-games .home-games-hero__badge--puzzle::before {
    left: 1.1rem;
    top: 1.75rem;
    width: 2.2rem;
    height: 0.9rem;
}

body.home-page .home-games .home-games-hero__badge--puzzle::after {
    left: 1.75rem;
    top: 1.1rem;
    width: 0.9rem;
    height: 2.2rem;
}

body.home-page .home-games .home-games-hero__badge--pad {
    right: 1.15rem;
    top: 0;
    background: linear-gradient(145deg, #ad92ff, #7d6be8);
}

body.home-page .home-games .home-games-hero__badge--pad::before {
    content: "";
    position: absolute;
    left: 1.05rem;
    top: 1.55rem;
    width: 2.3rem;
    height: 1.35rem;
    border: 0.25rem solid rgba(255, 255, 255, 0.76);
    border-radius: 1rem;
}

body.home-page .home-games .home-games-hero__badge--pad::after {
    content: "";
    position: absolute;
    left: 1.45rem;
    top: 2rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 1.35rem -0.1rem 0 rgba(255, 255, 255, 0.86);
}

body.home-page .home-games .home-games-hero__star {
    left: 9rem;
    top: 1.25rem;
    width: 7.4rem;
    height: 7.4rem;
}

body.home-page .home-games .home-games-hero__star::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #ffd95e, #ffb82e);
    clip-path: polygon(50% 4%, 62% 35%, 95% 36%, 68% 56%, 78% 90%, 50% 70%, 22% 90%, 32% 56%, 5% 36%, 38% 35%);
    filter: drop-shadow(0 1rem 1.1rem rgba(230, 157, 20, 0.22));
}

body.home-page .home-games .home-games-hero__star::after {
    content: "";
    position: absolute;
    left: 2.65rem;
    top: 3rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #774309;
    box-shadow: 1.55rem 0 0 #774309;
}

body.home-page .home-games .home-games-hero__spark {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 0.16rem;
    transform: rotate(45deg);
    background: #b7a2df;
}

body.home-page .home-games .home-games-hero__spark--one {
    left: 1.4rem;
    top: 1.6rem;
}

body.home-page .home-games .home-games-hero__spark--two {
    right: 0;
    top: 4.4rem;
    background: #f0bd45;
}

body.home-page .home-games .home-games-hero__spark--three {
    left: 5rem;
    top: 6.6rem;
    background: #9ab8d6;
}

body.home-page .home-games-shell {
    display: block !important;
}

body.home-page .home-games-filters {
    display: flex !important;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 1.8rem !important;
    padding: 0.15rem 0.1rem 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
}

body.home-page .home-games-filters::-webkit-scrollbar {
    display: none;
}

body.home-page .home-games-filter-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    min-height: 3.1rem;
    padding: 0.72rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #26384f;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

body.home-page .home-games-filter-btn:hover,
body.home-page .home-games-filter-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(22, 163, 90, 0.32);
    outline: none;
}

body.home-page .home-games-filter-btn.is-active {
    border-color: #16a35a !important;
    background: #16a35a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
}

body.home-page .home-games-filter-btn__icon {
    position: relative;
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 1.15rem;
    color: currentColor;
}

body.home-page .home-games-filter-btn__icon::before,
body.home-page .home-games-filter-btn__icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

body.home-page .home-games-filter-btn__icon--grid::before {
    inset: 0;
    border-radius: 0.18rem;
    background:
        linear-gradient(currentColor 0 0) left top / 0.42rem 0.42rem no-repeat,
        linear-gradient(currentColor 0 0) right top / 0.42rem 0.42rem no-repeat,
        linear-gradient(currentColor 0 0) left bottom / 0.42rem 0.42rem no-repeat,
        linear-gradient(currentColor 0 0) right bottom / 0.42rem 0.42rem no-repeat;
}

body.home-page .home-games-filter-btn__icon--book::before {
    inset: 0.08rem;
    border: 0.16rem solid currentColor;
    border-radius: 0.2rem;
}

body.home-page .home-games-filter-btn__icon--book::after {
    top: 0.2rem;
    bottom: 0.2rem;
    left: 0.5rem;
    border-left: 0.15rem solid currentColor;
}

body.home-page .home-games-filter-btn__icon--spell::before {
    content: "Aa";
    inset: auto;
    left: -0.02rem;
    top: -0.18rem;
    color: currentColor;
    font-size: 0.92rem;
    font-weight: 900;
}

body.home-page .home-games-filter-btn__icon--headset::before {
    left: 0.1rem;
    top: 0.12rem;
    width: 0.95rem;
    height: 0.78rem;
    border: 0.16rem solid currentColor;
    border-bottom: 0;
    border-radius: 0.95rem 0.95rem 0 0;
}

body.home-page .home-games-filter-btn__icon--headset::after {
    left: 0.04rem;
    top: 0.58rem;
    width: 0.26rem;
    height: 0.44rem;
    border-radius: 0.14rem;
    background: currentColor;
    box-shadow: 0.86rem 0 0 currentColor;
}

body.home-page .home-games-filter-btn__icon--chat::before {
    inset: 0.16rem 0.1rem 0.28rem;
    border: 0.16rem solid currentColor;
    border-radius: 0.32rem;
}

body.home-page .home-games-filter-btn__icon--chat::after {
    right: 0.18rem;
    bottom: 0.08rem;
    width: 0.38rem;
    height: 0.38rem;
    border-right: 0.16rem solid currentColor;
    border-bottom: 0.16rem solid currentColor;
    transform: rotate(35deg);
}

body.home-page .home-games-filter-btn__icon--spark::before {
    left: 0.44rem;
    top: 0.02rem;
    width: 0.3rem;
    height: 1.05rem;
    border-radius: 999px;
    background: currentColor;
}

body.home-page .home-games-filter-btn__icon--spark::after {
    left: 0.07rem;
    top: 0.4rem;
    width: 1.05rem;
    height: 0.3rem;
    border-radius: 999px;
    background: currentColor;
}

body.home-page .home-games-filter-btn__icon--more::before {
    left: 0.08rem;
    top: 0.08rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0.62rem 0 0 currentColor, 0 0.62rem 0 currentColor, 0.62rem 0.62rem 0 currentColor;
}

body.home-page .home-games-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.home-page .home-games-panel {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-page .home-games-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

body.home-page .home-game-card {
    min-width: 0;
    border-radius: 1.25rem !important;
    border: 1px solid #e4eaf2 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 0.9rem 2rem rgba(16, 34, 59, 0.07) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

body.home-page .home-game-card:hover,
body.home-page .home-game-card:focus-within {
    transform: translateY(-2px) !important;
    border-color: rgba(22, 163, 90, 0.28) !important;
    box-shadow: 0 1.2rem 2.45rem rgba(16, 34, 59, 0.1) !important;
}

body.home-page .home-game-card__link {
    display: grid !important;
    grid-template-columns: 6.85rem minmax(0, 1fr) 2.45rem !important;
    align-items: center !important;
    gap: 1.05rem !important;
    min-height: 9.75rem !important;
    padding: 1.3rem 1.15rem 1.3rem 1.3rem !important;
    color: inherit !important;
    text-decoration: none !important;
}

body.home-page .home-game-card__link:focus-visible {
    outline: 3px solid rgba(22, 163, 90, 0.28) !important;
    outline-offset: 3px !important;
    border-radius: 1.25rem !important;
}

body.home-page .home-game-card__thumb {
    width: 6.85rem;
    height: 6.85rem;
    align-self: center !important;
    border-radius: 1rem !important;
    overflow: hidden;
    background: #eef4f6 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

body.home-page .home-game-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home-page .home-game-card__body {
    display: grid !important;
    min-width: 0 !important;
    gap: 0.5rem !important;
}

body.home-page .home-game-card__head {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

body.home-page .home-game-card__count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 1.55rem !important;
    padding: 0.28rem 0.7rem !important;
    border-radius: 999px !important;
    background: #dff5ef !important;
    color: #057244 !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
}

body.home-page .home-game-card h3 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 1.18rem !important;
    line-height: 1.22 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
}

body.home-page .home-game-card__summary {
    color: #344256 !important;
    font-size: 0.95rem !important;
    line-height: 1.52 !important;
    font-weight: 650;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.home-page .home-game-card__footer {
    display: none !important;
}

body.home-page .home-game-card__meta {
    display: none !important;
}

body.home-page .home-game-card__arrow {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.05rem !important;
    height: 2.05rem !important;
    border-radius: 50% !important;
    border: 1px solid #70c86d !important;
    background: #ffffff !important;
    color: #26a442 !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease !important;
}

body.home-page .home-game-card:hover .home-game-card__arrow,
body.home-page .home-game-card:focus-within .home-game-card__arrow {
    transform: translateX(2px) !important;
    background: #16a35a !important;
    color: #ffffff !important;
}

body.home-page .home-games-empty {
    margin: 1rem 0 0 !important;
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    background: #f6f9fc !important;
    color: #667085 !important;
    font-weight: 800 !important;
    text-align: center !important;
}

body.home-page .home-games-pagination {
    margin-top: 1.3rem !important;
}

@media (max-width: 1180px) {
    body.home-page .home-games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    body.home-page .home-games > .container > .section-heading.home-games-hero {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    body.home-page .home-games .home-games-hero__art {
        display: none;
    }
}

@media (max-width: 700px) {
    body.home-page .home-main > .home-games,
    body.home-page .home-main--guest > .home-games {
        padding-top: 1.7rem !important;
        padding-bottom: 2.2rem !important;
    }

    body.home-page .home-main > .home-games > .container > .section-heading.home-games-hero h2,
    body.home-page .home-main--guest > .home-games > .container > .section-heading.home-games-hero h2,
    body.home-page .home-games .home-games-hero h2 {
        font-size: 1.9rem !important;
    }

    body.home-page .home-main > .home-games > .container > .section-heading.home-games-hero p,
    body.home-page .home-main--guest > .home-games > .container > .section-heading.home-games-hero p,
    body.home-page .home-games .home-games-hero p {
        font-size: 0.98rem !important;
    }

    body.home-page .home-games-filters {
        display: flex !important;
        margin-bottom: 1.2rem !important;
    }

    body.home-page .home-games-grid {
        grid-template-columns: 1fr !important;
    }

    body.home-page .home-game-card__link {
        grid-template-columns: 5.5rem minmax(0, 1fr) 2.1rem !important;
        gap: 0.85rem !important;
        min-height: 8.5rem !important;
        padding: 1rem !important;
    }

    body.home-page .home-game-card__thumb {
        width: 5.5rem;
        height: 5.5rem;
        border-radius: 0.9rem !important;
    }

    body.home-page .home-game-card h3 {
        font-size: 1.05rem !important;
    }

    body.home-page .home-game-card__summary {
        font-size: 0.88rem !important;
    }
}

/* Keep lower home sections on the same surface as the sections above. */
body.home-page section#blog.home-section.blog-section.blog-showcase,
body.home-page .home-main > section#blog.home-section.blog-section.blog-showcase,
body.home-page .home-main--guest > section#blog.home-section.blog-section.blog-showcase {
    background:
        radial-gradient(circle at 10% 12%, rgba(107, 209, 255, 0.12), rgba(107, 209, 255, 0) 24%),
        radial-gradient(circle at 92% 16%, rgba(52, 177, 147, 0.16), rgba(52, 177, 147, 0) 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 243, 236, 0.96)) !important;
}

body.home-page section#kho-game.home-section.home-games,
body.home-page .home-main > section#kho-game.home-section.home-games,
body.home-page .home-main--guest > section#kho-game.home-section.home-games {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

/* Keep home boxes on the same corner rhythm as .home-about__shell. */
body.home-page {
    --home-box-radius: 2rem;
}

body.home-page .hero-feature__board,
body.home-page .hero-feature__stat,
body.home-page .home-about__shell,
body.home-page .class-hero-panel,
body.home-page .class-hero-stat,
body.home-page .class-section .class-showcase-card,
body.home-page .class-grid > .class-showcase-card,
body.home-page .class-grid.class-grid--guest-showcase .class-showcase-card.is-restricted,
body.home-page .class-section .class-hero-panel + .class-grid:not(.class-grid--guest-showcase) > .class-showcase-card.is-expanded,
body.home-page .class-section .class-hero-panel + .class-section__class-switcher + .class-grid > .class-showcase-card.is-expanded,
body.home-page .home-courses .course-card,
body.home-page .home-main--guest .home-courses .course-card,
body.home-page .home-main:not(.home-main--guest) .home-courses .course-card,
body.home-page .home-exams .exam-home-card,
body.home-page .home-exams--guest-showcase .exam-home-card,
body.home-page .home-main--guest .home-exams.home-exams--guest-showcase .exam-home-card,
body.home-page .home-game-card,
body.home-page .blog-showcase .blog-card,
body.home-page .exam-random-card,
body.home-page .course-empty-state,
body.home-page .home-exams-empty,
body.home-page .home-games-empty {
    border-radius: var(--home-box-radius) !important;
}

body.home-page .home-exams [data-exam-item][hidden],
body.home-page .home-exams--guest-showcase [data-exam-item][hidden],
body.home-page .home-main--guest .home-exams.home-exams--guest-showcase [data-exam-item][hidden],
body.home-page [data-class-practice] [data-class-practice-item][hidden] {
    display: none !important;
}

/* Re-apply merge after the global home-box-radius rule above. */
body.home-page .class-section .class-hero-panel:has(+ .class-grid:not(.class-grid--guest-showcase)),
body.home-page .class-section .class-hero-panel:has(+ .class-section__class-switcher + .class-grid) {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body.home-page .class-section .class-hero-panel + .class-grid:not(.class-grid--guest-showcase) > .class-showcase-card.is-expanded,
body.home-page .class-section .class-hero-panel + .class-section__class-switcher + .class-grid > .class-showcase-card.is-expanded {
    border-top-right-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top: 0 !important;
    margin-top: 0 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07) !important;
}

@media (max-width: 640px) {
    body.home-page {
        --home-box-radius: 1.5rem;
    }
}

/* Make every class-section box white. */
body.home-page section#lop-hoc.class-section.home-section .class-hero-panel,
body.home-page section#lop-hoc.class-section.home-section .class-hero-stat,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__lead,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__content,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__hero,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__guest-meta,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__guest-meta-item,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__detail-shell,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__feature-panel,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__stats,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__stat,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__user-card,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__attendance,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__leaderboard,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__practice,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__todo,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__class-options-slot,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__course-tabs-head,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__course-panel,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__course-stats,
body.home-page section#lop-hoc.class-section.home-section .class-homework-inline,
body.home-page section#lop-hoc.class-section.home-section .class-homework-inline__head,
body.home-page section#lop-hoc.class-section.home-section .class-section__class-switcher,
body.home-page section#lop-hoc.class-section.home-section .class-section__class-switcher.is-inside-card,
body.home-page section#lop-hoc.class-section.home-section .class-section__class-tab,
body.home-page section#lop-hoc.class-section.home-section .class-todo-home__group,
body.home-page section#lop-hoc.class-section.home-section .class-todo-home__group-head,
body.home-page section#lop-hoc.class-section.home-section .class-todo-home__item,
body.home-page section#lop-hoc.class-section.home-section .class-todo-home__empty,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__sticker-types,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__sticker-type,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__leaderboard-board,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__leaderboard-item,
body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__badge-progress {
    background: #ffffff !important;
    background-image: none !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__leaderboard-item.is-top-1 {
    background: linear-gradient(135deg, #fff8dd 0%, #ffef9f 100%) !important;
    border-color: rgba(219, 169, 18, 0.42) !important;
    box-shadow: 0 12px 28px rgba(219, 169, 18, 0.14) !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__leaderboard-item.is-top-2 {
    background: linear-gradient(135deg, #eefaf3 0%, #d8f3e4 100%) !important;
    border-color: rgba(18, 142, 77, 0.3) !important;
    box-shadow: 0 10px 24px rgba(18, 142, 77, 0.1) !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__leaderboard-item.is-top-3 {
    background: linear-gradient(135deg, #fff1e8 0%, #ffdfc7 100%) !important;
    border-color: rgba(223, 117, 41, 0.32) !important;
    box-shadow: 0 10px 24px rgba(223, 117, 41, 0.1) !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__leaderboard-item.is-top-1 .class-showcase-card__leaderboard-rank {
    background: linear-gradient(135deg, #ffdc52 0%, #efbc1c 100%) !important;
    border-color: rgba(219, 169, 18, 0.46) !important;
    color: #4f3900 !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__leaderboard-item.is-top-2 .class-showcase-card__leaderboard-rank {
    background: #15914f !important;
    border-color: rgba(21, 145, 79, 0.34) !important;
    color: #ffffff !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-showcase-card__leaderboard-item.is-top-3 .class-showcase-card__leaderboard-rank {
    background: #f07d35 !important;
    border-color: rgba(240, 125, 53, 0.34) !important;
    color: #ffffff !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-todo-home__group,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group {
    background: #fffbe6 !important;
    background-image: none !important;
    border-color: rgba(234, 179, 8, 0.32) !important;
    box-shadow: none !important;
    transform: none;
    transition: border-color .18s ease;
}

body.home-page section#lop-hoc.class-section.home-section .class-todo-home__group::after,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group::after {
    content: none !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-todo-home__group.class-todo-home__group--completed,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group.class-todo-home__group--completed {
    background: #ffffff !important;
    background-image: none !important;
    border-color: rgba(19, 19, 19, 0.08) !important;
    box-shadow: none !important;
    transform: none;
}

body.home-page section#lop-hoc.class-section.home-section .class-todo-home__group .class-todo-home__group-head,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group-head {
    background: transparent !important;
    background-image: none !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-todo-home__group:focus,
body.home-page section#lop-hoc.class-section.home-section .class-todo-home__group:focus-visible,
body.home-page section#lop-hoc.class-section.home-section .class-todo-home__group:focus-within,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group:focus,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group:focus-visible,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group:focus-within {
    outline: none;
    border-color: rgba(234, 179, 8, 0.32) !important;
    box-shadow: none !important;
}

body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[data-class-feature-panel='todo'].is-active .class-todo-home__group:not(.class-todo-home__group--completed) {
    border-color: rgba(234, 179, 8, 0.32) !important;
    box-shadow: none !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-todo-home__group.class-todo-home__group--completed:focus,
body.home-page section#lop-hoc.class-section.home-section .class-todo-home__group.class-todo-home__group--completed:focus-visible,
body.home-page section#lop-hoc.class-section.home-section .class-todo-home__group.class-todo-home__group--completed:focus-within,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group.class-todo-home__group--completed:focus,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group.class-todo-home__group--completed:focus-visible,
body.home-page .class-showcase-card.is-expanded .class-showcase-card__todo .class-todo-home__group.class-todo-home__group--completed:focus-within {
    box-shadow: none !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-section__class-tab.is-active {
    --class-active-green: var(--csc-accent, #108138);
    background: var(--class-active-green) !important;
    background-image: linear-gradient(135deg, #108138 0%, #0f7a36 100%) !important;
    border-color: color-mix(in srgb, var(--class-active-green) 84%, #ffffff) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(16, 129, 56, 0.24) !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-section__class-tab.is-active:hover,
body.home-page section#lop-hoc.class-section.home-section .class-section__class-tab.is-active:focus-visible {
    background: #0f7434 !important;
    background-image: linear-gradient(135deg, #11913f 0%, #0f7434 100%) !important;
    border-color: #0f7434 !important;
    box-shadow: 0 0 0 3px rgba(16, 129, 56, 0.18), 0 14px 28px rgba(16, 129, 56, 0.24) !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-section__class-tab.is-active .class-section__class-tab-label,
body.home-page section#lop-hoc.class-section.home-section .class-section__class-tab.is-active .class-section__class-tab-title,
body.home-page section#lop-hoc.class-section.home-section .class-section__class-tab.is-active .class-section__class-tab-state {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-section__class-tab.is-active .class-section__class-tab-label {
    color: rgba(255, 255, 255, 0.82) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.82) !important;
}

body.home-page section#lop-hoc.class-section.home-section .class-section__class-tab.is-active .class-section__class-tab-thumb {
    border-color: rgba(255, 255, 255, 0.54) !important;
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body.home-page section#lop-hoc.class-section.home-section .class-section__class-tab.is-active::after {
    background: #ffffff !important;
    color: var(--class-active-green, #108138) !important;
    -webkit-text-fill-color: var(--class-active-green, #108138) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

body.home-page section#lop-hoc.class-section.home-section .class-section__class-tab.is-active .class-section__class-tab-state {
    background: rgba(255, 255, 255, 0.16) !important;
}

/* Standard homepage section H2 size. */
body.home-page .home-about .home-about__content > h2,
body.home-page section#lop-hoc.class-section.home-section .class-section__guest-heading > h2,
body.home-page section#lop-hoc.class-section.home-section .class-hero-panel__copy > h2,
body.home-page .class-section > .container > .section-heading h2,
body.home-page .home-courses > .container > .section-heading h2,
body.home-page .home-exams > .container > .section-heading h2,
body.home-page .home-games > .container > .section-heading.home-games-hero h2,
body.home-page .home-main > section#kho-game.home-section.home-games > .container > .section-heading.home-games-hero h2,
body.home-page .home-main--guest > section#kho-game.home-section.home-games > .container > .section-heading.home-games-hero h2,
body.home-page .blog-showcase .section-text > h2,
body.home-page .blog-showcase .section-intro h2 {
    font-size: 35px !important;
    line-height: 1.12 !important;
}

body.home-page .class-showcase-card__function-dropdown-toggle {
    display: none;
}

@media (max-width: 760px) {
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__content {
        display: grid !important;
        gap: 0.82rem !important;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__content > .class-showcase-card__function-nav {
        position: sticky !important;
        top: var(--class-feature-sticky-top, 84px) !important;
        z-index: 92 !important;
        order: 1 !important;
        display: grid !important;
        gap: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0.42rem !important;
        border: 1px solid rgba(15, 23, 42, 0.1) !important;
        border-radius: 0.9rem !important;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__hero {
        order: 2 !important;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__detail-shell {
        order: 3 !important;
        display: grid !important;
        gap: 0.8rem !important;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-dropdown-toggle {
        width: 100%;
        min-height: 3.35rem;
        display: grid !important;
        grid-template-columns: 2.28rem minmax(0, 1fr) 1.6rem;
        align-items: center;
        gap: 0.7rem;
        padding: 0.56rem 0.7rem;
        border: 0;
        border-radius: 0.68rem;
        background: var(--csc-brand, #108138);
        color: #ffffff;
        font-family: 'Google Sans Flex';
        text-align: left;
        cursor: pointer;
        box-shadow: none;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-dropdown-toggle:focus-visible {
        outline: 3px solid color-mix(in srgb, var(--csc-brand, #108138) 28%, transparent);
        outline-offset: 2px;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-dropdown-icon {
        width: 2.28rem;
        height: 2.28rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #ffffff;
        color: var(--csc-brand, #108138);
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-dropdown-icon svg {
        width: 1.12rem;
        height: 1.12rem;
        display: block;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-dropdown-copy {
        min-width: 0;
        display: grid;
        gap: 0.1rem;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-dropdown-copy strong {
        overflow: hidden;
        color: inherit;
        font-size: 0.95rem;
        font-weight: 900;
        line-height: 1.12;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-dropdown-copy small {
        overflow: hidden;
        color: rgba(255, 255, 255, 0.84);
        font-size: 0.74rem;
        font-weight: 700;
        line-height: 1.18;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-dropdown-caret {
        width: 0.72rem;
        height: 0.72rem;
        justify-self: center;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-0.12rem) rotate(45deg);
        transition: transform 0.18s ease;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__function-nav.is-mobile-open .class-showcase-card__function-dropdown-caret {
        transform: translateY(0.12rem) rotate(225deg);
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__content > .class-showcase-card__function-nav > .class-showcase-card__function-btn {
        display: none !important;
        min-height: 3.2rem !important;
        margin-top: 0.36rem !important;
        padding: 0.58rem 0.68rem !important;
        border-color: rgba(15, 23, 42, 0.08) !important;
        background: #f7f8fa !important;
        box-shadow: none !important;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__content > .class-showcase-card__function-nav.is-mobile-open > .class-showcase-card__function-btn {
        display: grid !important;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__content > .class-showcase-card__function-nav.is-mobile-open > .class-showcase-card__function-btn.is-active {
        background: var(--csc-brand, #108138) !important;
        border-color: var(--csc-brand, #108138) !important;
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel,
    body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel[hidden] {
        order: var(--class-feature-panel-order, 1) !important;
        display: grid !important;
        scroll-margin-top: var(--class-feature-scroll-offset, 150px);
    }

    body.home-page .class-showcase-card.is-expanded .class-showcase-card__feature-panel:not(.is-active) {
        opacity: 1 !important;
    }
}

/* Letter-style introduction panel. Keep this late in the file so it wins home-about overrides. */
body.home-page section#gioi-thieu-trung-tam.home-about {
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 25rem),
        radial-gradient(circle at 92% 92%, rgba(245, 197, 66, 0.18), rgba(245, 197, 66, 0) 26rem),
        radial-gradient(circle at 12px 18px, rgba(104, 82, 43, 0.06) 0 0.8px, transparent 1px),
        radial-gradient(circle at 34px 10px, rgba(255, 255, 255, 0.55) 0 0.9px, transparent 1.2px),
        repeating-linear-gradient(0deg, rgba(94, 72, 36, 0.045) 0, rgba(94, 72, 36, 0.045) 1px, transparent 1px, transparent 2.35rem),
        linear-gradient(135deg, #fff9eb 0%, #fffdf7 54%, #f7eddb 100%) !important;
    background-size: auto, auto, 48px 48px, 62px 62px, auto, auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    clip-path: none !important;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__shell.home-about__letter {
    position: relative;
    isolation: isolate;
    display: block !important;
    width: 100% !important;
    max-width: 96rem !important;
    margin: clamp(2rem, 4vw, 3.5rem) auto 0 !important;
    padding: clamp(2.25rem, 4.6vw, 4.2rem) clamp(1.35rem, 5vw, 4.8rem) clamp(2.25rem, 4.2vw, 3.9rem) !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-paper {
    position: relative;
    display: grid;
    gap: 1.85rem;
    max-width: 76rem;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #111827;
    font-family: "Google Sans Flex", Arial, sans-serif;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-paper::before {
    content: none;
    display: none;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-paper::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 7.4rem;
    aspect-ratio: 1;
    border: 1px solid rgba(16, 129, 56, 0.14);
    border-radius: 999px;
    background: rgba(255, 252, 241, 0.56) url("../img/logo-mark.svg") center / 58% auto no-repeat;
    opacity: 0.18;
    pointer-events: none;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(98, 75, 37, 0.16);
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.45rem;
    height: 3.45rem;
    border: 1px solid rgba(16, 129, 56, 0.2);
    border-radius: 999px;
    background: rgba(238, 248, 243, 0.9);
    box-shadow: 0 8px 18px rgba(16, 129, 56, 0.08);
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-mark img {
    display: block;
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-title {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-title > span,
body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-note {
    color: #108138 !important;
    font-family: "Google Sans Flex", Arial, sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-note {
    align-self: start;
    max-width: 10rem;
    padding: 0.58rem 0.74rem;
    border: 1px dashed rgba(16, 129, 56, 0.42);
    border-radius: 0.55rem;
    background: rgba(255, 247, 205, 0.78);
    color: #1c344f !important;
    text-align: center;
    transform: rotate(-1.25deg);
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter h2 {
    margin: 0 !important;
    color: #1c344f !important;
    font-family: "Google Sans Flex", Arial, sans-serif !important;
    font-size: clamp(2.15rem, 3.6vw, 3.25rem) !important;
    font-weight: 900 !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
    text-transform: none;
    background: none !important;
    -webkit-text-fill-color: #1c344f !important;
    -webkit-background-clip: initial !important;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-body,
body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-foot {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 68rem);
    margin-inline: auto;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-body {
    gap: 1.2rem;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter p {
    max-width: none !important;
    margin: 0 !important;
    color: #111827 !important;
    font-family: "Google Sans Flex", Arial, sans-serif !important;
    font-size: 1.02rem !important;
    font-weight: 400;
    line-height: 1.82 !important;
    letter-spacing: 0 !important;
    text-align: left;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter .home-about__letter-quote {
    padding-left: 0;
    border-left: 0;
    color: #1c344f !important;
    font-size: 1.08rem !important;
    font-weight: 500;
    line-height: 1.62 !important;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-foot {
    justify-items: end;
    gap: 0.4rem;
    padding-top: 0.4rem;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-foot p {
    max-width: 32rem !important;
    text-align: right !important;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-signature {
    color: #1c344f !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-more {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    gap: 0.62rem;
    margin-top: 0.7rem;
    padding: 0.18rem 0 0.32rem;
    border-bottom: 1px solid rgba(16, 129, 56, 0.28);
    color: #108138 !important;
    font-family: "Google Sans Flex", Arial, sans-serif !important;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0 !important;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid rgba(16, 129, 56, 0.24);
    border-radius: 999px;
    background: rgba(255, 253, 247, 0.76);
    color: #108138;
    font-family: "Google Sans Flex", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-more:hover,
body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-more:focus-visible {
    border-color: rgba(16, 129, 56, 0.62);
    color: #0f7434 !important;
    outline: none;
}

body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-more:hover .home-about__letter-more-icon,
body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-more:focus-visible .home-about__letter-more-icon {
    transform: translateX(0.22rem);
    border-color: #108138;
    background: #108138;
    color: #ffffff;
}

@media (max-width: 900px) {
    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-paper {
        gap: 1.5rem;
        max-width: none;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-note {
        grid-column: 1 / -1;
        justify-self: start;
        max-width: none;
        transform: none;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter h2 {
        font-size: 2rem !important;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter p {
        font-size: 1rem !important;
        line-height: 1.72 !important;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter .home-about__letter-quote {
        font-size: 1.05rem !important;
        line-height: 1.62 !important;
    }
}

@media (max-width: 520px) {
    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__shell.home-about__letter {
        margin-top: 1.5rem !important;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-paper {
        padding: 0;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-paper::before {
        width: 4.6rem;
        height: 4.6rem;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-paper::after {
        display: none;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-head {
        gap: 0.75rem;
        padding-bottom: 1rem;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-mark {
        width: 2.8rem;
        height: 2.8rem;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-mark img {
        width: 1.72rem;
        height: 1.72rem;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-title > span,
    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-note {
        font-size: 0.68rem !important;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter h2 {
        font-size: 1.55rem !important;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-body {
        gap: 1rem;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter p,
    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter .home-about__letter-quote {
        font-size: 0.96rem !important;
        line-height: 1.64 !important;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-foot {
        justify-items: stretch;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-foot p {
        text-align: left !important;
    }

    body.home-page section#gioi-thieu-trung-tam.home-about .home-about__letter-more {
        justify-self: start;
    }
}

@media (min-width: 901px) {
    body.home-page section#lop-hoc.class-section.home-section .class-section__guest-heading > h2,
    body.home-page .home-courses > .container > .section-heading h2,
    body.home-page .home-exams > .container > .section-heading h2,
    body.home-page .home-exams-guest-copy h2,
    body.home-page .home-games > .container > .section-heading.home-games-hero h2,
    body.home-page .home-main > section#kho-game.home-section.home-games > .container > .section-heading.home-games-hero h2,
    body.home-page .home-main--guest > section#kho-game.home-section.home-games > .container > .section-heading.home-games-hero h2,
    body.home-page .home-gallery .section-text h2,
    body.home-page .home-gallery .section-intro h2,
    body.home-page .home-gallery__intro #homeGalleryTitle {
        font-size: 58px !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
        font-weight: 900 !important;
    }
}
