:root {
    --navy:#081638;
    --navy-dark:#050f29;
    --navy-light:#10254b;
    --navy-secondary:#10254b;
    --blue:#081638;
    --green:#7eb280;
    --green-dark:#28633f;
    --green-light:#b3d9b4;
    --green-soft:#e8f1e9;
    --inst-navy:#081638;
    --inst-blue:#10254b;
    --inst-line:#e2e9e4;
    --inst-paper:#f5f8f6;
    --inst-green:#7eb280;
}

[hidden] {
    display:none !important;
}

html {
    scroll-padding-top:140px;
}

.inst-hero {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    border-radius:28px;
    background:var(--inst-navy);
    color:white;
    margin-top:20px;
    padding:clamp(30px,5vw,85px);
    min-height:370px;
    display:flex;
    align-items:center;
}

.inst-hero-content {
    position:relative;
    z-index:2;
    max-width:1000px;
}

.inst-hero .breadcrumbs,
.inst-hero .eyebrow {
    color:#b3d9b4;
}

.inst-hero h1 {
    color:white;
    font-size:clamp(2.6rem,4.8vw,5.4rem);
    line-height:1.06;
    margin:22px 0;
    max-width:1000px;
}

.inst-hero h1 span {
    display:block;
    color:#b3d9b4;
}

.inst-hero p {
    color:#d4dfe8;
    font-size:1.05rem;
    max-width:690px;
}

.inst-hero-symbol {
    position:absolute;
    right:-35px;
    bottom:-85px;
    opacity:.065;
    transform:rotate(-12deg);
    z-index:-1;
}

.inst-hero-symbol svg {
    width:580px;
    height:580px;
}

.inst-section-top {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:25px;
    margin-bottom:30px;
}

.inst-section-top h2 {
    font-size:clamp(2rem,3.5vw,3.8rem);
    margin:12px 0;
}

.inst-search {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:280px;
    width:min(100%,390px);
    padding:16px 20px;
    border:1px solid var(--inst-line);
    background:var(--inst-paper);
    border-radius:16px;
    color:var(--green-dark);
}

.inst-search input {
    width:100%;
    min-width:0;
    background:transparent;
    border:0;
    outline:none;
    font:inherit;
    color:var(--inst-navy);
}

.inst-search:focus-within {
    border-color:var(--inst-green);
    box-shadow:0 0 0 3px #7eb28022;
}

.inst-service-grid,
.inst-department-grid,
.inst-building-grid,
.inst-residency-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}

.inst-service-card,
.inst-department-card,
.inst-building-card,
.inst-residency-card,
.inst-news-card {
    min-width:0;
    background:white;
    border:1px solid var(--inst-line);
    border-radius:23px;
    overflow:hidden;
    transition:transform .3s ease,box-shadow .3s ease;
}

.inst-service-card:hover,
.inst-department-card:hover,
.inst-news-card:hover {
    transform:translateY(-5px);
    box-shadow:0 18px 40px #08163812;
}

.inst-service-card {
    display:flex;
    flex-direction:column;
}

.inst-service-photo,
.inst-news-photo,
.inst-detail-photo {
    position:relative;
    display:grid;
    place-items:center;
    overflow:hidden;
    background:var(--green-soft);
    color:var(--green-dark);
}

.inst-service-photo {
    margin:10px 10px 0;
    border-radius:16px;
    aspect-ratio:16/10;
}

.inst-service-photo img,
.inst-news-photo img,
.inst-detail-photo img {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .6s ease;
}

.inst-service-card:hover img,
.inst-news-card:hover img {
    transform:scale(1.045);
}

.inst-photo-number,
.inst-photo-arrow {
    position:absolute;
    display:grid;
    place-items:center;
    background:white;
    color:var(--inst-navy);
    border-radius:50%;
    width:44px;
    height:44px;
    box-shadow:0 3px 15px #08163816;
}

.inst-photo-number {
    top:13px;
    left:13px;
    font-weight:700;
}

.inst-photo-arrow {
    right:13px;
    bottom:13px;
}

.inst-service-body,
.inst-news-body {
    flex:1;
    display:flex;
    flex-direction:column;
    gap:15px;
    padding:26px;
}

.inst-service-body h3,
.inst-news-body h3 {
    font-size:1.55rem;
    line-height:1.2;
}

.inst-service-body p,
.inst-news-body p {
    font-size:.94rem;
    line-height:1.7;
}

.inst-text-link {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-top:1px solid var(--inst-line);
    padding-top:17px;
    margin-top:auto;
    font-weight:700;
    color:var(--green-dark);
}

.inst-detail {
    padding-block:30px 75px;
}

.inst-detail-hero {
    display:grid;
    grid-template-columns:1fr 1fr;
    border-radius:26px;
    background:var(--inst-paper);
    overflow:hidden;
    min-height:450px;
}

.inst-detail-copy {
    padding:clamp(30px,5vw,65px);
    align-self:center;
}

.inst-detail-copy h1 {
    font-size:clamp(2.3rem,4.5vw,5.2rem);
    margin:16px 0 24px;
    overflow-wrap:anywhere;
}

.inst-detail-photo {
    min-height:350px;
}

.inst-actions {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    margin-top:25px;
}

.inst-detail-grid {
    display:grid;
    grid-template-columns:minmax(0,1.7fr) minmax(270px,.8fr);
    gap:24px;
    margin-top:28px;
    align-items:start;
}

.inst-panel {
    padding:clamp(24px,4vw,50px);
    border:1px solid var(--inst-line);
    border-radius:24px;
    margin-bottom:24px;
}

.inst-panel h2 {
    font-size:clamp(1.6rem,3vw,3rem);
    margin:15px 0 22px;
}

.inst-long-text {
    line-height:1.9;
    font-size:1.02rem;
}

.inst-feature-list {
    display:grid;
    gap:12px;
    margin-top:25px;
}

.inst-feature-list>div {
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px;
    border-radius:12px;
    background:var(--inst-paper);
    color:var(--green-dark);
    font-weight:600;
}

.inst-contact-panel {
    position:sticky;
    top:150px;
    display:grid;
    gap:20px;
    padding:30px;
    background:var(--green-soft);
    border-radius:24px;
}

.inst-contact-list {
    display:grid;
    gap:10px;
    overflow-wrap:anywhere;
}

.inst-contact-list a,
.inst-contact-list>div {
    display:flex;
    align-items:center;
    gap:9px;
    color:var(--inst-navy);
    font-size:.9rem;
    font-weight:600;
}

.inst-contact-list a:hover {
    color:var(--green-dark);
    text-decoration:underline;
}

.inst-info-row {
    display:grid;
    gap:6px;
    padding-bottom:15px;
    border-bottom:1px solid #c9dbcb;
}

.inst-info-row small {
    color:#64736c;
}

.inst-info-row strong {
    color:var(--inst-navy);
}

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

.inst-gallery button {
    background:none;
    border:0;
    padding:0;
    overflow:hidden;
    border-radius:12px;
    cursor:zoom-in;
}

.inst-gallery img {
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    display:block;
}

.inst-priority-grid {
    position:relative;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
    margin-top:24px;
}

.inst-priority {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    padding:30px;
    border-radius:22px;
    color:white;
    background:var(--inst-navy);
    transition:transform .25s ease;
}

.inst-priority:hover {
    transform:translateY(-4px);
}

.inst-priority.emergency {
    background:#a91e32;
}

.inst-priority.green {
    background:#28633f;
}

.inst-priority h3 {
    color:white;
    font-size:1.3rem;
}

.inst-priority strong {
    color:white;
    font-size:clamp(1.4rem,2.5vw,2.4rem);
    letter-spacing:-.045em;
}

.inst-priority small {
    font-size:.69rem;
    letter-spacing:.08em;
    opacity:.85;
}

.inst-chips {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:28px;
}

.inst-chips button {
    border:1px solid var(--inst-line);
    border-radius:50px;
    background:white;
    color:var(--inst-navy);
    padding:10px 18px;
    font:inherit;
    font-size:.85rem;
    font-weight:600;
    cursor:pointer;
}

.inst-chips button.active {
    color:white;
    background:var(--inst-navy);
    border-color:var(--inst-navy);
}

.inst-department-card {
    display:flex;
    flex-direction:column;
    gap:16px;
    padding:25px;
}

.inst-department-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.inst-department-top small {
    font-size:.75rem;
    color:var(--green-dark);
    text-align:right;
}

.inst-department-card h3 {
    font-size:1.3rem;
}

.inst-department-card p {
    font-size:.88rem;
}

.inst-department-location {
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding-top:15px;
    border-top:1px solid var(--inst-line);
    margin-top:auto;
    color:var(--green-dark);
}

.inst-department-location strong,
.inst-department-location small {
    display:block;
    font-size:.85rem;
}

.inst-department-location small {
    margin-top:5px;
    color:#657369;
}

.inst-map-layout {
    display:grid;
    grid-template-columns:1.7fr 1fr;
    overflow:hidden;
    border:1px solid var(--inst-line);
    border-radius:25px;
    min-height:420px;
}

.inst-map {
    min-height:420px;
}

.inst-map iframe {
    width:100%;
    height:100%;
    min-height:420px;
    display:block;
    border:0;
}

.inst-map-info {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    gap:18px;
    padding:clamp(25px,4vw,45px);
    background:var(--inst-paper);
}

.inst-map-info h2 {
    font-size:clamp(1.8rem,3vw,3rem);
}

.inst-spaced {
    margin-top:55px;
}

.inst-building-header {
    min-height:150px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    background:var(--inst-navy);
    color:#b3d9b4;
    padding:25px;
}

.inst-building-header h3 {
    color:white;
    font-size:1.6rem;
}

.inst-building-body {
    display:grid;
    gap:18px;
    padding:24px;
}

.inst-building-department {
    display:grid;
    gap:5px;
    padding:12px 0;
    border-bottom:1px solid var(--inst-line);
}

.inst-building-department small {
    color:#718076;
}

.inst-building-body details,
.inst-residency-card details {
    background:var(--inst-paper);
    border-radius:12px;
    padding:15px;
}

.inst-building-body summary,
.inst-residency-card summary {
    cursor:pointer;
    font-weight:700;
    color:var(--inst-navy);
}

.inst-insurance-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}

.inst-insurance-card {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:17px;
    padding:25px;
    border:1px solid var(--inst-line);
    border-radius:20px;
    transition:.3s ease;
}

.inst-insurance-card:hover {
    border-color:var(--inst-green);
    box-shadow:0 10px 30px #08163809;
}

.inst-insurance-logo {
    display:grid;
    place-items:center;
    width:100%;
    height:105px;
    color:var(--green-dark);
}

.inst-insurance-logo img {
    max-width:85%;
    max-height:90px;
    object-fit:contain;
}

.inst-insurance-card h3 {
    font-size:1.15rem;
}

.inst-insurance-card small {
    font-size:.8rem;
    color:#6b786d;
}

.inst-wide-cta {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:35px;
    padding:clamp(30px,5vw,60px);
    margin-top:45px;
    background:var(--inst-navy);
    color:white;
    border-radius:25px;
}

.inst-wide-cta h2 {
    color:white;
    font-size:clamp(1.7rem,3vw,3rem);
    margin-bottom:14px;
}

.inst-wide-cta p {
    color:#d8e3eb;
}

.inst-wide-cta .btn {
    background:#b3d9b4;
    color:var(--inst-navy);
    flex-shrink:0;
}

.inst-residency-intro,
.inst-about-values {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
}

.inst-residency-intro>div,
.inst-about-values article {
    display:grid;
    gap:15px;
    padding:30px;
    background:var(--green-soft);
    border-radius:22px;
}

.inst-residency-intro svg,
.inst-about-values svg {
    color:var(--green-dark);
}

.inst-residency-card {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
    padding:27px;
}

.inst-residency-top {
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:var(--green-dark);
    font-weight:700;
    margin-bottom:10px;
}

.inst-residency-card h3 {
    font-size:1.45rem;
}

.inst-residency-card details {
    width:100%;
    margin-top:auto;
}

.inst-residency-card details p,
.inst-residency-card details h4 {
    margin-top:15px;
}

.inst-tag {
    display:inline-block;
    color:var(--green-dark);
    background:var(--green-soft);
    border-radius:50px;
    padding:8px 12px;
    font-size:.8rem;
    font-weight:700;
}

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

.inst-news-card {
    display:flex;
    flex-direction:column;
}

.inst-news-photo {
    aspect-ratio:16/10;
}

.inst-news-card.featured {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:1.1fr 1fr;
}

.inst-news-card.featured .inst-news-body {
    justify-content:center;
    padding:clamp(26px,4vw,55px);
}

.inst-news-card.featured h3 {
    font-size:clamp(1.8rem,3vw,3rem);
}

.inst-news-card.featured .inst-text-link {
    margin-top:10px;
}

.inst-news-body small {
    color:#728077;
}

.inst-article {
    max-width:1050px;
    margin:auto;
}

.inst-article h1 {
    font-size:clamp(2.3rem,4.8vw,4.8rem);
    margin:20px 0;
}

.inst-article-meta {
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--green-dark);
    font-size:.9rem;
}

.inst-article-lead {
    font-size:1.2rem;
    line-height:1.7;
    margin-block:28px;
}

.inst-article-image {
    width:100%;
    max-height:650px;
    object-fit:cover;
    border-radius:24px;
}

.inst-article-content {
    max-width:800px;
    margin:40px auto;
    font-size:1.08rem;
    line-height:1.95;
}

.inst-about-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:clamp(25px,6vw,100px);
}

.inst-about-photo {
    min-height:400px;
    border-radius:25px;
    overflow:hidden;
}

.inst-about-photo img {
    width:100%;
    height:100%;
    min-height:400px;
    object-fit:cover;
}

.inst-about-copy h2 {
    font-size:clamp(2rem,3.8vw,4rem);
    margin:16px 0 22px;
}

.inst-about-copy p {
    margin-bottom:20px;
    line-height:1.8;
}

.inst-about-values {
    margin-top:50px;
}

.inst-contact-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}

.inst-contact-card {
    display:grid;
    gap:16px;
    padding:35px;
    border:1px solid var(--inst-line);
    border-radius:23px;
    align-items:start;
    justify-items:start;
}

.inst-contact-card strong {
    font-size:clamp(1rem,2vw,1.65rem);
    overflow-wrap:anywhere;
    max-width:100%;
    color:var(--inst-navy);
}

.inst-contact-emergency {
    background:#a91e32;
    color:white;
    border:0;
}

.inst-contact-emergency h3,
.inst-contact-emergency strong,
.inst-contact-emergency p {
    color:white;
}

.inst-contact-emergency .btn {
    background:white;
    color:#a91e32;
}

.inst-no-results {
    text-align:center;
    padding:35px;
    background:var(--inst-paper);
    border-radius:15px;
    margin-top:20px;
}

.inst-lightbox {
    border:0;
    padding:0;
    background:transparent;
    max-width:92vw;
    max-height:90vh;
    overflow:visible;
}

.inst-lightbox::backdrop {
    background:#050f29e8;
}

.inst-lightbox img {
    max-width:90vw;
    max-height:85vh;
    object-fit:contain;
    border-radius:15px;
}

.inst-lightbox button {
    position:absolute;
    right:10px;
    top:10px;
    width:42px;
    height:42px;
    border-radius:50%;
    border:0;
    background:white;
    color:var(--inst-navy);
    font-size:25px;
    cursor:pointer;
}

@media(max-width:1100px) {
    .inst-insurance-grid {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .inst-service-grid,
    .inst-department-grid,
    .inst-building-grid,
    .inst-residency-grid,
    .inst-news-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:800px) {
    .inst-detail-hero,
    .inst-detail-grid,
    .inst-map-layout,
    .inst-about-grid,
    .inst-news-card.featured {
        grid-template-columns:1fr;
    }

    .inst-contact-panel {
        position:static;
    }

    .inst-priority-grid,
    .inst-residency-intro,
    .inst-about-values {
        grid-template-columns:1fr;
    }

    .inst-section-top,
    .inst-wide-cta {
        flex-direction:column;
        align-items:flex-start;
    }

    .inst-search {
        width:100%;
        min-width:0;
    }
}

@media(max-width:560px) {
    .inst-hero {
        min-height:320px;
        border-radius:20px;
        padding:28px 23px;
    }

    .inst-service-grid,
    .inst-department-grid,
    .inst-building-grid,
    .inst-residency-grid,
    .inst-news-grid,
    .inst-contact-grid {
        grid-template-columns:1fr;
    }

    .inst-insurance-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:12px;
    }

    .inst-insurance-card {
        padding:16px;
    }

    .inst-insurance-logo {
        height:75px;
    }

    .inst-gallery {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .inst-map,
    .inst-map iframe {
        min-height:300px;
    }

    .inst-contact-card {
        padding:25px;
    }

    .inst-detail-photo {
        min-height:250px;
    }

    .inst-spaced {
        margin-top:35px;
    }
}