/*--------------------------------------------------
| 🎨 المتغيرات العامة - تم تحديث ألوان النص
--------------------------------------------------*/
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --site-name-color: #0d6efd; /* لون ذهبي جديد لـ site_name */
    --hero-text-color: #0d6efd; /* لون النص الأبيض لباقي النصوص */
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
    --font-main: 'Cairo', sans-serif;
}

/*--------------------------------------------------
| 🦸‍♂️ قسم البطل - تم تحديث ألوان النصوص
--------------------------------------------------*/
.hero-section .site-name-title {
    color: var(--site-name-color) !important; /* لون مخصص لـ site_name */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* ظل للنص لتحسين القراءة */
    font-weight: 800; /* زيادة سمك الخط */
    letter-spacing: -0.5px; /* تقليل المسافة بين الحروف */
    transition: all 0.3s ease; /* تأثير انتقالي عند التحويم */
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-section .site-name-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

.rtl .hero-section .site-name-title::after {
    left: auto;
    right: 0;
}

/* تأثير عند التحويم على العنوان */
.hero-section .site-name-title:hover {
    color: var(--accent-color) !important; /* يتغير إلى لون ثانوي عند التحويم */
    text-shadow: 0 0 10px rgba(13, 110, 253, 0.3); /* تأثير توهج */
}

/* تدرج لوني بديل للنص (اختياري) */
.hero-section .gradient-text {
    background: linear-gradient(45deg, #177fca, #61aee5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* بقية النص في قسم البطل */
.hero-section .hero-text {
    color: var(--hero-text-color) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); /* ظل أبيض لتحسين التباين */
    font-size: 1.25rem;
    font-weight: 600; /* زيادة سمك الخط لتحسين القراءة */
    line-height: 1.7;
    position: relative;
    padding-left: 1.5rem;
    max-width: 600px;
}

.hero-section .hero-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

.rtl .hero-section .hero-text {
    padding-left: 0;
    padding-right: 1.5rem;
}

.rtl .hero-section .hero-text::before {
    left: auto;
    right: 0;
}

/* تحسينات لأزرار قسم البطل */
.hero-section .btn-light {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(13, 110, 253, 0.2) !important;
    color: var(--site-name-color) !important;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    font-weight: 600;
}

.hero-section .btn-light:hover {
    background-color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: var(--secondary-color) !important;
}

/*--------------------------------------------------
| 📄 إعدادات أساسية للجسم والنصوص - بدون تغيير
--------------------------------------------------*/
body {
    font-family: var(--font-main);
    background-color: var(--light-color);
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
    scroll-behavior: smooth;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
}

/*--------------------------------------------------
| 📄 إعدادات أساسية للجسم والنصوص - بدون تغيير
--------------------------------------------------*/
body {
    font-family: var(--font-main);
    background-color: var(--light-color);
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
    scroll-behavior: smooth;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
}

/*--------------------------------------------------
| 🔰 الشعار وشريط التنقل - بدون تغيير
--------------------------------------------------*/
.logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.header {
    z-index: 1000;
    transition: var(--transition);
    background-color: #fff;
    box-shadow: var(--box-shadow);
}

/*--------------------------------------------------
| 🔗 الروابط داخل القائمة - بدون تغيير
--------------------------------------------------*/
.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 70%;
}

/*--------------------------------------------------
| 🎯 الأزرار - بدون تغيير
--------------------------------------------------*/
.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/*--------------------------------------------------
| 🧭 دعم RTL (العربية) - بدون تغيير
--------------------------------------------------*/
.rtl .dropdown-menu {
    text-align: right;
}

.rtl .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

.rtl .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

.rtl .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

.rtl .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/*--------------------------------------------------
| ✨ دعم الحركات (Animate.css) - بدون تغيير
--------------------------------------------------*/
.animate__animated {
    animation-duration: 0.5s;
}
/* تحسينات شريط التنقل - بدون تغيير */
.navbar-nav .nav-link {
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link i {
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.2);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* تحسينات القوائم المنسدلة - بدون تغيير */
.dropdown-menu {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    border: none;
    margin-top: 5px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.dropdown-item:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

/* تحسينات رابط لوحة الإدارة - بدون تغيير */
.admin-panel-link {
    background-color: rgba(67, 97, 238, 0.1);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.admin-panel-link:hover, .admin-panel-link.active {
    background-color: rgba(67, 97, 238, 0.2);
    color: var(--primary-color);
}

/* تحسينات نموذج البحث - بدون تغيير */
.input-group .form-control-sm {
    border-radius: 20px 0 0 20px;
    border-right: none;
    padding-left: 15px;
}

.input-group .btn {
    border-radius: 0 20px 20px 0;
    padding: 0.25rem 0.75rem;
}


/* صورة قصتنا البديلة - بدون تغيير */
.about-image {
  background-color: #f0f0f0;
}

/* صور الفريق البديلة - بدون تغيير */
.team-member .card-img-top {
  background-color: #e0e0e0;
}

/* في ملف CSS - بدون تغيير */
.message-replied {
    background-color: #f8fff8;
    border-left: 3px solid #28a745;
}

.message-pending {
    background-color: #fff8f8;
    border-left: 3px solid #dc3545;
}
/* Custom CSS for Service Detail Image */
.service-detail-image {
    max-height: 400px; /* تحديد أقصى ارتفاع للصورة */
    object-fit: cover; /* لضمان تغطية الصورة للمساحة المتاحة دون تشويه، مع قص الأجزاء الزائدة إذا لزم الأمر */
    width: 100%; /* تضمن أن الصورة تأخذ عرض 100% من العنصر الأب */
}

/* لجعل الصورة أصغر على الشاشات الأصغر، يمكنك استخدام Media Queries */
@media (max-width: 768px) {
    .service-detail-image {
        max-height: 300px; /* ارتفاع أقل للشاشات الأصغر */
    }
}

@media (max-width: 576px) {
    .service-detail-image {
        max-height: 250px; /* ارتفاع أقل للهواتف */
    }
}
/* Custom CSS for Service Detail Image */
.service-detail-image {
    max-height: 400px; /* تحديد أقصى ارتفاع للصورة */
    object-fit: cover; /* لضمان تغطية الصورة للمساحة المتاحة دون تشويه، مع قص الأجزاء الزائدة إذا لزم الأمر */
    width: 100%; /* تضمن أن الصورة تأخذ عرض 100% من العنصر الأب */
}

/* لجعل الصورة أصغر على الشاشات الأصغر، يمكنك استخدام Media Queries */
@media (max-width: 768px) {
    .service-detail-image {
        max-height: 300px; /* ارتفاع أقل للشاشات الأصغر */
    }
}

@media (max-width: 576px) {
    .service-detail-image {
        max-height: 250px; /* ارتفاع أقل للهواتف */
    }
}