
.topbar{

    height:48px;

    background:#07111F;

    border-bottom:
    1px solid rgba(255,255,255,0.06);

    display:flex;

    align-items:center;

    justify-content:space-between;

    overflow:hidden;

    position:relative;

    z-index:200;
}

/* =========================================================
LEFT MARQUEE
========================================================= */

.topbar-marquee{

    flex:1;

    overflow:hidden;

    height:100%;

    display:flex;

    align-items:center;
}

.topbar-track{

    display:flex;

    align-items:center;

    gap:48px;

    white-space:nowrap;

    animation:
    topbarMarquee 22s linear infinite;
}

.topbar-track span{

    position:relative;

    color:rgba(255,255,255,0.78);

    font-size:12px;

    font-weight:500;

    letter-spacing:1px;

    text-transform:uppercase;
}

.topbar-track span::after{

    content:"";

    width:6px;
    height:6px;

    border-radius:999px;

    background:#14B8A6;

    position:absolute;

    right:-28px;
    top:50%;

    transform:translateY(-50%);
}

/* =========================================================
RIGHT
========================================================= */

.topbar-right{

    height:100%;

    display:flex;

    align-items:center;

    padding-right:26px;

    border-left:
    1px solid rgba(255,255,255,0.06);
}

/* =========================================================
PHONE
========================================================= */

.topbar-phone{

    height:100%;

    display:flex;

    align-items:center;

    gap:10px;

    padding:
    0
    24px;

    text-decoration:none;

    color:white;

    border-right:
    1px solid rgba(255,255,255,0.06);

    transition:0.3s;
}

.topbar-phone:hover{

    background:
    rgba(255,255,255,0.04);
}

.topbar-phone i{

    color:#14B8A6;

    font-size:13px;
}

.topbar-phone span{

    font-size:13px;

    font-weight:600;

    letter-spacing:0.5px;
}

/* =========================================================
SOCIALS
========================================================= */

.topbar-socials{

    display:flex;

    align-items:center;

    gap:10px;

    padding-left:22px;
}

.topbar-socials a{

    width:30px;
    height:30px;

    border-radius:999px;

    background:
    rgba(255,255,255,0.04);

    border:
    1px solid rgba(255,255,255,0.06);

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    color:rgba(255,255,255,0.78);

    transition:0.35s;
}

.topbar-socials a:hover{

    background:#2563EB;

    color:white;

    transform:
    translateY(-2px);
}

/* =========================================================
ANIMATION
========================================================= */

@keyframes topbarMarquee{

    0%{

        transform:translateX(0);
    }

    100%{

        transform:translateX(-50%);
    }

}

/* =========================================================
MOBILE
========================================================= */

@media(max-width:768px){

    .topbar{

        height:42px;
    }

    .topbar-phone span{

        display:none;
    }

    .topbar-phone{

        padding:0 14px;
    }

    .topbar-socials{

        gap:6px;

        padding-left:12px;
    }

    .topbar-socials a{

        width:26px;
        height:26px;

        font-size:11px;
    }

    .topbar-track span{

        font-size:10px;
    }

}


.navbar-wrapper{

    position:relative;

    width:100%;

    z-index:300;

    padding:0 40px;
}

/* =========================================================
NAVBAR
========================================================= */

.navbar{

    max-width:1440px;

    height:92px;

    margin:auto;

    background:
    rgba(255,255,255,0.78);

    backdrop-filter:
    blur(22px);

    border:
    1px solid rgba(255,255,255,0.35);

    border-radius:32px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 28px;

    box-shadow:
    0 20px 60px rgba(15,23,42,0.08);
}

/* =========================================================
BRAND
========================================================= */

.nav-brand{

    display:flex;

    align-items:center;

    gap:16px;

    text-decoration:none;
}

.brand-icon{

    width:58px;
    height:58px;

    border-radius:20px;

    background:
    linear-gradient(
    135deg,
    #2563EB,
    #3B82F6
    );

    position:relative;

    box-shadow:
    0 18px 40px rgba(37,99,235,0.24);
}

.brand-icon span:first-child{

    position:absolute;

    width:4px;
    height:28px;

    background:white;

    border-radius:999px;

    top:50%;
    left:50%;

    transform:
    translate(-50%,-50%);
}

.brand-icon span:last-child{

    position:absolute;

    width:28px;
    height:4px;

    background:white;

    border-radius:999px;

    top:50%;
    left:50%;

    transform:
    translate(-50%,-50%);
}

.brand-text h2{

    font-size:34px;

    font-weight:800;

    line-height:1;

    color:#0B132B;
}

.brand-text p{

    margin-top:6px;

    color:#2563EB;

    font-size:10px;

    letter-spacing:5px;

    font-weight:800;
}

/* =========================================================
DESKTOP NAV
========================================================= */

.desktop-nav{

    display:flex;

    align-items:center;

    gap:42px;
}

.desktop-nav a{

    position:relative;

    text-decoration:none;

    color:#475569;

    font-size:15px;

    font-weight:700;

    transition:0.3s;
}

.desktop-nav a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-10px;

    width:0;
    height:2px;

    border-radius:999px;

    background:#2563EB;

    transition:0.35s;
}

.desktop-nav a:hover::after,
.active-nav::after{

    width:100%;
}

.desktop-nav a:hover,
.active-nav{

    color:#2563EB !important;
}

/* =========================================================
RIGHT
========================================================= */

.nav-actions{

    display:flex;

    align-items:center;

    gap:14px;
}

/* =========================================================
SEARCH BTN
========================================================= */

.nav-icon-btn{

    width:48px;
    height:48px;

    border:none;

    border-radius:18px;

    background:#EFF6FF;

    color:#2563EB;

    cursor:pointer;

    font-size:15px;

    transition:0.35s;
}

.nav-icon-btn:hover{

    transform:translateY(-2px);

    background:#2563EB;

    color:white;
}

/* =========================================================
CTA
========================================================= */

.nav-cta{

    height:56px;

    padding:0 30px;

    border-radius:18px;

    background:
    linear-gradient(
    135deg,
    #2563EB,
    #3B82F6
    );

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    color:white;

    font-size:14px;

    font-weight:700;

    box-shadow:
    0 18px 40px rgba(37,99,235,0.24);

    transition:0.35s;
}

.nav-cta:hover{

    transform:
    translateY(-2px);
}

/* =========================================================
MOBILE TOGGLE
========================================================= */

.mobile-toggle{

    width:50px;
    height:50px;

    border:none;

    border-radius:18px;

    background:#EFF6FF;

    display:none;

    align-items:center;

    justify-content:center;

    flex-direction:column;

    gap:6px;

    cursor:pointer;
}

.mobile-toggle span{

    width:18px;
    height:2px;

    background:#2563EB;

    border-radius:999px;
}

/* =========================================================
MOBILE MENU
========================================================= */

.mobile-menu{

    position:fixed;

    top:0;
    right:-100%;

    width:320px;
    height:100vh;

    background:white;

    z-index:9999;

    padding:28px;

    transition:0.45s;

    box-shadow:
    -20px 0 60px rgba(15,23,42,0.12);
}

.mobile-menu.active-menu{

    right:0;
}

.mobile-menu-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:50px;
}

.mobile-menu-header h3{

    font-size:28px;

    font-weight:800;
}

.close-mobile{

    width:44px;
    height:44px;

    border:none;

    border-radius:14px;

    background:#EFF6FF;

    color:#2563EB;

    cursor:pointer;
}

.mobile-links{

    display:flex;

    flex-direction:column;

    gap:28px;
}

.mobile-links a{

    text-decoration:none;

    color:#0B132B;

    font-size:22px;

    font-weight:700;
}

.mobile-book-btn{

    position:absolute;

    left:28px;
    right:28px;
    bottom:40px;

    height:58px;

    border-radius:18px;

    background:#2563EB;

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    color:white;

    font-weight:700;
}

/* =========================================================
BOTTOM DOCK
========================================================= */

.mobile-dock{

    position:fixed;

    left:50%;
    bottom:18px;

    transform:translateX(-50%);

    width:92%;

    height:82px;

    background:
    rgba(255,255,255,0.9);

    backdrop-filter:
    blur(20px);

    border:
    1px solid rgba(255,255,255,0.4);

    border-radius:30px;

    display:none;

    align-items:center;

    justify-content:space-around;

    z-index:999;

    box-shadow:
    0 20px 60px rgba(15,23,42,0.08);
}

.mobile-dock a{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:5px;

    text-decoration:none;

    color:#64748B;

    font-size:10px;

    font-weight:700;
}

.mobile-dock i{

    font-size:18px;
}

.active-dock{

    color:#2563EB !important;
}

.dock-center{

    width:64px;
    height:64px;

    border-radius:999px;

    background:#2563EB;

    color:white !important;

    display:flex !important;

    align-items:center;

    justify-content:center;

    margin-top:-40px;

    box-shadow:
    0 18px 40px rgba(37,99,235,0.3);
}

/* =========================================================
RESPONSIVE
========================================================= */

@media(max-width:1100px){

    .desktop-nav{

        display:none;
    }

    .mobile-toggle{

        display:flex;
    }

}

@media(max-width:768px){

    .navbar-wrapper{

        top:58px;

        padding:0 14px;
    }

    .navbar{

        height:78px;

        padding:0 18px;
    }

    .brand-text h2{

        font-size:24px;
    }

    .brand-text p{

        font-size:8px;

        letter-spacing:4px;
    }

    .nav-cta,
    .nav-icon-btn{

        display:none;
    }

    .mobile-dock{

        display:flex;
    }

}


/* =========================================================
PLATFORM HERO
========================================================= */

.health-platform{

    position:relative;

    background:#FAFAFA;

    padding:
    18px
    40px
    10px;

    overflow:hidden;
}

/* GRID */

.hero-content{
    max-width:600px;
    position:relative;
    z-index:5;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;

    padding:8px 10px;

    background:white;
    border:1px solid #e2e8f0;

    border-radius:999px;

    color:#2563eb;
    font-weight:600;

    margin-bottom:8px;

    box-shadow:0 15px 40px rgba(0,0,0,.06);
}

.hero-title{
    font-size:44px;
    line-height:1;
    font-weight:600;
    color:#0f172a;
    margin-bottom:18px;
}

#dynamic-text{
    display:block;
    color:#2563eb;
    transition:.3s;
}

.hero-description{
    font-size:15px;
    width: 80%;
    line-height:1.8;
    color:#64748b;
    margin-bottom:10px;
}

.hero-actions{
    display:flex;
    gap:15px;
    margin-bottom:50px;
}

.btn-primary{
    background:#2563eb;
    color:white;
    padding:18px 30px;
    border-radius:16px;
    font-weight:700;
    text-decoration:none;
}

.btn-secondary{
    background:white;
    color:#0f172a;
    padding:18px 30px;
    border-radius:16px;
    border:1px solid #e2e8f0;
    text-decoration:none;
    font-weight:700;
}

.hero-stats{
    display:flex;
    gap:50px;
}

.hero-stats h3{
    font-size:34px;
    color:#0f172a;
    margin-bottom:4px;
}

.hero-stats p{
    color:#64748b;
    font-size:14px;
}

.health-bg-grid{
    position: absolute;
    inset: 0;
    height: 75vh;
    /* image */
    background-image:
        linear-gradient(rgba(15,23,42,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.03) 1px, transparent 1px),
        url('/images/hero-image.png');

    background-size:
        70px 70px,
        70px 70px,
        cover;

    background-position:
        center,
        center,
        center center;

    background-repeat:
        repeat,
        repeat,
        no-repeat;

    opacity: 1;
}



/* Ensure content stays above overlay */
.hero-content{
    position: relative;
    z-index: 2;
}

@media (max-width: 768px){

    .health-bg-grid{
        background-position:
            center,
            center,
            65% center; /* shifts image slightly right */
    }

}



/* CONTAINER */

.health-platform-container{

    position:relative;

    z-index:10;

    max-width:1500px;

    margin:auto;
}
/* =========================================================
HERO CONTENT
========================================================= */

.platform-hero-content{

    max-width:1100px;

    margin:auto;

    text-align:center;

    position:relative;

    z-index:10;
}

/* TAG */

.platform-mini-tag{

    width:max-content;

    margin:
    auto
    auto
    14px;

    padding:
    14px
    26px;

    border-radius:999px;

    background:
    rgba(255,255,255,0.75);

    backdrop-filter:blur(20px);

    border:
    1px solid rgba(37,99,235,0.12);

    color:#2563EB;

    font-size:12px;

    font-weight:700;

    letter-spacing:3px;

    box-shadow:
    0 10px 40px rgba(15,23,42,0.04);
}

/* TITLE */

.platform-title{

    font-size:clamp(3rem,6vw,6rem);

    line-height:0.92;

    font-weight:500;

    letter-spacing:-5px;

    color:#0B132B;

    margin-bottom:14px;
}

/* HIGHLIGHT */

.platform-title span{

    color:#2563EB;

    position:relative;
}

/* BLUE BRUSH EFFECT */

.platform-title span::after{

    content:"";

    position:absolute;

    left:0;
    bottom:12px;

    width:100%;
    height:18px;

    background:
    rgba(37,99,235,0.12);

    z-index:-1;

    border-radius:20px;
}

/* DESCRIPTION */

.platform-description{

    max-width:760px;

    margin:auto;

    color:#64748B;

    font-size:21px;

    line-height:1.9;

    font-weight:500;

    margin-bottom:25px;
}
/* =========================================================
SEARCH
========================================================= */
/* ===========================
   HERO SEARCH
=========================== */

.hero-search-section{

    width:100%;

    position:relative;

    margin-top:40px;

}

.hero-search-container{

    max-width:1100px;

    margin:auto;

}

/* ===========================
   SEARCH BOX
=========================== */

.search-wrapper{

    position:relative;

}

.search-box{

    display:flex;

    align-items:center;

    background:#fff;

    border:1px solid #E5E7EB;

    border-radius:22px;

    height:74px;

    overflow:hidden;

    box-shadow:
    0 15px 40px rgba(15,23,42,.06);

    transition:.35s;

}

.search-box:hover{

    transform:translateY(-2px);

    box-shadow:
    0 20px 60px rgba(37,99,235,.12);

}

.search-box:focus-within{

    border-color:#2563EB;

    box-shadow:
    0 20px 60px rgba(37,99,235,.18);

}

.search-icon{

    width:70px;

    display:flex;

    justify-content:center;

    align-items:center;

    color:#2563EB;

    font-size:20px;

}

.search-box input{

    flex:1;

    height:100%;

    border:none;

    outline:none;

    font-size:18px;

    color:#0F172A;

    background:none;

}

.search-box input::placeholder{

    color:#94A3B8;

}

.search-btn{

    width:170px;

    height:58px;

    margin-right:8px;

    border:none;

    border-radius:16px;

    background:#2563EB;

    color:#fff;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

}

.search-btn:hover{

    background:#1D4ED8;

    transform:scale(.98);

}

/* ===========================
   DROPDOWN
=========================== */

.search-dropdown{

    position:absolute;

    top:85px;

    left:0;

    width:100%;

    background:#fff;

    border-radius:24px;

    border:1px solid #EEF2F7;

    box-shadow:
    0 30px 80px rgba(15,23,42,.08);

    padding:30px;

    display:none;

    z-index:999;

}

.search-dropdown.show{

    display:block;

}

.dropdown-section{

    margin-bottom:28px;

}

.dropdown-title{

    font-size:12px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:2px;

    color:#94A3B8;

    margin-bottom:18px;

}

/* ===========================
   RECENT
=========================== */

.recent-searches{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

}

.recent-item{

    border:none;

    background:#F8FAFC;

    border-radius:999px;

    padding:10px 18px;

    cursor:pointer;

    transition:.3s;

}

.recent-item:hover{

    background:#2563EB;

    color:#fff;

}

/* ===========================
   SERVICE GRID
=========================== */

.service-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}

.service-option{

    display:flex;

    align-items:center;

    gap:18px;

    padding:18px;

    border-radius:18px;

    cursor:pointer;

    transition:.35s;

    border:1px solid #EEF2F7;

}

.service-option:hover{

    background:#F8FBFF;

    border-color:#2563EB;

    transform:translateY(-3px);

}

.service-icon{

    width:56px;

    height:56px;

    border-radius:16px;

    background:#EFF6FF;

    display:flex;

    justify-content:center;

    align-items:center;

    color:#2563EB;

    font-size:22px;

}

.service-option h5{

    margin:0;

    font-size:16px;

    font-weight:700;

}

.service-option span{

    color:#64748B;

    font-size:14px;

}

/* ===========================
   TRENDING
=========================== */

.trending-tags{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

}

.trend-tag{

    border:none;

    background:#F1F5F9;

    border-radius:999px;

    padding:10px 18px;

    cursor:pointer;

    transition:.3s;

    font-weight:600;

}

.trend-tag:hover{

    background:#2563EB;

    color:#fff;

}

/* ===========================
   LIVE RESULTS
=========================== */

/* ===========================
   DEPARTMENTS & DIAGNOSTICS
=========================== */

.departments-section,
.diagnostics-section{
    padding:60px 16px;
    background:#ffffff;
}

.section-top{
    max-width:1200px;
    margin:0 auto 18px;
    padding:0 8px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
}

.section-mini-title{
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    color:#0F172A;
    letter-spacing:1px;
}

.directory-title{
    font-size:40px;
    margin:6px 0 0;
    color:#0F172A;
    line-height:1.02;
    max-width:66%;
}

.directory-description{
    max-width:440px;
    margin:0;
    color:#64748B;
    padding-left:8px;
}

.dept-grid,
.diag-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    max-width:1200px;
    margin:0 auto;
    padding:0 8px 8px;
}

@media (max-width:1024px){
    .dept-grid,.diag-grid{grid-template-columns:repeat(2,1fr);}    
}

@media (max-width:640px){
    .dept-grid,.diag-grid{grid-template-columns:1fr;}
    .section-top{flex-direction:column;align-items:flex-start}
    .directory-title{font-size:28px}
    .directory-description{padding-left:0;margin-top:12px}
}

.health-card{
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(2,6,23,0.06);
    background:#fff;
    transition:transform .22s ease, box-shadow .22s ease;
    display:flex;
    flex-direction:column;
}

.health-card:hover{transform:translateY(-8px);box-shadow:0 14px 30px rgba(2,6,23,0.12);}

.health-card-image{height:200px;overflow:hidden;background:#f8fafc}

.health-card-image img{width:100%;height:100%;object-fit:cover;display:block}

.health-card-content{padding:18px 20px 22px;flex:1;display:flex;flex-direction:column;justify-content:space-between}

.health-card-top h3{margin:0 0 6px;font-size:18px}

/* Icon shown on cards when images are removed */
.card-icon{
    width:84px;
    height:84px;
    border-radius:999px;
    background:#EFF6FF;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#2563EB;
    font-size:30px;
    margin:0 auto 12px;
}

/* =========================================================
FOOTER
========================================================= */
.site-footer{
    background:#07111F;
    color:#E6EEF8;
    padding:48px 16px;
}

.site-footer .footer-grid{
    max-width:1200px;
    margin:0 auto;
    display:flex;
    gap:40px;
    justify-content:space-between;
    align-items:flex-start;
}

.footer-col h2,
.footer-col h4{
    color:white;
    margin:0 0 10px;
}

.footer-brand p{
    color:#CBD5E1;
    margin-bottom:14px;
    max-width:360px;
}

.footer-socials a{
    display:inline-flex;
    width:36px;
    height:36px;
    align-items:center;
    justify-content:center;
    background:#0B132B;
    color:#fff;
    border-radius:8px;
    margin-right:8px;
    text-decoration:none;
}

.footer-links ul{list-style:none;padding:0;margin:0}
.footer-links a{color:#CBD5E1;text-decoration:none;display:block;margin:6px 0}
.footer-contact address{font-style:normal;color:#CBD5E1;line-height:1.5}
.footer-contact a{color:#CBD5E1;text-decoration:none}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,0.04);
    margin-top:28px;
    padding-top:18px;
    display:flex;
    justify-content:space-between;
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
    color:#94A3B8;
    font-size:14px;
}

.site-footer a:hover{color:#fff;text-decoration:underline}

@media(max-width:768px){
    .site-footer .footer-grid{flex-direction:column;gap:18px}
    .footer-bottom{flex-direction:column;gap:8px;align-items:center}
}

/* Booking modal */
.booking-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center}
.booking-modal-backdrop{position:absolute;inset:0;background:rgba(2,6,23,0.6)}
.booking-modal-panel{position:relative;z-index:2;background:white;border-radius:14px;padding:22px;width:420px;max-width:92%;box-shadow:0 30px 80px rgba(2,6,23,0.3)}
.booking-close{position:absolute;right:12px;top:8px;border:none;background:transparent;font-size:22px;cursor:pointer}
.booking-modal-panel h3{margin:0 0 12px}
.booking-modal-panel .label{display:block;margin-top:8px;font-weight:700;color:#0B132B}
.booking-modal-panel input,.booking-modal-panel textarea,.booking-modal-panel select{width:100%;padding:10px;border:1px solid #E6EEF8;border-radius:8px;margin-top:6px}
.btn{padding:10px 14px;border-radius:10px;border:none;cursor:pointer}
.btn-primary{background:#2563EB;color:white}
.btn-muted{background:#F1F5F9;color:#0B132B}
.booking-success{color:green}
.booking-error{color:#dc2626}

.health-tags{margin-top:8px}
.health-tags span{background:#F1F5F9;padding:6px 10px;border-radius:999px;font-size:12px;color:#0F172A;margin-right:8px}

.health-card-bottom{display:flex;justify-content:flex-end;padding-top:12px}
.health-card-bottom button{background:#2563EB;color:#fff;border:none;padding:8px 14px;border-radius:8px;cursor:pointer}

.selected-health-card{outline:3px solid rgba(37,99,235,0.12);box-shadow:0 20px 40px rgba(37,99,235,0.06)}

/* Center headers and controls specifically for dept/diag cards */
.dept-grid .health-card-content,
.diag-grid .health-card-content{
    align-items:center;
    text-align:center;
}

.dept-grid .health-card-top h3,
.diag-grid .health-card-top h3{
    font-size:20px;
    margin-bottom:6px;
}

.dept-grid .health-card-bottom,
.diag-grid .health-card-bottom{
    justify-content:center;
}

.dept-grid,.diag-grid{gap:24px}

.departments-section,.diagnostics-section{padding:90px 16px}


.live-results{

    border-top:1px solid #F1F5F9;

    margin-top:20px;

    padding-top:20px;

}

.result-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:16px;

    border-radius:14px;

    cursor:pointer;

    transition:.3s;

}

.result-item:hover{

    background:#F8FAFC;

}

.result-price{

    color:#2563EB;

    font-weight:700;

}

/* ===========================
   QUICK ACTIONS
=========================== */

.quick-actions{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:15px;

    margin-top:30px;

}

.quick-action{

    border:none;

    background:#fff;

    border:1px solid #EEF2F7;

    border-radius:999px;

    padding:14px 24px;

    display:flex;

    align-items:center;

    gap:10px;

    cursor:pointer;

    font-weight:600;

    transition:.35s;

}

.quick-action i{

    color:#2563EB;

}

.quick-action:hover{

    background:#2563EB;

    color:#fff;

    transform:translateY(-3px);

    box-shadow:0 20px 40px rgba(37,99,235,.15);

}

.quick-action:hover i{

    color:#fff;

}

/* ===========================
   MOBILE
=========================== */

@media(max-width:768px){

.search-box{

    height:auto;

    flex-direction:column;

    padding:15px;

    border-radius:20px;

}

.search-icon{

    display:none;

}

.search-box input{

    width:100%;

    height:55px;

    font-size:16px;

}

.search-btn{

    width:100%;

    margin:15px 0 0;

}

.search-dropdown{

    padding:20px;

}

.service-grid{

    grid-template-columns:1fr;

}

.quick-actions{

    justify-content:flex-start;

    overflow:auto;

    flex-wrap:nowrap;

    padding-bottom:10px;

}

.quick-action{

    white-space:nowrap;

}

}

/* =========================================================
CATEGORIES
========================================================= */

.health-categories-wrapper{

    position:relative;

    display:flex;

    align-items:center;

    margin:
    60px
    0
    50px;
}

.health-categories{

    display:flex;

    gap:18px;

    overflow-x:auto;

    scrollbar-width:none;

    padding:
    10px
    50px;
}

.health-categories::-webkit-scrollbar{

    display:none;
}

/* CATEGORY */

.health-category{

    min-width:130px;

    height:110px;

    border-radius:28px;

    background:white;

    border:
    1px solid #E2E8F0;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:14px;

    cursor:pointer;

    transition:0.35s;

    flex-shrink:0;
}

.health-category i{

    font-size:24px;

    color:#2563EB;
}

.health-category span{

    color:#0F172A;

    font-size:14px;

    font-weight:700;
}

.health-category:hover{

    transform:
    translateY(-6px);

    box-shadow:
    0 18px 40px rgba(15,23,42,0.08);
}

.active-category{

    background:#2563EB;
}

.active-category i,
.active-category span{

    color:white;
}

/* SCROLL */

.health-scroll-btn{

    position:absolute;

    z-index:20;

    width:52px;
    height:52px;

    border:none;

    border-radius:999px;

    background:white;

    box-shadow:
    0 10px 30px rgba(15,23,42,0.08);

    cursor:pointer;
}

.left-scroll{

    left:0;
}

.right-scroll{

    right:0;
}

/* =========================================================
GRID
========================================================= */

.health-grid{

    display:grid;

    scroll-margin-top:120px;

    grid-template-columns:
    repeat(3,minmax(0,1fr));

    gap:28px;
}

/* CARD */

.health-card{

    background:white;

    border-radius:36px;

    overflow:hidden;

    border:
    1px solid #E2E8F0;

    transition:0.4s;
}

.health-card:hover{

    transform:
    translateY(-8px);

    box-shadow:
    0 24px 60px rgba(15,23,42,0.08);
}

.health-card.selected-health-card{

    border-color:#2563EB;

    box-shadow:
    0 24px 60px rgba(37,99,235,0.18);
}

/* IMAGE */

.health-card-image{

    position:relative;

    height:280px;

    overflow:hidden;
}

.health-card-image img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:0.5s;
}

.health-card:hover img{

    transform:scale(1.06);
}

/* BADGE */

.health-badge{

    position:absolute;

    top:20px;
    left:20px;

    background:white;

    border-radius:999px;

    padding:
    10px
    16px;

    font-size:12px;

    font-weight:700;
}

/* CONTENT */

.health-card-content{

    padding:28px;
}

/* TOP */

.health-card-top{

    display:flex;

    justify-content:space-between;

    gap:20px;

    margin-bottom:24px;
}

.health-card-top h3{

    font-size:26px;

    font-weight:800;

    color:#0F172A;

    margin-bottom:8px;
}

.health-card-top p{

    color:#64748B;

    font-size:15px;
}

.health-card-top span{

    color:#2563EB;

    font-size:22px;

    font-weight:800;
}

/* TAGS */

.health-tags{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:28px;
}

.health-tags span{

    padding:
    10px
    14px;

    border-radius:999px;

    background:#EFF6FF;

    color:#2563EB;

    font-size:12px;

    font-weight:700;
}

/* INFO */

.health-card-info{

    display:flex;

    gap:12px;

    margin-bottom:28px;
}

.health-card-info span{

    padding:
    10px
    14px;

    border-radius:999px;

    background:#F8FAFC;

    color:#475569;

    font-size:12px;

    font-weight:700;
}

/* BOTTOM */

.health-card-bottom{

    display:flex;

    align-items:center;

    justify-content:space-between;
}

.health-rating{

    display:flex;

    align-items:center;

    gap:8px;

    color:#0F172A;

    font-size:14px;

    font-weight:700;
}

.health-rating i{

    color:#2563EB;
}

.health-card-bottom button{

    height:46px;

    padding:
    0
    22px;

    border:none;

    border-radius:999px;

    background:#2563EB;

    color:white;

    font-size:13px;

    font-weight:700;

    cursor:pointer;
}

/* FEATURED */

.featured-health-card{

    border-color:#2563EB;

    box-shadow:
    0 24px 60px rgba(37,99,235,0.14);
}

/* =========================================================
RESPONSIVE
========================================================= */

@media(max-width:1200px){

    .health-grid{

        grid-template-columns:1fr;
    }

}

@media(max-width:992px){

    .platform-search{

        grid-template-columns:1fr;
        border-radius:40px;
    }

    .platform-search-item{

        border-right:none;

        border-bottom:
        1px solid #E2E8F0;
    }

    .platform-search-btn{

        width:100%;
        border-radius:20px;
    }

}

@media(max-width:768px){

    .health-platform{

        padding:
        140px
        20px
        120px;
    }

    .platform-title{

        letter-spacing:-2px;
    }

    .platform-description{

        font-size:16px;
    }

    .health-category{

        min-width:110px;
        height:100px;
    }

}

/* =========================================================
TEST DIRECTORY
========================================================= */

.test-directory-section{

    scroll-margin-top:120px;

    padding:
    120px
    40px;

    background:#F8FAFC;
}

/* TOP */

.test-directory-top{

    display:flex;

    justify-content:space-between;

    gap:60px;

    align-items:flex-end;

    margin-bottom:60px;
}

.section-mini-title{

    display:inline-block;

    margin-bottom:20px;

    color:#2563EB;

    font-size:12px;

    font-weight:700;

    letter-spacing:3px;
}

.directory-title{

    font-size:clamp(3rem,5vw,5rem);

    line-height:1;

    letter-spacing:-3px;

    color:#0F172A;

    font-weight:800;
}

.directory-title span{

    color:#2563EB;
}

.directory-description{

    max-width:420px;

    color:#64748B;

    line-height:1.8;

    font-size:17px;
}

/* =========================================================
FILTERS
========================================================= */

.test-filter-bar{

    display:flex;

    gap:16px;

    overflow-x:auto;

    margin-bottom:50px;

    padding-bottom:10px;
}

.test-filter-bar::-webkit-scrollbar{

    display:none;
}

.test-filter{

    border:none;

    min-width:max-content;

    height:54px;

    padding:
    0
    24px;

    border-radius:999px;

    background:white;

    border:
    1px solid #E2E8F0;

    font-size:14px;

    font-weight:700;

    color:#0F172A;

    cursor:pointer;

    transition:0.3s;
}

.test-filter:hover{

    background:#2563EB;

    color:white;
}

.active-test-filter{

    background:#2563EB;

    color:white;
}

/* =========================================================
GRID
========================================================= */

.test-grid{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:28px;
}

/* Make the test grid scrollable with a fixed max height */
.test-grid{
    max-height:520px;
    overflow:auto;
    padding-right:8px; /* breathing room for scrollbar */
}

/* Modern custom scrollbar - WebKit */
.test-grid::-webkit-scrollbar{width:12px}
.test-grid::-webkit-scrollbar-track{background:transparent;border-radius:999px}
.test-grid::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#60A5FA,#2563EB);border-radius:999px;border:3px solid #F8FAFC}
.test-grid::-webkit-scrollbar-thumb:hover{filter:brightness(.95)}

/* Firefox */
.test-grid{scrollbar-width:thin;scrollbar-color:#2563EB #F8FAFC}

/* Add subtle inner shadows to indicate scrollable content */
.test-grid.scrolled-top{box-shadow:inset 0 8px 12px -8px rgba(15,23,42,0.06)}
.test-grid.scrolled-bottom{box-shadow:inset 0 -8px 12px -8px rgba(15,23,42,0.06)}

/* =========================================================
CARD
========================================================= */

.modern-test-card{

    background:white;

    border-radius:34px;

    padding:30px;

    border:
    1px solid #E2E8F0;

    transition:0.4s;

    position:relative;

    overflow:hidden;
}

.modern-test-card::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:5px;

    background:#2563EB;

    transform:scaleX(0);

    transition:0.4s;
}

.modern-test-card:hover::before{

    transform:scaleX(1);
}

.modern-test-card:hover{

    transform:
    translateY(-10px);

    box-shadow:
    0 25px 60px rgba(15,23,42,0.08);
}

/* TOP */

.test-card-top{

    display:flex;

    justify-content:space-between;

    gap:20px;

    margin-bottom:24px;
}

.test-code{

    display:inline-block;

    margin-bottom:12px;

    color:#2563EB;

    font-size:12px;

    font-weight:800;

    letter-spacing:2px;
}

.test-card-top h3{

    font-size:26px;

    line-height:1.1;

    color:#0F172A;

    font-weight:800;
}

.test-price{

    color:#2563EB;

    font-size:28px;

    font-weight:800;
}

/* BADGES */

.test-badges{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

    margin-bottom:30px;
}

.test-badges span{

    padding:
    10px
    14px;

    border-radius:999px;

    background:#EFF6FF;

    color:#2563EB;

    font-size:12px;

    font-weight:700;
}

/* META GRID */

.test-meta-grid{

    display:grid;

    grid-template-columns:
    1fr
    1fr;

    gap:22px;

    margin-bottom:30px;
}

.test-meta-grid label{

    display:block;

    margin-bottom:8px;

    color:#94A3B8;

    font-size:12px;

    font-weight:700;

    text-transform:uppercase;
}

.test-meta-grid p{

    color:#0F172A;

    font-size:15px;

    font-weight:700;
}

/* BUTTON */

.modern-test-btn{

    width:100%;

    height:56px;

    border:none;

    border-radius:18px;

    background:#0F172A;

    color:white;

    font-size:14px;

    font-weight:700;

    cursor:pointer;

    transition:0.3s;
}

.modern-test-btn:hover{

    background:#2563EB;
}

/* =========================================================
RESPONSIVE
========================================================= */

@media(max-width:1400px){

    .test-grid{

        grid-template-columns:
        repeat(3,1fr);
    }

}

@media(max-width:1100px){

    .test-grid{

        grid-template-columns:
        repeat(2,1fr);
    }

}

@media(max-width:768px){

    .test-directory-section{

        padding:
        90px
        20px;
    }

    .test-directory-top{

        flex-direction:column;

        align-items:flex-start;
    }

    .test-grid{

        grid-template-columns:1fr;
        max-height:none;
        overflow:visible;
    }

    .hero-title{
        font-size:32px;
        line-height:1.1;
    }

    .hero-description{
        width:100%;
        font-size:14px;
        margin-bottom:18px;
    }

    .hero-stats{
        flex-direction:column;
        gap:14px;
    }

    .search-box{
        flex-wrap:wrap;
        height:auto;
        padding:16px;
    }

    .search-box input{
        min-width:220px;
        font-size:16px;
    }

    .search-btn{
        width:100%;
        margin:12px 0 0;
        border-radius:16px;
    }

    .search-icon{
        width:48px;
        font-size:18px;
    }

    .service-grid{
        grid-template-columns:1fr;
    }

    .health-categories{
        padding:10px 20px;
    }

    .health-category{
        min-width:110px;
        height:100px;
        padding:18px 16px;
    }

    .health-card{
        border-radius:24px;
    }

    .health-card-content{
        padding:20px;
    }

    .health-card-top h3{
        font-size:20px;
    }

    .health-card-bottom{
        justify-content:center;
    }

    .booking-modal-panel{
        width:100%;
        max-width:100%;
        max-height:92vh;
        overflow-y:auto;
        margin:16px;
        padding:20px;
    }

    .booking-modal-panel form > div,
    .booking-modal-panel label,
    .booking-modal-panel input,
    .booking-modal-panel select,
    .booking-modal-panel textarea,
    .booking-modal-panel .btn{
        width:100%;
    }

    .footer-bottom{
        flex-direction:column;
        gap:10px;
        align-items:center;
        text-align:center;
    }

    .site-footer{
        padding:32px 16px;
    }

    .site-footer .footer-grid{
        gap:24px;
    }

    .mobile-book-btn{
        bottom:24px;
    }

    .mobile-menu{
        width:100%;
        max-width:100%;
    }

    .mobile-dock{
        width:96%;
    }

}
