/* =========================================================
   STARMED HOSPITAL
   FINAL CLEAN STYLE.CSS
   Header: logo + hospital/doctor details + simple navigation
   No dropdown menus
   ========================================================= */

:root{
    --starmed-blue:#362080;
    --starmed-pink:#e40067;
    --starmed-green:#0aa52b;
    --starmed-sky:#5ec8ef;
    --starmed-light:#f3fbff;
    --dark:#252936;
    --text:#333847;
    --muted:#687080;
    --white:#fff;
    --border:#e7e9ee;
    --shadow:0 6px 22px rgba(0,0,0,.07);
}

*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    width:100%;
    overflow-x:hidden;
    font-family:"Noto Sans Tamil",Arial,sans-serif;
    color:var(--text);
    background:#fff;
    line-height:1.65;
}

.tamil{
    font-family:"Noto Sans Tamil",sans-serif;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

.container{
    width:100%;
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
    padding-left:16px;
    padding-right:16px;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar{
    width:100%;
    background:var(--starmed-blue);
    color:#fff;
    font-size:13px;
    padding:7px 0;
}

.topbar a{
    color:#fff;
    text-decoration:none;
}

.topbar i{
    margin-right:5px;
}

.topbar a:hover{
    color:#ffd3df;
}


/* =========================================================
   MAIN HEADER
========================================================= */

.main-header{
    position:sticky;
    top:0;
    z-index:1000;
    width:100%;
    background:#fff;
    border-bottom:3px solid var(--starmed-green);
    box-shadow:0 3px 16px rgba(0,0,0,.08);
}

.header-inner{
    min-height:104px;
    display:flex;
    align-items:center;
    gap:18px;
    padding-top:8px;
    padding-bottom:8px;
}


/* =========================================================
   BRAND
========================================================= */

.brand{
    display:flex;
    align-items:center;
    gap:12px;

    flex:0 0 275px;
    width:275px;
    min-width:275px;

    color:var(--dark);
    text-decoration:none;
}

.brand-logo{
    width:66px !important;
    height:66px !important;
    min-width:66px;
    flex:0 0 66px;

    object-fit:contain !important;
    object-position:center;
    background:#fff;
    border-radius:9px;
}

.brand > div:last-child{
    min-width:0;
}

.brand-title{
    margin:0;
    color:var(--starmed-blue);
    font-size:21px;
    font-weight:900;
    line-height:1.05;
    white-space:nowrap;
}

.brand-title span{
    font-weight:900;
}

.brand-tamil{
    margin-top:4px;
    color:var(--starmed-pink);
    font-size:13px;
    font-weight:800;
    line-height:1.25;
    white-space:normal;
}

.brand-sub{
    margin-top:3px;
    color:#333;
    font-size:10px;
    font-weight:700;
    line-height:1.35;
    white-space:normal;
}


/* =========================================================
   SIMPLE NAVIGATION
   No dropdowns
========================================================= */

.main-nav{
    flex:1 1 auto;
    min-width:0;

    display:flex;
    align-items:center;
    justify-content:flex-end;

    gap:1px;
    margin:0;
    padding:0;

    white-space:nowrap;
}

.main-nav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:9px 6px;

    color:#30364a;
    background:transparent;

    font-size:13px;
    font-weight:700;
    line-height:1.2;

    border-radius:6px;
    white-space:nowrap;

    transition:color .2s ease,background .2s ease;
}

.main-nav a:hover{
    color:var(--starmed-pink);
    background:#fff1f6;
}

.main-nav .nav-appointment{
    margin-left:7px;
    padding:13px 14px;

    background:var(--starmed-pink) !important;
    color:#fff !important;

    border-radius:8px;
    font-size:13px;
    font-weight:800;
}

.main-nav .nav-appointment:hover{
    background:#c90058 !important;
    color:#fff !important;
}


/* Mobile menu button */

.nav-toggle{
    display:none;
    border:0;
    outline:0;
    background:var(--starmed-pink);
    color:#fff;
    border-radius:7px;
    padding:9px 12px;
    font-size:19px;
    cursor:pointer;
}


/* =========================================================
   EMERGENCY RIBBON
========================================================= */

.emergency-ribbon{
    background:var(--starmed-pink);
    color:#fff;
    padding:10px 0;
}

.emergency-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}

.emergency-ribbon a{
    color:#fff;
    font-weight:800;
}

.whatsapp-mini{
    background:#25d366;
    padding:6px 12px;
    border-radius:20px;
}


/* =========================================================
   HERO
========================================================= */

.hero{
    min-height:560px;
    display:flex;
    align-items:center;

    background:
        linear-gradient(100deg,rgba(54,32,128,.96),rgba(22,75,136,.88)),
        radial-gradient(circle at 80% 20%,#f3d8e2,transparent 35%);

    color:#fff;
}

.hero-content{
    max-width:760px;
    padding:80px 0;
}

.hero-badge{
    display:inline-block;
    background:var(--starmed-pink);
    color:#fff;
    padding:8px 16px;
    border-radius:50px;
    font-weight:800;
    margin-bottom:18px;
}

.hero h1{
    margin:0 0 15px;
    font-size:clamp(38px,6vw,66px);
    line-height:1.08;
    font-weight:900;
}

.hero h1 span{
    color:#ffcfdd;
}

.hero p{
    max-width:700px;
    font-size:19px;
}

.hero .tamil{
    font-size:28px;
    font-weight:700;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:28px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn-primary-custom,
.btn-outline-custom,
.btn-light-custom,
.btn-whatsapp,
.btn-outline-blue{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;

    padding:12px 20px;
    border-radius:8px;

    font-weight:800;
    transition:.2s ease;
}

.btn-primary-custom{
    background:var(--starmed-pink);
    color:#fff;
}

.btn-primary-custom:hover{
    background:#bf0055;
    color:#fff;
}

.btn-outline-custom{
    border:2px solid #fff;
    color:#fff;
}

.btn-outline-custom:hover{
    background:#fff;
    color:var(--starmed-blue);
}

.btn-light-custom{
    background:#fff;
    color:var(--starmed-blue);
}

.btn-whatsapp{
    background:#25d366;
    color:#fff;
}

.btn-whatsapp:hover{
    background:#18ad50;
    color:#fff;
}

.btn-outline-blue{
    border:2px solid var(--starmed-blue);
    color:var(--starmed-blue);
}

.btn-outline-blue:hover{
    background:var(--starmed-blue);
    color:#fff;
}


/* =========================================================
   QUICK STRIP
========================================================= */

.quick-strip{
    background:#f7f4f6;
    padding:20px 0;
}

.quick-card{
    height:100%;
    display:flex;
    align-items:center;
    gap:13px;
    padding:17px;

    background:#fff;
    border-radius:12px;
    box-shadow:var(--shadow);
}

.quick-card > i{
    color:var(--starmed-pink);
    font-size:30px;
}

.quick-card strong,
.quick-card small{
    display:block;
}

.quick-card small{
    color:#666;
    font-size:12px;
}


/* =========================================================
   SECTIONS
========================================================= */

.section{
    padding:68px 0;
}

.section-heading{
    max-width:800px;
    margin:0 auto 34px;
    text-align:center;
}

.section-heading span{
    color:var(--starmed-pink);
    font-size:13px;
    font-weight:900;
    letter-spacing:1.3px;
}

.section-heading h2{
    max-width:760px;
    margin:7px auto 10px;

    color:var(--dark);
    font-size:36px;
    font-weight:900;
    line-height:1.2;
}

.section-heading p{
    max-width:760px;
    margin-left:auto;
    margin-right:auto;
    color:var(--muted);
}

.section-heading.text-start h2,
.section-heading.text-start p{
    margin-left:0;
}


/* =========================================================
   COMMON CARDS
========================================================= */

.feature-card,
.list-card,
.service-card,
.facility-card,
.contact-card{
    height:100%;
    padding:25px;

    background:#fff;
    border:1px solid var(--border);
    border-radius:15px;

    box-shadow:var(--shadow);
    transition:.2s ease;
}

.feature-card:hover,
.list-card:hover,
.service-card:hover,
.facility-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(54,32,128,.12);
}

.feature-card h3,
.list-card h3,
.service-card h3,
.facility-card h3{
    margin:15px 0 8px;
    font-size:18px;
    font-weight:800;
    line-height:1.35;
}

.feature-card a{
    color:var(--starmed-blue);
    font-size:13px;
    font-weight:700;
}

.icon-circle{
    width:55px;
    height:55px;

    display:grid;
    place-items:center;

    border-radius:50%;
    background:#fff0f5;
    color:var(--starmed-pink);

    font-size:24px;
}


/* =========================================================
   HOME INTRO / WELCOME
========================================================= */

.welcome-card{
    height:100%;
    padding:35px;

    background:linear-gradient(145deg,#fff,#eefaff);
    border:1px solid #e4e8f0;
    border-radius:20px;

    box-shadow:0 10px 35px rgba(54,32,128,.10);
    text-align:center;
}

.welcome-logo img{
    width:115px;
    height:115px;
    margin:0 auto;
    object-fit:contain;
}

.welcome-card h3{
    margin-top:8px;
    color:var(--starmed-blue);
    font-weight:900;
}

.welcome-points{
    display:grid;
    gap:9px;
    margin-top:20px;
    text-align:left;
}

.welcome-points span{
    padding:9px 12px;
    background:#fff;
    border-radius:8px;
    font-weight:700;
}

.welcome-points i{
    color:var(--starmed-green);
    margin-right:8px;
}


/* =========================================================
   STATS
========================================================= */

.stats-band{
    background:var(--starmed-blue);
    color:#fff;
}

.stat-box{
    padding:28px 12px;
    text-align:center;
    border-right:1px solid rgba(255,255,255,.18);
}

.stat-box i{
    display:block;
    color:#ffd3df;
    font-size:28px;
    margin-bottom:7px;
}

.stat-box strong{
    display:block;
    font-size:22px;
    font-weight:900;
}

.stat-box span{
    font-size:13px;
}


/* =========================================================
   DEPARTMENTS
========================================================= */

.departments-home{
    background:#fafafa;
}

.department-card{
    display:block;
    height:100%;
    padding:24px;

    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;

    color:var(--dark);
    text-align:center;
    box-shadow:0 5px 18px rgba(0,0,0,.05);

    transition:.2s ease;
}

.department-card:hover{
    transform:translateY(-5px);
    border-color:#f0b7c8;
}

.dept-icon{
    width:60px;
    height:60px;

    margin:0 auto 14px;

    display:grid;
    place-items:center;

    border-radius:50%;
    background:#fff0f5;
    color:var(--starmed-pink);

    font-size:27px;
}

.department-card h3{
    min-height:50px;
    font-size:17px;
    font-weight:800;
    line-height:1.35;
}

.department-card span{
    color:var(--starmed-blue);
    font-size:12px;
    font-weight:800;
}


/* =========================================================
   SERVICES
========================================================= */

.service-feature{
    background:#f6fbf9;
}

.service-feature-card{
    height:100%;
    overflow:hidden;

    background:#fff;
    border-radius:15px;
    box-shadow:var(--shadow);

    display:flex;
    flex-direction:column;
}

.service-image-placeholder{
    height:145px;

    display:grid;
    place-items:center;

    background:linear-gradient(135deg,#dff2eb,#fbe1ea);
    color:var(--starmed-blue);

    font-size:55px;
}

.service-feature-body{
    flex:1;
    display:flex;
    flex-direction:column;
    padding:22px;
}

.service-feature-body h3{
    font-size:19px;
    font-weight:900;
}

.service-feature-body p{
    color:#666;
    font-size:13px;
}

.service-feature-body a{
    margin-top:auto;
    color:var(--starmed-pink);
    font-size:13px;
    font-weight:800;
}

.service-card > i{
    color:var(--starmed-blue);
    font-size:30px;
}

.simple-item{
    height:100%;
    padding:14px;

    background:#fff;
    border:1px solid var(--border);
    border-radius:9px;

    font-weight:700;
}

.simple-item i{
    color:var(--starmed-pink);
    margin-right:9px;
}


/* =========================================================
   DOCTORS
========================================================= */

.doctors-home{
    background:#fff;
}

.doctor-home-card{
    height:100%;

    display:flex;
    align-items:center;
    gap:20px;

    padding:25px;

    background:#f8f0f4;
    border-radius:16px;
}

.doctor-avatar{
    width:105px;
    height:105px;
    min-width:105px;

    display:grid;
    place-items:center;

    overflow:hidden;

    border-radius:50%;
    background:#dceef5;
    color:var(--starmed-blue);

    font-size:48px;
}

.doctor-home-card span{
    color:var(--starmed-pink);
    font-size:12px;
    font-weight:800;
}

.doctor-home-card h3{
    margin:3px 0;
    font-weight:900;
}

.doctor-home-card b{
    font-size:13px;
}

.doctor-home-card p{
    margin:5px 0 12px;
    font-size:13px;
}

.small-btn{
    display:inline-block;
    padding:7px 11px;

    background:var(--starmed-blue);
    color:#fff;

    border-radius:6px;
    font-size:12px;
    font-weight:800;
}


/* Doctor page */

.doctor-card{
    height:100%;
    overflow:hidden;

    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;

    box-shadow:var(--shadow);
}

.doctor-photo{
    height:210px;

    display:grid;
    place-items:center;

    overflow:hidden;

    background:linear-gradient(135deg,#fbe2eb,#d9f0e8);
    color:var(--starmed-blue);

    font-size:85px;
}

.doctor-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.doctor-body{
    padding:28px;
}

.doctor-role{
    color:var(--starmed-pink);
    font-size:12px;
    font-weight:800;
}

.doctor-body h2{
    margin:5px 0;
    font-size:26px;
    font-weight:900;
}

.doctor-body h4{
    color:#555;
    font-size:15px;
}


/* =========================================================
   FACILITIES
========================================================= */

.facility-highlight{
    background:var(--starmed-blue);
    color:#fff;
}

.facility-highlight .section-heading h2{
    color:#fff;
}

.facility-highlight .section-heading span{
    color:#ffd3df;
}

.facility-pills{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.facility-pills span{
    padding:12px 15px;

    background:rgba(255,255,255,.09);
    border:1px solid rgba(255,255,255,.14);
    border-radius:8px;

    font-size:13px;
}

.facility-pills i{
    color:#ffd3df;
    margin-right:8px;
}

.facility-card{
    position:relative;
    padding:30px 15px;
    text-align:center;
}

.facility-card > i{
    color:var(--starmed-blue);
    font-size:34px;
}

.facility-no{
    position:absolute;
    top:10px;
    right:12px;

    color:var(--starmed-pink);
    font-size:11px;
    font-weight:800;
}


/* =========================================================
   PAGE BANNER
========================================================= */

.page-banner{
    min-height:190px;

    display:flex;
    align-items:center;

    color:#fff;

    background:linear-gradient(100deg,var(--starmed-blue),#276aa0);
}

.page-banner h1{
    margin:0;
    font-size:44px;
    font-weight:900;
}

.page-banner p{
    margin:5px 0 0;
}


/* =========================================================
   INFO / LIST
========================================================= */

.info-panel{
    height:100%;
    padding:30px;

    background:#f8f0f4;
    border-left:5px solid var(--starmed-pink);
    border-radius:12px;
}

.info-panel h3{
    font-weight:900;
}

.check-list{
    padding:0;
    list-style:none;
}

.check-list li{
    margin:10px 0;
}

.check-list li::before{
    content:"✓";
    margin-right:10px;
    color:var(--starmed-green);
    font-weight:900;
}

.tag-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.tag-item{
    padding:14px;
    background:#f7f4f6;
    border-radius:9px;
    font-weight:700;
}

.tag-item i{
    color:var(--starmed-pink);
    margin-right:9px;
}


/* =========================================================
   FLOOR / APPOINTMENT / MAP / CONTACT
========================================================= */

.floor-card{
    height:100%;
    padding:25px;

    background:var(--starmed-blue);
    color:#fff;

    border-radius:15px;
}

.floor-card h3{
    color:#ffd3df;
    font-weight:900;
}

.floor-card li{
    margin:7px 0;
}

.appointment-form{
    height:100%;
    padding:30px;

    background:#fff;
    border:1px solid var(--border);
    border-radius:15px;

    box-shadow:var(--shadow);
}

.appointment-form label{
    margin-bottom:5px;
    font-weight:700;
}

.map-box{
    height:100%;
    padding:60px 20px;

    background:#f5f7fa;
    border-radius:18px;

    text-align:center;
}

.contact-card{
    text-align:center;
}

.contact-card > i{
    color:var(--starmed-pink);
    font-size:30px;
}

.contact-card h3{
    font-weight:900;
}

.contact-card a{
    color:var(--starmed-blue);
    font-weight:700;
}


/* =========================================================
   TESTIMONIALS / NEWS
========================================================= */

.testimonial-section{
    background:#fafafa;
}

.quote-card{
    height:100%;
    padding:28px;

    background:#fff;
    border-top:4px solid var(--starmed-pink);
    border-radius:12px;

    box-shadow:var(--shadow);
}

.quote-card > i{
    color:var(--starmed-pink);
    font-size:25px;
}

.quote-card p{
    margin:18px 0;
    font-size:15px;
}

.quote-card strong{
    color:var(--starmed-blue);
    font-size:12px;
}

.news-card{
    height:100%;
    padding:27px;

    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
}

.news-card span{
    display:inline-block;
    padding:5px 10px;

    background:var(--starmed-pink);
    color:#fff;

    border-radius:5px;
    font-size:11px;
    font-weight:900;
}

.news-card h3{
    margin-top:14px;
    font-weight:900;
}

.news-card p{
    color:#666;
    font-size:14px;
}


/* =========================================================
   CTA
========================================================= */

.cta{
    padding:60px 0;

    background:linear-gradient(100deg,var(--starmed-blue),#164b88);
    color:#fff;
}

.cta h2{
    font-size:38px;
    font-weight:900;
}


/* =========================================================
   PHOTO GALLERY SLIDER
========================================================= */

.photo-scroll {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #f4fbfe;
    margin: 0;
    padding: 0;
}

.photo-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.photo-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: clamp(300px, 42vw, 620px);
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.photo-slide img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center center;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Arrow buttons */
.photo-scroll .slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #e5005a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    box-shadow: 0 5px 18px rgba(0,0,0,.20);
    cursor: pointer;
    transition: .2s ease;
}

.photo-scroll .slider-arrow:hover {
    background: #25206f;
    transform: translateY(-50%) scale(1.06);
}

.photo-scroll .slider-arrow.prev {
    left: 18px;
}

.photo-scroll .slider-arrow.next {
    right: 18px;
}

.photo-scroll .slider-arrow i {
    font-size: 18px;
}

/* Keep emergency ribbon directly below the photos */
.emergency-ribbon {
    margin: 0;
}

/* Tablet */
@media (max-width: 991px) {
    .photo-slide {
        height: clamp(260px, 50vw, 500px);
    }

    .photo-scroll .slider-arrow {
        width: 42px;
        height: 42px;
    }

    .photo-scroll .slider-arrow.prev {
        left: 12px;
    }

    .photo-scroll .slider-arrow.next {
        right: 12px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .photo-slide {
        height: 260px;
    }

    .photo-slide img {
        object-fit: cover;
        object-position: center center;
    }

    .photo-scroll .slider-arrow {
        width: 38px;
        height: 38px;
    }

    .photo-scroll .slider-arrow.prev {
        left: 8px;
    }

    .photo-scroll .slider-arrow.next {
        right: 8px;
    }

    .photo-scroll .slider-arrow i {
        font-size: 15px;
    }
}

/* Small phones */
@media (max-width: 430px) {
    .photo-slide {
        height: 220px;
    }

    .photo-scroll .slider-arrow {
        width: 34px;
        height: 34px;
    }
}

/* =========================================================
   WHATSAPP FLOAT
========================================================= */

.whatsapp-float{
    position:fixed;
    right:20px;
    bottom:20px;

    width:58px;
    height:58px;

    display:grid;
    place-items:center;

    background:#25d366;
    color:#fff;

    border-radius:50%;

    font-size:31px;

    z-index:2000;

    box-shadow:0 6px 22px rgba(0,0,0,.25);

    transition:.2s ease;
}

.whatsapp-float:hover{
    color:#fff;
    transform:scale(1.06);
}


/* =========================================================
   FOOTER
========================================================= */

.footer{
    padding:50px 0 12px;

    background:#151b2c;
    color:#dce2ef;
}

.footer .container{
    max-width:1180px;
}

.footer .row{
    align-items:flex-start;
    row-gap:28px;
}

.footer .row > [class*="col-"]{
    padding-left:18px;
    padding-right:18px;
}

.footer h3,
.footer h4{
    margin:0 0 12px;
    color:#fff;
    font-size:18px;
    font-weight:800;
    line-height:1.3;
}

.footer .tamil{
    margin:2px 0 6px;
    color:#ffcfdd;
    font-size:14px;
    font-weight:700;
}

.footer p{
    margin:0 0 10px;
    color:#c9d1e8;
    font-size:13.5px;
    line-height:1.6;
}

.footer .col-lg-4 p{
    display:flex;
    align-items:flex-start;
    gap:9px;
}

.footer .col-lg-4 p i{
    width:16px;
    flex:0 0 16px;
    margin-top:3px;
    color:var(--starmed-pink);
    text-align:center;
}

.footer .emergency-number{
    margin:4px 0 14px;
    color:#ffcfdd !important;
    font-size:17px !important;
    font-weight:800;
}

.footer-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;

    margin:0 8px 8px 0;
    padding:10px 16px;

    background:var(--starmed-pink);
    color:#fff;

    border-radius:8px;
    font-size:13.5px;
    font-weight:700;
}

.footer-btn.whatsapp-btn{
    background:#25d366;
}

.footer-btn:hover{
    color:#fff;
    opacity:.9;
}

.footer .copyright{
    margin-top:28px;
    padding-top:14px;

    border-top:1px solid #30384c;

    color:#9aa4c4;
    font-size:11.5px;
    text-align:center;
}


/* =========================================================
   BOOTSTRAP / CARD HEIGHT HELPERS
========================================================= */

.row > [class*="col-"]{
    align-self:stretch;
}

.feature-card,
.list-card,
.service-card,
.facility-card,
.contact-card,
.department-card,
.service-feature-card,
.doctor-home-card,
.quote-card,
.news-card{
    height:100%;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width:1200px){

    .brand{
        flex-basis:285px;
        width:285px;
        min-width:285px;
    }

    .brand-logo{
        width:68px !important;
        height:68px !important;
        min-width:68px;
        flex-basis:68px;
    }

    .main-nav{
        gap:1px;
    }

    .main-nav a{
        padding-left:6px;
        padding-right:6px;
        font-size:12.5px;
    }
}


/* =========================================================
   LAPTOP
========================================================= */

@media (min-width:992px) and (max-width:1199px){

    .header-inner{
        gap:9px;
    }

    .brand{
        flex-basis:220px;
        width:220px;
        min-width:220px;
        gap:9px;
    }

    .brand-logo{
        width:55px !important;
        height:55px !important;
        min-width:55px;
        flex-basis:55px;
    }

    .brand-title{
        font-size:17px;
    }

    .brand-tamil{
        font-size:11px;
    }

    .brand-sub{
        font-size:8.5px;
    }

    .main-nav{
        gap:0;
    }

    .main-nav a{
        padding:8px 4px;
        font-size:11px;
    }

    .main-nav .nav-appointment{
        margin-left:4px;
        padding:10px 9px;
        font-size:11px;
    }
}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width:991px){

    .topbar{
        font-size:11px;
    }

    .topbar .container{
        justify-content:center !important;
        text-align:center;
        flex-wrap:wrap;
    }

    .header-inner{
        position:relative;
        min-height:78px;
    }

    .brand{
        flex:1 1 auto;
        width:auto;
        min-width:0;
        max-width:calc(100% - 55px);
        gap:9px;
    }

    .brand-logo{
        width:52px !important;
        height:52px !important;
        min-width:52px;
        flex-basis:52px;
    }

    .brand-title{
        font-size:18px;
    }

    .brand-tamil{
        font-size:11px;
    }

    .brand-sub{
        font-size:9px;
    }

    .nav-toggle{
        display:block;
        flex-shrink:0;
    }

    .main-nav{
        position:absolute;
        left:0;
        right:0;
        top:100%;

        width:100%;

        display:none;

        flex-direction:column;
        align-items:stretch;

        padding:10px 16px 18px;

        background:#fff;

        box-shadow:0 10px 22px rgba(0,0,0,.12);

        gap:2px;
    }

    .main-nav.show{
        display:flex;
    }

    .main-nav a{
        width:100%;
        justify-content:flex-start;
        padding:12px 15px;
        font-size:14px;
        white-space:normal;
    }

    .main-nav .nav-appointment{
        margin-left:0;
        margin-top:5px;
        justify-content:center;
    }

    .photo-slide{
        aspect-ratio:16/9;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width:767px){

    .container{
        width:100%;
        padding-left:16px;
        padding-right:16px;
    }

    .topbar{
        padding:6px 0;
        font-size:10px;
    }

    .topbar .container{
        gap:4px !important;
    }

    .header-inner{
        min-height:70px;
        padding-left:12px;
        padding-right:12px;
    }

    .brand{
        gap:8px;
        max-width:calc(100% - 54px);
    }

    .brand-logo{
        width:46px !important;
        height:46px !important;
        min-width:46px;
        flex-basis:46px;
    }

    .brand-title{
        font-size:17px !important;
        white-space:nowrap;
    }

    .brand-tamil{
        font-size:10px !important;
        white-space:nowrap;
    }

    .brand-sub{
        font-size:8px !important;
        line-height:1.25;
    }

    .main-nav{
        padding-left:14px;
        padding-right:14px;
    }

    .hero{
        min-height:500px;
    }

    .hero-content{
        padding:55px 0;
    }

    .hero h1{
        font-size:40px;
    }

    .hero p{
        font-size:16px;
    }

    .hero .tamil{
        font-size:22px;
    }

    .hero-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .hero-actions a{
        width:100%;
        justify-content:center;
    }

    .section{
        padding:48px 0;
    }

    .section-heading{
        margin-bottom:25px;
        text-align:center !important;
    }

    .section-heading h2{
        font-size:26px;
    }

    .section-heading.text-start h2,
    .section-heading.text-start p{
        margin-left:auto;
        margin-right:auto;
    }

    .page-banner{
        min-height:145px;
        padding:35px 0;
    }

    .page-banner h1{
        font-size:29px;
    }

    .tag-grid{
        grid-template-columns:1fr;
    }

    .facility-pills{
        grid-template-columns:1fr;
    }

    .doctor-home-card{
        flex-direction:column;
        text-align:center;
    }

    .doctor-avatar{
        width:80px;
        height:80px;
        min-width:80px;
        margin:auto;
        font-size:34px;
    }

    .photo-track{
        padding:10px 12px;
        gap:8px;
    }

    .photo-slide{
        flex:0 0 calc(100vw - 24px);
        aspect-ratio:16/9;
    }

    .photo-slide img{
        object-fit:cover !important;
    }

    .slider-arrow{
        display:none;
    }

    .stat-box{
        min-height:130px;
        padding:20px 8px;
        border-right:0;
        border-bottom:1px solid rgba(255,255,255,.15);
    }

    .welcome-card{
        padding:25px;
    }

    .facility-pills{
        grid-template-columns:1fr !important;
    }

    .footer{
        padding:35px 0 10px;
    }

    .footer .row{
        row-gap:0;
    }

    .footer .row > [class*="col-"]{
        width:100%;
        padding:0 18px;
        margin-bottom:26px;
        text-align:center;
    }

    .footer .col-lg-4 p{
        justify-content:center;
    }

    .footer-btn{
        display:flex;
        justify-content:center;
        width:100%;
        margin:0 0 10px;
    }

    .footer .copyright{
        margin-top:4px;
    }

    .whatsapp-float{
        width:54px;
        height:54px;
        right:14px;
        bottom:14px;
        font-size:28px;
    }

    .cta h2{
        font-size:30px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width:420px){

    .brand-logo{
        width:42px !important;
        height:42px !important;
        min-width:42px;
        flex-basis:42px;
    }

    .brand-title{
        font-size:15px !important;
    }

    .brand-tamil{
        font-size:9px !important;
    }

    .brand-sub{
        display:none;
    }
}


/* =========================================================
   DESKTOP FOOTER COLUMNS
========================================================= */

@media (min-width:992px){

    .footer .col-lg-4:nth-child(1){
        flex:0 0 30%;
        max-width:30%;
    }

    .footer .col-lg-4:nth-child(2){
        flex:0 0 38%;
        max-width:38%;
    }

    .footer .col-lg-4:nth-child(3){
        flex:0 0 32%;
        max-width:32%;
    }
}


/* =========================================================
   FINAL HEADER OVERWRITE - STARMED
   This block intentionally comes last so it overrides any
   older/conflicting header rules in this stylesheet.
   ========================================================= */

/* ---------- TOP BAR ---------- */
.topbar{
    display:block !important;
    width:100% !important;
    min-height:32px !important;
    height:auto !important;
    padding:6px 0 !important;
    margin:0 !important;
    background:#362080 !important;
    color:#fff !important;
    overflow:visible !important;
}

.topbar .container{
    min-height:20px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
}

.topbar a{
    color:#fff !important;
}


/* ---------- MAIN HEADER ---------- */
.main-header{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;

    display:block !important;
    width:100% !important;

    background:#fff !important;
    border-top:0 !important;
    border-bottom:3px solid #0aa52b !important;

    box-shadow:0 3px 14px rgba(0,0,0,.08) !important;
    z-index:1000 !important;
}

.header-inner{
    width:100% !important;
    max-width:1200px !important;
    min-height:104px !important;

    margin:0 auto !important;
    padding:8px 16px !important;

    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;

    gap:12px !important;
}


/* ---------- BRAND ---------- */
.brand{
    position:relative !important;

    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;

    flex:0 0 255px !important;
    width:255px !important;
    min-width:255px !important;

    margin:0 !important;
    padding:0 !important;

    gap:10px !important;

    text-decoration:none !important;
}

.brand-logo{
    display:block !important;

    width:64px !important;
    height:64px !important;
    min-width:64px !important;
    max-width:64px !important;

    flex:0 0 64px !important;

    object-fit:contain !important;
    object-position:center !important;

    margin:0 !important;
    padding:0 !important;

    border-radius:9px !important;
}

.brand > div:last-child{
    display:block !important;
    position:static !important;

    width:auto !important;
    min-width:0 !important;
    max-width:none !important;

    margin:0 !important;
    padding:0 !important;
}

.brand-title{
    display:block !important;
    position:static !important;

    margin:0 !important;
    padding:0 !important;

    color:#362080 !important;

    font-family:"Noto Sans Tamil",Arial,sans-serif !important;
    font-size:20px !important;
    font-weight:900 !important;

    line-height:1.05 !important;
    white-space:nowrap !important;
}

.brand-title span{
    color:#362080 !important;
    font-weight:900 !important;
}

.brand-tamil{
    display:block !important;

    margin:3px 0 0 !important;
    padding:0 !important;

    color:#e40067 !important;

    font-size:12px !important;
    font-weight:800 !important;

    line-height:1.2 !important;
    white-space:nowrap !important;
}

.brand-sub{
    display:block !important;

    margin:3px 0 0 !important;
    padding:0 !important;

    color:#333 !important;

    font-size:9.5px !important;
    font-weight:700 !important;

    line-height:1.25 !important;
    white-space:normal !important;
}


/* ---------- NAVIGATION ---------- */
.main-nav{
    position:static !important;

    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;

    display:flex !important;
    flex:1 1 auto !important;

    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-end !important;

    width:auto !important;
    min-width:0 !important;
    height:auto !important;

    margin:0 !important;
    padding:0 !important;

    gap:0 !important;

    background:transparent !important;
    box-shadow:none !important;
    border:0 !important;

    overflow:visible !important;
    white-space:nowrap !important;
}

.main-nav a{
    position:static !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:auto !important;
    min-width:0 !important;
    height:auto !important;

    margin:0 !important;

    padding:8px 5px !important;

    background:transparent !important;
    border:0 !important;
    border-radius:5px !important;

    color:#30364a !important;

    font-family:"Noto Sans Tamil",Arial,sans-serif !important;
    font-size:11px !important;
    font-weight:700 !important;

    line-height:1.15 !important;
    letter-spacing:-.15px !important;

    white-space:nowrap !important;

    text-decoration:none !important;
}

.main-nav a:hover{
    background:#fff1f6 !important;
    color:#e40067 !important;
}

.main-nav .nav-appointment{
    display:inline-flex !important;

    flex:0 0 auto !important;

    margin:0 0 0 6px !important;
    padding:12px 13px !important;

    background:#e40067 !important;
    color:#fff !important;

    border-radius:8px !important;

    font-size:11px !important;
    font-weight:800 !important;

    letter-spacing:0 !important;
}

.main-nav .nav-appointment:hover{
    background:#c90058 !important;
    color:#fff !important;
}


/* ---------- MOBILE TOGGLE ---------- */
.nav-toggle{
    display:none !important;
}


/* =========================================================
   LARGE DESKTOP - FIT ALL LINKS WITHOUT OVERLAP
   ========================================================= */

@media (min-width:1200px){

    .header-inner{
        max-width:1200px !important;
    }

    .brand{
        flex-basis:255px !important;
        width:255px !important;
        min-width:255px !important;
    }

    .main-nav a{
        padding-left:4px !important;
        padding-right:4px !important;
        font-size:10.7px !important;
    }

    .main-nav .nav-appointment{
        margin-left:5px !important;
        padding-left:12px !important;
        padding-right:12px !important;
        font-size:10.8px !important;
    }
}


/* =========================================================
   992-1199px
   ========================================================= */

@media (min-width:992px) and (max-width:1199px){

    .header-inner{
        min-height:96px !important;
        gap:7px !important;
    }

    .brand{
        flex-basis:220px !important;
        width:220px !important;
        min-width:220px !important;
        gap:8px !important;
    }

    .brand-logo{
        width:56px !important;
        height:56px !important;
        min-width:56px !important;
        max-width:56px !important;
        flex-basis:56px !important;
    }

    .brand-title{
        font-size:16px !important;
    }

    .brand-tamil{
        font-size:10px !important;
    }

    .brand-sub{
        font-size:8px !important;
    }

    .main-nav a{
        padding:7px 3px !important;
        font-size:9.5px !important;
        letter-spacing:-.2px !important;
    }

    .main-nav .nav-appointment{
        margin-left:3px !important;
        padding:10px 8px !important;
        font-size:9.5px !important;
    }
}


/* =========================================================
   MOBILE - SIMPLE VERTICAL MENU
   ========================================================= */

@media (max-width:991px){

    .topbar{
        min-height:0 !important;
        padding:6px 0 !important;
    }

    .topbar .container{
        justify-content:center !important;
        flex-wrap:wrap !important;
        text-align:center !important;
        gap:4px !important;
    }

    .header-inner{
        position:relative !important;

        min-height:76px !important;

        padding:7px 16px !important;

        gap:8px !important;
    }

    .brand{
        flex:1 1 auto !important;
        width:auto !important;
        min-width:0 !important;
        max-width:calc(100% - 52px) !important;

        gap:8px !important;
    }

    .brand-logo{
        width:50px !important;
        height:50px !important;
        min-width:50px !important;
        max-width:50px !important;
        flex-basis:50px !important;
    }

    .brand-title{
        font-size:17px !important;
    }

    .brand-tamil{
        font-size:10.5px !important;
    }

    .brand-sub{
        font-size:8.5px !important;
    }

    .nav-toggle{
        display:grid !important;
        place-items:center !important;

        width:42px !important;
        height:40px !important;

        flex:0 0 42px !important;

        border:0 !important;
        outline:0 !important;

        background:#e40067 !important;
        color:#fff !important;

        border-radius:7px !important;

        cursor:pointer !important;
    }

    .main-nav{
        position:absolute !important;

        top:100% !important;
        left:0 !important;
        right:0 !important;

        display:none !important;

        width:100% !important;
        min-width:100% !important;

        flex-direction:column !important;
        align-items:stretch !important;
        justify-content:flex-start !important;

        padding:10px 16px 16px !important;

        background:#fff !important;
        box-shadow:0 10px 22px rgba(0,0,0,.12) !important;

        gap:2px !important;

        white-space:normal !important;
    }

    .main-nav.show{
        display:flex !important;
    }

    .main-nav a{
        display:flex !important;
        width:100% !important;

        justify-content:flex-start !important;

        padding:11px 14px !important;

        font-size:13px !important;
        letter-spacing:0 !important;

        white-space:normal !important;
    }

    .main-nav .nav-appointment{
        justify-content:center !important;

        margin:5px 0 0 !important;

        padding:12px 14px !important;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width:767px){

    .topbar{
        font-size:10px !important;
    }

    .header-inner{
        min-height:70px !important;
        padding:7px 12px !important;
    }

    .brand-logo{
        width:45px !important;
        height:45px !important;
        min-width:45px !important;
        max-width:45px !important;
        flex-basis:45px !important;
    }

    .brand-title{
        font-size:15px !important;
    }

    .brand-tamil{
        font-size:9px !important;
    }

    .brand-sub{
        font-size:8px !important;
        line-height:1.2 !important;
    }

    .nav-toggle{
        width:40px !important;
        height:38px !important;
    }
}

@media (max-width:420px){

    .brand-logo{
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        max-width:42px !important;
        flex-basis:42px !important;
    }

    .brand-title{
        font-size:14px !important;
    }

    .brand-tamil{
        font-size:8.5px !important;
    }

    .brand-sub{
        display:none !important;
    }
}
