/* إعدادات عامة */
body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #eef2f3, #d9e4ea); /* ألوان أكثر نعومة */
    direction: rtl;
}

/* الهيدر */
.main-header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('images/25.webp') no-repeat center center/cover;
    color: white;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 2s ease-in-out;
    color: #f4b400; /* لون أصفر جذاب */
}

.header-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 3s ease-in-out;
    color: #f4f4f4;
}

.header-content .btn {
    background: linear-gradient(to right, #f4b400, #ff6f00);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s, background 0.3s;
}

.header-content .btn:hover {
    transform: scale(1.1);
    background: linear-gradient(to right, #ff6f00, #f4b400);
}

/* القائمة الرئيسية */
.main-nav {
    background-color: #333;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* تأثير الظل */
}

.main-nav .menu {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav .menu li a {
    text-decoration: none;
    color: #f4f4f4;
    font-size: 18px;
    padding: 10px;
    transition: color 0.3s;
}

.main-nav .menu li a:hover {
    color: #f4b400; /* لون الأصفر عند التمرير */
}

.menu-toggle {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* استجابة للجهاز المحمول */
@media (max-width: 768px) {
    .main-nav .menu {
        display: none;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 9999;
    }

    .main-nav .menu li a {
        text-decoration: none;
        width: 100%;
        color: #f4f4f4;
        padding: 15px;
        font-size: 18px;
        display: block;
        text-align: center;
    }

    .main-nav .menu li {
        padding: 0 10px;
    }

    .menu-toggle {
        display: block;
        font-size: 30px;
        color: white;
        cursor: pointer;
        position: absolute;
        top: 20px;
        left: 80%;
        transform: translateX(-50%);
    }

    .menu.active {
        display: block;
    }
}

/* الأقسام */
.section {
    padding: 3rem 1.5rem;
    margin: 2rem auto;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.section:hover {
    transform: translateY(-5px);
}

.section h2 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #1a73e8;
    margin: 0.5rem auto 0;
    border-radius: 5px;
}

/* الشبكة لخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service {
    text-align: center;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service:hover {
    transform: scale(1.05);
}

.service i {
    font-size: 3rem;
    color: #f4b400; /* لون أصفر جذاب */
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.service:hover i {
    transform: rotate(360deg);
}

.service h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.service p {
    color: #555;
}

/* معرض الصور */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* المقالات */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

article {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

article:hover {
    transform: translateY(-5px);
}

article h3 {
    font-size: 1.5rem;
    color: #1a73e8;
    margin-bottom: 1rem;
}

article p {
    color: #555;
    line-height: 1.6;
}

/* اتصل بنا */
#contact {
    text-align: center;
    background: linear-gradient(to right, #1a73e8, #ff6f00);
    color: white;
    padding: 3rem 1.5rem;
    border-radius: 10px;
}

#contact p {
    font-size: 1.2rem;
}

/* الفوتر */
.main-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

/* الرسوم المتحركة */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* تنسيق الصورة داخل المقالات */
.article-image {
    width: 100%; /* لضبط العرض ليكون 100% من عرض العنصر الأب */
    max-width: 500px; /* تحديد الحد الأقصى للعرض */
    height: auto; /* الحفاظ على نسبة العرض إلى الارتفاع */
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block; /* لجعل الصورة تظهر ككتلة (block) */
    margin-left: auto;
    margin-right: auto; /* لتوسيط الصورة */
}

/* تحسين التفاعل مع الصورة عند التمرير */
.article-image:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}











/* تصميم الشريط الجانبي */
.social-sidebar {
    position: fixed;
    top: 20%;
    left: 10px; /* موقع الشريط على الشاشة */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1000; /* لضمان ظهوره فوق العناصر الأخرى */
}

/* تصميم الأيقونات */
.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* الألوان لكل أيقونة */
.social-icon.phone {
    background-color: #007bff; /* لون الهاتف */
}

.social-icon.whatsapp {
    background-color: #25d366; /* لون الواتساب */
}

.social-icon.instagram {
    background-color: #e4405f; /* لون الإنستجرام */
}

.social-icon.twitter {
    background-color: #1da1f2; /* لون تويتر */
}

.social-icon.facebook {
    background-color: #3b5998; /* لون فيسبوك */
}

.social-icon.youtube {
    background-color: #ff0000; /* لون يوتيوب */
}

/* التأثير عند المرور */
.social-icon:hover {
    transform: scale(1.1); /* تكبير الأيقونة */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* شريط جديد للواتساب والاتصال في الجنب اليسار */
/* أيقونة الواتساب على اليسار */
.social-left {
    position: fixed;
    bottom: 10px; /* المسافة من الأسفل */
    left: 10px; /* المسافة من اليسار */
    z-index: 1000; /* لضمان الظهور فوق العناصر الأخرى */
}

.social-left .social-icon {
    position: relative; /* لضبط العناصر الداخلية مثل الشعار */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: white;
    font-size: 24px;
    text-decoration: none;
    background-color: #25d366; /* لون الواتساب */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* الشعار الأحمر أو الرقم على الواتساب */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* أيقونة الهاتف على اليمين */
.social-right {
    position: fixed;
    bottom: 10px; /* المسافة من الأسفل */
    right: 10px; /* المسافة من اليمين */
    z-index: 1000; /* لضمان الظهور فوق العناصر الأخرى */
    display: flex; /* لتوضيع الأيقونة والنص بجانب بعض */
    align-items: center;
    gap: 8px; /* مسافة بين الأيقونة والنص */
}

/* تصميم الأيقونة */
.social-right .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: white;
    font-size: 24px;
    text-decoration: none;
    background-color: #007bff; /* لون الهاتف */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* النص بجانب الأيقونة */
.call-label {
    font-size: 16px; /* حجم النص */
    font-weight: bold; /* خط عريض */
    color: #0b0b0b; /* لون النص */
    background-color: #fff; /* الخلفية البيضاء */
    padding: 5px 10px; /* الحشو حول النص */
    border-radius: 12px; /* زاوية حادة للنص */
    border: 1px solid #ccc; /* خط خفيف حول النص */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* تأثير الظل */
    font-family: 'Arial', sans-serif; /* الخط */
    margin-left: 10px; /* المسافة بين النص والأيقونة */
}

/* التأثير عند تمرير الفأرة على الأيقونة */
.social-icon:hover {
    transform: scale(1.1); /* تكبير الأيقونة */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}






/* تنسيق القسم الذي يحتوي على الخريطة */
#map {
    padding: 50px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

#map h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* تنسيق الحاوية التي تحتوي على الخريطة */
.map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

/* تنسيق الـ iframe ليتناسب مع المساحة المتاحة */
.map-container iframe {
    width: 100%;
    max-width: 100%;
    height: 450px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/* 1. اللون الأساسي للأيقونة */
.main-nav .menu-toggle i {
    color: #000000; /* اللون الأساسي للأيقونة */
}

/* 2. اللون عند التمرير بالماوس */
.main-nav .menu-toggle i:hover {
    color: #ff6347; /* اللون عند التمرير (على سبيل المثال، لون برتقالي) */
}

/* 3. اللون عند التحديد */
.main-nav .menu-toggle i:active {
    color: #4caf50; /* اللون عند الضغط (على سبيل المثال، لون أخضر) */
}
