/**
 * Block "Chương trình học" — ntt/program/template.php
 * Figma: WSU-LDP (fcFmABMwADh6xM6CO2ye4x), node 80:2314
 */

/* Theme chỉ khai báo Book/Bold cho GothamNarrowVietHoa; tên family riêng để không đổi weight 500 ở chỗ khác. */
@font-face {
    font-family: "WSU Gotham Medium";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/GothamNarrowVietHoa/GothamNarrowVN-Medium.otf) format("opentype");
}

.wsu-program {
    --wsp-aside-bg: #E6DCEB;
    --wsp-aside-color: #000;
    --wsp-main-bg: var(--color-grey-99, #FAFBFE);
    --wsp-text: var(--color-azure-0, #000102);
    --wsp-red: var(--color-red-68, #FF5C5E);
    --wsp-red-strong: var(--color-red-50, #F03);
    /* Lề trái/phải bằng lề của .container 1200px, tối thiểu 15px */
    --wsp-gutter: max(15px, calc((100% - 1200px) / 2));

    display: flex;
    width: 100%;
    background: var(--wsp-main-bg);
    color: var(--wsp-text);
}

.wsu-program--red {
    --wsp-aside-bg: var(--color-rose-30, #903);
    --wsp-aside-color: #fff;
}

.wsu-program--blue {
    --wsp-aside-bg: #BED7E1;
}

/* ---------- Cột trái ---------- */

.wsu-program__aside {
    flex: 0 0 auto;
    width: calc(var(--wsp-gutter) + clamp(280px, 30%, 384px));
    padding: 40px 0 0 var(--wsp-gutter);
    background: var(--wsp-aside-bg);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wsu-program .wsu-program__title {
    margin: 0;
    color: var(--wsp-aside-color);
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    text-transform: uppercase;
}

.wsu-program__current {
    display: none;
}

.wsu-program__tabs {
    display: flex;
    flex-direction: column;
}

/* Reset style <button> mặc định của Flatsome */
.wsu-program button.wsu-program__tab,
.wsu-program button.wsu-program__current {
    margin: 0;
    min-height: 0;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0.8px;
    font-size: 16px;
    line-height: 20px;
    text-align: left;
    cursor: pointer;
}

.wsu-program button.wsu-program__tab {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 16px 0 16px 20px;
    border-left: 4px solid transparent;
    background: transparent;
    color: var(--wsp-aside-color);
    font-family: "WSU Gotham Medium", "GothamNarrowVietHoa", sans-serif;
    font-weight: 500;
}

.wsu-program button.wsu-program__tab:hover {
    background: rgba(255, 255, 255, 0.35);
}

.wsu-program button.wsu-program__tab.is-active {
    border-left-color: var(--wsp-red);
    background: var(--wsp-main-bg);
    color: #000;
    font-family: "GothamNarrowVietHoa", sans-serif;
    font-weight: 700;
}

.wsu-program__tab-text {
    flex: 1 1 auto;
    text-transform: uppercase;
}

.wsu-program__badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    background: var(--wsp-red);
    color: #fff;
    font-family: "GothamNarrowVietHoa", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
}

.is-active > .wsu-program__badge {
    background: var(--wsp-red-strong);
}

.wsu-program__image {
    margin-top: auto;
}

.wsu-program__image img {
    display: block;
    width: 314px;
    max-width: 100%;
    height: auto;
}

.wsu-program__image--mobile {
    display: none !important;
}

/* ---------- Cột phải ---------- */

.wsu-program__main {
    flex: 1 1 0;
    min-width: 0;
    padding: 48px var(--wsp-gutter) 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.wsu-program__panels {
    width: 100%;
}

.wsu-program__panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wsu-program__panel[hidden] {
    display: none;
}

.wsu-program .wsu-program__highlight {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    margin: 0 0 -16px;
    padding: 8px 12px 8px 0;
    color: var(--wsp-red-strong);
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
}

.wsu-program__highlight img {
    width: 16px;
    height: 16px;
}

.wsu-program__block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wsu-program .wsu-program__subtitle {
    margin: 0;
    color: var(--wsp-text);
    font-family: var(--font-family-Font-2, "Chronicle Text G1 VN"), serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 24px;
}

.wsu-program__text,
.wsu-program__text p,
.wsu-program__card-text,
.wsu-program__card-text p,
.wsu-program__career {
    color: var(--wsp-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.wsu-program .wsu-program__text p,
.wsu-program .wsu-program__card-text p {
    margin-bottom: 8px;
}

.wsu-program .wsu-program__text > :last-child,
.wsu-program .wsu-program__card-text > :last-child,
.wsu-program p.wsu-program__text {
    margin-bottom: 0;
}

/* Thẻ "Vì sao chọn" */
.wsu-program__why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.wsu-program__card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
    border-top: 3px solid #000;
    background: var(--color-grey-95, #F2F2F2);
}

.wsu-program__card-image {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wsu-program__card-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 88px;
    /* ảnh logo nền trắng hoà vào nền xám của thẻ */
    mix-blend-mode: multiply;
}

.wsu-program__card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wsu-program .wsu-program__card-title {
    margin: 0;
    color: var(--wsp-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
}

.wsu-program .wsu-program__card-text ul {
    margin: 0;
}

.wsu-program .wsu-program__card-text li {
    margin: 0 0 0 24px;
}

/* Triển vọng nghề nghiệp */
.wsu-program .wsu-program__careers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wsu-program .wsu-program__career {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.wsu-program__career-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
}

/* CTA */
.wsu-program .wsu-program__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--color-rose-30, #903);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.wsu-program .wsu-program__button:hover {
    background: #7a0029;
    color: #fff;
}

/* ---------- Mobile / tablet dọc ---------- */

@media (max-width: 849px) {
    .wsu-program {
        flex-direction: column;
    }

    .wsu-program__aside {
        position: relative;
        width: 100%;
        min-height: 300px;
        padding: 24px 15px;
        gap: 24px;
    }

    .wsu-program .wsu-program__title {
        position: relative;
        z-index: 1;
        max-width: 60%;
        font-size: 28px;
        line-height: 34px;
    }

    .wsu-program__image {
        position: absolute;
        right: 15px;
        bottom: 0;
        margin: 0;
    }

    .wsu-program__image img {
        width: auto;
        max-height: 260px;
    }

    .wsu-program__image--desktop {
        display: none !important;
    }

    .wsu-program__image--mobile {
        display: block !important;
    }

    .wsu-program__nav {
        position: relative;
        z-index: 3;
        margin-top: auto;
    }

    .wsu-program button.wsu-program__current {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 16px 20px;
        border-left: 4px solid var(--wsp-red);
        background: #fff;
        color: #000;
        font-weight: 700;
        box-shadow: 0 12px 12px 0 rgba(0, 0, 0, 0.1);
    }

    .wsu-program__current-label {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .wsu-program__chevron {
        flex: 0 0 auto;
        transition: transform 0.2s;
    }

    .is-open .wsu-program__chevron {
        transform: rotate(180deg);
    }

    .wsu-program__tabs {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 12px 12px 0 rgba(0, 0, 0, 0.1);
    }

    .wsu-program__nav.is-open .wsu-program__tabs {
        display: flex;
    }

    .wsu-program button.wsu-program__tab {
        color: #000;
    }

    .wsu-program__main {
        padding: 32px 15px 40px;
        gap: 32px;
    }
}

@media (max-width: 549px) {
    .wsu-program .wsu-program__careers {
        grid-template-columns: minmax(0, 1fr);
    }
}
