/* الألوان الأساسية - تم توحيد المتغيرات هنا */
:root {
    --primary-color: #800000; /* ذهبي/بنفسجي داكن موحد للروابط والأزرار الرئيسية */
    --light-bg: #F8F8F8; /* بيج فاتح/أبيض مصفر */
    --text-color: #333;
    --dark-grey: #555;
    --white: #FFF;
}
/* =================================
   1. تعريف الخط القبطي المخصص
   ================================= */
@font-face {
  font-family: 'Abba Shenouda';
  src: url('fonts/Avva_Shenouda.ttf') format('truetype');
}

/* =================================
   2. تطبيق الخط القبطي على النصوص
   ================================= */
.coptic-text {
  font-family: 'Abba Shenouda', sans-serif !important;
  font-size: 1.3em;
  direction: ltr;
  vertical-align: middle;
}

/* ملاحظة: لقد غيرت h4 span.coptic-text إلى .coptic-text ليكون عامًا أكثر */
/* إذا لم يعمل، يمكنك إعادته إلى h4 span.coptic-text */



/* تنسيقات الـ Modal (نافذة تسجيل الدخول) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 450px;
    border-radius: 10px;
    position: relative;
}

/* تنسيقات خاصة بشريط التنقل (Navbar) */
.logo-color {
    color: var(--primary-color) !important;
}

.navbar-brand span,
.navbar-brand i {
    color: var(--primary-color);
}

/* تنسيق أزرار تسجيل الدخول والمودال */
.btn-login,
.btn-submit {
    background-color: var(--primary-color);
    border-color: var(--primary-color) ;
    color: var(--white) ;
}

/* تعديل تخطيط الحاويات - تم توحيدها وحذف التكرار */
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    width: 95%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

/* تثبيت الفوتر - تم نقله إلى مكان أكثر دقة */
.main-footer {
    right: 0;
    left: 0;
    bottom: 0;
    position: static;
    background-color: var(--primary-color); 
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}
footer {
    right: 0;
    left: 0;
    bottom: 0;
    position: static;
 
}
footer.textcenter{
    padding:0 !important;
}

/* التنسيقات العامة */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0 auto;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
}

/* تم حذف محدد ( * , ::after, ::before { box-sizing: content-box; } ) لأنه يتعارض مع Bootstrap */

.coptic-text {
    font-family: 'Noto Sans Coptic', sans-serif;
    font-size: 1.2em;
    direction: ltr;
}
/* =================================
   1. تعريف الخط القبطي المخصص
   ================================= */
@font-face {
  font-family: 'Abba Shenouda';
  src: url('fonts/Avva_Shenouda.ttf') format('truetype');
}

/* =================================
   2. تطبيق الخط القبطي على النصوص
   ================================= */
.coptic-text {
  font-family: 'Abba Shenouda', sans-serif !important;
  font-size: 1.3em;
  direction: ltr;
  vertical-align: middle;
}

/* ملاحظة: لقد غيرت h4 span.coptic-text إلى .coptic-text ليكون عامًا أكثر */
/* إذا لم يعمل، يمكنك إعادته إلى h4 span.coptic-text */
.container-fluid {
    width: 95% !important;
    max-width: 95% !important;
}


a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}


/* الرأس (Header) */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .icon {
    font-size: 28px;
    color: var(--primary-color);
}

.logo h1 {
    margin: 0;
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}

.main-nav ul li a {
    color: var(--text-color);
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

li {
    width: fit-content;
}

.main-nav ul li a i {
    margin-right: 5px;
}

.btn {
    padding: 10px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: center;
}

.btn-login:hover,
.btn-submit:hover {
    background-color: #A30000 !important; /* لون أغمق قليلاً من #800000 */
}

/* صفحة تسجيل الدخول (Login Page) - تستخدم تنسيق المودال */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 329px);
    padding: 40px 20px;
}

.login-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-container h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: right;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-grey);
    font-weight: 500;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: var(--primary-color);
}

.btn-submit {
    width: 95%;
    padding: 12px;
    font-size: 18px;
    margin-top: 20px;
}


.login-container .links {
    margin-top: 25px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.login-container .links a {
    color: var(--primary-color);
    font-size: 14px;
    transition: color 0.3s ease;
}

.login-container .links a:hover {
    color: #A30000;
}


/* زر الـ Active في قائمة التنقل */
.main-nav ul li a.active {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    justify-items: center;
}


/* الأزرار الثانوية - تم تعديلها لاستخدام المتغير الموحد */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #A30000;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* الأقسام العامة */
.section-padding {
    padding: 60px 0;
}

.bg-light-grey {
    background-color: var(--light-bg);
}

.section-title {
    color: var(--primary-color);
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
    color: var(--dark-grey);
}

.text-center {
    text-align: center;
    margin-top: 30px;
}

/* قسم البانر الرئيسي (Hero Section) */
.hero-section {
    background: url('https://via.placeholder.com/1500x500?text=Coptic+Church+Interior') no-repeat center center/cover;
    color: var(--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-color: white;
    z-index: -1;
}

.hero-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: var(--primary-color);
}

.hero-section p {
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* قسم عن المدرسة (مختصر) */
.about-brief-section {
    background-color: var(--white);
}

.about-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    flex-basis: calc(33% - 20px);
    text-align: center;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item .icon-large {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 16px;
    color: var(--dark-grey);
    line-height: 1.6;
}

/* قسم المناهج (مختصر) */
.curriculum-areas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.area-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    flex-basis: calc(25% - 20px);
    min-width: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.area-item .icon-medium {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.area-item h4 {
    font-size: 18px;
    color: var(--text-color);
    margin: 0;
}

/* قسم الأخبار والفعاليات */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-item {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin: 15px 15px 10px;
}

.news-item .news-date {
    font-size: 14px;
    color: var(--dark-grey);
    margin: 0 15px 10px;
}

.news-item .news-date .far {
    margin-left: 5px;
}

.news-item p {
    font-size: 15px;
    color: var(--text-color);
    margin: 0 15px 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.news-item .read-more {
    display: block;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.news-item .read-more:hover {
    background-color: #A30000;
    text-decoration: none;
}


.nav-link {
    color: var(--primary-color);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0;
    }
    .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .main-header .main-nav {
        display: none;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .hero-section h2 {
        font-size: 36px;
    }

    .hero-section p {
        font-size: 18px;
    }

    .section-title {
        font-size: 30px;
    }

    .about-features,
    .curriculum-areas,
    .news-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-item,
    .area-item,
    .news-item {
        flex-basis: 90%;
        max-width: 400px;
    }
}

/* تنسيقات خاصة بصفحة الامتحان */
.exam-page {
    padding: 40px 0;
    min-height: calc(100vh - 150px);
    background-color: var(--light-bg);
}

.exam-container {
    background-color: var(--white);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 900px;
}

.exam-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.exam-header h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 15px;
}

.exam-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 16px;
    color: var(--dark-grey);
}

.exam-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exam-info span i {
    color: var(--primary-color);
}

.exam-form {
    margin-top: 30px;
}

.question-block {
    background-color: var(--light-bg);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.question-number {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
    text-align: right;
}

.question-text {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: right;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-label {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.option-label:hover {
    background-color: #f0f0f0;
    border-color: var(--primary-color);
}

.option-label input[type="radio"] {
    margin-left: 15px;
    transform: scale(1.3);
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* الأزرار في نهاية الامتحان */
.exam-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-submit-exam {
    background-color: #DC3545;
    color: var(--white);
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit-exam:hover {
    background-color: #C82333;
}

/* تعديلات للأزرار العادية (السابق/التالي) */
.exam-actions .btn-primary,
.exam-actions .btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    flex-grow: 1;
    max-width: 180px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .exam-container {
        padding: 20px;
    }

    .exam-header h2 {
        font-size: 26px;
    }

    .exam-info {
        flex-direction: column;
        gap: 15px;
        font-size: 14px;
    }

    .question-text {
        font-size: 18px;
    }

    .option-label {
        padding: 12px;
        font-size: 15px;
    }

    .exam-actions {
        flex-direction: column;
    }

    .exam-actions .btn-primary,
    .exam-actions .btn-secondary,
    .btn-submit-exam {
        width: 100%;
        max-width: unset;
    }
}

/* تنسيقات خاصة بلوحة تحكم الخادم (Teacher Dashboard) */
.dashboard-page {
    padding: 40px 0;
    min-height: calc(100vh - 150px);
    background-color: var(--light-bg);
}

.dashboard-container {
    background-color: var(--white);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 1200px;
}

.dashboard-title {
    color: var(--primary-color);
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.dashboard-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.dashboard-section {
    margin-bottom: 60px;
}

/* قسم النظرة العامة (Overview Cards) */
.overview-cards .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.info-card .icon-dashboard {
    font-size: 55px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.info-card .count-number {
    font-size: 40px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card .card-link {
    display: block;
    font-size: 15px;
    color: var(--primary-color);
    text-decoration: underline;
    margin-top: 15px;
}

.info-card .card-link:hover {
    color: #A30000;
}

/* الأقسام الفرعية داخل لوحة التحكم */
.section-actions {
    margin-bottom: 25px;
    text-align: left;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 15px;
    border: 1px solid #eee;
    text-align: right;
    font-size: 16px;
}

.data-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tbody tr:hover {
    background-color: #f0f0f0;
}

.actions-column {
    white-space: nowrap;
    text-align: center;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin: 0 5px;
    transition: color 0.3s ease;
    padding: 5px;
}

.edit-btn {
    color: #28A745;
}

.edit-btn:hover {
    color: #218838;
}

.delete-btn {
    color: #DC3545;
}

.delete-btn:hover {
    color: #C82333;
}

.view-btn,
.details-btn {
    color: #007BFF;
}

.view-btn:hover,
.details-btn:hover {
    color: #0056b3;
}

/* تنسيقات الفلتر في قسم النتائج */
.results-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.results-filter label {
    font-weight: bold;
    color: var(--text-color);
    margin-left: 10px;
}

.form-control {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    min-width: 180px;
}

.form-control:focus {
    border-color: var(--primary-color);
}

/* تنسيق الدرجات في جدول النتائج */
.score-pass {
    color: #28A745;
    font-weight: bold;
}

.score-fail {
    color: #DC3545;
    font-weight: bold;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 20px;
    }

    .dashboard-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .overview-cards .card-grid {
        grid-template-columns: 1fr;
    }

    .section-actions {
        text-align: center;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
        font-size: 14px;
    }

    .results-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-filter label,
    .form-control {
        width: 100%;
        margin-left: 0;
    }
}

/* تنسيق الـ table-responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* تنسيقات خاصة بصفحة المناهج والفصول الدراسية */
.curriculum-page {
    padding: 40px 0;
    min-height: calc(100vh - 150px);
    background-color: var(--light-bg);
}

.levels-and-classes-section {
    margin-top: 50px;
}

.level-category {
    background-color: var(--white);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.level-title {
    color: var(--primary-color);
    font-size: 30px;
    margin-bottom: 30px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.level-title .icon-level {
    font-size: 35px;
    color: var(--primary-color);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.class-card {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.class-card h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.class-card p {
    font-size: 15px;
    color: var(--dark-grey);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.class-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    color: var(--dark-grey);
    font-size: 14px;
}

.class-details li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.class-details li .fas {
    color: var(--primary-color);
}

.class-card .class-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
}

.class-card .class-link:hover {
    color: #A30000;
}

.class-card .class-link .fas {
    font-size: 14px;
}


/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .level-category {
        padding: 20px;
    }

    .level-title {
        font-size: 26px;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .level-title .icon-level {
        margin-bottom: 5px;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }
}

/* تنسيقات خاصة بصفحة "عن المدرسة" */
.about-page {
    padding: 40px 0;
    min-height: calc(100vh - 150px);
    background-color: var(--light-bg);
}

.about-history {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 50px 0;
    margin-bottom: 40px;
}

.history-text {
    flex: 2;
    text-align: right;
}

.history-text h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

.history-text h3 .icon-heading {
    font-size: 35px;
    color: var(--primary-color);
}

.history-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.history-image {
    flex: 1;
    text-align: center;
}

.history-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 14px;
    color: var(--dark-grey);
    margin-top: 10px;
}

/* قسم الرؤية والرسالة */
.about-vision-mission {
    padding: 50px 0;
    margin-bottom: 40px;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vm-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.07);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.vm-card:hover {
    transform: translateY(-5px);
}

.vm-card .icon-vm {
    font-size: 55px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.vm-card h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 15px;
}

.vm-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-grey);
}

/* قسم الأهداف والقيم */
.about-goals-values {
    padding: 50px 0;
}

.about-goals-values h3 {
    color: var(--primary-color);
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.about-goals-values h3 .icon-heading {
    font-size: 40px;
    color: var(--primary-color);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.goal-item {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.goal-item:hover {
    transform: translateY(-5px);
}

.goal-item .icon-goal {
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.goal-item h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.goal-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-grey);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .about-history {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .history-text,
    .history-image {
        flex: auto;
    }

    .history-text h3 {
        justify-content: center;
    }

    .vm-grid,
    .goals-grid {
        grid-template-columns: 1fr;
    }

    .about-goals-values h3 {
        font-size: 26px;
        flex-direction: column;
    }
}