/* 
  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: #3B82F6;
    --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: #EF4444;
    --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 */
    --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);

    /* 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);
}

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

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

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

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

@media (max-width: 991px) {
    .pt-section-offset {
        padding-top: 100px !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 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; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); will-change: transform, opacity; }
.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; }
.pt-header-offset { padding-top: 180px !important; }
.pt-section-offset { padding-top: 150px !important; }
.mt-n3 { margin-top: -1rem !important; }

/* --- 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 { 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; }

/* --- 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; }

/* --- Positioning & Layering --- */
.z-9999 { z-index: 9999 !important; }
.sticky-top-100 { top: 100px; }
.top-100 { top: 100px !important; }

/* --- 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; }
.x-small { font-size: 0.7rem; }
.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); }

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

.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-brand1 img { transition: transform 0.3s ease; width: 135px; }
.navbar-brand1: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.9); 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); }
.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; align-items: center; 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: var(--p-blue); padding: 8px 16px; border-radius: 50px; font-size: 1.2rem; display: inline-block; margin-bottom: 20px; font-weight: 600; }
.hero-title { font-size: clamp(1.6rem, 3.5vw, 3.2rem); line-height: 1.1; margin-bottom: 25px; letter-spacing: -1.5px; }

/* --- 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; }
.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: var(--p-white); border-radius: var(--radius-md); box-shadow: 0 8px 32px 0 rgba(74, 144, 226, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.2); 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: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 { border: 1px solid transparent; }
.kips-hover-glow-blue:hover { box-shadow: 0 20px 40px var(--glow-blue); border-color: var(--p-blue); }
.kips-hover-glow-purple:hover { box-shadow: 0 20px 40px var(--glow-purple); border-color: var(--p-purple); }
.kips-hover-glow-pink:hover { box-shadow: 0 20px 40px var(--glow-pink); border-color: var(--p-pink); }
.kips-hover-glow-mint:hover { box-shadow: 0 20px 40px var(--glow-mint); border-color: var(--p-mint); }

/* --- Badges & Icons --- */
.hero-tag.tag-blue, .service-icon.tag-blue, .tag-blue { background: var(--p-blue-light); color: var(--p-blue); }
.hero-tag.tag-purple, .service-icon.tag-purple, .tag-purple { background: var(--p-purple-light); color: var(--p-purple); }
.hero-tag.tag-pink, .service-icon.tag-pink, .tag-pink { background: var(--p-pink-light); color: var(--p-pink); }
.hero-tag.tag-mint, .service-icon.tag-mint, .tag-mint { background: var(--p-mint-light); color: var(--p-mint); }

.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: 14px; }
.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: 32px; overflow: hidden; transform: rotate(-1deg); box-shadow: 0 28px 72px -24px rgba(74, 144, 226, 0.22); background: var(--p-bg); }
.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 0; }
.carousel-container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 24px; padding: 20px 10px; scrollbar-width: none; -ms-overflow-style: none; width: 100%; position: relative; align-items: stretch; padding-bottom: 20px; }
.carousel-container::-webkit-scrollbar { display: none; }
.kips-carousel-track { display: flex; gap: 24px; align-items: stretch; width: 100%; }
.kips-carousel-item { flex: 0 0 32%; width: 32%; flex-shrink: 0; scroll-snap-align: start; transition: transform 0.4s ease; display: flex; flex-direction: column; }

.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: -30px; }
.carousel-control.next { right: -30px; }

.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: #D5DBDB; 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; }
.doctors-carousel-prev { left: -30px !important; }
.doctors-carousel-next { right: -30px !important; }
.doctors-carousel-container { padding: 20px 15px !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) !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: white; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--p-blue-light); 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: 0 16px 32px rgba(59, 130, 246, 0.12), 0 6px 18px rgba(139, 92, 246, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05); border-color: rgba(59, 130, 246, 0.3); }
.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: var(--p-blue-light); color: var(--p-blue); }
.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%; border-radius: 40px; position: relative; z-index: 2; box-shadow: var(--shadow-float); }
.img-secondary { position: absolute; bottom: 0; right: 0; width: 50%; 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: -20px; right: 0; }

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

/* --- Preloader --- */
.preloader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--p-white); display: flex; justify-content: center; align-items: center; z-index: 99999; transition: opacity 0.6s ease, visibility 0.6s ease; }
.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; }

.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: 150px;
    height: 150px;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    border: 5px solid var(--p-white);
    box-shadow: var(--shadow-float);
}

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

.italic { font-style: italic; }

/* ==========================================================================
   [8] RESPONSIVE SYSTEMS
   ========================================================================== */

/* --- Desktop & Large Screen Refinements --- */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover>.dropdown-menu { display: block; opacity: 1; visibility: visible; transform: translateY(0); }
    .emergency-header-info { border: 1px solid rgba(239, 68, 68, 0.1); margin: 0 15px; padding: 5px 25px; background: rgba(239, 68, 68, 0.02); border-radius: 12px; display: flex; align-items: center; gap: 12px; }
    .emergency-header-info:hover { background: rgba(239, 68, 68, 0.05); border-color: rgba(239, 68, 68, 0.1); }
}

/* --- Large Tablet Refinements (1200px) --- */
@media (max-width: 1200px) {
    .kips-carousel-item { flex: 0 0 48%; width: 48%; }
    .carousel-control.prev { left: 10px; }
    .carousel-control.next { right: 10px; }
    .info-strip-card { padding: 25px 30px; gap: 20px; }
}

/* --- Tablet & Large Mobile (992px / 991px) --- */
@media (max-width: 992px) {
    .infra-grid { grid-template-columns: repeat(2, 1fr); }
    .info-strip-card { justify-content: center; }
    .info-highlight { min-width: 220px; }
}

/* --- Mobile Responsiveness Mastery (991px & below) --- */
@media (max-width: 991px) {
    .glass-nav, .glass-card-premium, .dropdown-menu-premium { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(255, 255, 255, 0.95); }
    .navbar-collapse { background: white; border-radius: 20px; padding: 25px; text-align: center; box-shadow: var(--shadow-premium); }
    .navbar-nav { align-items: flex-start !important; gap: 10px !important; }
    .navbar-nav .nav-link { width: 100%; padding: 16px 0 !important; font-size: 1.15rem; font-weight: 700; border-bottom: 1px solid rgba(0, 0, 0, 0.03); color: var(--p-blue) !important; margin: 0 !important; }
    .navbar-nav .nav-link:last-child { border-bottom: none; }
    .dropdown-menu-premium { position: static !important; display: none; opacity: 1 !important; visibility: visible !important; transform: none !important; background: transparent !important; box-shadow: none !important; border: none !important; padding-left: 20px !important; padding-top: 0 !important; margin-top: -5px !important; margin-bottom: 10px; border-left: 2px solid var(--p-blue-light) !important; }
    .dropdown-menu-premium.show { display: block !important; }
    .dropdown-item { padding: 10px 0 !important; color: var(--p-text-muted) !important; font-weight: 500 !important; font-size: 1rem; }
    .dropdown-item:hover { background: transparent !important; color: var(--p-blue) !important; transform: translateX(5px); }
    .arrow-size { display: inline-block !important; transition: transform 0.3s ease; margin-left: 8px; }
    .nav-item.dropdown .nav-link.show .arrow-size { transform: rotate(180deg); }
    .emergency-header-info { display: flex !important; margin: 15px 0 !important; background: rgba(239, 68, 68, 0.03); padding: 15px !important; border-radius: 16px; width: 100%; border: 1px solid rgba(239, 68, 68, 0.1); justify-content: center; }
    .btn-premium.mt-2 { width: 100%; text-align: center; padding: 15px !important; }
    .hero-section { padding-top: 120px; text-align: center; }
    .hero-title { font-size: 2.2rem !important; }
    .hero-img-composition-asymmetric { margin-top: 50px; padding-right: 0; }
}

/* --- Small Mobile Refinements (768px & below) --- */
@media (max-width: 768px) {
    .kips-carousel-item { flex: 0 0 85%; width: 85%; }
    .carousel-control { width: 42px; height: 42px; top: auto; bottom: -6px; display: flex; }
    .carousel-control.prev { left: 12px; }
    .carousel-control.next { right: 12px; }
    .infra-grid { grid-template-columns: 1fr; }
    .trust-stat-info { min-width: 0; }
    .info-strip-wrapper { margin-top: -30px; }
    .info-highlight { width: 100%; justify-content: flex-start; }
    .emergency-float { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 24px; }
    .section-padding { padding: 60px 0; }
    .hero-section { padding-bottom: 60px; }
    .hero-tag { font-size: 1rem; }
    .badge-float-tr-alt { right: -10px !important; top: -10px !important; }
    .badge-float-bl-alt { left: -10px !important; bottom: 100px !important; }
    .badge-float-br { right: -10px !important; bottom: -20px !important; }
    .badge-premium-floating { padding: 10px 15px; font-size: 0.75rem; }
    .info-icon-glow { width: 36px; height: 36px; font-size: 1rem; }
    .footer-watermark { width: 300px; height: 300px; bottom: -5%; right: -10%; }
    .video-popup-wrapper { width: 160px; bottom: 20px; left: 20px; }
    .video-popup-cta { padding: 12px; font-size: 0.75rem; }
    .service-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-blob-premium,
    .img-secondary,
    .emergency-float,
    .emergency-dot-pulse::after,
    .preloader-svg,
    .success-bg-pulse {
        animation: none !important;
    }
}
