/* ----------------------------------------------------------------
   1. General Reset & Fonts
------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fcfcfc;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ----------------------------------------------------------------
   2. Layout Container
------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ----------------------------------------------------------------
   3. Main Header Styling
------------------------------------------------------------------- */
.main-header {
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000; /* أعلى عنصر لضمان عدم اختفائه تحت أي قسم */
}

.logo img {
    height: 100px; /* الحجم المثالي للوجو */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s ease;
}

.main-nav ul li a:hover, 
.main-nav ul li a.active {
    color: #0b3d33;
    border-bottom: 2px solid #e67e22;
}

.login-btn {
    text-decoration: none;
    background-color: #0b3d33;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.login-btn:hover {
    background-color: #e67e22;
}

/* ----------------------------------------------------------------
   4. Hero Slider Styling
------------------------------------------------------------------- */
.hero-slider {
    width: 100%;
    height: 80vh;
    z-index: 1; /* ليكون تحت الـ Header */
    position: relative;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.slide-content h1 {
    font-size: clamp(30px, 5vw, 60px); /* حجم خط مرن للموبايل والشاشة الكبيرة */
    font-weight: 700;
    margin-bottom: 20px;
}

/* ----------------------------------------------------------------
   5. Quick Stats Section (Floating over Slider)
------------------------------------------------------------------- */
.quick-stats {
    background-color: #0b3d33;
    color: #fff;
    padding: 40px 0;
    margin: -60px auto 0 auto; /* يرفع القسم فوق السلايدر بمقدار 60px */
    position: relative;
    z-index: 99; /* فوق السلايدر وتحت الـ Header */
    border-radius: 15px;
    width: 85%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.quick-stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 35px;
    color: #e67e22;
    margin: 10px 0;
}

/* ----------------------------------------------------------------
   6. Welcome Section
------------------------------------------------------------------- */
.welcome-section {
    padding: 120px 0 80px;
    background-color: #fff;
}

.welcome-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.welcome-text { flex: 1; }
.welcome-image { flex: 1; }

.welcome-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0px #e67e22;
}

.read-more {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid #0b3d33;
    color: #0b3d33;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
}

/* ----------------------------------------------------------------
   7. Academic Levels Section
------------------------------------------------------------------- */
.academic-levels {
    padding: 80px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.container-title { margin-bottom: 50px; }
.container-title h2 { font-size: 40px; color: #0b3d33; }

.stages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stage-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    transition: 0.3s;
    border-bottom: 5px solid #e67e22;
}

.stage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stage-icon { font-size: 50px; margin-bottom: 20px; }

/* ----------------------------------------------------------------
   8. Responsive Design (Mobile Support)
------------------------------------------------------------------- */
@media (max-width: 992px) {
    .main-nav, .header-actions { display: none; } /* يفضل إضافة Menu للموبايل لاحقاً */
    
    .quick-stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .welcome-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .stages-grid {
        grid-template-columns: 1fr;
    }
}
/* 8. الفوتر - إصلاح شامل للتنسيق */
.main-footer {
    background-color: #0b3d33;
    color: #ffffff;
    padding: 60px 0 20px;
    width: 100%;
}

.main-footer .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* تنظيم توزيع الأعمدة لتكون بجانب بعضها بشكل متساوي */
.footer-grid {
    display: flex; /* تحويل التوزيع إلى flex لضمان المحاذاة الأفقية */
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* للسماح بنزول الأعمدة في الشاشات الصغيرة */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1; /* جعل كل عمود يأخذ مساحة متساوية */
    min-width: 250px; /* لضمان عدم صغر العمود بشكل مبالغ فيه */
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* جعل اللوجو أبيض ليليق بالخلفية الداكنة */
}

.footer-col h4 {
    color: #e67e22; /* استخدام اللون البرتقالي للعناوين */
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #e67e22;
    padding-left: 5px;
}

.footer-col p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
}

/* الجزء السفلي من الفوتر */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #888;
}

/* استجابة الموبايل */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column; /* ترتيب الأعمدة فوق بعضها في الموبايل */
        text-align: center;
    }
}
/* ----------------------------------------------------------------
   Why Choose Us Section
------------------------------------------------------------------- */
.why-choose-us {
    padding: 80px 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: #f9f9f9;
    transition: 0.3s;
}

.feature-item:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-item h4 {
    color: #0b3d33; /* اللون الأخضر الأساسي */
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-item p {
    color: #666;
    font-size: 14px;
}

/* ----------------------------------------------------------------
   Footer Styling
------------------------------------------------------------------- */
/* الفوتر بالكامل */
.main-footer {
    background: #0b3d33;
    color: white;
    padding-top: 40px;
    position: relative;
    width: 100%;
    display: block; /* لضمان عدم تأثره بأي flex خارجي */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding-bottom: 30px;
    margin-bottom: 0;
}

/* التنسيق الذي سيجبر النص على التوسط */
.absolute-footer-bottom {
    display: block;
    width: 100%;
    background: rgba(0, 0, 0, 0.2); /* تظليل بسيط لتمييز السطر السفلي */
    padding: 20px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center !important; /* جبر السنترة في المنتصف */
}

.absolute-footer-bottom p {
    margin: 0 auto !important;
    display: inline-block;
    color: #94a3b8;
    font-size: 13px;
    width: 100%; /* لضمان السنترة بناءً على عرض الصفحة */
}

/* تنسيق السوشيال ميديا كما طلبت */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    font-size: 18px;
    transition: 0.3s;
}
/* تنسيق صفحة التقديم */
.page-title {
    background: #f4f4f4;
    padding: 60px 0;
    text-align: center;
}

.page-title h1 { color: #0b3d33; font-size: 36px; }

.admission-form-section { padding: 80px 0; }

.form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0b3d33;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.full-width { grid-column: span 2; margin-top: 10px; }

.form-wrapper .btn-primary {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

/* للموبايل */
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
}
/* تنسيق المودال والفيديو */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    padding-top: 80px;
}

.modal-content {
    width: 85%;
    max-width: 1000px;
    margin: auto;
}

.modal-content img {
    width: 100%;
    border-radius: 10px;
}

/* زر إغلاق المودال */
.close-btn {
    position: absolute;
    top: 30px; right: 40px;
    color: #fff; font-size: 40px;
    cursor: pointer;
}

/* منيو الموبايل Burger */
.menu-toggle {
    display: none; /* يظهر فقط في الشاشات الصغيرة */
    color: #0b3d33;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; cursor: pointer; }
    .main-nav { display: none; width: 100%; }
    .main-nav.active { display: block; position: absolute; top: 70px; left: 0; background: #fff; z-index: 100; }
    .main-nav ul { flex-direction: column; padding: 20px; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* تنسيقات صفحات About & School Life */
.section-padding { padding: 80px 0; }

.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-text { flex: 1; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.life-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.life-card {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.life-card i { font-size: 40px; color: #e67e22; margin-bottom: 20px; }
.life-card:hover { transform: translateY(-10px); }

@media (max-width: 768px) {
    .about-flex { flex-direction: column; text-align: center; }
    .life-grid { grid-template-columns: 1fr; }
}

/* تنسيق الروابط العام */
.nav-item {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
    padding: 5px 10px;
}

/* حالة الصفحة الحالية أو عند التمرير */
.nav-item:hover, 
.nav-item.active {
    color: #e67e22; /* لون الأورنج الخاص بك */
}

/* تأكد أن الكونتينر يأخذ العرض الكامل المسموح به */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* زر الدخول عند التمرير */
.login-btn:hover {
    background: #e67e22 !important;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}


.contact-grid {
    display: flex;
    gap: 50px;
    padding: 80px 0;
    align-items: center;
}

.contact-info { flex: 1; }
.contact-map { flex: 1.5; }

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 25px;
    color: #e67e22;
    background: #fff3e6;
    padding: 20px;
    border-radius: 50%;
}

.info-item h3 { color: #0b3d33; margin-bottom: 5px; }

/* تنسيق معرض الصور */
.gallery-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 صور بجانب بعضها */
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* طبقة الظهور عند التمرير */
.gallery-item .overlay {
    position: absolute;
    bottom: -100%; /* مخفية تحت */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 61, 51, 0.7); /* اللون الأخضر الخاص بك بلمسة شفافية */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* تكبير الصورة عند الوقوف عليها */
}

.gallery-item:hover .overlay {
    bottom: 0; /* تظهر الطبقة الخضراء عند التمرير */
}

.overlay span {
    font-weight: 600;
    font-size: 18px;
    border-bottom: 2px solid #e67e22;
}

/* للموبايل */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* الفريم الرئيسي للفورم */
.form-wrapper { 
    background: #ffffff; 
    padding: 50px; 
    border-radius: 15px; /* حواف ناعمة */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08); /* ظل ناعم جداً يعطي عمق */
    max-width: 900px; 
    margin: -60px auto 0; /* لرفع الفورم قليلاً فوق الهيدر الأخضر */
    position: relative;
    border: 1px solid #eef2f1; /* حدود خفيفة جداً */
    overflow: hidden;
}

/* الخط الملون اللي فوق في الفريم */
.form-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #0b3d33, #e67e22); /* تداخل ألوان المدرسة */
}

/* تنسيق العناوين داخل الفورم */
.form-wrapper h2 {
    color: #0b3d33;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

/* تحسين شكل الـ Inputs داخل الفريم */
.input-group input, .input-group select, .input-group textarea {
    background-color: #fcfdfd;
    border: 1.5px solid #e0e6e5;
    transition: all 0.3s ease;
}

.input-group input:focus {
    background-color: #fff;
    border-color: #e67e22;
    transform: translateY(-1px); /* حركة بسيطة عند الضغط */
}

/* تنسيق أيقونات السوشيال ميديا الموحد */
.social-links {
    display: flex;
    gap: 12px; /* المسافة بين الدوائر */
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15); /* لون الدائرة الشفاف الذي يظهر في الصورة */
    color: #ffffff; /* لون الأيقونة أبيض */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* جعل الشكل دائري تماماً */
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease; /* سرعة التحول عند الـ Hover */
}

/* التأثير الجمالي عند وضع الماوس على الأيقونة */
.social-links a:hover {
    background-color: #e67e22; /* يتحول للون البرتقالي الخاص بالمدرسة */
    transform: translateY(-5px); /* ترتفع الأيقونة قليلاً للأعلى */
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}