.lang-en body,
.lang-en h1,
.lang-en h2,
.lang-en h3,
.lang-en h4,
.lang-en h5,
.lang-en h6,
.lang-en p,
.lang-en a,
.lang-ar span:not(span.icon-wcf-menu-bar-1),
.lang-en li,
.lang-en div {
  font-family: var(--font-en) !important;
}

.lang-ar body,
.lang-ar h1,
.lang-ar h2,
.lang-ar h3,
.lang-ar h4,
.lang-ar h5,
.lang-ar h6,
.lang-ar p,
.lang-ar a,
.lang-ar span:not(span.icon-wcf-menu-bar-1),
.lang-ar li,
.lang-ar div {
  font-family: var(--font-ar) !important;
}

.header-area {
  .header__logo {
    img {
      max-width: 60px;
    }
  }
}

/* Language toggle styles */
.header__lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 12px;
  position: relative;
  z-index: 9; /* keep above header overlays on desktop */
}
.header__lang .btn-lang {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  padding: 6px 10px;
  line-height: 1;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
.header__lang .btn-lang:hover {
  background: rgba(0, 0, 0, 0.08);
}
.lang-en .header__lang .btn-lang[data-lang="en"],
.lang-ar .header__lang .btn-lang[data-lang="ar"] {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Article content styling for better readability */
.content-box .text {
  line-height: 1.8;
  font-size: 16px;
  color: #333;
  text-align: justify;
  white-space: pre-line;
  word-wrap: break-word;
  max-width: 100%;
}

.lang-ar .content-box .text {
  text-align: right;
  direction: rtl;
}

.lang-en .content-box .text {
  text-align: left;
  direction: ltr;
}

/* Enhanced paragraph styling */
.content-box .text p {
  margin-bottom: 1.5em;
  line-height: 1.8;
}

/* Better spacing for long content */
.content-box-wrapper {
  padding: 2rem 0;
}

.content-box {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

/* Responsive text sizing */
@media (max-width: 768px) {
  .content-box .text {
    font-size: 15px;
    line-height: 1.7;
  }

  .content-box {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .content-box .text {
    font-size: 14px;
    line-height: 1.6;
  }

  .content-box {
    padding: 1rem;
  }
}

.article_image img {
  width: 100%;
  height: auto;
  max-width: 800px;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}
