/* ================================================== */
/* 1️⃣ Reset & الإعدادات العامة */
/* ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* الوضع الليلي */
body.dark-mode {
    background-color: #1a110a;
    color: #efe7d9;
}

/* ================================================== */
/* 2️⃣ الحاوية الرئيسية للمحتوى */
/* ================================================== */
.main-content {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    direction: rtl;
}

/* ================================================== */
/* 3️⃣ تصميم الأقسام العامة */
/* ================================================== */
.section {
    background-color: #ffffff;
    padding: 40px;
    margin-bottom: 60px;
    border-radius: 16px;
    border-right: 8px solid #66774a;
    box-shadow: 0 10px 30px rgba(102, 119, 74, 0.08);
    transition: all 0.3s ease-in-out;
}

/* تأثير التحويم */
.section:hover {
    box-shadow: 0 15px 40px rgba(102, 119, 74, 0.15);
}

/* الوضع الليلي للأقسام */
body.dark-mode .section {
    background-color: #2b1d12;
    border-right-color: #a3b899;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ================================================== */
/* 4️⃣ عناوين الأقسام */
/* ================================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #3e4a2d;
    position: relative;
    display: inline-block;
}

/* خط زخرفي أسفل العنوان */
.section-header h2::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -10px;
    width: 100%;
    height: 4px;
    background-color: #e1c5af;
    border-radius: 2px;
}

/* الوضع الليلي للعناوين */
body.dark-mode .section-header h2 {
    color: #efe7d9;
}

/* ================================================== */
/* 5️⃣ قسم "من نحن" */
/* ================================================== */
.about-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* النص */
.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: #444;
}

body.dark-mode .about-text p {
    color: #d1c7b7;
}

/* الرسالة والرؤية */
.mission-vision {
    flex: 1;
    min-width: 250px;
    padding: 25px;
    background-color: #f9f3ee;
    border-radius: 12px;
}

body.dark-mode .mission-vision {
    background-color: #3d2b1f;
}

.mission-vision h4 {
    font-size: 22px;
    font-weight: 700;
    color: #66774a;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e1c5af;
}

body.dark-mode .mission-vision h4 {
    color: #d4e0c0;
}

.mission-vision li {
    list-style: none;
    font-size: 16px;
    margin-bottom: 10px;
    padding-right: 25px;
    color: #3e4a2d;
}

body.dark-mode .mission-vision li {
    color: #efe7d9;
}

/* ================================================== */
/* 6️⃣ قسم التواصل */
/* ================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* معلومات التواصل */
.contact-info-block {
    padding: 20px;
    background-color: #f9f3ee;
    border-radius: 12px;
}

body.dark-mode .contact-info-block {
    background-color: #3d2b1f;
}

.contact-info-block h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #66774a;
}

body.dark-mode .contact-info-block h3 {
    color: #d4e0c0;
}

/* عناصر المعلومات */
.info-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: #3e4a2d;
}

.info-item a {
    text-decoration: none;
    color: #66774a;
}

body.dark-mode .info-item,
body.dark-mode .info-item a {
    color: #efe7d9;
}

/* ================================================== */
/* 7️⃣ نموذج التواصل */
/* ================================================== */
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #3e4a2d;
}

body.dark-mode .contact-form label {
    color: #efe7d9;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

/* الوضع الليلي للمدخلات */
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: #1a110a;
    border-color: #4d3a2b;
    color: #efe7d9;
}

/* زر الإرسال */
.submit-btn {
    padding: 15px 45px;
    border: none;
    border-radius: 50px;
    background-color: #66774a;
    color: #f9f3ee;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.submit-btn:hover {
    background-color: #3e4a2d;
    transform: translateY(-3px);
}

/* ================================================== */
/* 8️⃣ Responsive Design */
/* ================================================== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 25px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .about-content {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
    }
}


@media (max-width: 480px) {
    .main-content {
        padding: 20px 10px;
    }

    .section {
        padding: 20px 15px;
        margin-bottom: 30px;
        border-right-width: 5px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .about-text p {
        font-size: 15px;
        text-align: right; 
        line-height: 1.6;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 14px;
        margin-bottom: 15px;
    }

    .contact-info-block {
        padding: 15px;
    }

    .info-item {
        font-size: 15px;
        gap: 10px;
    }
}


@media (max-width: 320px) {
    /* تقليل الحواف الخارجية لأقصى درجة */
    .main-content {
        padding: 15px 5px;
    }

    /* تصغير الأقسام لترك مساحة أكبر للمحتوى */
    .section {
        padding: 15px 10px;
        margin-bottom: 20px;
        border-right-width: 3px; /* تصغير الخط الأخضر الجانبي */
        border-radius: 10px;
    }

    /* تصغير العناوين لتجنب انقسام الكلمات بشكل غير مريح */
    .section-header h2 {
        font-size: 20px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    /* ضبط النصوص لتكون متراصة وأصغر قليلاً */
    .about-text p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    /* تصغير صندوق الرؤية والرسالة */
    .mission-vision {
        padding: 15px;
    }

    .mission-vision h4 {
        font-size: 18px;
    }

    .mission-vision li {
        font-size: 13px;
        padding-right: 15px; /* تقليل المسافة البادئة للنقاط */
    }

    /* ضبط نموذج التواصل */
    .contact-form label {
        font-size: 14px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 13px;
        margin-bottom: 10px;
    }

    /* تصغير معلومات التواصل */
    .info-item {
        font-size: 13px;
        gap: 8px;
    }

    /* زر الإرسال */
    .submit-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}