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

:root {
    --primary-blue: #0052cc;
    --primary-light: #e8f1ff;
    --secondary-blue: #2c5aa0;
    --accent-green: #10b981;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-light: #e5e7eb;
    --white: #ffffff;
    --bg-light: #f9fafb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    padding-top: 70px;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--border-light);
    padding: 0.8rem 0;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: var(--primary-blue) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.75) 0%, rgba(44, 90, 160, 0.75) 100%), 
                url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1400&h=900&fit=crop') center/cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-section .btn {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    font-weight: 600;
    padding: 0.9rem 2.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.hero-section .btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

/* ===== SECTIONS GENERAL ===== */
.section-clinics {
    padding: 6rem 0;
    background-color: var(--white);
}

.section-departments {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.section-about {
    padding: 6rem 0;
    background-color: var(--white);
}

.section-contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0052cc 0%, #1e40af 100%);
    color: var(--white);
    position: relative;
}

.section-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-contact .section-header h2 {
    color: var(--white);
}

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

.section-contact .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.divider-light {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* ===== CLINIC CARDS ===== */
.clinic-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.clinic-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.clinic-card > * {
    position: relative;
    z-index: 1;
}

.clinic-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.clinic-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
}

/* ===== DEPARTMENT CARDS ===== */
.department-card {
    padding: 2.5rem 2rem;
    border-radius: 16px;
    color: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.department-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.department-card > * {
    position: relative;
    z-index: 1;
}

.bg-dept-1 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.bg-dept-2 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-dept-3 { background: linear-gradient(135deg, #ec4899, #be185d); }
.bg-dept-4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-dept-5 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.dept-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.department-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.units-list {
    list-style: none;
    text-align: right;
}

.units-list li {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.units-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.units-list li::before {
    content: '✓ ';
    margin-right: 0.5rem;
    font-weight: 600;
}

/* ===== ABOUT SECTION ===== */
.section-about h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section-about p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-image {
    box-shadow: var(--shadow-lg);
}

.about-image img {
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--accent-green);
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: inherit;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

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

.contact-card h6 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.contact-card p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.phone-numbers {
    font-size: 0.85rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1e1b4b, #111827);
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .section-clinics,
    .section-departments,
    .section-about,
    .section-contact {
        padding: 4rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

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

    .clinic-card {
        min-height: 180px;
        padding: 1.5rem 1rem;
    }

    .clinic-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .clinic-card h5 {
        font-size: 0.9rem;
    }

    .department-card {
        padding: 2rem 1.5rem;
    }

    .dept-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .department-card h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .units-list li {
        font-size: 0.85rem;
    }

    .section-about h2 {
        font-size: 1.8rem;
    }

    .section-about p {
        font-size: 1rem;
    }

    .about-features {
        gap: 1rem;
    }

    .feature-item {
        gap: 0.8rem;
    }

    .feature-item i {
        font-size: 1.3rem;
    }

    .feature-item span {
        font-size: 0.95rem;
    }

    .contact-card {
        padding: 1.5rem 1.2rem;
    }

    .contact-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .contact-card h6 {
        font-size: 1rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .section-clinics,
    .section-departments,
    .section-about,
    .section-contact {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.1rem !important;
    }

    .nav-link {
        font-size: 0.9rem;
        margin: 0.3rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-section .btn {
        font-size: 0.95rem;
        padding: 0.8rem 2rem;
    }

    .clinic-card {
        min-height: 160px;
        padding: 1.2rem 0.8rem;
    }

    .clinic-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .clinic-card h5 {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .department-card {
        padding: 1.5rem 1.2rem;
    }

    .dept-icon {
        font-size: 1.8rem;
    }

    .department-card h5 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .units-list li {
        font-size: 0.8rem;
        padding: 0.4rem 0;
        margin-bottom: 0.4rem;
    }

    .section-about {
        padding: 2.5rem 0;
    }

    .section-about .row {
        gap: 2rem !important;
    }

    .section-about h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-about p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .about-features {
        gap: 0.8rem;
    }

    .feature-item {
        gap: 0.6rem;
    }

    .feature-item i {
        font-size: 1.1rem;
    }

    .feature-item span {
        font-size: 0.9rem;
    }

    .contact-card {
        padding: 1.2rem 1rem;
    }

    .contact-icon {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .contact-card h6 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

    .contact-card p {
        font-size: 0.8rem;
    }

    .phone-numbers {
        font-size: 0.75rem;
    }

    .footer p {
        font-size: 0.8rem;
    }
}

/* ===== UTILITIES ===== */
.rounded-pill {
    border-radius: 50px !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* Smooth animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clinic-card,
.department-card,
.contact-card {
    animation: slideIn 0.6s ease-out;
}
