/* ============================================
   Nelson Hospital - Premium Medical Website
   ============================================ */

:root {
    --primary: #00B4D8;
    --primary-dark: #0096C7;
    --primary-light: #e8f4fd;
    --secondary: #28a745;
    --secondary-dark: #1e7e34;
    --accent: #17a2b8;
    --dark: #1a1a2e;
    --text: #333333;
    --text-muted: #6c757d;
    --light-bg: #f8f9fa;
    --soft-gray: #f0f2f5;
    --white: #ffffff;
    --danger: #dc3545;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

img { max-width: 100%; height: auto; }

a { text-decoration: none; transition: var(--transition); }

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 20%, #f0fbff 0%, #ffffff 45%, #e8f6fa 100%);
    transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease;
}

.page-loader.loader-exit {
    opacity: 0;
    transform: scale(1.03);
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.05);
}

.loader-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.loader-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
    animation: loaderBlob 8s ease-in-out infinite;
}

.loader-blob-1 {
    width: 280px;
    height: 280px;
    top: -80px;
    left: -60px;
    background: rgba(0, 180, 216, 0.25);
}

.loader-blob-2 {
    width: 220px;
    height: 220px;
    bottom: -60px;
    right: -40px;
    background: rgba(0, 150, 199, 0.2);
    animation-delay: 2s;
}

.loader-blob-3 {
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(40, 167, 69, 0.12);
    animation-delay: 4s;
}

.medical-loader {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 180, 216, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 96, 135, 0.12), 0 8px 24px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.loader-emblem {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.75rem;
}

.loader-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.loader-ring-spin {
    transform-origin: center;
    animation: loaderRingSpin 2.4s linear infinite;
}

.loader-emblem-core {
    position: absolute;
    inset: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #00B4D8, #0096C7);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 150, 199, 0.35);
    animation: loaderCorePulse 2s ease-in-out infinite;
}

.loader-cross {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.loader-orbit-ring {
    position: absolute;
    inset: 0;
    animation: loaderOrbitSpin 6s linear infinite;
}

.loader-orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: rotate(var(--orbit-angle)) translateX(62px);
}

.loader-orbit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-dark);
    font-size: 0.85rem;
    box-shadow: 0 6px 16px rgba(0, 96, 135, 0.15);
    transform: rotate(calc(-1 * var(--orbit-angle)));
    animation: loaderOrbitCounter 6s linear infinite;
}

.loader-ecg-panel {
    position: relative;
    height: 64px;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(0, 180, 216, 0.06) 0%, rgba(0, 180, 216, 0.02) 100%);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.loader-ecg {
    width: 100%;
    height: 100%;
}

.loader-ecg-path {
    fill: none;
    stroke: url(#loaderEcgGradient);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: loaderEcgDraw 2.2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(0, 180, 216, 0.35));
}

.loader-ecg-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px rgba(0, 180, 216, 0.8);
    animation: loaderEcgDot 2.2s ease-in-out infinite;
}

.loader-copy {
    margin-bottom: 1.5rem;
}

.loader-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.loader-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.loader-progress-wrap {
    text-align: center;
}

.loader-progress-track {
    height: 5px;
    background: rgba(0, 180, 216, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.loader-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00B4D8, #0096C7, #28a745);
    background-size: 200% 100%;
    animation: loaderProgressShine 1.8s linear infinite;
    transition: width 0.25s ease;
}

.loader-status {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.loader-dots span {
    animation: loaderDots 1.4s infinite;
    opacity: 0;
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.08); }
}

@keyframes loaderRingSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderCorePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 12px 28px rgba(0, 150, 199, 0.35); }
    50% { transform: scale(1.04); box-shadow: 0 16px 36px rgba(0, 150, 199, 0.45); }
}

@keyframes loaderOrbitSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderOrbitCounter {
    to { transform: rotate(calc(-1 * var(--orbit-angle) - 360deg)); }
}

@keyframes loaderEcgDraw {
    0% { stroke-dashoffset: 600; opacity: 0.4; }
    40% { stroke-dashoffset: 0; opacity: 1; }
    60% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -600; opacity: 0.4; }
}

@keyframes loaderEcgDot {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% - 8px); opacity: 0; }
}

@keyframes loaderProgressShine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes loaderDots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@media (max-width: 480px) {
    .medical-loader {
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 20px;
    }

    .loader-emblem {
        width: 120px;
        height: 120px;
        margin-bottom: 1.25rem;
    }

    .loader-emblem-core { inset: 24px; }
    .loader-cross { width: 36px; height: 36px; }
    .loader-title { font-size: 1.4rem; }
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}
.top-bar-info { gap: 1.5rem; }
.top-bar-info li { display: flex; align-items: center; gap: 6px; }
.top-bar-info a { color: rgba(255,255,255,0.85); }
.top-bar-info a:hover { color: var(--white); }
.top-bar-info i { color: var(--primary); }
.top-bar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}
.top-bar-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.top-bar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.8rem;
    transition: var(--transition);
}
.top-bar-social a:hover { background: var(--primary); transform: translateY(-2px); color: var(--white); }
.btn-appointment-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
    line-height: 1.2;
}
.mobile-top-actions {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--soft-gray);
}
.mobile-top-actions .mobile-social {
    justify-content: center;
    margin-bottom: 0.75rem;
}
.mobile-top-actions .mobile-social a {
    background: var(--primary-light);
    color: var(--primary);
    width: 36px;
    height: 36px;
}
.mobile-top-actions .mobile-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-lg); }

.main-navbar {
    padding: 0;
    min-height: 60px;
}
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
    min-height: 60px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}
.logo-img-main {
    height: 42px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
}
.navbar-desktop {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-height: 60px;
}
.navbar-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.navbar-menu .nav-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.navbar-menu .nav-link {
    font-weight: 500;
    color: var(--text);
    padding: 0.55rem 0.5rem !important;
    white-space: nowrap;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
    height: 36px;
}
.navbar-menu .nav-link.dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0;
    border-top-width: 0.35em;
    border-right-width: 0.35em;
    border-left-width: 0.35em;
}
.navbar-menu .nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}
.navbar-menu .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}
.navbar-menu .nav-link.active::after {
    display: none;
}
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}
.navbar-actions .btn-search {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    flex-shrink: 0;
}
.dropdown-menu-nav {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem;
    margin-top: 0.5rem;
}
.dropdown-menu-nav .dropdown-item {
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    white-space: nowrap;
}
.dropdown-menu-nav .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.dropdown-menu-nav .dropdown-header-item {
    font-weight: 700;
    color: var(--primary);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.offcanvas-logo {
    height: 38px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}
.footer-logo-img {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 0;
}
.logo-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}
.brand-text {
    display: none;
}
.dept-card h5 a { color: var(--dark); }
.dept-card h5 a:hover { color: var(--primary); }

/* Legacy nav overrides – keep dropdown doctor styles */
.dropdown-menu-doctors { min-width: 300px; }
.dropdown-menu-departments { min-width: 260px; max-height: 360px; overflow-y: auto; }
.department-sidebar .dept-sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}
.dept-icon-lg {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.dept-sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dept-sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--soft-gray);
}
.dept-sidebar-links li a:hover { color: var(--primary); }
.dept-sidebar-links li a i { color: var(--primary); width: 20px; }

/* About overview cards */
.about-overview-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.dropdown-menu-departments {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.75rem;
    min-width: 280px;
}
.dropdown-menu-departments .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
.dropdown-menu-departments .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.dropdown-menu-departments .dropdown-item i { color: var(--primary); width: 20px; }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 110, 189, 0.4);
}

.btn-emergency {
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
}
.btn-emergency:hover {
    background: #c82333;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-search {
    background: var(--soft-gray);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.btn-search:hover { background: var(--primary-light); color: var(--primary); }

/* Mobile Nav */
.mobile-nav-list { list-style: none; padding: 0; }
.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text);
    border-bottom: 1px solid var(--soft-gray);
    font-weight: 500;
    font-size: 0.85rem;
}
.mobile-nav-list li a i { color: var(--primary); width: 20px; }
.mobile-nav-list li a:hover { color: var(--primary); }

/* Hero Slider */
.hero-section { position: relative; overflow: hidden; }
.hero-swiper { height: 85vh; min-height: 500px; max-height: 800px; }
.hero-swiper .swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
}
.hero-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 110, 189, 0.85) 0%, rgba(26, 26, 46, 0.7) 100%);
}
.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    color: var(--white);
}
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-buttons .btn { padding: 0.75rem 2rem; font-size: 1rem; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
}
.hero-swiper .swiper-pagination-bullet-active { background: var(--white); width: 30px; border-radius: 6px; }

/* Emergency Strip */
.emergency-strip {
    background: linear-gradient(135deg, var(--danger) 0%, #c82333 100%);
    color: var(--white);
    padding: 1rem 0;
}
.emergency-strip .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.emergency-strip h4 { margin: 0; font-size: 1.1rem; }
.emergency-strip h4 i { margin-right: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Quick Appointment */
.quick-appointment {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}
.appointment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}
.appointment-card h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Section Styles */
.section { padding: 80px 0; }
.section-light { background: var(--light-bg); }
.section-gray { background: var(--soft-gray); }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title .subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}
.section-title h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}
.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Why Choose Cards */
.why-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid transparent;
}
.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.why-card .icon-box {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition);
}
.why-card:hover .icon-box {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}
.why-card h5 { margin-bottom: 0.75rem; }
.why-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Department Cards */
.dept-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid var(--primary);
}
.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.dept-card .dept-icon {
    width: 55px;
    height: 55px;
    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: 1rem;
}
.dept-card h5 { margin-bottom: 0.5rem; }
.dept-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Doctor Cards */
.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.doctor-card .doctor-img {
    position: relative;
    overflow: hidden;
    height: 320px;
    background: var(--soft-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}
.doctor-card .doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.5s ease;
    background: var(--soft-gray);
}
.doctor-card:hover .doctor-img img { transform: scale(1.03); }
.doctor-card .doctor-info { padding: 1.5rem; }
.doctor-card .doctor-info h5 { margin-bottom: 0.25rem; color: var(--dark); }
.doctor-card .specialization {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.doctor-card .qualification {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.doctor-card .experience {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Facility Cards */
.facility-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.facility-card:hover { transform: translateX(5px); box-shadow: var(--shadow-lg); }
.facility-card .facility-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}
.facility-card h6 { margin-bottom: 0.25rem; }
.facility-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* Health Package Cards */
.package-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    border: 2px solid transparent;
}
.package-card.popular {
    border-color: var(--primary);
    transform: scale(1.02);
}
.package-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.package-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.package-card.popular:hover { transform: scale(1.02) translateY(-5px); }
.package-card h5 { margin-bottom: 0.5rem; }
.package-card .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.package-card .price small { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.package-card ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.package-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--soft-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.package-card ul li i { color: var(--secondary); }

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary-light);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: var(--font-display);
    line-height: 1;
}
.testimonial-card .stars { color: #ffc107; margin-bottom: 1rem; }
.testimonial-card .text { font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; position: relative; z-index: 1; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}
.testimonial-card .author-info h6 { margin: 0; font-size: 0.95rem; }
.testimonial-card .author-info span { color: var(--text-muted); font-size: 0.85rem; }

/* Statistics */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
}
.stat-item { text-align: center; padding: 1rem; }
.stat-item .stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-item .stat-label { font-size: 0.95rem; opacity: 0.9; }

/* Blog Cards */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card .blog-img { height: 200px; overflow: hidden; }
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.1); }
.blog-card .blog-content { padding: 1.5rem; }
.blog-card .blog-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.blog-card h5 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.blog-card h5 a { color: var(--dark); }
.blog-card h5 a:hover { color: var(--primary); }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.blog-card .blog-date { color: var(--text-muted); font-size: 0.8rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.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; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 110, 189, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-overlay i { color: var(--white); font-size: 2rem; }

/* Insurance & Awards */
.partner-logo {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}
.partner-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--primary); }
.award-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
}
.award-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.award-card h6 { margin-bottom: 0.25rem; }
.award-card span { color: var(--text-muted); font-size: 0.85rem; }

/* About Section */
.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.about-img-wrap img { border-radius: var(--radius-lg); }
.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
}
.about-badge .years { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.about-badge span { font-size: 0.85rem; }

/* Contact Section */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
}
.contact-info-card > div:not(.icon) {
    min-width: 0;
    flex: 1;
}
.contact-info-card h6 {
    margin-bottom: 0.35rem;
}
.contact-info-card p,
.contact-info-card a {
    word-break: break-word;
    overflow-wrap: anywhere;
}
.contact-info-card .icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner h1 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    position: relative;
}
.page-banner p { opacity: 0.9; position: relative; max-width: 600px; margin: 0 auto; }

.breadcrumb-nav { margin-top: 1rem; position: relative; }
.breadcrumb { justify-content: center; background: transparent; margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,0.8); }
.breadcrumb-item.active { color: var(--white); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* FAQ Accordion */
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-item .accordion-button {
    font-weight: 600;
    color: var(--dark);
    padding: 1.25rem 1.5rem;
    background: var(--white);
}
.faq-item .accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: none;
}
.faq-item .accordion-body { padding: 0 1.5rem 1.25rem; color: var(--text-muted); }

/* Service List */
.service-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 1rem;
}
.service-item:hover { transform: translateX(5px); border-left: 4px solid var(--primary); }
.service-item i { font-size: 1.5rem; color: var(--primary); width: 40px; text-align: center; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 60px 0 40px; }
.footer-widget h4, .footer-widget h5, .footer-widget h6 { color: var(--white); margin-bottom: 1.25rem; }
.footer-widget p { font-size: 0.9rem; line-height: 1.8; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { border-radius: 0; object-fit: contain; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.footer-contact li i { color: var(--primary); margin-top: 4px; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--white); }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    margin-right: 8px;
    font-size: 0.9rem;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-emergency {
    background: rgba(220, 53, 69, 0.15);
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-emergency .emergency-text i { color: var(--danger); margin-right: 8px; }
.footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--primary); }

/* Floating Call & WhatsApp */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.floating-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    animation: floatingBounce 2.5s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-call {
    background: linear-gradient(135deg, #00B4D8, #0096C7);
    animation-delay: 0s;
}

.floating-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    animation-delay: 0.4s;
}

.floating-btn-icon {
    position: relative;
    z-index: 2;
    font-size: 1.35rem;
}

.floating-btn-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.6;
    animation: floatingPulse 2s ease-out infinite;
    pointer-events: none;
}

.floating-btn-ring-delay {
    animation-delay: 1s;
}

.floating-call .floating-btn-ring { color: #00B4D8; }
.floating-whatsapp .floating-btn-ring { color: #25D366; }

.floating-btn-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--dark);
    color: var(--white);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--shadow);
    pointer-events: none;
}

.floating-btn-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--dark);
}

.floating-btn:hover {
    animation: none;
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
    color: var(--white);
}

.floating-btn:hover .floating-btn-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@keyframes floatingPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.7); opacity: 0; }
}

@keyframes floatingBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* Forms */
.form-control, .form-select {
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(10, 110, 189, 0.15);
}
.form-label { font-weight: 500; margin-bottom: 0.5rem; }

.alert { border-radius: var(--radius); border: none; }

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Swiper overrides */
.swiper-button-next, .swiper-button-prev { color: var(--primary); }
.testimonial-swiper { padding-bottom: 50px; }

/* Privacy/Terms content */
.legal-content h3 { margin-top: 2rem; margin-bottom: 1rem; color: var(--primary); }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-content ul { padding-left: 1.5rem; }

/* Accessibility */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.visually-hidden-focusable:focus { position: static; width: auto; height: auto; }

/* Print */
@media print {
    .top-bar, .site-header, .back-to-top, .floating-actions, .page-loader { display: none !important; }
}

/* ============================================
   Doctor Profile Page
   ============================================ */
.doctor-profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.doctor-profile-img {
    min-height: 360px;
    max-height: 480px;
    background: var(--soft-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.doctor-profile-img img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: contain;
    object-position: center center;
    background: var(--soft-gray);
}
.doctor-profile-sidebar {
    padding: 1.5rem;
}
.doctor-profile-sidebar h4 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}
.doctor-profile-sidebar .specialization {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.doctor-quick-info {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.doctor-quick-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--soft-gray);
    font-size: 0.9rem;
}
.doctor-quick-info li i {
    color: var(--primary);
    margin-top: 3px;
    width: 18px;
}
.doctor-profile-content .profile-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
.doctor-profile-content .profile-block h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
}
.doctor-profile-content .profile-block p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.8;
}
.profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.profile-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.profile-list li i {
    color: var(--primary);
    font-size: 0.4rem;
    margin-top: 8px;
}
.profile-list-education li {
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--text);
    padding: 0.65rem 0;
}
.profile-list-education li i {
    margin-top: 10px;
}
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.expertise-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}
.expertise-tag i { font-size: 0.7rem; }

/* Doctor dropdown menu */
.dropdown-menu-doctors {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem;
    min-width: 320px;
}
.dropdown-menu-doctors .dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    white-space: normal;
}
.dropdown-menu-doctors .dropdown-item:hover {
    background: var(--primary-light);
}
.dropdown-menu-doctors .dropdown-header-item {
    font-weight: 700;
    color: var(--primary);
}
.dropdown-menu-doctors .doctor-menu-name {
    display: block;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}
.dropdown-menu-doctors .doctor-menu-spec {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.doctor-card .doctor-info h5 a,
.doctor-card h5 a {
    color: var(--dark);
    transition: var(--transition);
}
.doctor-card .doctor-info h5 a:hover,
.doctor-card h5 a:hover { color: var(--primary); }
.doctor-img-link { display: block; text-decoration: none; }

/* Mobile sub navigation */
.mobile-nav-group { list-style: none; }
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--soft-gray);
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}
.mobile-nav-toggle span {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-nav-toggle i.fa-user-doctor { color: var(--primary); width: 20px; }
.mobile-nav-toggle .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s;
}
.mobile-nav-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}
.mobile-sub-nav {
    list-style: none;
    padding: 0 0 0 32px;
    margin: 0;
}
.mobile-sub-nav li a {
    display: block;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--soft-gray);
}
.mobile-sub-nav li a:hover { color: var(--primary); }
.mobile-sub-nav li:first-child a { font-weight: 600; color: var(--primary); }
.mobile-doctor-link {
    display: block;
    white-space: normal;
}
.mobile-doctor-name {
    display: block;
    font-weight: 600;
    color: var(--dark);
}
.mobile-doctor-spec {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}
.mobile-doctor-link:hover .mobile-doctor-name { color: var(--primary); }

.sticky-lg-top { top: 100px; z-index: 10; }

/* Enhanced Responsive */
@media (max-width: 1399.98px) {
    .navbar-menu .nav-link { padding: 0.55rem 0.4rem !important; font-size: 0.72rem; }
    .logo-img-main { height: 36px; max-width: 165px; }
}

@media (max-width: 991.98px) {
    .hero-swiper { height: 70vh; min-height: 450px; }
    .quick-appointment { margin-top: -30px; }
    .section { padding: 60px 0; }
    .page-banner { padding: 80px 0 50px; }
    .doctor-profile-img { min-height: 300px; max-height: 400px; }
    .sticky-lg-top { position: relative !important; top: 0 !important; }
    .top-bar { font-size: 0.8rem; }
    .top-bar-info { gap: 0.75rem; }
    .emergency-strip .container { flex-direction: column; text-align: center; }
    .footer-top { padding: 40px 0 30px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 767.98px) {
    .top-bar { display: none; }
    .top-bar-info { flex-direction: column; gap: 0.5rem; }
    .hero-swiper { height: 55vh; min-height: 380px; }
    .hero-content h1 { font-size: 1.75rem; }
    .hero-content p { font-size: 0.95rem; margin-bottom: 1.25rem; }
    .appointment-card { padding: 1.25rem; margin-top: 0; }
    .quick-appointment { margin-top: 0; padding-top: 2rem; }
    .package-card.popular { transform: none; }
    .stat-item { margin-bottom: 1rem; }
    .doctor-card .doctor-img { height: 280px; }
    .doctor-profile-img { min-height: 280px; max-height: 360px; }
    .doctor-profile-content .profile-block { padding: 1.25rem; }
    .page-banner { padding: 70px 0 40px; }
    .contact-form-card { padding: 1.25rem; }
    .section-title { margin-bottom: 2rem; }
    .section-title h2 { font-size: 1.5rem; }
    .logo-img-main { height: 34px; max-width: 150px; }
    .brand-name { font-size: 1.1rem; }
    .back-to-top { bottom: 150px; right: 20px; width: 40px; height: 40px; }
    .floating-actions { bottom: 20px; right: 20px; gap: 12px; }
    .floating-btn { width: 50px; height: 50px; }
    .floating-btn-icon { font-size: 1.2rem; }
    .floating-btn-label { display: none; }
    .footer-bottom .col-md-6 { text-align: center !important; margin-bottom: 0.5rem; }
    .footer-emergency .d-flex { flex-direction: column; text-align: center; gap: 0.75rem; }
}

@media (max-width: 575.98px) {
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; text-align: center; }
    .brand-tagline { display: none; }
    .hero-swiper { height: 50vh; min-height: 350px; }
    .hero-badge { font-size: 0.75rem; padding: 0.35rem 0.85rem; }
    .appointment-card .row > [class*="col-"] { margin-bottom: 0; }
    .gallery-grid { grid-template-columns: 1fr; }
    .doctor-card .d-flex.gap-2 { flex-direction: column; }
    .expertise-tag { font-size: 0.8rem; padding: 0.4rem 0.75rem; }
    .about-badge { padding: 1rem; bottom: 10px; right: 10px; }
    .about-badge .years { font-size: 1.75rem; }
    .package-card { padding: 1.5rem; }
    .package-card .price { font-size: 1.5rem; }
    .testimonial-card { padding: 1.5rem; }
    .why-card { padding: 1.5rem; }
    .dept-card { padding: 1.25rem; }
}

@media (max-width: 399.98px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .hero-content h1 { font-size: 1.5rem; }
}

