/* --- 1. VARIABLES & RESET --- */
:root {
    --primary: #0F4C75;      /* Deep Medical Blue */
    --primary-dark: #1B262C; /* Almost Black */
    --secondary: #3282B8;    /* Trust Blue */
    --accent: #00B4D8;       /* Modern Teal */
    --alert: #E63946;        /* Emergency Red */
    --text-main: #333333;
    --text-light: #777777;
    --bg-light: #F8F9FB;
    --white: #ffffff;
    
    --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-float: 0 15px 40px rgba(15, 76, 117, 0.15);
    
    --font-main: 'Manrope', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-main); }
html { scroll-behavior: smooth; font-size: 16px;scroll-padding-top: 100px; }
body { color: var(--text-main); line-height: 1.6; background-color: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
/* Ensure images never overflow their container */
img, video {
    max-width: 100%;
    height: auto;
}
/* --- 2. UTILITIES --- */
.container { width: 90%; max-width: 1280px; margin: 0 auto; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.section { padding: 80px 0; position: relative; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-dark); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.sub-heading { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.section-title { font-size: 2.5rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 15px; line-height: 1.2; }

.btn-primary { background: var(--primary); color: white; padding: 14px 32px; border: none; border-radius: 5px; font-weight: 600; cursor: pointer; transition: var(--transition); box-shadow: 0 5px 15px rgba(15, 76, 117, 0.3); display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn-primary:hover { background: var(--secondary); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(15, 76, 117, 0.4); }
.btn-outline { background: transparent; border: 2px solid white; color: white; padding: 12px 30px; border-radius: 5px; font-weight: 600; transition: var(--transition); }
.btn-outline:hover { background: white; color: var(--primary); }
.btn-outline.text-dark { border-color: var(--primary); color: var(--primary); }
.btn-outline.text-dark:hover { background: var(--primary); color: white; }
.btn-alert { background: var(--alert); box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3); }

/* --- 3. TOP BAR & HEADER --- */
/* Top Bar */
.top-bar { background-color: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 8px 0; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 1001; position: relative; }
.tb-link { margin-right: 20px; transition: 0.3s; display: inline-flex; align-items: center; gap: 6px; }
.tb-link:hover { color: white; }
.tb-sep { margin-right: 20px; opacity: 0.3; }
.tb-social { margin-left: 15px; width: 25px; height: 25px; background: rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: white; transition: 0.3s; font-size: 0.8rem; }
.tb-social:hover { background: var(--accent); transform: translateY(-2px); }
.tb-right { display: flex; align-items: center; }
.tb-link.highlight { color: var(--accent); font-weight: 600; margin-left: 15px; }

/* Sticky Header */
header { background: white; height: 90px; display: flex; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: all 0.4s ease; }
header.scrolled { height: 70px; box-shadow: 0 5px 30px rgba(0,0,0,0.1); background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); }

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }

/* Branding */
.brand-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo img { height: 60px; transition: 0.3s; }
header.scrolled .brand-logo img { height: 45px; }
.brand-text h2 { font-size: 1.4rem; color: var(--primary); font-weight: 800; line-height: 1; margin: 0; }
.brand-text span { font-size: 0.8rem; color: #777; letter-spacing: 2px; text-transform: uppercase; }

/* Desktop Navigation */
.desktop-nav { display: block; }
.nav-list { display: flex; gap: 30px; align-items: center; margin: 0; padding: 0; }
.nav-item { color: var(--primary-dark); font-weight: 600; font-size: 0.95rem; padding: 10px 0; position: relative; transition: 0.3s; }
.nav-item:hover, .nav-item.active { color: var(--primary); }
.nav-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: 0.3s; }
.nav-item:hover::after { width: 100%; }

/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown .fa-chevron-down { font-size: 0.7rem; margin-left: 4px; transition: 0.3s; }
.dropdown:hover .fa-chevron-down { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 100%; left: -20px; background: white; width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 8px; border-top: 3px solid var(--accent); opacity: 0; visibility: hidden; transform: translateY(20px); transition: 0.3s ease; padding: 10px 0; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 10px 20px; color: #555; font-size: 0.9rem; font-weight: 500; transition: 0.2s; border-bottom: 1px solid #f5f5f5; }
.dropdown-menu li a i { width: 25px; color: var(--primary); }
.dropdown-menu li a:hover { background: #f9f9f9; color: var(--primary); padding-left: 25px; }
.dropdown-menu li:last-child a { border-bottom: none; }

/* Header Actions & Emergency Btn */
.header-actions { display: flex; align-items: center; gap: 20px; }
.btn-emergency { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 10px; }
.pulse-icon { width: 40px; height: 40px; background: rgba(230, 57, 70, 0.1); color: var(--alert); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; animation: pulse-red 2s infinite; }
.em-text { line-height: 1.2; text-align: left; }
.em-text small { font-size: 0.75rem; color: #888; display: block; font-weight: 600; text-transform: uppercase; }
.em-text span { font-size: 1rem; color: var(--primary-dark); font-weight: 700; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); } 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); } }

/* Mobile Hamburger & Sidebar */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.bar { width: 25px; height: 3px; background: var(--primary-dark); transition: 0.3s; border-radius: 2px; }

.mobile-sidebar { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: white; z-index: 2000; padding: 20px; box-shadow: -5px 0 30px rgba(0,0,0,0.1); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.mobile-sidebar.active { right: 0; }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1999; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(2px); }
.mobile-overlay.active { opacity: 1; visibility: visible; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.sidebar-header h3 { color: var(--primary); font-size: 1.2rem; }
.close-sidebar { background: none; border: none; font-size: 2rem; color: #888; cursor: pointer; }
.mobile-links { list-style: none; }
.mobile-links li { border-bottom: 1px solid #f5f5f5; }
.mobile-links a { display: block; padding: 15px 0; color: var(--primary-dark); font-weight: 600; font-size: 1rem; }
.mobile-links a:hover { color: var(--accent); padding-left: 10px; }
.sidebar-footer { margin-top: auto; }
.sidebar-contact { margin-top: 20px; color: #666; font-size: 0.9rem; }
.sidebar-contact p { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }

/* --- 4. STATIC HERO SECTION (Mobile Friendly) --- */
.static-hero {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f9fbfd 0%, #edf2f7 100%);
    overflow: hidden;
    position: relative;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* --- Left Column: Content --- */
.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 76, 117, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 35px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-trust-indicators {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 25px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--accent);
}

/* --- Right Column: Visual --- */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.img-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: url('https://www.transparenttextures.com/patterns/medical-icons.png'); /* Optional texture pattern */
    opacity: 0.05;
    z-index: 0;
}

.hero-visual .main-img {
    width: 100%;
    max-width: 500px;
    border-radius: 30px 30px 5px 30px; /* Unique shape */
    box-shadow: var(--shadow-float);
    position: relative;
    z-index: 1;
}

/* Floating Card Animation */
.float-card {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    animation: float-y 4s ease-in-out infinite;
}

.fc-icon {
    width: 45px;
    height: 45px;
    background: #FFEBEE;
    color: var(--alert);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.fc-text strong { display: block; color: var(--primary-dark); font-size: 1rem; }
.fc-text span { font-size: 0.8rem; color: #777; }

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero-wrapper { gap: 30px; }
}

@media (max-width: 768px) {
    .static-hero { padding: 40px 0 60px; text-align: center; }
    
    .hero-wrapper {
        flex-direction: column-reverse; /* Puts image on top, text below on mobile? 
                                           Actually, Text-Top is better for accessibility. 
                                           Let's do Column (Text Top) for better conversion. */
        flex-direction: column; 
        /* --- Mobile Sticky Bottom Bar --- */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.m-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    gap: 5px;
    cursor: pointer;
}

.m-bar-item i { font-size: 1.2rem; margin-bottom: 2px; }

/* Differentiate the buttons visually */
.call-btn { color: var(--primary-dark); }
.book-btn { color: var(--accent); }

/* Separator Line */
.m-bar-sep { width: 1px; height: 30px; background: #ddd; }

/* Adjust Whatsapp Position so it doesn't overlap */
.whatsapp-float { bottom: 80px; } 

/* Hide this bar on Desktop */
@media (min-width: 769px) {
    .mobile-bottom-bar { display: none; }
}
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-badge { margin-bottom: 15px; }
    
    .hero-content h1 { 
        font-size: 2.2rem; 
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions .btn-primary, 
    .hero-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-trust-indicators {
        justify-content: center;
        width: 100%;
    }

    /* Adjust Visual for Mobile */
    .hero-visual {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .hero-visual .main-img {
        max-width: 350px; /* Smaller image on mobile */
        border-radius: 20px;
    }
    
    .float-card {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%); /* Center the float card */
        width: 80%;
        animation: none; /* Disable animation on mobile to save battery */
    }
}

/* --- 5. STATS FLOATER --- */
.stats-floater { margin-top: -60px; position: relative; z-index: 10; padding-bottom: 40px; }
margin-bottom: -40px; /* <--- ADD THIS LINE to remove the white gap */
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat-box { background: white; padding: 30px; border-radius: 10px; box-shadow: var(--shadow-float); display: flex; align-items: center; gap: 20px; border-bottom: 4px solid var(--accent); transition: 0.3s; }
.stat-box:hover { transform: translateY(-10px); }
.stat-box i { font-size: 2.5rem; color: var(--primary); }
.stat-info h3 { font-size: 2rem; font-weight: 800; color: var(--primary-dark); display: inline-block; }
.stat-info span { font-size: 2rem; color: var(--accent); font-weight: 700; }
.stat-info p { color: var(--text-light); font-size: 0.9rem; font-weight: 600; }

/* --- 6. SPLIT LAYOUT (CEO) --- */
.split-layout { display: flex; gap: 60px; align-items: center; }
.image-col { flex: 1; position: relative; }
.img-frame { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); }
.img-frame img { width: 100%; display: block; }
.exp-badge { position: absolute; bottom: 30px; right: 30px; background: white; padding: 20px; border-radius: 15px; box-shadow: var(--shadow-float); display: flex; align-items: center; gap: 15px; }
.exp-badge .years { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.exp-badge .text { font-size: 0.9rem; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }
.text-col { flex: 1; }
.lead-text { font-size: 1.1rem; color: #555; margin-bottom: 25px; }
.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 30px 0; }
.feat-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--primary); }
.signature-area { display: flex; align-items: center; gap: 20px; margin-top: 30px; border-top: 1px solid #eee; padding-top: 20px; }
.signature { height: 50px; opacity: 0.6; }
/* ... existing code in Section 6 ... */

.signature-area { display: flex; align-items: center; gap: 20px; margin-top: 30px; border-top: 1px solid #eee; padding-top: 20px; }
.signature { height: 50px; opacity: 0.6; }

/* ======================================================= */
/* --- CEO SECTION DARK THEME --- */
.ceo-section {
    background-color: var(--primary); /* Deep Medical Blue */
    color: white;
    position: relative;
    z-index: 1;
}

/* Override Text Colors for Dark Background */
.ceo-section .section-title {
    color: white !important;
}

.ceo-section .lead-text {
    color: rgba(255, 255, 255, 0.95);
}

.ceo-section p {
    color: rgba(255, 255, 255, 0.85);
}

.ceo-section .sub-heading {
    color: var(--accent); /* Keep the bright teal/cyan accent */
}

/* Feature List Updates */
.ceo-section .features-list .feat-item {
    color: white;
}

.ceo-section .features-list .feat-item i {
    color: var(--accent); /* Cyan checkmarks */
}

/* Signature Area Updates */
.ceo-section .signature-area {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.ceo-section .signature-area h4 {
    color: white;
    margin: 0;
}

.ceo-section .signature-area small {
    color: var(--accent);
    font-weight: 600;
}

.ceo-section .signature {
    filter: invert(1); /* Inverts black signature to white */
    opacity: 0.8;
}

/* Badge (Keep White for Contrast) */
.ceo-section .exp-badge {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); /* Stronger shadow */
}
/* ======================================================= */

/* --- 7. DEPARTMENTS & DOCTORS --- */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 50px; }
/* --- 7. DEPARTMENTS & DOCTORS --- */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 50px; }
.dept-card { background: white; padding: 40px 30px; border-radius: 15px; box-shadow: var(--shadow-card); transition: 0.4s; border: 1px solid #eee; position: relative; overflow: hidden; }
.dept-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.dept-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: 0.4s; }
.dept-card:hover::before { transform: scaleX(1); }
.icon-box { width: 60px; height: 60px; background: rgba(50, 130, 184, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.5rem; margin-bottom: 20px; transition: 0.4s; }
.dept-card:hover .icon-box { background: var(--primary); color: white; }
.arrow-link { color: var(--primary); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; margin-top: 15px; }
.arrow-link:hover { gap: 10px; color: var(--accent); }

.header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
.doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.doc-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-card); transition: 0.3s; }
.doc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-float); }
.doc-img-wrap { height: 280px; overflow: hidden; position: relative; }
.doc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; object-position: top; }
.doc-card:hover .doc-img-wrap img { transform: scale(1.05); }
.doc-info { padding: 25px; }
.doc-dept { color: var(--accent); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.doc-name { font-size: 1.3rem; font-weight: 700; color: var(--primary-dark); margin: 5px 0; }
.doc-actions { margin-top: 20px; display: flex; gap: 10px; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; flex: 1; text-align: center; }

/* --- 8. GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 15px; margin-top: 40px; }
.g-item { border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.g-item:hover img { transform: scale(1.1); filter: brightness(0.8); }
.g-item.big { grid-column: span 2; grid-row: span 2; }

/* --- 9. BLOG & FAQ --- */
.info-grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.col-title { font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 25px; border-left: 4px solid var(--accent); padding-left: 15px; }
.blog-mini { display: flex; gap: 20px; margin-bottom: 25px; align-items: center; }
.blog-mini img { width: 100px; height: 80px; object-fit: cover; border-radius: 8px; }
.b-text h4 { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); line-height: 1.3; margin-bottom: 5px; }
.b-text .date { font-size: 0.8rem; color: #888; }
.b-text a { font-size: 0.9rem; color: var(--primary); font-weight: 600; }

.faq-item { border-bottom: 1px solid #eee; margin-bottom: 15px; }
.faq-header { padding: 15px 0; cursor: pointer; font-weight: 700; color: var(--primary-dark); display: flex; justify-content: space-between; align-items: center; }
.faq-header i { color: var(--accent); transition: 0.3s; }
.faq-body { max-height: 0; overflow: hidden; transition: 0.3s; color: #666; font-size: 0.95rem; }
.faq-item.active .faq-body { max-height: 100px; padding-bottom: 15px; }
.faq-item.active .faq-header i { transform: rotate(45deg); }

/* --- 10. MODALS --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-overlay.open { display: flex; animation: fadeIn 0.3s; }
.modal-box { background: white; width: 95%; max-width: 500px; padding: 40px; border-radius: 15px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.2); animation: slideIn 0.4s; }
.modal-box.large-box { max-width: 800px; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; background: none; border: none; cursor: pointer; color: #aaa; transition: 0.3s; }
.close-modal:hover { color: var(--alert); }
.input-wrap { margin-bottom: 15px; }
.input-wrap label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--primary-dark); }
.input-wrap input, .input-wrap select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; outline: none; transition: 0.3s; font-size: 1rem; }
.input-wrap input:focus, .input-wrap select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1); }
.slots-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.slot { padding: 10px; text-align: center; border: 1px solid #ddd; border-radius: 5px; cursor: pointer; font-size: 0.9rem; transition: 0.2s; }
.slot.free:hover { border-color: var(--primary); background: #eef6fc; color: var(--primary); }
.slot.selected { background: var(--primary); color: white; border-color: var(--primary); }
.slot.taken { background: #f8f8f8; color: #ccc; cursor: not-allowed; }
.full-btn { width: 100%; justify-content: center; margin-top: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.profile-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; }
.p-img { width: 100%; height: 300px; object-fit: cover; border-radius: 10px; }
.schedule-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 0.9rem; }
.schedule-table th { background: var(--bg-light); text-align: left; padding: 10px; }
.schedule-table td { border-bottom: 1px solid #eee; padding: 10px; }

/* --- WHATSAPP FLOATING BUTTON & TOOLTIP --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Tooltip Text Styling */
.whatsapp-float .tooltip {
    position: absolute;
    right: 70px;             /* Push it to the left of the button */
    top: 50%;
    transform: translateY(-50%);
    background: white;       /* White background for the text */
    color: #333;             /* Dark text color */
    padding: 8px 15px;
    border-radius: 50px;     /* Rounded pill shape */
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;     /* Prevent text from breaking lines */
    opacity: 0;              /* Hidden by default */
    visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    pointer-events: none;    /* Ensures mouse doesn't get stuck on the text */
}

/* Show Tooltip on Hover */
.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;             /* Slight slide-in animation */
}
/* Loader */
#loader { position: fixed; inset: 0; background: white; z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s; }
.spinner-box { position: relative; width: 150px; height: 150px; display: flex; justify-content: center; align-items: center; }
.pulse-container { width: 120px; height: 120px; position: absolute; }
.pulse-bubble { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); position: absolute; opacity: 0.7; animation: pulse 3s ease infinite; }
.pulse-bubble-1 { top: 50%; left: 0; animation-delay: 0s; }
.pulse-bubble-2 { top: 50%; right: 0; animation-delay: 1s; }
.pulse-bubble-3 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 2s; }
.loader-logo { width: 60px; z-index: 2; position: relative; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* FOOTER */
footer { background: #1a1a1a; color: #bbb; padding-top: 70px; }
.footer-top { padding-bottom: 50px; border-bottom: 1px solid #333; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 40px; }
.f-logo { color: white; margin-bottom: 20px; font-weight: 800; letter-spacing: 1px; }
.f-col h3 { color: white; margin-bottom: 25px; font-size: 1.1rem; }
.f-col ul li { margin-bottom: 12px; }
.f-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.contact-list li { display: flex; gap: 10px; align-items: center; font-size: 0.95rem; }
.newsletter-form { display: flex; }
.newsletter-form input { padding: 12px; border: none; outline: none; border-radius: 4px 0 0 4px; width: 100%; background: #333; color: white; }
.newsletter-form button { padding: 12px 15px; background: var(--accent); border: none; border-radius: 0 4px 4px 0; color: white; cursor: pointer; }
.footer-bottom { padding: 25px 0; text-align: center; font-size: 0.9rem; background: #111; }

/* --- PAGE HEADERS (For New Pages) --- */
.page-header {
    background-color: var(--primary-dark);
    position: relative;
    margin-bottom: 50px;
}
/* Ensure navbar works on pages without the big slider */
body:not(:has(.hero-section)) #navbar {
    position: sticky;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* =========================================
   RESPONSIVE & MOBILE OPTIMIZATIONS
   (Paste this at the very bottom of style.css)
   ========================================= */

/* --- Tablet / Small Laptop (1024px) --- */
@media (max-width: 1024px) {
    .container { width: 92%; } /* slightly wider on tablets */
    .text-box h1 { font-size: 3rem; }
    
    /* Show Hamburger, Hide Desktop Nav */
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    .btn-emergency { display: none; } /* Hide large emergency btn to save space */
    
    /* Adjust Grids */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* --- Mobile Landscape / Large Phones (768px) --- */
@media (max-width: 768px) {
    /* Global Spacing Reduction */
    .section { padding: 50px 0; }
    
    /* Hero/Slider Fixes */
    .hero-section { height: auto; min-height: 500px; padding-top: 80px; }
    .text-box { text-align: center; margin: 0 auto; }
    .text-box h1 { font-size: 2.5rem; }
    .text-box p { font-size: 1rem; margin-bottom: 20px; }
    .slider-nav { bottom: 20px; }
    
    /* Stats Floater */
    .stats-floater { margin-top: 0; padding: 30px 0; background: var(--bg-light); }
    .stats-grid { grid-template-columns: 1fr; gap: 15px; }
    .stat-box { padding: 20px; justify-content: center; }

    /* Split Layouts (CEO Message, Dept Page) */
    .split-layout { flex-direction: column; gap: 30px; }
    .image-col, .text-col { width: 100%; }
    .img-frame { max-height: 350px; }
    .signature-area { justify-content: center; }

    /* Header Adjustments */
    .brand-text { display: block; } /* Keep brand name visible */
    .brand-text h2 { font-size: 1.2rem; }
    .header-actions { gap: 10px; }
    .btn-primary { padding: 10px 20px; font-size: 0.9rem; }
    
    /* Grid Stacking */
    .info-grid-layout { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .p-img { height: auto; max-height: 300px; width: 100%; }
}

/* --- Mobile Portrait / Small Phones (480px) --- */
@media (max-width: 480px) {
    /* Typography Scaling */
    html { font-size: 15px; } /* Slightly smaller base font */
    .section-title { font-size: 2rem; }
    .text-box h1 { font-size: 2rem; }
    
    /* Header/Nav */
    .brand-text { display: none; } /* Hide text only on tiny screens */
    .brand-logo img { height: 40px; }
    .header-actions .btn-primary { display: none; } /* Hide 'Book Now' in header on tiny screens (It's in sidebar) */
    
    /* Top Bar */
    .top-bar { display: none; } /* Hide top bar to save vertical space */

    /* Grids to Single Column */
    .dept-grid, .doctors-grid, .gallery-grid { grid-template-columns: 1fr; }
    .g-item.big { grid-column: span 1; grid-row: span 1; } /* Reset big gallery item */
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { border-radius: 4px; margin-bottom: 10px; width: 100%; }
    .newsletter-form button { border-radius: 4px; width: 100%; }
    .contact-list li { justify-content: center; }

    /* Modals */
    .modal-box { padding: 25px 20px; width: 90%; margin: 20px auto; }
    .slots-container { grid-template-columns: repeat(2, 1fr); } /* 2 cols instead of 3 */
}

/* --- Fix for iOS Input Zoom --- */
@media screen and (-webkit-min-device-pixel-ratio:0) { 
    select,
    textarea,
    input { font-size: 16px !important; }
}
/* --- Mobile Landscape / Large Phones (768px) --- */
@media (max-width: 768px) {
    /* 1. SLIDER FIX: Make it shorter and text smaller */
    .hero-section {
        height: 60vh; /* Reduced from 85vh */
        min-height: 400px; /* Reduced from 600px */
    }
    
    .slide-bg {
        background-position: center center; /* Ensure main subject is centered */
    }

    .text-box { 
        text-align: center; 
        width: 100%; 
        padding: 0 15px; /* Add breathing room on sides */
    }

    .text-box h1 { 
        font-size: 2.2rem; /* Much smaller than desktop */
        line-height: 1.2;
    }

    .text-box p { 
        font-size: 0.95rem; 
        margin-bottom: 20px; 
        display: none; /* OPTIONAL: Hide paragraph on very small screens to fit the image better */
    }
    
    /* Ensure buttons stack nicely */
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .tag { margin-bottom: 10px; }

    /* 2. GENERAL ADJUSTMENTS */
    .section { padding: 50px 0; }
    .stats-floater { margin-top: 0; padding: 30px 0; }
    .stats-grid { grid-template-columns: 1fr; gap: 15px; }
    .split-layout { flex-direction: column; gap: 30px; }
    .image-col, .text-col { width: 100%; }
}