@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding-top: 60px; /* Space for the fixed navbar */
}
/* تنسيقات شريط التنقل (Navbar) */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: white;
    font-size: 0.5rem; 
    font-weight: bold;
    text-decoration: none;
}
/* حجم الشعار الموحد 100 بكسل */
.logo img {
    width: 150px; 
    filter: brightness(0) invert(1); 
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}
.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 0;
}
.nav-links a:hover {
    color: #1abc9c;
}
.cta-button {
    background-color: #1abc9c;
    padding: 8px 15px !important;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #16a085;
}

/* تنسيق زر الهامبرغر (Hamburger Menu) */
.menu-toggle {
    display: none; /* إخفاء الزر على الشاشات الكبيرة */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}

/* ------------------------------------------- */
/* استعلام الوسائط لشاشات الجوال (Media Query) */
/* ------------------------------------------- */
@media (max-width: 768px) {
    /* إظهار زر الهامبرغر */
    .menu-toggle {
        display: block;
    }
    
    /* إخفاء القائمة الرئيسية على الجوال افتراضياً وترتيبها عمودياً */
    .nav-links {
        display: none; /* إخفاء القائمة */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* أسفل شريط التنقل */
        right: 0;
        background-color: #2c3e50;
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
        text-align: center;
        /* لجعل القائمة تظهر بشكل انسيابي */
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%);
    }

    /* جعل القائمة مرئية عند إضافة فئة 'active' بواسطة JavaScript */
    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }

    /* توسيع عناصر القائمة لتشغل العرض بالكامل */
    .nav-links li {
        width: 100%;
        margin: 10px 0;
    }

    /* تنسيق الروابط داخل القائمة */
    .nav-links a {
        display: block;
        padding: 10px 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* جعل أزرار CTA تظهر بشكل جيد */
    .cta-button {
        display: inline-block; 
        width: auto;
    }

    /* لضمان تجميع عناصر nav-container بشكل صحيح على الجوال */
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    max-width: 800px;
}
.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 10px 0px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
}


/* تنسيقات الأقسام العامة (بقية الكود من التحديث السابق) */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    position: relative;
}
.page-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.page-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: #1abc9c; 
    border-radius: 2px;
}
.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}

/* تنسيقات البطاقات الأساسية */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-right: 5px solid #3498db; 
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* تنسيقات قسم الرؤية والرسالة والقيم */
.vision-mission-values.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.vision-mission-values h3 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 2px dotted #ccc;
    padding-bottom: 5px;
}
.mission-card {
    border-right-color: #3498db; 
}
.vision-card {
    border-right-color: #3498db; 
}
.values-card {
    grid-column: 1 / -1; 
}
.values-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.values-list li {
    background-color: #ecf0f1;
    border-right: 4px solid #1abc9c; 
    padding: 10px 15px;
    border-radius: 5px;
    flex-grow: 1;
    min-width: 45%;
    box-shadow: none;
    margin: 0;
}

/* تنسيقات قسم الأهداف (Goals) */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.goal-item {
    text-align: center;
    background-color: white;
    padding: 25px;
    border-right: none; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.goal-item h4 {
    color: #3498db; 
    font-size: 1.2rem;
    margin: 10px 0;
    text-align: center;
}
.goal-item p {
    color: #666;
    font-size: 0.95rem;
}
.goal-item:nth-child(3n+1) { border-top: 3px solid #3498db; } 
.goal-item:nth-child(3n+2) { border-top: 3px solid #16a085; } 
.goal-item:nth-child(3n) { border-top: 3px solid #3498db; } 

/* تنسيقات المقالة (لصفحة article.html) */
.article-hero {
    background-color: #f4f7f6; 
    padding: 80px 20px 40px;
    text-align: center;
    border-bottom: 5px solid #1abc9c; 
}
/* تم تعديل حجم العنوان ليكون 2.2rem */
.article-hero h1 {
    color: #2c3e50;
    font-size: 2.2rem; 
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    text-align: center;
}
.article-container {
    max-width: 800px; 
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
}
.article-container h3 {
    color: #2c3e50; 
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
    position: relative;
    padding-right: 20px;
}
.article-container h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.article-container ul {
    list-style-type: none;
    padding-right: 0;
}
.article-container li {
    background-color: #ffffff;
    border-right: 4px solid #1abc9c; 
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}
.article-container strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}
.article-cta {
    display: block;
    width: 250px;
    margin: 40px auto;
    text-align: center;
    background-color: #e74c3c; 
}
.article-cta:hover {
    background-color: #c0392b;
}

/* تنسيقات الذيل (Footer) */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}
.container p {
    color: #444;
}

/*
تنسيقات إضافية لصفحة المقياس (survey.html)
*/
.survey-header {
    background-color: #3498db;
    color: white;
    padding: 80px 20px 40px;
    text-align: center;
    margin-bottom: 30px;
}
.survey-header h1 {
    color: white;
    font-size: 2.5rem;
}
.survey-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 15px auto 0;
    color: #ecf0f1;
}
.survey-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}
.survey-section-title {
    color: #2c3e50;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 1.6rem;
}
.question-group {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fcfcfc;
}
.question-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #34495e;
    font-size: 1.1rem;
}
.question-group input[type="text"],
.question-group input[type="email"],
.question-group select,
.question-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.question-group input:focus, .question-group select:focus, .question-group textarea:focus {
    border-color: #3498db;
    outline: none;
}
.action-button.submit-btn {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    margin-top: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}
.action-button.submit-btn:hover {
    background-color: #16a085;
    transform: none;
}
.year-dropdown {
    max-width: 200px;
}

@media(max-width:768px){
     .hero-subtitle {
    font-size: 1rem !important;
    font-weight: 400;
    max-width: 800px;
}
.hero-title {
    font-size: 2rem !important;
    font-weight: 700;
    margin-bottom: 10px;
}
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 10px 0px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.nav-links li {
    width: 110px;
    align-content: center;
    align-self: center;
    justify-content: center;
}
.article-hero {
    width: 70% !important;
    TEXT-ALIGN: center;
    margin: auto;
    font-size: small;
    margin-top: 0rem !important;
}
.article-hero h1 {
    color: #2c3e50;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    text-align: center;
}
}


/* ظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظظ */


/* ------------------------------------------- */
/* استعلام الوسائط لشاشات الجوال (Media Query) */
/* ------------------------------------------- */


/* تنسيقات الأقسام العامة (بقية الكود من التحديث السابق) */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    position: relative;
}
.page-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.page-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: #1abc9c; 
    border-radius: 2px;
}
.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}

/* تنسيقات البطاقات الأساسية */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-right: 5px solid #3498db; 
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* تنسيقات قسم الرؤية والرسالة والقيم */
.vision-mission-values.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.vision-mission-values h3 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 2px dotted #ccc;
    padding-bottom: 5px;
}
.mission-card {
    border-right-color: #3498db; 
}
.vision-card {
    border-right-color: #3498db; 
}
.values-card {
    grid-column: 1 / -1; 
}
.values-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.values-list li {
    background-color: #ecf0f1;
    border-right: 4px solid #1abc9c; 
    padding: 10px 15px;
    border-radius: 5px;
    flex-grow: 1;
    min-width: 45%;
    box-shadow: none;
    margin: 0;
}

/* تنسيقات قسم الأهداف (Goals) */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.goal-item {
    text-align: center;
    background-color: white;
    padding: 25px;
    border-right: none; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.goal-item h4 {
    color: #3498db; 
    font-size: 1.2rem;
    margin: 10px 0;
    text-align: center;
}
.goal-item p {
    color: #666;
    font-size: 0.95rem;
}
.goal-item:nth-child(3n+1) { border-top: 3px solid #3498db; } 
.goal-item:nth-child(3n+2) { border-top: 3px solid #16a085; } 
.goal-item:nth-child(3n) { border-top: 3px solid #3498db; } 

/* تنسيقات المقالة (لصفحة article.html) */
.article-hero {
    background-color: #f4f7f6; 
    padding: 80px 20px 40px;
    text-align: center;
    border-bottom: 5px solid #1abc9c; 
}
/* تم تعديل حجم العنوان ليكون 2.2rem */
.article-hero h1 {
    color: #2c3e50;
    font-size: 2.2rem; 
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    text-align: center;
}
.article-container {
    max-width: 800px; 
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
}
.article-container h3 {
    color: #3498db; 
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
    position: relative;
    padding-right: 20px;
}
.article-container h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.article-container ul {
    list-style-type: none;
    padding-right: 0;
}
.article-container li {
    background-color: #ffffff;
    border-right: 4px solid #1abc9c; 
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}
.article-container strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}
.article-cta {
    display: block;
    width: 250px;
    margin: 40px auto;
    text-align: center;
    background-color: #e74c3c; 
}
.article-cta:hover {
    background-color: #c0392b;
}

/* تنسيقات الذيل (Footer) */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}
.container p {
    color: #444;
}

/*
تنسيقات إضافية لصفحة المقياس (survey.html)
*/
.survey-header {
    background-color: #3498db;
    color: white;
    padding: 80px 20px 40px;
    text-align: center;
    margin-bottom: 30px;
}
.survey-header h1 {
    color: white;
    font-size: 2.5rem;
}
.survey-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 15px auto 0;
    color: #ecf0f1;
}
.survey-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}
.survey-section-title {
    color: #2c3e50;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 1.6rem;
}
.question-group {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fcfcfc;
}
.question-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #34495e;
    font-size: 1.1rem;
}
.question-group input[type="text"],
.question-group input[type="email"],
.question-group select,
.question-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.question-group input:focus, .question-group select:focus, .question-group textarea:focus {
    border-color: #3498db;
    outline: none;
}
.action-button.submit-btn {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    margin-top: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}
.action-button.submit-btn:hover {
    background-color: #16a085;
    transform: none;
}
