/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #43e4e7;
    --primary-dark: #22c4d3;
    --primary-light: #5eead4;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    /* Improved contrast for accessibility (WCAG AA compliant) */
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --gradient-1: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-3: linear-gradient(135deg, #5eead4 0%, #14b8a6 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #e0f2fe;
    /* Light sky blue background */
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Tajawal', 'Poppins', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Screen reader only class for 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-width: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(0) saturate(100%) invert(8%) sepia(95%) saturate(3000%) hue-rotate(210deg) brightness(0.4) contrast(1.3);
}

.logo-img:hover {
    transform: scale(1.05);
    filter: brightness(0) saturate(100%) invert(8%) sepia(95%) saturate(3000%) hue-rotate(210deg) brightness(0.5) contrast(1.3);
}

.footer-logo-img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.language-toggle {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.05);
}

.lang-btn i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.lang-btn:hover i {
    color: var(--bg-white);
}

.lang-text {
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.lang-btn:hover .lang-text {
    color: var(--bg-white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #06b6d4 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/clinic_building.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    /* Increased opacity for clearer background */
    z-index: 0;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.5) 0%, rgba(13, 148, 136, 0.5) 50%, rgba(6, 182, 212, 0.5) 100%);
    /* Reduced opacity for clearer image */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Reduced opacity for clearer background image */
    z-index: 1;
}

.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--bg-white);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--bg-white);
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--bg-white);
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    text-align: center;
    color: var(--bg-white);
    z-index: 2;
    position: relative;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.mira-highlight {
    font-size: 4.5rem;
    font-weight: 900;
    color: #1e3a8a;
    /* Dark navy blue to match logo color */
    text-shadow:
        /* White smoke spread effect - multiple layers for diffused glow */
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 255, 255, 0.3),
        0 0 50px rgba(255, 255, 255, 0.2),
        0 0 60px rgba(255, 255, 255, 0.15),
        0 0 80px rgba(255, 255, 255, 0.1),
        /* Subtle dark shadow for text definition */
        2px 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-block;
    position: relative;
}

.mira-full {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--bg-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}


.highlight {
    background: linear-gradient(120deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge i {
    font-size: 1.25rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--bg-white);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--bg-white);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    /* Light cyan gradient */
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    border-left: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, currentColor 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:first-child {
    border-left-color: #14b8a6;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.2);
}

.about-card:first-child::before {
    background: linear-gradient(90deg, transparent 0%, #14b8a6 50%, transparent 100%);
}

.about-card:last-child {
    border-left-color: #06b6d4;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

.about-card:last-child::before {
    background: linear-gradient(90deg, transparent 0%, #06b6d4 50%, transparent 100%);
}

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

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bg-white);
}

.about-card:first-child .card-icon {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.about-card:last-child .card-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.values-section {
    margin-top: 4rem;
}

.values-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.value-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border-top: 4px solid transparent;
}

.value-item:nth-child(1) {
    border-top-color: #fbbf24;
}

.value-item:nth-child(2) {
    border-top-color: #14b8a6;
}

.value-item:nth-child(3) {
    border-top-color: #ef4444;
}

.value-item:nth-child(4) {
    border-top-color: #10b981;
}

.value-item:nth-child(5) {
    border-top-color: #8b5cf6;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: var(--bg-white);
}

.value-item:nth-child(1):hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.value-item:nth-child(2):hover {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.value-item:nth-child(3):hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.value-item:nth-child(4):hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.value-item:nth-child(5):hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.value-item:nth-child(1) i {
    color: #fbbf24;
}

.value-item:nth-child(2) i {
    color: #14b8a6;
}

.value-item:nth-child(3) i {
    color: #ef4444;
}

.value-item:nth-child(4) i {
    color: #10b981;
}

.value-item:nth-child(5) i {
    color: #8b5cf6;
}

.value-item:hover i {
    color: var(--bg-white);
    transform: scale(1.2) rotate(360deg);
}

.value-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================
   DEPARTMENTS SECTION
   ============================================ */
.departments {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    /* Light blue gradient */
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.department-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.5s ease;
    z-index: 0;
}

.department-card[data-theme="red"]::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.department-card[data-theme="blue"]::before {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.department-card[data-theme="green"]::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.department-card[data-theme="purple"]::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.department-card[data-theme="orange"]::before {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.department-card[data-theme="teal"]::before {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.department-card[data-theme="cyan"]::before {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.department-card[data-theme="pink"]::before {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.department-card[data-theme="indigo"]::before {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.department-card[data-theme="amber"]::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.department-card[data-theme="lime"]::before {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
}

.department-card[data-theme="rose"]::before {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.department-card[data-theme="sky"]::before {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.department-card[data-theme="violet"]::before {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.department-card[data-theme="emerald"]::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.department-card[data-theme="yellow"]::before {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.department-card[data-theme="fuchsia"]::before {
    background: linear-gradient(135deg, #d946ef 0%, #c026d3 100%);
}

.department-card:hover::before {
    left: 0;
}

.department-card[data-theme="red"] .department-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.department-card[data-theme="blue"] .department-icon {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.department-card[data-theme="green"] .department-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.department-card[data-theme="purple"] .department-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.department-card[data-theme="orange"] .department-icon {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.department-card[data-theme="teal"] .department-icon {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.department-card[data-theme="cyan"] .department-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.department-card[data-theme="pink"] .department-icon {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.department-card[data-theme="indigo"] .department-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.department-card[data-theme="amber"] .department-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.department-card[data-theme="lime"] .department-icon {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
}

.department-card[data-theme="rose"] .department-icon {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.department-card[data-theme="sky"] .department-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.department-card[data-theme="violet"] .department-icon {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.department-card[data-theme="emerald"] .department-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.department-card[data-theme="yellow"] .department-icon {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.department-card[data-theme="fuchsia"] .department-icon {
    background: linear-gradient(135deg, #d946ef 0%, #c026d3 100%);
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    color: var(--bg-white);
}


.department-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bg-white);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}


.department-icon .icon-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.department-card:hover .department-icon .icon-image {
    filter: brightness(0) saturate(100%) invert(67%) sepia(90%) saturate(2000%) hue-rotate(160deg) brightness(95%) contrast(90%);
}


.department-card:hover .department-icon {
    background: var(--bg-white);
    color: var(--primary-color);
    transform: scale(1.1) rotate(360deg);
}

.department-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.department-card p {
    color: var(--text-light);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.department-card:hover p {
    color: var(--bg-white);
}

.badge-24 {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    /* Light blue gradient - different from other sections */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: 0;
}

.service-card:hover::after {
    width: 300px;
    height: 300px;
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.service-card:hover i {
    color: var(--bg-white);
    transform: scale(1.2) rotate(360deg);
}

.service-card h3 {
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--bg-white);
}

.insurance-banner {
    background: var(--gradient-1);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: var(--bg-white);
    margin-top: 3rem;
    box-shadow: var(--shadow-lg);
}

.insurance-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.insurance-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.insurance-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ============================================
   COMING SOON SECTION
   ============================================ */
.coming-soon {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    /* Light pink gradient */
}

.coming-soon-content {
    text-align: center;
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.coming-soon-card {
    padding: 3rem;
    border-radius: 20px;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.physio-card {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.dental-card {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.coming-soon-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.coming-soon-card i {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.coming-soon-card .coming-soon-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
}

.coming-soon-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.coming-soon-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-item:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: var(--shadow-lg);
}

.gallery-media {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
    transform: translateZ(0);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.08) translateZ(0);
}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    will-change: contents;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
    transform: translateZ(0);
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--bg-white);
    transform: scale(0.8) translateZ(0);
    transition: transform 0.3s ease;
    will-change: transform;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1) translateZ(0);
}

.gallery-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: transform, opacity;
    pointer-events: none;
}

.gallery-item:hover .gallery-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1) translateZ(0);
}

.gallery-play-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-left: 3px;
}

.gallery-name {
    padding: 1.25rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.5;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--bg-white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-media {
        height: 200px;
    }
    
    .gallery-name {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-close {
        top: -40px;
        font-size: 2.5rem;
    }
    
    .gallery-item {
        will-change: auto;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-media {
        height: 220px;
    }
    
    .gallery-item:hover {
        transform: translateY(-5px) translateZ(0);
    }
    
    .gallery-item:hover .gallery-image {
        transform: scale(1.05) translateZ(0);
    }
}

.contact {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    /* Light indigo gradient */
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.contact-phone {
    border-left-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.contact-email {
    border-left-color: #14b8a6;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.contact-location {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-phone a {
    color: #059669;
    /* Green color for phone */
}

.contact-email a {
    color: #2563eb;
    /* Blue color for email */
}

.contact-item a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.qr-code-container {
    margin-top: 1rem;
    text-align: center;
}

.qr-code {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--bg-white);
}

.qr-code:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.qr-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.map-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.map-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.contact-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--bg-white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.developer-credit {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.7;
}

.developer-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.developer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer .logo {
    margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .language-toggle {
        margin-left: 0.5rem;
        order: -1;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    [dir="rtl"] .language-toggle {
        margin-left: 0;
        margin-right: 0.5rem;
    }

    .logo-img {
        height: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .departments-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .logo-img {
        height: 35px;
    }

    .footer-logo-img {
        height: 50px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .coming-soon-grid {
        grid-template-columns: 1fr;
    }

    .mira-highlight {
        font-size: 3rem;
    }

    .mira-full {
        font-size: 2.5rem;
    }

    .modal-content {
        padding: 2rem;
        width: 95%;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .qr-code {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg,
            #f0f0f0 0%,
            #e0e0e0 50%,
            #f0f0f0 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ============================================
   RTL SUPPORT FOR ARABIC
   ============================================ */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .section-header {
    text-align: right;
}

[dir="rtl"] .about-card {
    text-align: right;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .contact-form {
    text-align: right;
}

[dir="rtl"] .footer-content {
    text-align: right;
}

[dir="rtl"] .team-member-card {
    text-align: right;
}

[dir="rtl"] .department-card {
    text-align: right;
}

[dir="rtl"] .service-card {
    text-align: right;
}

[dir="rtl"] .language-toggle {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .close-modal {
    right: auto;
    left: 30px;
}

[dir="rtl"] .auto-popup-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .auto-popup-item:hover {
    transform: translateX(-10px);
}

[dir="rtl"] .contact-item:hover {
    transform: translateX(-10px);
}

[dir="rtl"] .physio-item,
[dir="rtl"] .dental-item {
    border-left: none;
    border-right: 4px solid;
}

[dir="rtl"] .physio-item {
    border-right-color: #f97316;
}

[dir="rtl"] .dental-item {
    border-right-color: #06b6d4;
}

[dir="rtl"] .contact-phone,
[dir="rtl"] .contact-email,
[dir="rtl"] .contact-location {
    border-left: none;
    border-right: 4px solid;
}

[dir="rtl"] .about-card:first-child,
[dir="rtl"] .about-card:last-child {
    border-left: none;
    border-right: 5px solid;
}

[dir="rtl"] .about-card:first-child {
    border-right-color: #14b8a6;
}

[dir="rtl"] .about-card:last-child {
    border-right-color: #10b981;
}

[dir="rtl"] .value-item {
    border-top: none;
    border-bottom: 4px solid;
}

[dir="rtl"] .value-item:nth-child(1) {
    border-bottom-color: #fbbf24;
}

[dir="rtl"] .value-item:nth-child(2) {
    border-bottom-color: #14b8a6;
}

[dir="rtl"] .value-item:nth-child(3) {
    border-bottom-color: #ef4444;
}

[dir="rtl"] .value-item:nth-child(4) {
    border-bottom-color: #10b981;
}

[dir="rtl"] .value-item:nth-child(5) {
    border-bottom-color: #8b5cf6;
}

/* ============================================
   MODAL POPUP
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-white);
    margin: auto;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.modal-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-physio {
    border-top: 5px solid #f97316;
}

.modal-dental {
    border-top: 5px solid #06b6d4;
}

/* ============================================
   AUTO POPUP (COMING SOON)
   ============================================ */
.auto-popup-content {
    max-width: 600px;
    border-top: 5px solid var(--primary-color);
}

.auto-popup-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.auto-popup-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.auto-popup-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0;
}

.auto-popup-body {
    padding: 1rem 0;
}

.auto-popup-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.auto-popup-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.auto-popup-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.physio-item {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
    border-left: 4px solid #f97316;
}

.dental-item {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-left: 4px solid #06b6d4;
}

.auto-popup-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.auto-popup-item i {
    font-size: 2.5rem;
    min-width: 50px;
}

.auto-popup-item .popup-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    min-width: 50px;
    filter: brightness(0) invert(1);
}

.physio-item i {
    color: #f97316;
}

.dental-item i {
    color: #06b6d4;
}

.auto-popup-item h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.auto-popup-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.auto-popup-footer {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-light);
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.team-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.team-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/clinic_building.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.6;
    z-index: 1;
}

.team-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.2) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 250, 251, 0.4);
    z-index: 2;
}

.team .container {
    position: relative;
    z-index: 3;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

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

.team-member-card:hover .team-member-photo {
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.team-member-card:hover .team-member-photo img {
    transform: scale(1.1);
}

.team-member-job-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-light);
}

.team-member-name {
    display: none;
    /* Names removed per requirement */
}

.team-member-email {
    display: none;
    /* Emails removed per requirement */
}

.team-member-department {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.5rem;
}