/* ثهلان – صفحة المقال */
.article-header {
  margin-bottom: 28px;
}

.article-header .category {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
  transition: color 0.25s var(--ease);
}

.article-header .category:hover {
  color: var(--accent);
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--text);
}

.article-header .dek {
  font-size: 1.15rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-meta span + span::before {
  content: "·";
  margin-left: 8px;
  margin-right: 4px;
}

/* تواريخ النشر والتعديل – وقت، يوم، شهر، سنة */
.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.article-dates time {
  font-variant-numeric: tabular-nums;
}

.article-dates .label {
  font-weight: 600;
  color: var(--text-soft);
}

.card-date {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

.page-updated {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 20px;
}

/* ========== صفحة الفعالية ========== */
.event-page .article-header .category {
  color: #fff !important;
}
.event-page .article-header .category:hover {
  color: rgba(255,255,255,0.9) !important;
}

.event-gallery {
  margin: 24px 0;
  display: grid;
  gap: 20px;
}

.event-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.event-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.event-gallery figcaption {
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.event-presenter {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-top: 12px;
}

/* عناوين ونقلات المقابلات */
.interview-topic {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--accent);
}
.interview-quote {
  font-style: italic;
  color: var(--text-soft);
  margin: 0 0 12px 0;
  padding-inline-start: 12px;
  border-inline-start: 3px solid var(--border);
}
.interview-final {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 12px 0 24px 0;
}

/* صندوق المقدم – بحجم صغير كصندوق الكاتب في المقالات، في آخر الصفحة */
.presenter-box {
  margin: 24px 0;
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.presenter-box:hover {
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.presenter-box .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
  transition: transform 0.35s var(--ease);
}

.presenter-box:hover .avatar {
  transform: scale(1.05);
}

.presenter-box .bio h4 {
  font-family: var(--font-heading);
  margin: 0 0 4px;
  font-size: 1rem;
}

.presenter-box .bio .role {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.5;
}

.presenter-box .bio .presenter-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 600;
}

.article-featured-image {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s var(--ease);
}

.article-featured-image:hover {
  box-shadow: var(--shadow-hover);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}

.article-featured-image:hover img {
  transform: scale(1.02);
}

.article-featured-image figcaption {
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.85;
}

.article-body > *:first-child {
  margin-top: 0;
}

/* Drop Cap */
.article-body .drop-cap::first-letter {
  float: right;
  font-size: 3.4em;
  line-height: 1;
  font-weight: 700;
  color: var(--primary);
  margin: 0.08em 0 0 0.08em;
  font-family: var(--font-heading);
}

/* Pull Quote */
.pull-quote {
  margin: 32px 0;
  padding: 24px 28px;
  border-right: 5px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.65;
  color: var(--text);
  box-shadow: 0 2px 16px rgba(45, 42, 38, 0.06);
  transition: box-shadow 0.3s var(--ease);
}

.pull-quote:hover {
  box-shadow: var(--shadow);
}

.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: var(--font);
  color: var(--muted);
}

/* Info / Timeline box */
.info-box {
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.info-box:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 16px rgba(45, 42, 38, 0.06);
}

.info-box h4 {
  font-family: var(--font-heading);
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.info-box ul,
.info-box ol {
  margin: 0;
  padding-right: 22px;
}

.info-box li {
  margin-bottom: 8px;
}

/* Author box */
.author-box {
  margin: 40px 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.author-box:hover {
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.author-box .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
  transition: transform 0.35s var(--ease);
}

.author-box:hover .avatar {
  transform: scale(1.05);
}

.author-box .bio h4 {
  font-family: var(--font-heading);
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.author-box .bio .role {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.author-box .bio p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* صورة داخل المقال */
.article-body .article-inline-image {
  margin: 28px 0;
  text-align: center;
}

.article-body .article-inline-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
}

.article-body .article-inline-image figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* بقلم الكاتب */
.article-byline {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* Related articles */
.related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related h3 {
  font-family: var(--font-heading);
  margin: 0 0 20px;
  font-size: 1.3rem;
  font-weight: 700;
  border-right: 5px solid var(--accent);
  padding-right: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.related-grid .card .thumb {
  transition: transform 0.6s var(--ease);
}

.related-grid .card:hover .thumb {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .article-body .drop-cap::first-letter {
    font-size: 2.8em;
  }
}

/* جوال – تقليص الفراغات لملاءمة الشاشة */
@media (max-width: 640px) {
  .article-header {
    margin-bottom: 16px;
  }

  .article-header .category {
    margin-bottom: 6px;
  }

  .article-header h1 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .article-header .dek {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .article-meta {
    gap: 8px 14px;
    font-size: 0.85rem;
  }

  .article-featured-image {
    margin: 16px 0;
  }

  .article-featured-image figcaption {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.75;
  }

  .article-body .drop-cap::first-letter {
    font-size: 2.4em;
  }

  .article-body .pull-quote {
    margin: 20px 0;
    padding: 16px 14px;
  }

  .author-box {
    margin: 24px 0;
    padding: 16px 14px;
    gap: 12px;
  }

  .author-box .avatar {
    width: 56px;
    height: 56px;
  }

  .presenter-box {
    margin: 20px 0;
    padding: 14px 12px;
    gap: 10px;
  }

  .presenter-box .avatar {
    width: 48px;
    height: 48px;
  }

  .related {
    margin: 28px 0;
  }

  .related h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
  }

  .related-grid {
    gap: 10px;
  }
}
