/* ============================================================
   Ora Dental Clinic - Premium CSS
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    --primary: #1B2D5B;
    --primary-dark: #0F1D3D;
    --primary-light: #EEF1F8;
    --secondary: #C41E2A;
    --secondary-dark: #9B1620;
    --secondary-light: #FDE8EA;
    --accent: #C41E2A;
    --white: #FFFFFF;
    --light: #F7F8FA;
    --light2: #EFF1F5;
    --text: #1B2D5B;
    --text-muted: #5A6A85;
    --text-light: #8D9AB0;
    --border: #E2E6EE;
    --shadow-sm: 0 2px 8px rgba(27,45,91,0.08);
    --shadow: 0 4px 24px rgba(27,45,91,0.12);
    --shadow-lg: 0 8px 48px rgba(27,45,91,0.16);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --transition: all 0.3s ease;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-h: 80px;
    --topbar-h: 40px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* primary overflow lock */
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: clip; /* clip allows position:sticky to work, hidden breaks it */
    max-width: 100vw;
    position: relative;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* --- Utility Classes --- */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 60px 0; }
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.bg-light-custom { background: var(--light) !important; }

/* Section Header */
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-title span { color: var(--primary); }
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-divider {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 16px auto 0;
}

/* Buttons */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(27,45,91,0.3);
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(27,45,91,0.4);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    padding: 13px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-appointment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #02295b, #b51472);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(196,30,42,0.35);
}
.btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(196,30,42,0.5);
    color: var(--white);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: var(--primary-dark);
    height: var(--topbar-h);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
}
.topbar.topbar-hidden {
    display: none;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 50px;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 50px;
}
.topbar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 50px;
}
.emergency-link {
    color: #E8424D;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulse-text 2s infinite;
}
@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.topbar-social {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-social a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}
.topbar-social a:hover { color: var(--white); }

/* Google Translate Widget — topbar clean style */
#google_translate_element {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}
#google_translate_element .goog-te-gadget {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0 !important;
}
#google_translate_element .goog-te-gadget > span {
    display: none !important;
}
#google_translate_element select.goog-te-combo {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    border-radius: 20px !important;
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    cursor: pointer !important;
    outline: none !important;
    height: auto !important;
    line-height: 1.4 !important;
}
#google_translate_element select.goog-te-combo option {
    background: #0b3d91 !important;
    color: #fff !important;
}
#google_translate_element select.goog-te-combo:hover {
    border-color: rgba(255,255,255,0.9) !important;
    background: rgba(255,255,255,0.1) !important;
}
/* Hide Google top banner + X close button */
.goog-te-banner-frame { display: none !important; }
.skiptranslate iframe { display: none !important; }
/* Hide the X close button Google injects */
#goog-gt-tt, .goog-te-balloon-frame,
body > .skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-logo-link, .goog-te-gadget img { display: none !important; }

/* Topbar Translate Button */
.topbar-translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.topbar-translate-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.8);
    color: var(--white);
}
.topbar-translate-btn i { font-size: 0.8rem; }

/* ============================================================
   HEADER
   ============================================================ */
.sticky-header-wrap {
    display: contents;
}
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: height 0.4s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.4s cubic-bezier(0.4,0,0.2,1),
                background 0.4s cubic-bezier(0.4,0,0.2,1),
                backdrop-filter 0.4s ease;
    height: var(--header-h);
    will-change: height;
}
.main-header.scrolled {
    height: calc(var(--header-h) - 20px);
    box-shadow: 0 4px 24px rgba(11,108,186,0.13);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.main-header.scrolled .navbar-custom {
    height: calc(var(--header-h) - 20px);
    transition: height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.main-header.scrolled .logo-img {
    height: 52px;
    transition: height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.logo-img {
    transition: height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.navbar-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 16px;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img { height: 72px; width: auto; object-fit: contain; }
.logo-text-fallback {
    display: none;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}
.logo-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}
.logo-tagline {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Desktop Nav */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu > li { position: relative; }
.nav-menu .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: var(--secondary);
    background: var(--secondary-light);
}
.nav-menu .nav-link i { font-size: 0.7rem; transition: var(--transition); }
.nav-menu .has-dropdown:hover .nav-link i { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 240px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    list-style: none;
}
.has-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu-custom li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text);
    transition: var(--transition);
}
.dropdown-menu-custom li a:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-menu-custom li a i { color: var(--primary); width: 18px; }
.dropdown-menu-custom .dropdown-all { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.dropdown-menu-custom .dropdown-all a { color: var(--primary); font-weight: 600; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-call {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.btn-call:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.btn-call i { color: var(--primary); }
.btn-whatsapp {
    width: 40px; height: 40px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}
.btn-whatsapp:hover { transform: scale(1.1); color: var(--white); box-shadow: 0 4px 16px rgba(37,211,102,0.4); }

/* Mobile Translate Button */
.btn-translate-mobile {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    padding: 0;
}
.btn-translate-mobile:hover,
.btn-translate-mobile.active {
    background: var(--primary);
    color: var(--white);
}

/* Mobile translate dropdown popup */
.mobile-translate-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 60px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 12px 16px;
    z-index: 2000;
    min-width: 160px;
    border: 1px solid var(--border);
}
.mobile-translate-popup.open { display: block; }
.mobile-translate-popup p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mobile-translate-popup select.goog-te-combo {
    width: 100%;
    background: var(--light) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    color: var(--text) !important;
    font-size: 0.85rem !important;
    padding: 6px 10px !important;
    cursor: pointer !important;
    outline: none !important;
    display: block !important;
}
.mobile-translate-popup .goog-te-gadget { font-size: 0 !important; }
.mobile-translate-popup .goog-te-gadget > span { display: none !important; }
.mobile-translate-popup img { display: none !important; }

/* ============================================================
   FOR DOCTORS — Referral Button & Modal
   ============================================================ */
.btn-doctor-referral {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 20px;
    border: 2px solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}
.btn-doctor-referral:hover {
    background: var(--secondary);
    color: var(--white);
}
.btn-doctor-referral i { font-size: 0.9rem; }

/* Modal Overlay */
.referral-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}
.referral-modal-overlay.open { display: flex; }

/* Modal Box */
.referral-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    animation: modalSlideIn 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes modalSlideIn {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Modal Header */
.referral-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    color: var(--white);
}
.referral-modal-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.referral-modal-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: var(--white);
}
.referral-modal-sub {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 2px 0 0;
}
.referral-modal-close {
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.referral-modal-close:hover { background: rgba(255,255,255,0.3); }

/* Modal Body */
.referral-modal-body { padding: 24px; }
.referral-section-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.referral-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.referral-field { display: flex; flex-direction: column; gap: 5px; }
.referral-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}
.referral-field label span { color: var(--secondary); }
.referral-field input,
.referral-field select,
.referral-modal-body textarea {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 0.88rem;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    width: 100%;
    outline: none;
}
.referral-field input:focus,
.referral-field select:focus,
.referral-modal-body textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.referral-modal-body textarea { resize: vertical; width: 100%; }

/* Scan Type Grid */
.referral-scan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.scan-option { cursor: pointer; }
.scan-option input { display: none; }
.scan-option-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    background: var(--light);
}
.scan-option-inner i { color: var(--primary); font-size: 1rem; }
.scan-option input:checked + .scan-option-inner {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}
.scan-option:hover .scan-option-inner {
    border-color: var(--primary);
}

/* Modal Footer */
.referral-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.btn-ref-cancel {
    padding: 9px 20px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-ref-cancel:hover { background: var(--light); }
.btn-ref-submit {
    padding: 9px 24px;
    border-radius: 20px;
    border: none;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.btn-ref-submit:hover { background: var(--primary-dark); }
.btn-ref-submit:disabled { opacity: 0.6; cursor: wait; }

/* Responsive */
@media (max-width: 575px) {
    .referral-grid { grid-template-columns: 1fr; }
    .referral-scan-grid { grid-template-columns: 1fr; }
    .referral-modal-body { padding: 16px; }
    .btn-ref-text { display: none; }
    .btn-doctor-referral { width: 38px; padding: 0; justify-content: center; border-radius: 50%; }
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 36px;
}
.hamburger span {
    display: block;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1099;
    backdrop-filter: blur(4px);
}
.mobile-overlay.active { display: block; }
.mobile-nav {
    position: fixed;
    top: 0; right: -320px;
    width: 300px; height: 100%;
    background: var(--white);
    z-index: 1100;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}
.mobile-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-heading);
    font-size: 1rem; font-weight: 800;
    color: var(--primary);
}
.mobile-logo i { font-size: 1.3rem; }
.mobile-close {
    background: var(--light);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}
.mobile-close:hover { background: var(--primary); color: var(--white); }
.mobile-nav-menu { flex: 1; padding: 12px 12px; }
.mobile-nav-menu li a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text);
    font-size: 0.92rem;
    transition: var(--transition);
}
.mobile-nav-menu li a:hover,
.mobile-nav-menu li a.active { background: var(--primary-light); color: var(--primary); }
.mobile-nav-menu li a i { width: 20px; color: var(--primary); }
.mobile-arrow { margin-left: auto; }
.mobile-submenu { display: none; padding-left: 16px; }
.mobile-submenu.open { display: block; }
.mobile-submenu a { font-size: 0.85rem !important; }
.mobile-nav-footer { padding: 16px 20px 24px; border-top: 1px solid var(--border); }
.mobile-contact { display: flex; gap: 12px; margin-top: 12px; }
.mobile-contact a {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px;
    border-radius: 10px;
    background: var(--light);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}
.mobile-contact a:first-child:hover { background: var(--primary); color: var(--white); }
.mobile-contact a:last-child:hover { background: #25D366; color: var(--white); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--header-h) - var(--topbar-h));
    min-height: 620px;
    overflow: hidden;
    background: var(--primary-dark);
}
.hero-swiper { width: 100%; height: 100%; }

/* Gradient background fallback */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #2A4080 100%);
}

.hero-slide {
    position: relative;
    min-height: calc(100vh - var(--header-h) - var(--topbar-h));
    min-height: 620px;
    display: flex;
    align-items: center;
    /* Ensure each slide is fully opaque and isolated */
    background: var(--primary-dark);
}
/* min-vh helper for row inside container */
.min-vh-hero {
    min-height: calc(100vh - var(--header-h) - var(--topbar-h));
    min-height: 620px;
    padding: 60px 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: transform 6s ease;
    /* Prevent bleed-through during fade */
    will-change: opacity;
}
/* Ken Burns effect on active slide only */
.swiper-slide-active .hero-bg {
    transform: scale(1.06);
}
/* Non-active slides â€” let Swiper handle visibility */
.hero-swiper .swiper-slide:not(.swiper-slide-active) {
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15,29,61,0.92) 0%,
        rgba(27,45,91,0.78) 45%,
        rgba(27,45,91,0.55) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}
.hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}
@keyframes blink { 0%, 100% { opacity:1; } 50% { opacity:0.3; } }

.hero-title {
    font-size: clamp(2rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 14px;
    animation: slideUp 0.8s ease both;
}
.hero-title span { color: #FFFFFF; display: block; }

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    font-weight: 500;
}
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 36px;
    line-height: 1.75;
    animation: slideUp 0.8s 0.15s ease both;
}
@keyframes slideUp {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: slideUp 0.8s 0.25s ease both;
}
.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    animation: slideUp 0.8s 0.35s ease both;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* Separator between stats */
.hero-stats .hero-stat:not(:last-child) {
    padding-right: 32px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

/* Hero image card */
.hero-image-wrap { position: relative; z-index: 2; }
.hero-image-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* Floating badges */
.hero-floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
.hero-floating-card.card-1 { bottom:50px; left:-20px; animation-delay:0s; }
.hero-floating-card.card-2 { top:36px;   right:-20px; animation-delay:1.5s; }
.floating-icon {
    width:40px; height:40px;
    border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    font-size:1.1rem; flex-shrink:0;
}
.floating-icon.blue  { background:var(--primary-light); color:var(--primary); }
.floating-icon.green { background:#DCFCE7; color:#16A34A; }
.floating-text strong { display:block; font-size:.88rem; font-weight:700; color:var(--text); }
.floating-text span   { font-size:.75rem; color:var(--text-muted); }

/* Navigation controls */
.hero-swiper-controls {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    white-space: nowrap;
}
.hero-prev, .hero-next {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: var(--transition);
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
    vertical-align: middle;
}
.hero-prev:hover, .hero-next:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: scale(1.08);
}
.hero-pagination {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    height: 52px; /* match arrow height so vertical centering works */
}
.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transition: var(--transition);
    opacity: 1;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}
.hero-pagination .swiper-pagination-bullet-active {
    background: var(--white);
    width: 30px;
    height: 10px;
    border-radius: 5px;
}

/* Slide counter */
.hero-slide-counter {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
}
.hero-current { font-size: 1.6rem; color: var(--white); line-height:1; }
.hero-sep     { font-size: 1rem; color: rgba(255,255,255,0.4); }
.hero-total   { font-size: 1rem; color: rgba(255,255,255,0.6); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--white); }
.about-img-wrap { position: relative; }
.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 480px; object-fit: cover; }
.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    min-width: 130px;
}
.about-experience-badge .exp-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}
.about-experience-badge .exp-text { font-size: 0.8rem; opacity: 0.9; }
.about-content { padding-left: 20px; }
.about-features { margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.about-feature-item { display: flex; align-items: flex-start; gap: 14px; }
.about-feature-icon {
    width: 44px; height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.about-feature-text strong { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.about-feature-text p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 56px 0;
}
.stat-card { text-align: center; padding: 24px 16px; }
.stat-icon {
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    margin: 0 auto 16px;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.2);
    height: 60px;
    align-self: center;
}

/* ============================================================
   DEPARTMENTS SECTION
   ============================================================ */
.dept-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.dept-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.dept-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}
.dept-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.dept-card:hover .dept-card-img img { transform: scale(1.08); }
.dept-card-icon {
    position: absolute;
    top: 16px; right: 16px;
    width: 48px; height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.dept-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.dept-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    transition: var(--transition);
}
.dept-card:hover .dept-card-title { color: var(--primary); }
.dept-card-desc { font-size: 0.88rem; color: var(--text-muted); flex: 1; margin-bottom: 20px; }
.dept-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}
.dept-card-link:hover { gap: 10px; color: var(--primary-dark); }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section { background: var(--light); }
.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
    width: 60px; height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--primary); color: var(--white); }
.why-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.why-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   DOCTORS SECTION
   ============================================================ */
.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.doctor-card-img { position: relative; overflow: hidden; height: 280px; }
.doctor-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.doctor-card:hover .doctor-card-img img { transform: scale(1.05); }
.doctor-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8,79,138,0.85) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.doctor-card:hover .doctor-card-overlay { opacity: 1; }
.doctor-social {
    display: flex; gap: 8px;
}
.doctor-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
    transition: var(--transition);
}
.doctor-social a:hover { background: var(--white); color: var(--primary); }
.doctor-card-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}
.doctor-card-body { padding: 22px; }
.doctor-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.doctor-spec { color: var(--primary); font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; }
.doctor-qual { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.doctor-exp {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; color: var(--text-muted);
    margin-bottom: 16px;
}
.doctor-exp i { color: var(--accent); }
.doctor-actions { display: flex; gap: 8px; }
.btn-sm-outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}
.btn-sm-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm-primary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--white);
    border: 1.5px solid var(--primary);
    transition: var(--transition);
    cursor: pointer;
}
.btn-sm-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--primary-dark); }
.testimonials-section .section-title { color: var(--white); }
.testimonials-section .section-subtitle { color: rgba(255,255,255,0.7); }
.testimonials-section .section-badge { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
.testimonial-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
    transition: var(--transition);
}
.testimonial-card:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.testimonial-stars i { font-size: 0.9rem; color: #FCD34D; }
.testimonial-text { font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.75; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-avatar-placeholder {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: var(--white); font-size: 0.95rem; }
.testimonial-treatment { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.testimonial-quote {
    font-size: 3rem;
    line-height: 1;
    color: rgba(255,255,255,0.1);
    font-family: Georgia, serif;
    position: absolute;
    top: 16px; right: 24px;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(11,108,186,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--white); font-size: 1.5rem; }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; justify-content: center; }
.gallery-filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.gallery-filter-btn:hover, .gallery-filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Gallery Lightbox */
.lightbox-modal .modal-content { background: rgba(0,0,0,0.95); border: none; }
.lightbox-modal .modal-body { padding: 0; }
.lightbox-modal img { width: 100%; max-height: 85vh; object-fit: contain; }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.blog-card-img { overflow: hidden; height: 220px; position: relative; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-category-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; font-size: 0.8rem; color: var(--text-muted); }
.blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-meta i { color: var(--primary); }
.blog-title {
    font-size: 1rem; font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.45;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card:hover .blog-title { color: var(--primary); }
.blog-excerpt { font-size: 0.88rem; color: var(--text-muted); flex: 1; margin-bottom: 20px; }
.blog-read-more {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600; font-size: 0.88rem;
    transition: var(--transition);
}
.blog-read-more:hover { gap: 10px; color: var(--primary-dark); }

/* ============================================================
   APPOINTMENT SECTION
   ============================================================ */
.appointment-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2A4080 100%);
    position: relative;
    overflow: hidden;
}
.appointment-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.appointment-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.form-label-custom { font-weight: 600; font-size: 0.88rem; color: var(--text); margin-bottom: 6px; }
.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}
.form-control-custom:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-control-custom::placeholder { color: var(--text-light); }
select.form-control-custom { cursor: pointer; }

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer { background: #0A1629; }
.footer-top { padding: 72px 0 48px; }
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-logo i { color: var(--secondary); font-size: 1.4rem; }
.footer-about { font-size: 0.88rem; color: rgb(255, 255, 255); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.footer-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 2px; background: var(--secondary); border-radius: 1px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.88rem; color: rgb(255, 255, 255); display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-links i { font-size: 0.7rem; color: var(--secondary); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact i { color: var(--secondary); font-size: 0.95rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact span, .footer-contact a { font-size: 0.88rem; color: rgb(255, 255, 255); line-height: 1.5; transition: var(--transition); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.85rem; color: rgb(255, 255, 255); margin: 0; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.85rem; color: rgb(255, 255, 255); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 52px; height: 52px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.15) translateY(-2px); color: var(--white); box-shadow: 0 8px 32px rgba(37,211,102,0.5); }

/* Scroll Top */
.scroll-top-btn {
    position: fixed;
    bottom: 84px; right: 24px;
    width: 44px; height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center; justify-content: center;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: var(--transition);
}
.scroll-top-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.scroll-top-btn.visible { display: flex; }

/* ============================================================
   PAGE SPECIFIC: CONTACT
   ============================================================ */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}
.contact-info-card:hover { box-shadow: var(--shadow); }
.contact-info-icon {
    width: 52px; height: 52px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}
.contact-info-title { font-weight: 700; margin-bottom: 4px; font-size: 0.95rem; }
.contact-info-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.contact-info-text a { color: var(--text-muted); transition: var(--transition); }
.contact-info-text a:hover { color: var(--primary); }
.map-container { border-radius: var(--radius-lg); overflow: hidden; }
.map-container iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ============================================================
   PAGE SPECIFIC: BLOG DETAIL
   ============================================================ */
.blog-content h2 { font-size: 1.5rem; margin: 28px 0 14px; color: var(--text); }
.blog-content h3 { font-size: 1.2rem; margin: 22px 0 12px; color: var(--text); }
.blog-content p { margin-bottom: 18px; color: #374151; line-height: 1.8; }
.blog-content ul, .blog-content ol { margin: 0 0 18px 20px; }
.blog-content li { margin-bottom: 6px; color: #374151; }
.blog-content img { border-radius: var(--radius); margin: 20px 0; }
.blog-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 20px 0;
    font-style: italic;
    color: var(--primary-dark);
}

/* ============================================================
   PAGE HERO BANNER
   ============================================================ */
.page-hero {
    background: linear-gradient(105deg, var(--primary-dark), var(--primary));
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.page-hero-title { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero-subtitle { color: rgba(255,255,255,0.75); font-size: 1rem; }
.breadcrumb-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.breadcrumb-custom a { color: rgba(255,255,255,0.7); font-size: 0.85rem; transition: var(--transition); }
.breadcrumb-custom a:hover { color: var(--white); }
.breadcrumb-custom span { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.breadcrumb-custom .active { color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 600; }

/* ============================================================
   APPOINTMENT PAGE
   ============================================================ */
.appointment-info-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.appointment-info-item:last-child { border-bottom: none; }
.appt-icon {
    width: 46px; height: 46px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.appt-info-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 3px; }
.appt-info-text { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   ADMIN PANEL STYLES
   ============================================================ */
.admin-body {
    font-family: var(--font-body);
    background: #F0F4F8;
    color: var(--text);
}
.admin-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: #0A1629;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
}
.sidebar-brand-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}
.sidebar-brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; color: var(--white); }
.sidebar-brand-sub { font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-nav-group { padding: 0 12px; margin-bottom: 4px; }
.sidebar-nav-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); padding: 8px 12px 4px; }
.sidebar-nav-item a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}
.sidebar-nav-item a:hover, .sidebar-nav-item a.active {
    background: rgba(196,30,42,0.15);
    color: var(--white);
}
.sidebar-nav-item a i { width: 18px; font-size: 1rem; }
.sidebar-has-submenu .sidebar-submenu {
    display: none;
    padding: 4px 0 4px 30px;
}
.sidebar-has-submenu.open .sidebar-submenu { display: block; }
.sidebar-submenu a { padding: 7px 12px; font-size: 0.84rem; }

/* Admin Topbar */
.admin-topbar {
    position: fixed;
    top: 0; left: 260px;
    right: 0;
    width: calc(100% - 260px);
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 24px;
    z-index: 99;
    gap: 16px;
}
.admin-topbar-left { flex: 1; display: flex; align-items: center; gap: 12px; }
.admin-page-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-topbar-btn {
    width: 36px; height: 36px;
    background: var(--light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    border: none; cursor: pointer;
    transition: var(--transition);
}
.admin-topbar-btn:hover { background: var(--primary-light); color: var(--primary); }
.admin-user { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.admin-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
}
.admin-name { font-weight: 600; font-size: 0.88rem; }

/* Admin Content */
.admin-content {
    margin-left: 260px;
    padding-top: 64px;
    min-height: 100vh;
    width: calc(100% - 260px);
}
.admin-content-inner {
    padding: 28px;
    width: 100%;
}

/* Dashboard Cards */
.dash-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
}
.dash-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dash-card-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.dash-card-icon.blue { background: #EFF6FF; color: #2563EB; }
.dash-card-icon.green { background: #F0FDF4; color: #16A34A; }
.dash-card-icon.orange { background: #FFF7ED; color: #EA580C; }
.dash-card-icon.purple { background: #FAF5FF; color: #7C3AED; }
.dash-card-icon.teal { background: #F0FDFA; color: #0D9488; }
.dash-card-icon.rose { background: #FFF1F2; color: #E11D48; }
.dash-card-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.dash-card-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* Admin Table */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--light); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--light); }
.badge-status { padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-confirmed { background: #D1FAE5; color: #065F46; }
.badge-completed { background: #DBEAFE; color: #1E40AF; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }
.badge-active { background: #D1FAE5; color: #065F46; }
.badge-inactive { background: #FEE2E2; color: #991B1B; }
.badge-published { background: #D1FAE5; color: #065F46; }
.badge-draft { background: #F3F4F6; color: #6B7280; }
.table-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.btn-table-edit, .btn-table-delete, .btn-table-view {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; border-radius: 6px;
    font-size: 0.78rem; font-weight: 600; border: none; cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-table-edit { background: #EFF6FF; color: #2563EB; }
.btn-table-edit:hover { background: #2563EB; color: var(--white); }
.btn-table-delete { background: #FFF1F2; color: #E11D48; }
.btn-table-delete:hover { background: #E11D48; color: var(--white); }
.btn-table-view { background: #F0FDF4; color: #16A34A; }
.btn-table-view:hover { background: #16A34A; color: var(--white); }

/* Admin Card */
.admin-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.admin-card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin: 0; }
.admin-card-body { padding: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .nav-menu .nav-link { padding: 8px 10px; font-size: 0.88rem; }
}

@media (max-width: 991px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .hero-image-wrap { display: none; }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .about-content { padding-left: 0; margin-top: 32px; }
    .about-experience-badge { right: 10px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-topbar { left: 0; }
    .admin-content { margin-left: 0; }
}

@media (max-width: 767px) {
    :root { --header-h: 64px; }
    .section-pad { padding: 56px 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .topbar { display: none !important; }
    .hero-title { font-size: 1.9rem; }
    .stat-card { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .stat-card:last-child { border-bottom: none; }
    .appointment-form-card { padding: 24px 20px; }
    .admin-content-inner { padding: 16px; }
}

@media (max-width: 575px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
}

/* ============================================================
   ANIMATIONS & MISC
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Image placeholder */
.img-placeholder {
    background: linear-gradient(135deg, var(--light), #E5EAF0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2.5rem;
    width: 100%;
    min-height: 120px;
    /* Stretch to fill parent containers */
    height: 100%;
}

/* Specific placeholder heights matching their containers */
.blog-card-img .img-placeholder   { height: 220px; min-height: 220px; }
.dept-card-img .img-placeholder   { height: 200px; min-height: 200px; }
.doctor-card-img .img-placeholder { height: 280px; min-height: 280px; }
.gallery-item .img-placeholder    { height: 100%; min-height: 150px; }

/* Pagination */
.pagination-custom { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination-custom a, .pagination-custom span {
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.88rem; font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
}
.pagination-custom a:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.pagination-custom .active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Alert messages */
.alert-custom {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-error { background: #FFF1F2; color: #9F1239; border: 1px solid #FECDD3; }

/* Section CTA */
.section-cta { text-align: center; margin-top: 40px; }

/* Rating stars */
.star-rating { color: #FCD34D; }

/* Doctor detail */
.doctor-detail-img { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.doctor-detail-img img { width: 100%; object-fit: cover; }
.doctor-info-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.doctor-info-value { font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* Department detail */
.dept-detail-icon {
    width: 80px; height: 80px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ============================================================
   HERO BACKGROUND FALLBACK
   ============================================================ */
.hero-bg[style*="url('')"],
.hero-bg[style*='url("")'] {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary-dark) 100%) !important;
}

/* ============================================================
   UTILITY â€” visually hidden (accessibility)
   ============================================================ */
.visually-hidden {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0,0,0,0) !important;
    white-space: nowrap !important; border: 0 !important;
}

/* ============================================================
   SWIPER overrides (prevent flash)
   ============================================================ */
.swiper { overflow: hidden; }
.swiper-slide { backface-visibility: hidden; }

/* ============================================================
   FOCUS VISIBLE (keyboard accessibility)
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .main-header, .whatsapp-float, .scroll-top-btn,
    .topbar, .mobile-nav, .mobile-overlay { display: none !important; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
    .hero-section { min-height: auto; padding: 20px 0; }
}

/* ============================================================
   DOCTOR TIMING BADGE
   ============================================================ */
.timing-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--light);
    color: var(--text-muted);
    font-size: .78rem;
    padding: 4px 12px;
    border-radius: 50px;
    margin-top: 6px;
}

/* ============================================================
   APPOINTMENT CONFIRMATION PAGE
   ============================================================ */
.appt-success-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 540px;
    margin: 0 auto;
}
.appt-success-icon {
    width: 80px; height: 80px;
    background: #D1FAE5;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    color: #16A34A;
    margin: 0 auto 20px;
}
.appt-id-box {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 14px 24px;
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: .05em;
    margin: 16px 0;
}

/* ============================================================
   SEARCH HIGHLIGHT
   ============================================================ */
mark {
    background: #FEF9C3;
    color: var(--text);
    padding: 0 2px;
    border-radius: 2px;
}

/* ============================================================
   TABLE RESPONSIVE MOBILE FIX
   ============================================================ */
@media (max-width: 575px) {
    .admin-table th:nth-child(n+4),
    .admin-table td:nth-child(n+4) { display: none; }
    .admin-table th:last-child,
    .admin-table td:last-child { display: table-cell; }
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
    width: 20px; height: 20px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   IMAGE LAZY LOAD FADE IN
   ============================================================ */
img[loading="lazy"] { opacity: 0; transition: opacity .4s ease; }
img[loading="lazy"].loaded { opacity: 1; }

/* ============================================================
   BROKEN / MISSING IMAGE FIX
   Ensure image containers never collapse when src is missing
   ============================================================ */

/* All image wrappers that should have fixed height */
.blog-card-img,
.dept-card-img,
.doctor-card-img,
.gallery-item,
.about-img-main,
.hero-image-card,
.testimonial-avatar,
.doctor-detail-img {
    overflow: hidden;
    position: relative;
    background: var(--light);
}

/* Ensure img tags always fill their containers properly */
.blog-card-img img,
.dept-card-img img,
.doctor-card-img img,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Prevent layout shift when image loads */
    min-height: 1px;
}

/* Blog card image â€” always 220px tall */
.blog-card-img {
    height: 220px;
    min-height: 220px;
}

/* Dept card image â€” always 200px tall */
.dept-card-img {
    height: 200px;
    min-height: 200px;
}

/* Doctor card image â€” always 280px tall */
.doctor-card-img {
    height: 280px;
    min-height: 280px;
}

/* Gallery item â€” aspect ratio maintained */
.gallery-item {
    aspect-ratio: 4/3;
    min-height: 120px;
}

/* Sidebar recent post thumbnails */
.sidebar-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light);
    flex-shrink: 0;
}
.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Featured blog image on detail page */
.blog-featured-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    display: block;
    background: var(--light);
}

/* About section image */
.about-img-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

/* Inline SVG placeholder â€” already has correct dimensions */
img[src*="data:image/svg"] {
    object-fit: cover;
}

/* Swiper gallery items */
.gallery-swiper .swiper-slide img {
    height: 260px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    background: var(--light);
}

/* Table image thumbnails in admin */
.table-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    background: var(--light);
    flex-shrink: 0;
}

/* Prevent image containers from collapsing to 0 height */
[style*="height:220px"] img,
[style*="height:200px"] img,
[style*="height:280px"] img,
[style*="height:260px"] img,
[style*="height:400px"] img,
[style*="height:420px"] img,
[style*="height:480px"] img,
[style*="height:500px"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero responsive overrides now in mobile.css */

/* ============================================================
   HERO INFO CARD (shown when no image uploaded)
   ============================================================ */
.hero-info-card {
    position: relative;
    z-index: 2;
}
.hero-info-inner {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    text-align: center;
}
.hero-info-icon {
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 20px;
}
.hero-info-inner h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}
.hero-info-inner p {
    color: rgba(255,255,255,0.75);
    font-size: .95rem;
    margin-bottom: 24px;
}
.hero-info-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.hero-info-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: .9rem;
}
.hero-info-feature i { color: #4ADE80; font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   HERO SWIPER â€” ensure clean slide isolation
   ============================================================ */
.hero-swiper .swiper-wrapper {
    /* Prevent z-index stacking issues */
    transform-style: flat;
}
.hero-swiper .swiper-slide {
    overflow: hidden;
    /* Each slide has its own solid background */
    background: var(--primary-dark);
}
/* Smooth content fade-in on active slide */
.swiper-slide-active .hero-content {
    animation: heroContentIn 0.7s 0.2s ease both;
}
@keyframes heroContentIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.swiper-slide-active .hero-image-wrap,
.swiper-slide-active .hero-info-card {
    animation: heroImageIn 0.7s 0.35s ease both;
}
@keyframes heroImageIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
/* Ensure non-active slides don't show content */
.hero-swiper .swiper-slide:not(.swiper-slide-active) .hero-content,
.hero-swiper .swiper-slide:not(.swiper-slide-active) .hero-image-wrap,
.hero-swiper .swiper-slide:not(.swiper-slide-active) .hero-info-card {
    opacity: 0;
    transition: opacity 0.3s ease;
}
/* Active slide content fades in */
.hero-swiper .swiper-slide-active .hero-content,
.hero-swiper .swiper-slide-active .hero-image-wrap,
.hero-swiper .swiper-slide-active .hero-info-card {
    opacity: 1;
    transition: opacity 0.5s ease 0.3s;
}


/* ============================================================
   GALLERY SWIPER WRAP
   ============================================================ */
.gallery-swiper-wrap {
    position: relative;
    overflow: hidden;
    padding: 0 52px;
}
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    color: var(--text);
}
.gallery-prev { left: 0; }
.gallery-next { right: 0; }
.gallery-prev:hover, .gallery-next:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================================
   DOCTORS SWIPER CONTROLS
   ============================================================ */
.doctors-swiper-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.swiper-nav-btns { display: flex; gap: 10px; }
.swiper-nav-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    color: var(--text);
    font-size: .9rem;
}
.swiper-nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================================
   TESTIMONIALS CONTROLS
   ============================================================ */
.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}
.testimonials-prev,
.testimonials-next {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.1);
    color: var(--white);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.testimonials-prev:hover,
.testimonials-next:hover {
    background: var(--white);
    color: var(--primary);
}
.testimonials-pagination {
    display: flex; gap: 6px; align-items: center;
}
.testimonials-pagination .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: rgba(255,255,255,.4);
    border-radius: 50%;
    transition: var(--transition);
    opacity: 1; cursor: pointer;
}
.testimonials-pagination .swiper-pagination-bullet-active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

/* ============================================================
   HERO INFO CARD (no-image fallback)
   ============================================================ */
.hero-info-card { position: relative; z-index: 2; }
.hero-info-inner {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    text-align: center;
}
.hero-info-icon {
    width: 72px; height: 72px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--white);
    margin: 0 auto 20px;
}
.hero-info-inner h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 800;
    color: var(--white); margin-bottom: 8px;
}
.hero-info-inner p {
    color: rgba(255,255,255,.75);
    font-size: .95rem; margin-bottom: 24px;
}
.hero-info-features { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.hero-info-feature { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); font-size: .9rem; }
.hero-info-feature i { color: #4ADE80; font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   HERO SLIDE ANIMATIONS
   ============================================================ */
.swiper-slide-active .hero-content {
    animation: heroIn .7s .15s ease both;
}
.swiper-slide-active .hero-image-wrap,
.swiper-slide-active .hero-info-card {
    animation: heroSlideIn .7s .3s ease both;
}
@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideIn {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}
.hero-swiper .swiper-slide:not(.swiper-slide-active) .hero-content,
.hero-swiper .swiper-slide:not(.swiper-slide-active) .hero-image-wrap,
.hero-swiper .swiper-slide:not(.swiper-slide-active) .hero-info-card {
    opacity: 0;
    transition: opacity .3s ease;
}
.hero-swiper .swiper-slide-active .hero-content,
.hero-swiper .swiper-slide-active .hero-image-wrap,
.hero-swiper .swiper-slide-active .hero-info-card {
    opacity: 1;
}

/* ============================================================
   SWIPER BASE — prevent all overflow
   ============================================================ */
.swiper { overflow: hidden !important; }
.swiper-wrapper { transform-style: flat; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}


/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.video-card-featured {
    box-shadow: var(--shadow);
}
.video-card-featured:hover {
    transform: translateY(-6px);
}

/* Responsive 16:9 embed container */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card-body {
    padding: 20px 24px;
    flex: 1;
}
.video-title {
    font-family: var(--font-heading);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}
.video-desc {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Featured single video — larger embed */
.video-card-featured .video-embed {
    padding-bottom: 50%; /* slightly shorter for single wide video */
}
.video-card-featured .video-card-body {
    padding: 24px 28px;
    text-align: center;
}
.video-card-featured .video-title {
    font-size: 1.15rem;
}
.video-card-featured .video-desc {
    font-size: .92rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .video-card-body { padding: 16px; }
    .video-title { font-size: .9rem; }
    .video-card-featured .video-embed { padding-bottom: 56.25%; }
}
