.uptm-story {
    margin-top: 40px;
}

.uptm-story-top {
    display: grid;
    gap: 22px;
    margin-bottom: 40px;
}

.story-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.story-pill {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #eef0f4;
    color: #111827;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: all .25s ease;
    box-shadow: 0 10px 24px -22px rgba(13, 36, 86, .5);
}

.story-pill:hover,
.story-pill:focus-visible {
    background: #f7f9fc;
    border-color: rgba(13, 36, 86, .18);
    transform: translateY(-2px);
}

.story-pill.active {
    background: #0d2456;
    color: #fff;
}

.story-title {
    font-size: 54px;
    line-height: 1.1;
    max-width: 780px;
    font-weight: 600;
}

.story-grid {
    display: grid;
    gap: 24px;
}

.campus-grid {
    grid-template-columns: 1.6fr 1fr;
}

.story-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card.large {
    height: 380px;
}

.story-card.small {
    height: 380px;
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.story-overlay h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.story-overlay p {
    font-size: 14px;
    margin-bottom: 18px;
    max-width: 420px;
}

.story-btn {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
    padding: 10px 18px;
    border-radius: 999px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: max-content;
    font-size: 14px;
}

.story-overlay-right {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, .4), rgba(0, 0, 0, .1));
}

.story-overlay-right h4 {
    font-size: 18px;
    max-width: 220px;
}

.facility-tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.facility-tags span {
    background: #0d2456;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
}

.story-content {
    display: none;
}

.story-content.active {
    display: block;
}

.facilities-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.facility-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding-bottom: 20px;
    transition: all .25s ease;
}

.facility-card:hover {
    transform: translateY(-4px);
}

.facility-card img {
    height: 180px;
    object-fit: cover;
}

.facility-card h4 {
    padding: 14px 16px 6px;
    font-size: 18px;
}

.facility-card p {
    padding: 0 16px;
    font-size: 14px;
    color: var(--muted);
}

.student-life {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.life-image img {
    border-radius: var(--radius-lg);
}

.life-text h3 {
    font-size: 30px;
    margin-bottom: 10px;
}

.life-text p {
    color: var(--muted);
    margin-bottom: 20px;
}

@media(max-width:1024px) {

    .story-title {
        font-size: 42px;
    }

}

@media(max-width:768px) {

    .uptm-story-top {
        flex-direction: column;
        gap: 20px;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .student-life {
        grid-template-columns: 1fr;
    }

    .story-card.large,
    .story-card.small {
        height: 300px;
    }

    .story-title {
        font-size: 34px;
    }

}

/* Distinct facilities category panels */
.story-category-head {
    display: grid;
    gap: 8px;
    max-width: 760px;
    margin-bottom: 22px;
}

.story-category-head p,
.story-panel-kicker {
    margin: 0;
    color: #0d2456;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.story-category-head h3 {
    margin: 0;
    color: #111827;
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.05;
}

.story-category-head span {
    color: #667085;
    font-size: 16px;
    line-height: 1.6;
}

.facilities-grid--enhanced {
    align-items: stretch;
}

.facility-card--enhanced {
    border: 1px solid rgba(13, 36, 86, .08);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 24px 60px -48px rgba(13, 36, 86, .5);
}

.facility-card--enhanced img {
    width: 100%;
    height: 220px;
}

.facility-card--enhanced h4 {
    color: #0d2456;
    font-family: Manrope, Inter, sans-serif;
    font-weight: 850;
}

.story-split-panel {
    padding: clamp(18px, 2.2vw, 28px);
    border: 1px solid rgba(13, 36, 86, .08);
    border-radius: 28px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 24px 70px -54px rgba(13, 36, 86, .52);
}

.story-split-panel .life-image img {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
    box-shadow: 0 22px 54px -42px rgba(13, 36, 86, .6);
}

.story-split-panel .life-text h3 {
    color: #0d2456;
    font-family: Manrope, Inter, sans-serif;
    font-weight: 850;
}

.facility-tags--left {
    align-items: flex-start;
    margin-bottom: 20px;
}

.story-btn--navy {
    color: #fff;
    background: #0d2456;
}

.story-feature-panel .story-card.large {
    box-shadow: 0 26px 70px -48px rgba(13, 36, 86, .6);
}

.story-info-card {
    height: 380px;
    border: 1px solid rgba(13, 36, 86, .08);
    background: linear-gradient(145deg, #ffffff, #eef4ff);
    box-shadow: 0 24px 62px -52px rgba(13, 36, 86, .55);
}

.story-info-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
}

.story-info-card h4 {
    margin: 14px 0 auto;
    color: #0d2456;
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.08;
}

.story-info-card .facility-tags {
    align-items: flex-start;
}

@media(max-width:768px) {
    .story-info-card,
    .story-split-panel .life-image img {
        height: auto;
        min-height: 280px;
    }
}
.facility-slide-stage {
    isolation: isolate;
    background: #0d2456;
}

.facility-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity .42s ease, transform .42s ease;
    pointer-events: none;
}

.facility-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.facility-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facility-slider-controls {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.facility-slider-controls button {
    border: 0;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: #fff;
    color: #0d2456;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 18px 36px -24px rgba(13, 36, 86, .75);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.facility-slider-controls .facility-prev:hover,
.facility-slider-controls .facility-prev:focus-visible {
    transform: scale(1.14) rotate(-7deg);
    background: #163b8c;
    color: #fff;
    box-shadow: 0 14px 24px -14px rgba(22, 59, 140, 0.75);
}

.facility-slider-controls .facility-next:hover,
.facility-slider-controls .facility-next:focus-visible {
    transform: scale(1.14) rotate(7deg);
    background: #163b8c;
    color: #fff;
    box-shadow: 0 14px 24px -14px rgba(22, 59, 140, 0.75);
}

.facility-slider-controls .facility-prev:active {
    transform: scale(1.18) rotate(-9deg);
}

.facility-slider-controls .facility-next:active {
    transform: scale(1.18) rotate(9deg);
}