:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --text-color: #333;
    --bg-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 76px;
}

body[dir="ltr"] {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Vision, Mission, Goal Boxes */
.vision-box,
.mission-box,
.goal-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-box:hover,
.mission-box:hover,
.goal-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Partners Section */
.partner-logo {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

.partner-logo img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* Contact Section */
.contact-item {
    padding: 20px;
}

.contact-item i {
    color: rgba(255, 255, 255, 0.9);
}

.contact-item a:hover {
    text-decoration: underline !important;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .partner-logo {
        height: 120px;
    }
}

/* RTL Support */
[dir="rtl"] .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="ltr"] .section-title::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* List styling for RTL/LTR */
[dir="rtl"] .list-unstyled li {
    text-align: right;
}

[dir="ltr"] .list-unstyled li {
    text-align: left;
}

[dir="rtl"] .list-unstyled li i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="ltr"] .list-unstyled li i {
    margin-right: 0.5rem;
    margin-left: 0;
}

