/* ===================================
   FOUAD AL-KHATEEB HOSPITAL
   Professional Medical Website Styles
   =================================== */

/* CSS Variables / Design Tokens */
:root {
    /* Variables are now dynamically injected via _Layout.cshtml 
       based on Admin > Settings configurations. 
       Do not add static colors here. */

    /* Typography */

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 15px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* High-Fidelity Flying Animations */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    visibility: hidden;
    perspective: 1200px;
    will-change: transform, opacity;
}

.reveal.reveal-active {
    opacity: 1;
    visibility: visible;
    transform: translate(0) rotate(0) scale(1) !important;
}

/* Flying Directions */
.fly-up {
    transform: translateY(120px) scale(0.85) rotateX(15deg);
}

.reveal-active.fly-up {
    transform: translateY(0) scale(1) rotateX(0);
}

.fly-left {
    transform: translateX(-180px) rotateY(-25deg) scale(0.8);
}

.reveal-active.fly-left {
    transform: translateX(0) rotateY(0) scale(1);
}

.fly-right {
    transform: translateX(180px) rotateY(25deg) scale(0.8);
}

.reveal-active.fly-right {
    transform: translateX(0) rotateY(0) scale(1);
}

.fly-in {
    transform: translateZ(-200px) scale(0.7) rotateX(10deg);
}

.reveal-active.fly-in {
    transform: translateZ(0) scale(1) rotateX(0);
}

/* Kinetic Bounce Property */
.fly-bounce {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-duration: 1.4s;
}

/* Staggered Delay Utilities */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

.delay-600 {
    transition-delay: 600ms;
}

.delay-700 {
    transition-delay: 700ms;
}

.delay-800 {
    transition-delay: 800ms;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    /* overflow-x: hidden removed - breaks sticky positioning */
}

html {
    overflow-x: hidden;
    /* Moved here from body */
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--hover-color);
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section-light {
    background-color: var(--light);
}

.section-dark {
    background-color: var(--dark);
    color: var(--white);
}

.section-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-gray {
    color: var(--gray) !important;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--hover-color) !important;
    border-color: var(--hover-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white) !important;
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--hover-color) !important;
    border-color: var(--hover-color) !important;
    transform: translateY(-2px);
    color: var(--white) !important;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--light);
    color: var(--primary-dark);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 3px 18px;
    font-size: 0.85rem;
}

/* ===================================
   TOP HEADER BAR
   =================================== */
/* .top-header styles moved to sticky section */

.top-header .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Restoring Missing Top Header Styles */
.top-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    /* Center alignment space */
}

/* Enhanced Contact Info styling (White/Bold/Larger) */
.top-header-left a,
.top-header-left span,
.top-header-left,
.top-header-center a,
.top-header-center span {
    color: var(--white) !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    /* increased size */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.top-header-left a:hover,
.top-header-center a:hover {
    opacity: 0.9;
}

.top-header-left i {
    color: var(--white) !important;
    font-size: 1rem;
}

/* Red color for Hotline icon and text */
.top-header-center i,
.top-header-center .hotline-label {
    color: #ff0000 !important;
    font-size: 1.3rem !important;
    /* Pure Red, Larger Icon */
}

/* Top Header Bar */
.top-header {
    background: var(--secondary);
    color: var(--white);
    padding: 20px 0;
    font-size: 0.9rem;
    border-bottom: none;
    /* Remove border that could cause visual gap */
    position: relative;
    /* NOT sticky - wrapper handles it */
    z-index: 2;
    margin: 0;
    display: block;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Header Buttons */
a.btn-header-teal {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: 1px solid var(--primary-color) !important;
    padding: 15px 15px;
    /* Increased padding as requested */
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: normal;
}

a.btn-header-teal:hover {
    background: var(--hover-color) !important;
    border-color: var(--hover-color) !important;
}

a.btn-header-outline {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid var(--primary-color) !important;
    padding: 16px 16px;
    /* Increased padding as requested */
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: normal;
}

a.btn-header-outline:hover {
    border-color: var(--hover-color) !important;
    background: var(--hover-color) !important;
    color: #fff !important;
}

/* ===================================
   UNIFIED NAVIGATION (Single Sticky Element with Two Rows)
   =================================== */
.main-nav-unified {
    position: sticky;
    top: 0;
    z-index: 1100;
    /* Increased to be safely above other elements */
    margin: 0;
    padding: 0;
}

/* Row 1: Top Bar (Dark Blue - Hotline/Contact) */
.nav-row-top {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 0;
    /* Reduced from 20px */
    font-size: 0.85rem;
    /* Slightly smaller font */
}

.nav-row-top .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Row 2: Main Menu Bar (Light Background - Logo/Menu) */
.nav-row-main {
    background: var(--nav-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    /* Increased to 15px per user request */
    padding-bottom: 15px;
    /* Increased to 15px per user request */
}

.nav-row-main .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    /* Removed in favor of parent Row padding */
    padding-bottom: 0;
    /* Removed in favor of parent Row padding */
}

/* Custom Header Padding Control */
.header-container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Consolidated large screen refinements moved to bottom of Nav section */

/* Legacy support for .site-header-wrapper if still referenced */
.site-header-wrapper {
    display: none;
}

/* ===================================
   MAIN NAVIGATION
   =================================== */
.main-nav {
    background: var(--nav-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    /* NOT sticky - wrapper handles it */
    z-index: 1100;
    /* Matched with unified nav to avoid overrides */
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

/* Sticky State - Applied via JavaScript when user scrolls */
.main-nav.is-sticky {
    position: fixed;
    top: 0 !important;
    /* Stick to top of viewport */
    left: 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1200;
    /* Highest priority when fixed */
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Header Container Refinement for Large Screens to prevent overflow */
@media (min-width: 1200px) {
    .header-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .nav-row-main .container-fluid {
        flex-wrap: wrap;
    }
}

@media (min-width: 1400px) {
    .header-container {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .nav-menu {
        gap: 15px !important;
    }
}

/* Marquee & Global Overflow Fixes */
.marquee-container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
}

html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

/* ===================================
   GO TO TOP BUTTON
   =================================== */
.btn-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 9998;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-scroll-top i {
    color: #fff;
}

/* Proceed to Main Nav */
.main-nav .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0px;
    /* Set to 0px per user request */
    padding-bottom: 0px;
    /* Set to 0px per user request */
}

/* ... */

.nav-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    /* Bold */
    font-size: 1.3rem;
    /* Larger */
    color: var(--dark);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    min-width: max-content;
    /* Ensure enough width for name */
}

/* Hospital Name - First Part (Primary Color) */
.hospital-name-primary {
    color: var(--primary) !important;
    font-weight: 800;
    display: block;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Hospital Name - Second Part (Red Color) */
.hospital-name-secondary {
    color: #ff0000 !important;
    font-weight: 700;
    display: block;
    font-size: 0.85em;
    white-space: nowrap;
    /* Prevent wrapping */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 50px;
    /* Reduced from 60px for compact header */
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0 20px;
    align-items: center;
}

.nav-menu li {
    display: block;
}

.nav-menu li a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Custom Primary Button */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    /* Darker Teal */
    border-color: var(--hover-color);
    color: #fff;
}

/* Custom Outline Button (Teal Text/Border) */
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.nav-menu a {
    display: inline-block;
    padding: 8px 15px;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary), transparent 92%);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===================================
   NAVIGATION RESPONSIVENESS (Unified)
   =================================== */

/* Desktop State (Default) */
.nav-toggle {
    display: none !important;
}

.mobile-nav-item {
    display: none !important;
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 10px;
    }

    .nav-menu li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--secondary);
    }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: #fff !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 60px 20px !important;
        transition: 0.3s ease !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15) !important;
        overflow-y: auto !important;
        z-index: 2000 !important;
        display: flex !important;
        margin: 0 !important;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        display: block !important;
    }

    .nav-menu li a {
        padding: 12px 0 !important;
        width: 100%;
        display: block;
        color: var(--secondary) !important;
        font-size: 1rem !important;
        background: transparent !important;
    }

    .nav-menu li a:hover {
        color: var(--primary) !important;
        padding-left: 10px !important;
    }

    .nav-actions {
        display: none !important;
    }

    .mobile-nav-item {
        display: block !important;
    }

    .mobile-nav-item .btn {
        margin-top: 10px;
        display: flex !important;
        width: 100%;
        justify-content: center;
        padding: 12px !important;
    }

    .dropdown-menu {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        padding-left: 20px !important;
        border-left: 2px solid var(--primary);
        margin-top: 5px !important;
        float: none !important;
        width: 100% !important;
        background: transparent !important;
    }

    .dropdown-menu.show {
        display: block !important;
    }
}

/* ===================================
   HERO SLIDER
   =================================== */
.hero-slider {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    overflow: hidden;
}

.hero-slide {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    padding: 40px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-main-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-main-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-secondary-img {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 5px solid var(--white);
}

.about-content .subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 25px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    background: color-mix(in srgb, var(--primary), transparent 90%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.about-feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-secondary-img {
        display: none;
    }
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-section {
    padding: 100px 0;
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary), transparent 90%) 0%, color-mix(in srgb, var(--primary), transparent 80%) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--secondary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h4 {
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.service-card .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   VISION SECTION
   =================================== */
.vision-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary), transparent 80%) 0%, transparent 70%);
    border-radius: 50%;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.vision-content h2 {
    color: var(--white);
    margin-bottom: 25px;
}

.vision-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.vision-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 991px) {
    .vision-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   STATISTICS / COUNTERS
   =================================== */
.stats-section {
    padding: 80px 0;
    background: var(--primary-gradient);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    color: var(--white);
    padding: 30px 20px;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   WHAT MAKES US DIFFERENT
   =================================== */
.different-section {
    padding: 100px 0;
}

.different-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.different-content .subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.different-content h2 {
    margin-bottom: 20px;
}

.different-list {
    list-style: none;
    margin-top: 30px;
}

.different-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-dark);
}

.different-list li:last-child {
    border-bottom: none;
}

.different-list i {
    width: 28px;
    height: 28px;
    background: var(--secondary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.different-list span {
    font-size: 1rem;
    color: var(--dark);
}

.different-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 991px) {
    .different-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   DOCTORS SECTION
   =================================== */
.doctors-section {
    padding: 100px 0;
    background: var(--light);
}

.doctors-filter {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 20px;
    align-items: end;
}

.filter-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-dark);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary), transparent 90%);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.doctor-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-info {
    padding: 25px;
    text-align: center;
}

.doctor-info h4 {
    margin-bottom: 5px;
}

.doctor-info .specialty {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.doctor-info .department {
    color: var(--gray);
    font-size: 0.85rem;
}

@media (max-width: 1199px) {
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .doctors-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   GALLERY
   =================================== */
.gallery-section {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: var(--white);
    z-index: 2;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h5 {
    color: var(--white);
    margin-bottom: 5px;
}

.gallery-caption span {
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
    padding: 100px 0;
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card .icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-info-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--light-dark);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary), transparent 90%);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   COMMUNITY ENGAGEMENT
   =================================== */
.community-hero {
    min-height: 500px;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.community-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
}

.community-hero .container {
    position: relative;
    z-index: 1;
}

.community-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.community-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
}

.community-goals {
    padding: 100px 0;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.goal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.goal-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.goal-image {
    height: 200px;
    overflow: hidden;
}

.goal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.goal-card:hover .goal-image img {
    transform: scale(1.05);
}

.goal-content {
    padding: 25px;
}

.goal-content h4 {
    margin-bottom: 10px;
}

@media (max-width: 991px) {
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .goals-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   LOGIN PAGE
   =================================== */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-illustration {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-illustration img {
    max-width: 80%;
    max-height: 500px;
}

.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-form-wrapper .logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-form-wrapper .logo img {
    height: 60px;
}

.login-form-wrapper h2 {
    text-align: center;
    margin-bottom: 10px;
}

.login-form-wrapper .subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--gray);
}

.login-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

@media (max-width: 991px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-illustration {
        display: none;
    }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-about .logo img {
    height: 50px;
}

.footer-about .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact li span {
    flex: 1;
    line-height: 1.5;
}

.footer-contact li i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    flex-shrink: 0;
}

.footer-contact-item span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PAGE HEADER / BREADCRUMB
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary-dark) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary), transparent 80%) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    position: relative;
    z-index: 1;
}

.breadcrumb li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.breadcrumb li a {
    color: var(--primary-light);
}

.breadcrumb li::after {
    content: '/';
    margin-left: 10px;
    opacity: 0.5;
}

.breadcrumb li:last-child::after {
    display: none;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

/* ===================================
   SCROLLBAR
   =================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {

    .top-header,
    .main-nav,
    .footer {
        display: none;
    }
}

/* ===================================
   RESPONSIVENESS (MOBILE-FIRST)
   =================================== */

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.22rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding: 40px 0;
    }

    /* Hero Adjustments */
    .hero-slide {
        min-height: 500px;
        padding: 100px 0 60px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions {
        flex-direction: column !important;
        gap: 10px !important;
        display: flex !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Gallery Filters */
    .gallery-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 30px;
    }

    .gallery-filters .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin: 0 !important;
        flex: 1 1 auto;
        min-width: calc(33.33% - 8px);
        /* Ensure 3 items per row on very small screens */
        max-width: calc(50% - 8px);
    }

    /* Grid Stacking for all pages */
    .about-grid,
    .services-grid,
    .departments-grid,
    .gallery-grid,
    .stats-grid,
    .team-grid,
    .doctors-grid,
    .footer-grid,
    .community-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .about-images,
    .about-content,
    .vision-content,
    .vision-image {
        padding: 0 !important;
    }

    /* Directional transitions adjustment for mobile */
    .reveal {
        transition-duration: 0.8s;
        perspective: none;
        /* Disable 3D transforms on mobile for performance and readability */
    }

    .fly-left,
    .fly-right {
        transform: translateY(30px) scale(0.96) !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.85rem;
    }

    .btn {
        padding: 12px 20px;
        width: 100%;
        border-radius: 8px;
        justify-content: center;
    }

    .page-header {
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }
}