/* ملف الألوان المخصصة للأصيل للنقل البري */

:root {
  --primary-color: #282829;
  --gold-color: #dfb719;
  --gold-hover: #c4a517;
  --white: #ffffff;
  --black: #000000;
}

/* تطبيق اللون الأساسي الجديد */
.color-primary-2 {
  --primary: #282829 !important;
}

.color-primary-6 {
  --primary: #282829 !important;
}

/* تطبيق اللون الذهبي على الأزرار */
.tf-btn.btn-primary,
.tf-btn.btn-color-5,
.btn-fill {
  background-color: #dfb719 !important;
  border-color: #dfb719 !important;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.tf-btn.btn-primary:hover,
.tf-btn.btn-color-5:hover,
.btn-fill:hover {
  background-color: #c4a517 !important;
  border-color: #c4a517 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(223, 183, 25, 0.3);
}

/* تطبيق اللون الذهبي على الأزرار الخطية */
.btn-line:hover {
  color: #dfb719 !important;
}

.btn-line:hover::after {
  background-color: #dfb719 !important;
}

/* تطبيق اللون الذهبي على الأزرار المحددة */
.btn-outline-dark:hover,
.btn-outline-light:hover {
  color: #dfb719 !important;
  border-color: #dfb719 !important;
}

/* تطبيق اللون الأساسي الجديد على شريط الإعلانات */
.announcement-bar {
  background-color: #282829 !important;
}

/* تحسين مظهر الأزرار الذهبية */
.btn-quick-add,
.quick-add {
  background-color: #dfb719 !important;
  border-color: #dfb719 !important;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.btn-quick-add:hover,
.quick-add:hover {
  background-color: #c4a517 !important;
  border-color: #c4a517 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(223, 183, 25, 0.3);
}

/* تطبيق اللون الذهبي على أزرار الواتساب */
.whatsapp-button,
.cta-button.whatsapp {
  background-color: #25d366 !important;
  border-color: #25d366 !important;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.whatsapp-button:hover,
.cta-button.whatsapp:hover {
  background-color: #128c7e !important;
  border-color: #128c7e !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* تطبيق اللون الأساسي على العناوين */
h1, h2, h3, h4, h5, h6 {
  color: #282829 !important;
}

/* تطبيق اللون الذهبي على الروابط المهمة */
a:hover {
  color: #dfb719 !important;
}

/* تحسين مظهر الأزرار في الصفحة الرئيسية */
.tf-btn.btn-fill.animate-hover-btn {
  background-color: #dfb719 !important;
  border-color: #dfb719 !important;
  color: #ffffff !important;
}

.tf-btn.btn-fill.animate-hover-btn:hover {
  background-color: #c4a517 !important;
  border-color: #c4a517 !important;
  color: #ffffff !important;
}

/* ===== إعدادات RTL الشاملة ===== */

/* إصلاح مشكلة التقلب في اتجاه النص */
html, body {
  direction: rtl !important;
  text-align: right !important;
}

/* ضمان استقرار السلايدرات */
.swiper {
  direction: rtl !important;
}

.swiper-wrapper {
  direction: rtl !important;
}

/* إصلاح اتجاه الأيقونات في السلايدرات */
.nav-sw .icon {
  transform: scaleX(-1) !important;
}

/* إصلاح اتجاه الأزرار */
.tf-btn .icon {
  margin-left: 0 !important;
  margin-right: 8px !important;
}

/* إصلاح اتجاه القوائم */
ul, ol {
  padding-right: 20px !important;
  padding-left: 0 !important;
}

/* إصلاح اتجاه الجداول */
table {
  direction: rtl !important;
}

/* إصلاح اتجاه النماذج */
input, textarea, select {
  text-align: right !important;
}

/* إصلاح اتجاه البطاقات والمنتجات */
.card-product {
  direction: rtl !important;
}

.card-product-info {
  text-align: right !important;
}

/* إصلاح اتجاه العناوين */
.flat-title {
  direction: rtl !important;
  text-align: right !important;
}

/* إصلاح اتجاه الأيقونات في العناوين */
.flat-title .icon {
  margin-left: 0 !important;
  margin-right: 8px !important;
}

/* إصلاح اتجاه أزرار التنقل */
.nav-sw-arrow {
  direction: rtl !important;
}

/* إصلاح اتجاه التقييمات */
.testimonial-item {
  direction: rtl !important;
  text-align: right !important;
}

/* إصلاح اتجاه النجوم */
.rating {
  direction: rtl !important;
}

/* إصلاح اتجاه القوائم المنسدلة */
.dropdown-menu {
  direction: rtl !important;
  text-align: right !important;
}

/* إصلاح اتجاه النصوص في البطاقات */
.collection-content {
  direction: rtl !important;
  text-align: center !important;
}

/* إصلاح اتجاه الأيقونات في الأزرار */
.btn-fill .icon,
.btn-line .icon {
  margin-left: 0 !important;
  margin-right: 8px !important;
}

/* إصلاح اتجاه النصوص في السلايدر الرئيسي */
.content-left {
  direction: rtl !important;
  text-align: right !important;
}

/* إصلاح اتجاه الأيقونات في السلايدر الرئيسي */
.content-left .icon {
  margin-left: 0 !important;
  margin-right: 8px !important;
}

/* ضمان أن جميع النصوص العربية محاذاة صحيحة */
[lang="ar"], [lang="ar-SA"] {
  direction: rtl !important;
  text-align: right !important;
}

/* ===== تنسيقات قسم المقالات المحسنة ===== */

/* تنسيق بطاقات المقالات */
.tf-blog-item {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
  transition: all 0.4s ease !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

.tf-blog-item:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
}

/* تنسيق صورة المقال - أكبر حجماً */
.tf-blog-item .image {
  position: relative !important;
  overflow: hidden !important;
  height: 280px !important;
  flex-shrink: 0 !important;
}

.tf-blog-item .image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s ease !important;
}

.tf-blog-item:hover .image img {
  transform: scale(1.1) !important;
}

/* تنسيق محتوى المقال - أقل تفاصيل */
.tf-blog-item .content {
  padding: 20px !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

/* تنسيق البيانات الوصفية - مبسطة */
.tf-blog-item .meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 15px !important;
  font-size: 11px !important;
}

.tf-blog-item .category {
  background: linear-gradient(135deg, #dfb719 0%, #c4a517 100%) !important;
  color: #ffffff !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-size: 10px !important;
}

.tf-blog-item .date {
  color: #888 !important;
  font-weight: 500 !important;
  font-size: 11px !important;
}

/* تنسيق عنوان المقال - أكبر وأوضح */
.tf-blog-item .title {
  margin-bottom: 15px !important;
  line-height: 1.3 !important;
}

.tf-blog-item .title a {
  color: #282829 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  transition: color 0.3s ease !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.tf-blog-item .title a:hover {
  color: #dfb719 !important;
}

/* تنسيق ملخص المقال - مع نقاط */
.tf-blog-item .excerpt {
  color: #666 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin-bottom: 20px !important;
  flex-grow: 1 !important;
  position: relative !important;
  padding-left: 15px !important;
}

/* إضافة نقاط قبل النص */
.tf-blog-item .excerpt::before {
  content: "•" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: #dfb719 !important;
  font-size: 16px !important;
  font-weight: bold !important;
}

/* تنسيق رابط "اقرأ المزيد" - أكثر جاذبية */
.tf-blog-item .read-more {
  color: #dfb719 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: all 0.3s ease !important;
  margin-top: auto !important;
  padding: 8px 0 !important;
  border-bottom: 2px solid transparent !important;
}

.tf-blog-item .read-more:hover {
  color: #c4a517 !important;
  transform: translateX(8px) !important;
  border-bottom-color: #dfb719 !important;
}

.tf-blog-item .read-more i {
  margin-left: 8px !important;
  transition: transform 0.3s ease !important;
  font-size: 12px !important;
}

.tf-blog-item .read-more:hover i {
  transform: translateX(5px) !important;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
  .tf-blog-item .image {
    height: 220px !important;
  }
  
  .tf-blog-item .content {
    padding: 15px !important;
  }
  
  .tf-blog-item .title a {
    font-size: 16px !important;
  }
  
  .tf-blog-item .excerpt {
    font-size: 12px !important;
  }
  
  .tf-blog-item .category {
    font-size: 9px !important;
    padding: 4px 8px !important;
  }
}

@media (max-width: 576px) {
  .tf-blog-item .image {
    height: 200px !important;
  }
  
  .tf-blog-item .title a {
    font-size: 15px !important;
  }
}

/* ===== تنسيقات قسم الأسئلة الشائعة ===== */

/* تنسيق الأكورديون الرئيسي */
.faq-accordion {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
}

/* تنسيق عنصر السؤال */
.faq-item {
  border-bottom: 1px solid #f0f0f0 !important;
  transition: all 0.3s ease !important;
}

.faq-item:last-child {
  border-bottom: none !important;
}

.faq-item:hover {
  background-color: #fafafa !important;
}

/* تنسيق رأس السؤال */
.faq-header {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* تنسيق زر السؤال */
.faq-button {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  padding: 25px 30px !important;
  text-align: left !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  color: #282829 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.faq-button:hover {
  background-color: #f8f9fa !important;
  color: #dfb719 !important;
}

.faq-button:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* تنسيق السؤال */
.faq-question {
  flex: 1 !important;
  margin-right: 15px !important;
}

/* تنسيق الأيقونة */
.faq-icon {
  color: #dfb719 !important;
  font-size: 18px !important;
  transition: transform 0.3s ease !important;
  flex-shrink: 0 !important;
}

.faq-button[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg) !important;
}

/* تنسيق محتوى الإجابة */
.faq-body {
  padding: 0 30px 25px 30px !important;
  color: #666 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.faq-body p {
  margin-bottom: 15px !important;
}

.faq-body p:last-child {
  margin-bottom: 0 !important;
}

/* تنسيق القوائم في الإجابات */
.faq-body ul,
.faq-body ol {
  margin: 15px 0 !important;
  padding-left: 20px !important;
}

.faq-body li {
  margin-bottom: 8px !important;
  color: #555 !important;
}

.faq-body strong {
  color: #282829 !important;
  font-weight: 600 !important;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
  .faq-button {
    padding: 20px 20px !important;
    font-size: 15px !important;
  }
  
  .faq-body {
    padding: 0 20px 20px 20px !important;
    font-size: 14px !important;
  }
  
  .faq-icon {
    font-size: 16px !important;
  }
}

@media (max-width: 576px) {
  .faq-button {
    padding: 18px 15px !important;
    font-size: 14px !important;
  }
  
  .faq-body {
    padding: 0 15px 18px 15px !important;
    font-size: 13px !important;
  }
  
  .faq-question {
    margin-right: 10px !important;
  }
}

/* ===== تنسيقات المقالات المميزة - تصميم نصي بسيط ===== */

/* تنسيق قائمة المقالات النصية */
.featured-articles-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 40px !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

/* تنسيق عنصر المقال النصي */
.featured-article-text-item {
  position: relative !important;
  padding: 30px !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border-left: 4px solid #dfb719 !important;
  transition: all 0.3s ease !important;
}

.featured-article-text-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px rgba(223, 183, 25, 0.15) !important;
  border-left-width: 6px !important;
}

/* تنسيق عنوان المقال */
.featured-article-text-item .article-title {
  margin-bottom: 20px !important;
  line-height: 1.3 !important;
}

.featured-article-text-item .article-title a {
  color: #282829 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  transition: color 0.3s ease !important;
  display: block !important;
}

.featured-article-text-item .article-title a:hover {
  color: #dfb719 !important;
}

/* تنسيق ملخص المقال */
.featured-article-text-item .article-excerpt {
  color: #666 !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  text-align: justify !important;
  margin-bottom: 0 !important;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
  .featured-articles-text {
    gap: 30px !important;
  }
  
  .featured-article-text-item {
    padding: 25px !important;
  }
  
  .featured-article-text-item .article-title a {
    font-size: 22px !important;
  }
  
  .featured-article-text-item .article-excerpt {
    font-size: 15px !important;
  }
}

@media (max-width: 576px) {
  .featured-articles-text {
    gap: 25px !important;
  }
  
  .featured-article-text-item {
    padding: 20px !important;
  }
  
  .featured-article-text-item .article-title a {
    font-size: 20px !important;
  }
  
  .featured-article-text-item .article-excerpt {
    font-size: 14px !important;
  }
}
