.totm-hospital-hero {
    --totm-hospital-hero: none;
    position: relative;
    min-height: 470px;
    overflow: hidden;
    color: #fff;
    background-image: var(--totm-hospital-hero);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.totm-hospital-hero--photo { background-position: center 38%; }
.totm-hospital-hero--banner { min-height: 380px; background-color: #064454; }

.totm-hospital-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 45, 58, .96) 0%, rgba(4, 72, 77, .78) 51%, rgba(3, 44, 57, .2) 100%);
}

.totm-hospital-hero--banner .totm-hospital-hero__overlay { display: none; }

.totm-hospital-hero__inner {
    position: relative;
    z-index: 1;
    min-height: 470px;
    padding-top: 70px;
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.totm-hospital-hero--banner .totm-hospital-hero__inner {
    min-height: 380px;
    justify-content: flex-end;
    padding-bottom: 30px;
}

.totm-hospital-hero__inner > span,
.totm-hospital-about small,
.totm-hospital-feature small {
    color: #72ead4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.totm-hospital-hero h1 {
    max-width: 720px;
    margin: 8px 0 12px;
    color: #fff;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.totm-hospital-hero__inner > p {
    max-width: 610px;
    margin: 0 0 26px;
    color: #d8e7e9;
    font-size: 18px;
    line-height: 1.65;
}

.totm-hospital-hero__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.totm-hospital-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.totm-hospital-hero__actions a,
.totm-hospital-brochure {
    min-height: 48px;
    padding: 0 20px;
    border: 2px solid #10d5af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #063c48;
    background: #10d5af;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .035em;
    text-decoration: none;
    text-transform: uppercase;
}

.totm-hospital-hero__actions a:hover { color: #063c48; background: #fff; border-color: #fff; }
.totm-hospital-hero__actions a.is-outline { color: #fff; border-color: rgba(255, 255, 255, .72); background: rgba(3, 44, 57, .32); }
.totm-hospital-hero__actions a.is-outline:hover { color: #063c48; background: #fff; }

.totm-hospital-page { padding-top: 42px; padding-bottom: 70px; }

.totm-hospital-facts {
    border: 1px solid #dce7e9;
    border-radius: 13px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(8, 53, 65, .06);
}

.totm-hospital-facts div {
    min-height: 104px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.totm-hospital-facts div + div { border-left: 1px solid #dce7e9; }
.totm-hospital-facts strong { color: #08756f; font-size: 25px; line-height: 1.2; }
.totm-hospital-facts span { margin-top: 4px; color: #687f87; font-size: 12px; line-height: 1.4; }

.totm-hospital-facts--4 { grid-template-columns: repeat(4, 1fr); }

.totm-hospital-about {
    margin-top: 24px;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 22px;
}

.totm-hospital-about > article,
.totm-hospital-about > aside {
    padding: 28px;
    border: 1px solid #dce7e9;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(8, 53, 65, .04);
}

.totm-hospital-about small,
.totm-hospital-feature small { color: #08756f; }

.totm-hospital-about h2,
.totm-hospital-feature h3 {
    margin: 5px 0 11px;
    color: #173e4d;
    font-size: 28px;
    line-height: 1.25;
}

.totm-hospital-about article > p,
.totm-hospital-feature p { color: #637982; font-size: 15px; line-height: 1.78; }

.totm-hospital-services { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 7px; }
.totm-hospital-services span {
    padding: 7px 10px;
    border: 1px solid #d8e6e4;
    border-radius: 20px;
    color: #2d615d;
    background: #f0f8f6;
    font-size: 12px;
    font-weight: 700;
}

.totm-hospital-brochure { margin-top: 24px; min-height: 44px; padding: 0 16px; border-radius: 4px; font-size: 12px; }
.totm-hospital-brochure:hover { color: #fff; background: #075760; border-color: #075760; }

.totm-hospital-gallery__main { position: relative; height: 360px; border-radius: 9px; overflow: hidden; background: #e8edef; }
.totm-hospital-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.totm-hospital-gallery__main span { position: absolute; right: 9px; bottom: 9px; padding: 5px 8px; border-radius: 4px; color: #fff; background: rgba(3, 40, 53, .8); font-size: 12px; }
.totm-hospital-gallery__thumbs { margin-top: 8px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.totm-hospital-gallery__thumbs button { padding: 2px; border: 2px solid transparent; border-radius: 6px; background: #e8edef; cursor: pointer; }
.totm-hospital-gallery__thumbs button.is-active { border-color: #00b894; }
.totm-hospital-gallery__thumbs img { width: 100%; height: 52px; border-radius: 3px; object-fit: cover; }

.totm-hospital-feature {
    min-height: 360px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    color: #fff;
    background: linear-gradient(145deg, #06384b, #008f79) !important;
}
.totm-hospital-feature::before { position: absolute; width: 330px; height: 330px; right: -90px; top: -125px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; content: ''; }
.totm-hospital-feature > i { margin-bottom: auto; color: #6ae3cc; font-size: 58px; }
.totm-hospital-feature small { color: #82eed9; }
.totm-hospital-feature h3 { position: relative; color: #fff; }
.totm-hospital-feature p { position: relative; margin-bottom: 0; color: #d7e8e8; }

.totm-hospital-history {
    margin-top: 24px;
    padding: 30px;
    border-radius: 13px;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(120px, .55fr));
    align-items: center;
    gap: 22px;
    color: #fff;
    background: linear-gradient(125deg, #06384b, #075b62 70%, #008f79 140%);
}
.totm-hospital-history small,
.totm-hospital-section-heading small { color: #72ead4; font-size: 12px; font-weight: 850; letter-spacing: .11em; }
.totm-hospital-history h2 { margin: 5px 0 10px; color: #fff; font-size: 27px; line-height: 1.3; }
.totm-hospital-history p { margin: 0; color: #d6e7e8; font-size: 14px; line-height: 1.72; }
.totm-hospital-history > span { min-height: 100px; padding: 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; display: flex; flex-direction: column; justify-content: center; color: #bcd3d5; background: rgba(255,255,255,.06); font-size: 11px; line-height: 1.45; }
.totm-hospital-history > span strong { margin-bottom: 4px; color: #70e7d0; font-size: 24px; }

.totm-hospital-detail-section { margin-top: 32px; }
.totm-hospital-section-heading { margin-bottom: 17px; }
.totm-hospital-section-heading small { color: #08756f; }
.totm-hospital-section-heading h2 { margin: 4px 0 0; color: #173e4d; font-size: 29px; line-height: 1.3; }
.totm-hospital-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.totm-hospital-detail-grid article { border: 1px solid #dce7e9; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 42% minmax(0, 1fr); background: #fff; box-shadow: 0 8px 25px rgba(8,53,65,.045); }
.totm-hospital-detail-grid img { width: 100%; height: 100%; min-height: 245px; object-fit: cover; }
.totm-hospital-detail-grid article > div { padding: 23px; align-self: center; }
.totm-hospital-detail-grid h3 { margin: 0 0 9px; color: #173e4d; font-size: 20px; line-height: 1.35; }
.totm-hospital-detail-grid p { margin: 0; color: #637982; font-size: 14px; line-height: 1.7; }

@media (max-width: 991px) {
    .totm-hospital-about { grid-template-columns: 1fr; }
    .totm-hospital-history { grid-template-columns: repeat(3, 1fr); }
    .totm-hospital-history > div { grid-column: 1 / -1; }
    .totm-hospital-detail-grid { grid-template-columns: 1fr; }
    .totm-hospital-facts { grid-template-columns: repeat(2, 1fr); }
    .totm-hospital-facts--4 { grid-template-columns: repeat(2, 1fr); }
    .totm-hospital-facts div + div { border-left: 0; border-top: 1px solid #dce7e9; }
    .totm-hospital-facts div:nth-child(even) { border-left: 1px solid #dce7e9; }
}

@media (max-width: 767px) {
    .totm-hospital-hero,
    .totm-hospital-hero__inner { min-height: 420px; }
    .totm-hospital-hero { background-image: var(--totm-hospital-mobile-hero); }
    .totm-hospital-active .ttm-fbar-btn { display: none !important; }
    .totm-hospital-hero--banner {
        min-height: 260px;
        background-color: #064454;
        background-position: center top;
        background-size: 100% auto;
    }
    .totm-hospital-hero--banner .totm-hospital-hero__inner { min-height: 235px; padding-bottom: 18px; }
    .totm-hospital-hero h1 { font-size: 38px; }
    .totm-hospital-hero__inner > p { font-size: 16px; }
    .totm-hospital-page { padding-top: 26px; padding-bottom: 48px; }
    .totm-hospital-about > article,
    .totm-hospital-about > aside { padding: 20px; }
    .totm-hospital-gallery__main { height: 280px; }
    .totm-hospital-gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
    .totm-hospital-history { padding: 22px; gap: 10px; }
    .totm-hospital-detail-grid article { grid-template-columns: 38% minmax(0, 1fr); }
}

@media (max-width: 480px) {
    .totm-hospital-hero__actions { width: 100%; flex-direction: column; }
    .totm-hospital-hero__actions a { width: 100%; }
    .totm-hospital-facts,
    .totm-hospital-facts--4 { grid-template-columns: 1fr; }
    .totm-hospital-facts div:nth-child(even) { border-left: 0; }
    .totm-hospital-about h2,
    .totm-hospital-feature h3 { font-size: 24px; }
    .totm-hospital-gallery__main { height: 240px; }
    .totm-hospital-history { grid-template-columns: 1fr; }
    .totm-hospital-history > div { grid-column: auto; }
    .totm-hospital-history > span { min-height: 78px; }
    .totm-hospital-section-heading h2 { font-size: 24px; }
    .totm-hospital-detail-grid article { grid-template-columns: 1fr; }
    .totm-hospital-detail-grid img { min-height: 0; aspect-ratio: 16 / 10; }
    .totm-hospital-detail-grid article > div { padding: 20px; }
}
