/* =========================================
   FACILITIES SECTION
========================================= */

.facilities-section {
    padding: 110px 0;
    background: #ffffff;
}

.facilities-section .container {
    position: relative;
}


/* =========================================
   SECTION HEADING
========================================= */

.facilities-section .section-heading {
    margin-bottom: 60px;
}

.facilities-section .section-heading span {
    display: inline-block;

    color: #0F4C81;
    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.facilities-section .section-heading h2 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;

    color: #1E293B;

    margin: 15px 0;
}

.facilities-section .section-heading p {
    max-width: 650px;

    margin: 0 auto;

    color: #64748B;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   FACILITY CARD
========================================= */

.facility-card {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    background: #fff;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

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

    box-shadow: 0 25px 55px rgba(15, 76, 129, .13);
}


/* =========================================
   IMAGE
========================================= */

.facility-image {
    width: 100%;
    height: 240px;

    overflow: hidden;
}

.facility-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.facility-card:hover .facility-image img {
    transform: scale(1.08);
}


/* =========================================
   CONTENT
========================================= */

.facility-content {
    position: relative;

    flex: 1;

    padding: 35px;
}

.facility-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: -65px;
    margin-bottom: 20px;

    position: relative;
    z-index: 5;

    border-radius: 15px;

    background: #0F4C81;
    color: #fff;

    font-size: 28px;

    box-shadow: 0 10px 25px rgba(15, 76, 129, .18);

    transition:
        background .3s ease,
        transform .3s ease;
}

.facility-card:hover .facility-icon {
    background: #FFC107;
    color: #0F4C81;

    transform: translateY(-3px);
}


/* =========================================
   TITLE
========================================= */

.facility-content h3 {
    margin: 0 0 15px;

    color: #1E293B;

    font-size: 26px;
    line-height: 1.3;

    font-weight: 700;

    overflow-wrap: anywhere;
}


/* =========================================
   DESCRIPTION
========================================= */

.facility-content p {
    margin: 0;

    color: #64748B;

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================
   LINK
========================================= */

.facility-content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 20px;

    color: #0F4C81;

    text-decoration: none;

    font-weight: 700;
}

.facility-content a:hover {
    color: #0b3c66;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .facilities-section {
        padding: 80px 0;
    }

    .facilities-section .section-heading {
        margin-bottom: 45px;
    }

    .facilities-section .section-heading h2 {
        font-size: 36px;
    }

    .facilities-section .section-heading p {
        font-size: 16px;
    }

    .facility-image {
        height: 220px;
    }

    .facility-content {
        padding: 30px;
    }

    .facility-icon {
        width: 60px;
        height: 60px;

        margin-top: -60px;

        font-size: 25px;
    }

    .facility-content h3 {
        font-size: 23px;
    }

    .facility-content p {
        font-size: 15px;
        line-height: 1.7;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    .facilities-section {
        padding: 60px 0;
    }

    .facilities-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }


    /* Section heading */

    .facilities-section .section-heading {
        margin-bottom: 30px;
    }

    .facilities-section .section-heading span {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .facilities-section .section-heading h2 {
        font-size: 30px;
        line-height: 1.2;

        margin: 10px 0;
    }

    .facilities-section .section-heading p {
        font-size: 15px;
        line-height: 1.6;
    }


    /* Grid */

    .facilities-section .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 20px;
    }

    .facilities-section .col-lg-4,
    .facilities-section .col-md-6 {
        width: 100%;
    }


    /* Card */

    .facility-card {
        border-radius: 18px;

        box-shadow: 0 10px 30px rgba(0, 0, 0, .065);
    }

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


    /* Image */

    .facility-image {
        height: 190px;
    }


    /* Content */

    .facility-content {
        padding: 25px 20px 28px;
    }


    /* Icon */

    .facility-icon {
        width: 58px;
        height: 58px;

        margin-top: -58px;
        margin-bottom: 16px;

        border-radius: 13px;

        font-size: 24px;
    }


    /* Title */

    .facility-content h3 {
        font-size: 21px;
        line-height: 1.3;

        margin-bottom: 10px;
    }


    /* Description */

    .facility-content p {
        font-size: 14px;
        line-height: 1.65;
    }

}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .facilities-section {
        padding: 50px 0;
    }

    .facilities-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .facilities-section .section-heading h2 {
        font-size: 28px;
    }

    .facilities-section .section-heading p {
        font-size: 14px;
    }

    .facilities-section .row {
        --bs-gutter-y: 15px;
    }

    .facility-image {
        height: 175px;
    }

    .facility-content {
        padding: 22px 17px 24px;
    }

    .facility-icon {
        width: 54px;
        height: 54px;

        margin-top: -54px;
        margin-bottom: 13px;

        border-radius: 12px;

        font-size: 22px;
    }

    .facility-content h3 {
        font-size: 19px;
    }

    .facility-content p {
        font-size: 13px;
        line-height: 1.6;
    }

}