﻿/* =========================================================
   TANYA HOSPITAL - FACILITIES SECTION
   95% WIDTH + 4 CARDS PER ROW
   PREFIX: tyfi-
   ========================================================= */


/* =========================================================
   ROOT SECTION
   ========================================================= */

.tyfi-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 50px 0 100px;
    background: #fff;
    color: #000000;
}


/* =========================================================
   DECORATIVE ELEMENTS
   ========================================================= */

.tyfi-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.tyfi-decoration-one {
    width: 430px;
    height: 430px;
    top: -230px;
    right: -170px;
    background: #fff9c7;
}

.tyfi-decoration-two {
    width: 300px;
    height: 300px;
    bottom: -170px;
    left: -140px;
    background: rgba(157, 121, 93, 0.08);
}

.tyfi-ring {
    position: absolute;
    border: 1px solid rgba(157, 121, 93, 0.18);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.tyfi-ring-one {
    width: 250px;
    height: 250px;
    top: 150px;
    right: -100px;
}

.tyfi-ring-two {
    width: 190px;
    height: 190px;
    bottom: 130px;
    left: -95px;
}


/* =========================================================
   FACILITIES CONTAINER
   IMPORTANT:
   95% WIDTH ONLY INSIDE THIS SECTION
   ========================================================= */

.tyfi-section > .container {
    position: relative;
    z-index: 2;
    width: 95%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.tyfi-heading {
    max-width: 820px;
    margin: 0 auto 65px;
    text-align: center;
}

.tyfi-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #9d795d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.tyfi-eyebrow-line {
    display: block;
    width: 34px;
    height: 1px;
    background: #9d795d;
}

.tyfi-heading h2 {
    margin: 0;
    color: #000000;
    font-size: clamp(38px, 4.2vw, 58px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

    .tyfi-heading h2 span {
        display: block;
        color: #9d795d;
    }

.tyfi-heading p {
    max-width: 720px;
    margin: 24px auto 0;
    color: #000000;
    font-size: 14px;
    line-height: 1.85;
}


/* =========================================================
   FEATURED FACILITY
   ========================================================= */

.tyfi-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    overflow: hidden;
    margin-bottom: 65px;
    border: 1px solid rgba(157, 121, 93, 0.25);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

    .tyfi-featured:hover {
        transform: translateY(-5px);
        box-shadow: 0 28px 60px rgba(0, 0, 0, 0.13);
    }


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.tyfi-featured-image {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: #fff9c7;
}

    .tyfi-featured-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s ease;
    }

.tyfi-featured:hover .tyfi-featured-image img {
    transform: scale(1.05);
}

.tyfi-featured-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, transparent 55%, rgba(0, 0, 0, 0.28) );
    pointer-events: none;
}


/* =========================================================
   FEATURED BADGE
   ========================================================= */

.tyfi-featured-badge {
    position: absolute;
    left: 25px;
    bottom: 25px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    border-radius: 50px;
    background: #fff9c7;
    color: #000000;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   FEATURED CONTENT
   ========================================================= */

.tyfi-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px;
    background: #fff;
}

.tyfi-featured-number {
    display: block;
    margin-bottom: 5px;
    color: rgba(157, 121, 93, 0.22);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.tyfi-featured-category {
    display: block;
    margin-bottom: 15px;
    color: #9d795d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.tyfi-featured-content h3 {
    margin: 0 0 20px;
    color: #000000;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

    .tyfi-featured-content h3 span {
        display: block;
        color: #9d795d;
    }

.tyfi-featured-content p {
    margin: 0;
    color: #000000;
    font-size: 13.5px;
    line-height: 1.85;
}


/* =========================================================
   FEATURED POINTS
   ========================================================= */

.tyfi-featured-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 27px;
}

.tyfi-featured-point {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #000000;
    font-size: 12.5px;
    font-weight: 600;
}

.tyfi-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    background: #fff9c7;
    color: #9d795d;
    font-size: 10px;
}


/* =========================================================
   FACILITIES GRID
   =========================================================
   
   DESKTOP:
   4 CARDS PER ROW

   10 cards =

   ROW 1: 02 03 04 05
   ROW 2: 06 07 08 09
   ROW 3: 10

   ========================================================= */

.tyfi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
}


/* =========================================================
   GRID ITEM
   ========================================================= */

.tyfi-grid-item {
    display: flex;
    width: 100%;
    min-width: 0;
}


/* =========================================================
   FACILITY CARD
   ========================================================= */

.tyfi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(157, 121, 93, 0.20);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.065);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

    .tyfi-card:hover {
        transform: translateY(-8px);
        border-color: #9d795d;
        box-shadow: 0 22px 45px rgba(0, 0, 0, 0.13);
    }


/* =========================================================
   CARD IMAGE
   ========================================================= */

.tyfi-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    min-height: 220px;
    overflow: hidden;
    background: #fff9c7;
}

    .tyfi-card-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.65s ease;
    }

.tyfi-card:hover .tyfi-card-image img {
    transform: scale(1.07);
}

.tyfi-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, transparent 50%, rgba(0, 0, 0, 0.30) );
    pointer-events: none;
}


/* =========================================================
   CARD NUMBER
   ========================================================= */

.tyfi-card-number {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #fff9c7;
    color: #000000;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.17);
}


/* =========================================================
   CARD BODY
   ========================================================= */

.tyfi-card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 39px 25px 27px;
    background: #fff;
}


/* =========================================================
   CARD ICON
   ========================================================= */

.tyfi-card-icon {
    position: absolute;
    top: -27px;
    left: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 4px solid #fff;
    border-radius: 15px;
    background: #9d795d;
    color: #fff9c7;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.tyfi-card:hover .tyfi-card-icon {
    transform: translateY(-3px);
    background: #000000;
    color: #fff9c7;
}


/* =========================================================
   CARD CATEGORY
   ========================================================= */

.tyfi-card-category {
    display: block;
    margin-bottom: 9px;
    color: #9d795d;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 1.6px;
}


/* =========================================================
   CARD TITLE
   ========================================================= */

.tyfi-card-body h3 {
    margin: 0 0 13px;
    color: #000000;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.15px;
}


/* =========================================================
   CARD DESCRIPTION
   ========================================================= */

.tyfi-card-body p {
    margin: 0;
    color: #000000;
    font-size: 13px;
    line-height: 1.75;
    text-align: left;
}


/* =========================================================
   BOTTOM MESSAGE
   ========================================================= */

.tyfi-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 750px;
    margin: 58px auto 0;
    padding: 21px 27px;
    border: 1px solid rgba(157, 121, 93, 0.20);
    border-radius: 16px;
    background: #fff9c7;
}

.tyfi-bottom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border-radius: 50%;
    background: #9d795d;
    color: #fff9c7;
    font-size: 17px;
}

.tyfi-bottom-content strong {
    display: block;
    margin-bottom: 3px;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
}

.tyfi-bottom-content span {
    display: block;
    color: #000000;
    font-size: 12px;
}


/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.tyfi-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

    .tyfi-reveal.tyfi-visible {
        opacity: 1;
        transform: translateY(0);
    }


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    .tyfi-section > .container {
        width: 95%;
        max-width: 1800px;
    }

    .tyfi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 30px;
    }

    .tyfi-card-image {
        height: 235px;
        min-height: 235px;
    }

    .tyfi-card-body {
        padding-left: 27px;
        padding-right: 27px;
    }
}


/* =========================================================
   TABLET
   2 COLUMNS
   ========================================================= */

@media (max-width: 1100px) {

    .tyfi-section {
        padding: 90px 0 85px;
    }

        .tyfi-section > .container {
            width: 94%;
        }

    .tyfi-featured {
        grid-template-columns: 1fr;
    }

    .tyfi-featured-image {
        height: 400px;
        min-height: 400px;
    }

    .tyfi-featured-content {
        padding: 45px 40px;
    }

    .tyfi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}


/* =========================================================
   MOBILE
   1 COLUMN
   ========================================================= */

@media (max-width: 767px) {

    .tyfi-section {
        padding: 75px 0 70px;
    }

        .tyfi-section > .container {
            width: 92%;
        }

    .tyfi-heading {
        margin-bottom: 45px;
    }

        .tyfi-heading h2 {
            font-size: 36px;
            letter-spacing: -0.8px;
        }

        .tyfi-heading p {
            font-size: 13.5px;
            line-height: 1.75;
        }

    .tyfi-featured {
        margin-bottom: 48px;
        border-radius: 22px;
    }

    .tyfi-featured-image {
        height: 320px;
        min-height: 320px;
    }

    .tyfi-featured-content {
        padding: 38px 28px;
    }

        .tyfi-featured-content h3 {
            font-size: 30px;
        }

    .tyfi-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .tyfi-card-image {
        height: 220px;
        min-height: 220px;
    }

    .tyfi-bottom {
        margin-top: 45px;
        padding: 20px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .tyfi-section {
        padding: 65px 0 60px;
    }

        .tyfi-section > .container {
            width: 92%;
        }

    .tyfi-heading h2 {
        font-size: 31px;
    }

    .tyfi-eyebrow {
        font-size: 10px;
        letter-spacing: 1.8px;
    }

    .tyfi-eyebrow-line {
        width: 25px;
    }

    .tyfi-featured-image {
        height: 270px;
        min-height: 270px;
    }

    .tyfi-featured-content {
        padding: 32px 22px;
    }

        .tyfi-featured-content h3 {
            font-size: 27px;
        }

        .tyfi-featured-content p {
            font-size: 13px;
        }

    .tyfi-card-body {
        padding: 38px 21px 25px;
    }

        .tyfi-card-body h3 {
            font-size: 18px;
        }

        .tyfi-card-body p {
            font-size: 12.5px;
            line-height: 1.72;
        }

    .tyfi-bottom {
        align-items: flex-start;
        gap: 12px;
        padding: 18px;
    }

    .tyfi-bottom-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        font-size: 15px;
    }

    .tyfi-bottom-content strong {
        font-size: 13px;
    }

    .tyfi-bottom-content span {
        font-size: 11px;
    }
}


/* =========================================================
   IMAGE ERROR FALLBACK
   ========================================================= */

.tyfi-card-image.tyfi-image-error,
.tyfi-featured-image.tyfi-image-error {
    background: #fff9c7;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tyfi-card,
    .tyfi-card-image img,
    .tyfi-featured,
    .tyfi-featured-image img,
    .tyfi-card-icon,
    .tyfi-reveal {
        transition: none !important;
    }
}

