/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Header Styles */
header {
    background-color: #0a1e3c;
    color: white;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00b0f0;
}

.language a, .search a {
    color: white;
    text-decoration: none;
}

/* Highlights Section */
.highlights {
    position: relative;
    padding: 60px 0; /* تم تقليل الارتفاع من 80px إلى 60px */
    background-image: url('../../images/R.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    min-height: 320px; /* تم تقليل الارتفاع من 400px إلى 320px */
    display: flex;
    align-items: center;
}

.highlights .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 30, 60, 0.8);
    z-index: 1;
}

.highlights h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    margin: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box:last-child {
    border-left: none;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/* إضافة تأثير الأنيميشن للأرقام */
.stat-number {
    counter-reset: stat-counter 0;
    animation: count-up 2s ease-out forwards;
}

@keyframes count-up {
    from {
        counter-increment: stat-counter 0;
    }
    to {
        counter-increment: stat-counter var(--target-value);
    }
}

.stat-number::after {
    content: counter(stat-counter);
}

.stat-number::before {
    content: "+";
}

.stat-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background-color: #0a1e3c;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .stats-container {
        flex-wrap: wrap;
    }
    
    .stat-box {
        flex: 0 0 calc(50% - 20px);
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .stat-box:nth-child(even) {
        border-left: none;
    }
    
    .stat-box:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .highlights h2 {
        font-size: 2rem;
    }
    
    .stat-box {
        flex: 0 0 100%;
    }
    
    .stat-box:nth-last-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 576px) {
    .highlights {
        padding: 60px 0;
    }
    
    .highlights h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}