/* Quick Care Connect - Professional Medical Website CSS */

:root {
    /* Medical Color Palette - Emerald Green Theme */
    --primary-color: #10b981; /* Emerald Green */
    --primary-dark: #059669;
    --primary-light: #34d399;
    --primary-glass: rgba(16, 185, 129, 0.7);
    /* Slate secondary: readable on white for .text-secondary / gradients with primary (do not use white-alpha here — it hid icons on light backgrounds). */
    --secondary-color: #64748b;
    --secondary-dark: #475569;
    --secondary-light: #94a3b8;
    --accent-color: #fef3c7;
    --accent-dark: #fde68a;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Status Colors - Emerald Green Theme */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #10b981;
    
    /* Typography - Compact Directory Scale */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.7rem;
    --font-size-sm: 0.8rem;
    --font-size-base: 0.875rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.5rem;
    --font-size-4xl: 1.875rem;
    
    /* Spacing - Tighter */
    --spacing-xs: 0.2rem;
    --spacing-sm: 0.4rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1.25rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
    --spacing-3xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.2rem;
    --radius-md: 0.3rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.625rem;
    --radius-2xl: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Admin sidebar should stay visible while scrolling */
.admin-sidebar-col {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
}

/* =============================================================================
   Admin area — unified surfaces (emerald / Quick Care theme)
   Use with Bootstrap: e.g. class="card qc-admin-card border-0 shadow-sm rounded-4"
   ============================================================================= */
.admin-main-col,
.admin-sidebar-col {
    --qc-admin-radius: 1rem;
    --qc-admin-radius-lg: 1.25rem;
    --qc-admin-border: 1px solid rgba(16, 185, 129, 0.14);
    --qc-admin-border-hover: 1px solid rgba(16, 185, 129, 0.28);
    --qc-admin-surface: #ffffff;
    --qc-admin-surface-muted: #f8fafc;
}

/* Shell: list panels, sidebars, table wrappers */
.card.qc-admin-card {
    background: var(--qc-admin-surface);
    border: var(--qc-admin-border) !important;
    border-radius: var(--qc-admin-radius) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-main-col > .card.qc-admin-card:hover,
.admin-main-col .card.qc-admin-card:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.22) !important;
}

.qc-admin-card__header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-bottom: 2px solid var(--primary-color) !important;
    border-radius: var(--qc-admin-radius) var(--qc-admin-radius) 0 0 !important;
}

.qc-admin-card__header--amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.06) 100%);
    border-bottom: 2px solid var(--warning-color) !important;
    border-radius: var(--qc-admin-radius) var(--qc-admin-radius) 0 0 !important;
}

/* KPI / stat tiles */
.qc-admin-stat-tile {
    background: var(--qc-admin-surface);
    border: var(--qc-admin-border);
    border-radius: var(--qc-admin-radius-lg);
    padding: 1.5rem;
    color: var(--gray-800);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.qc-admin-stat-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border-color: rgba(16, 185, 129, 0.28);
}

.qc-admin-stat-tile__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.qc-admin-stat-tile__value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.qc-admin-stat-tile__meta {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    font-weight: 500;
}

.qc-admin-stat-tile__kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-top: 0.35rem;
}

.qc-admin-stat-tile__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.qc-admin-stat-tile__icon--emerald {
    background: rgba(16, 185, 129, 0.14);
    color: var(--primary-dark);
}

.qc-admin-stat-tile__icon--slate {
    background: var(--gray-100);
    color: var(--gray-700);
}

.qc-admin-stat-tile__icon--amber {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.qc-admin-stat-tile__icon--rose {
    background: rgba(244, 63, 94, 0.12);
    color: #be123c;
}

.qc-admin-stat-tile__icon--sky {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
}

/* Patient details: compact stat strip (white tiles + semantic icon) */
.qc-admin-stat-tile--compact {
    text-align: center;
    padding: 1.25rem 1rem;
}

.qc-admin-stat-tile--compact .qc-admin-stat-tile__icon {
    margin: 0 auto 0.75rem;
}

.qc-admin-stat-tile--compact .qc-admin-stat-tile__value {
    font-size: 1.85rem;
}

.qc-admin-stat-tile--compact .qc-admin-stat-tile__kicker {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-top: 0.35rem;
}

/* Dashboard legacy class names inside .qc-admin-stat-tile */
.qc-admin-stat-tile .stat-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.qc-admin-stat-tile .stat-val {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.qc-admin-stat-tile .stat-trend {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
}

.qc-admin-stat-tile .icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.qc-admin-stat-tile .icon-doctors {
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-dark);
}

.qc-admin-stat-tile .icon-patients {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.qc-admin-stat-tile .icon-appointments {
    background: rgba(244, 63, 94, 0.1);
    color: #be123c;
}

.qc-admin-stat-tile .icon-finance {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

/* Optional inner aliases (patients grid) */
.qc-admin-stat-tile .stat-icon-chip {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qc-admin-stat-tile:hover .stat-icon-chip {
    transform: scale(1.04);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.qc-admin-stat-tile .stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-top: 0.75rem;
    color: var(--gray-900);
}

.qc-admin-stat-tile .stat-label {
    color: var(--gray-500);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.76rem;
    margin-top: 0.4rem;
}

.qc-admin-stat-tile .stat-meta {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.text-danger-accent {
    color: #ef4444 !important;
}

.text-warning-accent {
    color: #f59e0b !important;
}

.text-success-accent {
    color: var(--primary-dark) !important;
}

/* Quick links row (dashboard) */
.qc-admin-quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--qc-admin-surface);
    border: var(--qc-admin-border);
    border-radius: var(--qc-admin-radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.qc-admin-quick-link:hover {
    background: var(--gray-50);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateX(4px);
}

.qc-admin-quick-link__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-dark);
}

/* Filter / status tiles (appointments — aligned with Q&A / blogs: neutral tiles, green glass when active) */
.qc-admin-filter-tile {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--qc-admin-radius-lg);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    height: 100%;
    position: relative;
    overflow: visible;
    min-height: 138px;
}

.qc-admin-filter-tile::before {
    display: none;
}

.qc-admin-filter-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    border-color: rgba(203, 213, 225, 0.95);
}

.qc-admin-filter-tile:hover::before {
    opacity: 0;
}

.qc-admin-filter-tile.active,
.qc-admin-filter-tile.is-active {
    border: 2px solid rgba(16, 185, 129, 0.5) !important;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.93), rgba(232, 251, 243, 0.86)),
        rgba(236, 253, 245, 0.48) !important;
    backdrop-filter: blur(10px) saturate(142%);
    -webkit-backdrop-filter: blur(10px) saturate(142%);
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateY(-3px);
}

.qc-admin-filter-tile.active:hover,
.qc-admin-filter-tile.is-active:hover {
    border-color: rgba(16, 185, 129, 0.55) !important;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.qc-admin-filter-tile .icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
    z-index: 1;
    position: relative;
    transition: transform 0.22s ease;
}

.qc-admin-filter-tile:hover .icon-wrapper {
    transform: scale(1.04);
}

.qc-admin-filter-tile.active .icon-wrapper,
.qc-admin-filter-tile.is-active .icon-wrapper {
    box-shadow: none;
}

.qc-admin-filter-tile .stats-info {
    z-index: 1;
}

.qc-admin-filter-tile h3 {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}

.qc-admin-filter-tile p {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

/* Static filter strip (no link): appointments non-clickable view */
.qc-admin-filter-static .qc-admin-filter-tile:hover,
.filter-card-static-wrapper .qc-admin-filter-tile:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    border-color: rgba(226, 232, 240, 0.9);
}

.qc-admin-filter-static .qc-admin-filter-tile:hover::before,
.filter-card-static-wrapper .qc-admin-filter-tile:hover::before {
    opacity: 0;
}

/* Doctors management: selectable stat cards (aligned with Q&A / blogs filter tiles) */
.qc-admin-stat-selectable.card {
    border-radius: var(--qc-admin-radius-lg) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    cursor: pointer;
    overflow: visible;
}

.qc-admin-stat-selectable.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(203, 213, 225, 0.95) !important;
}

.qc-admin-stat-selectable.card.active,
.qc-admin-stat-selectable.card.is-active {
    border: 2px solid rgba(16, 185, 129, 0.5) !important;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.93), rgba(232, 251, 243, 0.86)),
        rgba(236, 253, 245, 0.48) !important;
    backdrop-filter: blur(10px) saturate(142%);
    -webkit-backdrop-filter: blur(10px) saturate(142%);
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.qc-admin-stat-selectable.card.active:hover,
.qc-admin-stat-selectable.card.is-active:hover {
    border-color: rgba(16, 185, 129, 0.55) !important;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

/* Beat generic admin card hover (green rim) on doctors status strip */
.admin-main-col #status-filter-container .qc-admin-stat-selectable.qc-admin-card:not(.active):not(.is-active):hover {
    border-color: rgba(203, 213, 225, 0.95) !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08) !important;
}

.admin-main-col #status-filter-container .qc-admin-stat-selectable.qc-admin-card.active:hover,
.admin-main-col #status-filter-container .qc-admin-stat-selectable.qc-admin-card.is-active:hover {
    border-color: rgba(16, 185, 129, 0.55) !important;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

/* Appointments filter panel + advanced shell (emerald-tinted) */
.admin-main-col .filter-panel {
    border: var(--qc-admin-border);
    border-radius: var(--qc-admin-radius-lg);
    padding: 1.15rem;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.1), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.admin-main-col .filter-panel-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.admin-main-col .filter-panel-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gray-900);
}

.admin-main-col .filter-panel-text {
    color: var(--gray-500);
    max-width: 58rem;
}

.admin-main-col .filter-active-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-main-col .advanced-filter-shell {
    border: var(--qc-admin-border);
    border-radius: var(--qc-admin-radius-lg);
    padding: 1.2rem 1.6rem;
    min-height: 92px;
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 40%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.filter-card-static-wrapper {
    text-decoration: none;
}

.filter-card-static-wrapper .qc-admin-filter-tile {
    cursor: default;
}

/* Q&A list row cards — align with admin surface */
.qc-admin-qa-row {
    background: var(--qc-admin-surface);
    border: var(--qc-admin-border);
    border-radius: var(--qc-admin-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.qc-admin-qa-row:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.22);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.admin-main-col .qa-hero {
    background: var(--qc-admin-surface);
    border: var(--qc-admin-border);
    border-radius: var(--qc-admin-radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Specialty Dropdown Styles - Force Horizontal Layout */
.specialty-dropdown {
    min-width: 1000px !important;
    max-width: 1200px !important;
    width: 1000px !important;
    padding: 2rem !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    margin-top: 0.5rem !important;
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin-left: 50% !important;
}

.specialty-dropdown .container-fluid {
    padding: 0;
}

.specialty-dropdown .dropdown-header {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.specialty-dropdown .specialty-card {
    display: flex !important;
    align-items: center !important;
    padding: 0.875rem 1rem !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: var(--gray-700) !important;
    transition: all 0.2s ease !important;
    background: var(--white) !important;
    margin-bottom: 0.5rem !important;
    min-height: 60px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: row !important;
}

.specialty-dropdown .specialty-card:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    text-decoration: none;
}

.specialty-dropdown .specialty-icon {
    font-size: 1.5rem;
    margin-right: 0.875rem;
    width: 2.25rem;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialty-dropdown .specialty-name {
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
    min-width: 0;
}

/* Force horizontal layout - Override Bootstrap completely */
.specialty-dropdown .row.g-2 {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -0.5rem !important;
    margin-left: -0.5rem !important;
}

.specialty-dropdown .row.g-2 > * {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

/* Responsive adjustments for specialty dropdown */
@media (max-width: 1200px) {
    .specialty-dropdown {
        min-width: 900px !important;
        max-width: 1000px !important;
        width: 900px !important;
        padding: 1.75rem !important;
    }
}

@media (max-width: 992px) {
    .specialty-dropdown {
        min-width: 700px !important;
        max-width: 800px !important;
        width: 700px !important;
        padding: 1.5rem !important;
    }
    
    .specialty-dropdown .specialty-card {
        padding: 0.75rem 0.875rem !important;
        min-height: 55px !important;
    }
    
    .specialty-dropdown .specialty-icon {
        font-size: 1.4rem !important;
        margin-right: 0.75rem !important;
        width: 2rem !important;
    }
    
    .specialty-dropdown .specialty-name {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 768px) {
    .specialty-dropdown {
        min-width: 500px !important;
        max-width: 600px !important;
        width: 500px !important;
        padding: 1rem !important;
    }
    
    .specialty-dropdown .specialty-card {
        padding: 0.625rem 0.75rem !important;
        min-height: 50px !important;
    }
    
    .specialty-dropdown .specialty-icon {
        font-size: 1.25rem !important;
        margin-right: 0.625rem !important;
        width: 1.75rem !important;
    }
    
    .specialty-dropdown .specialty-name {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .specialty-dropdown {
        min-width: 350px !important;
        max-width: 400px !important;
        width: 350px !important;
        padding: 0.75rem !important;
    }
    
    .specialty-dropdown .specialty-card {
        padding: 0.5rem 0.625rem !important;
        min-height: 45px !important;
    }
    
    .specialty-dropdown .specialty-icon {
        font-size: 1.1rem !important;
        margin-right: 0.5rem !important;
        width: 1.5rem !important;
    }
    
    .specialty-dropdown .specialty-name {
        font-size: 0.75rem !important;
    }
}

/* --- Premium Hover Dropdown Utility --- */
@media (min-width: 992px) {
    .hover-dropdown {
        position: relative;
    }
    
    .hover-dropdown .dropdown-menu {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        pointer-events: none;
        margin-top: 0;
    }
    
    .hover-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    /* Override Bootstrap sticky .show state when mouse leaves */
    .hover-dropdown:not(:hover) .dropdown-menu {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Override Bootstrap dropdown positioning for specialty dropdown */
.navbar-nav .dropdown-menu.specialty-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    float: none !important;
    min-width: 1000px !important;
    max-width: 1200px !important;
    width: 1000px !important;
    padding: 2rem !important;
    margin: 0.5rem 0 0 !important;
    list-style: none;
    font-size: 14px;
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    background-clip: padding-box;
}

/* Force horizontal layout for specialty cards */
.specialty-dropdown .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -0.5rem !important;
    margin-left: -0.5rem !important;
}

.specialty-dropdown .col-xl-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

.specialty-dropdown .col-lg-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

.specialty-dropdown .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

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

body {
    font-family: var(--font-family);
    font-size: 13.5px; /* Marham baseline ~13px (1.3em on 62.5% html) */
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: var(--gray-700);
    background-color: var(--gray-50);
    padding-top: 62px; /* Navbar ~60px like Marham */
}

/* Typography - Marham-Aligned Pixel Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

/* Marham real px: h1=18px, h2=17px, h3=16px, h4=14px, h5=12px */
/* We use 14px base (not 10px like Marham), so we scale proportionally */
h1 { font-size: 1.3rem; }   /* ~17.5px - close to Marham 18px */
h2 { font-size: 1.15rem; }  /* ~15.5px - close to Marham 17px */
h3 { font-size: 1rem; }     /* ~13.5px - close to Marham 16px */
h4 { font-size: 0.9375rem; } /* ~12.7px - close to Marham 14px */
h5 { font-size: 0.875rem; } /* ~11.8px - close to Marham 12px */
h6 { font-size: 0.8125rem; } /* ~11px */

p {
    margin-bottom: 0.6rem;
    color: var(--gray-600);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons - Compact Directory Style */
.btn {
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    padding: 7px 16px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(16, 185, 129, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.btn-primary:hover {
    background: rgba(16, 185, 129, 0.85);
    border-color: rgba(16, 185, 129, 0.7);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    border-radius: 14px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.7);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
}

.btn-outline-primary:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-success {
    background: rgba(16, 185, 129, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 14px;
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.85);
    border-color: rgba(16, 185, 129, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-warning {
    background: rgba(245, 158, 11, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 14px;
}

.btn-warning:hover {
    background: rgba(245, 158, 11, 0.85);
    border-color: rgba(245, 158, 11, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 14px;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Button States - Focus, Active, Disabled - Emerald Green Theme */
.btn-primary:focus,
.btn-primary.focus {
    background: rgba(16, 185, 129, 0.85);
    border-color: rgba(16, 185, 129, 0.7);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.5),
                0 6px 20px rgba(16, 185, 129, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    outline: none;
}

.btn-primary:active,
.btn-primary.active,
.btn-primary.show {
    background: rgba(5, 150, 105, 0.9) !important;
    border-color: rgba(5, 150, 105, 0.8) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5),
                inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(0);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background: rgba(16, 185, 129, 0.4) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-success:focus,
.btn-success.focus {
    background: rgba(16, 185, 129, 0.85);
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.5),
                0 6px 20px rgba(16, 185, 129, 0.4);
    outline: none;
}

.btn-success:active,
.btn-success.active {
    background: rgba(5, 150, 105, 0.9) !important;
    border-color: rgba(5, 150, 105, 0.8) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5) !important;
    transform: translateY(0);
}

.btn-success:disabled,
.btn-success.disabled {
    background: rgba(16, 185, 129, 0.4) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline-primary:focus,
.btn-outline-primary.focus {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
    outline: none;
}

.btn-outline-primary:active,
.btn-outline-primary.active {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: var(--primary-dark) !important;
    color: var(--primary-dark) !important;
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
    color: rgba(16, 185, 129, 0.5) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Override Bootstrap default button states - Force Green Theme */
button.btn-primary,
a.btn-primary,
input.btn-primary[type="submit"],
input.btn-primary[type="button"] {
    background: rgba(16, 185, 129, 0.7) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #ffffff !important;
}

button.btn-primary:focus,
a.btn-primary:focus,
input.btn-primary[type="submit"]:focus,
input.btn-primary[type="button"]:focus {
    background: rgba(16, 185, 129, 0.85) !important;
    border-color: rgba(16, 185, 129, 0.7) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.5) !important;
}

button.btn-primary:active,
a.btn-primary:active,
input.btn-primary[type="submit"]:active,
input.btn-primary[type="button"]:active,
button.btn-primary.active,
a.btn-primary.active {
    background: rgba(5, 150, 105, 0.9) !important;
    border-color: rgba(5, 150, 105, 0.8) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5) !important;
}

button.btn-primary:disabled,
a.btn-primary.disabled,
input.btn-primary[type="submit"]:disabled,
input.btn-primary[type="button"]:disabled {
    background: rgba(16, 185, 129, 0.4) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 0.6 !important;
}

/* Loading/Processing state - Maintain Green */
.btn-primary.loading,
.btn-primary[disabled] {
    background: rgba(16, 185, 129, 0.5) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #ffffff !important;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

/* Cards - Marham-Style Compact (border-radius: 8px, padding: 15px) */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px) saturate(140%);
    -webkit-backdrop-filter: blur(15px) saturate(140%);
    border-radius: 8px; /* Marham uses exactly 8px */
    box-shadow: 0px 1px 30px rgba(0, 0, 0, 0.03), 0 0.275rem 0.75rem -0.0625rem rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(220, 220, 220, 0.7);
    transition: all 0.2s ease;
    overflow: hidden;
    position: relative;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12),
                0 2px 6px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-4px);
}

.card-header {
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(16, 185, 129, 0.12);
    padding: 10px 15px;
    font-weight: 700;
    font-size: 13px;
    color: var(--gray-900);
}

.card-body {
    padding: 15px;  /* Marham uses exactly 15px */
    background: rgba(255, 255, 255, 0.3);
}

.card-footer {
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(16, 185, 129, 0.12);
    padding: 10px 15px;
}

/* Doctor Cards */
.doctor-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

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

.doctor-card .card-body {
    padding: var(--spacing-xl);
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin: 0 auto var(--spacing-lg);
}

.doctor-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.doctor-specialization {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.doctor-experience {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

.doctor-charges {
    background-color: var(--gray-50);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-lg);
}

.doctor-location {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
}

.doctor-badges {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.badge-success {
    background: rgba(16, 185, 129, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.badge-info {
    background: rgba(6, 182, 212, 0.18);
    color: #0e7490;
    border: 1px solid rgba(6, 182, 212, 0.35);
    box-shadow: 0 1px 4px rgba(6, 182, 212, 0.15);
}

/* Forms */
.form-control {
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13.5px;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15),
                inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    outline: none;
    background: rgba(255, 255, 255, 1);
}

.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-xs);
}

.form-text {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

/* Alerts - Compact */
.alert {
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid;
    font-weight: 500;
    font-size: 13px;
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.alert-success {
    background: rgba(209, 250, 229, 0.85);
    border-color: rgba(16, 185, 129, 0.4);
    color: #065f46;
}

.alert-danger {
    background: rgba(254, 226, 226, 0.85);
    border-color: rgba(239, 68, 68, 0.4);
    color: #991b1b;
}

.alert-warning {
    background: rgba(254, 243, 199, 0.85);
    border-color: rgba(245, 158, 11, 0.4);
    color: #92400e;
}

.alert-info {
    background: rgba(219, 234, 254, 0.85);
    border-color: rgba(16, 185, 129, 0.4);
    color: #059669;
}

/* Navigation - Compact Glassy Theme */
.navbar {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 6px 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.navbar-brand {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: var(--gray-700) !important;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(16, 185, 129, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

/* =============================================
   MedCare Design System - Reusable Components
   ============================================= */

/* --- Section Header with Green Accent --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2,
.section-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* --- Lightweight Breadcrumb --- */
.page-breadcrumb {
    padding: 1rem 0 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.page-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
    color: var(--primary-dark);
}

.page-breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--gray-400);
}

.page-breadcrumb .current {
    color: var(--gray-600);
    font-weight: 500;
}

/* --- CTA Banner (Green Gradient) --- */
.cta-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.cta-banner h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-banner .btn {
    background: #ffffff;
    color: #059669;
    border: none;
    border-radius: 30px;
    padding: 14px 36px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f0fdf4;
    color: #047857;
}

/* --- Blog Card --- */
.blog-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.blog-card .blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.blog-card .blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.blog-card .blog-card-meta i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

.blog-card .blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card .blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card .blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card .blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card .blog-card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}

.blog-card .blog-card-link:hover {
    gap: 0.6rem;
}

/* --- Value Card (About page) --- */
.value-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    text-align: center;
    transition: all 0.35s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.value-card .value-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon-circle {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #ffffff;
    transform: scale(1.1);
}

.value-card h4 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* --- Contact Info Card --- */
.contact-info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-card .contact-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon-circle {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #ffffff;
}

.contact-info-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

/* =============================================
   End MedCare Design System
   ============================================= */

/* Stats Section */
.stats-section {
    background-color: var(--white);
    padding: var(--spacing-3xl) 0;
}

.stat-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 4px solid var(--primary-color);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-dark);
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    font-weight: 500;
}

/* Features Section */
.features-section {
    background-color: var(--gray-50);
    padding: var(--spacing-3xl) 0;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    height: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: var(--white);
    font-size: var(--font-size-2xl);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Footer: shared emerald styles in static/css/footer.css */

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--error-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; color: #fff !important; }

/* Sidebar / admin avatar ring: keep icon clearly visible on white cards */
.admin-sidebar-col .admin-avatar,
.card.qc-admin-card .admin-avatar {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.12)) !important;
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    color: var(--primary-dark) !important;
}

.admin-sidebar-col .admin-avatar i,
.card.qc-admin-card .admin-avatar i {
    color: inherit !important;
    opacity: 1;
}
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--error-color) !important; }

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .stat-number {
        font-size: var(--font-size-3xl);
    }
    
    .doctor-card .card-body {
        padding: var(--spacing-lg);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .stat-number {
        font-size: var(--font-size-2xl);
    }
    
    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}
