.programs-page {
    background: var(--ll-color-paper);
    color: var(--ll-color-ink);
}

.programs-hero {
    background-image:
        linear-gradient(90deg, rgba(23, 34, 51, 0.94), rgba(23, 34, 51, 0.78)),
        image-set(
            url("../img/parents-page/image.801e3baff3d3.webp") type("image/webp"),
            url("../img/parents-page/image.d07d4cc113f6.png") type("image/png")
        );
}

.program-pathway-section {
    padding: 80px 0 70px;
}

.program-section-heading-compact {
    margin-bottom: 28px;
}

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

.program-pathway-card {
    display: grid;
    min-height: 190px;
    align-content: start;
    padding: 24px;
    border: 1px solid var(--ll-color-border);
    border-radius: 8px;
    background: var(--ll-color-white);
    color: var(--ll-color-ink);
    text-decoration: none;
}

.program-pathway-card:hover,
.program-pathway-card:focus {
    border-color: rgba(8, 127, 99, 0.45);
    box-shadow: 0 14px 34px rgba(23, 34, 51, 0.08);
    color: var(--ll-color-ink);
}

.program-pathway-card span {
    color: var(--ll-color-blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.program-pathway-card strong {
    margin-top: 22px;
    font-size: 22px;
    line-height: 28px;
}

.program-pathway-card em {
    margin-top: 12px;
    color: var(--ll-color-muted);
    font-size: 15px;
    font-style: normal;
    line-height: 22px;
}

.programs-section {
    padding: 0 0 100px;
}

.flex-column-tabs {
    gap: 42px;
}

#v-pills-tab {
    position: sticky;
    top: 96px;
    flex: 0 0 300px;
    align-self: flex-start;
    margin-right: 0;
    border: 1px solid var(--ll-color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--ll-color-white);
}

.nav-pills .nav-link {
    width: 100%;
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--ll-color-border);
    border-radius: 0;
    background: var(--ll-color-white);
    color: var(--ll-color-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 24px;
    text-align: start;
}

.nav-pills .nav-link:last-child {
    border-bottom: 0;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background: var(--ll-color-blue);
    color: var(--ll-color-white);
}

.tab-content {
    min-width: 0;
    flex: 1 1 auto;
    padding: 38px;
    border: 1px solid var(--ll-color-border);
    border-radius: 8px;
    background: var(--ll-color-white);
}

.tab-content .section-title {
    color: var(--ll-color-ink) !important;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.12;
}

.tab-content .info-block {
    margin-top: 44px;
}

.tab-content .info-block .title {
    color: var(--ll-color-ink) !important;
    font-size: 23px;
    font-weight: 700;
    line-height: 32px;
}

.tab-content p,
.tab-content li {
    color: var(--ll-color-muted);
}

.tab-content a {
    color: var(--ll-color-green);
    font-weight: 700;
}

.tab-content a:hover,
.tab-content a:focus {
    color: var(--ll-color-green-dark);
}

@media (max-width: 1400px) {
    .program-pathway-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #v-pills-tab {
        flex-basis: 270px;
    }
}

@media (max-width: 1200px) {
    .program-pathway-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flex-column-tabs {
        gap: 30px;
    }

    #v-pills-tab {
        flex-basis: 240px;
    }

    .nav-pills .nav-link {
        padding: 14px 16px;
        font-size: 16px;
        line-height: 22px;
    }
}

@media (max-width: 992px) {
    .program-pathway-section {
        padding: 60px 0 54px;
    }

    .programs-section {
        padding-bottom: 70px;
    }

    .flex-column-tabs {
        flex-direction: column;
    }

    #v-pills-tab {
        position: static;
        max-width: 100%;
        width: 100%;
        flex: none;
        overflow-x: auto;
        white-space: nowrap;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        border-radius: 8px;
    }

    #v-pills-tab::-webkit-scrollbar {
        display: none;
    }

    .nav-pills .nav-link {
        width: auto;
        min-width: 170px;
        border-right: 1px solid var(--ll-color-border);
        border-bottom: 0;
        text-align: center;
    }

    .tab-content {
        padding: 28px;
    }

    .tab-content .info-block {
        margin-top: 30px;
    }

    .tab-content .info-block .title {
        font-size: 20px;
        line-height: 27px;
    }
}

@media (max-width: 768px) {
    .program-pathway-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .program-pathway-section {
        padding: 48px 0;
    }

    .program-pathway-card {
        min-height: 0;
        padding: 22px;
    }

    .tab-content {
        padding: 22px;
    }
}
