body.home-official-page {
    --home-bg: #f7f8fb;
    --home-surface: #ffffff;
    --home-text: #121722;
    --home-sub: #687386;
    --home-line: #e8edf4;
    --home-red: #d51f2b;
    --home-blue: #2f6fd6;
    --home-green: #31b36b;
    --home-shadow: 0 16px 36px rgba(20, 32, 50, 0.08);
    --home-soft-shadow: 0 8px 24px rgba(20, 32, 50, 0.06);
    font-family: 'Be Vietnam Pro', sans-serif;
    background: var(--home-bg);
    color: var(--home-text);
}

@property --home-card-y {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

.home-official-page h1,
.home-official-page h2,
.home-official-page h3,
.home-official-page .brand span {
    font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
    letter-spacing: 0;
}

.home-official-page .site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--home-line);
}

.home-official-page .header-inner {
    max-width: 1360px;
    height: 70px;
    min-width: 0;
    gap: 16px;
}

.home-official-page .brand {
    gap: 12px;
    color: var(--home-red);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.08em;
    min-width: 0;
    flex: 0 0 auto;
}

.home-official-page .brand span {
    flex: 0 0 auto;
    min-width: auto;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.home-official-page .brand img {
    height: 48px;
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 4vw, 52px);
    height: 70px;
    min-width: 0;
    flex: 1 1 auto;
}

.home-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 70px;
    color: var(--home-text);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.home-nav a:hover,
.home-nav a.is-active {
    color: var(--home-red);
}

.home-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: var(--home-red);
    transform: translateX(-50%);
}

.home-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
}

.home-official-page .theme-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--home-line);
    background: #fff;
    box-shadow: none;
}

.home-official-page .btn-ms-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    max-width: 160px;
    padding: 0 22px;
    border: 1px solid rgba(213, 31, 43, 0.42);
    border-radius: 7px;
    color: var(--home-red) !important;
    background: #fff;
    font-size: 14px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-official-page .user-info-display {
    color: var(--home-text);
    max-width: min(42vw, 360px);
}

.home-official-page .user-account-box[data-auth-ready="0"] {
    display: none;
}

.home-main {
    padding: 30px 0 16px;
}

.home-shell {
    width: min(1360px, calc(100% - 68px));
    margin: 0 auto;
}

.home-top-grid {
    display: grid;
    grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
}

.home-hero-card {
    display: grid;
    align-content: center;
    min-height: 350px;
    padding-left: 4px;
}

.home-hero-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 30px;
    margin-bottom: 16px;
    padding: 0 19px;
    border-radius: 999px;
    background: #fff2ec;
    color: var(--home-red);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.09em;
}

.home-hero-card h1 {
    margin: 0 0 12px;
    color: #11131a;
    font-size: 40px;
    line-height: 1.08;
}

.home-hero-card p {
    max-width: 350px;
    margin: 0;
    color: var(--home-sub);
    font-size: 16px;
    line-height: 1.55;
}

.home-hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 34px;
    height: 134px;
    align-items: start;
}

.home-hero-benefit {
    display: grid;
    grid-template-rows: 46px 40px 30px;
    gap: 9px;
    justify-items: center;
    align-items: start;
    text-align: center;
    opacity: 0.7;
    transform: translateY(0) scale(1);
    animation: homeBenefitFocus 9s ease-in-out infinite;
    will-change: opacity, transform;
}

.home-hero-benefit:nth-child(2) {
    animation-delay: 3s;
}

.home-hero-benefit:nth-child(3) {
    animation-delay: 6s;
}

@keyframes homeBenefitFocus {
    0%,
    27% {
        opacity: 1;
        transform: translateY(-2px) scale(1.035);
    }

    34%,
    100% {
        opacity: 0.7;
        transform: translateY(0) scale(1);
    }
}

.home-hero-benefit-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f4f7ff;
    color: var(--home-blue);
    box-shadow: inset 0 0 0 1px #e4ebfb;
    font-size: 22px;
    line-height: 1;
}

.home-hero-benefit-icon img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.home-hero-benefit strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    color: var(--home-text);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    transform: scale(1);
    animation: homeBenefitTitleFocus 9s ease-in-out infinite;
}

.home-hero-benefit:nth-child(2) strong {
    animation-delay: 3s;
}

.home-hero-benefit:nth-child(3) strong {
    animation-delay: 6s;
}

@keyframes homeBenefitTitleFocus {
    0%,
    27% {
        transform: scale(1.1);
    }

    34%,
    100% {
        transform: scale(1);
    }
}

.home-hero-benefit span:last-child {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 30px;
    color: var(--home-sub);
    font-size: 12px;
    line-height: 1.25;
}

.home-learning-section {
    min-width: 0;
}

.home-hero-learning {
    position: relative;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--home-shadow);
}

.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.home-section-head h2 {
    margin: 0;
    color: var(--home-text);
    font-size: 22px;
    line-height: 1.2;
}

.home-section-head h2 a {
    color: inherit;
    text-decoration: none;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--home-blue);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.home-section-link-icon {
    color: var(--home-red);
}

.home-section-link-icon img {
    display: block;
    width: 22px;
    height: 16px;
    object-fit: contain;
}

.home-section-head.compact h2 {
    font-size: 19px;
}

.home-learning-carousel {
    position: relative;
    min-width: 0;
}

.home-learning-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-learning-grid::-webkit-scrollbar {
    display: none;
}

.home-learning-card,
.home-learning-empty {
    color: inherit;
    text-decoration: none;
}

.home-learning-card {
    position: relative;
    display: grid;
    flex: 0 0 calc((100% - 42px) / 4);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 32, 50, 0.04);
    scroll-snap-align: start;
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    will-change: transform;
}

.home-learning-card:hover,
.home-learning-card:focus-visible {
    border-color: rgba(47, 111, 214, 0.28);
    box-shadow: 0 18px 38px rgba(20, 32, 50, 0.16);
    transform: translateY(-8px);
}

.home-learning-body {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
}

.home-learning-head {
    display: contents;
}

.home-learning-cover {
    position: relative;
    display: block;
    order: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
    background: #eef2f7;
}

.home-learning-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.home-learning-sale-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    display: inline-flex;
    align-items: center;
    height: 25px;
    padding: 0 9px;
    border-radius: 5px;
    background: var(--home-red);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(213, 31, 43, 0.2);
    z-index: 2;
}

.home-learning-body strong {
    order: 2;
    min-height: 36px;
    color: var(--home-text);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 900;
}

.home-learning-copy {
    display: none;
}

.home-learning-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    order: 1;
    max-height: 50px;
    overflow: hidden;
    align-content: flex-start;
}

.home-learning-tags span {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border: 1px solid #cfe0fb;
    border-radius: 4px;
    color: var(--home-blue);
    background: #f8fbff;
    font-size: 11px;
    font-weight: 800;
}

.home-learning-price {
    display: flex;
    order: 3;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 24px;
}

.home-learning-price .learning-price-current {
    color: var(--home-red);
    font-size: 18px;
    font-weight: 950;
}

.home-learning-price .learning-price-original {
    color: #7a8494;
    font-size: 12px;
    font-weight: 700;
    text-decoration: line-through;
}

.home-learning-price .learning-price-sale {
    display: inline-flex;
    align-items: center;
    height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--home-red);
    background: #fff1f2;
    font-size: 11px;
    font-weight: 800;
}

.home-learning-action {
    display: inline-flex;
    order: 4;
    align-items: center;
    justify-content: center;
    justify-self: end;
    height: 31px;
    padding: 0 12px;
    border: 1px solid rgba(213, 31, 43, 0.48);
    border-radius: 5px;
    color: var(--home-red);
    background: #fff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.home-learning-card > .learning-school-logo-badge {
    display: none;
}

.home-learning-empty {
    display: grid;
    flex: 1 0 100%;
    min-height: 180px;
    place-items: center;
    padding: 20px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: #fff;
    color: var(--home-sub);
    font-weight: 800;
}

.home-learning-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--home-line);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 32, 50, 0.12);
    transform: translateY(-50%);
}

.home-learning-nav[hidden] {
    display: none;
}

.home-learning-nav img {
    width: 18px;
    height: 18px;
}

.home-learning-nav.is-prev {
    left: -16px;
}

.home-learning-nav.is-next {
    right: -16px;
}

.home-quick-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
    padding: 18px 26px;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--home-soft-shadow);
    transition: grid-template-columns 0.24s ease, padding 0.24s ease, gap 0.24s ease;
}

.home-quick-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
    min-height: 76px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    contain: layout paint;
    transform: translateY(0);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.home-quick-item:hover,
.home-quick-item:focus-visible {
    border-color: rgba(47, 111, 214, 0.28);
    background: #fff;
    box-shadow: 0 18px 38px rgba(20, 32, 50, 0.16);
    transform: translateY(-8px);
}

.home-quick-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50%;
    background: #eaf1ff;
    box-shadow: inset 0 0 0 1px #d9e5fb;
}

.home-quick-item:nth-child(2) .home-quick-icon {
    background: #fff0f1;
    box-shadow: inset 0 0 0 1px #f6d7dc;
}

.home-quick-item:nth-child(3) .home-quick-icon {
    background: #fff6dc;
    box-shadow: inset 0 0 0 1px #f3dfaa;
}

.home-quick-item:nth-child(4) .home-quick-icon {
    background: #e9f9f0;
    box-shadow: inset 0 0 0 1px #cdeedb;
}

.home-quick-icon img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.home-quick-item strong {
    display: block;
    color: #263247;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.home-quick-item small {
    display: block;
    margin-top: 4px;
    color: #5c687a;
    font-size: 15px;
    white-space: nowrap;
}

.home-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
    gap: 28px;
    align-items: start;
    margin-top: 28px;
}

.home-panel {
    min-width: 0;
    padding: 18px;
}

.home-exam-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    transition: grid-template-columns 0.24s ease, gap 0.24s ease;
}

.home-exam-features div {
    display: grid;
    gap: 5px;
    min-height: 126px;
    align-content: center;
    justify-items: center;
    padding: 12px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 8px 22px rgba(20, 32, 50, 0.04);
    contain: layout paint;
    transform: translateY(var(--home-card-y));
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.home-exam-features div:hover {
    --home-card-y: -1px;
}

.home-exam-feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: #f4f7ff;
    box-shadow: inset 0 0 0 1px #dfe8fb;
}

.home-exam-feature-icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.home-exam-features div:nth-child(2) .home-exam-feature-icon {
    background: #fff0f1;
    box-shadow: inset 0 0 0 1px #f6d7dc;
}

.home-exam-features div:nth-child(3) .home-exam-feature-icon {
    background: #fff6dc;
    box-shadow: inset 0 0 0 1px #f3dfaa;
}

.home-exam-features div:nth-child(4) .home-exam-feature-icon {
    background: #e9f9f0;
    box-shadow: inset 0 0 0 1px #cdeedb;
}

.home-exam-features strong {
    color: var(--home-text);
    font-size: 14px;
    font-weight: 900;
}

.home-exam-features span {
    color: var(--home-sub);
    font-size: 11px;
}

.home-school-section .home-learning-carousel {
    margin-top: 0;
}

.home-school-section .home-learning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
}

.home-school-section .home-learning-card,
.home-school-section .home-school-card {
    display: block;
    min-height: 62px;
    padding: 10px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 32, 50, 0.04);
}

.home-school-section .home-learning-card:hover,
.home-school-section .home-learning-card:focus-visible,
.home-school-section .home-school-card:hover,
.home-school-section .home-school-card:focus-visible {
    border-color: rgba(47, 111, 214, 0.3);
    box-shadow: 0 18px 36px rgba(20, 32, 50, 0.16);
    transform: translateY(-7px);
}

.home-school-section .home-learning-head {
    display: contents;
}

.home-school-section .home-learning-body {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 4px 10px;
    align-items: center;
    padding: 0;
}

.home-school-section .home-school-logo {
    display: grid;
    grid-row: 1 / span 2;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
}

.home-school-section .home-school-logo img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    object-position: center;
}

.home-school-section .home-learning-body strong {
    order: 0;
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    color: var(--home-text);
    font-size: 14px;
    line-height: 1.25;
}

.home-school-section .home-learning-tags,
.home-school-section .home-school-code {
    display: none;
}

.home-school-action {
    display: block;
    order: 0;
    grid-column: 2;
    grid-row: 2;
    margin-top: 2px;
    color: var(--home-sub);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-school-section .home-learning-nav {
    display: none;
}

.home-articles-section {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--home-soft-shadow);
}

.home-article-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(20, 32, 50, 0.04);
    transform: translateY(0);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-article-card:hover,
.home-article-card:focus-visible {
    border-color: rgba(47, 111, 214, 0.3);
    box-shadow: 0 18px 38px rgba(20, 32, 50, 0.14);
    transform: translateY(-7px);
}

.home-article-thumb {
    --home-article-thumb-width: 284px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, var(--home-article-thumb-width));
    max-width: 100%;
    aspect-ratio: 16 / 9;
    justify-self: center;
    overflow: hidden;
    background: #eef2f7;
}

.home-article-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-article-body {
    display: grid;
    gap: 9px;
    min-width: 0;
    padding: 14px;
}

.home-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--home-sub);
    font-size: 11px;
    font-weight: 800;
}

.home-article-meta span,
.home-article-meta time {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    white-space: nowrap;
}

.home-article-meta span {
    padding: 0 8px;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--home-red);
}

.home-article-meta .home-article-featured-badge {
    background: var(--home-red);
    color: #fff;
}

.home-article-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--home-text);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-article-card em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--home-sub);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-articles-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: 14px;
    align-items: stretch;
}

.home-article-card--feature {
    grid-row: span 3;
}

.home-article-card--feature .home-article-thumb {
    --home-article-thumb-width: 391px;
}

.home-article-card--feature .home-article-body {
    padding: 18px;
}

.home-article-card--feature strong {
    font-size: 24px;
    line-height: 1.25;
}

.home-article-card--feature em {
    font-size: 15px;
    -webkit-line-clamp: 3;
}

.home-articles-editorial > .home-article-card--feature:only-child {
    grid-column: 1 / -1;
    max-width: 620px;
}

.home-articles-editorial > .home-article-card--feature:only-child .home-article-thumb {
    --home-article-thumb-width: 284px;
}

.home-articles-editorial > .home-article-card--feature:only-child .home-article-body {
    padding: 14px;
}

.home-articles-editorial > .home-article-card--feature:only-child strong {
    font-size: 17px;
    line-height: 1.35;
}

.home-articles-editorial > .home-article-card--feature:only-child em {
    font-size: 13px;
    -webkit-line-clamp: 2;
}

.home-article-card--compact {
    grid-template-columns: 136px minmax(0, 1fr);
}

.home-article-card--compact .home-article-thumb {
    --home-article-thumb-width: 136px;
    align-self: center;
}

.home-article-card--compact .home-article-body {
    align-content: center;
    padding: 12px;
}

.home-article-card--compact strong {
    font-size: 15px;
}

.home-article-card--compact em {
    font-size: 12px;
}

.home-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-articles-grid.home-articles-grid--sparse {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-articles-grid.home-articles-grid--sparse .home-article-card {
    max-width: 620px;
}

.home-articles-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-articles-rail::-webkit-scrollbar {
    display: none;
}

.home-articles-rail .home-article-card {
    flex: 0 0 calc((100% - 42px) / 4);
    scroll-snap-align: start;
}

.home-article-card--rail .home-article-thumb {
    --home-article-thumb-width: 258px;
}

.home-official-page .site-footer {
    background: transparent;
}

body.home-official-page.dark-mode {
    --home-bg: var(--bg-body);
    --home-surface: var(--bg-card);
    --home-text: var(--text-main);
    --home-sub: var(--text-sub);
    --home-line: var(--border-color);
    background: var(--home-bg);
    color: var(--home-text);
}

.home-official-page.dark-mode .site-header,
.home-official-page.dark-mode .home-hero-learning,
.home-official-page.dark-mode .home-articles-section,
.home-official-page.dark-mode .home-article-card,
.home-official-page.dark-mode .home-quick-strip,
.home-official-page.dark-mode .home-learning-card,
.home-official-page.dark-mode .home-learning-empty,
.home-official-page.dark-mode .home-subject-card,
.home-official-page.dark-mode .home-exam-features div,
.home-official-page.dark-mode .home-school-section .home-learning-card,
.home-official-page.dark-mode .home-school-section .home-school-card,
.home-official-page.dark-mode .theme-btn,
.home-official-page.dark-mode .btn-ms-login {
    background: var(--home-surface);
    border-color: var(--home-line);
}

.home-official-page.dark-mode .home-nav a,
.home-official-page.dark-mode .home-hero-card h1,
.home-official-page.dark-mode .home-section-head h2,
.home-official-page.dark-mode .home-learning-body strong,
.home-official-page.dark-mode .home-article-card strong,
.home-official-page.dark-mode .home-quick-item strong,
.home-official-page.dark-mode .home-exam-features strong,
.home-official-page.dark-mode .home-school-section .home-learning-body strong {
    color: var(--home-text);
}

.home-official-page.dark-mode .home-hero-card p,
.home-official-page.dark-mode .home-article-card em,
.home-official-page.dark-mode .home-article-meta,
.home-official-page.dark-mode .home-quick-item small,
.home-official-page.dark-mode .home-exam-features span,
.home-official-page.dark-mode .home-school-action {
    color: var(--home-sub);
}

.home-official-page.dark-mode .home-quick-item:hover strong,
.home-official-page.dark-mode .home-quick-item:focus-visible strong {
    color: var(--text-main);
}

.home-official-page.dark-mode .home-quick-item:hover small,
.home-official-page.dark-mode .home-quick-item:focus-visible small {
    color: var(--text-sub);
}

.home-official-page.dark-mode .home-learning-card:hover,
.home-official-page.dark-mode .home-learning-card:focus-visible,
.home-official-page.dark-mode .home-article-card:hover,
.home-official-page.dark-mode .home-article-card:focus-visible,
.home-official-page.dark-mode .home-school-section .home-school-card:hover,
.home-official-page.dark-mode .home-school-section .home-school-card:focus-visible {
    background: var(--bg-elevated);
    border-color: rgba(47, 111, 214, 0.28);
}

.home-official-page.dark-mode .home-learning-card:hover .home-learning-body strong,
.home-official-page.dark-mode .home-learning-card:focus-visible .home-learning-body strong,
.home-official-page.dark-mode .home-article-card:hover strong,
.home-official-page.dark-mode .home-article-card:focus-visible strong,
.home-official-page.dark-mode .home-school-section .home-school-card:hover .home-learning-body strong,
.home-official-page.dark-mode .home-school-section .home-school-card:focus-visible .home-learning-body strong {
    color: var(--text-main);
}

.home-official-page.dark-mode .home-learning-card:hover .home-learning-cover,
.home-official-page.dark-mode .home-learning-card:focus-visible .home-learning-cover,
.home-official-page.dark-mode .home-article-card:hover .home-article-thumb,
.home-official-page.dark-mode .home-article-card:focus-visible .home-article-thumb {
    background: var(--bg-control);
}

.home-official-page.dark-mode .home-learning-card:hover .home-learning-tags span,
.home-official-page.dark-mode .home-learning-card:focus-visible .home-learning-tags span {
    border-color: var(--border-color);
    color: var(--home-blue);
    background: var(--bg-control);
}

.home-official-page.dark-mode .home-learning-card:hover .home-learning-price .learning-price-original,
.home-official-page.dark-mode .home-learning-card:focus-visible .home-learning-price .learning-price-original {
    color: var(--text-sub);
}

.home-official-page.dark-mode .home-school-section .home-school-card:hover .home-school-action,
.home-official-page.dark-mode .home-school-section .home-school-card:focus-visible .home-school-action {
    color: var(--text-sub);
}

.home-official-page.dark-mode .home-article-card:hover em,
.home-official-page.dark-mode .home-article-card:focus-visible em,
.home-official-page.dark-mode .home-article-card:hover .home-article-meta,
.home-official-page.dark-mode .home-article-card:focus-visible .home-article-meta {
    color: var(--text-sub);
}

.home-official-page.dark-mode .home-nav a.is-active,
.home-official-page.dark-mode .home-nav a:hover,
.home-official-page.dark-mode .home-section-link,
.home-official-page.dark-mode .btn-ms-login {
    color: #ff6b73 !important;
}

.home-official-page.dark-mode .home-learning-cover {
    background: var(--bg-elevated);
}

.home-official-page.dark-mode .home-article-thumb {
    background: var(--bg-elevated);
}

.home-official-page.dark-mode .home-learning-tags span {
    border-color: rgba(90, 139, 220, 0.35);
    background: rgba(47, 111, 214, 0.12);
}

@media (max-width: 1100px) {
    .home-official-page .header-inner {
        gap: 16px;
    }

    .home-official-page .brand span {
        display: none;
    }

    .home-nav {
        gap: clamp(18px, 3vw, 34px);
    }

    .home-top-grid,
    .home-lower-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-benefits {
        display: none;
    }

    .home-hero-card {
        min-height: 260px;
    }

    .home-learning-card {
        flex-basis: calc((100% - 28px) / 3);
    }

    .home-articles-editorial,
    .home-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-article-card--feature {
        grid-row: auto;
    }

    .home-article-card--feature .home-article-thumb {
        --home-article-thumb-width: 338px;
    }

    .home-article-card--compact {
        grid-template-columns: 1fr;
    }

    .home-article-card--compact .home-article-thumb {
        --home-article-thumb-width: 267px;
    }

    .home-articles-rail .home-article-card {
        flex-basis: calc((100% - 28px) / 3);
    }

    .home-quick-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-exam-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .home-official-page .header-inner {
        flex-wrap: nowrap;
    }

    .home-nav {
        display: none;
    }

    .home-shell {
        width: min(100% - 28px, 720px);
    }

    .home-main {
        padding-top: 18px;
    }

    .home-top-grid {
        display: flex;
        flex-direction: column;
    }

    .home-hero-card {
        display: none;
    }

    .home-quick-strip {
        order: -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
        padding: 14px;
    }

    .home-hero-learning {
        padding: 18px;
    }

    .home-articles-section {
        padding: 18px;
    }

    .home-hero-learning .home-learning-nav {
        display: none;
    }

    .home-hero-learning .home-learning-grid {
        gap: 10px;
    }

    .home-learning-card {
        flex-basis: calc((100% - 10px) / 2);
    }

    .home-articles-editorial,
    .home-articles-grid {
        grid-template-columns: 1fr;
    }

    .home-article-thumb {
        --home-article-thumb-width: 258px;
    }

    .home-articles-rail .home-article-card {
        flex-basis: calc((100% - 10px) / 2);
    }

    .home-article-card--feature .home-article-thumb {
        --home-article-thumb-width: 302px;
    }

    .home-article-card--rail .home-article-thumb {
        --home-article-thumb-width: 231px;
    }

    .home-article-card--feature strong {
        font-size: 20px;
    }

    .home-hero-learning .home-learning-body {
        gap: 8px;
        padding: 10px;
    }

    .home-hero-learning .home-learning-price .learning-price-sale,
    .home-hero-learning .home-learning-action {
        display: none;
    }

    .home-school-section .home-learning-grid {
        grid-template-columns: 1fr;
    }

    .home-exam-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .home-official-page .header-inner {
        height: 64px;
        min-height: 64px;
        padding: 0;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .home-official-page .brand {
        font-size: 18px;
        flex: 0 0 auto;
    }

    .home-official-page .brand img {
        height: 40px;
    }

    .home-header-actions {
        gap: 8px;
        margin-left: auto;
    }

    .home-official-page .user-account-box {
        min-width: 0;
    }

    .home-official-page .user-greeting {
        display: none;
    }

    .home-official-page .user-info-display {
        max-width: none;
    }

    .home-official-page .btn-ms-login {
        min-height: 36px;
        max-width: 104px;
        padding: 0 10px;
        font-size: 12px;
    }

    .home-official-page .theme-btn {
        width: 36px;
        height: 36px;
    }

    .home-section-head {
        align-items: flex-start;
    }

    .home-section-head h2 {
        font-size: 20px;
    }

    .home-learning-card {
        flex-basis: calc((100% - 10px) / 2);
    }

    .home-hero-learning {
        padding: 16px;
    }

    .home-articles-section {
        padding: 16px;
    }

    .home-hero-learning .home-learning-body {
        gap: 8px;
        padding: 10px;
    }

    .home-hero-learning .home-learning-cover {
        aspect-ratio: 16 / 9;
    }

    .home-hero-learning .home-learning-tags {
        flex-wrap: nowrap;
        max-height: 46px;
        gap: 5px;
        overflow: hidden;
    }

    .home-hero-learning .home-learning-tags span {
        flex: 0 0 auto;
        height: 21px;
        padding: 0 7px;
        font-size: 10px;
    }

    .home-hero-learning .home-learning-body strong {
        min-height: 24px;
        font-size: 13px;
    }

    .home-hero-learning .home-learning-price {
        min-height: 22px;
    }

    .home-hero-learning .home-learning-price .learning-price-current {
        font-size: 17px;
    }

    .home-hero-learning .home-learning-action {
        height: 30px;
        padding: 0 11px;
    }

    .home-quick-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-exam-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-quick-item {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
    }

    .home-quick-icon {
        width: 46px;
        height: 46px;
    }

    .home-exam-features div {
        min-height: 104px;
        padding: 12px 10px;
    }

    .home-exam-features strong {
        font-size: 13px;
    }

    .home-exam-features span {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .home-quick-strip {
        grid-template-columns: 1fr;
    }

    .home-hero-learning .home-learning-grid {
        gap: 8px;
    }

    .home-learning-card {
        flex-basis: 100%;
    }

    .home-article-thumb,
    .home-article-card--feature .home-article-thumb,
    .home-article-card--rail .home-article-thumb {
        --home-article-thumb-width: 235px;
    }

    .home-articles-rail .home-article-card {
        flex-basis: 100%;
    }

    .home-official-page .brand span {
        display: none;
    }

    .home-official-page .btn-ms-login {
        max-width: 92px;
    }
}

@media (max-width: 420px) {
    .home-official-page .brand span {
        display: none;
    }

    .home-official-page .btn-ms-login {
        max-width: 112px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-benefit,
    .home-hero-benefit strong {
        animation: none;
    }

    .home-hero-benefit {
        opacity: 1;
        transform: none;
    }
}
