/* صفحات المقالات */
.q-article-wrap {
  padding: calc(var(--q-header-h) + var(--q-topbar-h) + 2rem) 0 var(--q-space-2xl);
}

.q-article {
  max-width: 760px;
  margin-inline: auto;
  padding: 0 1rem;
}

.q-article header {
  margin-bottom: 1.5rem;
}

.q-article__cover {
  margin: 0 0 2rem;
  border-radius: calc(var(--q-radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--q-border);
  aspect-ratio: 16 / 10;
  max-height: min(52vh, 440px);
  background: #0c0a09;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.q-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.q-article__visual-bottom {
  margin: 2.25rem 0 0;
  border-radius: calc(var(--q-radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--q-border);
  background: rgba(12, 10, 9, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.q-article__visual-bottom img {
  width: 100%;
  display: block;
  max-height: min(44vh, 380px);
  object-fit: contain;
  object-position: center;
}

.q-article__visual-bottom figcaption {
  margin: 0;
  padding: 0.45rem 0.75rem 0.55rem;
  font-size: 0.8rem;
  color: var(--q-text-faint);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.q-article h1 {
  font-family: var(--q-font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: #fff;
}

.q-article time {
  color: var(--q-text-faint);
  font-size: 0.9rem;
}

.q-article__byline {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--q-text-faint);
  line-height: 1.6;
}

.q-article__byline [itemprop="name"] {
  color: var(--q-text-muted);
  font-weight: 600;
}

.q-article .q-lead {
  font-size: 1.12rem;
  color: var(--q-text-muted);
  line-height: 1.85;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.5rem;
}

.q-article h2 {
  font-family: var(--q-font-display);
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  font-size: 1.38rem;
  color: #fff;
  line-height: 1.3;
}

.q-article h2:first-of-type {
  margin-top: 1.75rem;
}

.q-article h3 {
  font-family: var(--q-font-display);
  margin-top: 1.65rem;
  margin-bottom: 0.5rem;
  font-size: 1.12rem;
  color: #fff;
  line-height: 1.4;
}

.q-article__benefits-title {
  margin: 1rem 0 0.4rem;
  color: #fff;
  font-size: 0.98rem;
}

.q-article__divider {
  border: none;
  height: 1px;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, transparent, var(--q-border-bright), transparent);
  opacity: 0.85;
}

.q-article ul {
  margin: 0.35rem 0 1.35rem;
  padding-inline-start: 1.35rem;
  color: var(--q-text-muted);
  line-height: 1.85;
}

.q-article ol {
  margin: 0.35rem 0 1.35rem;
  padding-inline-start: 1.35rem;
  color: var(--q-text-muted);
  line-height: 1.85;
}

.q-article ol li + li {
  margin-top: 0.5rem;
}

.q-article li + li {
  margin-top: 0.5rem;
}

.q-article li strong {
  color: #e7e5e4;
}

.q-article p {
  color: var(--q-text-muted);
  line-height: 1.9;
}

.q-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

@media (max-width: 520px) {
  .q-article-wrap {
    padding-bottom: calc(var(--q-space-2xl) + env(safe-area-inset-bottom, 0px));
  }

  .q-article {
    padding-inline: max(0.75rem, env(safe-area-inset-left, 0px))
      max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .q-article h1 {
    font-size: clamp(1.45rem, 6vw, 1.95rem);
  }

  .q-article__cover {
    max-height: min(42vh, 320px);
    border-radius: var(--q-radius);
  }

  .q-article .q-lead {
    font-size: 1.02rem;
    line-height: 1.78;
  }

  .q-article h2 {
    font-size: 1.22rem;
    margin-top: 1.85rem;
  }

  .q-article h3 {
    font-size: 1.05rem;
  }
}
