/* 
  KIPS Hospital - Soft Organic Clinical Design System
  Author: Antigravity AI
  Version: 2.1 (Hardened)
*/

/* ==========================================================================
   [0] CORE SYSTEM
   ========================================================================== */

/* --- Local Fonts --- */
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Design Tokens (:root) --- */
:root {
    /* Color Palette - HSL Calibrated for Premium Depth */
    --p-blue: #2563EB;
    --p-blue-hover: #2563EB;
    --p-blue-light: #F0F7FF;
    --p-pink: #EC4899;
    --p-pink-light: #FFF1F2;
    --p-purple: #8B5CF6;
    --p-purple-light: #F5F3FF;
    --p-mint: #10B981;
    --p-mint-light: #F0FDF4;
    --p-emergency: #B91C1C;
    --p-emergency-glow: rgba(239, 68, 68, 0.4);

    --p-text: #1E293B;
    --p-text-muted: #475569;
    --p-bg: #F8FAFC;
    --p-bg-alt: #F1F5F9;
    --p-white: #FFFFFF;

    /* Spacing & Borders */
    --gap: 8px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Multi-Layered Premium Shadows */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 10px 25px rgba(0, 0, 0, 0.06);
    --shadow-premium: 0 16px 32px rgba(0, 0, 0, 0.07);

    /* Glow Tokens */
    --p-glow-blue: 0 0 15px rgba(59, 130, 246, 0.3);
    --glow-blue: rgba(59, 130, 246, 0.15);
    --glow-purple: rgba(139, 92, 246, 0.15);
    --glow-pink: rgba(236, 72, 153, 0.15);
    --glow-mint: rgba(16, 185, 129, 0.15);

    /* Decorative Glows */
    --p-glow-blue-deep: 0 0 100px rgba(59, 130, 246, 0.1);
    --p-glow-purple-deep: 0 0 100px rgba(139, 92, 246, 0.1);


    /* Typography Scale (UI/UX Pro Max Rule 166/169) */
    --fs-xs: 0.75rem;   /* 12px */
    --fs-sm: 0.875rem;  /* 14px */
    --fs-base: 1rem;    /* 16px */
    --fs-md: 1.125rem;  /* 18px */
    --fs-lg: 1.25rem;   /* 20px */
    --fs-xl: 1.5rem;    /* 24px */
    --fs-2xl: 2rem;     /* 32px */
    --fs-3xl: 2.5rem;    /* 40px */

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Spacing Scale (Rule 150) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-8: 48px;

    /* Touch Target (Rule 86) */
    --touch-target: 44px;

    /* Brand Gradient */
    --brand-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #D946EF 100%);

    /* Timing Tokens */
    --t-base: all 0.3s ease;
    --t-slow: all 0.6s ease;
    --t-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Accessibility: Skip Link --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--p-blue);
    color: white;
    padding: 10px 20px;
    z-index: 10000;
    transition: top 0.3s ease;
    text-decoration: none;
    border-radius: 0 0 10px 10px;
    font-weight: var(--fw-semibold);
}

.skip-link:focus {
    top: 0;
}

/* --- Global Reset & Base --- */
html {
    box-sizing: border-box;
}

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

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--p-bg);
    color: var(--p-text);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
}

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

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: var(--fw-bold);
}

/* --- Interaction (UI/UX Pro Max Rule 86) --- */
.btn, .nav-link, .dropdown-item, .social-links a, .carousel-control {
    min-height: var(--touch-target);
    align-items: center;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
}

/* --- Utility Helpers --- */
.pt-section-offset {
    padding-top: 120px !important;
}

.u-h-220 { height: 220px !important; }
.u-w-60 { width: 60px !important; }
.u-h-60 { height: 60px !important; }
.min-h-3rem { min-height: 3rem !important; }

.bg-surface-soft { background-color: #F9FBFF; }
.bg-gradient-blue { background: var(--brand-gradient) }

.service-card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.service-card-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0.6;
    transition: var(--t-base);
}

.glass-card-premium:hover .service-card-image-wrapper::after {
    opacity: 0.8;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.transition-all { transition: all 0.3s ease !important; }
.transition-6 { transition: all 0.6s ease !important; }

.glass-card-premium:hover .hover-opacity-100-trigger {
    opacity: 1 !important;
}

.hover-opacity-100-trigger {
    transition: all 0.4s ease;
}

.u-h-200 { height: 200px !important; }

.play-btn-circle-sm {
    width: 48px;
    height: 48px;
    background: var(--p-white);
    color: var(--p-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-btn-circle-sm:hover {
    transform: scale(1.15);
    background: var(--p-blue);
    color: var(--p-white);
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.opacity-05 { opacity: 0.05 !important; }
.rotate-12 { transform: rotate(12deg); }

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

@keyframes revealToast {
    0% { transform: translateX(100%) scale(0.9); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes preloader-pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes emergency-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 25px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes emergency-dot-pulse-anim {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.p-pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--p-mint);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    animation: pulse-green 2s infinite;
}

.p-pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: emergency-dot-pulse-anim 1.5s infinite;
}

@keyframes morph-premium {
    0% { border-radius: 45% 55% 65% 35% / 35% 45% 55% 65%; }
    33% { border-radius: 55% 45% 35% 65% / 55% 65% 35% 45%; }
    66% { border-radius: 65% 35% 55% 45% / 45% 35% 65% 55%; }
    100% { border-radius: 45% 55% 65% 35% / 35% 45% 55% 65%; }
}

/* ==========================================================================
   [2] UTILITIES & HELPERS
   ========================================================================== */

/* --- Performance & Core Utilities --- */
.content-auto { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.reveal { opacity: 1; transform: none; transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); will-change: transform, opacity; }
.js .reveal { opacity: 0; transform: translateY(30px); }
.reveal.active { opacity: 1; transform: translateY(0); }
.transition-all { transition: all 0.3s ease-in-out; }
.transition-6 { transition: transform 0.6s ease; }

/* --- Spacing & Padding --- */
.section-padding { padding: 100px 0; }
.common-page-header.section-padding { padding: 45px 0 100px; }
.pt-header-offset { padding-top: 130px !important; }
.pt-section-offset { padding-top: 150px !important; }
.mt-n3 { margin-top: -1rem !important; }
.u-w-300 { width: 300px !important; }
.u-h-300 { height: 300px !important; }
.u-w-400 { width: 400px !important; }
.u-h-400 { height: 400px !important; }
.u-w-600 { width: 600px !important; }
.u-h-600 { height: 600px !important; }
.blur-80 { filter: blur(80px); }
.blur-100 { filter: blur(100px); }
.blur-120 { filter: blur(120px); }

/* --- Typography & Colors --- */
.text-gradient { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-para-large { font-size: 1.25rem; }
.text-blue { color: var(--p-blue) !important; }
.text-emergency { color: var(--p-emergency); }
.bg-surface-soft { background-color: var(--p-bg-alt) !important; }
.bg-opacity-9 { --bs-bg-opacity: 0.9; }
.bg-blue-light, .bg-primary-soft { background-color: var(--p-blue-light) !important; }
.bg-light-soft { background-color: var(--p-bg-alt) !important; }
.bg-purple-soft { background-color: var(--p-purple-light) !important; }
.bg-pink-soft { background-color: var(--p-pink-light) !important; }
.bg-success-soft, .bg-mint-light { background-color: var(--p-mint-light) !important; }
.bg-gradient-blue { background: linear-gradient(135deg, var(--p-blue), var(--p-purple)); }
.text-purple { color: var(--p-purple) !important; }
.text-pink { color: var(--p-pink) !important; }
.text-mint { color: var(--p-mint) !important; }
.bg-primary { background-color: var(--p-blue) !important; }
.bg-purple { background-color: var(--p-purple) !important; }
.opacity-10 { opacity: 0.1 !important; }
.opacity-15 { opacity: 0.15 !important; }
.opacity-20 { opacity: 0.2 !important; }

/* --- Dimensions & Sizing --- */
.max-w-700 { max-width: 700px; }
.max-w-600 { max-width: 600px; }
.min-h-3rem { min-height: 3rem !important; }
.u-w-50 { width: 50px !important; }
.u-h-50 { height: 50px !important; }
.u-w-60 { width: 60px !important; }
.u-h-60 { height: 60px !important; }
.u-w-70 { width: 70px !important; }
.u-h-70 { height: 70px !important; }
.u-w-100 { width: 100px !important; }
.u-h-200 { height: 200px !important; }
.u-h-220 { height: 220px !important; }
.u-h-240 { height: 240px !important; }
.u-h-300 { height: 300px !important; }
.u-h-350 { height: 350px !important; }
.u-h-450 { height: 450px !important; }
.fs-5rem { font-size: 5rem !important; }
.shadow-soft { box-shadow: var(--shadow-soft) !important; }
.line-clamp-2, .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* --- Mobile Horizontal Scroll Row --- */
@media (max-width: 767.98px) {
    .mobile-scroll-row {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .mobile-scroll-row::-webkit-scrollbar {
        display: none;
    }
    .mobile-scroll-row > [class*="col-"] {
        flex: 0 0 85% !important;
        width: 85% !important;
        scroll-snap-align: center;
    }
}

/* --- Positioning & Layering --- */
.z-9999 { z-index: 9999 !important; }
.sticky-top-100 { top: 100px; }
.top-100 { top: 100px !important; }
.pt-section-offset { padding-top: 100px; } /* Offset for sticky nav/emergency strip */

/* --- Image & Border Utilities --- */
.p-img-fit { width: 100%; height: 100%; object-fit: cover; }
.p-avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.no-border { border: none !important; }
.opacity-05 { opacity: 0.05 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-80 { opacity: 0.8 !important; }
.opacity-90 { opacity: 0.9 !important; }
.x-small { font-size: 0.7rem; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important; }
.bg-white-opacity-10 { background: rgba(255, 255, 255, 0.1) !important; }
.border-white-opacity-20 { border: 1px solid rgba(255, 255, 255, 0.2) !important; }
.italic { font-style: italic; }
.max-w-700 { max-width: 700px; }

.small-text-upper { font-size: 0.7rem; letter-spacing: 1px; }

/* --- Selection & Scrollbar --- */
::selection { background: var(--p-blue-light); color: var(--p-blue); }
::-moz-selection { background: var(--p-blue-light); color: var(--p-blue); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--p-bg); }
::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.2); border-radius: 50px; border: 2px solid var(--p-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--p-blue); }

a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.75) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.25) !important;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 100000;
    transform: translateY(-150%);
    background: var(--p-text);
    color: var(--p-white);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus-visible { transform: translateY(0); }

/* ==========================================================================
   [3] LAYOUT COMPONENTS
   ========================================================================== */

/* --- Navbar --- */
.glass-nav { 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    background: rgba(255, 255, 255, 0.8); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}


.navbar-brand img { transition: transform 0.3s ease; width: 135px; }
.navbar-brand:hover img { transform: scale(1.05); }
.navbar-toggler { border: none; background: var(--p-blue-light); border-radius: 12px; padding: 8px 10px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.navbar-toggler:focus { box-shadow: 0 0 0 4px var(--glow-blue); }
.navbar-toggler:active { transform: scale(0.9); }
.navbar-toggler-icon { width: 22px; height: 22px; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2859, 130, 246, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important; }
.navbar-nav .nav-link { color: var(--p-text); font-weight: 600; margin: 0 18px; position: relative; transition: all 0.3s ease; font-size: 0.95rem; letter-spacing: 0.2px; }
button.nav-link { background: transparent; border: 0; }
.nav-link.dropdown-toggle::after { display: none; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 50%; width: 5px; height: 5px; background: var(--p-blue); border-radius: 50%; transform: translateX(-50%) translateY(8px); opacity: 0; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.navbar-nav .nav-link:hover { color: var(--p-blue); }
.nav-link:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

.dropdown-menu-premium { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px); 
    border: 1px solid rgba(255, 255, 255, 0.5); 
    border-radius: var(--radius-sm); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); 
    padding: 12px; 
    min-width: 210px; 
    display: block; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(15px); 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

/* Enable visibility toggling for Bootstrap javascript click events */
.dropdown-menu-premium.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Slick CSS Hover Activations for desktops (width >= 992px) */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu-premium {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Accordion Expandable Dropdowns for Mobile Viewports */
@media (max-width: 991.98px) {
    .dropdown-menu-premium {
        position: static !important;
        float: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(0, 0, 0, 0.02) !important;
        border: none !important;
        border-left: 3px solid var(--p-blue) !important;
        border-radius: 0 !important;
        padding: 8px 12px !important;
        margin: 8px 0 !important;
        display: none;
    }
    .dropdown-menu-premium.show {
        display: block !important;
    }
    .navbar-collapse {
        max-height: 75vh;
        overflow-y: auto;
        padding: 15px 0;
    }
}

.dropdown-item { font-weight: 500; padding: 10px 15px; border-radius: 10px; color: var(--p-text); transition: all 0.2s ease; font-size: 0.95rem; display: flex; gap: 10px; }
.dropdown-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--p-blue); opacity: 0; transform: scale(0); transition: all 0.3s ease; }
.dropdown-item:hover { background: var(--p-blue-light); color: var(--p-blue); padding-left: 18px; }
.dropdown-item:hover::before { opacity: 1; transform: scale(1); }
.arrow-size { font-size: 0.7rem; margin-left: 2px; display: inline-block; transition: transform 0.3s ease; }
.nav-item.dropdown:hover .arrow-size { transform: rotate(180deg); }

/* --- Hero Section --- */
.hero-section { min-height: 90vh; display: flex; align-items: center; background: radial-gradient(circle at top right, var(--p-purple-light), transparent), radial-gradient(circle at bottom left, var(--p-blue-light), transparent); }
.hero-tag { background: var(--p-blue-light); color: #1D4ED8; padding: 8px 16px; border-radius: 50px; font-size: 0.95rem; display: inline-block; margin-bottom: 20px; font-weight: 700; }
.hero-title { font-size: clamp(2.0rem, 5vw, 3.8rem); line-height: 1.25; margin-bottom: 25px; letter-spacing: -1px; }

/* --- Footer --- */
footer.section-padding { background: linear-gradient(180deg, var(--p-white) 0%, var(--p-blue-light) 100%); position: relative; overflow: hidden; border-top: 1px solid rgba(59, 130, 246, 0.05); }
.footer-logo { max-width: 200px; height: auto; transition: transform 0.3s ease; filter: brightness(0.95); }
.footer-logo:hover { transform: scale(1.05); filter: brightness(1); }
.footer-link-premium { color: var(--p-text-muted); text-decoration: none; display: inline-block; transition: all 0.3s ease; font-weight: 500; position: relative; font-size: 0.95rem; margin-bottom: 12px; }
.footer-link-premium:hover { color: var(--p-blue); padding-left: 12px; transform: translateX(5px); }
.footer-link-premium::before { content: ''; position: absolute; left: -5px; top: 50%; width: 5px; height: 5px; background: var(--p-blue); border-radius: 50%; transform: translateY(-50%) scale(0); opacity: 0; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.footer-link-premium:hover::before { opacity: 1; transform: translateY(-50%) scale(1); left: 0; }
.footer-icon-circle { width: 42px; height: 42px; background: var(--p-blue-light); color: var(--p-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; transition: all 0.3s ease; }
.footer-contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; transition: all 0.3s ease; }
.footer-contact-item:hover .footer-icon-circle { background: var(--p-blue); color: var(--p-white); transform: rotate(15deg) scale(1.1); }
.footer-watermark { position: absolute; bottom: -10%; right: -5%; width: 500px; height: 500px; background: url('../images/preloader/preloader.svg') no-repeat center; background-size: contain; pointer-events: none; z-index: 0; }
.social-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 15px; }
.social-links a { width: 44px; height: 44px; border-radius: 12px; background: var(--p-bg-alt); color: var(--p-text-muted); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--t-spring); border: 1px solid rgba(0,0,0,0.03); }
.social-links a:hover { background: var(--p-blue); color: var(--p-white); transform: translateY(-5px) rotate(8deg); border-color: var(--p-blue); box-shadow: 0 10px 20px var(--glow-blue); }
.footer-hr-gradient { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent); margin: 40px 0 25px; opacity: 1; }
.developer-credit {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.08em;
    color: var(--p-text-muted);
}
.developer-link {
    color: var(--p-blue);
    font-weight: var(--fw-bold);
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    transition: var(--t-spring);
    text-decoration: none;
}
.developer-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--brand-gradient);
    transition: var(--t-base);
}
.developer-link:hover::after {
    width: 100%;
}
.developer-link:hover {
    transform: translateY(-1px) scale(1.03);
}
.icon-box { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }


/* ==========================================================================
   [4] UI COMPONENTS
   ========================================================================== */

/* --- Buttons --- */
.btn-premium { background: var(--brand-gradient); color: white; padding: 12px 32px; border-radius: 50px; font-weight: 600; border: none; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2); position: relative; overflow: hidden; z-index: 1; will-change: transform; }
.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(59, 130, 246, 0.24), 0 8px 16px rgba(139, 92, 246, 0.16); color: white; filter: brightness(1.06); }
.btn-premium::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: all 0.6s ease; z-index: -1; }
.btn-premium:hover::after { left: 100%; }

.btn-secondary-soft { border: 2px solid var(--p-purple-light); color: var(--p-purple); padding: 10px 25px; border-radius: 50px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-secondary-soft:hover { background: var(--p-purple-light); transform: translateY(-2px); color: var(--p-purple); }
.btn-blue { background: var(--p-blue); color: var(--p-white); border-color: var(--p-blue); }
.btn-blue:hover { background: var(--p-blue-hover); color: var(--p-white); border-color: var(--p-blue-hover); }
.btn-outline-blue { color: var(--p-blue); border: 1px solid var(--p-blue); background: transparent; }
.btn-outline-blue:hover { color: var(--p-white) !important; background: var(--p-blue); border-color: var(--p-blue); }

/* --- Cards --- */
.glass-card-premium { 
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    border-radius: var(--radius-md); 
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.4); 
    position: relative; 
    overflow: hidden; 
    padding: 25px; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    will-change: transform; 
}
.glass-card-premium.card-full-bleed {
    padding: 0 !important;
}
.glass-card-premium.card-full-bleed .card-body-content {
    padding: 25px;
}
.float-anim { animation: float 6s ease-in-out infinite; }
.float-anim-reverse { animation: float 7s ease-in-out infinite reverse; }
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }
.glass-card-premium:hover .service-icon { transform: scale(1.1) rotate(5deg); }
.hover-lift:hover { transform: translateY(-4px); }
.hover-blue:hover { color: var(--p-blue) !important; }
.hover-scale:hover { transform: scale(1.05); }
.kips-hover-glow-blue,
.kips-hover-glow-purple,
.kips-hover-glow-pink,
.kips-hover-glow-mint {
    /* Keep initial glass border styles intact, transition only the colors on hover */
    transition: border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
.kips-hover-glow-blue:hover { box-shadow: 0 20px 40px var(--glow-blue); border-color: var(--p-blue) !important; }
.kips-hover-glow-purple:hover { box-shadow: 0 20px 40px var(--glow-purple); border-color: var(--p-purple) !important; }
.kips-hover-glow-pink:hover { box-shadow: 0 20px 40px var(--glow-pink); border-color: var(--p-pink) !important; }
.kips-hover-glow-mint:hover { box-shadow: 0 20px 40px var(--glow-mint); border-color: var(--p-mint) !important; }

/* --- Badges & Icons (Hardened Contrast for WCAG AA compliance >= 4.5:1) --- */
.hero-tag.tag-blue, .service-icon.tag-blue, .tag-blue { background: rgba(29, 78, 216, 0.08) !important; color: #1d4ed8 !important; }
.hero-tag.tag-purple, .service-icon.tag-purple, .tag-purple { background: rgba(109, 40, 217, 0.08) !important; color: #6d28d9 !important; }
.hero-tag.tag-pink, .service-icon.tag-pink, .tag-pink { background: rgba(190, 24, 93, 0.08) !important; color: #be185d !important; }
.hero-tag.tag-mint, .service-icon.tag-mint, .tag-mint { background: rgba(4, 120, 87, 0.08) !important; color: #047857 !important; }

.service-link {
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--t-base);
}

.service-link-blue { color: var(--p-blue); }
.service-link-blue:hover { color: var(--p-blue-hover); transform: translateX(5px); }

.service-link-purple { color: var(--p-purple); }
.service-link-purple:hover { opacity: 0.8; transform: translateX(5px); }

.service-link-pink { color: var(--p-pink); }
.service-link-pink:hover { opacity: 0.8; transform: translateX(5px); }

.service-link-mint { color: var(--p-mint); }
.service-link-mint:hover { opacity: 0.8; transform: translateX(5px); }
.service-icon { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-icon-img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }

.badge-premium-floating { position: absolute; background: var(--p-white); display: flex; align-items: center; gap: 12px; z-index: 4; border-radius: var(--radius-sm); padding: 10px 20px; box-shadow: var(--shadow-soft); }
.info-icon-glow { width: 48px; height: 48px; background: var(--p-blue-light); color: var(--p-blue); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: 0 0 20px rgba(74, 144, 226, 0.1); transition: all 0.3s ease; }
.info-icon-glow.color-purple { background: var(--p-purple-light); color: var(--p-purple); box-shadow: 0 0 20px rgba(186, 104, 200, 0.1); }
.info-icon-glow.color-pink { background: var(--p-pink-light); color: var(--p-pink); box-shadow: 0 0 20px rgba(240, 98, 146, 0.1); }
.icon-glow, .icon-glow-sm { display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; filter: blur(40px); }
.icon-glow.color-blue { background: rgba(59, 130, 246, 0.1); }
.icon-glow.color-purple { background: rgba(139, 92, 246, 0.1); }
.icon-glow.color-mint { background: rgba(16, 185, 129, 0.1); }


/* --- Play Button Component --- */
.play-btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    z-index: 5;
}
.play-btn-circle:hover {
    transform: scale(1.15);
}
.play-btn-circle i {
    margin-left: 4px;
}
.icon-glow { width: 52px; height: 52px; font-size: 1.25rem; }
.icon-glow-sm { width: 38px; height: 38px; font-size: 0.95rem; }

/* --- Shapes & Blobs --- */
.organic-shape { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; display: flex; align-items: center; justify-content: center; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.organic-shape:hover { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
.hero-blob-premium { 
    width: 100%; 
    height: auto; 
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; 
    overflow: hidden; 
    transform: rotate(-1deg); 
    box-shadow: 0 28px 72px -24px rgba(74, 144, 226, 0.22); 
    background: var(--p-bg); 
    animation: morph-premium 12s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-blob-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.header-blob-primary { width: 400px; height: 400px; filter: blur(100px); opacity: 0.15; background-color: var(--p-blue) !important; }
.header-blob-purple { width: 300px; height: 300px; filter: blur(80px); opacity: 0.1; background-color: var(--p-purple) !important; }
.shape-blue { background: var(--p-blue-light); }
.shape-purple { background: var(--p-purple-light); }

.shape-blue-pos { top: -10%; left: -5%; width: 40%; height: 60%; transform: rotate(-15deg); }
.shape-purple-pos { bottom: -10%; right: -5%; width: 35%; height: 50%; transform: rotate(20deg); }

/* ==========================================================================
   [5] CAROUSEL SYSTEM
   ========================================================================== */

.carousel-wrapper { 
    position: relative; 
    padding: 20px 45px; 
}

@media (max-width: 767.98px) {
    .carousel-wrapper { 
        padding: 20px 0; 
    }
}

.carousel-container { 
    display: flex; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    gap: 24px; 
    padding: 20px 5px; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    width: 100%; 
    position: relative; 
    align-items: stretch; 
    padding-bottom: 20px; 
    -webkit-overflow-scrolling: touch;
}
.carousel-container::-webkit-scrollbar { display: none; }
.kips-carousel-track { display: flex; gap: 24px; align-items: stretch; width: 100%; }

.kips-carousel-item {
    flex: 0 0 85%;
    width: 85%;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .kips-carousel-item {
        flex: 0 0 48%;
        width: 48%;
    }
}
@media (min-width: 992px) {
    .kips-carousel-item {
        flex: 0 0 32%;
        width: 32%;
    }
}

.carousel-control { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 50px; 
    height: 50px; 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px); 
    border: none; 
    border-radius: 50%; 
    box-shadow: var(--shadow-soft); 
    z-index: 10; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease; 
    color: var(--p-blue); 
}
.carousel-control:hover { background: var(--p-blue); color: white; transform: translateY(-50%) scale(1.1); }
.carousel-control.prev { left: 0; }
.carousel-control.next { right: 0; }

@media (max-width: 767.98px) {
    .carousel-control {
        display: none !important;
    }
}

.carousel-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.indicator { width: 8px; height: 8px; border: 0; padding: 0; border-radius: 50%; background: rgba(75, 85, 99, 0.35); cursor: pointer; transition: all 0.3s ease; }
.indicator.active { width: 24px; border-radius: 4px; background: var(--p-blue); }

/* --- Specific Carousel Overrides --- */
.doctors-carousel-wrapper { position: relative; padding: 20px 45px; }
@media (max-width: 767.98px) {
    .doctors-carousel-wrapper { padding: 20px 0; }
}
.doctors-carousel-prev { left: 0 !important; }
.doctors-carousel-next { right: 0 !important; }
.doctors-carousel-container { padding: 20px 5px !important; }

/* ==========================================================================
   [6] SECTION SPECIFIC STYLES
   ========================================================================== */

/* --- Info Strip --- */
.info-strip-wrapper { position: relative; z-index: 100; margin-top: -50px; margin-bottom: -45px; }
.info-strip-card { background: #ffffff; border-radius: 24px; padding: 30px 40px; box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06); border: 1px solid rgba(0, 0, 0, 0.02); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.info-highlight { display: flex; align-items: center; gap: 15px; }
.info-icon { width: 52px; height: 52px; background: var(--p-blue-light); color: var(--p-blue); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.info-text h6 { margin-bottom: 2px; font-weight: 700; font-size: 1rem; color: var(--p-text); }
.info-text p { margin-bottom: 0; font-size: 0.85rem; color: var(--p-text-muted); }

/* --- Trust Section --- */
.trust-check-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background-color: var(--p-blue-hover) !important; border-radius: 50%; color: white; flex-shrink: 0; }
.trust-stat-info h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 2px; color: var(--p-text); }
.trust-stat-info p { font-size: 0.85rem; font-weight: 600; color: var(--p-text-muted); margin-bottom: 0; }

/* --- Infrastructure --- */
.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.infra-card { position: relative; height: 350px; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-soft); }
.infra-img { transition: var(--t-slow); }
.infra-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); color: white; }
.infra-overlay h4 { margin-bottom: 5px; font-size: 1.25rem; }
.infra-overlay p { font-size: 0.85rem; margin-bottom: 0; opacity: 0.9; }
.infra-card:hover .infra-img { transform: scale(1.1); }

/* --- Testimonials --- */
.testimonial-card { background: white; padding: 40px; border-radius: var(--radius-md); border: 1px solid var(--p-purple-light); box-shadow: var(--shadow-soft); height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.testimonial-text { font-style: italic; font-size: 1.1rem; color: var(--p-text); margin-bottom: 25px; position: relative; }
.testimonial-text::before { content: '"'; font-size: 4rem; position: absolute; top: -20px; left: -10px; color: var(--p-purple-light); font-family: serif; z-index: -1; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.author-img { width: 50px; height: 50px; }
.author-img-placeholder { width: 60px; height: 60px; margin-right: 15px; font-size: 1.5rem; background: var(--p-blue-light); color: var(--p-blue); display: flex; align-items: center; justify-content: center; }

/* --- Blog Section --- */
.blog-card { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.4); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); height: 100%; cursor: pointer; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-premium); border-color: var(--p-blue-light); }
.blog-img-wrapper { overflow: hidden; position: relative; height: 240px; }
.blog-img { transition: var(--t-slow); }
.blog-card:hover .blog-img { transform: scale(1.1); }
.blog-content { padding: 30px; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.blog-badge { padding: 5px 15px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.badge-pediatrics { background: rgba(29, 78, 216, 0.08) !important; color: #1d4ed8 !important; }
.blog-title { font-size: 1.25rem; margin-bottom: 15px; line-height: 1.4; transition: color 0.3s ease; }
.blog-card:hover .blog-title { color: var(--p-blue); }
.read-more-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--p-blue); font-weight: 700; text-decoration: none; font-size: 0.9rem; margin-top: 15px; }
.read-more-btn i { transition: transform 0.3s ease; }
.blog-card:hover .read-more-btn i { transform: translateX(5px); }

/* --- Curved Dividers & Compositions --- */
.section-divider-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 5; }
.section-divider-bottom svg { display: block; width: 100%; height: 60px; }
.divider-white { fill: var(--p-bg); }
.divider-white-alt { fill: var(--p-white); }
.divider-blue { fill: var(--p-bg-alt); }
.divider-purple { fill: var(--p-purple-light); }

.layered-img-composition { position: relative; padding: 40px; }
.img-main { width: 85%; height: auto; border-radius: 40px; position: relative; z-index: 2; box-shadow: var(--shadow-float); }
.img-secondary { position: absolute; bottom: 0; right: 0; width: 39%; height: auto; border-radius: 30px; z-index: 3; border: 8px solid var(--p-white); box-shadow: var(--shadow-soft); animation: float 8s ease-in-out infinite; }
.hero-img-composition-asymmetric { position: relative; padding: 20px; perspective: 1000px; }
.badge-float-tr-alt { top: -10px; right: -40px; }
.badge-float-bl-alt { bottom: 60px; left: -60px; }
.badge-float-br { bottom: 15px; right: 0; }
.badge-about-pos { bottom: 40px; left: -40px; }

@media (min-width: 992px) and (max-width: 1200px) {
    .badge-float-tr-alt {
        right: -10px !important;
    }
    .badge-about-pos {
        left: -10px !important;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 40px !important;
        padding-bottom: 120px !important;
        min-height: auto !important;
        display: block !important;
        text-align: center !important;
    }
    .hero-section .hero-tag {
        display: inline-block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
    .hero-section .hero-title {
        text-align: center !important;
    }
    .hero-section p.lead {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-section .hero-specialities-list {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    .hero-section .hero-specialities-list .badge {
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
    .hero-section .d-flex.flex-wrap {
        justify-content: center !important;
    }
    .badge-premium-floating {
        position: absolute !important;
        padding: 8px 16px !important;
        gap: 8px !important;
        z-index: 10 !important;
        width: max-content !important;
        max-width: 85% !important;
        box-shadow: var(--shadow-soft) !important;
    }
    .badge-premium-floating h6 {
        font-size: 0.85rem !important;
    }
    .badge-premium-floating p {
        font-size: 0.7rem !important;
    }
    .info-icon-glow {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
        border-radius: 8px !important;
    }
    .badge-float-tr-alt {
        top: 15px !important;
        right: 15px !important;
        bottom: auto !important;
        left: auto !important;
    }
    .badge-float-bl-alt {
        bottom: 85px !important;
        left: 15px !important;
        top: auto !important;
        right: auto !important;
    }
    .badge-float-br {
        bottom: 15px !important;
        right: 15px !important;
        top: auto !important;
        left: auto !important;
    }
    .badge-about-pos {
        bottom: 20px !important;
        left: 20px !important;
        top: auto !important;
        right: auto !important;
    }
}

@media (max-width: 576px) {
    .hero-section .d-flex.flex-wrap {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 12px !important;
    }
    .hero-section .btn {
        width: 100% !important;
        justify-content: center;
        text-align: center;
    }
}

/* Missing Micro Typographic Helper */
.x-small {
    font-size: 0.75rem !important;
    font-weight: 500;
}
.badge-google-review { top: -20px; right: 20px; background: white; padding: 12px 20px; border-radius: 50px; box-shadow: var(--shadow-float); display: flex; align-items: center; gap: 10px; z-index: 10; border: 1px solid rgba(0,0,0,0.05); transition: var(--t-spring); cursor: pointer; }
.badge-google-review:hover { transform: translateY(-25px) scale(1.05) !important; box-shadow: var(--shadow-premium); border-color: var(--p-blue); }
.google-icon { color: #4285F4; font-size: 1.2rem; }

/* ==========================================================================
   [7] INTERACTIVE ELEMENTS
   ========================================================================== */

/* --- Preloader --- */
.preloader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #ffffff; display: flex; justify-content: center; align-items: center; z-index: 99999; pointer-events: none; animation: preloader-fade-out 0.4s ease 0.3s forwards; }
@keyframes preloader-fade-out { to { opacity: 0; visibility: hidden; z-index: -1; } }
.preloader-svg { width: 180px; height: auto; animation: preloader-pulse 1.8s ease-in-out infinite; }
.preloader-hidden { opacity: 0; visibility: hidden; }
body.preloader-active { overflow: hidden; }

/* --- Emergency Elements --- */
.emergency-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: var(--p-emergency); color: #fff; border-radius: 50px; text-align: center; font-size: 28px; box-shadow: 0 4px 20px var(--p-emergency-glow); z-index: 1000; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s ease; animation: emergency-pulse 2s infinite; }
.emergency-float:hover { background-color: #DC2626; transform: scale(1.1); color: #fff; }
.emergency-tooltip { position: absolute; right: 75px; background: var(--p-emergency); color: #fff; padding: 8px 15px; border-radius: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.emergency-float:hover .emergency-tooltip { opacity: 1; visibility: visible; right: 80px; }

@media (max-width: 767.98px) {
    .emergency-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .emergency-tooltip {
        display: none !important;
    }
}

.emergency-header-info { display: flex; align-items: center; gap: 12px; }
.emergency-label { font-size: 0.65rem; letter-spacing: 1px; font-weight: 700; text-transform: uppercase; color: var(--p-text-muted); line-height: 1.2; }
.emergency-number { font-size: 1.05rem; font-weight: 700; text-decoration: none; line-height: 1.2; }
.emergency-dot-pulse { width: 10px; height: 10px; background: var(--p-emergency); border-radius: 50%; position: relative; flex-shrink: 0; }
.emergency-dot-pulse::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: inherit; border-radius: inherit; animation: emergency-dot-pulse-anim 1.5s infinite; }

/* --- Video Popup --- */
.video-popup-wrapper { position: fixed; bottom: 30px; left: 30px; width: 260px; z-index: 2000; transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; transform: translateY(100px) scale(0.8); pointer-events: none; }
.video-popup-wrapper.active { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.video-popup-content { padding: 0 !important; overflow: hidden; border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.3); }
.video-container { position: relative; aspect-ratio: 9/16; background: #000; overflow: hidden; }
#testimonial-video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.video-popup-close { position: absolute; top: 15px; right: 15px; z-index: 100; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.2); color: white; width: 32px; height: 32px; border-radius: 50%; backdrop-filter: blur(5px); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.video-popup-close:hover { background: rgba(239, 68, 68, 0.8); transform: rotate(90deg); }
.video-overlay-ui { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); color: white; pointer-events: none; }
.video-audio-btn { position: absolute; bottom: 80px; right: 15px; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.2); color: white; width: 40px; height: 40px; border-radius: 50%; backdrop-filter: blur(10px); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; pointer-events: all; transition: all 0.3s ease; }
.video-audio-btn:hover { background: var(--p-blue); transform: scale(1.1); }
.video-caption { margin-bottom: 0; }
.video-caption p { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.video-caption small { opacity: 0.8; font-size: 0.75rem; }
.video-popup-cta { display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--brand-gradient); color: white; text-decoration: none; font-weight: 700; font-size: 0.85rem; transition: all 0.3s ease; }
.video-popup-cta:hover { background: var(--brand-gradient); color: white; gap: 12px; }

/* --- Video Controls --- */
.video-btn { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-width: 1.5px; }
.video-btn:hover { background: var(--p-blue); color: white !important; transform: translateY(-2px); box-shadow: 0 4px 15px var(--glow-blue); }

/* --- Timeline & Others --- */
.timeline-dot { width: 12px; height: 12px; left: -1.5px !important; }
.scale-09 { transform: scale(0.9); transform-origin: center; }

/* --- About Page Specifics --- */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--t-base);
}

.director-message-card {
    transition: var(--t-base);
}
.director-message-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium) !important;
}

.director-portrait-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    border: 4px solid var(--p-white);
    box-shadow: var(--shadow-float);
    position: relative;
    transition: var(--t-base);
}

.director-portrait-large::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    transition: var(--t-base);
}

.director-message-card:hover .director-portrait-large {
    transform: scale(1.05);
}

.director-message-card:hover .director-portrait-large::after {
    inset: -10px;
    border-color: var(--p-blue-light);
    opacity: 0.5;
}

/* --- Brand Utility Classes --- */
.text-blue { color: #1D4ED8 !important; }
.text-pink { color: #BE185D !important; }
.text-purple { color: #6D28D9 !important; }
.text-mint { color: #059669 !important; }
.text-emergency { color: #DC2626 !important; }

.bg-blue-light { background: var(--p-blue-light) !important; }
.bg-pink-light { background: var(--p-pink-light) !important; }
.bg-purple-light { background: var(--p-purple-light) !important; }
.bg-mint-light { background: var(--p-mint-light) !important; }
.bg-emergency-light { background: var(--p-emergency-light) !important; }

/* Soft Aliases for Contact/Other Pages */
.bg-primary-soft { background: var(--p-blue-light) !important; }
.bg-success-soft { background: var(--p-mint-light) !important; }
.bg-purple-soft { background: var(--p-purple-light) !important; }
.bg-danger-soft { background: var(--p-emergency-light) !important; }

/* --- Alert System --- */
.alert-premium {
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: var(--space-4) !important;
    box-shadow: var(--shadow-soft) !important;
    display: flex !important;
    align-items: center;
    gap: var(--space-3);
    backdrop-filter: blur(10px);
}
.alert-premium.error {
    background: var(--p-emergency-light) !important;
    color: var(--p-emergency) !important;
    border-left: 5px solid var(--p-emergency) !important;
}
.alert-premium i { font-size: 1.5rem; }

/* --- Gradient Utility --- */
.bg-clinical-gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85) 0%, rgba(139, 92, 246, 0.85) 100%) !important;
}

.value-box i {
    transition: var(--t-spring);
}
.value-box:hover i {
    transform: scale(1.2) rotate(10deg);
}

.italic { font-style: italic; }

/* ==========================================================================
   [9] TOAST SYSTEM
   ========================================================================== */

.toast-container { 
    z-index: 100000 !important; 
    padding: var(--space-4);
}

.toast-premium {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-premium) !important;
    overflow: hidden;
    min-width: 320px;
    margin-bottom: var(--space-3);
    animation: toast-slide-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-accent-bar {
    width: 6px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.toast-premium.success .toast-accent-bar { background: var(--p-mint); }
.toast-premium.error .toast-accent-bar { background: var(--p-emergency); }
.toast-premium.info .toast-accent-bar { background: var(--p-blue); }

.toast-premium.success i { color: var(--p-mint); }
.toast-premium.error i { color: var(--p-emergency); }
.toast-premium.info i { color: var(--p-blue); }

.toast-content-wrapper {
    padding: 18px 24px 18px 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.toast-message-text {
    font-weight: 600;
    color: var(--p-text);
    font-size: 0.95rem;
    line-height: 1.4;
}

@keyframes toast-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Emergency Strip --- */
.emergency-strip {
    background: var(--p-emergency);
    color: white;
    padding: 10px 0;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    font-size: 0.95rem;
}

.emergency-message {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.emergency-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    animation: emergency-pulse 2s infinite;
}

.emergency-call-btn {
    background: white;
    color: #B91C1C;
    padding: 4px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--t-base);
    border: 2px solid white;
}

.emergency-call-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* --- Hero Adjustments --- */
.hero-specialities-list .badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--t-base);
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(5px);
}

.hero-specialities-list .badge:hover {
    transform: translateY(-2px);
    background: var(--p-white) !important;
    box-shadow: var(--shadow-soft);
}

.btn-emergency-outline {
    border: 2px solid var(--p-emergency);
    color: var(--p-emergency);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--t-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-emergency-outline:hover {
    background: var(--p-emergency);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

/* --- When Every Minute Matters --- */
.emergency-image-composition .hero-blob-premium {
    border: 8px solid white;
}

/* --- Clinical Authority Cards --- */
#outcomes .glass-card-premium {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#outcomes .badge {
    padding: 6px 12px;
    font-weight: 700;
    border-radius: 8px;
}

@keyframes toast-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Hero Blobs Decoupled Helpers --- */
.hero-blob-bg-left {
    background-color: var(--p-blue) !important;
    opacity: 0.05;
    width: 100%;
    height: 100%;
    transform: translate(-15%, -15%) rotate(-15deg);
    filter: blur(40px);
    pointer-events: none;
}

.hero-blob-bg-right {
    background-color: var(--p-purple) !important;
    opacity: 0.05;
    width: 75%;
    height: 75%;
    transform: translate(20%, 20%) rotate(20deg);
    filter: blur(30px);
    pointer-events: none;
}

.btn-flex {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* --- High Contrast Muted Text --- */
.text-muted-dark {
    color: #4b5563 !important; /* WCAG Compliant Charcoal Dark Gray (meets >= 4.5:1 ratio) */
}

/* --- Service Icon Standard Premium Modifier --- */
.service-icon-premium {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* --- Doctor Card Layout Hardening --- */
.doctor-img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), var(--brand-gradient);
    position: relative;
}

.doctor-img-wrapper img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

/* --- Reusable Premium CTA Card & Button Utilities --- */
.cta-card-premium {
    background: linear-gradient(135deg, #1e3a8a 0%, #0d1b3e 100%);
    border-radius: 32px;
    color: var(--p-white);
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(13, 27, 62, 0.2);
}

.btn-white-premium {
    background: var(--p-white);
    color: #1e3a8a;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    text-decoration: none;
}

.btn-white-premium:hover {
    background: transparent;
    color: var(--p-white) !important;
    border-color: var(--p-white);
    transform: translateY(-2px);
}

