/* 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: 56px;
  padding: 6px 0;
  overflow: visible;
}

.header .branding > .container {
  gap: 10px;
}

.header .branding .logo {
  flex: 0 0 auto;
  width: auto;
  max-width: 112px;
  flex-shrink: 0;
  line-height: 0;
}

.header .logo img.site-logo,
.header .logo img {
  display: block;
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: 112px;
  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: #007878;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.about-video-poster {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
}

.album-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.album-filter {
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 55%);
  background: var(--surface-color);
  color: var(--heading-color);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.album-filter:hover,
.album-filter.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.album-meta .album-card {
  display: none;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 8px;
}

.album-meta .album-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.album-meta .album-card p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.album-meta.show-nursing .album-card[data-show-for="nursing"],
.album-meta.show-suturing .album-card[data-show-for="suturing"] {
  display: block;
}

.album-item.is-hidden {
  display: none !important;
}

.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);
}

/* Palestinian identity — flag accents */
.palestine-top {
  gap: 6px;
  min-width: 0;
}

.palestine-loc {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.top-sep {
  opacity: 0.55;
  margin-inline: 4px 2px;
}

.palestine-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 18px;
  margin-inline-end: 8px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.palestine-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.palestine-flag--lg {
  width: 36px;
  height: 24px;
  margin-inline-end: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.palestine-stripe {
  height: 5px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #000000 0%,
    #000000 33.333%,
    #007a3d 33.333%,
    #007a3d 66.666%,
    #ce1126 66.666%,
    #ce1126 100%
  );
}

[dir="rtl"] .palestine-stripe {
  background: linear-gradient(
    270deg,
    #000000 0%,
    #000000 33.333%,
    #007a3d 33.333%,
    #007a3d 66.666%,
    #ce1126 66.666%,
    #ce1126 100%
  );
}

.palestine-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.4;
}

.hero-palestine-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  backdrop-filter: blur(4px);
}

.hero-palestine-chip .palestine-flag {
  margin-inline-end: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}

@media (max-width: 767px) {
  .header .topbar .palestine-flag {
    display: inline-flex;
  }

  .header .branding .logo .palestine-flag {
    display: none;
  }

  .hero-palestine-chip {
    font-size: 0.82rem;
    padding: 6px 12px 6px 8px;
    margin-bottom: 10px;
  }
}

