/* Header Top V3 Styles */
.container {
    /* Sets the maximum width the content area can occupy */
    max-width: 1400px !important; /* Adjust this value (e.g., 960px, 1400px) to your preferred box width */
    
    /* Centers the container horizontally on the page */
    margin-left: auto;
    margin-right: auto;
    
    /* Optional: Adds some padding inside the container so content doesn't touch the edges */
    padding-left: 60px;
    padding-right: 60px;
}
.input-field-new {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 60px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  min-height: 77px;
  max-height: 77px;
  height: 77px;
  padding: 0px 15px 0px 15px;
}
.date-time-input {
  display: flex;
  gap: 0;
  position: relative;
  width: 100%;
  height: 50px;
  direction: rtl !important;
}
.form-control-new {
  width: 100%;
  padding: 15px 15px!important;
  border: none;
  border-radius: 0;
  font-size: 14px;
  background: transparent;
  color: #000;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: none;
  backdrop-filter: none;
  min-height: 50px!important;
  max-height: 80px!important;
  height: auto!important;
  box-sizing: border-box;
  resize: none;
  line-height: 1.4;
  text-align: right !important;
  direction: rtl !important;
}
.swiper-rtl .swiper-button-prev {
  left: var(--swiper-navigation-sides-offset,0px) !important;
  right: auto !important;
}
.swiper-rtl .swiper-button-next {
  right: var(--swiper-navigation-sides-offset,10px) !important;
  left: auto !important;
}
.swiper-button-next, .swiper-button-prev {
  width: 50px;
  height: 50px;
  background: #E30000;
  border-radius: 50% !important;
  color: #ffffff !important;
  font-size: 0;
  font-weight: bold;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3)!important;
  border: none;
  transition: none;
  position: absolute;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1/1;
  min-width: 50px;
  min-height: 50px;
  z-index: 1000;
}
.header-top-v3 {
  background: #2c2c2c;
  color: #ffffff;
  height: 80px;
  padding: 0;
  border-radius: 40px 40px 0 0; /* إزالة الزوايا المدورة من الأسفل */
  margin: 10px 35px 0 35px; /* إزالة margin السفلي */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 998; /* التوب هيدر خلف الهيدر الرئيسي */
  display: flex;
  align-items: center;
  direction: ltr !important; /* Force LTR layout */
}

.header-top-v3 .container-fluid {
  padding: 0 20px;
}

.header-top-v3 .row {
  margin: 0;
}

.header-top-v3 .col-lg-8,
.header-top-v3 .col-lg-4 {
  padding: 0;
}

/* Contact Info Styles - Left Side */
.top-contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  min-height: 30px;
  justify-content: flex-start !important; /* معلومات الاتصال على أقصى اليسار */
  margin-top: -30px; /* رفع البيانات إلى حدود الخط الأحمر */
  width: 100%;
  direction: ltr !important; /* Force LTR layout for contact info */
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  white-space: nowrap;
}

.contact-item i {
  font-size: 12px;
  color: #ffffff;
  opacity: 0.8;
}

.contact-item a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-item a:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* Social Icons Styles - Right Side */
.top-social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end !important; /* أيقونات السوشيال على أقصى اليمين */
  margin-top: -30px; /* رفع الأيقونات إلى حدود الخط الأحمر */
  width: 100%;
  direction: ltr !important; /* Force LTR layout for social links */
}

.social-icons {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
  align-items: center;
}

.social-icons li {
  margin: 0;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: transparent;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.social-icons i {
  font-size: 14px;
}

/* Header Main Section - يجب أن يكون خلف التوب هيدر */
.header-main-section {
  position: relative;
  z-index: 999; /* أقل من التوب هيدر */
  margin-top: -10px; /* سحب الهيدر الرئيسي لأعلى */
  background: transparent; /* خلفية شفافة للمستطيل */
  border-radius: 0 0 8px 8px; /* زوايا مدورة من الأسفل فقط */
  box-shadow: none;
  margin-left: 15px;
  margin-right: 15px;
}

/* Responsive Design */
@media (max-width: 991px) {
  .header-top-v3 {
    margin: 5px 10px 0 10px;
    height: 80px;
    padding: 0;
  }
  
  .header-main-section {
    margin-left: 10px;
    margin-right: 10px;
    background: transparent;
    box-shadow: none;
  }
  
  .top-contact-info {
    gap: 15px;
    margin-top: -25px; /* رفع إلى حدود الخط الأحمر للشاشات المتوسطة */
    justify-content: flex-start !important; /* معلومات الاتصال على أقصى اليسار */
  }
  
  .top-social-links {
    margin-top: -25px; /* رفع إلى حدود الخط الأحمر للشاشات المتوسطة */
    justify-content: flex-end !important; /* أيقونات السوشيال على أقصى اليمين */
  }
  
  .contact-item {
    font-size: 13px;
  }
  
  /* Override RTL/LTR for mobile - only for very small screens */
  @media (max-width: 576px) {
    [dir="rtl"] .top-contact-info {
      justify-content: flex-start !important; /* معلومات الاتصال على أقصى اليسار */
      text-align: left;
      align-items: center;
    }
    
    [dir="ltr"] .top-contact-info {
      justify-content: flex-start !important; /* معلومات الاتصال على أقصى اليسار */
      text-align: left;
      align-items: center;
    }
    
    [dir="rtl"] .top-social-links {
      justify-content: flex-end !important; /* أيقونات السوشيال على أقصى اليمين */
      align-items: center;
    }
    
    [dir="ltr"] .top-social-links {
      justify-content: flex-end !important; /* أيقونات السوشيال على أقصى اليمين */
      align-items: center;
    }
  }


@media (max-width: 767px) {
  .header-top-v3 {
    margin: 5px 5px 0 5px;
    height: 80px;
    padding: 0;
  }
  
  .header-main-section {
    margin-left: 5px;
    margin-right: 5px;
    background: transparent;
    box-shadow: none;
  }
  
  .top-contact-info {
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin-top: -20px; /* رفع إلى حدود الخط الأحمر للشاشات الصغيرة */
    justify-content: flex-start !important; /* معلومات الاتصال على أقصى اليسار */
  }
  
  .top-social-links {
    margin-top: -20px; /* رفع إلى حدود الخط الأحمر للشاشات الصغيرة */
    justify-content: flex-end !important; /* أيقونات السوشيال على أقصى اليمين */
  }
  
  .social-icons {
    gap: 12px;
  }
  
  .contact-item {
    font-size: 12px;
  }
}

/* RTL Support - للغة العربية */
[dir="rtl"] .top-contact-info {
  justify-content: flex-start !important; /* معلومات الاتصال على أقصى اليسار */
  text-align: left;
  align-items: center;
}

[dir="rtl"] .top-social-links {
  justify-content: flex-end !important; /* أيقونات السوشيال على أقصى اليمين */
  align-items: center;
}

[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .contact-item i {
  margin-left: 5px;
  margin-right: 0;
}

/* LTR Support - للغة الإنجليزية */
[dir="ltr"] .top-contact-info {
  justify-content: flex-start !important; /* معلومات الاتصال على أقصى اليسار */
  text-align: left;
  align-items: center;
}

[dir="ltr"] .top-social-links {
  justify-content: flex-end !important; /* أيقونات السوشيال على أقصى اليمين */
  align-items: center;
}

[dir="ltr"] .contact-item {
  flex-direction: row;
}

[dir="ltr"] .contact-item i {
  margin-right: 5px;
  margin-left: 0;
}

/* Override RTL direction for header-top sections - Force LTR Layout */
html[dir="rtl"] .header-top-v3,
body[dir="rtl"] .header-top-v3,
html[lang="ar"] .header-top-v3,
body[lang="ar"] .header-top-v3 {
  direction: ltr !important;
}

html[dir="rtl"] .top-contact-info,
body[dir="rtl"] .top-contact-info,
html[lang="ar"] .top-contact-info,
body[lang="ar"] .top-contact-info {
  direction: ltr !important;
  justify-content: flex-start !important;
  flex-direction: row !important;
}

html[dir="rtl"] .top-social-links,
body[dir="rtl"] .top-social-links,
html[lang="ar"] .top-social-links,
body[lang="ar"] .top-social-links {
  direction: ltr !important;
  justify-content: flex-end !important;
}

html[dir="rtl"] .contact-item,
body[dir="rtl"] .contact-item,
html[lang="ar"] .contact-item,
body[lang="ar"] .contact-item {
  flex-direction: row !important;
  direction: ltr !important;
}

html[dir="rtl"] .contact-item i,
body[dir="rtl"] .contact-item i,
html[lang="ar"] .contact-item i,
body[lang="ar"] .contact-item i {
  margin-right: 5px !important;
  margin-left: 0 !important;
} 