/* ============================================================
   pages.css — Page-specific styles for Fikr Magazine
   ============================================================ */

/* ---- HOME PAGE ---- */
.breaking-bar {
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
}

.breaking-bar__label {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: var(--accent);
  padding: 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  z-index: 2;
  white-space: nowrap;
}

.breaking-bar__track {
  padding-right: 130px;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  font-size: 0.82rem;
  color: #d4cfc8;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.home-masthead-rule {
  border-top: 4px double var(--ink);
  border-bottom: 1px solid var(--ink-faint);
  padding: 0.4rem 0;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ink-light);
  margin-bottom: 2rem;
  font-family: var(--font-sans);
}

/* Home layout: large featured + sidebar */
.home-lead {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: var(--border-rule);
}

@media (max-width: 900px) {
  .home-lead { grid-template-columns: 1fr; }
}

/* Hero featured post */
.hero-post {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.hero-post img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.4s, transform 0.6s;
}

.hero-post:hover img { opacity: 0.65; transform: scale(1.03); }

.hero-post__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 2rem 1.75rem;
  background: linear-gradient(to top, rgba(26,17,8,0.97) 0%, rgba(26,17,8,0.6) 50%, transparent 100%);
}

.hero-post__section {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.hero-post__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.9rem;
}

.hero-post__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: #b0a898;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero-post img { height: 300px; }
  .hero-post__title { font-size: 1.4rem; }
  .hero-post__overlay { padding: 1.5rem 1.25rem 1.25rem; }
}

/* Sidebar (latest list) */
.home-sidebar { border-right: var(--border-rule); padding-right: 1.5rem; }

.home-sidebar h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: var(--border-rule-dark);
}

/* Section blocks with asymmetric newspaper grid and vertical lines */
.section-block {
  margin-bottom: 4.5rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2.5rem;
}

.section-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.section-block .grid-cols-3 {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 2rem;
}

.section-block .grid-cols-3 > .post-card {
  border: none;
  border-radius: 0;
  background: transparent;
  padding-left: 1.5rem;
  border-left: 1px solid var(--ink-faint);
  box-shadow: none !important;
  transform: none !important;
}

.section-block .grid-cols-3 > .post-card:last-child {
  border-left: none;
  padding-left: 0;
}

.section-block .grid-cols-3 > .post-card .post-card__body {
  padding: 1rem 0 0;
  border-top: 2px solid var(--ink);
}

.section-block .grid-cols-3 > .post-card:first-child .post-card__title {
  font-size: 1.6rem;
  line-height: 1.35;
}

/* Responsive styles for asymmetric grid */
@media (max-width: 992px) {
  .section-block .grid-cols-3 {
    grid-template-columns: 1.5fr 1fr;
  }
  .section-block .grid-cols-3 > .post-card:nth-child(2) {
    border-left: none;
    padding-left: 0;
  }
  .section-block .grid-cols-3 > .post-card:last-child {
    grid-column: span 2;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--ink-faint);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 600px) {
  .section-block .grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .section-block .grid-cols-3 > .post-card {
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid var(--ink-faint);
    padding-bottom: 1.5rem;
  }
  .section-block .grid-cols-3 > .post-card:last-child {
    grid-column: auto;
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
    padding-top: 0;
  }
}

/* ---- CATEGORY / SECTION PAGE ---- */
.section-page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: var(--border-rule-dark);
  margin-bottom: 2rem;
}

.section-page-header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 0.4rem;
}

.section-page-header p {
  color: var(--ink-light);
  font-size: 1rem;
  margin: 0;
}

.section-color-stripe {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

/* ---- ARTICLE PAGE ---- */
.article-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.article-page__section-badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.article-page__title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1.35;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.article-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-top: var(--border-rule-dark);
  border-bottom: var(--border-rule);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-light);
}

.article-page__author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--ink);
}

.article-page__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.article-page__cover {
  width: 100%;
  min-height: 300px;
  background: #f0f0f0;
  max-height: 600px;
  object-fit: cover;
  margin: 1.5rem 0 2.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.article-page__body {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 2.05;
  color: var(--ink-mid);
}

.article-page__body p { margin-bottom: 1.5rem; }

.article-page__body h2,
.article-page__body h3 {
  font-family: var(--font-serif);
  margin: 2rem 0 1rem;
  color: var(--ink);
  border-right: 4px solid var(--accent);
  padding-right: 0.75rem;
}

.article-page__body blockquote {
  border-right: 4px solid var(--accent-gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--paper-dark);
  font-style: italic;
  color: var(--ink-mid);
}

.article-page__body img {
  max-width: 100%;
  border-radius: 2px;
  margin: 1.5rem auto;
}

/* Lead paragraph & First line styling for premium Arabic editorial layout */
.article-page__body > p:first-of-type {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 2.1;
  color: var(--ink);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px double var(--ink-faint);
}

.article-page__body > p:first-of-type::first-line {
  font-weight: 700;
  color: var(--accent);
}

/* Tags */
.article-page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.article-tag {
  background: var(--paper-dark);
  border: var(--border-rule);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-light);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.article-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Share section */
.article-page__share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--paper-dark);
  border-right: 4px solid var(--accent);
}

.article-page__share span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.fb-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1877f2;
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.fb-share-btn:hover {
  background: #0a5dc7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24,119,242,0.4);
}

.fb-share-btn svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

/* Article author block */
.article-page__author-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--paper-dark);
  border: var(--border-rule);
  margin: 2.5rem 0;
}

.author-block__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.author-block__info strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.author-block__info span { font-size: 0.85rem; color: var(--ink-light); }

/* Related posts */
.article-page__related { margin-top: 3rem; }

/* Comments */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: var(--border-rule-dark);
}

.comments-section h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-form { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.comment-form .btn { align-self: flex-start; }

.comment {
  padding: 1.1rem 1.25rem;
  border: var(--border-rule);
  background: var(--surface);
  margin-bottom: 0.75rem;
  border-right: 3px solid var(--accent-gold);
}

.comment:hover { box-shadow: var(--shadow-sm); }

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.comment-author { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.comment-date { color: var(--ink-light); font-size: 0.78rem; margin-right: auto; }
.comment-body { font-size: 0.95rem; line-height: 1.7; color: var(--ink-mid); }
.comment-actions { margin-top: 0.5rem; }

.reply-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0;
}
.reply-btn:hover { color: var(--accent-hover); }

.comment-replies { margin-top: 0.5rem; padding-right: 1.5rem; border-right: 2px solid var(--paper-dark); }
.no-comments { text-align: center; color: var(--ink-light); padding: 2rem; font-size: 0.95rem; }

.inline-reply-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.inline-reply-form textarea { flex: 1; min-height: 55px; resize: none; padding: 0.5rem 0.75rem; border: var(--border-rule); font-family: var(--font-sans); font-size: 0.9rem; direction: rtl; }
.inline-reply-form .btn { align-self: flex-end; }

/* ---- AUTH PAGE ---- */
.auth-page-bg {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--surface);
  border: var(--border-rule-dark);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .auth-card {
    padding: 1.5rem 1rem;
    margin: 1rem auto;
    max-width: 94vw;
  }
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo .logo-main { font-size: 2.5rem; }
.auth-logo p { font-size: 0.82rem; color: var(--ink-light); margin: 0.25rem 0 0; }

.auth-tabs {
  display: flex;
  border-bottom: var(--border-rule-dark);
  margin-bottom: 1.75rem;
}

.auth-tab {
  flex: 1;
  padding: 0.7rem;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink-light);
  transition: color 0.2s;
  position: relative;
}

.auth-tab.active { color: var(--accent); }
.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.auth-form { display: none; }
.auth-form.active { display: block; animation: fade-up 0.25s ease; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-message {
  padding: 0.65rem 0.9rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-size: 0.88rem;
  display: none;
}
.auth-message.error   { background: #fff0f0; color: #991b1b; border: 1px solid #fca5a5; display: block; }
.auth-message.success { background: #f0fdf4; color: #166534; border: 1px solid #86efac; display: block; }

/* ---- DASHBOARD ---- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--header-height) - 60px);
  gap: 0;
}

@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
}

.dashboard-sidebar {
  background: var(--ink);
  color: #c4b9a5;
  padding: 1.5rem 0;
  border-left: 1px solid rgba(255,255,255,0.06);
}

.dashboard-sidebar h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  padding: 0.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.5rem;
}

.dashboard-nav { list-style: none; }
.dashboard-nav a, .dashboard-nav button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  color: #c4b9a5;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: none;
  border: none;
  cursor: pointer;
  text-align: right;
  transition: background 0.15s, color 0.15s;
}
.dashboard-nav a:hover,
.dashboard-nav a.active,
.dashboard-nav button:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.dashboard-nav a.active { border-right: 3px solid var(--accent-gold); }

.dashboard-nav .nav-section-label {
  padding: 1rem 1.5rem 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c4a2e;
}

.dashboard-main {
  background: var(--paper);
  padding: 2rem 2.5rem;
  overflow-y: auto;
}

.dashboard-main h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--border-rule-dark);
}

/* Dashboard stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) { .dashboard-stats { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--surface);
  border: var(--border-rule);
  padding: 1.25rem;
  text-align: center;
}

.stat-card__value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-card__label { font-size: 0.82rem; color: var(--ink-light); }

/* Post list in dashboard */
.post-list-item {
  background: var(--surface);
  border: var(--border-rule);
  padding: 1rem 1.25rem;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s;
}

.post-list-item:hover { box-shadow: var(--shadow-sm); }

.post-list-item__info { flex: 1; min-width: 0; }
.post-list-item__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.post-list-item__meta { font-size: 0.78rem; color: var(--ink-light); display: flex; gap: 0.75rem; flex-wrap: wrap; }

.post-list-item__actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm-edit     { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.btn-sm-edit:hover { background: #bfdbfe; }
.btn-sm-approve  { background: #dcfce7; color: #166534; border-color: #86efac; }
.btn-sm-approve:hover { background: #bbf7d0; }
.btn-sm-reject   { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.btn-sm-reject:hover { background: #fecaca; }
.btn-sm-delete   { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.btn-sm-delete:hover { background: #fee2e2; }
.btn-sm-view     { background: var(--paper-dark); color: var(--ink); border-color: var(--ink-faint); }
.btn-sm-view:hover { background: var(--ink); color: #fff; }
.btn-sm-feature  { background: #fef9c3; color: #854d0e; border-color: #fde047; }
.btn-sm-feature:hover { background: #fde68a; }

/* Section management table */
.section-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.section-table th {
  text-align: right;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
}
.section-table td {
  padding: 0.75rem 1rem;
  border-bottom: var(--border-rule);
  vertical-align: middle;
}
.section-table tr:hover td { background: var(--paper); }

.section-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
}

.section-active-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 2px;
}
.section-active-badge.active   { background: #dcfce7; color: #166534; }
.section-active-badge.inactive { background: #fee2e2; color: #991b1b; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,17,8,0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open { display: flex; animation: fade-up 0.2s ease; }

.modal {
  background: var(--surface);
  border: var(--border-rule-dark);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--border-rule-dark);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: var(--border-rule);
}

/* Submit/editor card */
.editor-card {
  background: var(--surface);
  border: var(--border-rule);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .editor-card {
    padding: 1.25rem 0.85rem;
  }
}

.editor-card h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: var(--border-rule-dark);
}

/* ---- ABOUT PAGE ---- */
.about-header {
  text-align: center;
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, var(--ink) 0%, #2a1a1a 100%);
  color: #fff;
  margin-bottom: 3rem;
  border-bottom: 4px double var(--accent-gold);
}

.about-header h1,
.about-header__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.about-header p,
.about-header__subtitle {
  color: var(--accent-gold-light);
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  letter-spacing: 0.1em;
  max-width: 650px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .about-header {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

.about-section {
  background: var(--surface);
  border: var(--border-rule);
  padding: 2rem;
}

.about-section h2 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--accent); }

/* ---- LOADING ---- */
.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--ink-faint);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-placeholder {
  text-align: center;
  padding: 3rem;
  color: var(--ink-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ---- RESPONSIVE TWEAKS ---- */
@media (max-width: 768px) {
  .article-page__title { font-size: 1.7rem; }
  .dashboard-main { padding: 1.25rem; }
  .dashboard-sidebar { display: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .modal { max-width: 100%; }
}

/* ---- ARCHIVE GALLERY (VINTAGE PAPERS) ---- */
.archive-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3.5rem 0;
}

.archive-card {
  background: var(--paper-dark);
  border: 1px solid var(--ink-faint);
  padding: 0.75rem;
  box-shadow: 0 4px 15px rgba(26,26,26,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,26,26,0.08);
}

.archive-card::before {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 1px solid var(--ink-faint);
  pointer-events: none;
}

.archive-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--ink);
}

.archive-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.3) contrast(1.1);
  transition: filter 0.3s ease, transform 0.5s ease;
}

.archive-card:hover .archive-img-wrap img {
  filter: sepia(0) contrast(1);
  transform: scale(1.05);
}

.archive-caption {
  margin-top: 1rem;
  padding: 0.5rem 0.25rem 0;
  text-align: center;
}

.archive-caption h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.archive-caption p {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ---- ABOUT PAGE DECORATIVE TIMELINE ---- */
.history-timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
  padding: 1rem 0;
}

.history-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 50%;
  width: 1px;
  background: var(--ink-faint);
}

.timeline-event {
  width: 50%;
  padding: 1rem 2rem;
  position: relative;
  box-sizing: border-box;
}

.timeline-event:nth-child(odd) {
  right: 0;
  text-align: right;
}

.timeline-event:nth-child(even) {
  right: 50%;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid var(--ink);
  z-index: 10;
}

.timeline-event:nth-child(odd) .timeline-badge {
  left: -6px;
}

.timeline-event:nth-child(even) .timeline-badge {
  right: -6px;
}

.timeline-content {
  background: var(--paper-dark);
  border: 1px solid var(--ink-faint);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.timeline-date {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.5;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .history-timeline::before {
    right: 15px;
  }
  .timeline-event {
    width: 100%;
    right: 0 !important;
    text-align: right !important;
    padding: 1rem 0 1rem 2.5rem;
  }
  .timeline-event:nth-child(odd) .timeline-badge,
  .timeline-event:nth-child(even) .timeline-badge {
    right: 9px;
    left: auto;
  }
}

/* ---- EDITORIAL BOARD ---- */
.editorial-board {
  margin: 4rem 0 2rem;
  text-align: center;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.board-member {
  background: var(--paper-dark);
  border: 1px solid var(--ink-faint);
  padding: 2rem 1.5rem;
  transition: transform 0.25s;
}

.board-member:hover {
  transform: translateY(-2px);
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.member-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.member-role {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.member-bio {
  font-size: 0.78rem;
  color: var(--ink-light);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Dropcaps for elegant print feel */
.post-card__excerpt::first-letter {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  float: right;
  margin-left: 0.75rem;
  color: var(--accent);
  line-height: 1;
  font-weight: 700;
}

/* Lettrine drop word style specifically for Arabic */
.lettrine {
  font-size: 2.5rem;
  font-weight: bold;
  float: right;
  margin-left: 0.5rem;
  line-height: 1.1;
  font-family: var(--font-serif);
  color: var(--accent);
}

/* VINTAGE ASYMMETRICAL BROADSHEET GRID */
.vintage-broadsheet-grid {
  display: grid;
  grid-template-columns: 22% 56% 22%;
  gap: 1.5rem;
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
  padding: 1.5rem 0;
  margin-bottom: 2.5rem;
  background: var(--paper-dark);
}

.broadsheet-col {
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Dividing borders between columns (remember RTL: right-to-left, so left border separates them) */
.broadsheet-col:not(:last-child) {
  border-left: 1px solid var(--ink-faint);
}

.broadsheet-col--breaking h3,
.broadsheet-col--editorial h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--accent);
}

/* News items list */
.broadsheet-news-item {
  border-bottom: 1px dashed var(--ink-faint);
  padding: 0.75rem 0;
}
.broadsheet-news-item:last-child {
  border-bottom: none;
}
.broadsheet-news-item h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}
.broadsheet-news-item h4 a:hover {
  color: var(--accent);
}
.broadsheet-news-item time {
  font-size: 0.75rem;
  color: var(--ink-light);
}

/* MAJESTIC LOGO & HEADER STRUCTURE */
.utility-top-bar {
  background: var(--paper-dark);
  border-bottom: 1px solid var(--ink-faint);
  padding: 0.25rem 0;
  font-size: 0.8rem;
}
.utility-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.utility-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.masthead-main {
  padding: 1rem 0 0.8rem;
  background: var(--paper);
}

.masthead-grid {
  display: grid;
  grid-template-columns: 25% 50% 25%;
  align-items: center;
  text-align: center;
}

.masthead-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.broadsheet-logo-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-light);
}

.masthead-meta-box {
  border: 1px solid var(--ink-faint);
  padding: 0.4rem 0.5rem;
  background: var(--paper-dark);
  font-size: 0.75rem;
  line-height: 1.5;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.02);
}
.masthead-meta-box--right {
  text-align: right;
}
.masthead-meta-box--left {
  text-align: left;
}
.meta-item {
  color: var(--ink-light);
  font-family: var(--font-sans);
}
.meta-item:first-child {
  font-weight: bold;
  color: var(--ink);
}

.broadsheet-double-line {
  height: 4px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 0.25rem 0;
}

/* NAVIGATION MENU */
.main-nav-broadsheet {
  background: var(--paper);
  padding: 0.35rem 0;
}
.nav-links-broadsheet {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 0.5rem 0.85rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
.nav-links-broadsheet li a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-links-broadsheet li a:hover,
.nav-links-broadsheet li a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* LITHOGRAPH IMAGE STYLING */
.post-card__img-wrap img,
.post-row__img-link img,
.article-featured-image img,
.hero-post img {
  filter: grayscale(100%) contrast(150%) brightness(95%);
  border: 1px solid var(--ink) !important;
  padding: 4px;
  background: var(--paper) !important;
  transition: filter 0.3s ease;
}
.post-card__img-wrap img:hover,
.article-featured-image img:hover {
  filter: grayscale(0%) contrast(100%) brightness(100%);
}

.post-card__image-caption,
.broadsheet-caption {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
  color: var(--ink-light);
  margin-top: 0.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* SECTION RULE STYLING */
.section-rule {
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink-faint);
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-rule__label {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  color: var(--ink);
}

/* RESPONSIVE broadsheet */
@media (max-width: 992px) {
  .vintage-broadsheet-grid {
    grid-template-columns: 1fr;
  }
  .broadsheet-col:not(:last-child) {
    border-left: none;
    border-bottom: 1px solid var(--ink-faint);
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
  }
  .masthead-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .masthead-meta-box {
    text-align: center !important;
  }
}

/* ============================================================
   NEW ADDITIONS — Sticky Header Shrink + Newspaper Cards
   ============================================================ */

/* ---- Sticky header transition ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  transition: box-shadow 0.3s ease;
}
.site-header.header--scrolled {
  box-shadow: 0 2px 12px rgba(43,43,43,0.12);
}
.masthead-main {
  transition: padding 0.3s ease, opacity 0.3s ease;
  /* No overflow:hidden — that was blocking scroll events */
}
.masthead-main.masthead--compact {
  padding: 0.3rem 0 !important;
}
.masthead-main.masthead--compact .masthead-meta-box {
  display: none;
}
.masthead-main.masthead--compact .broadsheet-logo-title {
  font-size: 1.8rem;
  margin-bottom: 0;
}
.masthead-main.masthead--compact .logo-subtitle {
  display: none;
}
.masthead-main.masthead--compact .masthead-grid {
  grid-template-columns: 1fr;
  justify-items: center;
}


/* ---- Editorial Column overflow fix ---- */
.broadsheet-col--editorial {
  overflow: hidden;
}
.broadsheet-col--editorial h3,
.broadsheet-col--breaking h3 {
  background: var(--paper-dark);
  padding: 0.4rem 0.5rem 0.5rem;
  margin: -0.5rem -1rem 1rem;
  position: relative;
}

/* ---- Newspaper inline-image post card ---- */
.post-card--newspaper {
  border-bottom: 1px dashed var(--ink-faint);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.post-card--newspaper:last-child {
  border-bottom: none;
}
#postsGrid .post-card--newspaper {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.post-card__newspaper-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.post-card__newspaper-img {
  flex: 0 0 120px;
  width: 120px;
  display: block;
}
.post-card__newspaper-img img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  filter: grayscale(100%) contrast(140%) brightness(93%);
  border: 1px solid var(--ink);
  display: block;
  transition: filter 0.3s;
}
.post-card__newspaper-img:hover img {
  filter: grayscale(0%) contrast(100%) brightness(100%);
}
.post-card__newspaper-img .post-card__image-caption {
  font-size: 0.68rem;
  margin-top: 0.3rem;
}
.post-card--newspaper .post-card__body {
  flex: 1;
  min-width: 0;
}
.post-card--newspaper .post-card__title {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.post-card__excerpt--sm {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

/* ---- Article page inline image (newspaper style) ---- */
.article-page__cover {
  float: left;
  margin: 0 0 1rem 1.5rem;
  width: 42%;
  max-width: 340px;
  filter: grayscale(100%) contrast(145%) brightness(93%);
  border: 1px solid var(--ink);
  padding: 4px;
  background: var(--paper);
}
.article-page__cover-caption {
  float: left;
  clear: left;
  margin: -0.75rem 0 1rem 1.5rem;
  width: 42%;
  max-width: 340px;
  font-size: 0.75rem;
  font-style: italic;
  text-align: center;
  color: var(--ink-light);
  line-height: 1.3;
}
.article-page__body::after {
  content: '';
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .article-page {
    padding: 1rem 0 3rem;
  }
  .article-page__title {
    font-size: clamp(1.5rem, 5.5vw, 2.1rem) !important;
    line-height: 1.35 !important;
  }
  .article-page__cover {
    float: none !important;
    margin: 1rem 0 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .article-page__cover-caption {
    float: none !important;
    clear: both !important;
    margin: 0 0 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .article-page__meta {
    gap: 0.6rem !important;
    font-size: 0.8rem !important;
    padding: 0.75rem 0 !important;
  }
  .article-page__author-block {
    flex-direction: column !important;
    text-align: center;
    gap: 0.75rem !important;
    padding: 1.25rem !important;
  }
  .article-page__share {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center;
  }
}

/* ---- View count badge ---- */
.view-count {
  color: var(--ink-light);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ---- Favorites button on article page ---- */
.fav-btn {
  background: none;
  border: 1px solid var(--ink-faint);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink-light);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.fav-btn:hover, .fav-btn.is-fav {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.fav-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.25rem;
}

/* Auth page: password confirm field */
.auth-page-bg .form-group.strength-bar-wrap {
  margin-top: -0.5rem;
}

/* Section posts newspaper style layout */
.section-posts-newspaper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ============================================================
   NEWSPAPER SECTION LAYOUT — Authentic 3-column journal page
   ============================================================ */

.newspaper-section {
  border: 2px solid var(--ink);
  margin: 2.5rem 0;
  background: var(--paper);
  /* Subtle inner shadow for a "printed page" feel */
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(43,43,43,0.08);
  position: relative;
}

/* Section Header Bar — Solid colored ink banner */
.nps-header {
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-bottom: 2px solid var(--ink);
}
.nps-header__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-align: center;
  flex: 0 0 auto;
}
.nps-header__ornament {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  flex: 1;
  text-align: center;
}

/* 3-Column Newspaper Grid */
.nps-grid {
  display: grid;
  /* RTL: col 1 = big (55%), col 2 = medium (27%), col 3 = narrow (18%) */
  grid-template-columns: 55% 27% 18%;
  gap: 0;
  min-height: 280px;
}

.nps-col {
  padding: 1.25rem 1.1rem;
  position: relative;
}

/* Vertical dividers between columns */
.nps-col + .nps-col {
  border-right: 1px solid var(--ink);
}

/* Main (big) column */
.nps-col--main {
  /* Largest column — already defined by grid */
}

/* Secondary column */
.nps-col--secondary {
  /* Medium column */
}

/* Tertiary (narrow) column */
.nps-col--tertiary {
  background: var(--paper-dark);
  font-size: 0.9rem;
}

/* Article titles */
.nps-title {
  font-family: var(--font-serif);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.nps-title a {
  color: var(--ink);
  text-decoration: none;
}
.nps-title a:hover { color: var(--accent); }

.nps-title--main {
  font-size: 1.45rem;
  font-weight: 700;
  border-bottom: 2px solid var(--ink-faint);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}
.nps-title--secondary {
  font-size: 1rem;
  font-weight: 700;
}

/* Excerpt */
.nps-excerpt {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink-mid);
  text-align: justify;
  margin-bottom: 0.6rem;
}
.nps-excerpt--sm {
  font-size: 0.8rem;
  line-height: 1.5;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

/* Meta (date, reading time) */
.nps-meta {
  font-size: 0.72rem;
  color: var(--ink-light);
  font-family: var(--font-sans);
  margin-top: 0.5rem;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  align-items: center;
}
.nps-sep { opacity: 0.5; }

/* Image link */
.nps-img-link {
  display: block;
  margin-bottom: 0.6rem;
}
.nps-img-caption {
  display: block;
  font-style: italic;
  font-size: 0.7rem;
  color: var(--ink-light);
  text-align: center;
  line-height: 1.3;
  padding: 0.2rem 0.5rem;
  background: var(--paper-dark);
  border-left: 1px solid var(--ink-faint);
  border-right: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
}

/* "Browse section" link */
.nps-more-link {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.nps-more-link:hover { color: var(--accent-hover); }

/* Responsive: collapse to single column on small screens */
@media (max-width: 900px) {
  .nps-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nps-col--tertiary {
    grid-column: span 2;
    border-top: 1px solid var(--ink-faint);
    border-right: none;
  }
}
@media (max-width: 640px) {
  .nps-grid {
    grid-template-columns: 1fr;
  }
  .nps-col + .nps-col {
    border-right: none;
    border-top: 1px solid var(--ink-faint);
  }
  .nps-col--tertiary {
    grid-column: span 1;
  }
}

/* ---- Remove old "home-masthead-rule" bar if it sneaks in ---- */
.home-masthead-rule { display: none; }

@media (max-width: 900px) {
  .utility-inner {
    justify-content: space-between !important;
  }
  .nav-links-broadsheet {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .main-nav-container {
    padding: 0 1rem;
  }
}

/* ── List/Grid View Toggle and List Card Styles ─────────── */
.view-toggle-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #8B7E74;
}

.view-toggle-btn {
  background: none;
  border: 1px solid #8B7E74;
  color: #8B7E74;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-family: 'Cairo', sans-serif;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover, .view-toggle-btn.active {
  background: #2B2B2B;
  color: #F4F1EA;
  border-color: #2B2B2B;
}

.post-list-row {
  display: flex;
  gap: 2rem;
  background: #fdfcf7;
  border: 1px solid #e2dccf;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  direction: rtl;
}

.post-list-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  border-color: #8B7E74;
}

.post-list-row__img-link {
  width: 260px;
  height: 180px;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
  border: 1px solid #8B7E74;
  border-radius: 4px;
}

.post-list-row__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-list-row:hover .post-list-row__img {
  transform: scale(1.05);
}

.post-list-row__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-list-row__section {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.post-list-row__title {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.post-list-row__title a {
  color: #2B2B2B;
  text-decoration: none;
  transition: color 0.2s;
}

.post-list-row__title a:hover {
  color: #c0392b;
}

.post-list-row__excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 1rem 0;
  text-align: justify;
}

.post-list-row__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.75rem;
  font-family: 'Cairo', sans-serif;
  color: #8B7E74;
}

.post-list-row__sep {
  color: #d4cfc8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .post-list-row {
    flex-direction: column;
    gap: 1rem;
  }
  .post-list-row__img-link {
    width: 100%;
    height: 200px;
  }
}

/* Compact text-only list rows for broadsheet style */
.post-list-row--compact {
  gap: 0;
  background: none !important;
  border: none !important;
  border-bottom: 1px dashed #e2dccf !important;
  padding: 0.5rem 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0.5rem !important;
  align-items: center !important;
}

.post-list-row--compact:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: #8B7E74 !important;
  background: rgba(139, 126, 116, 0.03) !important;
}

.post-list-row--compact .post-list-row__title {
  font-size: 1.25rem !important;
  font-weight: 700;
  margin-bottom: 0.25rem !important;
}

.post-list-row--compact .post-list-row__meta {
  font-size: 0.75rem !important;
  margin-top: 0 !important;
}
