/* ==========================================================================
   Dr. Subhradeb Biswas - Premium ENT Specialist Website Stylesheet
   ========================================================================== */

/* --- Custom Variables & Theme Tokens --- */
:root {
    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Transition speeds */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 16px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.12), 0 15px 25px -10px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px 0 rgba(13, 148, 136, 0.25);
    --shadow-gold-glow: 0 0 15px 0 rgba(251, 191, 36, 0.2);
}

/* --- Dark Theme Variables (Default) --- */
.dark-theme {
    --bg-main: #0a0e16;
    --bg-card: rgba(20, 30, 50, 0.7);
    --bg-glass: rgba(15, 23, 42, 0.65);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #f0f4f8;
    --text-muted: #8b9db0;
    --text-inverse: #0f172a;
    
    --primary: #10a981;
    --primary-hover: #14b8a6;
    --primary-light: rgba(16, 169, 129, 0.12);
    
    --accent-teal: #2dd4bf;
    --accent-gold: #f9a825;
    --accent-gold-dark: #d97706;
    
    --error: #ef4444;
    --success: #10b981;
    
    --gradient-hero: linear-gradient(135deg, #0a0e16 0%, #0d1a2a 100%);
    --gradient-teal: linear-gradient(135deg, #10a981 0%, #0d7f6c 100%);
    --gradient-gold: linear-gradient(135deg, #f9a825 0%, #d97706 100%);
}

/* --- Light Theme Variables --- */
.light-theme {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-inverse: #ffffff;
    
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: rgba(13, 148, 136, 0.1);
    
    --accent-teal: #14b8a6;
    --accent-gold: #d97706;
    --accent-gold-dark: #b45309;
    
    --error: #dc2626;
    --success: #059669;
    
    --gradient-hero: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    --gradient-teal: linear-gradient(135deg, #0d9488 0%, #115e59 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}

/* --- Global Reset & Base Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at top left, rgba(16, 169, 129, 0.12), transparent 18%), radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.08), transparent 22%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 800; }
h3 { font-size: 1.75rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }

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

.footer-email-link {
    color: var(--accent-teal);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    font-weight: 600;
}

.footer-email-link:hover {
    color: var(--primary-hover);
}

/* Footer Phone Call Links */
.footer-phone-link {
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.footer-phone-link:hover {
    color: var(--primary-hover);
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

/* Emergency Contact Link */
.emergency-contact-line {
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: emergencyPulse 2.5s ease-in-out infinite;
}

.emergency-call-link {
    color: #ef4444;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.emergency-call-link:hover {
    color: #f87171;
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

@keyframes emergencyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.15); }
    50% { box-shadow: 0 0 16px 4px rgba(239, 68, 68, 0.2); }
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

ul {
    list-style: none;
}

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

/* --- Reusable Components & Layout Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 650px; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 800px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(16, 169, 129, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-normal), background var(--transition-fast), filter var(--transition-fast);
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.12);
    transition: left var(--transition-fast);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(16, 169, 129, 0.38), inset 0 0 16px rgba(255, 255, 255, 0.12);
    filter: brightness(1.08);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    border: 2px solid rgba(16, 169, 129, 0.45);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 30px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.06);
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
}

.btn-secondary:hover {
    background-color: rgba(16, 169, 129, 0.14);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(16, 169, 129, 0.18);
    border-color: rgba(16, 169, 129, 0.7);
    color: var(--text-main);
}

/* Glassmorphic Panel Cards */
.glass-card {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal), backdrop-filter var(--transition-normal), background var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(16, 169, 129, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.glass-card:hover {
    border-color: rgba(16, 169, 129, 0.3);
    box-shadow: 0 20px 56px rgba(16, 169, 129, 0.2), 0 10px 28px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
    background: rgba(20, 30, 50, 0.85);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Section Header styling */
.section-header {
    margin: 0 auto 80px auto;
    padding: 0 20px;
    max-width: 720px;
}

.section-subtitle {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.75rem;
    color: var(--text-main);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-line {
    width: 80px;
    height: 5px;
    background: var(--gradient-teal);
    margin: 20px auto 0;
    border-radius: 3px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 20px;
}


/* --- Sticky Glass Header (Navbar) --- */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background var(--transition-normal), border var(--transition-normal), padding var(--transition-normal);
    padding: 24px 0;
}

.glass-header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.logo:hover .logo-photo {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.1;
    color: var(--text-main);
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

/* Navbar Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions .nav-cta {
    background: transparent;
    color: var(--text-main);
    box-shadow: none;
    border: 1px solid transparent;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
}

.nav-actions .nav-cta:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

/* Theme Toggle Button */
.theme-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.theme-btn:hover {
    transform: rotate(15deg);
    background-color: rgba(13, 148, 136, 0.25);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
}

/* Hide opposite icon based on theme class */
.dark-theme .sun-icon { display: block; }
.dark-theme .moon-icon { display: none; }
.light-theme .sun-icon { display: none; }
.light-theme .moon-icon { display: block; }

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 180px 0 120px 0;
    background: radial-gradient(circle at top left, rgba(16, 169, 129, 0.14), transparent 25%), linear-gradient(160deg, rgba(10, 14, 22, 0.98) 0%, rgba(8, 12, 24, 0.95) 40%, rgba(10, 16, 32, 0.97) 100%);
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 15%, rgba(249, 168, 37, 0.12), transparent 20%), radial-gradient(circle at 15% 80%, rgba(45, 212, 191, 0.08), transparent 18%);
    pointer-events: none;
}

/* Background Glow Effects */
.background-glows {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    position: absolute;
    top: -10%;
    right: 10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
    filter: blur(50px);
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
    filter: blur(50px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Badge & Texts */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.gold-badge {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-gold-glow);
}

.badge-icon {
    width: 14px;
    height: 14px;
    animation: goldPulse 2s infinite alternate;
}

.sskm-badge {
    background: var(--primary-light);
    border: 1px solid rgba(13, 148, 136, 0.3);
    color: var(--accent-teal);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    animation: slideInDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    animation: slideInUp 0.8s ease-out 0.1s both;
}

.hero-tagline {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.45;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 44px;
    line-height: 1.75;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* Trust Indicators stats bar */
.trust-indicators {
    display: flex;
    align-items: center;
    gap: 24px;
}

.trust-item {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    flex-direction: row;
}

.trust-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary);
    line-height: 1;
}

.trust-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-separator {
    width: 1px;
    height: 35px;
    background-color: var(--border-glass);
}

/* Hero Visual Art (Abstract SVG / CSS Graphic) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-visual-card {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 30px;
    overflow: hidden;
}

.visual-art {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(13, 148, 136, 0.15);
}

.art-circle.outer {
    width: 90%;
    height: 90%;
    animation: rotateCW 60s linear infinite;
}

.art-circle.middle {
    width: 65%;
    height: 65%;
    border: 2px dotted rgba(45, 212, 191, 0.25);
    animation: rotateCCW 40s linear infinite;
}

.art-circle.inner {
    width: 40%;
    height: 40%;
    border: 1px solid rgba(13, 148, 136, 0.4);
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
}

.art-cross {
    width: 50px;
    height: 50px;
    background: var(--gradient-teal);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    z-index: 2;
    animation: floatingArt 4s ease-in-out infinite;
}

.art-cross svg {
    width: 24px;
    height: 24px;
}

.pulse-wave {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-teal);
    opacity: 0;
    z-index: 1;
    animation: wavePulse 3s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Glass Status Overlays in Hero */
.status-overlay {
    position: absolute;
    bottom: 24px;
    left: -20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
    border-radius: 14px;
    max-width: 240px;
}

.status-indicator.online {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 10px 0 var(--success);
    animation: pulseActive 2s infinite;
}

.status-text {
    display: flex;
    flex-direction: column;
}

.status-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.status-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.achievement-tag {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--bg-glass);
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: var(--shadow-md);
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-gold);
    white-space: nowrap;
}

.gold-star {
    width: 16px;
    height: 16px;
    color: var(--accent-gold);
}

    .award-card {
        display: flex;
        align-items: center;
        gap: 16px;
        margin: 24px 0 0;
        padding: 20px 22px;
        background: var(--bg-glass);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
        border-radius: 22px;
        width: min(100%, 760px);
        margin-left: auto;
        margin-right: auto;
    }

    .award-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--accent-teal));
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        box-shadow: 0 12px 32px rgba(16, 169, 129, 0.22);
    }

    .award-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
        color: var(--text-main);
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .award-text p {
        margin: 0;
    }

    .award-text p:first-child {
        font-weight: 700;
    }

    @media (max-width: 768px) {
        .award-card {
            flex-direction: column;
            align-items: flex-start;
            width: 100%;
            padding: 18px 18px;
        }

        .award-icon {
            width: 42px;
            height: 42px;
        }

        .award-text {
            font-size: 0.95rem;
        }
    }
.badges-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.badges-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.badge-item {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    background: var(--primary-light);
    padding: 4px 14px;
    border-radius: 9999px;
    border: 1px solid var(--border-glass);
}

/* --- About Section --- */
.about-section {
    padding: 120px 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 260px;
    border-radius: 40px;
    padding: 4px; /* The border width */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.2);
}

/* The circulating 4-color gradient background */
.about-image-wrapper::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(
        #ff007f 0deg,
        #00f0ff 72deg,
        #ccff00 144deg,
        #ff3c00 216deg,
        #ff00f0 288deg,
        #ff007f 360deg
    );
    animation: rotateBorder 5s linear infinite;
    z-index: 0;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
        filter: hue-rotate(0deg) drop-shadow(0 0 8px rgba(255, 0, 127, 0.7));
    }
    50% {
        filter: hue-rotate(180deg) drop-shadow(0 0 16px rgba(0, 240, 255, 0.95));
    }
    100% {
        transform: rotate(360deg);
        filter: hue-rotate(360deg) drop-shadow(0 0 8px rgba(255, 0, 127, 0.7));
    }
}

.about-backdrop {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background: var(--gradient-teal);
    opacity: 0.15;
    filter: blur(15px);
    z-index: 0;
}

.avatar-illustration {
    width: 100%;
    height: auto;
    border-radius: 36px;
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.doctor-photo {
    width: 100%;
    height: auto;
    border-radius: 36px;
    display: block;
    transition: transform var(--transition-normal) ease;
}

.avatar-illustration:hover .doctor-photo {
    transform: scale(1.04);
}

.avatar-badge {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: var(--text-inverse);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 9999px;
    box-shadow: var(--shadow-sm);
    z-index: 3;
}

/* About bio list styling */
.about-greeting {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.35;
    color: var(--text-main);
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.qualifications-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.qual-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.qual-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qual-icon svg {
    width: 24px;
    height: 24px;
}

.qual-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.qual-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* --- Video Link Section --- */
.videos-section {
    padding: 100px 0;
    background-color: rgba(20, 30, 50, 0.08);
    position: relative;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.video-card {
    display: block;
    padding: 32px;
    border-radius: 18px;
    background: var(--bg-card);
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(16, 169, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.video-card-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(16, 169, 129, 0.12);
    margin-bottom: 22px;
}

.video-card-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.video-card-text {
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- Services Section --- */
.services-section {
    padding: 120px 0;
    background-color: rgba(15, 23, 42, 0.15);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    border-radius: 16px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 169, 129, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-teal);
    opacity: 0;
    transition: opacity var(--transition-normal), width var(--transition-normal);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
    width: 8px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(16, 169, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(20, 30, 50, 0.6);
}

.service-icon-container {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.service-card:hover .service-icon-container {
    background: var(--gradient-teal);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 28px;
    height: 28px;
}

.service-card-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
}

.service-card-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-glass);
    padding-top: 18px;
}

.service-features li {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 800;
}

/* --- Schedule Dashboard Section --- */
.schedule-section {
    padding: 120px 0;
}

.schedule-dashboard {
    overflow: hidden;
}

/* Tabs list styling */
.schedule-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-glass);
    background-color: rgba(9, 13, 22, 0.3);
}

.tab-btn {
    flex: 1;
    padding: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-bottom: 3px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-main);
    background-color: var(--primary-light);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: rgba(13, 148, 136, 0.05);
}

.tab-icon {
    width: 22px;
    height: 22px;
}

/* Tab contents rendering */
.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.4s ease;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.schedule-place-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.schedule-place-location {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.schedule-note {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

.place-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    padding: 14px 20px;
    background-color: var(--primary-light);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.meta-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-top: 4px;
}

.schedule-action-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guidelines-card {
    padding: 24px;
    border-radius: 16px;
    border-color: rgba(251, 191, 36, 0.15);
}

.guidelines-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.guidelines-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guidelines-card li {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    position: relative;
    padding-left: 16px;
}

.guidelines-card li::before {
    content: '•';
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    font-weight: 800;
}

.schedule-cta {
    text-align: center;
}

/* --- Interactive Booking Section --- */
.booking-section {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 169, 129, 0.02) 100%);
}

.booking-card {
    width: 100%;
    max-width: 850px;
    padding: 56px;
}

.booking-header {
    margin-bottom: 48px;
    text-align: center;
}

.booking-card-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.booking-card-subtitle {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Elegant Form Styling */
.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(9, 13, 22, 0.5);
    border: 1.5px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background-color: rgba(9, 13, 22, 0.7);
    box-shadow: 0 0 0 4px rgba(16, 169, 129, 0.1);
}

.date-hint {
    font-size: 0.75rem;
    color: var(--accent-gold);
    display: none;
    margin-top: 4px;
}

.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-privacy input {
    margin-top: 4px;
    accent-color: var(--primary);
}

.form-privacy label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

/* --- Patient Testimonials --- */
.testimonials-section {
    padding: 120px 0;
}

.testimonials-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonials-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--transition-slow) ease, transform var(--transition-slow) ease, visibility var(--transition-slow);
    visibility: hidden;
    background: rgba(16, 169, 129, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(16, 169, 129, 0.1);
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    z-index: 2;
    box-shadow: 0 16px 40px rgba(16, 169, 129, 0.15);
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--primary-light);
    height: 30px;
    margin-top: -20px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-patient {
    display: flex;
    flex-direction: column;
}

.patient-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.patient-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Slider Controls dots and arrows */
.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 0 10px;
    position: relative;
    z-index: 10;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.slider-arrow:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-glass);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.dot:hover {
    background-color: var(--primary-hover);
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* --- FAQs Accordion --- */
.faqs-section {
    padding: 120px 0;
}

.faqs-accordion {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    overflow: hidden;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(20, 30, 50, 0.4);
    transition: all var(--transition-normal);
}

.faq-trigger {
    width: 100%;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    transition: color var(--transition-fast), background var(--transition-fast);
    cursor: pointer;
}

.faq-trigger:hover {
    color: var(--primary);
    background: rgba(16, 169, 129, 0.08);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-normal) ease;
}

.faq-item.active {
    border-color: rgba(16, 169, 129, 0.3);
    box-shadow: 0 8px 24px rgba(16, 169, 129, 0.1);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
}

.faq-panel p {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Appointment Receipt Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 550px;
    padding: 40px;
    position: relative;
    animation: zoomInModal var(--transition-normal) ease;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--text-muted);
    line-height: 1;
    transition: color var(--transition-fast);
}

.close-modal-btn:hover {
    color: var(--text-main);
}

.success-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.success-check {
    width: 32px;
    height: 32px;
}

.modal-success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.modal-success-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.booking-modal-card {
    max-width: 520px;
    padding: 36px 32px;
    border: 1px solid rgba(249, 168, 37, 0.25);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.booking-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 0 auto 26px;
}

.booking-contact-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 22px 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.booking-contact-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.booking-phone-number {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.booking-phone-number:hover {
    color: var(--primary-hover);
}

.booking-contact-note {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-top: 4px;
}

.booking-modal-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

#copy-booking-numbers {
    min-width: 170px;
}

#close-booking-action {
    min-width: 120px;
}

@media (max-width: 700px) {
    .booking-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Printable visual receipt styles */
.receipt-details {
    background-color: rgba(9, 13, 22, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}

.receipt-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px dashed var(--border-glass);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.receipt-header-row h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.receipt-header-row p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.receipt-id-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.id-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.id-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-gold);
    margin-top: 2px;
}

.receipt-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 20px;
}

.receipt-meta-item {
    display: flex;
    flex-direction: column;
}

.receipt-meta-item.full-width {
    grid-column: span 2;
}

.receipt-meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.receipt-meta-val {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-top: 2px;
}

/* SVG QR code checkin layout */
.receipt-qr-section {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-glass);
    padding-top: 16px;
}

.qr-code-svg {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.qr-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.modal-ctas {
    display: flex;
    gap: 16px;
}

.modal-ctas button {
    flex: 1;
}

/* --- Footer --- */
.footer {
    background-color: #040a14;
    border-top: 1px solid var(--border-glass);
    padding: 100px 0 24px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.brand-col .logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.footer-credentials {
    background-color: var(--bg-main);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: 8px;
}

.cred-row {
    display: flex;
    flex-direction: column;
}

.cred-label {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
}

.cred-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.98rem;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-line {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 900px;
}

/* --- Print Styles --- */
@media print {
    body * {
        visibility: hidden;
    }
    #receipt-modal,
    #receipt-modal * {
        visibility: visible;
    }
    #receipt-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: none;
    }
    .modal-ctas,
    .close-modal-btn,
    #modal-done-btn {
        display: none !important;
    }
}

/* --- Dynamic Animations --- */
@keyframes rotateCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCCW {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes floatingArt {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

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

@keyframes pulseActive {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes goldPulse {
    from { filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.4)); }
    to { filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8)); }
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInDown {
    from { 
        opacity: 0;
        transform: translateY(-30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Responsive Adaptations (Media Queries) --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .badge-container {
        justify-content: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .trust-indicators {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-backdrop {
        display: none;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .case-visuals-grid,
    .case-clinical-details {
        grid-template-columns: 1fr;
    }

    .case-img-wrapper {
        min-height: 320px;
    }

    .case-photo {
        height: auto;
    }

    .testimonials-wrapper {
        min-height: 360px;
    }

    .slider-controls {
        justify-content: center;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .container {
        padding: 0 16px;
    }

    .glass-header {
        padding: 14px 0;
    }

    .nav-container {
        padding: 0 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title { font-size: 1.75rem; }
    .hero-title { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.4rem; }
    .hero-tagline { font-size: 1.15rem; }
    .hero-description { font-size: 1rem; }
    .hero-section { padding: 120px 0 60px; }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--bg-main);
        flex-direction: column;
        padding: 32px 20px;
        gap: 22px;
        transition: left var(--transition-normal);
        z-index: 999;
        border-top: 1px solid var(--border-glass);
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-cta {
        display: none; /* Hide in header on small viewports, user can book in page */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-ctas {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .trust-indicators {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .main-visual-card {
        max-width: 360px;
        margin: 0 auto;
        padding: 24px;
    }

    .badge-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .badges-scroll {
        width: 100%;
        justify-content: flex-start;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image-wrapper {
        max-width: 100%;
    }

    .about-greeting {
        font-size: 1.6rem;
    }

    .qual-item {
        gap: 14px;
    }

    .videos-section {
        padding: 80px 0;
    }

    .video-grid {
        gap: 20px;
    }

    .video-card {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .schedule-tabs {
        flex-direction: column;
    }

    .tab-btn {
        padding: 16px;
    }

    .tab-content {
        padding: 24px;
    }

    .testimonials-wrapper {
        min-height: 340px;
        overflow: visible;
    }

    .testimonial-slide {
        padding: 28px 24px;
        position: relative;
        height: auto;
    }

    .testimonial-text {
        font-size: 1rem;
        margin-bottom: 22px;
    }

    .testimonial-slide:not(.active) {
        display: none;
    }

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

    .service-card {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-card {
        padding: 24px;
    }

    .booking-contact-grid {
        grid-template-columns: 1fr;
    }

    .booking-modal-card {
        padding: 28px 24px;
    }

    .case-visuals-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .case-img-wrapper {
        min-height: 300px;
    }

    .case-photo {
        height: auto;
    }

    .case-clinical-details {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .slider-controls {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .testimonial-slide {
        padding: 24px 20px;
    }
}

@media (max-width: 540px) {
    html { font-size: 14px; }

    .hero-section {
        padding: 100px 0 50px;
    }

    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.6rem; }

    .hero-description,
    .section-desc,
    .about-text,
    .video-card-text,
    .contact-line,
    .footer-desc,
    .footer-links a,
    .patient-details {
        font-size: 0.96rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        padding: 22px;
    }

    .nav-container {
        gap: 12px;
    }

    .logo-name {
        font-size: 1rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }

    .menu-toggle {
        gap: 5px;
    }

    .menu-toggle span {
        height: 3px;
    }

    .section-header {
        padding: 0 8px;
    }

    .footer-bottom-container {
        padding: 0 8px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-section {
        padding: 80px 0 40px;
    }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .testimonial-slide {
        padding: 22px 18px;
    }

    .slider-controls {
        flex-direction: column;
        gap: 12px;
    }

    .case-img-wrapper {
        min-height: 240px;
    }

    .case-photo {
        height: auto;
    }

    .case-clinical-details {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .badge-bar-container {
        gap: 12px;
    }
}

/* --- Chambers Layout Additions --- */
.chambers-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.chamber-item-card {
    padding: 36px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chamber-item-card .schedule-place-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.chamber-item-card .schedule-place-location {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.chamber-item-card .schedule-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.chamber-item-card .place-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: auto;
    margin-bottom: 24px;
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
}

.chamber-item-card .place-meta .meta-item {
    padding: 10px 14px;
}

.chamber-item-card .place-meta .meta-val {
    font-size: 0.95rem;
}

.chamber-cta {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* --- Case Studies Section --- */
.cases-section {
    padding: 100px 0;
    position: relative;
    background: var(--bg-main);
}

.case-card-full {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-color: rgba(13, 148, 136, 0.15);
}

.case-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-badge {
    align-self: flex-start;
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.3);
    color: var(--accent-teal);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 9999px;
}

.case-title {
    font-size: 1.75rem;
    color: var(--text-main);
    font-weight: 800;
}

.case-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.case-visuals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 10px 0;
    align-items: start;
}

/* Row layout for three images side-by-side */
.case-row-three {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap; /* keep items on a single line */
}
.case-row-three .case-visual-item {
    flex: 1 1 0%;
    min-width: 0; /* allow flex items to shrink properly */
}
/* make the three-item row span full width of the grid */
.case-row-three { grid-column: 1 / -1; }

/* Ensure the three photos in the row share identical dimensions */
.case-row-three .case-img-wrapper {
    height: 320px; /* fixed height for visual parity */
}
.case-row-three .case-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.case-visual-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    height: 100%;
}

.visual-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-img-wrapper {
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
    background: var(--bg-card);
}

/* Caption for removed material (distinct color) */
.image-caption.removed-caption,
.removed-caption {
    color: var(--accent-teal);
    font-weight: 700;
}

/* Place image captions at the bottom center of the image wrapper */
.case-img-wrapper {
    position: relative;
}

.image-caption {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 5;
}

.image-caption.removed-caption {
    /* keep the distinct accent color but ensure readability */
    background: rgba(255,255,255,0.06);
    color: var(--accent-teal);
}

.case-photo {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform var(--transition-normal);
}

.mirror-case1 {
    transform: scaleX(-1);
}

.case-img-wrapper:hover .case-photo {
    transform: scale(1.03);
}

.case-img-wrapper:hover .case-photo.mirror-case1 {
    transform: scaleX(-1) scale(1.03);
}

.case-clinical-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
}

.detail-col h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive adjustment for mobile viewports */
@media (max-width: 768px) {
    .case-visuals-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .case-row-three {
        display: block;
    }
    .case-row-three .case-img-wrapper {
        height: 380px; /* slightly taller on small screens */
    }
    
    .case-clinical-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-card-full {
        padding: 24px;
    }
    
    .case-photo {
        height: 380px;
    }
}

/* ==========================================================================
   Doctor Portal & Operations Dashboard Premium Styles
   ========================================================================== */

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    border: 1px solid transparent;
}

.status-badge.status-pending {
    background-color: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--accent-gold);
    animation: pulseActive 2s infinite ease-in-out;
}

.status-badge.status-confirmed {
    background-color: rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.3);
    color: var(--accent-teal);
}

.status-badge.status-completed {
    background-color: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.status-badge.status-cancelled {
    background-color: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error);
}

/* Action Control Buttons inside Dashboard */
.action-btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn.btn-confirm {
    background-color: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.25);
    color: var(--accent-teal);
}

.action-btn.btn-confirm:hover {
    background-color: var(--accent-teal);
    color: #ffffff;
    transform: scale(1.05);
}

.action-btn.btn-complete {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--success);
}

.action-btn.btn-complete:hover {
    background-color: var(--success);
    color: #ffffff;
    transform: scale(1.05);
}

.action-btn.btn-cancel {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--error);
}

.action-btn.btn-cancel:hover {
    background-color: var(--error);
    color: #ffffff;
    transform: scale(1.05);
}

.action-btn.btn-delete {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}

.action-btn.btn-delete:hover {
    background-color: #ffffff;
    color: #000000;
    transform: scale(1.05);
}

/* Error Tremor Animation for Incorrect PIN */
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake-animation {
    animation: shakeError 0.4s ease-in-out;
}

/* Table Row Highlights */
.db-row {
    border-bottom: 1px solid var(--border-glass);
    transition: background-color var(--transition-fast);
}

.db-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.db-row td {
    padding: 14px 16px;
    vertical-align: middle;
}

/* ==========================================================================
   Clinical Surgery Photo Viewer Discretion Overlay Styles
   ========================================================================== */
.sensitive-wrapper {
    position: relative;
    cursor: pointer;
}
.sensitive-photo {
    filter: blur(15px);
    transition: filter var(--transition-normal);
}
.sensitive-wrapper.revealed .sensitive-photo {
    filter: blur(0);
}
.sensitive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 13, 22, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    opacity: 1;
    transition: opacity var(--transition-normal);
    z-index: 10;
    padding: 20px;
    text-align: center;
}
.sensitive-wrapper.revealed .sensitive-overlay {
    opacity: 0;
    pointer-events: none;
}
.sensitive-overlay span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--gradient-gold);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    color: var(--text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sensitive-overlay p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

