﻿.about-hero {
    background:
        linear-gradient(130deg, rgba(7, 49, 27, 0.84) 0%, rgba(20, 90, 50, 0.8) 45%, rgba(23, 53, 130, 0.76) 100%),
        url('../images/full_image2.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.about-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 3.2rem);
    line-height: 1.07;
    margin-bottom: 0.75rem;
}

.about-copy {
    max-width: 70ch;
    opacity: 0.96;
}

.about-pillars {
    background: #fff;
}

.about-card {
    border: 1px solid #dce8df;
    border-radius: 14px;
    padding: 1.15rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 54, 31, 0.05);
}

.about-story {
    background: var(--sjhi-surface);
}

.story-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.story-tab {
    border: 1px solid var(--sjhi-border);
    background: #fff;
    color: var(--sjhi-ink);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.story-tab:hover,
.story-tab.active {
    background: var(--sjhi-primary-green);
    color: #fff;
    border-color: var(--sjhi-primary-green);
}

.story-panels {
    position: relative;
}

.story-panel {
    display: none;
}

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

.story-panel-enter .story-main,
.story-panel-enter .story-rail {
    animation: storyPanelIn 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.story-rail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    border: 1px solid var(--sjhi-border);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    position: static;
}

.story-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sjhi-medical-blue);
    font-weight: 800;
    margin-bottom: 0;
}

.story-heading {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--sjhi-primary-green);
    margin-bottom: 0;
    margin-right: auto;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.story-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(27, 115, 64, 0.12);
    color: var(--sjhi-primary-green);
    font-weight: 700;
    font-size: 0.85rem;
}

.story-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--sjhi-border);
    border-radius: 18px;
    padding: 1rem;
    align-items: start;
    overflow: hidden;
}

.story-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #edf5ef;
    aspect-ratio: 16 / 9;
    border: 1px solid #d8e6dd;
    box-shadow: 0 10px 24px rgba(11, 42, 22, 0.08);
    min-width: 0;
}

.story-media.story-media-facility {
    aspect-ratio: 4 / 3;
    min-height: 0;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.65s ease;
}

.story-image-position-top {
    object-position: center top;
}

.story-image-position-center {
    object-position: center center;
}

.story-image-position-left {
    object-position: left center;
}

.story-image-position-right {
    object-position: right center;
}

.story-media:hover .story-image {
    transform: scale(1.03);
}

.story-media-label {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    background: rgba(9, 33, 21, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.story-media-label i {
    color: #ffd869;
}

.story-media-feature {
    min-height: 460px;
}

.story-media-feature .story-media-label {
    left: 0.75rem;
    top: 0.75rem;
    bottom: auto;
}

.story-image-overlay {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(8, 40, 22, 0.88), rgba(20, 83, 45, 0.82));
    color: #fff;
    z-index: 1;
}

.story-image-overlay strong {
    display: block;
    font-size: 1rem;
}

.story-image-overlay span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

.story-lead {
    font-size: 1.08rem;
    font-weight: 600;
    color: #284437;
    margin-bottom: 1.1rem;
    max-width: 72ch;
}

.story-body {
    min-width: 0;
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0.2rem 0.35rem 0.35rem;
}

.story-highlights {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-highlight {
    border: 1px solid #dde8df;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: #f9fcfa;
}

.story-highlight strong {
    display: block;
    color: var(--sjhi-primary-green);
    margin-bottom: 0.2rem;
}

.story-highlight span {
    color: #4f6358;
    font-size: 0.94rem;
}

.story-details {
    border-top: 1px solid var(--sjhi-border);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.story-read-btn {
    border: 1px solid var(--sjhi-primary-green);
    background: #fff;
    color: var(--sjhi-primary-green);
    border-radius: 999px;
    padding: 0.48rem 0.85rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.story-read-btn:hover,
.story-read-btn:focus-visible {
    background: var(--sjhi-primary-green);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(27, 115, 64, 0.18);
}

.story-modal .modal-content {
    border: 1px solid var(--sjhi-border);
    border-radius: 16px;
}

.story-modal .modal-header {
    border-bottom: 1px solid var(--sjhi-border);
    background: #f7faf8;
}

.story-modal .modal-title {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--sjhi-primary-green);
}

.story-modal .modal-body h5 {
    margin-top: 1rem;
    margin-bottom: 0.45rem;
    color: var(--sjhi-primary-green);
    font-family: 'Space Grotesk', sans-serif;
}

.story-modal .modal-body h5:first-child {
    margin-top: 0;
}

.story-modal .modal-body p {
    color: #43574d;
    line-height: 1.75;
    margin-bottom: 0.9rem;
}

.story-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.story-facts span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #d9e6dd;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    color: #3a5648;
    font-size: 0.86rem;
    font-weight: 600;
    background: #f8fcf9;
}

.story-facts i {
    color: var(--sjhi-medical-blue);
}

.core-programs {
    background: #fff;
}

.core-card {
    overflow: hidden;
    border: 1px solid var(--sjhi-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(8, 38, 20, 0.05);
}

.core-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #edf5ef;
}

.core-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.core-card-body {
    padding: 1rem 1.1rem 1.2rem;
}

.core-card-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sjhi-medical-blue);
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.core-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--sjhi-primary-green);
    margin-bottom: 0.55rem;
}

.core-card-summary {
    color: #4c6156;
    margin-bottom: 0.85rem;
}

.core-card-details {
    border-top: 1px solid var(--sjhi-border);
    padding-top: 0.8rem;
}

.core-card-details summary {
    cursor: pointer;
    color: var(--sjhi-medical-blue);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.core-card-details p {
    color: #4a6054;
    margin-bottom: 0;
}

@keyframes storyPanelIn {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (min-width: 992px) {
    .story-media {
        min-height: 430px;
    }

    .story-media.story-media-facility {
        min-height: 0;
    }
}

@media (max-width: 1400px) {
    .story-media {
        min-height: 400px;
    }

    .story-media-feature {
        min-height: 430px;
    }

    .story-media.story-media-facility {
        min-height: 0;
    }
}

@media (max-width: 1200px) {
    .story-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .story-media {
        aspect-ratio: 16 / 10;
    }

    .story-media-feature {
        min-height: auto;
    }

    .story-rail {
        gap: 0.55rem;
    }

    .story-heading {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .about-title {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
    }

    .about-copy {
        font-size: 0.95rem;
    }

    .story-tab {
        width: 100%;
        text-align: center;
    }

    .story-main {
        padding: 1rem;
        border-radius: 14px;
    }

    .story-rail {
        padding: 1rem;
        border-radius: 14px;
    }

    .story-highlights {
        gap: 0.6rem;
    }
}

@media (max-width: 575px) {
    .core-card-body {
        padding: 0.85rem 0.9rem 1rem;
    }

    .story-highlight {
        padding: 0.72rem 0.84rem;
    }

    .story-facts span {
        width: 100%;
        justify-content: flex-start;
    }
}
