﻿body {
    font-family: 'Cairo', sans-serif;
}
a {
    text-decoration: none;
}

.text-justify {
    text-align: justify !important;
}
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
}
/* --- 1. Navbar Styles --- */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-brand img {
    height: 60px; /* حجم اللوجو */
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    margin-left: 10px;
    font-size: 0.95rem;
}

    .nav-link.active {
        color: var(--primary-color) !important;
    }

    .nav-link:hover {
        color: var(--primary-color);
    }

/* الشريط العلوي الخاص بالأدوات */
.top-utils {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.btn-login {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 0; /* حواف حادة كما في التصميم */
    padding: 5px 20px;
    font-weight: bold;
}

    .btn-login:hover {
        background-color: #146c43;
        color: #fff;
    }

/* --- 2. Hero Carousel Styles --- */
.hero-section {
    position: relative;
}

.carousel-item {
    height: 85vh; /* ارتفاع السكشن */
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

/* الطبقة السوداء الشفافة */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* تعتيم بنسبة 50% */
    z-index: 1;
}

/* المحتوى النصي فوق الصورة */
.carousel-caption {
    z-index: 2; /* فوق الـ Overlay */
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* توسيط النص */
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.btn-hero {
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 10px 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

    .btn-hero:hover {
        background-color: #fff;
        color: #000;
    }

/* أزرار التحكم بالسلايدر (Custom Controls) */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
    z-index: 5;
}
/* الخلفية العامة للسكشن (رمادي فاتح جداً مثل التصميم) */
.about-section {
    background-color: #f9f9f9;
}

/* تنسيق العنوان الصغير "من نحن" */
.section-subtitle {
    color: #1a237e; /* الأزرق الغامق */
    font-size: 1.1rem;
}

/* تنسيق العنوان الرئيسي */
.section-title {
    color: #1a237e;
    line-height: 1.4;
    font-size: 2rem;
}

/* تنسيق الفقرة النصية */
.section-desc {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 90%;
}

/* --- تنسيق زر اكتشف المزيد --- */
.btn-discover {
    color: var(--primary-color); /* اللون الأخضر */
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

    .btn-discover i {
        font-size: 1.4rem; /* حجم الأيقونة */
        transition: transform 0.3s ease;
    }

    /* حركة السهم عند مرور الماوس على الزر */
    .btn-discover:hover {
        color: #146c43; /* لون أغمق قليلاً */
    }

        .btn-discover:hover i {
            transform: translateX(-5px); /* تحريك السهم لليسار */
        }

/* --- تنسيق وحركة الصورة (The Sweet Animation) --- */
.about-img-wrapper {
    position: relative;
    padding: 10px; /* مسافة بسيطة لعمل إطار وهمي إذا أردت */
    perspective: 1000px; /* لتفعيل تأثير الـ 3D */
}

    .about-img-wrapper img {
        transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* حركة ناعمة جداً */
        cursor: pointer;
        border: 5px solid #fff; /* إطار أبيض حول الصورة */
    }

    /* عند مرور الماوس على الصورة */
    .about-img-wrapper:hover img {
        transform: translateY(-10px) scale(1.02); /* ترتفع للأعلى وتكبر قليلاً */
        box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important; /* الظل يصبح أعمق */
    }




/* --- نفس الستايلات السابقة للخلفية والعرض الرئيسي --- */
.board-section {
    background-color: #050A30;
    background-image: radial-gradient(#2c3e50 1px, transparent 1px);
    background-size: 20px 20px;
    overflow: hidden;
}

.featured-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-top: 50px;
    backdrop-filter: blur(5px);
}

.featured-img-box {
    position: relative;
    display: flex;
    justify-content: center;
}


.img-frame {
    position: relative;
    top: -40px;
    width: 300px;
    height: 380px;
    overflow: hidden;
}

    .img-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* --- ستايلات السلايدر الجديد (Slider Styles) --- */
.slider-container-wrapper {
    padding: 0 50px; /* مسافة للأزرار */
}

.members-scroll-area {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px; /* مسافة للظل */
    /* إخفاء السكرول بار */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

    .members-scroll-area::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

/* تنسيق الكرت داخل السلايدر */
.member-card {
    min-width: 180px; /* عرض ثابت لكل كرت */
    max-width: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    user-select: none;
}

    .member-card img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 50%;
        margin-bottom: 10px;
        border: 3px solid transparent;
    }

    /* Active & Hover States */
    .member-card.active-card, .member-card:hover {
        background: rgba(255,255,255,0.2);
        transform: translateY(-5px);
        border-color: rgba(255,255,255,0.3);
    }

        .member-card.active-card img {
            border-color: #fff;
        }

/* أزرار التنقل */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

    .nav-btn:hover {
        background: var(--primary-color);
    }

.prev-btn {
    right: 0;
}

.next-btn {
    left: 0;
}

/* Media Query للموبايل */
@media (max-width: 768px) {
    .img-frame {
        top: 0;
        width: 100%;
        height: auto;
    }

    .featured-wrapper {
        margin-top: 0;
    }

    .slider-container-wrapper {
        padding: 0;
    }

    .nav-btn {
        display: none;
    }
    /* نخفي الأزرار في الموبايل ونعتمد ع التاتش */
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}





.media-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* عنوان القسم */
.section-title {
    text-align: center;
    color: #0d1b3e; /* كحلي غامق */
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
}

/* شبكة العرض (Grid System) */
.gallery-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* الأعمدة */
.col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

/* البطاقة (Card) */
.card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ضبط ارتفاعات الصور */
.small-card {
    height: 250px;
}

.large-card {
    height: 520px; /* يساوي ارتفاع صورتين صغيرتين + المسافة بينهما */
}

.card img {
    width: 100%;
    height: 100%; /* ضروري جداً: يجبر الصورة تكون بقد الكرت بالزبط */
    object-fit: cover; /* عشان الصورة ما تنمط وتحافظ على أبعادها */
    display: block;
    transition:all 0.5s;
}

/* تأثير الزووم عند المرور */
.card:hover img {
    transform: scale(1.05);
}

/* التدرج الأسود فوق الصورة */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
}

/* النصوص داخل الكرت */
.card-content h3 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.card-date {
    color: #ccc;
    font-size: 14px;
}

/* زر "إظهار المزيد" */
.btn-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background-color: #2e7d32; /* أخضر غامق */
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

    .load-more-btn:hover {
        background-color: #1b5e20;
    }

/* التجاوب مع الموبايل (Responsive) */
@media (max-width: 768px) {
    .gallery-grid {
        flex-direction: column;
    }

    .large-card {
        height: 300px;
    }
}




.services-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

/* تنسيق العناوين */
.section-header h2 {
    color: #0d1b3e; /* الكحلي */
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    color: #777;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

/* شبكة الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 أعمدة */
    gap: 30px; /* المسافة بين الكروت */
}

/* تصميم الكرت */
.service-card {
    background: white;
    border-radius: 15px; /* حواف دائرية ناعمة */
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.4s ease; /* نعومة الحركة */
    position: relative;
    /* بوردر خفيف جداً يختفي مع الهوفر */
    border: 1px solid transparent;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* ظل ناعم */
}

/* الأيقونة داخل الدائرة */
.icon-box {
    width: 120px;
    height: 120px;
    background-color: #ced6e0; /* الرمادي الفاتح */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    transition: background-color 0.4s ease;
}

    .icon-box i {
        font-size: 35px;
        color: white;
    }

/* النص داخل الكرت */
.service-card h3 {
    color: #000;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* --- تأثير الهوفر (السحر هنا) --- */
.service-card:hover {
    transform: translateY(-10px); /* يرتفع للأعلى */
    border-color: #eef2f3;
}

    /* تغيير لون الدائرة عند مرور الماوس على الكرت */
    .service-card:hover .icon-box {
        background-color: #1b5e20; /* الأخضر الغامق */
    }

/* التجاوب مع الموبايل */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* عمود واحد للموبايل */
    }
}

/* --- تنسيق القسم الرئيسي (الخلفية الكحلية) --- */
.contact-footer-section {
    background-color: #020b26; /* كحلي غامق جداً */
    color: white;
    padding-top: 60px;
    position: relative;
    /* يمكن إضافة صورة خلفية خفيفة هنا إذا رغبت */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* عنوان القسم */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
}

/* --- الشبكة العلوية: الخريطة والنموذج --- */
.top-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

/* الخريطة */
.map-box {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    min-height: 400px;
}

    .map-box iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

/* نموذج التواصل */
.form-box {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1); /* خلفية شفافة */
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px); /* تأثير الزجاج */
}

/* حقول الإدخال */
.form-group {
    margin-bottom: 15px;
}

.input-row {
    display: flex;
    gap: 15px;
}

.form-control {
    width: 100%;
    background-color: #535c75; /* لون رمادي مزرق للحقول */
    border: none;
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-family: 'Tajawal', sans-serif;
    box-sizing: border-box; /* لضمان عدم خروج الحقل عن حدوده */
}

    .form-control::placeholder {
        color: #ccc;
    }

    .form-control:focus {
        outline: 2px solid #2e7d32;
    }

textarea.form-control {
    height: 150px;
    resize: none;
}

/* الأزرار */
.btn-row {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn-send {
    background-color: #1b5e20; /* أخضر */
    color: white;
}

    .btn-send:hover {
        background-color: #144a18;
    }

.btn-clear {
    background-color: #6c757d; /* رمادي */
    color: white;
}

    .btn-clear:hover {
        background-color: #5a6268;
    }


/* --- شريط المعلومات والأيقونات --- */
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
    gap: 20px;
}

.info-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color:#fff;
    font-size: 14px;
}

.social-icons a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    text-decoration: none;
    transition: 0.3s;
}

    .social-icons a:hover {
        background-color: #1b5e20;
    }

/* --- منطقة الشعار والروابط السفلية --- */
.bottom-area {
    text-align: center;
    padding: 40px 0;
}

.footer-logo img {
    max-width: 300px; /* حجم الشعار */
    margin-bottom: 30px;
    filter: brightness(0) invert(1); /* تحويل الشعار للأبيض إذا كان ملوناً */
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

    .footer-links li {
        position: relative;
        padding: 0 20px;
    }

        /* الخط الفاصل بين الروابط */
        .footer-links li:not(:last-child)::after {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 15px;
            width: 1px;
            background-color: rgba(255,255,255,0.5);
        }

    .footer-links a {
        color: white;
        text-decoration: none;
        font-size: 16px;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            color: #4caf50;
        }

/* --- حقوق النشر --- */
.copyright {
    background-color: #3b415a; /* الشريط الرمادي السفلي */
    text-align: center;
    padding: 15px;
    font-size: 14px;
    color: #ddd;
}

/* --- التجاوب (Mobile Responsive) --- */
@media (max-width: 768px) {
    .top-grid {
        flex-direction: column-reverse; /* الخريطة تحت والنموذج فوق في الموبايل */
    }

    .input-row {
        flex-direction: column;
    }

    .info-bar {
        flex-direction: column;
        text-align: center;
    }

    .info-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

        .footer-links li:not(:last-child)::after {
            display: none; /* إخفاء الفواصل في الموبايل */
        }
}
/* جعل القائمة تفتح عند المرور بالماوس (للشاشات الكبيرة فقط) */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* إزالة المسافة عشان ما تختفي لما تحرك الماوس */
    }
}

/* تنسيقات القائمة المنسدلة */
.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    transition: 0.3s;
    text-align: right; /* محاذاة النص لليمين للعربي */
}

/* محاذاة النص لليسار في حال كان الموقع إنجليزي */
html[lang="en"] .dropdown-item {
    text-align: left;
}

.dropdown-item:hover, .dropdown-item.active {
    background-color: #f8f9fa;
    color: #2e7d32; /* اللون الأخضر تبعك */
    font-weight: bold;
}

/* تعديل سهم القائمة المنسدلة */
.nav-link.dropdown-toggle::after {
    vertical-align: middle;
    margin-right: 5px;
}