/* General Body and Font Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    background: linear-gradient(135deg, #f0f4f7 0%, #d9e2ec 100%);
    min-height: 100vh;
}

/* News Ticker Styles */
.news-ticker {
    background: linear-gradient(90deg, #2E86AB, #A23B72, #F18F01);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ticker-content {
    display: inline-block;
    animation: ticker 60s linear infinite;
    padding-right: 100%;
}

.ticker-content span {
    display: inline-block;
    padding: 0 50px;
    font-weight: 500;
}

@keyframes ticker {
    0% {
        transform: translate3d(100%, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Header & Navigation Styles */
header {
    background-color: #fff;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    margin-left: 10px;
}

.logo-text h1 {
    font-family: 'Amiri', serif;
    font-size: 2.5em;
    font-weight: bold;
    color: #2E86AB;
    margin: 0;
}

.logo-text span {
    font-size: 0.9em;
    color: #777;
    margin: 0;
    display: block;
}

nav .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav .nav-menu li {
    margin: 0 15px;
    position: relative;
}

nav .nav-menu a {
    text-decoration: none;
    color: #555;
    font-size: 1.1em;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    padding: 5px 0;
    display: inline-block;
}

nav .nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #A23B72;
    bottom: -5px;
    right: 0;
    transition: width 0.3s;
}

nav .nav-menu a:hover::after {
    width: 100%;
    left: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    min-width: 160px;
    border-radius: 5px;
    padding: 10px;
    top: 100%;
    right: 0;
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.menu-toggle {
    display: none;
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: url('picture/header-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease-out;
}

/* About Us Section */
.about-us {
    padding: 60px 20px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    max-width: 1100px;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5em;
    color: #A23B72;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mission & Vision Section */
.mission-vision-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.mission-vision-card {
    flex: 1;
    max-width: 500px;
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mission-vision-card .icon {
    font-size: 3em;
    color: #F18F01;
    margin-bottom: 20px;
}

.mission-vision-card h3 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
}

.mission-vision-card p {
    font-size: 1em;
    color: #777;
}

/* Programs Section */
.programs-section {
    background-color: #eef3f7;
    padding: 60px 20px;
    text-align: center;
}

.programs-section h2, .help-section h2, .achievements-section h2, .cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #2E86AB;
    position: relative;
    display: inline-block;
}

.programs-section h2::after, .help-section h2::after, .achievements-section h2::after, .cta-section h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background-color: #A23B72;
    margin: 10px auto 0;
    border-radius: 5px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
    font-size: 3em;
    color: #F18F01;
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #444;
}

.program-card p {
    color: #777;
}

/* How We Help Section */
.help-section {
    padding: 60px 20px;
    text-align: center;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.help-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.help-item:hover {
    transform: scale(1.05);
}

.help-icon {
    font-size: 3em;
    color: #A23B72;
    margin-bottom: 15px;
}

.help-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #444;
}

.help-item p {
    color: #777;
}

/* Achievements Section */
.achievements-section {
    background-color: #2E86AB;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.achievements-section h2 {
    color: white;
    margin-bottom: 40px;
}

.achievements-section h2::after {
    background-color: white;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.achievement {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: background 0.3s ease;
}

.achievement:hover {
    background: rgba(255, 255, 255, 0.2);
}

.achievement h3 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement p {
    font-size: 1.1em;
    font-weight: 300;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #A23B72, #F18F01);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.cta-section h2 {
    color: white;
}

.cta-section h2::after {
    background-color: white;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-buttons .btn {
    margin: 0 10px;
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-buttons .btn:first-child {
    background-color: #fff;
    color: #A23B72;
}

.cta-buttons .btn:last-child {
    background-color: #2E86AB;
    color: white;
}

.cta-buttons .btn:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #A23B72;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #882c5e;
    transform: scale(1.05);
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: right;
    max-width: 1200px;
    margin: 0 auto 20px auto;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #F18F01;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #F18F01;
}

.social-links a {
    color: white;
    font-size: 1.5em;
    margin-left: 15px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: #F18F01;
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 15px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .mission-vision-section {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    header .logo h1 {
        font-size: 2em;
    }
    
    .logo-img {
        height: 50px;
    }

    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        margin: 10px 0;
    }
}
/* ... الأنماط الموجودة مسبقًا في الملف ... */

/* إضافة الأنماط الجديدة من ملف about.html */
.enhanced-about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.about-images-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
    min-width: 300px;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.classroom-showcase {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    margin: 40px 0;
    border-radius: 20px;
    text-align: center;
}

.classroom-showcase h3 {
    font-size: 2.2em;
    color: #2E86AB;
    margin-bottom: 30px;
    font-weight: 700;
}

.classroom-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.classroom-description {
    font-size: 1.2em;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.educational-elements {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.element-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.element-image:hover {
    transform: translateY(-10px) rotate(5deg);
}

.students-section {
    background: linear-gradient(45deg, #A23B72, #F18F01);
    padding: 60px 20px;
    margin: 40px 0;
    border-radius: 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.students-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    z-index: 1;
}

.students-content {
    position: relative;
    z-index: 2;
}

.students-section h3 {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 700;
}

.students-image {
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.students-description {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
    .enhanced-about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-images-gallery {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .educational-elements {
        gap: 15px;
    }

    .element-image {
        width: 80px;
        height: 80px;
    }

    .students-image {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .classroom-showcase h3,
    .students-section h3 {
        font-size: 1.8em;
    }

    .classroom-description,
    .students-description {
        font-size: 1.1em;
    }
}
/* 1. تنسيق الحاوية (للعرض الأفقي) */
.image-gallery {
    display: flex; 
    justify-content: space-between; /* توزيع متساوٍ */
    gap: 10px; /* تقليل المسافة الفاصلة قليلاً */
    margin: 20px 0; 
    flex-wrap: wrap; 
}

/* 2. تنسيق الصور الفردية لضمان التساوي في العرض والارتفاع */
.classroom-image {
    /* * ضمان العرض: كل صورة تأخذ تقريباً نصف المساحة المتبقية بعد حساب الفجوة.
     * يمكن استخدام calc() لتكون أدق.
     * (50% - نصف قيمة الـ gap) 
     */
    width: 100%; 
    max-width: 49%; /* كل صورة تأخذ 49% من عرض الحاوية */
    
    /* 3. تحديد ارتفاع ثابت (ضروري للتساوي) */
    height: 500px;  

    object-fit: cover; 
    
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .image-gallery {
        flex-direction: column; 
        align-items: center; 
    }

    .classroom-image {
        max-width: 90%; 
        width: 90%;  
    }
}