/* Custom Theme Styles: Deep Premium Theme — Consolidated */
/* Google Fonts loaded via wp_enqueue_style in functions.php */

:root {
    /* Colors — Kausalya Brand Green Theme */
    --bg-deep: #0d1f17;
    /* Deep forest dark green */
    --primary-blue: #2d6a4f;
    /* Brand green — replaces orange */
    --secondary-teal: #52b788;
    /* Light green accent */
    --accent-orange: #40916c;
    /* Medium green — replaces bright orange */
    --text-light: #FFFFFF;
    --text-heading: #FFFFFF;
    --text-body: rgba(255, 255, 255, 0.75);

    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.04);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);

    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --header-bg: rgba(5, 10, 24, 0.8);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --mesh-opacity: 0.4;

    /* Typography Tokens */
    --font-primary: 'Outfit', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    --tracking-tight: -0.03em;
    --tracking-wide: 0.1em;
    --leading-tight: 1.1;
    --leading-snug: 1.3;
    --leading-relaxed: 1.6;

    /* Spacing Tokens */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --space-32: 8rem;

    --container-max: 1240px;
    --section-padding: var(--space-16) 0;
}

body.light-mode {
    --bg-deep: #F8FAFC;
    --text-light: #0F172A;
    --text-heading: #0F172A;
    --text-body: #475569;

    --card-bg: #FFFFFF;
    --card-border: #E2E8F0;
    --card-shadow: 0 20px 40px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.02);

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(15, 23, 42, 0.1);
    --header-bg: rgba(255, 255, 255, 0.85);
}

body {
    background-color: var(--bg-deep);
    color: var(--text-light);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Typographic Rules */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    margin-top: 0;
    margin-bottom: var(--space-4);
    color: var(--text-heading);
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

h3 {
    font-size: var(--text-3xl);
    font-weight: 600;
    line-height: var(--leading-snug);
    letter-spacing: -0.01em;
}

h4 {
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: var(--leading-snug);
}

p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-body);
    margin-bottom: var(--space-4);
    margin-top: 0;
}

.lead-text {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-body);
}

.eyebrow-badge {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    font-weight: 700;
    color: var(--primary-blue);
}


/* Force Dark Mode Variables on Hero so glass UI works correctly on black background */
body.light-mode .hero {
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-light: #F4F9FF;
}

body.light-mode .hero-title,
body.light-mode .text-side p {
    color: var(--text-light);
}

body.light-mode .btn-glass {
    color: var(--text-light) !important;
}

/* Cinematic Theme Effects (Sparks & ECG) */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(45, 106, 79, 0.1) 0%, rgba(18, 10, 5, 1) 80%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.6;
    animation: moveGlow 20s infinite alternate;
}

.glow-1 {
    width: 800px;
    height: 800px;
    background: #1a4731;
    top: -200px;
    left: -200px;
}

.glow-2 {
    width: 900px;
    height: 900px;
    background: #2d6a4f;
    bottom: -300px;
    right: -200px;
    animation-delay: -5s;
}

@keyframes moveGlow {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(150px, 150px) scale(1.3);
    }
}

/* Sparks Overlay Effect - DISABLED */
.sparks-overlay,
.sparks-overlay::before,
.sparks-overlay::after {
    display: none !important;
}

/* ECG Divider */
.ecg-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-6) 0;
    position: relative;
    width: 100%;
}

.ecg-divider::before,
.ecg-divider::after {
    content: '';
    height: 2px;
    flex-grow: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.3));
}

.ecg-divider::after {
    background: linear-gradient(-90deg, transparent, rgba(255, 165, 0, 0.3));
}

.ecg-divider-line {
    width: 80px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30'%3E%3Cpath d='M0,15 L20,15 L30,5 L40,25 L50,10 L60,20 L70,15 L100,15' fill='none' stroke='%23FF8C00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 0 15px;
    filter: drop-shadow(0 0 5px rgba(255, 140, 0, 0.8));
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        opacity: 0.7;
        filter: drop-shadow(0 0 5px rgba(255, 140, 0, 0.4));
    }

    15% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 140, 0, 1));
    }

    30% {
        opacity: 0.7;
        filter: drop-shadow(0 0 5px rgba(255, 140, 0, 0.4));
    }

    45% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 140, 0, 1));
    }

    100% {
        opacity: 0.7;
        filter: drop-shadow(0 0 5px rgba(255, 140, 0, 0.4));
    }
}

/* Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
}

section {
    display: block;
}

section#home {
    padding: 0;
}

/* Stacking Utilities */
.stack-sm>*+* {
    margin-top: var(--space-4);
}

.stack-md>*+* {
    margin-top: var(--space-8);
}

.stack-lg>*+* {
    margin-top: var(--space-12);
}

/* WP Child Theme Header Overrides */
.site-header,
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container,
.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo-text,
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: inherit;
    letter-spacing: 1px;
}

.logo-text .logo-highlight,
.logo span {
    color: var(--primary-blue);
}

/* Custom Logo Image Styles */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.custom-logo-link img.custom-logo {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    filter: brightness(1);
    transition: opacity 0.2s ease;
}

.custom-logo-link:hover img.custom-logo {
    opacity: 0.85;
}

/* Dark header pe white logo ke liye — agar logo dark color ka ho */
body.dark-mode .custom-logo-link img.custom-logo {
    filter: brightness(1.1);
}

body.light-mode .custom-logo-link img.custom-logo {
    filter: brightness(1);
}

/* WordPress default site title & tagline — logo hone pe hide karo */
.wp-custom-logo .site-title,
.wp-custom-logo .site-description,
.wp-custom-logo p.site-title,
.custom-logo-link + .site-title,
.custom-logo-link + p,
header .site-branding .site-title,
header .site-branding .site-description,
.logo .site-title,
.logo p {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    opacity: 0.7;
    transition: var(--transition);
    display: block;
}

.main-navigation a:hover {
    opacity: 1;
    color: var(--secondary-teal);
}

/* Dropdown Menu Styles */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Hide by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.main-navigation ul li:hover>ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul li ul.sub-menu li {
    width: 100%;
}

.main-navigation ul li ul.sub-menu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.main-navigation ul li ul.sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Header Elements Needed for Global */
.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.3);
}

.btn-glass {
    background: var(--glass-bg);
    color: inherit;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Premium Card & Layout Utilities */
.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: var(--space-8);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.premium-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(30, 136, 229, 0.08);
    /* Primary Blue tinted */
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    font-size: var(--text-2xl);
}

.premium-card h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-xl);
}

.premium-card p {
    margin-bottom: 0;
    font-size: var(--text-sm);
}

/* --- HOME PAGE SECTIONS --- */
/* Hero - Global Premium Medical Layout */
.hero {
    /* Hero Context Variables — Kausalya Brand Green */
    --hero-grad-start: #1a4731;
    --hero-grad-end: #2d6a4f;
    --hero-cyan: #52b788;
    --hero-orange: #40916c;

    position: relative;
    background: linear-gradient(135deg, #1a4731 0%, #2d6a4f 50%, #1b4332 100%);
    color: #fff;
    width: 100%;
    min-height: calc(100vh - 80px);
    overflow: hidden;
}

/* Float animation for background elements */
@keyframes float-hero {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-slider {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 80px);
    position: relative;
}

.slide {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 100%;
    min-height: calc(100vh - 80px);
    padding: var(--space-24) 0;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 71, 49, 0.92) 0%, rgba(26, 71, 49, 0.45) 100%);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.slide-content {
    max-width: var(--container-max);
    width: 100%;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-8);
    align-items: center;
    margin: 0 auto;
    text-align: left;
}

.hero-title {
    font-weight: 800;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
    letter-spacing: var(--tracking-tight);
    text-shadow: 0 0 30px rgba(45, 106, 79, 0.3);
}

.hero-title span {
    background: linear-gradient(135deg, #FFF, var(--hero-grad-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-side p {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    opacity: 0.70;
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero .btn-primary {
    background: linear-gradient(135deg, #2d6a4f, #52b788);
    box-shadow: 0 10px 30px rgba(45, 106, 79, 0.4);
    border: none;
}

.hero .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(45, 106, 79, 0.6);
}

.hero .btn-glass {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero .btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Glass Booking Card */
.booking-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: var(--space-8);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: float-hero 8s ease-in-out infinite;
}

.booking-card h3 {
    font-size: var(--text-2xl);
    margin-top: 5px;
    margin-bottom: var(--space-6);
}

.input-group {
    margin-bottom: var(--space-4);
}

.input-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    opacity: 0.8;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    font-size: var(--text-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--hero-grad-end);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 15px rgba(82, 183, 136, 0.3);
}

.booking-card .btn-primary,
.booking-card input[type="submit"],
.booking-card button[type="submit"] {
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--hero-grad-start), var(--hero-grad-end));
    box-shadow: 0 10px 20px rgba(45, 106, 79, 0.2);
    border: none;
    border-radius: 10px;
    padding: 16px 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.booking-card .btn-primary:hover,
.booking-card input[type="submit"]:hover,
.booking-card button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(45, 106, 79, 0.4);
}

/* Promise Card inside Hero Visual Side */
.hero-promise-text {
    color: #fff;
    margin-bottom: 20px;
}

.hero-signature-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.hero-signature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hero-grad-start), var(--hero-grad-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-signature-name {
    font-weight: 700;
    color: #fff;
}

.hero-signature-role {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Stats Pulse */
.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-teal);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.7;
}

/* Professional Refinements */
.stat-grid-prof {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item-prof {
    position: relative;
    padding-left: 20px;
    border-left: 1px solid var(--glass-border);
}

.stat-item-prof:first-child {
    border-left: none;
    padding-left: 0;
}

/* Premium Badge */
.premium-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    background: rgba(30, 136, 229, 0.1);
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Slider Overrides */
.slider-controls {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: 0.3s;
}

.slider-dot.active {
    background: var(--secondary-teal);
    width: 30px;
    border-radius: 5px;
}

/* Prevent slider FOUC — hide extra slides until Keen Slider initializes */
.keen-slider:not([data-keen-slider-v]) {
    overflow: hidden;
}

.keen-slider:not([data-keen-slider-v]) .keen-slider__slide:first-child {
    display: block;
}

/* --- REFACTORED INLINE CSS --- */

/* Hero Section */
.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 71, 49, 0.97) 0%, rgba(45, 106, 79, 0.85) 50%, rgba(27, 67, 50, 0.95) 100%);
    backdrop-filter: blur(4px);
}

.hero-booking-badge {
    background: rgba(82, 183, 136, 0.15);
    border-color: #52b788;
    color: #52b788;
    margin-bottom: 15px;
}

.hero-side-img-wrap {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(40px);
}

.hero-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-side-video-wrap {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(40px);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-side-video-wrap:hover {
    transform: translateY(35px);
}

.hero-side-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.hero-side-video-wrap:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.video-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-side-video-wrap:hover .video-play-btn {
    transform: scale(1.1);
    background: #fff;
}

.video-play-btn i {
    margin-left: 4px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

#modalVideoContainer {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

#modalVideoContainer iframe,
#modalVideoContainer video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.video-modal-close:hover {
    transform: scale(1.2);
}

.video-modal-content video {
    width: 100%;
    height: auto;
    display: block;
}

.hero-slider-dots-wrap {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Intro Section */
.intro-section {
    background: linear-gradient(135deg, #020C17 0%, #1E4330 100%);
    padding: var(--section-padding);
    color: var(--text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.intro-left-col {
    padding-right: var(--space-8);
}

.intro-badge {
    display: block;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    font-weight: 700;
    color: var(--primary-blue);
    font-size: var(--text-xs);
    margin-bottom: var(--space-4);
}

.intro-title {
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-8);
    letter-spacing: var(--tracking-tight);
}

.intro-cta-group {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.intro-cta-1,
.intro-cta-2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.intro-cta-1 i {
    color: var(--accent-orange);
    font-size: 1.1rem;
}

.intro-cta-2 i {
    color: #fff;
    font-size: 1.1rem;
}

.intro-cta-1:hover,
.intro-cta-2:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.intro-right-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
}

.intro-desc {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
}

.intro-stats-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
    margin-bottom: var(--space-8);
    border-top: none;
    padding-top: 0;
}

.intro-stat-item {
    display: flex;
    flex-direction: column;
}

.intro-stat-val {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.intro-stat-label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: var(--text-base);
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    align-self: flex-start;
}

.intro-learn-more:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.intro-learn-more i {
    transition: transform 0.3s ease;
}

.intro-learn-more:hover i {
    transform: translateX(5px);
}

.intro-img-wrap {
    margin-top: var(--space-8);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.intro-img {
    width: 100%;
    height: auto;
    display: block;
}

/* About Section */
.about-section {
    background: rgba(255, 255, 255, 0.01);
    padding: 50px 0;
}

.about-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.about-badge {
    margin-bottom: 10px;
}

.about-title {
    font-size: 3rem;
}

.about-desc {
    opacity: 0.7;
}

.about-grid {
    display: grid;
    gap: 30px;
}

.about-card {
    padding: 40px;
}

.about-card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.about-card-title {
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.about-card-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
    margin: 0;
}

/* Services Section */
.services-section {
    background: rgba(30, 136, 229, 0.03);
    padding: var(--section-padding);
}

.services-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    align-items: end;
}

.services-subtitle {
    color: var(--secondary-teal);
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.services-title {
    font-size: var(--text-5xl);
    line-height: var(--leading-tight);
    margin-top: var(--space-2);
    letter-spacing: var(--tracking-tight);
}

.services-desc {
    opacity: 0.8;
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    font-size: var(--text-lg);
}

.services-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.services-feature-item {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    font-weight: 600;
}

.services-feature-icon {
    color: var(--secondary-teal);
    font-size: var(--text-xl);
}

.services-steps-grid {
    display: grid;
    gap: var(--space-6);
}

.service-step-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-6);
    display: block;
    color: var(--primary-blue);
}

.service-step-title {
    margin-bottom: var(--space-3);
    font-size: var(--text-2xl);
}

.service-step-desc {
    font-size: var(--text-base);
    opacity: 0.7;
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

.service-step-link {
    font-weight: 700;
    text-decoration: none;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-blue);
}

/* Bento Services */
.bento-section {
    padding: var(--section-padding) 0 !important;
}

.bento-slider-wrap {
    position: relative;
    width: 100%;
  overflow: hidden;
}

/* Keen slider slide wrapper height fix */
#bento-slider.keen-slider {
    min-height: 280px;
}

#bento-slider .keen-slider__slide {
    display: flex;
    height: auto;
    min-height: 280px;
}

.bento-header {
    text-align: center;
    margin-bottom: 30px;
}

.bento-title {
    font-size: 3rem;
}

/* Detailed Services Section */
.detailed-services-section {
    background: #f0f0f0;
    padding: var(--section-padding);
    color: #333;
}

.detailed-services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.detailed-services-header {
    text-align: center;
    margin-bottom: 60px;
}

.detailed-services-title {
    font-size: 3rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.detailed-services-line {
    width: 50px;
    height: 4px;
    margin: 0 auto 20px;
}

.detailed-services-desc {
    max-width: 650px;
    margin: 0 auto;
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

.detailed-services-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: end;
}

.detailed-services-left-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: right;
}

.detailed-services-right-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: left;
}

.ds-item {
    margin-bottom: 30px;
}

.ds-item-title-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.ds-item-title-link:hover {
    transform: translateX(5px);
}

.ds-item-title-link .ds-item-title {
    color: var(--primary-blue);
    transition: color 0.2s ease;
}

.ds-item-title-link:hover .ds-item-title {
    color: var(--secondary-teal);
}

.ds-item-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.ds-item-desc {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.7;
    font-style: italic;
}

.ds-center-img-col {
    text-align: center;
}

.ds-center-img {
    max-height: 500px;
    width: auto;
    display: block;
}

.ds-center-placeholder {
    width: 300px;
    height: 450px;
    background: linear-gradient(135deg, #ddd, #eee);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--section-padding);
    background: #1F4430;
    overflow: hidden;
    position: relative;
}

.testimonials-container {
    text-align: left;
    max-width: var(--container-max);
    margin: 0 auto;
}

.testimonials-badge {
    background: rgba(30, 136, 229, 0.1);
    color: var(--primary-blue);
}

.testimonials-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-8);
    color: #fff;
    letter-spacing: var(--tracking-tight);
}

.testimonials-slider-wrap {
    position: relative;
    padding: 0 var(--space-6);
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.testimonial-dots-wrap {
    margin-top: var(--space-6);
    justify-content: flex-start;
}

/* Gallery Section */
.gallery-section {
    padding: var(--section-padding);
    background-color: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

.gallery-container {
    position: relative;
    z-index: 2;
}

.gallery-header {
    text-align: left;
    margin-bottom: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: var(--container-max);
    margin: 0 auto;
}

.gallery-badge {
    background: rgba(30, 136, 229, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.gallery-title {
    font-size: var(--text-5xl);
    color: #fff;
    margin-top: var(--space-2);
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    max-width: var(--container-max);
    margin: 0 auto;
}

.gallery-hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    min-height: 550px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-deep) 0%, rgba(5, 10, 24, 0.4) 40%, transparent 100%);
}

.gallery-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-12) var(--space-8);
}

.gallery-hero-cat {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: var(--space-4);
}

.gallery-hero-cat i {
    margin-right: 6px;
}

.gallery-hero-title {
    color: #fff;
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-hero-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
    max-width: 85%;
    line-height: var(--leading-relaxed);
}

.gallery-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-blue);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: var(--text-base);
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.3);
}

.gallery-side-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.gallery-side-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    flex: 1;
    min-height: 160px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    padding: 0 var(--space-8);
    text-decoration: none;
    cursor: pointer;
}

.gallery-side-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.6;
}

.gallery-side-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-deep) 0%, rgba(5, 10, 24, 0.6) 50%, rgba(5, 10, 24, 0.2) 100%);
    z-index: 1;
}

.gallery-side-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: var(--text-2xl);
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-icon-wrap {
    position: relative;
    z-index: 2;
    margin-left: auto;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-icon-wrap i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.gallery-hero-card:hover .gallery-hero-img {
    transform: scale(1.05);
}

.gallery-hero-card:hover .gallery-hero-btn {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 136, 229, 0.5);
}

.gallery-side-card:hover .gallery-side-img {
    transform: scale(1.05);
    opacity: 0.8 !important;
}

.gallery-side-card:hover .gallery-icon-wrap {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.gallery-side-card:hover .gallery-icon-wrap i {
    color: #fff !important;
}

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .gallery-hero-card {
        min-height: 400px !important;
    }

    .gallery-side-card {
        min-height: 120px !important;
        padding: 0 25px !important;
    }
}

/* Doctors Section */
/* =============================================
   PREMIUM DOCTOR CARDS — Homepage Slider
   ============================================= */
.doctors-section {
    padding: 80px 0;
    overflow: hidden;
}

/* Doctor slider — keen slider fix: show all perView slides */
#doctor-slider.keen-slider {
    align-items: stretch;
}

#doctor-slider .keen-slider__slide {
    display: flex;
    height: auto;
}

#doctor-slider .keen-slider__slide .doctor-card-prof {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.doctors-header {
    text-align: center;
    margin-bottom: 50px;
}

.doctors-title {
    font-size: 3rem;
    color: #120A05;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.doctors-desc {
    max-width: 620px;
    margin: 0 auto;
    opacity: 0.7;
    line-height: 1.8;
}

/* Card wrapper — no image hover effects */
.doctor-card-prof {
    text-decoration: none !important;
    color: inherit;
    display: block;
    border-radius: 0 0 16px 16px;
    overflow: visible;
}

/* Image — no changes to size or hover effect */
.doctor-img-wrap {
    overflow: hidden;
    background: #1a203c;
    width: 100%;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Info panel — white card below image */
.doctor-card-prof .info {
    background: #ffffff !important;
    padding: 20px 22px 22px !important;
    border-top: 3px solid #2d6a4f !important;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Doctor name */
.doctor-card-prof .info h3 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #120A05 !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

/* Specialty — orange pill */
.doctor-card-prof .info .spec {
    display: inline-block !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #2d6a4f !important;
    background: rgba(45, 106, 79, 0.09) !important;
    border: 1px solid rgba(45, 106, 79, 0.2) !important;
    padding: 2px 10px !important;
    border-radius: 20px !important;
    margin-bottom: 4px !important;
}

/* Department */
.doctor-qual {
    display: block;
    font-size: 0.72rem;
    color: #999 !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 4px 0 10px;
    opacity: 1 !important;
}

/* Bio — 3 lines max */
.doctor-bio {
    font-size: 0.86rem !important;
    line-height: 1.65 !important;
    color: #666 !important;
    opacity: 1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 !important;
}

/* View Profile CTA */
.doctor-card-prof .info .doctor-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d6a4f !important;
    margin-top: 12px;
    letter-spacing: 0.3px;
}


/* CTA Banner Section */
.cta-banner-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 40%, #0a2a3c 70%, #091e2f 100%);
}

.cta-banner-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.cta-banner-container {
    position: relative;
    z-index: 2;
    padding: 0 var(--space-4);
}

.cta-banner-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px var(--space-8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.cta-banner-title {
    font-size: 2.8rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    font-style: italic;
}

.cta-banner-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 35px auto;
}

.cta-banner-btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-banner-btn-1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2196F3;
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.3);
}

.cta-banner-btn-2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cta-banner-btn-1:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.5);
}

.cta-banner-btn-2:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .cta-banner-title {
        font-size: 2rem !important;
    }

    .cta-banner-card {
        padding: 40px var(--space-4) !important;
    }
}

/* Stories & Appointment Overlap */
.overlap-section {
    padding-top: 0;
    background: var(--bg-deep);
    position: relative;
}

.overlap-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.overlap-content {
    background: rgba(30, 136, 229, 0.05);
    padding: 80px 0 120px;
    position: relative;
    z-index: 1;
}

.overlap-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.overlap-title {
    font-size: 2.8rem;
    color: var(--secondary-teal);
}

.overlap-slider-wrap {
    flex: 1.5;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.overlap-slide-content {
    text-align: left;
    max-width: 100%;
}

.overlap-quote {
    font-size: 1.4rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 30px;
    display: block;
}

.overlap-author {
    display: flex;
    gap: 20px;
    align-items: center;
}

.overlap-avatar-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #444;
    border: 2px solid var(--bg-deep);
    flex-shrink: 0;
    overflow: hidden;
}

.overlap-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlap-company {
    opacity: 0.6;
    font-size: 0.85rem;
}

.overlap-dots {
    justify-content: flex-start;
    margin-top: 40px;
}

/* Quick Contact Box Refinements */
.overlap-booking-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
}

.booking-form-wrap h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.booking-form-wrap p {
    opacity: 0.7;
    margin-bottom: 40px;
}

.static-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.static-form-btn {
    grid-column: span 2;
    padding: 20px;
}

.static-form-btn i {
    margin-left: 10px;
}

.quick-contact-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.quick-contact-desc {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
}

.quick-contact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.qc-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.qc-icon {
    font-size: 1.5rem;
}

.qc-label {
    font-size: 0.75rem;
    opacity: 0.7;
}

.qc-btn {
    width: 100%;
    margin-top: 50px;
    border-radius: 50px;
    border-color: #fff;
    text-align: center;
    display: inline-block;
    padding: 15px 30px;
}

/* Case Studies Section */
.case-studies-section {
    padding: 20px 0 40px 0;
    overflow: hidden;
}

.case-studies-header {
    text-align: center;
    margin-bottom: 60px;
}

.case-studies-title {
    font-size: 3rem;
}

.case-slider-wrap {
    overflow: visible !important;
}

.case-card {
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card-img-wrap {
    height: 200px;
    background: #1a203c;
    flex-shrink: 0;
}

.case-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-card-badge {
    font-size: 0.6rem;
    margin-bottom: 15px;
    display: inline-block;
}

.case-card-title {
    margin: 0 0 10px 0;
}

.case-card-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0;
}

.case-card-link-wrap {
    margin-top: auto;
    padding-top: 20px;
}

.case-card-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

/* --- Light Mode Section Overrides --- */
body.light-mode .intro-section {
    background: linear-gradient(135deg, #F0F9FF 0%, #E2E8F0 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

body.light-mode .intro-title,
body.light-mode .intro-stat-val,
body.light-mode .intro-learn-more {
    color: var(--text-heading);
}

body.light-mode .intro-cta-1,
body.light-mode .intro-cta-2 {
    color: var(--text-heading);
    background: #FFFFFF;
    border-color: rgba(15, 23, 42, 0.1);
}

body.light-mode .intro-cta-2 i {
    color: var(--text-heading);
}

body.light-mode .intro-desc {
    color: var(--text-body);
}

body.light-mode .intro-stat-label {
    color: rgba(15, 23, 42, 0.6);
}

body.light-mode .intro-learn-more {
    border-bottom-color: var(--text-heading);
}

body.light-mode .testimonials-section {
    background: #EFF6FF;
}

body.light-mode .testimonials-title {
    color: var(--text-heading);
}

body.light-mode .gallery-title {
    color: var(--text-heading);
}

body.light-mode .gallery-hero-card,
body.light-mode .gallery-side-card {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
}

body.light-mode .gallery-hero-overlay,
body.light-mode .gallery-side-overlay {
    background: linear-gradient(to top, #050A18 0%, rgba(5, 10, 24, 0.4) 40%, transparent 100%);
}

body.light-mode .services-section {
    background: #FFFFFF;
}

body.light-mode .about-section {
    background: #F8FAFC;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

/* Responsive Global Framework */
@media (max-width: 991px) {
    :root {
        --text-6xl: 3.5rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --space-16: 3rem;
        --space-24: 4rem;
        --section-padding: var(--space-16) 0;
    }

    .slide-content,
    .overlap-grid,
    .intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title,
    .text-side p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .services-header-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
        align-items: center;
    }

    .detailed-services-grid {
        grid-template-columns: 1fr;
    }

    .detailed-services-left-col,
    .detailed-services-right-col {
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.8rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --space-6: 1rem;
        --space-8: 1.5rem;
        --space-12: 2rem;
        --space-16: 2rem;
        --section-padding: var(--space-8) 0;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .services-features-grid,
    .services-steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .overlap-booking-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .static-form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .static-form-btn {
        grid-column: span 1;
    }

    .premium-card {
        padding: var(--space-6);
        margin-bottom: var(--space-4);
    }

    .gallery-hero-card {
        min-height: 350px !important;
        padding: var(--space-2);
    }

    .gallery-hero-content {
        padding: var(--space-6) var(--space-4);
    }

    .intro-cta-1,
    .intro-cta-2 {
        width: 100%;
        justify-content: center;
    }
}

/* --- PREMIUM FOOTER STYLES --- */
.hospital-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-12) 0 var(--space-8);
    color: var(--text-light);
    position: relative;
    z-index: 10;
    margin-top: 0;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hospital-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-4);
    color: var(--primary-blue);
    font-size: var(--text-3xl);
}

.footer-brand .logo h2 {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: var(--tracking-tight);
}

.footer-brand .tagline {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--text-body);
    margin-bottom: var(--space-6);
    max-width: 90%;
}

.footer-brand .social-icons {
    display: flex;
    gap: 12px;
}

.footer-brand .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    transition: var(--transition);
    text-decoration: none;
}

.footer-brand .social-icons a:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.footer-col h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--text-heading);
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: var(--text-body);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    font-size: var(--text-sm);
    font-weight: 500;
}

.footer-col ul li a i {
    font-size: 0.8em;
    margin-right: 10px;
    color: var(--secondary-teal);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-col ul li a:hover i {
    color: var(--primary-blue);
}

.footer-col .contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-body);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.footer-col .contact-info li i {
    color: var(--primary-blue);
    margin-top: 4px;
    font-size: 1rem;
}

.emergency-badge {
    margin-top: var(--space-6);
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: var(--space-4);
    position: relative;
    overflow: hidden;
}

.emergency-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-orange);
}

.emergency-badge p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-heading);
    font-weight: 600;
}

.emergency-badge p i {
    color: var(--accent-orange);
    margin-right: 8px;
}

.emergency-badge .emergency-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-orange);
    margin-top: 8px;
    letter-spacing: 0.5px;
    display: block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom .copyright {
    font-size: var(--text-xs);
    color: var(--text-body);
}

.footer-bottom .legal-links {
    display: flex;
    gap: 20px;
}

.footer-bottom .legal-links a {
    color: var(--text-body);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: var(--transition);
    font-weight: 600;
}

.footer-bottom .legal-links a:hover {
    color: var(--primary-blue);
}

/* Light Mode Footer Details */
body.light-mode .hospital-footer {
    background: #FFFFFF;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-mode .hospital-footer .footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-mode .footer-brand .social-icons a {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-heading);
}

body.light-mode .footer-brand .social-icons a:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

body.light-mode .emergency-badge {
    background: rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .hospital-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8) var(--space-6);
    }
}

@media (max-width: 768px) {
    .hospital-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .footer-col h3 {
        margin-bottom: var(--space-4);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: var(--space-8);
    }

    .footer-bottom .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Footer Credit */
.footer-credit {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-body);
    letter-spacing: 0.5px;
    padding: 0;
    margin: 0;
}

.footer-brand-logo {
    max-height: 55px;
    width: auto;
    margin-bottom: var(--space-3);
    border-radius: 6px;
}

.credit-logo {
    height: 16px;
    width: auto;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 2px;
}

.footer-credit i.fa-heart {
    color: #e74c3c;
    font-size: 0.7rem;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
    margin: 0 3px;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.footer-credit a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.footer-credit a:hover {
    color: var(--secondary-teal);
    text-decoration: underline;
}


/* ============================================
   EXTRACTED INLINE STYLES FROM PHP TEMPLATES
   ============================================ */

/* --- SINGLE DOCTOR PROFILE PAGE --- */
.doctor-single-profile {
    padding: 0 0 60px;
}

.doctor-single-hero {
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.doctor-single-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(0, 168, 168, 0.05));
    z-index: 0;
}

.doctor-single-hero .container {
    position: relative;
    z-index: 1;
}

.doctor-breadcrumb {
    margin-bottom: 40px;
    font-size: 0.85rem;
    opacity: 0.6;
}

.doctor-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.doctor-breadcrumb .current {
    color: var(--primary-blue);
}

.doctor-profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
}

.doctor-photo-wrap {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
}

.doctor-photo-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.doctor-photo-placeholder {
    height: 420px;
    background: #1a203c;
}

.doctor-quick-info {
    padding: 30px;
    border-radius: 20px;
}

.doctor-quick-info h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.doctor-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.doctor-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.doctor-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.doctor-info-label {
    opacity: 0.6;
    font-size: 0.85rem;
}

.doctor-info-value {
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.doctor-info-value.teal {
    color: var(--secondary-teal);
}

.doctor-contact-card {
    padding: 25px;
    border-radius: 20px;
    margin-top: 20px;
}

.doctor-contact-card h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.doctor-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.doctor-contact-item:last-child {
    margin-bottom: 0;
}

.doctor-contact-item i {
    color: var(--primary-blue);
}

.doctor-contact-item i.teal {
    color: var(--secondary-teal);
}

.doctor-contact-item a {
    color: inherit;
    text-decoration: none;
}

.doctor-details-col .premium-badge {
    display: inline-block;
    margin-bottom: 12px;
}

.doctor-name-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 6px 0 10px;
    letter-spacing: -1px;
}

.doctor-rating-wrap {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.doctor-stars {
    display: flex;
    gap: 4px;
    color: #FFD700;
}

.doctor-rating-text {
    opacity: 0.6;
    font-size: 0.9rem;
}

.doctor-specialty-text {
    opacity: 0.75;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.doctor-bio-section {
    margin-bottom: 30px;
}

.doctor-action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.doctor-action-buttons .btn {
    padding: 16px 40px;
    border-radius: 50px;
}

.doctor-action-buttons .btn i {
    margin-right: 10px;
}

.doctor-education-section {
    margin-bottom: 40px;
}

.doctor-section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}

.doctor-section-title.teal {
    border-bottom-color: var(--secondary-teal);
}

.doctor-section-title.orange {
    border-bottom-color: var(--accent-orange);
}

.doctor-education-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doctor-education-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.doctor-education-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doctor-education-icon.blue {
    background: rgba(30, 136, 229, 0.1);
    color: var(--primary-blue);
}

.doctor-education-icon.teal {
    background: rgba(0, 168, 168, 0.1);
    color: var(--secondary-teal);
}

.doctor-education-icon.orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
}

.doctor-education-text p {
    opacity: 0.6;
    font-size: 0.85rem;
    margin-top: 3px;
}

.doctor-specializations-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doctor-spec-tag {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.doctor-spec-tag.blue {
    background: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.doctor-spec-tag.teal {
    background: rgba(0, 168, 168, 0.1);
    border: 1px solid rgba(0, 168, 168, 0.2);
}

.doctor-spec-tag.orange {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.doctor-schedule-grid {
    display: grid;
    gap: 15px;
}

.doctor-schedule-grid.cols-1 {
    grid-template-columns: 1fr;
}

.doctor-schedule-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.doctor-schedule-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.doctor-schedule-card {
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.doctor-schedule-card strong {
    display: block;
    margin-bottom: 5px;
}

.doctor-schedule-card strong.blue {
    color: var(--primary-blue);
}

.doctor-schedule-card strong.teal {
    color: var(--secondary-teal);
}

.doctor-schedule-card strong.orange {
    color: var(--accent-orange);
}

.doctor-schedule-card span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.doctor-back-btn {
    margin-top: 30px;
}

.doctor-back-btn i {
    margin-right: 10px;
}

/* --- ARCHIVE DOCTORS PAGE --- */
.doctor-archive-hero {
    padding: 100px 0 60px;
    text-align: center;
}

.doctor-archive-hero h1 {
    font-size: 3.2rem;
    margin: 15px 0 20px;
}

.doctor-archive-hero p {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.75;
    font-size: 1.05rem;
}

.doctor-archive-section {
    padding: 0 0 80px;
}

.doctors-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.doctor-archive-card {
    overflow: hidden;
}

.doctor-archive-card a.thumb-link {
    display: block;
    height: 280px;
    overflow: hidden;
}

.doctor-archive-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-archive-card .content {
    padding: 22px;
}

.doctor-archive-card h2 {
    margin: 0 0 10px;
}

.doctor-archive-card h2 a {
    color: #1a203c;
    text-decoration: none;
}

.doctor-archive-card p {
    opacity: 0.65;
}

.doctor-archive-card .btn {
    margin-top: 15px;
    display: inline-block;
}

.doctor-archive-pagination {
    margin-top: 40px;
    text-align: center;
}

/* --- GALLERY PAGE --- */
.gallery-page-wrap {
    background: var(--bg-deep, #0A0F1A);
    padding: 80px 0;
}

.gallery-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-page-title {
    font-size: 3.5rem;
    color: #fff;
    margin: 0;
}

.gallery-page-title .highlight {
    color: #1E88E5;
}

.gallery-page-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gallery-page-count {
    color: #888;
    font-size: 0.9rem;
}

.gallery-view-all-btn {
    border-radius: 50px;
    padding: 10px 25px;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.gal-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

.gal-sidebar {
    position: sticky;
    top: 120px;
}

.gal-sidebar h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.gal-sidebar ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.cat-btn.active {
    background: #1E88E5;
    color: #fff;
    border-color: #1E88E5;
}

.gal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gal-card {
    border-radius: 20px;
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gal-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.gal-img-wrap {
    height: 200px;
    position: relative;
}

.gal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gal-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FF6B35;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.gal-badge.badge-blue {
    background: #1E88E5;
}

.gal-badge.badge-teal {
    background: #00A8A8;
}

.gal-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gal-sub {
    color: #1E88E5;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.gal-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.gal-desc {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex: 1;
}

.gal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.gal-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.75rem;
    font-weight: 600;
}

.gal-meta i {
    color: #1E88E5;
}

.gal-meta i.gold {
    color: #FFD700;
}

.btn-view {
    background: transparent;
    border: 1px solid rgba(30, 136, 229, 0.3);
    color: #1E88E5;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-view:hover {
    background: rgba(30, 136, 229, 0.1);
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    text-align: center;
    color: #fff;
    margin-top: 20px;
    padding: 0 20px;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.lightbox-desc {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
}

/* --- FRONT PAGE INLINE STYLES --- */
.hero-bg-video {
    opacity: 0.35;
}

.hero-bg-overlay {
    opacity: 1;
}

.about-grid-dynamic {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.about-card-icon-colored {
    color: var(--primary-blue);
}

.services-steps-grid-dynamic {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-step-icon-colored {
    color: var(--primary-blue);
}

.service-step-link-colored {
    color: var(--primary-blue);
}

.bento-tile-hero-single {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-tile-wide-single {
    grid-column: span 1;
    grid-row: span 1;
}

.detailed-services-line-colored {
    background: #5ba3b8;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1200px) {
    .doctor-name-title {
        font-size: 2.8rem;
    }

    .gallery-page-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .doctor-profile-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .doctor-photo-wrap {
        max-width: 400px;
        margin: 0 auto 30px;
    }

    .doctor-action-buttons {
        flex-direction: column;
    }

    .doctor-action-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .doctor-schedule-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gal-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gal-sidebar {
        position: static;
    }

    .gal-sidebar ul {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .gal-sidebar li {
        flex: 1 1 auto;
        min-width: 150px;
    }

    .cat-btn {
        text-align: center;
    }

    .gal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .doctor-single-hero {
        padding: 60px 0 40px;
    }

    .doctor-name-title {
        font-size: 2rem;
        text-align: center;
    }

    .doctor-specialty-text {
        text-align: center;
    }

    .doctor-rating-wrap {
        justify-content: center;
    }

    .doctor-schedule-grid.cols-3,
    .doctor-schedule-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .doctor-archive-hero h1 {
        font-size: 2.2rem;
    }

    .gallery-page-wrap {
        padding: 40px 0;
    }

    .gallery-page-title {
        font-size: 1.8rem;
    }

    .gallery-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .gallery-page-actions {
        width: 100%;
        justify-content: space-between;
    }

    .gal-grid {
        grid-template-columns: 1fr;
    }

    .gal-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .gal-sidebar h3 {
        font-size: 1rem;
    }

    .gal-sidebar ul {
        gap: 8px;
    }

    .cat-btn {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .gal-title {
        font-size: 1.1rem;
    }

    .gal-desc {
        font-size: 0.8rem;
    }

    .gal-img-wrap {
        height: 180px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-title {
        font-size: 1.2rem;
    }

    .lightbox-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .doctor-name-title {
        font-size: 1.5rem;
    }

    .doctor-photo-wrap img {
        height: 300px;
    }

    .doctor-education-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .doctor-specializations-tags {
        justify-content: center;
    }

    .doctor-archive-hero h1 {
        font-size: 1.8rem;
    }

    .gallery-page-title {
        font-size: 1.5rem;
    }

    .gal-content {
        padding: 20px;
    }

    .gal-meta {
        flex-direction: column;
        gap: 8px;
    }

    .gal-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .gal-img-wrap {
        height: 160px;
    }

    .gal-card {
        max-width: 100%;
    }
}

/* Animation for gallery filter */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Hero Features List */
.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.9);
}

.hero-feature-item i {
    font-size: 20px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

body.light-mode .hero-feature-item {
    color: var(--text-dark);
}

@media screen and (max-width: 768px) {
    .hero-features-list {
        margin: 15px 0 20px 0;
        gap: 15px;
        flex-direction: column;
    }

    .hero-feature-item {
        font-size: var(--text-sm);
    }

    .hero-feature-item i {
        font-size: 18px;
    }
}


/* ============================================
   MERGED FROM main.css — UNIQUE RULES ONLY
   ============================================ */

/* Universal Reset (from main.css) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Keen Slider Professional Overrides */
.keen-slider {
    overflow: hidden !important;
    touch-action: pan-y;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    display: flex;
}

.keen-slider__slide {
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    padding: 0;
    margin: 0;
}

/* Specific Fix for Inspiring Stories Overlap Slider (1 per view) */
#stories-overlap-slider .keen-slider__slide {
    min-width: 100% !important;
    max-width: 100% !important;
}

/* Testimonial Card Styles */
.testimonial-container {
    padding-top: 60px;
    position: relative;
}

.testimonial-card-new {
    background: #fff;
    border-radius: 15px;
    padding: 60px 30px 40px;
    text-align: center;
    position: relative;
    margin-top: 40px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar-new {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #eee;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid var(--bg-deep);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-stars {
    color: #FFD700;
    margin: 15px 0;
    font-size: 1.2rem;
}

.testimonial-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1a203c;
}

.testimonial-role {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Slider Arrows (from main.css) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #fff;
    transition: 0.3s;
}

.slider-arrow:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.slider-arrow.left {
    left: 20px;
}

.slider-arrow.right {
    right: 20px;
}

/* Bento Grid (unique tile sizes from main.css) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 25px;
    margin-top: 50px;
}

.bento-tile {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 280px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.bento-tile:hover {
    transform: scale(1.02) translateY(-10px);
    border-color: var(--primary-blue);
}

.tile-hero {
    grid-column: span 2;
    grid-row: span 2;
}

.tile-wide {
    grid-column: span 2;
}

.tile-tall {
    grid-row: span 2;
}

.tile-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.tile-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Stats Pulse Bar */
.pulse-ticker {
    display: flex;
    justify-content: space-around;
    background: var(--glass-bg);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

/* Doctors Directory Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.doctor-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.doctor-dept {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--secondary-teal);
    font-weight: 700;
}

/* Service Number Cards */
.service-number-card {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-number-card .num {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.1;
    color: var(--secondary-teal);
}

.service-number-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--secondary-teal);
}

/* Overlap Booking */
.overlap-booking {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    margin-top: -100px;
    position: relative;
    z-index: 10;
    color: #fff;
}

.quick-contact-box {
    background: linear-gradient(135deg, var(--secondary-teal), var(--primary-blue));
    color: #fff;
    border-radius: 20px;
    padding: 40px;
}

.overlap-booking input,
.overlap-booking select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
}

/* Timeline (About page) */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-year {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
}

/* Glass Card Base */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
}

/* Navigation Padding */
.site-content {
    padding-top: 0;
}

body:not(.home) .site-content {
    padding-top: 80px;
}

/* WP Admin Bar Fix */
body.admin-bar header,
body.admin-bar .site-header {
    top: 32px;
}

body.admin-bar .glow-container,
body.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {

    body.admin-bar header,
    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar .glow-container {
        top: 46px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

/* --- COMPREHENSIVE RESPONSIVE OVERRIDES (merged from main.css) --- */

@media screen and (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-grid-prof {
        flex-wrap: wrap;
        gap: 30px;
    }

    .stat-item-prof {
        width: calc(50% - 15px);
        border-left: none;
        padding-left: 0;
    }

    .timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }
}

@media screen and (max-width: 768px) {

    /* Header Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        color: inherit;
        cursor: pointer;
        font-size: 1.2rem;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--header-bg);
        backdrop-filter: blur(20px);
        padding: 20px 0;
        border-top: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-bottom: 20px;
    }

    .header-actions .btn-primary {
        display: none;
    }

    /* Overlapping booking form */
    .overlap-booking {
        margin-top: -50px;
        padding: 30px 20px;
        border-radius: 16px;
    }

    /* Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto;
        margin-top: 30px;
    }

    .tile-hero,
    .tile-wide,
    .tile-tall {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .bento-tile {
        padding: 25px;
        min-height: 200px;
    }

    /* Override Inline PHP Grids */
    .about-grid,
    .services-steps-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stat blocks */
    .pulse-ticker {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
        border-radius: 20px;
    }

    .stat-item-prof {
        width: 100%;
        text-align: center;
    }

    /* Testimonials */
    .testimonial-card-new {
        padding: 50px 20px 30px;
        margin-top: 50px;
    }

    /* Doctor Cards */
    .doctors-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .stat-value {
        font-size: 2.5rem;
    }
}