.lms-home .lms-exam-category-section {
    padding-bottom: 18px;
}

.lms-home .lms-onet-preview {
    position: relative;
    overflow: hidden;
    padding: 30px 0 48px;
    border-top: 1px solid #e8e8fb;
    border-bottom: 1px solid #e9edf7;
    background:
        radial-gradient(circle at 8% 12%, rgba(80, 196, 190, 0.13), transparent 28%),
        radial-gradient(circle at 92% 88%, rgba(132, 94, 194, 0.11), transparent 30%),
        linear-gradient(180deg, #fbfcff 0%, #f5f7fc 100%);
}

.lms-home .lms-onet-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 27px;
}

.lms-home .lms-onet-heading-copy {
    max-width: 720px;
}

.lms-home .lms-onet-heading h2 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 7px 0 6px;
    color: #24324b;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.24;
}

.lms-home .lms-onet-heading h2 .fa {
    color: #7454b6;
}

.lms-home .lms-onet-heading p {
    margin: 0;
    color: #68758c;
    font-size: 16px;
    line-height: 1.7;
}

.lms-home .lms-onet-preview-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid #ddd4f3;
    border-radius: 999px !important;
    background: #f3effb;
    color: #63449f;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.lms-home .lms-onet-preview-badge.is-ready {
    border-color: #b8e8dc;
    background: #eaf9f4;
    color: #14765f;
}

.lms-home .lms-onet-grid {
    display: flex;
    flex-wrap: wrap;
}

.lms-home .lms-onet-grid:before,
.lms-home .lms-onet-grid:after {
    display: none;
}

.lms-home .lms-onet-col {
    display: flex;
    margin-bottom: 22px;
}

.lms-home .lms-onet-subject-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 228px;
    flex-direction: column;
    padding: 24px 21px 20px;
    overflow: hidden;
    border: 1px solid #e2e7f1;
    border-top-width: 4px;
    border-radius: 24px !important;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(35, 52, 83, 0.08);
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lms-home .lms-onet-subject-card:hover,
.lms-home .lms-onet-subject-card:focus {
    color: inherit;
    text-decoration: none;
}

.lms-home .lms-onet-subject-card.is-ready:hover,
.lms-home .lms-onet-subject-card.is-ready:focus {
    box-shadow: 0 15px 32px rgba(35, 52, 83, 0.14);
    outline: none;
    transform: translateY(-3px);
}

.lms-home .lms-onet-subject-card.is-empty {
    box-shadow: 0 7px 18px rgba(35, 52, 83, 0.05);
}

.lms-home .lms-onet-subject-card:after {
    position: absolute;
    right: -38px;
    bottom: -46px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    content: "";
    opacity: 0.14;
}

.lms-home .lms-onet-subject-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 16px !important;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(35, 52, 83, 0.15);
}

.lms-home .lms-onet-subject-copy {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
}

.lms-home .lms-onet-subject-kicker {
    display: block;
    margin-bottom: 2px;
    color: #8490a4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lms-home .lms-onet-subject-copy h3 {
    margin: 0 0 7px;
    color: #26344d;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
}

.lms-home .lms-onet-subject-description {
    display: block;
    margin: 0;
    color: #6d788b;
    font-size: 13px;
    line-height: 1.65;
}

.lms-home .lms-onet-subject-grade {
    display: block;
    margin-top: 8px;
    color: #59667c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.lms-home .lms-onet-subject-status {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 15px;
    padding: 6px 10px;
    border-radius: 999px !important;
    font-size: 11px;
    font-weight: 700;
}

.lms-home .lms-onet-subject-card--science {
    border-top-color: #20a99a;
}

.lms-home .lms-onet-subject-card--science:after,
.lms-home .lms-onet-subject-card--science .lms-onet-subject-icon {
    background: #20a99a;
}

.lms-home .lms-onet-subject-card--science .lms-onet-subject-status {
    background: #e5f8f5;
    color: #117d72;
}

.lms-home .lms-onet-subject-card--math {
    border-top-color: #7655b6;
}

.lms-home .lms-onet-subject-card--math:after,
.lms-home .lms-onet-subject-card--math .lms-onet-subject-icon {
    background: #7655b6;
}

.lms-home .lms-onet-subject-card--math .lms-onet-subject-status {
    background: #f0ebfa;
    color: #604198;
}

.lms-home .lms-onet-subject-card--language {
    border-top-color: #ef8b3e;
}

.lms-home .lms-onet-subject-card--language:after,
.lms-home .lms-onet-subject-card--language .lms-onet-subject-icon {
    background: #ef8b3e;
}

.lms-home .lms-onet-subject-card--language .lms-onet-subject-status {
    background: #fff1e5;
    color: #b76020;
}

.lms-home .lms-onet-subject-card--thai {
    border-top-color: #dd527d;
}

.lms-home .lms-onet-subject-card--thai:after,
.lms-home .lms-onet-subject-card--thai .lms-onet-subject-icon {
    background: #dd527d;
}

.lms-home .lms-onet-subject-card--thai .lms-onet-subject-status {
    background: #fdebf1;
    color: #ad365c;
}

@media (max-width: 767px) {
    .lms-home .lms-exam-category-section {
        padding-bottom: 14px;
    }

    .lms-home .lms-onet-preview {
        padding: 26px 0 32px;
    }

    .lms-home .lms-onet-heading {
        display: block;
        margin-bottom: 22px;
    }

    .lms-home .lms-onet-heading h2 {
        font-size: 26px;
    }

    .lms-home .lms-onet-preview-badge {
        margin-top: 15px;
        white-space: normal;
    }

    .lms-home .lms-onet-grid {
        display: block;
    }

    .lms-home .lms-onet-col {
        display: block;
        margin-bottom: 16px;
    }

    .lms-home .lms-onet-subject-card {
        min-height: 0;
        padding: 20px;
        border-radius: 20px !important;
    }
}
