/* =========================================
   PARTNER HOSPITALS SECTION
========================================= */

.hospital-section {
    background: #e9f4f3;
}

.hospital-container {
    max-width: 1132px;
}

/* Heading */

.hospital-heading-wrap {
    padding: 70px 0 37px;
    background: #e9f4f3;
}

.hospital-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    color: #b17a0d;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hospital-label span {
    width: 22px;
    height: 1px;
    flex: 0 0 auto;
    background: #c89025;
}

.hospital-heading-wrap h2 {
    max-width: 1080px;
    margin: 0 0 16px;
    color: #003e50;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 39px;
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.8px;
}

.hospital-heading-wrap p {
    max-width: 680px;
    margin: 0;
    color: #355a60;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

/* Filters */

.hospital-filter-wrap {
    padding: 18px 0;
    border-top: 1px solid #dce5e4;
    border-bottom: 1px solid #dce5e4;
    background: #ffffff;
}

.hospital-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.hospital-filter-row + .hospital-filter-row {
    margin-top: 10px;
}

.hospital-filter-row > strong {
    width: 72px;
    flex: 0 0 72px;
    padding-top: 9px;
    color: #2d5559;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.hospital-filter-list {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 9px;
}

.hospital-filter-list button {
    min-height: 32px;
    padding: 5px 16px;
    border: 1px solid #d8dfde;
    border-radius: 999px;
    color: #173f47;
    background: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.hospital-filter-list button:hover,
.hospital-filter-list button.active {
    color: #ffffff;
    border-color: #008f8c;
    background: #008f8c;
    transform: translateY(-1px);
}

/* Grid */

.hospital-grid-wrap {
    padding: 36px 0 16px;
    background: #e9f4f3;
}

.hospital-grid {
    --bs-gutter-x: 23px;
    --bs-gutter-y: 23px;
}

.hospital-column {
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.hospital-column.is-hidden {
    display: none;
}

/* Card */

.hospital-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #d6dfde;
    border-radius: 14px;
    background: #ffffff;
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.hospital-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 145, 143, 0.3);
    box-shadow: 0 16px 30px rgba(19, 72, 77, 0.09);
}

/* Card artwork */

.hospital-art {
    position: relative;
    height: 224px;
    overflow: hidden;
}

.hospital-art-one {
    background: linear-gradient(135deg, #138e88 0%, #075384 100%);
}

.hospital-art-two {
    background: linear-gradient(135deg, #1165b5 0%, #073e5a 100%);
}

.hospital-art-three {
    background: linear-gradient(135deg, #098a83 0%, #07527d 100%);
}

.hospital-budget-badge {
    position: absolute;
    z-index: 5;
    left: 15px;
    bottom: 14px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #003e50;
    background: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* First card artwork */

.hospital-building-main {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 0;
    width: 86px;
    height: 192px;
    border-radius: 9px 9px 0 0;
    background: #f6faf9;
    transform: translateX(-50%);
}

.hospital-building-main::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 36px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #70a6d4;
}

.hospital-cross::before,
.hospital-cross::after {
    content: "";
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 77px;
    background: #0769bd;
    transform: translateX(-50%);
}

.hospital-cross::before {
    width: 63px;
    height: 22px;
}

.hospital-cross::after {
    width: 23px;
    height: 71px;
}

.hospital-building-side {
    position: absolute;
    bottom: 0;
    background: rgba(116, 184, 197, 0.38);
}

.hospital-building-side.side-left {
    left: 16px;
    width: 47px;
    height: 121px;
}

.hospital-building-side.side-right {
    right: 18px;
    width: 55px;
    height: 139px;
}

/* Second card artwork */

.hospital-art-circle {
    position: absolute;
    left: -45px;
    bottom: -78px;
    width: 215px;
    height: 215px;
    border-radius: 50%;
    background: rgba(117, 171, 211, 0.31);
}

.hospital-medical-circle {
    position: absolute;
    top: 14px;
    right: 35px;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border: 4px solid rgba(209, 233, 246, 0.55);
    border-radius: 50%;
}

.hospital-medical-circle::before {
    content: "";
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #f3f8f8;
}

.hospital-medical-circle span::before,
.hospital-medical-circle span::after {
    content: "";
    position: absolute;
    top: 53px;
    left: 56px;
    border-radius: 4px;
    background: #096bbd;
    transform: translate(-50%, -50%);
}

.hospital-medical-circle span::before {
    width: 47px;
    height: 7px;
}

.hospital-medical-circle span::after {
    width: 7px;
    height: 47px;
}

/* Third card artwork */

.hospital-tower {
    position: absolute;
    bottom: 0;
    border-radius: 6px 6px 0 0;
    background: rgba(119, 190, 201, 0.43);
}

.tower-one {
    left: 31px;
    width: 57px;
    height: 95px;
}

.tower-two {
    right: 119px;
    width: 58px;
    height: 116px;
}

.tower-three {
    right: 49px;
    width: 51px;
    height: 174px;
}

.hospital-main-tower {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 0;
    width: 65px;
    height: 155px;
    border-radius: 7px 7px 0 0;
    background: #f7faf9;
    transform: translateX(-50%);
}

.hospital-main-tower i,
.hospital-main-tower b {
    position: absolute;
    left: 50%;
    width: 21px;
    height: 22px;
    background: #0769bd;
    transform: translateX(-50%);
}

.hospital-main-tower i {
    top: 29px;
}

.hospital-main-tower b {
    top: 68px;
    background: #6ca0cf;
}

/* Body */

.hospital-card-body {
    display: flex;
    min-height: 258px;
    flex-direction: column;
    padding: 18px 20px 19px;
}

.hospital-card-body h3 {
    margin: 0 0 7px;
    color: #003e50;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.hospital-description {
    margin: 0 0 10px;
    color: #365b60;
    font-family: "DM Sans", sans-serif;
    font-size: 12.5px;
    line-height: 1.65;
}

.hospital-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 11px;
}

.hospital-tags span {
    padding: 5px 10px;
    border-radius: 999px;
    color: #15545a;
    background: #e8f2f1;
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    line-height: 1.2;
}

.hospital-location {
    margin: 0 0 14px;
    color: #456a6e;
    font-family: "DM Sans", sans-serif;
    font-size: 11.5px;
    line-height: 1.4;
}

.hospital-appointment-btn {
    width: fit-content;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 8px 19px;
    border: 1.5px solid #006bc7;
    border-radius: 999px;
    color: #005296;
    background: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hospital-appointment-btn:hover {
    color: #ffffff;
    background: #0871bd;
    transform: translateY(-2px);
    box-shadow: 0 9px 18px rgba(0, 102, 181, 0.18);
}

.hospital-empty-message {
    display: none;
    margin: 35px 0;
    color: #47696d;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    text-align: center;
}

.hospital-empty-message.show {
    display: block;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1199.98px) {
    .hospital-container {
        max-width: 960px;
    }

    .hospital-heading-wrap h2 {
        font-size: 37px;
    }

    .hospital-card-body {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 991.98px) {
    .hospital-heading-wrap {
        padding: 62px 0 34px;
    }

    .hospital-container {
        max-width: 720px;
    }

    .hospital-heading-wrap h2 {
        font-size: 38px;
    }

    .hospital-filter-row {
        flex-direction: column;
        gap: 9px;
    }

    .hospital-filter-row + .hospital-filter-row {
        margin-top: 16px;
    }

    .hospital-filter-row > strong {
        width: auto;
        flex: 0 0 auto;
        padding-top: 0;
    }

    .hospital-card-body {
        min-height: 270px;
    }
}

@media (max-width: 767.98px) {
    .hospital-heading-wrap h2 {
        font-size: 35px;
    }

    .hospital-heading-wrap p {
        font-size: 15px;
    }

    .hospital-grid {
        --bs-gutter-y: 18px;
    }
}

@media (max-width: 575.98px) {
    .hospital-heading-wrap {
        padding: 50px 0 29px;
    }

    .hospital-container {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .hospital-label {
        margin-bottom: 14px;
        font-size: 10px;
        letter-spacing: 1.6px;
    }

    .hospital-heading-wrap h2 {
        margin-bottom: 14px;
        font-size: 33px;
        line-height: 1.04;
    }

    .hospital-heading-wrap p {
        font-size: 14px;
        line-height: 1.65;
    }

    .hospital-filter-wrap {
        padding: 17px 0;
    }

    .hospital-filter-list {
        gap: 7px;
    }

    .hospital-filter-list button {
        min-height: 31px;
        padding: 5px 13px;
        font-size: 11.5px;
    }

    .hospital-grid-wrap {
        padding: 28px 0 12px;
    }

    .hospital-art {
        height: 218px;
    }

    .hospital-card-body {
        min-height: auto;
        padding: 19px 18px 20px;
    }

    .hospital-card-body h3 {
        font-size: 19px;
    }

    .hospital-description {
        font-size: 13px;
    }
}