:root {
    --primary: #008080;
    /* Teal for medical/clean feel */
    --secondary: #2C3E50;
    /* Dark slate */
    --accent: #48C9B0;
    /* Lighter teal */
    --light: #F4F6F7;
    --dark: #1A252F;
    --white: #ffffff;
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    background-color: var(--white);
    color: var(--secondary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

body.rtl {
    direction: rtl;
    text-align: right;
    font-family: var(--font-ar);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 30, 40, 0.85) 0%, rgba(0, 80, 80, 0.7) 100%), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    height: 140px;
    width: 140px;
    object-fit: contain;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    padding: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 0 25px rgba(72, 201, 176, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(72, 201, 176, 0.4);
    font-weight: 700;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    color: #cbd5e0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    box-shadow: 0 0 15px rgba(72, 201, 176, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(72, 201, 176, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 0.5rem 1.5rem;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.bg-light {
    background-color: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
}

.category-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* Mission/Vision Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mission-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mission-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Partners Slider */
.slider-container {
    overflow: hidden;
    width: 100%;
    margin: 2rem 0;
    position: relative;
}

.slider-track {
    display: flex;
    width: max-content;
    /* Auto adjust width */
    animation: scroll 40s linear infinite;
}

.slide {
    width: 200px;
    height: 120px;
    /* Increased height for images */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    /* White background for logos */
    margin: 0 1rem;
    border-radius: 10px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.slide:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Javascript duplicates slides, so move 50% */
}

/* RTL Specifics */
body.rtl .slider-track {
    animation: scroll-rtl 40s linear infinite;
}

@keyframes scroll-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem 2rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
    /* Subtle movement */
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.contact-list li span:first-child {
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-list a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-list a:hover {
    color: var(--accent);
}

.mobile-group {
    display: flex;
    flex-direction: column;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* RTL Footer Adjustments */
body.rtl .footer {
    text-align: right;
}

body.rtl .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

body.rtl .contact-list li span:first-child {
    margin-right: 0;
    margin-left: 10px;
}

body.rtl .mission-card {
    border-left: none;
    border-right: 4px solid var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }
}