/* ===== متغيرات CSS ===== */
:root {
    --primary-color: #FF6B9D;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --purple-color: #9B59B6;
    --orange-color: #FF8C42;
    --green-color: #2ECC71;
    --blue-color: #3498DB;
    --text-color: #333;
    --light-bg: #FFF9F0;
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --border-radius: 20px;
}

/* ===== إعادة تعيين الأنماط ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    direction: rtl;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.8;
}

/* ===== الشريط العلوي ===== */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 30px;
}

.top-contact a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.top-contact a:hover {
    color: var(--accent-color);
}

.top-social {
    display: flex;
    gap: 10px;
}

.top-social a {
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.top-social a:hover {
    background: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-2px);
}

/* ===== الهيدر الرئيسي ===== */
header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* ===== الشعار ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #FFD93D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(255,230,109,0.4);
}

.logo-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-text span {
    font-size: 11px;
    color: var(--secondary-color);
    display: block;
}

/* ===== القائمة الرئيسية المحسنة ===== */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 13px;
    display: block;
    white-space: nowrap;
    border: 2px solid transparent;
}

nav ul li a:hover {
    color: var(--primary-color);
    background: rgba(255,107,157,0.08);
    border-color: rgba(255,107,157,0.2);
}

nav ul li a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255,107,157,0.3);
}

/* زر القائمة للموبايل */
.mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1002;
    position: relative;
}

/* ===== الحاوية ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== التصميم المتجاوب للهيدر ===== */
@media (max-width: 1300px) {
    nav ul li a {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

@media (max-width: 1100px) {
    nav ul li a {
        padding: 6px 8px;
        font-size: 11px;
    }
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex !important;
    }
    
    nav {
        position: fixed !important;
        top: 0 !important;
        right: -300px !important;
        width: 280px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: var(--white) !important;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15) !important;
        transition: right 0.3s ease !important;
        z-index: 999999 !important;
        padding: 80px 20px 20px !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    nav.active {
        right: 0 !important;
    }
    
    /* زر إغلاق القائمة */
    .close-menu-btn {
        position: absolute !important;
        top: 20px !important;
        left: 20px !important;
        width: 36px !important;
        height: 36px !important;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
        border: none !important;
        border-radius: 50% !important;
        color: white !important;
        font-size: 18px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        z-index: 1000000 !important;
    }
    
    .close-menu-btn:hover {
        transform: rotate(90deg);
    }
    
    /* Overlay للقائمة الجانبية - يغطي فقط الجزء الأيسر خارج القائمة */
    .menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: calc(100% - 280px) !important;
        height: 100% !important;
        height: 100dvh !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: 999998 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease !important;
        pointer-events: none;
    }
    
    .menu-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    nav ul {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        position: relative !important;
        z-index: 1000001 !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    nav ul li {
        width: 100% !important;
        display: block !important;
    }
    
    nav ul li a {
        padding: 15px 20px !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        background: var(--light-bg) !important;
        border: none !important;
        position: relative !important;
        z-index: 1000002 !important;
        pointer-events: auto !important;
        display: block !important;
        text-decoration: none !important;
        color: var(--text-color) !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(255,107,157,0.3) !important;
        touch-action: manipulation !important;
    }
    
    nav ul li a:hover,
    nav ul li a:active,
    nav ul li a.active {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
        color: white !important;
    }
    
    .top-bar {
        display: none !important;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
}

/* ===== قسم البطل (Hero) ===== */
.hero {
    background: linear-gradient(135deg, rgba(255,107,157,0.9), rgba(78,205,196,0.9)), url('../images/children-playing.jpg');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23FFF9F0' d='M0,50 C360,100 720,0 1080,50 C1260,75 1380,75 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: cover;
}

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

.hero h2 {
    font-size: 52px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 22px;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== الأزرار ===== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-colored {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-colored:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ===== عنوان الأقسام ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ===== قسم المميزات ===== */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    transform: scale(1.2);
    z-index: -1;
    transition: all 0.4s ease;
}

.feature-icon svg {
    width: 55px;
    height: 55px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
}

.feature-card:hover .feature-icon::before {
    transform: scale(1.4);
    opacity: 0.2;
}

.icon-teacher {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

.icon-books {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.4);
}

.icon-school {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.icon-art {
    background: linear-gradient(135deg, #F1C40F, #F39C12);
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.4);
}

/* أيقونات إضافية للصفحات الأخرى */
.icon-heart {
    background: linear-gradient(135deg, #FF6B9D, #FF8E53);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

.icon-star {
    background: linear-gradient(135deg, #FFE66D, #F39C12);
    box-shadow: 0 10px 30px rgba(255, 230, 109, 0.4);
}

.icon-globe {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.icon-music {
    background: linear-gradient(135deg, #1ABC9C, #16A085);
    box-shadow: 0 10px 30px rgba(26, 188, 156, 0.4);
}

.icon-sports {
    background: linear-gradient(135deg, #E67E22, #D35400);
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4);
}

.icon-safety {
    background: linear-gradient(135deg, #2ECC71, #27AE60);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.4);
}

.feature-card h3 {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* ===== قسم البرامج ===== */
.programs {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF5F8, #F0FFFD);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-image {
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.program-content {
    padding: 25px;
}

.program-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.program-content p {
    color: #666;
    margin-bottom: 15px;
}

.program-age {
    display: inline-block;
    background: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
}

/* ===== قسم الإحصائيات ===== */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== قسم الشهادات ===== */
.testimonials {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.testimonials-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-slider {
    position: relative;
    width: 100%;
    height: 350px;
    perspective: 1000px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 100%;
    max-width: 600px;
    background: var(--light-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.testimonial-card.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
}

.testimonial-card.prev {
    transform: translateX(-120%) scale(0.85) rotateY(15deg);
    opacity: 0.5;
    z-index: 2;
}

.testimonial-card.next {
    transform: translateX(20%) scale(0.85) rotateY(-15deg);
    opacity: 0.5;
    z-index: 2;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-content {
    margin-bottom: 25px;
    font-style: italic;
    color: #555;
    font-size: 17px;
    line-height: 1.8;
    text-align: center;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.author-info {
    text-align: right;
}

.author-info h4 {
    color: var(--text-color);
    margin-bottom: 3px;
    font-size: 18px;
}

.author-info span {
    font-size: 14px;
    color: #888;
}

.rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.rating i {
    color: #FFD700;
    font-size: 18px;
}

/* أزرار السلايدر */
.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    z-index: 10;
    flex-shrink: 0;
}

.slider-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

/* نقاط التنقل */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

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

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

.slider-dots .dot:hover {
    background: var(--secondary-color);
}

/* زر إضافة تعليق */
.add-comment-section {
    text-align: center;
    margin-top: 40px;
}

.add-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.4);
    font-family: 'Tajawal', sans-serif;
}

.add-comment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(78, 205, 196, 0.5);
}

.add-comment-btn i {
    font-size: 22px;
}

/* النافذة المنبثقة */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-30px);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
}

.modal-content h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 24px;
}

.modal-content h3 i {
    margin-left: 10px;
}

/* نظام التقييم */
.rating-input {
    display: flex;
    gap: 8px;
    direction: ltr;
}

.rating-input i {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-input i.fas,
.rating-input i.hover {
    color: #FFD700;
}

.rating-input i:hover {
    transform: scale(1.2);
}

/* ===== قسم الأخبار ===== */
.news {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF5F8, #F0FFFD);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.news-content p {
    color: #666;
}

/* ===== قسم الدعوة للتسجيل ===== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--blue-color));
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===== الفوتر ===== */
footer {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    color: #bbb;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section ul.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bbb;
}

.footer-section ul.contact-info li i {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    color: #888;
}

/* ===== رأس الصفحات الداخلية ===== */
.page-header {
    background: linear-gradient(135deg, rgba(255,107,157,0.9), rgba(78,205,196,0.9)), url('../images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0 80px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.7;
}

/* ===== صفحة من نحن ===== */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.9;
}

/* ===== صفحة الرؤية ===== */
.vision-mission {
    padding: 80px 0;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.vm-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.vm-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
}

.vm-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.vm-card p {
    color: #666;
    line-height: 1.8;
}

/* ===== صفحة البرامج ===== */
.program-detail {
    padding: 80px 0;
}

.program-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.program-detail-card:nth-child(even) {
    direction: ltr;
}

.program-detail-card:nth-child(even) .program-detail-content {
    direction: rtl;
}

.program-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-detail-content {
    padding: 40px;
}

.program-detail-content .age-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    margin-bottom: 15px;
}

.program-detail-content h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.program-detail-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.program-features {
    list-style: none;
}

.program-features li {
    padding: 8px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-features li i {
    color: var(--secondary-color);
}

/* ===== صفحة الأنشطة ===== */
.activities-section {
    padding: 80px 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-image {
    height: 200px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.activity-content {
    padding: 25px;
}

.activity-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.activity-content p {
    color: #666;
}

/* ===== صفحة المعرض ===== */
.gallery-section {
    padding: 80px 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 16px;
}

/* ===== صفحة الكادر ===== */
.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image {
    height: 280px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.team-info .position {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.team-info p {
    color: #666;
    font-size: 14px;
}

/* ===== صفحة التسجيل ===== */
.registration-section {
    padding: 80px 0;
}

.registration-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.registration-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 40px;
    border-radius: var(--border-radius);
    color: white;
}

.registration-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.registration-info ul {
    list-style: none;
}

.registration-info ul li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.registration-info ul li:last-child {
    border-bottom: none;
}

.registration-info ul li strong {
    display: block;
    margin-bottom: 5px;
}

.registration-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.registration-form h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

/* ===== صفحة الرسوم ===== */
.fees-section {
    padding: 80px 0;
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.fee-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.fee-card:hover {
    transform: translateY(-10px);
}

.fee-card.featured {
    border: 3px solid var(--primary-color);
}

.fee-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
}

.fee-card.featured .fee-header {
    background: linear-gradient(135deg, var(--purple-color), var(--primary-color));
}

.fee-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.fee-header .price {
    font-size: 36px;
    font-weight: 700;
}

.fee-header .price span {
    font-size: 16px;
    font-weight: normal;
}

.fee-body {
    padding: 30px;
}

.fee-body ul {
    list-style: none;
    margin-bottom: 25px;
}

.fee-body ul li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.fee-body ul li:last-child {
    border-bottom: none;
}

.fee-body ul li i {
    color: var(--secondary-color);
    margin-left: 10px;
}

/* ===== صفحة التواصل ===== */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-cards {
    display: grid;
    gap: 20px;
}

.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(-10px);
}

.contact-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.contact-card h4 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.contact-card p {
    color: #666;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.map-section {
    margin-top: 60px;
}

.map-section h3 {
    text-align: center;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ===== صفحة الأسئلة الشائعة ===== */
.faq-section {
    padding: 80px 0;
}

.faq-search {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 18px 25px;
    padding-left: 60px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.faq-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.faq-search button {
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    padding: 0 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faq-categories button {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-categories button:hover,
.faq-categories button.active {
    background: var(--primary-color);
    color: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
}

.faq-answer ul {
    margin: 10px 0;
    padding-right: 20px;
}

.faq-answer ul li {
    color: #666;
    margin-bottom: 5px;
}

/* ===== صفحة القيم ===== */
.values-section {
    padding: 80px 0;
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
}

.value-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
}

.value-card h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.value-card p {
    color: #666;
}

/* ===== أنماط الجدول ===== */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

table th,
table td {
    padding: 15px 20px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: var(--light-bg);
}

/* ===== خطوات التسجيل ===== */
.steps-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: 700;
}

.step-card h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.step-card p {
    color: #666;
    font-size: 14px;
}

/* ===== التصميم المتجاوب العام ===== */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .contact-grid,
    .registration-grid {
        grid-template-columns: 1fr;
    }
    
    .program-detail-card {
        grid-template-columns: 1fr;
    }
    
    .program-detail-card:nth-child(even) {
        direction: rtl;
    }
}

/* ===== تحسينات التوافق مع جميع الأجهزة ===== */

/* الشاشات الكبيرة جداً */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* التابلت الكبير */
@media (max-width: 1024px) {
    .features-grid,
    .programs-grid,
    .activities-grid,
    .team-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .fee-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .free-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* التابلت الصغير والجوال الكبير */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .top-bar {
        display: none;
    }
    
    .features-grid,
    .programs-grid,
    .activities-grid,
    .team-grid,
    .values-grid,
    .curriculum-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fee-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .free-services-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .discounts-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card,
    .program-card,
    .activity-card,
    .team-card {
        padding: 20px;
    }
    
    .feature-icon,
    .program-icon {
        width: 60px;
        height: 60px;
    }
    
    .hero {
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero h2 {
        font-size: 26px;
        line-height: 1.4;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title p {
        font-size: 14px;
    }
    
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    /* جدول الرسوم على الجوال */
    .fees-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .fees-table table {
        min-width: 500px;
    }
    
    /* نموذج التسجيل */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* الفوتر */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* التعليقات */
    .testimonials-slider {
        padding: 0 10px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .slider-nav {
        display: none;
    }
}

/* الجوال الصغير */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 22px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .fee-card {
        padding: 20px 15px;
    }
    
    .fee-price {
        font-size: 32px;
    }
    
    .feature-card h3,
    .program-card h3 {
        font-size: 16px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    /* القائمة الجانبية */
    nav {
        width: 100%;
        right: -100%;
    }
    
    nav.active {
        right: 0;
    }
    
    /* الأسئلة الشائعة */
    .faq-question {
        padding: 15px;
        font-size: 14px;
    }
    
    .faq-answer {
        padding: 15px;
        font-size: 13px;
    }
    
    /* نموذج التواصل */
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 12px;
        font-size: 14px;
    }
}

/* تحسينات للطباعة */
@media print {
    .top-bar,
    header,
    footer,
    .mobile-menu-btn,
    .btn,
    nav {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .page-header {
        background: none;
        color: black;
        padding: 20px 0;
    }
}

/* تحسينات للوضع الأفقي على الجوال */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .page-header {
        padding: 40px 0 20px;
    }
}

/* تحسين اللمس على الأجهزة اللمسية */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .feature-card:hover,
    .program-card:hover,
    .team-card:hover {
        transform: none;
    }
    
    .nav-link:hover {
        background: transparent;
    }
    
    /* زيادة حجم مناطق اللمس */
    .btn {
        min-height: 44px;
    }
    
    nav ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .faq-question {
        min-height: 50px;
    }
}
