/* ==========================================================================
   KHHIMS - Karuna Holistic Hospital and Institute of Medical Sciences
   Premium Medical Design System & Stylesheet
   ========================================================================== */

/* 1. Design System Tokens & Custom Properties */
:root {
    --primary: #0a3663;
    --primary-dark: #061f38;
    --primary-light: #ebf3fa;
    --primary-rgb: 10, 54, 99;

    --secondary: #008080;
    --secondary-dark: #004d40;
    --secondary-light: #e0f2f1;
    --secondary-rgb: 0, 128, 128;

    --accent: #d97706;
    --accent-light: #fef3c7;
    --accent-rgb: 217, 119, 6;

    --navy: #0f172a;
    --navy-light: #1e293b;
    --text: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --background: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #edf2f7;

    --danger: #dc2626;
    --danger-light: #fee2e2;
    --danger-rgb: 220, 38, 38;

    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --info: #0284c7;

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;

    --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.16);
    --shadow-hover: 0 20px 40px rgba(10, 54, 99, 0.15);
    --shadow-emergency: 0 8px 30px rgba(220, 38, 38, 0.25);

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Global Resets & Base Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--background);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 74px; /* Space for mobile bottom action bar */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--secondary);
}

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

/* Accessibility Skip Link */
.skip-to-content {
    position: absolute;
    top: -60px;
    left: 20px;
    background: var(--navy);
    color: #fff;
    padding: 10px 18px;
    z-index: 9999;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 20px;
}

/* Utilities & Colors */
.text-teal { color: var(--secondary) !important; }
.bg-teal { background-color: var(--secondary) !important; }
.text-primary-accent { color: var(--primary) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background-color: var(--navy) !important; }

/* Responsive Clamp Headings */
.khh-section-title {
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.khh-section-subtitle {
    font-size: clamp(0.95rem, 1.25vw, 1.125rem);
    color: var(--text-muted);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.khh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
    background: var(--secondary-light);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.75rem;
}

/* 3. Top Information Bar */
.khh-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    font-size: 0.825rem;
    position: relative;
    z-index: 1025;
}

.topbar-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.topbar-link {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.topbar-emergency-pill {
    background: var(--danger);
    color: #ffffff !important;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.825rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.topbar-emergency-pill:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    color: #ffffff;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: khhPulse 1.8s infinite;
}

@keyframes khhPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* 4. Main Sticky Navigation Bar */
.khh-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.khh-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.khh-brand {
    padding: 0.5rem 0;
    text-decoration: none;
    flex-shrink: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}

.brand-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0 !important;
}

.brand-emblem {
    height: 48px;
    width: 48px;
    object-fit: contain;
    flex-shrink: 0 !important;
    display: block;
}

.brand-emblem-sm {
    height: 38px;
    width: 38px;
    object-fit: contain;
    flex-shrink: 0 !important;
}

.brand-fallback-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0 !important;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    flex-shrink: 0;
}

.brand-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}

.brand-sub {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.2;
    margin-top: 2px;
}

@media (max-width: 991.98px) {
    .khh-brand {
        max-width: calc(100% - 96px);
    }
    .brand-emblem {
        height: 38px;
        width: 38px;
    }
    .brand-name {
        font-size: 1.18rem;
    }
    .brand-sub {
        font-size: 0.62rem;
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ── Nav container: constrain to max 1680px with side padding ── */
.khh-nav-container {
    padding-left: clamp(12px, 2vw, 40px) !important;
    padding-right: clamp(12px, 2vw, 40px) !important;
    max-width: 1680px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Navbar Links: base (desktop ≥992px) ── */
.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy-light) !important;
    padding: 0.65rem 0.65rem !important;
    margin: 0 2px;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

/* ── Button text: hidden below 1400px ── */
@media (max-width: 1399.98px) {
    .btn-appt-text {
        display: none !important;
    }
    .btn-khh-appointment {
        padding: 0.55rem 0.85rem !important;
        font-size: 0.82rem !important;
        justify-content: center;
    }
    .brand-sub {
        display: none !important;
    }
}

/* ── 992–1150px: very compact ── */
@media (min-width: 992px) and (max-width: 1150px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.78rem !important;
        margin: 0 1px;
    }
    .brand-name {
        font-size: 1.05rem !important;
    }
    .brand-emblem {
        height: 34px !important;
        width: 34px !important;
    }
    .btn-nav-search {
        padding: 5px 7px !important;
    }
}

/* ── 1151–1280px: tight ── */
@media (min-width: 1151px) and (max-width: 1280px) {
    .navbar-nav .nav-link {
        padding: 0.55rem 0.4rem !important;
        font-size: 0.82rem !important;
        margin: 0 1px;
    }
}

/* ── 1281–1399px: moderate ── */
@media (min-width: 1281px) and (max-width: 1399px) {
    .navbar-nav .nav-link {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.85rem !important;
        margin: 0 2px;
    }
}

/* ── ≥1400px: full width ── */
@media (min-width: 1400px) {
    .navbar-nav .nav-link {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.885rem !important;
        margin: 0 3px;
    }
}

/* ── Hover State ── */
.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(2, 132, 199, 0.06);
}

/* ── Active Link State & Indicator ── */
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(2, 132, 199, 0.12);
    font-weight: 700;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    background: linear-gradient(90deg, #0284c7, #00a896);
    border-radius: 99px;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.4);
}

/* Dropdown active item */
.khh-dropdown-menu .dropdown-item.active,
.khh-dropdown-menu .dropdown-item:active {
    background-color: rgba(2, 132, 199, 0.1);
    color: var(--primary) !important;
    font-weight: 600;
}

/* Offcanvas mobile nav active */
.offcanvas-nav-item.active {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.12), transparent);
    color: var(--primary) !important;
    font-weight: 700;
    border-left: 4px solid var(--primary);
    padding-left: calc(1rem - 4px);
}

/* Appointment Nav CTA Button */
.btn-khh-appointment {
    background: linear-gradient(135deg, #0e7490 0%, #0284c7 60%, #0369a1 100%);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.885rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-khh-appointment::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: 0.65s ease;
}

.btn-khh-appointment:hover::before {
    left: 140%;
}

.btn-khh-appointment:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0284c7 50%, #075985 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
}

.btn-khh-appointment:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Dropdown Menu Animations */
.khh-dropdown-menu {
    border-radius: var(--radius-md) !important;
    padding: 0.75rem !important;
    min-width: 280px;
    margin-top: 0 !important;
    animation: dropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.khh-dropdown-menu .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    transition: var(--transition-fast);
}

.khh-dropdown-menu .dropdown-item:hover {
    background: var(--primary-light);
}

.dropdown-item-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy);
}

/* Mobile Toggler */
.khh-toggler {
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    padding: 0 !important;
    transition: var(--transition-fast);
}

.khh-toggler:hover,
.khh-toggler:focus {
    background: var(--primary-light);
}

.toggler-bar {
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* Mobile Offcanvas Drawer */
.khh-offcanvas {
    max-width: 320px;
}

.offcanvas-nav-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    text-decoration: none;
}

.offcanvas-nav-item:hover,
.offcanvas-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.offcanvas-sub-item {
    display: block;
    padding: 0.55rem 1.25rem 0.55rem 3rem;
    color: var(--text);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.offcanvas-sub-item:hover {
    color: var(--primary);
    background: #e2e8f0;
}

/* Mobile Bottom Fixed Action Bar */
.khh-mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1040;
    padding: 6px 12px;
}

.mobile-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.mobile-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    border-radius: var(--radius-md);
    text-decoration: none;
    min-height: 48px;
    transition: var(--transition-fast);
}

.mobile-action-icon-wrap {
    position: relative;
    font-size: 1.15rem;
    line-height: 1;
    margin-bottom: 2px;
}

.mobile-action-label {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

.action-emergency {
    background: var(--danger-light);
    color: var(--danger) !important;
}

.action-search {
    background: var(--surface-alt);
    color: var(--navy) !important;
}

.action-appointment {
    background: var(--primary-light);
    color: var(--primary) !important;
}

.action-whatsapp {
    background: #e8f5e9;
    color: #2e7d32 !important;
}

/* 5. Hero Carousel & Slides */
.khh-hero-wrapper {
    position: relative;
    background: #061a2b;
    overflow: hidden;
}

.khh-hero-swiper {
    width: 100%;
    min-height: 600px;
}

@media (min-width: 768px) {
    .khh-hero-swiper {
        min-height: 580px;
    }
}

@media (min-width: 992px) {
    .khh-hero-swiper {
        min-height: 660px;
    }
}

.khh-hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
}

@media (min-width: 992px) {
    .khh-hero-slide {
        min-height: 660px;
    }
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    animation: kenburns 14s infinite alternate ease-in-out;
    z-index: 1;
}

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 26, 43, 0.94) 0%, rgba(6, 26, 43, 0.75) 55%, rgba(6, 26, 43, 0.35) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    padding: 3rem 0;
    color: #ffffff;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .slide-badge {
        font-size: 0.72rem;
        padding: 4px 10px;
        letter-spacing: 0.02em;
        line-height: 1.3;
    }
}

.slide-badge.badge-emergency {
    background: rgba(220, 38, 38, 0.3);
    border-color: rgba(220, 38, 38, 0.6);
    color: #fca5a5;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    letter-spacing: -0.02em;
    word-break: break-word;
    hyphens: auto;
}

.slide-desc {
    font-size: clamp(0.9rem, 1.35vw, 1.18rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    max-width: 600px;
}

/* Hero Action Buttons */
.btn-hero-primary {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 55%, #115e59 100%);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.025rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 60%, #14b8a6 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
}

.btn-hero-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.025rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
}

.btn-hero-secondary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary i.bi-arrow-right {
    transition: transform 0.25s ease;
}

.btn-hero-secondary:hover i.bi-arrow-right {
    transform: translateX(4px);
}

.btn-hero-emergency {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.025rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.38);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-hero-emergency:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 45%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(220, 38, 38, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
}

.btn-hero-emergency:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-hero-emergency i.bi-telephone-fill {
    transition: transform 0.2s ease;
}

.btn-hero-emergency:hover i.bi-telephone-fill {
    animation: btnPhoneShake 0.65s ease infinite;
}

@keyframes btnPhoneShake {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(-14deg); }
    40%, 80% { transform: rotate(14deg); }
}

/* Hero Controls */
.hero-swiper-prev,
.hero-swiper-next {
    width: 52px;
    height: 52px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hero-swiper-prev:hover,
.hero-swiper-next:hover {
    background: rgba(14, 116, 144, 0.95);
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
    transform: scale(1.12);
    box-shadow: 0 10px 28px rgba(14, 116, 144, 0.6);
}

.hero-swiper-prev::after,
.hero-swiper-next::after {
    display: none;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: var(--transition-base);
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    width: 32px;
    border-radius: 8px;
    background: var(--secondary);
}

/* Hero Floating Emergency Desk (Desktop) */
.hero-floating-card {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
}

.hero-floating-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 320px;
    border-left: 5px solid var(--danger);
}

.emergency-radar-icon {
    width: 42px;
    height: 42px;
    background: var(--danger-light);
    color: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: khhPulse 2s infinite;
}

.emergency-call-number {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.emergency-call-number:hover {
    color: var(--danger);
}

/* 6. Quick Action Floating Section */
.khh-quick-actions-section {
    position: relative;
    z-index: 20;
    margin-top: -55px;
    margin-bottom: 3.5rem;
}

.quick-action-card-premium {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    height: 100%;
}

.quick-action-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.quick-action-icon-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.quick-action-card-premium:hover .quick-action-icon-box {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.08) rotate(-4deg);
}

.quick-action-card-premium.emergency-card .quick-action-icon-box {
    background: var(--danger-light);
    color: var(--danger);
}

.quick-action-card-premium.emergency-card:hover .quick-action-icon-box {
    background: var(--danger);
    color: #ffffff;
}

.quick-action-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.quick-action-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* 7. About KHHIMS Split Section & Collage */
.khh-about-section {
    padding: 5rem 0;
    background: #ffffff;
}

.about-collage-wrap {
    position: relative;
    padding-bottom: 2rem;
    padding-right: 2rem;
}

.about-main-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-floating-exp-card {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border-left: 5px solid var(--secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 270px;
}

.about-exp-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-light);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-stat-box {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: var(--transition-base);
}

.about-stat-box:hover {
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.stat-counter {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.825rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* 8. Department Cards */
.khh-dept-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.khh-dept-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-light);
}

.dept-card-media {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.dept-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.khh-dept-card:hover .dept-card-img {
    transform: scale(1.08);
}

.dept-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.65) 100%);
}

.dept-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.dept-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dept-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
}

.dept-card-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.55;
    flex-grow: 1;
}

.dept-card-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.dept-card-link:hover {
    color: var(--secondary-dark);
    gap: 10px;
}

/* 9. Service Cards */
.khh-service-card {
    height: 100%;
}

.service-card-inner {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.service-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    transition: var(--transition-base);
}

.service-card-inner:hover .service-icon-box {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.08);
}

.service-type-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-alt);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
}

.service-card-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-learn-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
}

.service-book-icon {
    width: 34px;
    height: 34px;
    background: var(--surface-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition-fast);
}

.service-book-icon:hover {
    background: var(--primary);
    color: #ffffff;
}

/* 10. Why Choose KHHIMS Section */
.khh-why-choose-section {
    background: linear-gradient(135deg, #061f38 0%, #0a3663 100%);
    color: #ffffff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.why-feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: var(--transition-smooth);
}

.why-feature-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.35);
}

.why-feature-icon {
    width: 58px;
    height: 58px;
    background: rgba(0, 128, 128, 0.25);
    border: 1px solid rgba(0, 128, 128, 0.5);
    color: #5eead4;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.why-feature-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.why-feature-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 11. Doctor Cards */
.khh-doctor-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.khh-doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-light);
}

.doctor-photo-circle {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.4s ease;
}

.khh-doctor-card:hover .doctor-photo {
    transform: scale(1.05);
}

.doctor-verified-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background: #ffffff;
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.doctor-dept-pill {
    display: inline-block;
    background: var(--secondary-light);
    color: var(--secondary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.doctor-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
}

.btn-doctor-appt {
    background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.865rem;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-doctor-appt:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0369a1 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
}

.btn-doctor-appt:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

.btn-doctor-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast);
}

.btn-doctor-profile:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    transform: scale(1.08) rotate(6deg);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* 12. OPD Timetable Section */
.khh-opd-section {
    padding: 5rem 0;
    background: var(--background);
}

.opd-card-wrapper {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.opd-search-bar {
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

.opd-table-custom {
    margin-bottom: 0;
}

.opd-table-custom thead th {
    background: #f8fafc;
    color: var(--navy);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.opd-table-custom tbody td {
    padding: 1.1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.925rem;
}

.opd-status-available {
    background: var(--success-light);
    color: #065f46;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 13. Emergency & Critical Care Section */
.khh-emergency-banner-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #450a0a 100%);
    color: #ffffff;
}

.emergency-pulse-beacon-lg {
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    animation: khhPulse 1.8s infinite;
}

.btn-emergency-action {
    background: #ffffff;
    color: #dc2626 !important;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.9rem 2.1rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.btn-emergency-action:hover {
    background: #fef2f2;
    transform: translateY(-2px);
    color: #b91c1c !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.38);
}

.btn-emergency-action:hover i.bi-telephone-fill {
    animation: btnPhoneShake 0.65s ease infinite;
}

/* 14. Facilities Grid Cards */
.khh-facility-card {
    height: 100%;
}

.facility-card-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
    box-shadow: var(--shadow-sm);
}

.facility-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.khh-facility-card:hover .facility-img {
    transform: scale(1.08);
}

.facility-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(6, 31, 56, 0.95) 100%);
}

.facility-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(10, 54, 99, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.facility-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}

.facility-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.facility-link {
    color: #5eead4;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.facility-link:hover {
    color: #ffffff;
    gap: 8px;
}

/* 15. Leadership / Director's Section */
.khh-leadership-section {
    padding: 5rem 0;
    background: #ffffff;
}

.leader-portrait-wrap {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.leader-portrait {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.leader-quote-box {
    position: relative;
    padding-left: 2rem;
    border-left: 4px solid var(--secondary);
}

.leader-quote-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--navy-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.quote-mark {
    font-size: 4rem;
    color: var(--secondary-light);
    line-height: 1;
    font-family: serif;
    position: absolute;
    top: -20px;
    left: 10px;
    z-index: -1;
}

/* 16. Patient Info Cards */
.patient-guide-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
    text-decoration: none;
}

.patient-guide-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.guide-icon-box {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.patient-guide-card:hover .guide-icon-box {
    background: var(--primary);
    color: #ffffff;
}

.guide-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.guide-card-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* 17. News & Event Cards */
.khh-news-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.khh-news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.khh-news-card:hover .news-img {
    transform: scale(1.06);
}

.news-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.news-read-more {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.news-read-more:hover {
    gap: 10px;
    color: var(--secondary);
}

/* Event Card with Date Badge */
.khh-event-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.khh-event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.event-card-media {
    height: 190px;
    overflow: hidden;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.khh-event-card:hover .event-img {
    transform: scale(1.06);
}

.event-date-stamp {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 6px 12px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.date-day {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.event-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
}

.event-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.event-link:hover {
    gap: 10px;
    color: var(--secondary-dark);
}

/* 18. Gallery Grid & Lightbox */
.khh-gallery-section {
    padding: 5rem 0;
    background: var(--background);
}

.gallery-filter-btn {
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.48rem 1.25rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: linear-gradient(135deg, #0e7490 0%, #0284c7 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.gallery-card-inner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 240px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

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

.gallery-card-inner:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 31, 56, 0.2) 0%, rgba(6, 31, 56, 0.85) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    transition: var(--transition-base);
}

.gallery-card-inner:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    align-self: flex-end;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.gallery-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #5eead4;
}

.gallery-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

/* 19. Comprehensive Medical Footer */
.khh-footer {
    background: #041424;
    position: relative;
}

.cta-ribbon-card {
    background: linear-gradient(135deg, var(--primary) 0%, #004e6e 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bg-white-20 {
    background: rgba(255, 255, 255, 0.2);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.btn-emergency-cta {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-emergency-cta:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(220, 38, 38, 0.6);
}

.btn-emergency-cta:hover i.bi-telephone-fill {
    animation: btnPhoneShake 0.65s ease infinite;
}

.btn-light-cta {
    background: #ffffff;
    color: var(--navy) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-light-cta:hover {
    background: #f8fafc;
    color: #0284c7 !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.footer-nav-list li {
    margin-bottom: 0.6rem;
}

.footer-nav-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.footer-nav-list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-emergency-box {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.pulse-ring-icon {
    width: 44px;
    height: 44px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 20. Floating Action Button & Widgets */
.floating-emergency-desktop {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 1030;
}

.floating-emergency-pill {
    background: var(--danger);
    color: #ffffff !important;
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
    text-decoration: none;
    transition: var(--transition-base);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.floating-emergency-pill:hover {
    background: #b91c1c;
    transform: translateY(-3px) scale(1.02);
}

.emergency-pulse-beacon {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    animation: khhPulse 1.6s infinite;
}

.emergency-pill-text {
    line-height: 1.1;
    font-size: 0.85rem;
}

/* Scroll-to-Top Button */
.btn-scroll-top {
    position: fixed;
    left: 24px;
    bottom: 28px;
    width: 46px;
    height: 46px;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    z-index: 1025;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-scroll-top:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
}

@media (max-width: 991.98px) {
    .btn-scroll-top {
        bottom: 84px;
    }
}

/* 21. Search Trigger & Quick Modal */
.btn-nav-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-pill);
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-nav-search:hover {
    background: #ffffff;
    border-color: #0284c7;
    color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.22);
}

.btn-nav-search kbd {
    font-size: 0.72rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.khh-search-modal .modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
}

.quick-search-tag {
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    transition: var(--transition-fast);
}

.quick-search-tag:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

/* 22. Floating WhatsApp Help Desk */
.floating-whatsapp-widget {
    position: fixed;
    left: 24px;
    bottom: 84px;
    z-index: 1025;
}

@media (max-width: 991.98px) {
    .floating-whatsapp-widget {
        display: none; /* Provided in mobile bottom bar */
    }
}

.btn-whatsapp-bubble {
    display: inline-flex;
    align-items: center;
    background: #25D366;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: var(--transition-fast);
}

.btn-whatsapp-bubble:hover {
    background: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-bubble i {
    font-size: 1.25rem;
}

/* 23. Floating Emergency Button & Pulse Beacon */
.floating-emergency-desktop {
    position: fixed;
    right: 28px;
    bottom: 32px;
    z-index: 1025;
}

.floating-emergency-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 2px solid var(--danger);
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    box-shadow: var(--shadow-emergency);
    color: var(--navy);
    cursor: pointer;
    transition: var(--transition-fast);
}

.floating-emergency-pill:hover {
    background: var(--danger-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.35);
}

.floating-emergency-pill i {
    font-size: 1.25rem;
    color: var(--danger);
}

.emergency-pulse-beacon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--danger);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    animation: emergencyPulse 1.8s infinite;
}

@keyframes emergencyPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* 24. 24/7 Emergency Triage Modal */
.emergency-modal-banner {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #991b1b 100%);
}

.emergency-bell-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.emergency-action-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* 25. Comprehensive Responsive Breakpoints & Device Optimizations */

/* Base responsiveness guarantees */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    width: 100%;
    margin-bottom: 1rem;
}

/* Tablet & Smaller Laptops (<= 1199.98px) */
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        padding: 1.2rem 0.55rem !important;
        font-size: 0.88rem;
    }
    .btn-khh-appointment {
        padding: 0.55rem 0.95rem;
        font-size: 0.825rem;
    }
}

/* Medium Tablets & Below (<= 991.98px) */
@media (max-width: 991.98px) {
    /* Floating action cards on hero */
    .khh-quick-actions-section {
        margin-top: 1.75rem !important;
        margin-bottom: 2.25rem !important;
    }

    .hero-floating-card {
        display: none !important;
    }

    /* About section collage */
    .about-collage-wrap {
        padding-right: 0 !important;
        padding-bottom: 1.5rem !important;
    }

    .about-main-img {
        height: 360px !important;
        width: 100%;
    }

    .about-floating-exp-card {
        position: static !important;
        max-width: 100% !important;
        margin-top: 1.25rem;
        box-shadow: var(--shadow-md) !important;
    }

    /* Offcanvas mobile menu enhancements */
    .offcanvas-nav-item {
        font-size: 1.05rem;
        padding: 0.85rem 1.25rem;
    }

    /* Hide desktop sticky emergency button on mobile/tablet */
    .floating-emergency-desktop {
        display: none !important;
    }
}

/* Landscape Phones & Small Tablets (<= 767.98px) */
@media (max-width: 767.98px) {
    /* Section paddings - reduce excessive vertical gaps on small screens */
    .khh-about-section,
    .khh-opd-section,
    .khh-emergency-banner-section,
    .khh-gallery-section,
    .py-5 {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    /* Hero Swiper on Mobile */
    .khh-hero-swiper,
    .khh-hero-slide {
        min-height: 520px !important;
    }

    .hero-swiper-prev,
    .hero-swiper-next {
        display: none !important;
    }

    .slide-content {
        padding: 2.5rem 0 3.5rem !important;
    }

    /* OPD Schedule Mobile Cards vs Desktop Table */
    .opd-desktop-table {
        display: none !important;
    }

    .opd-mobile-cards {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        padding: 0.5rem 0 !important;
    }

    .opd-mobile-card {
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 1.15rem;
        box-shadow: var(--shadow-xs);
        transition: var(--transition-fast);
    }

    .opd-mobile-card:hover {
        border-color: var(--primary-light);
        box-shadow: var(--shadow-sm);
    }

    .opd-day-pills {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        width: 100%;
        gap: 6px;
    }

    .opd-day-pills::-webkit-scrollbar {
        height: 4px;
    }

    .opd-day-pills::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 4px;
    }

    .opd-day-pills .btn {
        white-space: nowrap !important;
        flex-shrink: 0;
        padding: 0.35rem 0.85rem;
        font-size: 0.825rem;
    }

    /* Footer CTA ribbon */
    .cta-ribbon-card {
        text-align: center;
        padding: 2rem 1.25rem !important;
    }

    .cta-ribbon-card .d-flex.gap-3 {
        flex-direction: column !important;
        width: 100%;
        gap: 0.75rem !important;
    }

    .cta-ribbon-card .btn {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }

    .footer-emergency-box {
        margin-top: 1.5rem;
    }

    /* Card media heights */
    .dept-card-media {
        height: 180px;
    }

    .facility-card-image-wrap {
        height: 220px;
    }

    .news-card-media {
        height: 180px;
    }

    .gallery-card-inner {
        height: 200px;
    }

    .event-card-media {
        height: 170px;
    }

    /* Emergency section banner */
    .btn-emergency-action {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }
}

/* Extra Small Phones & Mobile Devices (<= 575.98px) */
@media (max-width: 575.98px) {
    /* Container gutters */
    .container, .container-xl, .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Appointment Tabs - full-width mobile friendly */
    #appointmentTabs {
        border-radius: var(--radius-lg) !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 6px !important;
    }

    #appointmentTabs .nav-item {
        width: 100%;
    }

    #appointmentTabs .nav-link {
        width: 100%;
        border-radius: var(--radius-md) !important;
        text-align: center;
        padding: 0.7rem 1rem !important;
        font-size: 0.88rem;
    }

    /* Hero CTA button stacking */
    .slide-content .d-flex.flex-wrap {
        flex-direction: column !important;
        width: 100%;
        gap: 10px !important;
    }

    .slide-content .btn-hero-primary,
    .slide-content .btn-hero-secondary,
    .slide-content .btn-hero-emergency {
        width: 100% !important;
        text-align: center;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    /* About section image on mobile */
    .about-main-img {
        height: 240px !important;
    }

    .stat-counter {
        font-size: 1.85rem !important;
    }

    .about-stat-box {
        padding: 1rem 0.5rem !important;
    }

    /* Quick Action Cards */
    .quick-action-card-premium {
        padding: 1.1rem 1rem;
    }

    .quick-action-icon-box {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
    }

    .quick-action-card-title {
        font-size: 0.98rem;
    }

    /* Modals on mobile */
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
    }

    .modal-body {
        padding: 1.25rem 1rem !important;
    }

    .emergency-modal-banner {
        padding: 1.5rem 1rem !important;
    }

    .emergency-bell-icon {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }

    .emergency-action-circle {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    /* Doctor cards on mobile */
    .doctor-photo-circle {
        width: 120px;
        height: 120px;
    }

    /* Form controls - prevent iOS auto-zoom on focus with font-size >= 16px */
    .form-control,
    .form-select {
        font-size: 16px !important;
        min-height: 44px;
    }

    /* Touch target min-height */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-sm {
        min-height: 38px;
    }

    /* Breadcrumbs */
    .breadcrumb-wrapper {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* 26. Print Stylesheet */
@media print {
    .khh-topbar,
    .khh-header,
    .khh-mobile-action-bar,
    .floating-whatsapp-widget,
    .floating-emergency-desktop,
    .btn-scroll-top,
    footer,
    .modal,
    .breadcrumb-wrapper,
    .opd-day-pills,
    .card form,
    .btn,
    button,
    #appointmentTabs {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 10.5pt !important;
    }

    .container, .container-xl, .container-fluid {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .opd-table-wrapper {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }

    .opd-table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .opd-table th, .opd-table td {
        border: 1px solid #ddd !important;
        padding: 6px 10px !important;
        color: #000 !important;
    }

    .opd-mobile-cards {
        display: none !important;
    }

    .opd-desktop-table {
        display: table !important;
    }

    .print-appointment-area .card {
        border: 2px solid #000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}

/* 26. Micro-animations & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .slide-bg {
        animation: none !important;
    }
}

/* 27. Bed Tracker & Capacity Dashboard */
.bed-tracker-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-top: 2rem;
}

.bed-metric-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.bed-metric-box:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.bed-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.bed-status-dot.available {
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.bed-status-dot.emergency-active {
    background-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
    animation: khhPulse 1.5s infinite;
}

/* 28. Patient Testimonials & Healing Stories */
.testimonial-card-modern {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
}

.testimonial-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.3);
}

.testimonial-rating-stars {
    color: #f59e0b;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.testimonial-quote-text {
    font-size: 0.965rem;
    line-height: 1.65;
    color: #334155;
    font-style: italic;
    margin: 1.1rem 0;
    flex-grow: 1;
}

.testimonial-patient-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.patient-avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal) 0%, var(--primary) 100%);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* 29. Feature Highlight Spotlight Banners */
.feature-spotlight-card {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    padding: 2.25rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.feature-spotlight-pkgs {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    color: #ffffff;
}

.feature-spotlight-insurance {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0284c7 100%);
    color: #ffffff;
}

/* ==========================================================================
   30. UNIVERSAL BUTTON DESIGN SYSTEM (PREMIUM CLINICAL AESTHETICS)
   ========================================================================== */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.015em;
    padding: 0.65rem 1.45rem;
    border-radius: var(--radius-pill);
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.btn:active {
    transform: translateY(1px) scale(0.99) !important;
}

/* Primary Hospital Action Button */
.btn-primary,
.btn-primary-khh {
    background: linear-gradient(135deg, #0e7490 0%, #0284c7 60%, #0369a1 100%) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.btn-primary:hover,
.btn-primary-khh:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0284c7 50%, #075985 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

/* Outline Primary Action Button */
.btn-outline-primary,
.btn-outline-khh {
    background: transparent !important;
    border: 2px solid #0284c7 !important;
    color: #0284c7 !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.btn-outline-primary:hover,
.btn-outline-khh:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.42) !important;
}

/* Outline Light Button */
.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-outline-light:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

/* Secondary Button */
.btn-secondary {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.25) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(51, 65, 85, 0.35) !important;
    color: #ffffff !important;
}

.btn-outline-secondary {
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
    background: #ffffff !important;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Warning / Gold Button */
.btn-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
    color: #0f172a !important;
}

/* Info / Sky Cyan Button */
.btn-info {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.55) !important;
    color: #ffffff !important;
}

/* Success / Green Button */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5) !important;
    color: #ffffff !important;
}

/* Danger / Emergency Button */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.55) !important;
    color: #ffffff !important;
}

/* Button Sizing Variations */
.btn-sm {
    padding: 0.42rem 1rem !important;
    font-size: 0.825rem !important;
    gap: 0.35rem !important;
}

.btn-lg {
    padding: 0.85rem 2rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    gap: 0.55rem !important;
}

/* Micro-interaction: Arrow and Icons inside buttons */
a.btn i.bi-arrow-right,
button.btn i.bi-arrow-right {
    transition: transform 0.22s ease;
}

a.btn:hover i.bi-arrow-right,
button.btn:hover i.bi-arrow-right {
    transform: translateX(4px);
}

a.btn i.bi-arrow-left,
button.btn i.bi-arrow-left {
    transition: transform 0.22s ease;
}

a.btn:hover i.bi-arrow-left,
button.btn:hover i.bi-arrow-left {
    transform: translateX(-4px);
}

a.btn:hover i.bi-calendar-check-fill,
a.btn:hover i.bi-calendar-plus-fill,
button.btn:hover i.bi-calendar-check-fill,
button.btn:hover i.bi-calendar-plus-fill {
    transform: scale(1.12);
    transition: transform 0.2s ease;
}

/* Color Badge & Accent Utilities */
.bg-purple {
    background-color: #8b5cf6 !important;
    color: #ffffff !important;
}
.bg-purple-subtle {
    background-color: #ede9fe !important;
    color: #6d28d9 !important;
}
.text-purple {
    color: #7c3aed !important;
}
.bg-teal-subtle {
    background-color: #ccfbf1 !important;
    color: #0f766e !important;
}

/* Card Icon Bubble Utility */
.card-icon-bubble {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

