.courses-page {
    --g: #06402f;
    --gd: #032d22;
    --gold: #c18a2e;
    --cream: #fbf7ed;
    --line: #e8dfcb;
    background: var(--cream);
    color: #173a2d
}

    .courses-page * {
        box-sizing: border-box
    }

    .courses-page .container {
        width: min(1200px,calc(100% - 40px));
        margin: auto
    }

    .courses-page button {
        font: inherit;
        cursor: pointer
    }

.intro {
    text-align: center;
    padding: 52px 0 36px;
    background: radial-gradient(ellipse at top,#f4eddd,var(--cream) 70%)
}

.kicker {
    color: #a66b13;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px
}

.intro h1 {
    font: 700 clamp(30px,4vw,48px)/1.2 "Times New Roman",Georgia,serif;
    color: var(--g);
    margin: 14px auto 12px;
    max-width: 850px
}

    .intro h1 em {
        color: #b77919;
        font-style: normal
    }

.intro p {
    max-width: 720px;
    margin: auto;
    color: #66756d
}

.category-section {
    padding: 28px 0 50px
}

.section-head, .detail-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px
}

    .section-head h2, .detail-head h2 {
        font: 700 30px/1.2 "Times New Roman",Georgia,serif;
        color: var(--g);
        margin: 6px 0
    }

    .section-head p, .detail-head p {
        color: #66756d;
        margin: 6px 0 0
    }

    .section-head > div > button {
        width: 38px;
        height: 38px;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: #fffdf8;
        color: var(--g)
    }

.category-track {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
    margin-top: 22px
}

.category {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0 0 20px;
    border: 1px solid #ece2cf;
    border-radius: 16px;
    overflow: hidden;
    background: #fffdf8;
    color: inherit;
    box-shadow: 0 7px 24px #2237270b;
    transition: transform .25s,box-shadow .25s,border-color .25s
}

    .category:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 32px #2237271c
    }

    .category.is-active {
        border-color: var(--gold);
        box-shadow: 0 0 0 2px #c18a2e26,0 12px 28px #22372714
    }

.photo {
    height: 158px;
    display: block;
    position: relative;
    overflow: hidden;
    background: #e9e2d2
}

    .photo:after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(#0003,transparent 60%,#0002)
    }

    .photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s
    }

.category:hover img {
    transform: scale(1.05)
}

.photo b {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    background: var(--g);
    color: #f8e6ad;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 10px
}

.symbol {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    margin: -20px 0 0 18px;
    position: relative;
    z-index: 2;
    border: 3px solid #fffdf8;
    border-radius: 50%;
    background: var(--g);
    color: #f1d991;
    font-size: 20px
}

.category > strong {
    font: 700 19px/1.3 "Times New Roman",Georgia,serif;
    color: var(--gd);
    margin: 13px 18px 7px
}

.desc {
    margin: 0 18px;
    color: #66756d;
    font-size: 13px;
    line-height: 1.6;
    min-height: 60px
}

.learn {
    margin: 17px 18px 0;
    color: #a66b13;
    font-size: 13px;
    font-weight: 700
}

.dots {
    display: none;
    justify-content: center;
    gap: 7px;
    padding-top: 16px
}

    .dots button {
        width: 7px;
        height: 7px;
        border: 0;
        border-radius: 20px;
        background: #d6cdb9;
        padding: 0
    }

        .dots button.is-active {
            width: 24px;
            background: var(--g)
        }

.detail-section {
    padding: 58px 0 76px;
    background: #f4eddd;
    border-top: 1px solid #ece2cf
}

.detail-head {
    align-items: center;
    margin-bottom: 28px
}

    .detail-head h2 {
        font-size: clamp(28px,3vw,38px)
    }

.primary, .secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 45px;
    padding: 0 19px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap
}

.primary {
    color: #fffdf8;
    background: var(--g);
    border: 1px solid var(--g)
}

    .primary:hover {
        background: #0b513b
    }

.secondary {
    color: var(--g);
    border: 1px solid #b8c7bb
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    margin-bottom: 42px
}

    .info-grid article {
        padding: 23px;
        border: 1px solid #e7ddc8;
        border-radius: 14px;
        background: #fffdf8
    }

    .info-grid i {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        color: #a66b13;
        background: #f7edd1;
        font-size: 22px;
        font-style: normal
    }

    .info-grid h3 {
        font: 700 20px/1.25 "Times New Roman",Georgia,serif;
        color: var(--g);
        margin: 15px 0 7px
    }

    .info-grid p {
        margin: 0;
        color: #66756d;
        font-size: 13px
    }

.hsk-panel {
    padding: clamp(20px,3vw,34px);
    border: 1px solid #e7ddc8;
    border-radius: 20px;
    background: #fffdf8;
    box-shadow: 0 12px 34px #2237270e
}

.level-note {
    padding: 8px 12px;
    border-radius: 99px;
    color: #8a5a12;
    background: #f8efd6;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap
}

.hsk-tabs {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 10px;
    margin: 22px 0 24px
}

    .hsk-tabs button {
        padding: 13px 6px;
        border: 1px solid var(--line);
        border-radius: 10px;
        color: #173a2d;
        background: var(--cream);
        font-weight: 800
    }

    .hsk-tabs small {
        display: block;
        margin-top: 4px;
        color: #66756d;
        font-size: 11px;
        font-weight: 400
    }

    .hsk-tabs button.is-active {
        color: #fffdf8;
        background: var(--g);
        border-color: var(--g)
    }

        .hsk-tabs button.is-active small {
            color: #f1d991
        }

.hsk-content {
    padding: clamp(18px,2.5vw,28px);
    border-radius: 15px;
    background: var(--cream);
    border: 1px solid #eee4d1
}

.hsk-title {
    display: flex;
    align-items: center;
    gap: 14px
}

    .hsk-title > span {
        display: grid;
        place-items: center;
        min-width: 66px;
        height: 66px;
        padding: 0 10px;
        border-radius: 14px;
        color: var(--g);
        background: #f1d991;
        font-size: 14px;
        font-weight: 900
    }

    .hsk-title h3 {
        margin: 0 0 4px;
        color: var(--g);
        font: 700 24px/1.2 "Times New Roman",Georgia,serif
    }

    .hsk-title p {
        margin: 0;
        color: #66756d;
        font-size: 13px
    }

.facts {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin: 24px 0 28px
}

    .facts > div {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 16px;
        border-radius: 10px;
        background: #fffdf8;
        border: 1px solid #eee4d1
    }

    .facts span, .facts small {
        color: #66756d;
        font-size: 12px
    }

    .facts strong {
        font-size: 15px;
        line-height: 1.45
    }

.fee-head {
    align-items: end;
    margin-bottom: 14px
}

    .fee-head h2 {
        font-size: 24px
    }

    .fee-head > small {
        color: #66756d
    }

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

    .fees article {
        padding: 21px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fffdf8
    }

        .fees article > span {
            color: #66756d;
            font-size: 12px;
            font-weight: 700
        }

    .fees strong {
        display: block;
        margin: 9px 0 5px;
        color: #a62222;
        font-size: clamp(20px,2vw,26px)
    }

    .fees p {
        margin: 0;
        color: #66756d;
        font-size: 12px
    }

.disclaimer {
    margin: 14px 0 0;
    color: #7a817a;
    font-size: 11px
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px
}

@media(max-width:980px) {
    .category-track {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .hsk-tabs {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }
}

@media(max-width:640px) {
    .courses-page .container {
        width: calc(100% - 28px)
    }

    .intro {
        padding: 38px 0 28px
    }

    .category-section {
        padding: 24px 0 35px
    }

    .category-track {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 2px 2px 10px;
        scrollbar-width: none
    }

        .category-track::-webkit-scrollbar {
            display: none
        }

    .category {
        flex: 0 0 82%;
        scroll-snap-align: center
    }

    .photo {
        height: 165px
    }

    .dots {
        display: flex
    }

    .detail-section {
        padding: 38px 0 48px
    }

    .detail-head {
        align-items: flex-start;
        flex-direction: column
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 28px
    }

    .hsk-panel {
        padding: 16px
    }

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

    .level-note {
        display: none
    }

    .hsk-tabs {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px
    }

    .facts {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 18px 0 24px
    }

        .facts > div {
            padding: 13px
        }

    .fee-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px
    }

    .fees {
        grid-template-columns: 1fr
    }

    .actions {
        flex-direction: column
    }

        .actions a {
            width: 100%
        }
}
#courseDetail {
    scroll-margin-top: 74px;
}