/* Arabic typography + targeted RTL fixes (load after templatemo-woox-travel.css) */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap");

html[dir="rtl"] body,
html[dir="rtl"] html {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

html[dir="rtl"] .header-area .main-nav .nav li a.active::after {
  left: auto;
  right: 15px;
}

html[dir="rtl"] .header-area .main-nav .nav li.has-sub {
  padding-right: 0;
  padding-left: 15px;
}

html[dir="rtl"] .header-area .main-nav .nav li.has-sub ul.sub-menu li:last-child a:hover,
html[dir="rtl"] .background-header .main-nav .nav li.has-sub ul.sub-menu li:last-child a:hover {
  padding-left: 0 !important;
  padding-right: 25px !important;
}

html[dir="rtl"] #section-1 .more-info i {
  float: right;
  margin-right: 0;
  margin-left: 20px;
}

html[dir="rtl"] #section-1 .more-info h4 {
  text-align: right;
}

html[dir="rtl"] #section-1 .main-button {
  text-align: left;
}

html[dir="rtl"] .text-button a i {
  margin-left: 0;
  margin-right: 5px;
}

html[dir="rtl"] .text-button a:hover i {
  margin-left: 0;
  margin-right: 10px;
}

html[dir="rtl"] .visit-country .item .right-content ul li i {
  margin-right: 0;
  margin-left: 5px;
}

/* Progress bar fill animation in RTL */
@keyframes progressBarFillRtl {
  from {
    margin-right: -100%;
    margin-left: 0;
  }
  to {
    margin-right: 0;
    margin-left: 0;
  }
}

html[dir="rtl"] #section-1 .content-slider #banner1:checked ~ nav label:nth-of-type(1) .progressbar-fill,
html[dir="rtl"] #section-1 .content-slider #banner2:checked ~ nav label:nth-of-type(2) .progressbar-fill,
html[dir="rtl"] #section-1 .content-slider #banner3:checked ~ nav label:nth-of-type(3) .progressbar-fill,
html[dir="rtl"] #section-1 .content-slider #banner4:checked ~ nav label:nth-of-type(4) .progressbar-fill {
  animation-name: progressBarFillRtl;
}

html[dir="rtl"] #section-1 .content-slider nav .controls label .progressbar .progressbar-fill {
  margin-left: 0;
  margin-right: -100%;
}

.company-about {
  margin-top: 120px;
}

.company-about .about-card {
  background: #fff;
  border-radius: 23px;
  padding: 40px 45px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

.company-fields {
  margin: 0;
  padding-right: 1.25rem;
  color: #afafaf;
  font-size: 15px;
  line-height: 1.9;
}

.company-fields li {
  margin-bottom: 6px;
}

/* Text logo in header (replaces template image) */
.header-area .main-nav .logo.logo-text-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.2;
  text-decoration: none !important;
  flex-basis: 30%;
  min-height: 50px;
  margin-top: 10px;
}

.header-area .main-nav .logo.logo-text-brand .logo-text-main {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.header-area .main-nav .logo.logo-text-brand .logo-text-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 767px) {
  .header-area .main-nav .logo.logo-text-brand .logo-text-main {
    font-size: 14px;
  }
  .header-area .main-nav .logo.logo-text-brand .logo-text-sub {
    font-size: 11px;
  }
}

/* visit-country (index): RTL layout — إزالة تداخل زر «طلب خدمة» وتحسين تباين القوائم */
html[dir="rtl"] .visit-country .side-bar-map {
  margin-left: 0;
  margin-right: 30px;
}

@media (max-width: 991px) {
  html[dir="rtl"] .visit-country .side-bar-map {
    margin-right: 0;
    margin-top: 40px;
  }
}

/* صف المقدمة + التواصل (صفحة الرئيسية) */
html[dir="rtl"] .visit-country-intro-row {
  margin-bottom: 2rem;
}

html[dir="rtl"] .visit-country-intro-row .visit-intro-panel,
html[dir="rtl"] .visit-country-intro-row .visit-contact-panel {
  padding: 26px 28px;
  border-radius: 23px;
  background: #fafafa;
  border: 1px solid #ececec;
  text-align: right;
  margin-bottom: 0;
}

html[dir="rtl"] .visit-country-intro-row .section-heading h2 {
  margin-bottom: 14px;
}

html[dir="rtl"] .visit-country-intro-row .section-heading p {
  text-align: right;
}

html[dir="rtl"] .visit-contact-list li {
  display: grid;
  grid-template-columns: minmax(5rem, 6.5rem) minmax(0, 1fr);
  gap: 6px 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
  align-items: baseline;
  text-align: right;
}

html[dir="rtl"] .visit-contact-list li:last-child {
  border-bottom: none;
}

html[dir="rtl"] .visit-contact-label {
  font-weight: 700;
  color: #2a2a2a;
  font-size: 14px;
}

html[dir="rtl"] .visit-contact-value {
  color: #444;
  font-size: 15px;
  line-height: 1.6;
}

html[dir="rtl"] .visit-map-caption {
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  color: #2a2a2a;
}

html[dir="rtl"] .visit-country-body-row {
  align-items: flex-start;
}

html[dir="rtl"] .visit-country .item .row {
  align-items: flex-start;
}

html[dir="rtl"] .visit-country .item .right-content {
  position: relative;
  padding-top: 0;
}

html[dir="rtl"] .visit-country .item .right-content .main-button {
  position: static;
  margin-top: 10px;
  margin-bottom: 6px;
}

html[dir="rtl"] .visit-country .item .right-content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: flex-start;
}

html[dir="rtl"] .visit-country .item .right-content ul li {
  display: block;
  width: auto !important;
  flex: 1 1 28%;
  min-width: 140px;
  color: #3a3a3a;
  font-size: 14px;
  font-weight: 500;
  text-align: right !important;
}

html[dir="rtl"] .visit-country .item .right-content ul li i {
  color: #22b3c1;
  margin-right: 0;
  margin-left: 6px;
}

html[dir="rtl"] .visit-country .item .right-content span {
  color: #6a6a6a;
}

html[dir="rtl"] .visit-country .item .image {
  overflow: hidden;
  border-radius: 23px;
}
