﻿/* =========================================================
   TANYA HOSPITAL
   FACILITIES SECTION - 2026
   UNIQUE PREFIX: thf26-
========================================================= */


/* ---------------------------------------------------------
   SECTION
--------------------------------------------------------- */

.thf26-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    padding:  50px 0px 5px 0px;
    overflow: hidden;
    isolation: isolate;
    background: #000;
}


/* ---------------------------------------------------------
   FIXED BACKGROUND IMAGE
--------------------------------------------------------- */

.thf26-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: url("/images/HospitalGallery/facilityImg.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transform: scale(1.03);
}


/* ---------------------------------------------------------
   DARK PREMIUM OVERLAY
--------------------------------------------------------- */

.thf26-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient( 90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.30) 45%, rgba(0, 0, 0, 0.20) 100% );
}


/* ---------------------------------------------------------
   MAIN 90% WIDTH
--------------------------------------------------------- */

.thf26-wrapper {
    width: 90%;
    max-width: 1700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(500px, 1.22fr);
    gap: 65px;
    align-items: center;
}


/* ---------------------------------------------------------
   LEFT INTRO
--------------------------------------------------------- */

.thf26-intro {
    width: 100%;
    max-width: 540px;
}


/* ---------------------------------------------------------
   EYEBROW
--------------------------------------------------------- */

.thf26-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #fff9c7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}


    .thf26-eyebrow span {
        display: block;
        width: 38px;
        height: 2px;
        background: #fff9c7;
    }


/* ---------------------------------------------------------
   TITLE
--------------------------------------------------------- */

.thf26-title {
    margin: 0;
    color: #fff;
    font-size: clamp( 38px, 4vw, 64px );
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -1.5px;
}


    .thf26-title span {
        display: block;
        color: #fff9c7;
    }


/* ---------------------------------------------------------
   TITLE LINE
--------------------------------------------------------- */

.thf26-line {
    width: 75px;
    height: 3px;
    margin: 25px 0;
    background: #9d795d;
    position: relative;
}


    .thf26-line::after {
        content: "";
        position: absolute;
        left: 18px;
        top: 0;
        width: 25px;
        height: 3px;
        background: #fff9c7;
    }


/* ---------------------------------------------------------
   DESCRIPTION
--------------------------------------------------------- */

.thf26-description {
    margin: 0;
    max-width: 500px;
    color: rgba(255,255,255,0.82);
    font-size: 16px;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   HIGHLIGHT BOX
--------------------------------------------------------- */

.thf26-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 18px 20px;
    border-left: 3px solid #fff9c7;
    background: rgba(157,121,93,0.22);
    border-top: 1px solid rgba(255,255,255,0.10);
    border-right: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.thf26-highlight-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #000;
    background: #fff9c7;
    font-size: 19px;
}


.thf26-highlight strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 15px;
}


.thf26-highlight small {
    display: block;
    color: rgba(255,255,255,0.68);
    font-size: 12px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   FACILITIES GRID
--------------------------------------------------------- */

.thf26-facilities {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}


/* ---------------------------------------------------------
   FACILITY CARD
--------------------------------------------------------- */

.thf26-card {
    position: relative;
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.13);
    background: linear-gradient( 135deg, rgba(157,121,93,0.30), rgba(0,0,0,0.42) );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}


    /* GOLD/YELLOW TOP LINE */

    .thf26-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 2px;
        background: #fff9c7;
        transition: width 0.4s ease;
    }


    /* HOVER */

    .thf26-card:hover {
        transform: translateY(-6px);
        border-color: rgba(255,249,199,0.45);
        background: linear-gradient( 135deg, rgba(157,121,93,0.48), rgba(0,0,0,0.45) );
        box-shadow: 0 22px 55px rgba(0,0,0,0.35);
    }


        .thf26-card:hover::before {
            width: 100%;
        }


/* ---------------------------------------------------------
   CARD NUMBER
--------------------------------------------------------- */

.thf26-card-number {
    position: absolute;
    top: 8px;
    right: 12px;
    color: rgba(255,255,255,0.16);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* ---------------------------------------------------------
   CARD ICON
--------------------------------------------------------- */

.thf26-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #000;
    background: #fff9c7;
    font-size: 18px;
    box-shadow: 0 8px 25px rgba(255,249,199,0.12);
    transition: transform 0.35s ease, background 0.35s ease;
}


.thf26-card:hover .thf26-card-icon {
    transform: rotate(-5deg) scale(1.08);
    background: #fff;
}


/* ---------------------------------------------------------
   CARD CONTENT
--------------------------------------------------------- */

.thf26-card-content {
    min-width: 0;
    padding-right: 15px;
}


    .thf26-card-content h3 {
        margin: 0 0 5px;
        color: #fff;
        font-size: 15px;
        line-height: 1.3;
        font-weight: 600;
    }


    .thf26-card-content p {
        margin: 0;
        color: rgba(255,255,255,0.63);
        font-size: 12px;
        line-height: 1.4;
    }


/* ---------------------------------------------------------
   ARROW
--------------------------------------------------------- */

.thf26-card-arrow {
    margin-left: auto;
    color: rgba(255,249,199,0.65);
    font-size: 17px;
    transition: transform 0.3s ease, color 0.3s ease;
}


.thf26-card:hover .thf26-card-arrow {
    transform: translateX(5px);
    color: #fff9c7;
}


/* =========================================================
   ANIMATION INITIAL STATES
========================================================= */

.thf26-reveal-left,
.thf26-reveal-right {
    opacity: 0;
}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 1199.98px) {

    .thf26-wrapper {
        width: 90%;
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .thf26-intro {
        max-width: 750px;
    }

    .thf26-facilities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 767.98px) {

    .thf26-section {
        padding: 30px 0px 30px 0px;
    }

    .thf26-wrapper {
        width: 90%;
        gap: 35px;
    }

    .thf26-title {
        font-size: 40px;
    }

    .thf26-description {
        font-size: 15px;
    }

    .thf26-facilities {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .thf26-card {
        min-height: 100px;
    }

    /*
       Fixed background can behave poorly on some
       mobile browsers, so use cover instead.
    */

    .thf26-bg {
        background-attachment: scroll;
    }
}


/* ---------------------------------------------------------
   SMALL MOBILE
--------------------------------------------------------- */

@media (max-width: 480px) {

    .thf26-section {
        padding: 20px 0;
    }

    .thf26-wrapper {
        width: 90%;
    }

    .thf26-title {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .thf26-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .thf26-highlight {
        padding: 15px;
    }

    .thf26-card {
        padding: 16px;
        gap: 12px;
    }

    .thf26-card-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 16px;
    }

    .thf26-card-content h3 {
        font-size: 14px;
    }

    .thf26-card-content p {
        font-size: 11px;
    }
}


/* ---------------------------------------------------------
   REDUCE MOTION
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .thf26-card,
    .thf26-card-icon,
    .thf26-card-arrow {
        transition: none;
    }

    .thf26-reveal-left,
    .thf26-reveal-right {
        opacity: 1;
    }
}
