/* ===== الصفحة الرئيسية - تصميم احترافي ===== */

/* متغيرات الألوان */
:root {
    --primary-color: #1E4D8C;
    --secondary-color: #4CAF50;
    --accent-color: #FF6B35;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== قسم الإحصائيات - معطل ===== */
/*
.statistics-section {
    background: linear-gradient(135deg, #4A376B, #6B4E8C);
    color: white;
    position: relative;
    padding: 4rem 0;
}

.statistics-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FDCB3E;
    margin-bottom: 3rem;
    text-align: center;
}

.statistics-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.stat-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
    opacity: 0.9;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FDCB3E;
    line-height: 1;
}

.stat-label {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0;
    font-weight: 500;
}

.statistics-indicators {
    bottom: -50px;
}

.statistics-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    transition: var(--transition);
}

.statistics-indicators button.active {
    background-color: #FDCB3E;
    transform: scale(1.2);
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
    animation: fadeInUp 0.8s ease-out;
}

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

/* ===== قسم من نحن ===== */
.about-section {
    background: var(--bg-white);
    position: relative;
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
}

.about-description {
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 0;
}

.about-action {
    margin-bottom: 2rem;
}

.about-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
}

.about-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.about-scroll-indicator {
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== قسم الخدمات ===== */
.services-section {
    background: var(--bg-light);
}

.services-carousel {
    position: relative;
    overflow: hidden;
}

.services-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.services-slide.active {
    display: block;
}

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

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: none !important;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-image-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.service-content {
    padding: 1.5rem;
    text-align: center;
}

.service-card h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-btn {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--primary-color);
}

.service-btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== Services Pagination ===== */
.services-pagination {
    margin-top: 2rem;
}

.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

.dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* ===== View All Button ===== */
.services-section .btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.services-section .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}







/* ===== قسم الشركاء ===== */
.partners-section {
    background: var(--bg-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.partner-item img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
    display: block;
    margin: 0 auto;
}

.partner-item:hover img {
    transform: scale(1.05);
}

.partner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-light);
    text-align: center;
    padding: 1rem;
}

.partner-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.partner-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
}



/* ===== حالات فارغة ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ===== تحسينات للأجهزة المحمولة ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .about-main-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .about-text {
        font-size: 1rem;
        text-align: center;
    }
    

    
    .about-buttons {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .experience-badge {
        bottom: -10px;
        right: -10px;
        padding: 1rem;
    }
    
    .experience-badge .years {
        font-size: 1.2rem;
    }
    
    .experience-badge .text {
        font-size: 0.7rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ===== تأثيرات إضافية ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.service-card,
.program-card,
.news-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* تحسين الأداء */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}
