/* =========================================================
   MAHFOOZ ACADEMY
   FACILITIES / ABOUT SECTION
========================================================= */

.facilities-about {
    width: 100%;
    padding: 85px 20px;
    background: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.facilities-about-wrapper {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    align-items: center;

    gap: 70px;
}


/* =========================================================
   LEFT IMAGE
========================================================= */

.facilities-about-image {
    width: 100%;
    height: 395px;

    position: relative;

    overflow: hidden;

    /*
       Screenshot jaisa smooth rounded shape
    */
    border-radius: 22px 22px 38px 38px;

    background: #f5f5f5;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.12);

    box-sizing: border-box;
}

.facilities-about-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    border-radius: inherit;

    transition: transform 0.5s ease;
}

.facilities-about-image:hover img {
    transform: scale(1.03);
}


/* =========================================================
   RIGHT CONTENT
========================================================= */

.facilities-about-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


/* =========================================================
   MAROON LABEL
========================================================= */

.facilities-about-tag {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: #800020;
    color: #ffffff;

    padding: 13px 27px;

    border-radius: 30px;

    font-size: 15px;
    font-weight: 700;

    line-height: 1;

    margin-bottom: 25px;

    white-space: nowrap;
}


/* =========================================================
   MAIN HEADING
========================================================= */

.facilities-about-content h2 {
    width: 100%;

    margin: 0 0 27px;

    color: #222222;

    font-size: 44px;

    line-height: 1.24;

    font-weight: 800;

    letter-spacing: -1px;

    /*
       Prevents unnecessary breaking
       inside "Facilities for"
    */
    word-break: normal;
    overflow-wrap: normal;
}

.facilities-about-content h2 span {
    display: inline;
}


/* =========================================================
   PARAGRAPH
========================================================= */

.facilities-about-content p {
    width: 100%;

    margin: 0 0 18px;

    color: #5d6268;

    font-size: 16px;

    line-height: 1.8;

    font-weight: 400;
}


/* =========================================================
   FEATURE GRID
========================================================= */

.facilities-about-list {
    width: 100%;

    margin-top: 28px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 17px;

    box-sizing: border-box;
}


/* =========================================================
   FEATURE CARD
========================================================= */

.facilities-about-item {
    width: 100%;
    height: 64px;

    position: relative;

    display: flex;

    align-items: center;

    padding: 0 20px 0 24px;

    box-sizing: border-box;

    background: #f6f7f9;

    /*
       IMPORTANT:
       No normal border-left.
       Rounded line is created separately below.
    */
    border: none;

    border-radius: 15px;

    overflow: hidden;

    white-space: nowrap;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


/* =========================================================
   CURVED MAROON SIDE LINE
========================================================= */

.facilities-about-item::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 5px;
    height: 100%;

    background: #800020;

    /*
       Top + bottom rounded
    */
    border-radius: 0 10px 10px 0;

    z-index: 1;
}


/* =========================================================
   CHECK ICON
========================================================= */

.facilities-about-item span {
    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-right: 9px;

    color: #171717;

    font-size: 18px;

    font-weight: 800;

    line-height: 1;
}


/* =========================================================
   CARD TEXT
========================================================= */

.facilities-about-item strong {
    display: block;

    flex: 1 1 auto;

    min-width: 0;

    color: #171717;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.2;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   CARD HOVER
========================================================= */

.facilities-about-item:hover {
    transform: translateY(-3px);

    background: #fbf4f6;

    box-shadow:
        0 8px 22px rgba(128, 0, 32, 0.10);
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {

    .facilities-about-wrapper {
        max-width: 1250px;
        gap: 70px;
    }

    .facilities-about-image {
        height: 395px;
    }

    .facilities-about-content h2 {
        font-size: 44px;
    }

    .facilities-about-content p {
        font-size: 16px;
    }

    .facilities-about-item {
        height: 64px;
    }

    .facilities-about-item strong {
        font-size: 16px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .facilities-about {
        padding: 70px 20px;
    }

    .facilities-about-wrapper {
        gap: 45px;
    }

    .facilities-about-image {
        height: 350px;

        border-radius: 20px 20px 34px 34px;
    }

    .facilities-about-content h2 {
        font-size: 38px;

        letter-spacing: -0.5px;
    }

    .facilities-about-content p {
        font-size: 15px;

        line-height: 1.75;
    }

    .facilities-about-tag {
        padding: 11px 22px;

        font-size: 14px;
    }

    .facilities-about-list {
        gap: 14px;
    }

    .facilities-about-item {
        height: 60px;

        padding-left: 20px;
        padding-right: 14px;
    }

    .facilities-about-item strong {
        font-size: 14px;
    }
}


/* =========================================================
   TABLET SMALL
========================================================= */

@media (max-width: 850px) {

    .facilities-about-wrapper {
        grid-template-columns:
            minmax(0, 0.95fr)
            minmax(0, 1.05fr);

        gap: 30px;
    }

    .facilities-about-image {
        height: 330px;
    }

    .facilities-about-content h2 {
        font-size: 34px;
    }

    .facilities-about-content p {
        font-size: 14px;
    }

    .facilities-about-item {
        padding-left: 17px;
    }

    .facilities-about-item strong {
        font-size: 13px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .facilities-about {
        width: 100%;

        padding: 55px 16px;

        box-sizing: border-box;
    }

    .facilities-about-wrapper {
        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 30px;
    }


    /* IMAGE */

    .facilities-about-image {
        width: 100%;

        height: 270px;

        border-radius: 16px 16px 30px 30px;

        order: 1;
    }


    /* CONTENT */

    .facilities-about-content {
        width: 100%;

        order: 2;
    }


    /* TAG */

    .facilities-about-tag {
        padding: 9px 16px;

        font-size: 12px;

        margin-bottom: 16px;
    }


    /* HEADING */

    .facilities-about-content h2 {
        width: 100%;

        font-size: 29px;

        line-height: 1.25;

        letter-spacing: -0.4px;

        margin-bottom: 18px;
    }


    /* PARAGRAPH */

    .facilities-about-content p {
        width: 100%;

        font-size: 13.5px;

        line-height: 1.7;

        margin-bottom: 15px;
    }


    /* FEATURE GRID */

    .facilities-about-list {
        width: 100%;

        margin-top: 22px;

        display: grid;

        grid-template-columns: 1fr;

        gap: 11px;
    }


    /* CARD */

    .facilities-about-item {
        width: 100%;

        height: 57px;

        padding: 0 15px 0 19px;

        border-radius: 14px;
    }


    /* CURVED LINE */

    .facilities-about-item::before {
        width: 4px;

        border-radius: 0 9px 9px 0;
    }


    /* CHECK */

    .facilities-about-item span {
        font-size: 17px;

        margin-right: 8px;
    }


    /* TEXT */

    .facilities-about-item strong {
        font-size: 14px;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .facilities-about {
        padding: 45px 14px;
    }

    .facilities-about-wrapper {
        gap: 26px;
    }

    .facilities-about-image {
        height: 230px;

        border-radius: 14px 14px 27px 27px;
    }

    .facilities-about-tag {
        padding: 8px 14px;

        font-size: 11px;
    }

    .facilities-about-content h2 {
        font-size: 25px;

        line-height: 1.28;
    }

    .facilities-about-content p {
        font-size: 13px;

        line-height: 1.65;
    }

    .facilities-about-item {
        height: 54px;

        padding-left: 17px;
    }

    .facilities-about-item strong {
        font-size: 13px;
    }
}