/* Arabic version specific styles */

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #22c55e;
  color: white;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-directions:hover { background-color: #16a34a; color: white; }
.btn-directions i { font-size: 1.1rem; }
body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--light-bg);
  margin: 0;
  padding: 0;
  text-align: right;
  direction: rtl;
}

/* Adjust checkmark for RTL */
.feature-list li {
  padding-left: 0;
  padding-right: 2rem;
}

/* Adjust service section styles for RTL */
section.services-section h2::after {
  left: auto;
  right: 0;
}

.service-title::after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.section-header h2 {
  text-align: right;
}

.service-header-icon {
  margin-left: 0;
  margin-right: 0.5rem;
}

.section-subtitle {
  padding-left: 0;
  padding-right: 1rem;
  border-left: none;
  border-right: 4px solid var(--primary-color);
}

.feature-list li:before {
  left: auto;
  right: 0;
}

/* Adjust doctor cards for RTL */
.doctor-card {
  text-align: right;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
  width: 100%;
}

.doctor-card img {
  float: none;
  margin-right: 0;
  margin-left: 1rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f0f0f0;
}

.doctor-card .doctor-info {
  flex-grow: 1;
}

/* Mobile specific adjustments for doctor cards */
@media (max-width: 576px) {
  .doctor-card {
    align-items: flex-start;
  }
  
  .doctor-card img {
    width: 70px;
    height: 70px;
  }
}

/* Adjust the language switcher button position */
.lang-switch-btn {
  left: 20px;
}

/* Adjust modal close button in RTL */
.appointment-modal .btn-close {
  margin-left: 0;
  margin-right: .5rem;
}

/* Extra small screen adjustments for Arabic */
@media (max-width: 400px) {
  .service-title {
    font-size: 1.1rem;
  }
  
  .service-text {
    font-size: 0.85rem;
  }
  
  .section-subtitle {
    padding-right: 0.5rem;
  }
  
  .hero-section h1 {
    font-size: 1.5rem;
  }
  
  .hero-section .hero-subheading {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.3rem;
  }
  
  .doctor-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .doctor-card img {
    margin-left: 0;
    margin-bottom: 0.75rem;
  }
  
  .service-card {
    text-align: center;
  }
}

/* Specific adjustments for 738px width devices in Arabic */
@media (max-width: 738px) and (min-width: 401px) {
  .service-card {
    text-align: center;
  }
  
  .service-title::after {
    right: 50%;
  }
  
  .phone-number-highlight a {
    justify-content: center;
  }
  
  .phone-number-highlight i {
    margin-left: 0.5rem;
  }
}
