/* 
 * Global Health Care Hospital - Premium Professional Medical Design System
 * Architecture: Structured, Authoritative, Clinical
 * Fonts: Lora (Headings - Serif), Inter (Body - Sans)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lora:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
    /* Clinical Color Palette */
    --primary: #0f172a;      /* Trust Navy */
    --secondary: #2563eb;    /* Medical Blue */
    --accent: #ef4444;       /* Emergency Red */
    --success: #10b981;      /* Health Green */
    
    /* Neutral Shades */
    --bg-main: #ffffff;
    --bg-soft: #f8fafc;      /* Clinical Slate */
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #475569; /* Darkened for better readability */
    
    /* Soft Backgrounds for Icons */
    --primary-soft: rgba(37, 99, 235, 0.1);
    --danger-soft: rgba(239, 68, 68, 0.1);
    --success-soft: rgba(16, 185, 129, 0.1);
    
    /* Typography Tokens */
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout Tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    scroll-behavior: smooth;
}

.page-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #22c55e;
    border-radius: 50%;
    animation: status-pulse 1.5s infinite ease-out;
}

@keyframes status-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3.5); opacity: 0; }
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.62;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--primary);
}

/* Layout Components */
section {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1200px;
}

.bg-soft {
    background-color: var(--bg-soft);
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary);
    border-radius: 100px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-title {
    font-size: clamp(2.25rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .text-nowrap-lg {
        white-space: nowrap !important;
    }
}

/* Navigation */
.navbar {
    padding: 0.8rem 0;
    transition: background-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
    background-color: rgba(255, 255, 255, 0);
}

.navbar.scrolled {
    background-color: #ffffff !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    display: flex !important;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.navbar-brand img {
    height: 55px;
    transition: transform 0.3s ease;
}

.brand-text {
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-text .brand-top {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.brand-text .brand-middle {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--secondary);
    margin-top: 1px;
}

.brand-text .brand-bottom {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.9;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .brand-text .brand-top { font-size: 0.9rem; }
    .brand-text .brand-middle { font-size: 0.65rem; }
    .brand-text .brand-bottom { font-size: 0.65rem; }
}

.footer-logo-badge {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 15px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    gap: 25px;
}

.footer-logo-badge img {
    height: 85px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .footer-logo-badge {
        padding: 10px 20px;
        gap: 15px;
    }
    .footer-logo-badge img {
        height: 60px;
    }
}

/* Brand text is now always visible but scaled for mobile */

.nav-link {
    font-weight: 600;
    color: var(--primary) !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.95rem;
}

.nav-link.active {
    color: var(--secondary) !important;
}

/* Professional Cinematic Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
}

/* Cinematic Shine Sweep Animation */
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.05) 45%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0.05) 55%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(30deg);
    animation: shine-sweep 6s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes shine-sweep {
    0% { transform: translateX(-150%) rotate(30deg); }
    30%, 100% { transform: translateX(150%) rotate(30deg); }
}

.medical-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 2px solid rgba(255, 255, 255, 0.8); /* Light catch */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.medical-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-soft);
}

/* Cinematic Portrait & Premium Badge */
.img-shade-wrapper {
    position: relative;
    display: inline-block;
    padding-right: 20px; /* Space for the right glow */
}

.img-shade-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.shaded-img {
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    position: relative;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-shade-wrapper:hover .shaded-img {
    transform: scale(1.02);
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.18);
}

/* Pure Glass Executive Card - The Final Professional Standard */
.clinical-seal {
    position: absolute;
    bottom: 35px;
    left: -20px;
    z-index: 10;
    
    /* Layout: Symmetric Professional Card */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    min-width: 260px;
    
    /* Material: Elite Glassmorphism */
    background: rgba(255, 255, 255, 0.35); /* Soft Crystal Tint */
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    
    /* Form Factor: Symmetric Rounded Rectangle */
    border-radius: 12px; 
    border: 1.5px solid rgba(255, 255, 255, 0.8); /* Refined Glass Border */
    
    /* Dimensional Depth */
    box-shadow: 
        0 15px 35px -5px rgba(0, 0, 0, 0.1),
        0 8px 15px -8px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    
    animation: glass-card-float 6s infinite ease-in-out;
}

/* The High-Resolution Authority Icon */
.clinical-seal i {
    font-size: 1.35rem;
    color: #2563eb; /* Primary Trust Blue */
    width: 38px;
    height: 38px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* Matching the card aesthetic */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Clear, Single-Layer Typography (Zero Overlap) */
.clinical-seal span {
    display: block;
    color: #0f172a; /* Professional Slate */
    font-weight: 800;
    font-size: 0.75rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Hard reset for all previous overlap-causing text injections */
.clinical-seal::before,
.clinical-seal::after,
.clinical-seal span::before,
.clinical-seal span::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
}

@keyframes glass-card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0 !important;
}

.navbar.scrolled .navbar-brand img {
    height: 50px;
}

/* Atmospheric Logo Shade Effects */
.logo-shade {
    position: relative;
    overflow: hidden;
}

.logo-shade::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

.logo-shade-right::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-soft);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        border-radius: 16px;
    }
    section {
        padding: 60px 0;
    }
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.btn-coral {
    background: #FF8A65;
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(255, 138, 101, 0.3);
}

.btn-coral:hover {
    background: #f4511e;
    color: white;
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(37, 99, 235, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #2563eb;
    font-weight: 700;
}

.btn-glass:hover {
    background: rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
}

.btn-outline {
    border: 2px solid var(--border);
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Forms */
.form-control, .form-select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--bg-soft);
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    border-color: var(--secondary);
    background-color: white;
}

/* The Clinical Compass (Custom Cursor) */
#cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.1s ease-out;
}

#cursor-ring {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(13, 110, 253, 0.3); /* Navy hint */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Interactive States */
.cursor-hover #cursor-ring {
    width: 80px;
    height: 80px;
    border-color: var(--secondary);
    background: rgba(255, 107, 107, 0.05); /* Coral hint */
}

.cursor-magnetic #cursor-ring {
    width: 100px;
    height: 100px;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.2);
    border-width: 2px;
}

/* Medical Heartbeat Animation */
@keyframes cursor-heartbeat {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.6; }
}

.cursor-idle #cursor-ring {
    animation: cursor-heartbeat 3s infinite ease-in-out;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 40px;
}

footer img {
    height: 80px;
    width: auto;
}

footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: white;
}

.footer-muted {
    color: rgba(255,255,255,0.6) !important;
}

.text-white-strong {
    color: rgba(255,255,255,0.9) !important;
}

/* Assistant Widget */
.parent-assistant-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.assistant-btn {
    width: 56px;
    height: 56px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: none;
    box-shadow: var(--shadow-lg);/* Cinematic Light Leak Atmosphere */
.light-leak {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0) 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    animation: light-leak-drift 15s infinite alternate ease-in-out;
}

@keyframes light-leak-drift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(-10%, 10%) scale(1.2); opacity: 0.8; }
}
    cursor: pointer;
}

.assistant-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    border: 1px solid var(--border);
}

.assistant-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.premium-gap {
    margin-top: 8rem !important; /* Balanced premium spacing */
}

.hero-excellence {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: -100px;
    padding-top: 100px;
}

.hero-excellence h1 {
    font-size: clamp(2rem, 6vw, 3.25rem) !important;
    line-height: 1.1;
    margin-bottom: 1rem !important;
}

.hero-excellence .glass-card {
    transform: translateY(-40px); /* Lift card to clear scroll icon */
}

@media (max-width: 991px) {
    .hero-excellence {
        height: auto;
        min-height: 100vh;
        margin-top: -100px;
        padding-top: 100px;
        padding-bottom: 120px; /* Space for scroll indicator */
    }
    .hero-excellence .glass-card {
        margin: 0 15px;
        transform: translateY(0);
    }
}

/* Cinematic Light Leak Overlay */
.hero-excellence::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 138, 101, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Floating Medical Tokens */
.medical-token {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: float-slow 15s infinite ease-in-out;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    33% { transform: translateY(-50px) translateX(30px) scale(1.1); }
    66% { transform: translateY(20px) translateX(-20px) scale(0.9); }
}

.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2.5rem 4rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 10;
}

/* Glass Card Glowing Border Effect */
.glass-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent, rgba(37, 99, 235, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.text-blue-strong {
    color: #2563eb;
    font-family: var(--font-heading);
    font-style: italic;
}

.hero-tag {
    color: var(--secondary);
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 800;
    padding-left: 20px;
    border-left: 2px solid var(--secondary);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 15px;
    }
}

.scroll-indicator:hover { opacity: 1; }

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #ffffff;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #ffffff;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite ease-in-out;
}

@keyframes scroll-wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

.text-hospital-navy {
    color: #0f172a !important;
}

.img-shade-wrapper {
    position: relative;
    display: inline-block;
    padding: 0 25px 25px 0; /* Space for the shade offset */
    z-index: 1;
}

.img-shade-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    height: 90%;
    background: #eef2ff; /* The light blue shade from the image */
    border-radius: 80px;
    z-index: -1;
    transform: translate(12px, 12px); /* Tighter offset effect */
}

.shaded-img {
    border-radius: 80px !important; /* Premium ultra-rounded corners */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    section { padding: 50px 0; }
    .hero-section { padding-top: 100px !important; }
    .premium-gap { margin-top: 4rem !important; }
    .hero-title { font-size: 2.25rem; }
    .img-shade-wrapper { padding: 0 15px 15px 0; }
    .shaded-img { border-radius: 40px !important; }
}

@media (max-width: 576px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .hero-title { font-size: 2rem; }
    .lead { font-size: 1rem; }
    .btn { width: 100%; margin-bottom: 10px; }
    .navbar-brand img { height: 50px; }
}

/* Animations */
[data-aos-reveal] {
    /* Baseline visibility ensure content isn't hidden if JS fails */
    opacity: 1;
}

/* Emergency Styles */
.text-accent { color: var(--accent) !important; }
.bg-danger { background-color: var(--accent) !important; }
.border-danger { border-color: var(--accent) !important; }

.top-bar {
    background: linear-gradient(90deg, #ff5f6d 0%, #ffc371 100%);
    padding: 8px 0;
    color: white;
    font-size: 0.85rem;
    z-index: 1050;
}

.top-bar i {
    margin-right: 8px;
}

/* Invert Logo in Footer */
.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); }

/* Logo Shade Background Utility */
.logo-shade {
    position: relative;
    overflow: hidden;
}

.logo-shade::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 80%;
    background-image: url('../images/logo-shade.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    filter: grayscale(1) brightness(1.1);
    transition: all 0.5s ease;
}

/* Right-Aligned Variant (Desktop Only) */
@media (min-width: 992px) {
    .logo-shade-right::before {
        left: auto;
        right: -8%; /* Bleed off the right edge for premium depth */
        transform: translateY(-50%);
        width: 48%; /* Slightly larger for better hero presence */
        opacity: 0.12; /* Slightly higher for visibility in lighter heroes */
    }
}

/* Neat & Clean Mobile Presentation */
@media (max-width: 991px) {
    .logo-shade::before {
        width: 50%;
        height: 50%;
        opacity: 0.05;
        top: 60%; /* Push down slightly for readability */
    }
}

.logo-shade > .container {
    position: relative;
    z-index: 1;
}

/* Contact Icon Stylings */
.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.bg-primary-soft { background-color: var(--primary-soft); color: var(--secondary) !important; }
.bg-danger-soft { background-color: var(--danger-soft); color: var(--accent) !important; }
.bg-success-soft { background-color: var(--success-soft); color: var(--success) !important; }

/* Clinical Excellence Seal */


/* Authorized Signature Style */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');
.signature-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2.25rem;
    color: var(--secondary);
    opacity: 0.9;
    display: block;
    margin-top: -10px;
    transform: rotate(-2deg);
}

/* Medical Trust Marquee Section */
.trust-marquee-section {
    padding: 100px 0;
    background-color: var(--bg-soft);
    border-top: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.trust-marquee-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.trust-marquee-header .section-tag {
    display: inline-block;
    padding: 8px 24px;
    background: var(--primary-soft);
    color: var(--secondary);
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 25px;
}

.trust-marquee-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.trust-marquee-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 40px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    gap: 40px;
    min-width: 100%;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 40px)); }
}

.trust-card {
    flex: 0 0 auto;
    width: 240px;
    height: 120px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    filter: none;
    opacity: 1;
}

.trust-card:hover {
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
    transform: translateY(-8px) scale(1.05);
}

.trust-card img {
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .trust-marquee-header h2 {
        font-size: 2rem;
    }
    .trust-card {
        width: 180px;
        height: 90px;
        padding: 15px;
    }
    .trust-card img {
        max-width: 130px;
        max-height: 55px;
    }
}

/* Cinematic Infrastructure Bento Gallery */
.gallery-section {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    padding: 100px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 280px);
    gap: 25px;
    margin-top: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    background: var(--bg-soft);
    border: 1px solid rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Bento Layout Logic */
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(1deg);
}

.gallery-meta {
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.gallery-item:hover .gallery-meta {
    transform: translateY(0);
}

/* Lightbox Portal */
#galleryLightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    cursor: zoom-out;
}

#galleryLightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
}

.lightbox-close:hover { 
    opacity: 1; 
    transform: rotate(90deg);
}

@media (max-width: 1200px) {
    .bento-grid {
        grid-template-rows: repeat(2, 280px);
    }
}

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 20px;
    }
    .gallery-item {
        height: 300px;
    }
    .gallery-item.large, .gallery-item.tall, .gallery-item.wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}
