/* ============================================================
   CARDS / POSTS
   ============================================================ */
.content-section {
  padding: 2.5rem 0 3.5rem;
}

.archive-top {
  margin-bottom: 2rem;
}

.archive-title {
  margin: 0 0 0.4rem;
  color: #061B2C;
  font-size: 1.8rem;
  font-weight: 700;
}

.archive-description {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.blog-archive-page .archive-top {
  display: none;
}

.pagination-wrap {
  margin-top: 2rem;
}

.empty-state {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: #64748b;
  text-align: center;
  padding: 1.25rem;
}

.content-card {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 1.25rem;
}

.content-card--narrow {
  max-width: 860px;
}

.content-card-header {
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.content-card-badge {
  margin-bottom: 0.5rem;
}

.content-card-title {
  margin: 0 0 0.5rem;
  color: #061B2C;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.content-card-date {
  color: #64748b;
  font-size: 0.88rem;
}

.prose-content {
  color: #334155;
  line-height: 2;
}

.prose-content h2,
.prose-content h3,
.prose-content h4 {
  color: #061B2C;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-card-body { padding: 1.25rem; }

.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #061B2C;
  text-decoration: none;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title:hover { color: #E25C37; }

.post-card-excerpt {
  color: #555;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  color: #888;
  font-size: 0.8rem;
}

.posts-grid--blog {
  gap: 1.05rem;
}

.post-card--blog {
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.post-card--blog:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.11);
}

.post-card--blog .post-card-media {
  position: relative;
  display: block;
  aspect-ratio: 316 / 150;
  overflow: hidden;
  background: #e5e7eb;
}

.post-card--blog .post-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.78);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
}

.post-card-badge--media {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.post-card-badge--media.is-audio {
  background: rgba(15, 23, 42, 0.78);
}

.post-card-badge--media.is-video {
  background: rgba(226, 92, 55, 0.86);
}

.post-card--blog .post-card-body {
  padding: 0.8rem 0.85rem 0.75rem;
  text-align: right;
}

.post-card--blog .post-card-title {
  font-size: 0.96rem;
  line-height: 1.8;
  text-align: right;
  min-height: 3.2em;
}

.post-card--blog .post-card-excerpt {
  margin-top: 0.4rem;
  color: #6b7280;
  font-size: 0.77rem;
  line-height: 1.85;
  text-align: right;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.post-card--blog .post-card-meta {
  justify-content: flex-end;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid #edf1f6;
  color: #94a3b8;
  font-size: 0.73rem;
}

.post-card--blog .post-card-more {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.post-card--blog .post-card-more:hover {
  color: #E25C37;
  border-color: rgba(226, 92, 55, 0.35);
  background: rgba(226, 92, 55, 0.08);
}

/* ============================================================
   MEDIA (RASANEH)
   ============================================================ */
.media-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.media-badge.video { background: rgba(226,92,55,0.12); color: #E25C37; }
.media-badge.podcast { background: rgba(6,27,44,0.08); color: #061B2C; }

.media-badge-wrap {
  margin-bottom: 0.5rem;
}

.media-player {
  background: #061B2C;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.media-player video,
.media-player audio {
  width: 100%;
  border-radius: 8px;
}

.rasaneh-player {
  margin-bottom: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
}

.rasaneh-player-media {
  width: 100%;
  display: block;
}

.rasaneh-cover {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   ARCHIVE PAGES
   ============================================================ */
.archive-header {
  background: #061B2C;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.archive-header h1 { color: #fff; font-size: 1.75rem; margin: 0; }
.archive-header p { color: rgba(255,255,255,0.6); margin: 0.5rem 0 0; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

@media (max-width: 700px) {
  .posts-grid--blog {
    gap: 0.75rem;
  }

  .post-card--blog .post-card-body {
    padding: 0.62rem 0.7rem;
  }

  .post-card--blog .post-card-title {
    font-size: 0.88rem;
    min-height: auto;
    line-height: 1.7;
  }

  .post-card--blog .post-card-excerpt {
    font-size: 0.73rem;
  }
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.pagination a { background: #fff; color: #061B2C; border: 2px solid #e5e7eb; }
.pagination a:hover { border-color: #E25C37; color: #E25C37; }
.pagination span.current { background: #E25C37; color: #fff; border: 2px solid #E25C37; }

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */
.single-article-page {
  background: #f3f4f6;
}

.single-article-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.single-article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.single-article-ad {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.single-article-ad img {
  width: 100%;
  height: auto;
  display: block;
}

.single-article-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.9rem;
}

.single-article-header {
  margin-bottom: 0.85rem;
  text-align: center;
}

.single-article-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.8;
}

.single-article-meta {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: #64748b;
}

.single-article-cover {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.95rem;
}

.single-article-image {
  width: 100%;
  display: block;
}

.single-article-content {
  font-size: 0.9rem;
  line-height: 2.15;
}

.single-article-nav {
  margin-top: 1.2rem;
  border-top: 1px solid #eef2f7;
  padding-top: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.single-article-nav-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
}

.single-article-nav-item a:hover {
  color: #E25C37;
  border-color: rgba(226, 92, 55, 0.45);
}

.single-article-comments {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.9rem;
}

.page-content {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  max-width: 860px;
  margin: 2rem auto;
  color: #444;
  font-size: 0.975rem;
  line-height: 2;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.promo-grid img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 2/1;
}

@media (max-width: 600px) { .promo-grid { grid-template-columns: 1fr; } }

@media (max-width: 700px) {
  .single-article-layout {
    grid-template-columns: 1fr;
  }

  .single-article-sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .single-article-ad {
    min-width: 130px;
  }

  .single-article-card,
  .single-article-comments {
    padding: 0.7rem;
    border-radius: 10px;
  }

  .single-article-title {
    font-size: 1rem;
  }

  .single-article-content {
    font-size: 0.84rem;
    line-height: 2;
  }

  .single-article-nav {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SINGLE ARTICLE PAGE  (sa-*  classes — new layout)
   Layout: RTL grid → 1fr column = RIGHT (article) | 260px = LEFT (sidebar)
   ============================================================ */

.sa-page {
  padding: 2rem 0 3.5rem;
  background: #f3f4f6;
  min-height: 60vh;
}

/* Two-column grid — article (right) | sidebar (left) in RTL */
.sa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.75rem;
  align-items: start;
}

/* ── Article card ── */
.sa-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  min-width: 0;
}

/* Header area */
.sa-header {
  padding: 1.6rem 1.75rem 0;
}

/* Category tags */
.sa-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.sa-cat-tag {
  background: rgba(226,92,55,0.1);
  color: #E25C37;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.sa-cat-tag:hover {
  background: #E25C37;
  color: #fff;
}

/* Title */
.sa-title {
  margin: 0 0 0.85rem;
  color: #061B2C;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.65;
}

/* Meta row */
.sa-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #6b7280;
  font-size: 0.8rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #f0f2f5;
  flex-wrap: wrap;
}

.sa-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sa-meta-item svg {
  color: #E25C37;
  flex-shrink: 0;
}

.sa-meta-sep {
  color: #d1d5db;
}

/* Cover image — fixed ratio */
.sa-cover {
  width: 100%;
  margin-top: 0;
  border-radius: 10px;
  overflow: hidden;
}

.sa-cover--video {
  position: relative;
  overflow: hidden;
}

.sa-cover-img {
  width: 100%;
  display: block;
  aspect-ratio: 316 / 150;
  height: auto;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.sa-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  background: rgba(6, 27, 44, 0.68);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
}

.sa-video-play:hover {
  background: rgba(226, 92, 55, 0.88);
  transform: translate(-50%, -50%) scale(1.04);
}

.sa-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: #000;
  z-index: 2;
}

.sa-cover--video.is-playing .sa-cover-img,
.sa-cover--video.is-playing .sa-video-play {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.sa-cover--video.is-playing .sa-video-player {
  display: block !important;
}

.sa-media-audio {
  margin: 0.9rem 1.75rem 0.2rem;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.sa-media-audio audio {
  width: 100%;
}

/* Article content */
.sa-content {
  padding: 1.6rem 1.75rem 0.75rem;
}

/* ── Prose typography ── */
.prose-rtl {
  color: #334155;
  font-size: 0.95rem;
  line-height: 2.1;
  direction: rtl;
  text-align: right;
}

.prose-rtl p {
  margin: 0 0 1rem;
}

.prose-rtl h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #061B2C;
  margin: 2rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prose-rtl h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.15em;
  background: #E25C37;
  border-radius: 2px;
  flex-shrink: 0;
}

.prose-rtl h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #061B2C;
  margin: 1.5rem 0 0.5rem;
}

.prose-rtl strong {
  color: #0f172a;
  font-weight: 700;
}

.prose-rtl a {
  color: #E25C37;
  text-decoration: none;
}

.prose-rtl a:hover {
  text-decoration: underline;
}

.prose-rtl ul,
.prose-rtl ol {
  padding-right: 1.5rem;
  margin: 0 0 1rem;
}

.prose-rtl li {
  margin-bottom: 0.4rem;
}

.prose-rtl blockquote {
  border-right: 4px solid #E25C37;
  padding: 0.75rem 1.25rem 0.75rem 0.75rem;
  margin: 1.25rem 0;
  background: rgba(226,92,55,0.05);
  border-radius: 0 8px 8px 0;
  color: #4b5563;
}

.prose-rtl img {
  max-width: 100%;
  border-radius: 8px;
  height: auto;
}

/* ── Related posts ── */
.sa-related {
  padding: 1.4rem 1.75rem;
  border-top: 2px solid #f3f4f6;
}

.sa-related-title {
  font-size: 1rem;
  font-weight: 700;
  color: #061B2C;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sa-related-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.sa-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.sa-related-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.sa-related-item:hover {
  background: rgba(226,92,55,0.05);
}

.sa-related-img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sa-related-img--placeholder {
  background: #e5e7eb;
  display: block;
}

.sa-related-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.sa-related-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sa-related-item:hover .sa-related-name {
  color: #E25C37;
}

.sa-related-date {
  font-size: 0.73rem;
  color: #94a3b8;
}

/* ── Post navigation ── */
.sa-postnav {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  background: #f9fafb;
  border-top: 1px solid #f0f0f0;
  gap: 1rem;
}

.sa-postnav-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 45%;
}

.sa-postnav-item--next {
  text-align: left;
  align-items: flex-start;
}

.sa-postnav-dir {
  font-size: 0.72rem;
  font-weight: 700;
  color: #E25C37;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sa-postnav-link a {
  font-size: 0.82rem;
  color: #374151;
  text-decoration: none;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.sa-postnav-link a:hover {
  color: #E25C37;
}

/* ── Sidebar ── */
.sa-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sa-banner {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #e5e7eb;
}

.sa-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.sa-banner img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* ── Comments section ── */
.sa-comments {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.sa-comments #comments {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #0f172a;
}

.sa-comments .comment-list,
.sa-comments .commentlist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.sa-comments .comment,
.sa-comments .commentlist > li {
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.sa-comments .comment:last-child,
.sa-comments .commentlist > li:last-child {
  border-bottom: none;
}

.sa-comments .comment-body {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.9rem;
}

.sa-comments .comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.sa-comments .comment-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #334155;
  font-size: 0.82rem;
}

.sa-comments .comment-author a {
  color: #061B2C;
  text-decoration: none;
  font-weight: 700;
}

.sa-comments .comment-author a:hover {
  color: #E25C37;
}

.sa-comments .comment-author .avatar {
  border-radius: 999px;
}

.sa-comments .comment-metadata {
  color: #64748b;
  font-size: 0.73rem;
}

.sa-comments .comment-metadata a {
  color: inherit;
  text-decoration: none;
}

.sa-comments .comment-content {
  color: #334155;
  font-size: 0.86rem;
  line-height: 2;
}

.sa-comments .comment-content p {
  margin: 0.35rem 0;
}

.sa-comments .reply {
  margin-top: 0.45rem;
}

.sa-comments .comment-reply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 0.7rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  background: #fff;
}

.sa-comments .comment-reply-link:hover {
  border-color: rgba(226, 92, 55, 0.35);
  color: #E25C37;
}

.sa-comments #respond {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f3f4f6;
}

.sa-comments #respond h3 {
  color: #061B2C;
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.sa-comments .comment-reply-title {
  color: #061B2C;
  font-size: 1rem;
  margin: 0 0 0.8rem;
}

.sa-comments .logged-in-as {
  margin: 0 0 0.75rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.9;
}

.sa-comments .comment-form label {
  display: block;
  margin-bottom: 0.3rem;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
}

.sa-comments input[type="text"],
.sa-comments input[type="email"],
.sa-comments textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.88rem;
  direction: rtl;
  text-align: right;
  background: #fafafa;
  transition: border-color 0.2s;
  margin-bottom: 0.75rem;
}

.sa-comments textarea {
  min-height: 140px;
  resize: vertical;
}

.sa-comments input:focus,
.sa-comments textarea:focus {
  outline: none;
  border-color: #E25C37;
  background: #fff;
}

.sa-comments #submit {
  background: #E25C37;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.sa-comments #submit:hover {
  background: #c94d2a;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sa-layout {
    grid-template-columns: 1fr;
  }

  .sa-sidebar {
    position: static;
    flex-direction: row;
    overflow-x: visible;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 0.25rem;
    gap: 0.75rem;
  }

  .sa-banner {
    min-width: 128px;
    max-width: 148px;
    flex-shrink: 0;
  }

  .sa-banner img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }

  .sa-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sa-cover {
    margin: 0.4rem 0 0.65rem;
  }

  .sa-cover-img {
    aspect-ratio: 316 / 150;
    height: auto;
    object-fit: cover;
    object-position: center;
  }

  .sa-video-play {
    width: 56px;
    height: 56px;
  }

  .sa-media-audio {
    margin: 0.6rem 1rem 0.1rem;
    padding: 0.55rem;
  }

  .sa-sidebar {
    gap: 0.6rem;
    justify-content: center;
  }

  .sa-banner {
    min-width: 112px;
    max-width: 130px;
    border-radius: 9px;
  }

  .sa-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .sa-header,
  .sa-content,
  .sa-related,
  .sa-postnav {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .sa-title {
    font-size: 1.15rem;
  }

  .sa-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ARCHIVE PAGE  (arch-*  classes)
   Layout: RTL grid → 1fr = RIGHT (main) | 260px = LEFT (sidebar)
   ============================================================ */

.arch-page {
  padding: 0 0 3.5rem;
  background: #f3f4f6;
  min-height: 60vh;
}

/* Archive heading bar */
.arch-head {
  background: #061B2C;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.arch-head .container {
  /* inherits container centering */
}

.arch-head-title {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.arch-head-label {
  color: #E25C37;
  font-size: 0.9rem;
  font-weight: 400;
}

.arch-head-desc {
  margin: 0.4rem 0 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* Two-column grid */
.arch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.75rem;
  align-items: start;
}

/* Main content */
.arch-main {
  min-width: 0;
}

/* Cards grid — 2 columns inside main area */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Individual card */
.arch-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8eaed;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.arch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Card image */
.arch-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.arch-card-img {
  width: 100%;
  display: block;
  aspect-ratio: 316 / 150;
  object-fit: cover;
  transition: transform 0.3s;
}

.arch-card:hover .arch-card-img {
  transform: scale(1.04);
}

.arch-card-img--placeholder {
  aspect-ratio: 316 / 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.arch-card-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: #E25C37;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* Card body */
.arch-card-body {
  padding: 1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.arch-card-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #061B2C;
  text-decoration: none;
  line-height: 1.65;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.arch-card-title:hover {
  color: #E25C37;
}

.arch-card-excerpt {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.75;
  margin: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer row */
.arch-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
  gap: 0.5rem;
}

.arch-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.arch-card-date,
.arch-card-readtime {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.73rem;
  color: #94a3b8;
}

.arch-card-date svg,
.arch-card-readtime svg {
  color: #E25C37;
}

.arch-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #E25C37;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.arch-card-more:hover {
  color: #c94d2a;
}

/* Pagination */
.arch-pagination {
  margin-top: 0.5rem;
}

.arch-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  color: #374151;
  background: #fff;
  margin: 0 2px;
  transition: all 0.2s;
}

.arch-pagination .page-numbers.current {
  background: #E25C37;
  border-color: #E25C37;
  color: #fff;
}

.arch-pagination .page-numbers:hover:not(.current) {
  border-color: #E25C37;
  color: #E25C37;
}

.arch-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* Empty state */
.arch-empty {
  background: #fff;
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  color: #9ca3af;
}

/* ── Sidebar ── */
.arch-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.arch-banner {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #e5e7eb;
}

.arch-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.arch-banner img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* Sidebar widget */
.arch-sidebar-widget {
  background: #fff;
  border-radius: 10px;
  padding: 1.1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.arch-widget-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #061B2C;
  margin: 0 0 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.arch-widget-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #E25C37;
  border-radius: 2px;
}

.arch-widget-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.arch-widget-post {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.arch-widget-thumb {
  width: 56px !important;
  height: 56px !important;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.arch-widget-post-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.arch-widget-post-title:hover {
  color: #E25C37;
}

.arch-widget-post-date {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .arch-layout {
    grid-template-columns: 1fr;
  }

  .arch-sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .arch-banner {
    min-width: 140px;
    flex-shrink: 0;
  }

  .arch-sidebar-widget {
    display: none;
  }
}

@media (max-width: 640px) {
  .arch-grid {
    grid-template-columns: 1fr;
  }

  .arch-head-title {
    font-size: 1.2rem;
  }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error404-main {
  min-height: 64vh;
  display: flex;
  align-items: center;
}

.error404-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.08);
  padding: 2rem 1.5rem;
  text-align: center;
}

.error404-code {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 700;
  color: #E25C37;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.error404-title {
  margin: 0;
  color: #061B2C;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.error404-text {
  margin: 0.9rem auto 0;
  color: #64748b;
  max-width: 600px;
  line-height: 2;
  font-size: 0.95rem;
}

.error404-actions {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.error404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  background: #fff;
}

.error404-btn:hover {
  border-color: #E25C37;
  color: #E25C37;
}

.error404-btn--primary {
  border-color: #E25C37;
  background: #E25C37;
  color: #fff;
}

.error404-btn--primary:hover {
  background: #c94d2a;
  color: #fff;
}

.error404-links {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.error404-links a {
  color: #334155;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.error404-links a:hover {
  color: #E25C37;
}

/* ============================================================
   FORM SYSTEM
   ============================================================ */
body.seyyed-modal-open {
  overflow: hidden;
}

.seyyed-download-gate .seyyed-gate-trigger {
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  background: #E25C37;
  border: 1px solid #E25C37;
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.seyyed-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.seyyed-gate-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 27, 44, 0.38);
  backdrop-filter: blur(5px);
}

.seyyed-gate-dialog {
  position: relative;
  max-width: 520px;
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  padding: 1.4rem;
  z-index: 2;
}

.seyyed-gate-close-btn {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.1rem;
  cursor: pointer;
}

.seyyed-gate-dialog h3 {
  margin: 0 0 1rem;
  color: #061B2C;
  font-size: 1.05rem;
}

.seyyed-form-row {
  margin-bottom: 0.85rem;
}

.seyyed-form-row label {
  display: block;
  margin-bottom: 0.35rem;
  color: #334155;
  font-weight: 700;
  font-size: 0.86rem;
}

.seyyed-form-row input {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 0.8rem;
  color: #0f172a;
  font-family: 'RaviFaNum', Tahoma, Arial, sans-serif;
}

.seyyed-form-submit {
  width: 100%;
  min-height: 44px;
  border: 1px solid #E25C37;
  border-radius: 10px;
  background: #E25C37;
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.seyyed-form-submit.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.seyyed-form-msg {
  min-height: 24px;
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
}

.seyyed-form-msg.is-error {
  color: #b91c1c;
}

.seyyed-form-msg.is-success {
  color: #166534;
}

.seyyed-form-msg.is-loading {
  color: #334155;
}

.seyyed-assessment {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(2, 8, 23, 0.06);
  padding: 1.2rem;
}

.seyyed-assessment-profile {
  margin-top: 0.5rem;
}

.seyyed-assessment-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.seyyed-assessment-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 27, 44, 0.42);
  backdrop-filter: blur(5px);
}

.seyyed-assessment-dialog {
  position: relative;
  max-width: 860px;
  max-height: 88vh;
  overflow: auto;
  margin: 5vh auto 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  padding: 1.2rem;
  z-index: 2;
}

.seyyed-assessment-close-btn {
  position: sticky;
  top: 0;
  margin-right: auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.seyyed-assessment > h2 {
  margin: 0 0 0.4rem;
  color: #061B2C;
  font-size: 1.4rem;
}

.seyyed-assessment > p {
  margin: 0 0 1rem;
  color: #64748b;
}

.seyyed-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.seyyed-assessment-help {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.seyyed-assessment-help p {
  margin: 0.4rem 0 0;
  color: #475569;
}

.seyyed-assessment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.seyyed-assessment-options span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.76rem;
}

.seyyed-assessment-question {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.7rem;
}

.seyyed-assessment-question p {
  margin: 0 0 0.75rem;
  color: #0f172a;
  line-height: 1.9;
}

.seyyed-assessment-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.seyyed-assessment-scale label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 38px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 0.73rem;
  cursor: pointer;
}

.seyyed-assessment-scale input {
  accent-color: #E25C37;
}

.seyyed-assessment-result {
  margin-top: 0.9rem;
  padding: 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 92, 55, 0.25);
  background: rgba(226, 92, 55, 0.06);
}

.seyyed-assessment-result h3 {
  margin: 0 0 0.55rem;
  color: #061B2C;
}

.seyyed-assessment-result p {
  margin: 0 0 0.35rem;
  color: #1f2937;
}

.seyyed-assessment-result-text {
  margin-top: 0.45rem;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .seyyed-form-grid {
    grid-template-columns: 1fr;
  }

  .seyyed-assessment-scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .seyyed-gate-dialog {
    max-width: calc(100% - 1.2rem);
    margin-top: 5vh;
    padding: 1rem;
  }

  .seyyed-assessment-dialog {
    max-width: calc(100% - 1rem);
    margin-top: 3vh;
    max-height: 92vh;
    padding: 0.9rem;
  }
}
