/* 
 * الأنماط الرئيسية لموقع مديرية التدقيق والرقابة الداخلية
 * تم تصميم هذا الملف ليكون سهل التعديل والتخصيص
 * يمكن تغيير الألوان والخطوط والأحجام حسب الحاجة
 */

/* ===== الأنماط العامة ===== */
:root {
    --primary-color: #0052A5;      /* اللون الأزرق من الشعار */
    --secondary-color: #004080;    /* اللون الأزرق الداكن للتأثيرات */
    --accent-color: #009639;       /* اللون الأخضر من الشعار */
    --highlight-color: #E41E26;    /* اللون الأحمر من الشعار */
    --light-color: #FFFFFF;        /* اللون الأبيض للخلفيات */
    --light-gray: #F5F5F5;         /* اللون الرمادي الفاتح للأقسام البديلة */
    --text-color: #333333;         /* لون النص */
    --border-color: #DDDDDD;       /* لون الحدود */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--link-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: transparent;
}

/* ===== الهيدر ===== */
header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    max-height: 120px;
}

.title h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.title p {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* ===== القائمة الرئيسية ===== */
.main-nav {
    background-color: var(--primary-color);
    margin-bottom: 0; /* أضف هذا السطر لضمان عدم وجود هامش سفلي */

}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-weight: 600;
}

.main-nav a:hover, .main-nav a.active {
    background-color: var(--secondary-color);
}

/* ===== إضافات Bootstrap للقائمة المنسدلة فقط ===== */

/* تخصيص القائمة المنسدلة لتتناسب مع التصميم */
.nav-item.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: none;
    background: none;
}

.nav-item.dropdown .dropdown-toggle:hover,
.nav-item.dropdown .dropdown-toggle:focus {
    background-color: var(--secondary-color);
    color: white;
}

.nav-item.dropdown .dropdown-toggle::after {
    margin-right: 5px;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* تخصيص القائمة المنسدلة */
.nav-item.dropdown .dropdown-menu {
    background-color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    padding: 0;
    margin-top: 0;
}

.nav-item.dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-item.dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.nav-item.dropdown .dropdown-item:hover,
.nav-item.dropdown .dropdown-item:focus {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.nav-item.dropdown .dropdown-item i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* ===== الشريط الترويجي ===== */


 /* ===== الشريط الترويجي ===== */
.slider {
    /* هذه الخصائص ستتحكم في الهوامش العلوية والسفلية للسلايدر */
    margin-top: 0;    /* أضف هذا السطر لضمان عدم وجود هامش علوي */
    margin-bottom: 0; /* أضف هذا السطر لضمان عدم وجود هامش سفلي */
    /* لا تضع هنا خصائص مثل background-image, height, width, display, align-items, justify-content, position, etc.
       لأنك تضعها مباشرة في HTML (inline style) وهي لها أولوية أعلى.
       هذه القاعدة في CSS هي فقط للتحكم في الهوامش. */
}

.slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* تأكد من عدم وجود margin-top أو margin-bottom هنا أيضاً */
    margin-top: 0;
    margin-bottom: 0;
}
/* ... باقي الكود كما هو ... */


.slide-content {
    max-width: 800px;
    padding: 20px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ===== نبذة مختصرة ===== */
.intro {
    padding: 50px 0;
    text-align: center;
}

.intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ===== الروابط السريعة ===== */
.quick-links {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.link-box {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    transition: all 0.3s ease;
}

.link-box:hover {
    transform: translateY(-10px);
}

.link-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.link-box h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* ===== الإحصائيات ===== */
.statistics {
    padding: 50px 0;
    background-color: var(--primary-color);
    color: white;
}

.statistics .section-title {
    color: white;
}

.statistics .section-title::after {
    background-color: white;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.stat-box {
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 20px;
}

.stat-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
}

/* ===== آخر الأخبار ===== */
.latest-news {
    padding: 50px 0;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.news-box {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.news-box:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.news-content .date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-content p {
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    align-self: flex-start;
    color: var(--primary-color);
    font-weight: 600;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* ===== عن المديرية ===== */
.about-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text ul {
    padding-right: 20px;
    margin-bottom: 20px;
}

.about-text ul li {
    margin-bottom: 5px;
    position: relative;
    padding-right: 20px;
}

.about-text ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-color);
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.director-word {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.director-word h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.director-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.director-image {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.director-image img {
    width: 500px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.director-image p {
    margin-bottom: 5px;
}

.director-image p:first-of-type {
    font-weight: 700;
    color: var(--primary-color);
}

.director-text {
    flex: 3;
    min-width: 300px;
}

.director-text p {
    margin-bottom: 15px;
}

/* ===== الأقسام والشعب ===== */
.departments-section {
    padding: 50px 0;
}

.org-chart {
    text-align: center;
    margin-bottom: 50px;
}

.org-chart h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.org-chart p {
    margin-bottom: 20px;
}

.chart-container {
    margin: 30px 0;
}

.departments-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.department {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.department h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.department p {
    margin-bottom: 20px;
}

.units {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.unit {
    flex: 1;
    min-width: 250px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.unit h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* ===== الخدمات ===== */
.services-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.service-box {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    transition: all 0.3s ease;
}

.service-box:hover {
    transform: translateY(-10px);
}

.service-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-box h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-box p {
    margin-bottom: 20px;
}

/* ===== المركز الإعلامي ===== */
.media-section {
    padding: 50px 0;
}

.media-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.media-box {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
}

.media-box:hover {
    transform: translateY(-10px);
}

.media-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.media-box h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.media-box p {
    margin-bottom: 20px;
}

/* ===== المعرفة والتطوير ===== */
.knowledge-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.knowledge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.knowledge-box {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
}

.knowledge-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.knowledge-box h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.knowledge-box ul {
    margin-bottom: 20px;
}

.knowledge-box ul li {
    margin-bottom: 10px;
}

.knowledge-box p {
    margin-bottom: 20px;
}

/* ===== الشفافية والنزاهة ===== */
.transparency-section {
    padding: 50px 0;
}

.transparency-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.transparency-box {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    transition: all 0.3s ease;
}

.transparency-box:hover {
    transform: translateY(-10px);
}

.transparency-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.transparency-box h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.transparency-box p {
    margin-bottom: 20px;
}

/* ===== التعاون والشراكات ===== */
.cooperation-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.cooperation-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.cooperation-box {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    transition: all 0.3s ease;
}

.cooperation-box:hover {
    transform: translateY(-10px);
}

.cooperation-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cooperation-box h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.cooperation-box p {
    margin-bottom: 20px;
}

/* ===== اتصل بنا ===== */
.contact-section {
    padding: 50px 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info ul li i {
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 1.2rem;
    margin-top: 3px;
}

.contact-form {
    flex: 2;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Cairo', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.map {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.map h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map img {
    border-radius: 8px;
    max-height: 400px;
}

/* ===== القائمة الجانبية ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s ease;
    padding: 20px;
}

.sidebar.active {
    left: 0;
}

.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-box {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.sidebar-box:last-child {
    border-bottom: none;
}

.sidebar-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.sidebar-box ul li {
    margin-bottom: 10px;
}

.sidebar-box p {
    margin-bottom: 15px;
}

.calendar {
    margin-bottom: 15px;
}

/* ===== التذييل ===== */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-box {
    flex: 1;
    min-width: 250px;
}

.footer-box h3 {
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-box p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    color: #ccc;
}

.footer-box ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* إصلاح سريع للقائمة المنسدلة */

/* إخفاء القائمة المنسدلة افتراضياً */
.nav-item.dropdown .dropdown-menu {
    display: none !important;
}

/* إظهار القائمة عند فتحها */
.nav-item.dropdown .dropdown-menu.show {
    display: block !important;
}

/* إصلاح إضافي للتأكد */
.dropdown-menu:not(.show) {
    display: none !important;
}

/* إصلاح العرض المتجاوب للموبايل */

/* زر القائمة للموبايل */
.mobile-menu-btn {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: var(--secondary-color);
}

/* الهيدر للموبايل */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 250px;
    width: auto;
}

.title {
    flex: 1;
    text-align: center;
}

/* العرض على الموبايل */
@media (max-width: 768px) {
    
    /* إظهار زر القائمة */
    .mobile-menu-btn {
        display: block !important;
    }
    
    /* إخفاء القائمة افتراضياً */
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 180px !important;
        height: 100vh !important;
        background-color: white !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        z-index: 999 !important;

    }
    
    /* إظهار القائمة عند فتحها */
    .main-nav.mobile-active {
        right: 0 !important;
    }
    
    /* تخطيط القائمة عمودي */
    .nav-menu {
        flex-direction: column !important;
        padding: 20px 0 !important;
    }
    
    .nav-menu li {
        width: 100% !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    
    .nav-menu li:last-child {
        border-bottom: none !important;
    }
    
    .nav-menu > li > a {
        padding: 15px 20px !important;
        color: var(--text-color) !important;
        justify-content: flex-start !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .nav-menu > li > a:hover,
    .nav-menu > li > a.active {
        background-color: var(--light-gray) !important;
        color: var(--primary-color) !important;
    }
    
    /* القائمة المنسدلة على الموبايل */
    .nav-item.dropdown .dropdown-toggle {
        color: var(--text-color) !important;
        padding: 15px 20px !important;
        justify-content: flex-start !important;
        background: none !important;
        border: none !important;
        width: 100% !important;
        text-align: right !important;
    }
    
    .nav-item.dropdown .dropdown-toggle:hover,
    .nav-item.dropdown .dropdown-toggle:focus {
        background-color: var(--light-gray) !important;
        color: var(--primary-color) !important;
    }
    
    .nav-item.dropdown .dropdown-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background-color: var(--light-gray) !important;
        margin-top: 0 !important;
        transform: none !important;
        display: none !important;
        border: none !important;
    }
    
    .nav-item.dropdown .dropdown-menu.show {
        display: block !important;
    }
    
    .nav-item.dropdown .dropdown-item {
        padding: 12px 40px !important;
        font-size: 0.9rem !important;
        color: var(--text-color) !important;
        border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    }
    
    .nav-item.dropdown .dropdown-item:hover {
        background-color: rgba(0,0,0,0.05) !important;
        color: var(--primary-color) !important;
    }
    
    /* تحسين الهيدر للموبايل */
    .header-flex {
        padding: 10px 0 !important;
    }
    
    .title h1 {
        font-size: 1.4rem !important;
    }
    
    .title p {
        font-size: 0.9rem !important;
    }
    
    .logo img {
        height: 100px !important;
    }
}

/* الشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .container {
        padding: 0 10px !important;
    }
    
    .header-flex {
        gap: 10px !important;
    }
    
    .title h1 {
        font-size: 1.2rem !important;
    }
    
    .title p {
        font-size: 0.8rem !important;
    }
    
    .logo img {
        height: 40px !important;
    }
    
    .main-nav {
        width: 100% !important;
    margin-bottom: 0; /* هذا السطر موجود بالفعل وهو صحيح */

    }
}

 
