/* Modern Medical Theme - Database-driven Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==================== CSS CUSTOM PROPERTIES - DATABASE THEME ==================== */
:root {
    /* Database Theme Colors */
    --medical-primary: #203967;
    --medical-secondary: #6c757d;
    --medical-accent: #203967;
    
    /* Additional Theme Colors */
    --medical-text: #333333;
    --medical-background: #ffffff;
    --medical-header-bg: #ffffff;
    --medical-footer-bg: #203967;
    --medical-link: #1f4970;
    --medical-border: #dee2e6;
    
    /* Computed Theme Colors */
    --medical-primary-light: #536c9a;
    --medical-primary-dark: #000634;
    --medical-secondary-light: #9fa8b0;
    --medical-accent-light: #536c9a;
    
        /* Light Theme Variables */
    --medical-light: #f8fafb;
    --medical-dark: #1a365d;
    --text-primary: #333333;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-light: #dee2e6;
    --background-subtle: #f7fafc;
    --background-surface: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
        
    /* Status Colors */
    --emergency-red: #e53e3e;
    --emergency-amber: #dd6b20;
    --success-green: #38a169;
    --warning-yellow: #d69e2e;
    
    /* Typography Scale - Enhanced */
    --font-primary: 'Inter', system-ui, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.875rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 3.75rem;
    --font-size-6xl: 4.5rem;
    
    /* Spacing System - Enhanced */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    --spacing-3xl: 8rem;
    --spacing-4xl: 10rem;
    --spacing-5xl: 12rem;
    
    /* Shadow System - Theme Adaptive */
    --shadow-sm: 0 1px 2px var(--shadow-color);
    --shadow-md: 0 4px 6px var(--shadow-color);
    --shadow-lg: 0 10px 25px var(--shadow-color);
    --shadow-xl: 0 20px 40px var(--shadow-color);
    
    /* Animation Variables */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.7;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--background-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background-color: var(--background-surface);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--medical-dark);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

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

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

/* ==================== HERO SLIDER SYSTEM ==================== */
.advanced-hospital-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--medical-primary);
}

.advanced-slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.advanced-hospital-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.advanced-hospital-slide.active {
    opacity: 1;
    z-index: 2;
}

.advanced-hospital-slide.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.advanced-hospital-slide.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.advanced-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 91, 154, 0.8);
    z-index: 1;
}

.advanced-slide-content {
    position: absolute;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    color: white;
    max-width: 650px;
    z-index: 2;
    animation: slideInLeft 1s ease-out;
}

.advanced-slide-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.advanced-slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.advanced-slide-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.advanced-cta-container {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.advanced-btn-primary,
.advanced-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
}

.advanced-btn-primary {
    background: var(--emergency-red);
    color: white;
    box-shadow: 0 4px 20px rgba(229, 62, 62, 0.4);
}

.advanced-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(229, 62, 62, 0.6);
    color: white;
}

.advanced-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.advanced-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    color: white;
}

/* Navigation Arrows */
.advanced-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    font-size: 1.5rem;
}

.advanced-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.advanced-nav-prev {
    left: 40px;
}

.advanced-nav-next {
    right: 40px;
}

/* Slide Indicators */
.advanced-slide-indicators {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.advanced-indicator {
    position: relative;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.advanced-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.advanced-indicator.active {
    background: rgba(255, 255, 255, 0.6);
}

.advanced-indicator-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.advanced-indicator.active .advanced-indicator-progress {
    width: 100%;
}

/* ==================== SECTION LAYOUTS ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.py-5 {
    padding: 80px 0;
}

.py-4 {
    padding: 60px 0;
}

.py-3 {
    padding: 40px 0;
}

section {
    position: relative;
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--medical-dark);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--medical-primary);
    border-radius: 2px;
}

.section-title p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin: 0;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: white;
}

.about-img img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
}

.about-text h3 {
    color: var(--medical-primary);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
}

.about-features {
    margin-top: 40px;
}

.about-feature {
    padding: 15px 0;
}

.about-feature i {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--medical-primary) 0%, var(--medical-secondary) 100%);
    color: white;
    border-radius: 12px;
    margin-right: 15px;
}

.about-feature h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--medical-dark);
    margin-bottom: 5px;
}

.about-feature p {
    color: var(--text-secondary);
    margin: 0;
    font-size: var(--font-size-sm);
}

.btn-services {
    background: linear-gradient(135deg, var(--medical-primary) 0%, var(--medical-secondary) 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.btn-services:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background: var(--medical-light);
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-img {
    height: 200px;
    overflow: hidden;
}

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

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--medical-dark);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.service-content p {
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: var(--spacing-lg);
}

.service-link {
    color: var(--medical-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
}

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

/* ==================== MISSION & VISION SECTION ==================== */
.mission-vision {
    background: linear-gradient(135deg, #f8fafb 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.medical-shape {
    position: absolute;
    color: rgba(30, 91, 154, 0.05);
    font-size: 8rem;
    z-index: 1;
}

.medical-shape.shape-1 {
    top: 10%;
    right: 5%;
}

.medical-shape.shape-2 {
    bottom: 10%;
    left: 5%;
}

.medical-shape.shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mission-card, .vision-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    z-index: 2;
}

.mission-card::before, .vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--medical-primary);
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--medical-primary) 0%, var(--medical-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: white;
    font-size: 2rem;
}

.mission-card h3, .vision-card h3 {
    font-size: var(--font-size-2xl);
    color: var(--medical-dark);
    margin-bottom: 25px;
}

.card-content {
    margin-bottom: 30px;
}

.mission-item, .vision-item {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.mission-item::before, .vision-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--medical-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.card-stats {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--medical-primary);
    display: block;
}

.stat-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.vision-timeline {
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.timeline-dot.completed {
    background: var(--success-green);
}

.timeline-dot.in-progress {
    background: var(--warning-yellow);
}

/* Core Values */
.core-values {
    margin-top: 60px;
}

.values-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--medical-dark);
}

.value-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--medical-accent) 0%, var(--medical-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.value-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--medical-dark);
}

.value-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* ==================== STATISTICS SECTION ==================== */
.achievements-stats {
    background: white;
}

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--medical-primary);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--medical-primary) 0%, var(--medical-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
    font-size: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--medical-primary);
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stat-label {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

/* ==================== WHY CHOOSE US SECTION ==================== */
.why-choose-us {
    background: var(--medical-light);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.why-choose-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.why-choose-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-choose-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--medical-primary) 0%, var(--medical-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.why-choose-content h4 {
    font-size: var(--font-size-xl);
    color: var(--medical-dark);
    margin-bottom: 10px;
}

.why-choose-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ==================== CONTACT PAGE SPECIFIC STYLES ==================== */
.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--medical-primary), var(--medical-secondary));
    transition: height 0.3s ease;
}

.contact-card:hover:before {
    height: 8px;
}

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

.contact-card .contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--medical-primary) 0%, var(--medical-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 25px auto;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card h3 {
    font-size: var(--font-size-xl);
    color: var(--medical-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-card .contact-details p {
    margin-bottom: 8px;
    color: var(--medical-dark);
}

.contact-card .contact-link {
    color: var(--medical-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-card .contact-link:hover {
    color: var(--medical-secondary);
    transform: translateX(5px);
}

/* Form Styles */
.form-section {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.form-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--medical-primary), var(--medical-secondary));
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--medical-dark);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--medical-primary);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Info Cards */
.info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    color: var(--medical-primary);
    margin-bottom: 25px;
    font-size: var(--font-size-xl);
    font-weight: 600;
}

/* Business Hours */
.hours-schedule {
    margin-top: 20px;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hour-row:last-child {
    border-bottom: none;
}

.hour-row.today {
    background: var(--medical-light);
    padding: 15px 20px;
    margin: 0 -20px;
    border-radius: 10px;
    border-bottom: none;
}

.hour-row .day {
    font-weight: 600;
    color: var(--medical-dark);
}

.hour-row .time {
    color: var(--text-secondary);
}

.emergency-note {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #e53935 100%);
    color: white;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
}

/* Social Links */
.social-contact {
    text-align: center;
}

.social-contact .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    transform-origin: center;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #833AB4, #E1306C, #F56040);
}

.social-link.youtube {
    background: #ff0000;
}

.social-link:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.social-contact p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ==================== HOW IT WORKS SECTION ==================== */
.how-it-works {
    background: white;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step-item {
    text-align: center;
    position: relative;
    padding: 30px 20px;
    background: var(--medical-light);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--medical-primary) 0%, var(--medical-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: white;
}

.step-icon {
    margin: 40px 0 20px;
}

.step-icon i {
    font-size: 3rem;
    color: var(--medical-primary);
}

.step-content h4 {
    font-size: var(--font-size-xl);
    color: var(--medical-dark);
    margin-bottom: 15px;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ==================== DOCTORS SECTION ==================== */
.doctors {
    background: var(--medical-light);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.doctor-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

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

.doctor-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.doctor-info {
    padding: 30px;
}

.doctor-info h3 {
    font-size: var(--font-size-xl);
    color: var(--medical-dark);
    margin-bottom: 10px;
}

.doctor-specialty {
    color: var(--medical-primary);
    font-weight: 600;
    font-size: var(--font-size-lg);
    display: block;
    margin-bottom: 15px;
}

.doctor-desc {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.doctor-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.doctor-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--medical-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medical-primary);
    transition: all 0.3s ease;
}

.doctor-social a:hover {
    background: var(--medical-primary);
    color: white;
    transform: translateY(-2px);
}

/* ==================== APPOINTMENT SECTION ==================== */
.appointment {
    background: white;
}

.appointment-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--medical-light);
    padding: 50px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--medical-dark);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px 20px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--medical-primary);
    box-shadow: 0 0 0 3px rgba(30, 91, 154, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-full {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--medical-primary) 0%, var(--medical-secondary) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials {
    background: var(--medical-light);
}

.testimonial-slider {
    position: relative;
    margin-top: 40px;
}

.testimonial-container {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial {
    min-width: 100%;
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

.testimonial-rating {
    margin-bottom: 25px;
}

.testimonial-rating i {
    color: #ffd700;
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial-rating i.filled {
    color: #ffd700;
}

.testimonial-content {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    width: 100%;
    height: 100%;
    background: var(--medical-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medical-primary);
    font-size: 1.5rem;
}

.author-info h4 {
    font-size: var(--font-size-lg);
    color: var(--medical-dark);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-muted);
    margin: 0;
    font-size: var(--font-size-sm);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--medical-primary);
    transform: scale(1.2);
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
    .advanced-slide-content {
        left: 40px;
        max-width: 500px;
    }
    
    .advanced-slide-title {
        font-size: 2.5rem;
    }
    
    .advanced-cta-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .advanced-hospital-slider {
        height: 70vh;
    }
    
    .advanced-slide-content {
        left: 20px;
        right: 20px;
        max-width: none;
        text-align: center;
        top: 50%;
    }
    
    .advanced-slide-title {
        font-size: 2rem;
    }
    
    .advanced-nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .advanced-nav-prev {
        left: 15px;
    }
    
    .advanced-nav-next {
        right: 15px;
    }
    
    .advanced-slide-indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .advanced-indicator {
        width: 40px;
        height: 3px;
    }
    
    .py-5 {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: var(--font-size-2xl);
    }
    
    .appointment-form {
        padding: 30px;
        margin: 0 20px;
    }
    
    .testimonial {
        padding: 30px;
        margin: 0 20px;
    }
    
    .how-it-works-grid,
    .doctors-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .advanced-slide-title {
        font-size: 1.5rem;
    }
    
    .advanced-slide-description {
        font-size: var(--font-size-base);
    }
    
    .advanced-btn-primary,
    .advanced-btn-secondary {
        padding: 12px 25px;
        font-size: var(--font-size-sm);
    }
    
    .container {
        padding: 0 15px;
    }
    
    .mission-card,
    .vision-card,
    .value-item {
        padding: 25px;
    }
    
    .stat-card {
        padding: 25px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .appointment-form {
        padding: 25px;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }

.me-3 { margin-right: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.g-4 > * {
    margin-bottom: 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-lg-3,
.col-lg-4,
.col-lg-6,
.col-lg-12,
.col-md-6,
.col-12 {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        width: 25%;
    }
    
    .col-lg-4 {
        width: 33.333333%;
    }
    
    .col-lg-6 {
        width: 50%;
    }
    
    .col-lg-12 {
        width: 100%;
    }
}

.h-100 {
    height: 100%;
}

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

.rounded {
    border-radius: 0.375rem;
}

/* ==================== BUTTON STYLES ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--medical-primary);
    color: white;
    box-shadow: var(--shadow-md);
    border: none;
}

.btn-primary:hover {
    background-color: var(--medical-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background-color: var(--medical-secondary);
    color: white;
    box-shadow: var(--shadow-sm);
    border: none;
}

.btn-secondary:hover {
    background-color: var(--medical-secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* ==================== ACCESSIBILITY ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--medical-primary);
    outline-offset: 2px;
}

/* ==================== ADVANCED ANIMATIONS & EFFECTS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--medical-primary);
    }
    50% {
        box-shadow: 0 0 20px var(--medical-primary), 0 0 30px var(--medical-primary);
    }
}

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

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

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

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.glow-animation {
    animation: glow 2s ease-in-out infinite;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ==================== ENHANCED HERO SECTION ==================== */
.advanced-hospital-slider {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-secondary));
}

.advanced-hospital-slide {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.advanced-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(30, 91, 154, 0.7) 0%, 
        rgba(202, 32, 39, 0.5) 100%);
    backdrop-filter: blur(2px);
}

.advanced-slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.advanced-slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    z-index: -1;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.advanced-slide-tag {
    display: inline-block;
    background: var(--medical-accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.advanced-slide-title {
    font-size: var(--font-size-6xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.advanced-slide-description {
    font-size: var(--font-size-xl);
    line-height: 1.8;
    margin-bottom: var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.advanced-cta-container {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.advanced-btn-primary, .advanced-btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: var(--font-size-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.advanced-btn-primary {
    background: linear-gradient(135deg, var(--medical-accent), #28a745);
    color: white;
    border: 2px solid transparent;
}

.advanced-btn-primary:hover {
    background: linear-gradient(135deg, #28a745, var(--medical-accent));
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

.advanced-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.advanced-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

/* ==================== ENHANCED SECTION STYLING ==================== */
.modern-section {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-2xl) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.modern-section .container {
    width: 100%;
}

/* Large hero sections */
.hero-section {
    min-height: 100vh;
    padding: var(--spacing-3xl) 0;
}

/* Medium sections */
.content-section {
    min-height: 60vh;
    padding: var(--spacing-xl) 0;
}

.modern-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 49%, var(--medical-primary) 50%, transparent 51%);
    opacity: 0.02;
    pointer-events: none;
}

.modern-section:nth-child(even) {
    background: linear-gradient(135deg, 
        var(--background-subtle) 0%, 
        var(--background-surface) 100%);
}

.section-title {
    position: relative;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.section-title h1 {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.section-title h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.3;
}

.section-title h3 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--medical-primary);
}

.section-title p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--medical-primary) 0%, var(--medical-secondary) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ==================== ENHANCED CARDS ==================== */
.enhanced-card {
    position: relative;
    background: var(--background-surface);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--medical-primary) 0%, var(--medical-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.enhanced-card:hover::before {
    transform: scaleX(1);
}

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

.enhanced-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.enhanced-card .card-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.enhanced-card:hover .card-icon::after {
    opacity: 1;
    transform: rotate(45deg) translate(100%, 100%);
}

/* ==================== ENHANCED STATISTICS ==================== */
.stat-counter {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--medical-primary);
    display: block;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--medical-secondary);
    border-radius: 1px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== ENHANCED TESTIMONIALS ==================== */
.testimonial-card {
    background: var(--background-surface);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    margin: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.testimonial-card::before {
    content: '"';
    font-size: 6rem;
    color: var(--medical-primary);
    position: absolute;
    top: -10px;
    left: 30px;
    font-family: serif;
    opacity: 0.3;
}

.testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid var(--medical-primary);
    overflow: hidden;
}

.testimonial-content {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--medical-primary);
    margin-bottom: 0.5rem;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==================== ENHANCED BUTTONS ==================== */
.btn-enhanced {
    position: relative;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    overflow: hidden;
    border: 2px solid var(--medical-primary);
    background: var(--medical-primary);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-enhanced:hover::before {
    left: 100%;
}

.btn-enhanced:hover {
    background: var(--medical-secondary);
    border-color: var(--medical-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.btn-enhanced.btn-outline {
    background: transparent;
    color: var(--medical-primary);
}

.btn-enhanced.btn-outline:hover {
    background: var(--medical-primary);
    color: white;
}

/* ==================== RESPONSIVE ENHANCEMENTS ==================== */
@media (max-width: 768px) {
    .enhanced-card {
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .testimonial-card {
        margin: 1rem 0;
    }
    
    .modern-section {
        padding: 60px 0;
    }
}

/* ==================== LOADING ANIMATIONS ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--medical-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Responsive Styles */
@media (max-width: 1200px) {
    .advanced-slide-title {
        font-size: var(--font-size-5xl);
    }
    
    .advanced-slide-description {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 768px) {
    .advanced-hospital-slider {
        min-height: 80vh;
    }
    
    .advanced-slide-title {
        font-size: var(--font-size-4xl);
    }
    
    .advanced-slide-description {
        font-size: var(--font-size-base);
    }
    
    .advanced-cta-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .advanced-btn-primary, .advanced-btn-secondary {
        padding: 0.875rem 2rem;
        font-size: var(--font-size-base);
        width: 100%;
        max-width: 300px;
    }
    
    .modern-section {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .section-title h1 {
        font-size: var(--font-size-4xl);
    }
    
    .section-title h2 {
        font-size: var(--font-size-3xl);
    }
}

/* ==================== FLOATING ELEMENTS ==================== */
.floating-appointment-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-secondary));
    color: white;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.floating-appointment-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.floating-appointment-btn i {
    font-size: 18px;
}

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--medical-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--medical-secondary);
    transform: translateY(-5px);
}

/* ==================== SLIDER NAVIGATION ==================== */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: var(--medical-primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* ==================== ENHANCED NAVBAR ==================== */
.navbar {
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link {
    color: var(--text-primary) !important;
}

/* ==================== TESTIMONIAL CAROUSEL ==================== */
.testimonials-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    overflow: hidden;
}

.testimonials-carousel .testimonial-card {
    flex: 0 0 400px;
    transition: all 0.5s ease;
}

/* ==================== TYPEWRITER EFFECT ==================== */
.typewriter {
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
}

/* ==================== INTERACTIVE ELEMENTS ==================== */
.interactive-icon {
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-icon:hover {
    transform: rotate(360deg) scale(1.2);
    color: var(--medical-primary);
}

.hover-lift:hover {
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px var(--medical-primary);
    transition: all 0.3s ease;
}

/* ==================== ADVANCED GRID LAYOUTS ==================== */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    display: inline-block;
    width: 100%;
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
    
    .floating-appointment-btn {
        right: 10px;
        bottom: 10px;
        padding: 12px 20px;
    }
    
    .floating-appointment-btn span {
        display: none;
    }
    
    .scroll-top-btn {
        left: 10px;
        bottom: 10px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-prev {
        left: 15px;
    }
    
    .slider-next {
        right: 15px;
    }
}

/* ==================== CENTRALIZED HERO & SECTIONS ==================== */
/* Universal Hero Component */
.catchy-hero {
    background: linear-gradient(135deg, var(--medical-primary) 0%, var(--medical-primary-dark) 50%, var(--medical-accent) 100%);
    color: white;
    padding: 120px 0 100px !important;
    position: relative;
    overflow: hidden;
    min-height: 85vh !important;
    height: auto;
    display: flex !important;
    align-items: center !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
    width: 100%;
    box-sizing: border-box;
}

.catchy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 65%;
    animation: heroSlideIn 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-badge {
    background: linear-gradient(135deg, var(--medical-secondary), var(--medical-secondary-light));
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 32px rgba(202, 32, 39, 0.3);
    animation: badgePulse 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(202, 32, 39, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(202, 32, 39, 0.5);
    }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 35px;
    background: linear-gradient(135deg, #ffffff 0%, #e8f4fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 50px;
    opacity: 0.92;
    font-weight: 400;
    max-width: 90%;
    color: rgba(255, 255, 255, 0.95);
}

/* Universal Section Component */
.department-section {
    padding: 100px 0;
    background: var(--background-surface);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--medical-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--medical-primary);
    margin-bottom: 40px;
    line-height: 1.2;
    text-align: left;
}

/* Universal Content Wrapper */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text-content {
    padding-right: 40px;
}

.about-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--medical-primary);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--medical-primary);
    margin-bottom: 8px;
}

.feature-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.about-image-content {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-featured-image {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

.image-overlay-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px;
}

/* Responsive Design for Universal Components */
@media (max-width: 768px) {
    .catchy-hero {
        min-height: 60vh !important;
        padding: 80px 0 60px !important;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .department-section {
        padding: 60px 0;
    }
    
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text-content {
        padding-right: 0;
    }
    
    .section-title, .about-title {
        font-size: 2.2rem;
    }
}

/* ==================== SPLIT MISSION VISION LAYOUT (Home Page Style) ==================== */
.split-mission-vision-layout {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.split-floating-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--medical-primary)10, var(--medical-accent)08);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.split-floating-bg:nth-child(1) {
    top: 20%;
    right: 5%;
    animation-delay: 0s;
}

.split-floating-bg:nth-child(2) {
    bottom: 20%;
    left: 5%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.split-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.split-header {
    text-align: center;
    margin-bottom: 80px;
}

.split-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--medical-primary);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.split-subtitle {
    font-size: 1.4rem;
    color: var(--medical-secondary);
    font-weight: 600;
    margin-bottom: 25px;
}

.split-intro {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.split-layout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.split-side-header {
    text-align: center;
    margin-bottom: 50px;
}

.split-side-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--medical-primary);
    margin-bottom: 15px;
}

.split-side-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--medical-primary), var(--medical-accent));
    margin: 0 auto;
    border-radius: 2px;
}

/* Left Side - Mission & Vision */
.split-left-side {
    background: rgba(255, 255, 255, 0.7);
    padding: 50px 40px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.split-mv-card {
    background: white;
    padding: 35px 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid var(--medical-primary);
}

.split-mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.split-mv-card.split-combined {
    padding: 40px 35px;
    min-height: 280px;
}

.split-mv-card.split-combined .split-mv-content {
    line-height: 1.8;
}

.split-mv-card.split-combined .split-mv-content strong {
    color: var(--medical-primary);
    font-weight: 600;
}

.split-mv-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.split-mv-icon-wrapper i {
    font-size: 1.4rem;
    color: white;
}

.split-mv-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--medical-primary);
    margin-bottom: 15px;
}

.split-mv-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Goals Section */
.split-goals-section {
    background: var(--medical-primary)05;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.split-goals-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--medical-primary);
    margin-bottom: 20px;
    text-align: center;
}

.split-goal-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--medical-primary)10;
}

.split-goal-item:last-child {
    border-bottom: none;
}

.split-goal-item i {
    color: var(--medical-accent);
    margin-right: 15px;
    font-size: 1.1rem;
}

.split-goal-item span {
    color: #555;
    font-size: 0.95rem;
}

/* Right Side - Core Values */
.split-right-side {
    background: rgba(255, 255, 255, 0.7);
    padding: 50px 40px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.split-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.split-value-card {
    background: white;
    padding: 30px 25px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--medical-accent);
}

.split-value-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.split-value-icon-wrapper {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--medical-primary)15, var(--medical-accent)15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: all 0.3s ease;
}

.split-value-card:hover .split-value-icon-wrapper {
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-accent));
    transform: rotate(360deg);
}

.split-value-icon-wrapper i {
    font-size: 1.1rem;
    color: var(--medical-primary);
    transition: all 0.3s ease;
}

.split-value-card:hover .split-value-icon-wrapper i {
    color: white;
}

.split-value-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--medical-primary);
    margin-bottom: 12px;
}

.split-value-content {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Responsive Design for Split Layout */
@media (max-width: 1024px) {
    .split-layout-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .split-values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .split-main-title {
        font-size: 2.8rem;
    }
    
    .split-left-side,
    .split-right-side {
        padding: 40px 30px;
    }
    
    .split-values-grid {
        grid-template-columns: 1fr;
    }
    
    .split-layout-container {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .split-main-title {
        font-size: 2.2rem;
    }
    
    .split-left-side,
    .split-right-side {
        padding: 30px 20px;
    }
    
    .split-mv-card {
        padding: 25px 20px;
    }
}
