/* ==========================================================
   Tarek Alabd — Mentor Site — Arabic RTL Overrides
   ========================================================== */

/* ── Arabic Font (Cairo) ─────────────────────────────────── */
body,
h1, h2, h3, h4, h5, h6,
.navmenu a,
.sitename,
.btn-getstarted,
.btn-get-started,
.footer-links h4,
p, li, span, a, label, input, textarea, select, button {
  font-family: 'Cairo', 'Open Sans', sans-serif !important;
}

/* ── Hero Gradient Overlay ───────────────────────────────── */
.hero:before {
  background: linear-gradient(
    135deg,
    rgba(24, 27, 53, 0.88) 0%,
    rgba(24, 27, 53, 0.65) 55%,
    rgba(82, 168, 130, 0.30) 100%
  );
}

/* ── Language Switch ─────────────────────────────────────── */
.lang-switch {
  font-family: 'Cairo', sans-serif !important;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color);
  border: 1.5px solid var(--accent-color);
  padding: 4px 12px;
  border-radius: 4px;
  transition: 0.3s;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

/* ── RTL Arrow Flip ──────────────────────────────────────── */
[dir="rtl"] .read-more i,
[dir="rtl"] .more-btn i,
[dir="rtl"] .bi-arrow-right {
  transform: scaleX(-1);
  display: inline-block;
}

/* ── Header RTL tweaks ───────────────────────────────────── */
[dir="rtl"] #header .logo {
  margin-left: auto;
  margin-right: 0;
}
[dir="rtl"] #header .btn-getstarted {
  margin-right: 16px;
  margin-left: 0;
}
[dir="rtl"] .lang-switch {
  margin-right: 12px;
  margin-left: 0;
}

/* ── Call-To-Action Section ──────────────────────────────── */
.call-to-action {
  padding: 80px 0;
  background: var(--heading-color);
}
.call-to-action h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}
.call-to-action p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  font-size: 16px;
}
.call-to-action .cta-btn {
  font-family: 'Cairo', sans-serif !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  transition: 0.4s;
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 2px solid var(--accent-color);
  text-decoration: none;
  margin: 5px;
}
.call-to-action .cta-btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.call-to-action .cta-btn.outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.call-to-action .cta-btn.outline:hover {
  background: #fff;
  color: var(--heading-color);
  border-color: #fff;
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials .testimonial-item {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.testimonials .testimonial-item .testimonial-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--accent-color);
}
.testimonials .testimonial-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.testimonials .testimonial-item h4 { font-size: 13px; color: #aaa; margin-bottom: 8px; font-weight: 400; }
.testimonials .testimonial-item .stars i { color: #ffc107; font-size: 13px; }
.testimonials .testimonial-item p { font-size: 15px; color: #666; margin-top: 10px; line-height: 1.7; flex: 1; }
.testimonials .bi-quote { font-size: 18px; color: var(--accent-color); opacity: 0.5; }
.testimonials .yt-link-wrap { margin-top: 40px; position: relative; z-index: 1; }
.testimonials .yt-link-wrap .reviews-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--heading-color); opacity: 0.5; margin-bottom: 14px; font-weight: 700; }
.testimonials .yt-link-wrap .btn { font-weight: 700; padding: 10px 28px; transition: 0.3s; }
.testimonials .yt-link-wrap .btn-yt { border-color: var(--accent-color); color: var(--accent-color); }
.testimonials .yt-link-wrap .btn-yt:hover { background: var(--accent-color); color: #fff; }
.testimonials .yt-link-wrap .btn-udemy { border: 2px solid var(--secondary-color); color: var(--secondary-color); background: transparent; }
.testimonials .yt-link-wrap .btn-udemy:hover { background: var(--secondary-color); color: #fff; }

/* ── Pricing Enhancements ────────────────────────────────── */
.pricing .original-price { text-decoration: line-through; color: #bbb; font-size: 14px; display: block; }
.pricing .currency-note { font-size: 12px; color: #999; margin-top: 2px; margin-bottom: 18px; }
.pricing .offer-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.pricing .offer-badge.limited    { background: #ff6b35; color: #fff; }
.pricing .offer-badge.popular    { background: var(--accent-color); color: #fff; }
.pricing .offer-badge.best-value { background: #3E7FA4; color: #fff; }

/* ── All-Inclusive ───────────────────────────────────────── */
.all-inclusive { background: #EEF2EF; padding: 60px 0; }
.all-inclusive ul.feature-list { list-style: none; padding: 0; margin: 0; }
.all-inclusive ul.feature-list li {
  padding: 9px 0;
  border-bottom: 1px solid #eef0ee;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  flex-direction: row;
  text-align: right;
}
.all-inclusive ul.feature-list li i { color: var(--accent-color); font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.all-inclusive .exclusive-tag { background: var(--accent-color); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 700; margin-right: 8px; vertical-align: middle; }

/* ── Payment Info ────────────────────────────────────────── */
.payment-info .payment-card { background: var(--surface-color); border: 1px solid #e8ede8; border-radius: 12px; padding: 28px 20px; text-align: center; height: 100%; transition: 0.3s; }
.payment-info .payment-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.08); border-color: var(--accent-color); }
.payment-info .payment-card i.pay-icon { font-size: 34px; color: var(--accent-color); margin-bottom: 12px; display: block; }
.payment-info .payment-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.payment-info .payment-card p { font-size: 14px; color: #777; margin-bottom: 6px; }
.payment-info .payment-card .account-id { font-family: 'Courier New', monospace; background: #EEF2EF; padding: 5px 12px; border-radius: 5px; font-size: 14px; font-weight: 700; display: inline-block; margin-top: 4px; }
.payment-info .payment-card.todo-card { border-style: dashed; opacity: 0.65; }
.payment-info .payment-card a.account-id { color: var(--accent-color); text-decoration: none; }
.payment-info .payment-card a.account-id:hover { text-decoration: underline; }
.copy-wrapper { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.copy-btn { background: none; border: 1px solid var(--accent-color); color: var(--accent-color); border-radius: 6px; padding: 3px 7px; font-size: 13px; cursor: pointer; transition: 0.2s; line-height: 1; }
.copy-btn:hover, .copy-btn.copied { background: var(--accent-color); color: #fff; }

/* ── WhatsApp CTA ────────────────────────────────────────── */
.whatsapp-cta { background: linear-gradient(135deg, #e8f5e0, #d4edda); border: 2px solid #25d366; border-radius: 16px; padding: 40px 30px; text-align: center; }
.whatsapp-cta > i { font-size: 44px; color: #25d366; margin-bottom: 14px; display: block; }
.whatsapp-cta h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.whatsapp-cta p { color: #555; font-size: 15px; margin-bottom: 20px; }
.btn-whatsapp { display: inline-block; background: #25d366; color: #fff; font-weight: 600; font-size: 15px; padding: 12px 28px; border-radius: 50px; text-decoration: none; transition: background 0.3s; }
.btn-whatsapp:hover { background: #1da851; color: #fff; }

/* ── Booking Placeholder ─────────────────────────────────── */
.booking-placeholder { background: linear-gradient(135deg, #EEF2EF, #dde8e2); border: 2px dashed var(--accent-color); border-radius: 12px; padding: 40px 30px; text-align: center; }
.booking-placeholder i { font-size: 40px; color: var(--accent-color); margin-bottom: 15px; display: block; }
.booking-placeholder h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.booking-placeholder p { color: #888; font-size: 14px; }

/* ── Achievements ────────────────────────────────────────── */
.achievements-section .achievement-item { text-align: center; padding: 20px 10px; }
.achievements-section .achievement-item i { font-size: 38px; color: var(--accent-color); margin-bottom: 12px; display: block; }
.achievements-section .achievement-item h4 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.achievements-section .achievement-item p { color: #777; font-size: 14px; }

/* ── Services Page ───────────────────────────────────────── */
.service-block { padding: 60px 0; }
.service-block + .service-block { border-top: 1px solid #eee; }
.service-block .service-img { border-radius: 12px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.1); }
.service-block .topic-item { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 15px; flex-direction: row; text-align: right; }
.service-block .topic-item i { color: var(--accent-color); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.service-block .service-meta { background: #EEF2EF; border-radius: 10px; padding: 20px 24px; margin-bottom: 20px; }
.service-block .service-meta .meta-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: #555; flex-direction: row; text-align: right; }
.service-block .service-meta .meta-row strong { min-width: 110px; color: var(--heading-color); }

/* ── Testimonials RTL ────────────────────────────────────── */
/* Flip image from left overhang to right overhang */
.testimonials .testimonial-wrap {
  padding-left: 0;
  padding-right: 50px;
}
.testimonials .testimonial-item {
  padding: 30px 60px 30px 30px;
}
.testimonials .testimonial-item .testimonial-img {
  left: auto;
  right: -45px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer-about a { text-decoration: none; }
.footer-contact a { color: var(--accent-color); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

/* ── Icon-box RTL text alignment ─────────────────────────── */
[dir="rtl"] .icon-box h4,
[dir="rtl"] .icon-box p { text-align: center; }

/* ── Features items RTL ─────────────────────────────────── */
[dir="rtl"] .features .features-item i {
  padding-right: 0;
  padding-left: 10px;
}

/* ── Services trainer name/image spacing RTL ─────────────── */
[dir="rtl"] .courses .trainer .trainer-profile .trainer-link {
  padding-left: 0;
  padding-right: 10px;
}

/* ── About bullets RTL ───────────────────────────────────── */
[dir="rtl"] .content ul li {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .content ul li i {
  margin-left: 0;
  margin-right: 0;
  flex-shrink: 0;
}
