/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 16px;
}

.lang-switcher .lang-btn {
  background: transparent;
  border: 0;
  color: var(--contrast-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 4px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.lang-switcher .lang-btn.active,
.lang-switcher .lang-btn:hover {
  opacity: 1;
}

.lang-switcher .lang-sep {
  opacity: 0.55;
  font-size: 12px;
}

/* RTL layout (content stays untranslated until texts are provided) */
[dir="rtl"] {
  --default-font: "Cairo", "Roboto", system-ui, sans-serif;
  --heading-font: "Cairo", "Raleway", sans-serif;
  --nav-font: "Cairo", "Poppins", sans-serif;
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .header .logo img {
  margin-right: 0;
  margin-left: 0;
}

[dir="rtl"] .header .cta-btn,
[dir="rtl"] .header .cta-btn:focus {
  margin: 0 30px 0 5px;
}

@media (min-width: 1200px) {
  [dir="rtl"] .navmenu a i,
  [dir="rtl"] .navmenu a:focus i {
    margin-left: 0;
    margin-right: 5px;
  }

  [dir="rtl"] .navmenu li:last-child a {
    padding-right: 15px;
    padding-left: 0;
  }

  [dir="rtl"] .navmenu .dropdown ul {
    left: auto;
    right: 14px;
  }

  [dir="rtl"] .navmenu .dropdown .dropdown ul,
  [dir="rtl"] .navmenu .dropdown .dropdown:hover > ul {
    left: auto;
    right: -90%;
  }

  [dir="rtl"] .navmenu .dropdown .dropdown:hover > ul {
    right: -100%;
  }
}

@media (max-width: 1199px) {
  [dir="rtl"] .mobile-nav-toggle {
    margin-right: 0;
    margin-left: 10px;
  }

  [dir="rtl"] .mobile-nav-active .mobile-nav-toggle {
    right: auto;
    left: 15px;
  }
}

[dir="rtl"] .php-email-form .error-message {
  text-align: right;
}

[dir="rtl"] .about .content ul i {
  margin-right: 0;
  margin-left: 0.5rem;
}

[dir="rtl"] .stats .stats-item i {
  margin-right: 0;
  margin-left: 20px;
}

[dir="rtl"] .features h3:after {
  left: auto;
  right: 0;
}

[dir="rtl"] .features .icon-box i {
  margin-right: 0;
  margin-left: 25px;
}

[dir="rtl"] .tabs .nav-link {
  padding: 12px 0 12px 15px;
  border-right: 0;
  border-left: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

[dir="rtl"] .footer .footer-about .logo img {
  margin-right: 0;
  margin-left: 0;
}

[dir="rtl"] .footer .social-links a {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .footer .footer-links ul i {
  padding-right: 0;
  padding-left: 2px;
}

[dir="rtl"] .pricing .pricing-item ul i {
  padding-right: 0;
  padding-left: 4px;
}

[dir="rtl"] .pricing .advanced {
  right: auto;
  left: -68px;
}

[dir="rtl"] .service-details .services-list a {
  padding: 8px 15px 8px 0;
  border-left: 0;
  border-right: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
}

[dir="rtl"] .service-details ul i {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .scroll-top {
  right: auto;
  left: 15px;
}

[dir="ltr"] body {
  text-align: left;
}

.header .branding {
  min-height: 108px;
  padding: 8px 0;
  overflow: visible;
}

.header .branding > .container {
  gap: 10px;
}

.header .branding .logo {
  flex: 0 0 118px;
  width: 118px;
  max-width: 118px;
  flex-shrink: 0;
  line-height: 0;
}

.header .logo img.site-logo,
.header .logo img {
  display: block;
  height: 96px;
  max-height: 96px;
  width: 100%;
  max-width: 118px;
  object-fit: contain;
  object-position: center;
  margin: 0;
}

@media (min-width: 1200px) {
  .header .branding .navmenu {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.footer .footer-about .logo img.site-logo,
.footer .footer-about .logo img {
  display: block;
  max-height: 120px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin: 0 0 12px;
}

/* Hero cover — mobile fix */
.hero .carousel {
  min-height: 70vh;
}

.hero .carousel-item {
  min-height: 70vh;
}

.hero img {
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 768px) {
  .hero .carousel,
  .hero .carousel-item {
    min-height: 62vh;
  }

  .hero img {
    object-fit: cover;
    object-position: center 28%;
  }

  .hero .container {
    margin-left: 16px !important;
    margin-right: 16px !important;
    margin-bottom: 28px;
    padding: 18px 14px;
    width: auto;
    max-width: calc(100% - 32px);
  }

  .hero h2 {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .hero .container p {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 8px;
  }

  .hero .btn-get-started {
    margin: 6px 0 0;
    padding: 8px 22px;
    font-size: 13px;
  }

  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 12%;
  }
}

@media (max-width: 480px) {
  .hero .carousel,
  .hero .carousel-item {
    min-height: 58vh;
  }

  .hero img {
    object-position: center 22%;
  }
}

.plan-section {
  background: #145c59 !important;
}

.plan-section h3,
.plan-section p {
  color: #ffffff !important;
}

.header .logo .sitename {
  font-size: 15px;
  font-weight: 700;
  color: #145c59;
  line-height: 1.2;
  margin-inline-start: 8px;
}

.header .logo .sitename small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #1f8a86;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.notice-box {
  background: #f4fbfb;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  border-radius: 8px;
  padding: 24px;
}

.partner-options .icon-box {
  background: var(--surface-color);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  height: 100%;
}

.story-video {
  width: 100%;
  max-height: 520px;
  border-radius: 10px;
  background: #000;
}

.contact-person strong {
  color: var(--heading-color);
}
