/* اخبار و مقالات — فهرست مجله‌ای و صفحه خواندن */
.page-news,
.page-news-article {
  background: #f4f8f7;
  color: #3d5653;
}

.news-list-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h, calc(var(--nav-h) + var(--vote-bar-h, 0px))) + 1.6rem) 0 2.2rem;
  color: #f7fffc;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(85, 201, 195, 0.26), transparent 58%),
    radial-gradient(ellipse 50% 45% at 92% 8%, rgba(232, 146, 10, 0.2), transparent 52%),
    linear-gradient(155deg, #001f1f 0%, #003838 48%, #0a5a53 100%);
}

.news-list-hero__copy {
  max-width: 40rem;
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: right;
}

.news-list-hero .about-hero__eyebrow {
  margin: 0 0 0.75rem;
  color: #f0b45a;
  font-weight: 800;
}

.news-list-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 900;
  line-height: 1.45;
  color: #fff;
}

.news-list-hero p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.9;
  color: rgba(247, 255, 252, 0.88);
}

.news-archive-wrap {
  padding: 1.75rem 0 3.5rem;
}

.news-archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.news-archive .news-card--feature {
  grid-column: 1 / -1;
  display: grid;
}

.news-archive .news-card--feature .news-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  min-height: 340px;
}

.news-archive .news-card--feature .news-card__img {
  height: 100%;
  min-height: 340px;
}

.news-archive .news-card--feature h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.5;
}

.news-archive .news-card--feature p {
  font-size: 0.95rem;
  line-height: 1.85;
}

.news-empty {
  padding: 2rem 1.2rem;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(6, 46, 44, 0.18);
  border-radius: 18px;
}

/* کارت‌های مجله‌ای (فهرست + مرتبط) */
.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-card__more {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0a5a53;
}

.page-news .news-card__img,
.page-news-article .news-card__img {
  height: 210px;
  background-size: cover;
  background-position: center;
}

/* ─── صفحه مقاله — ساختار تحریریه ─── */
.news-progress {
  position: fixed;
  top: var(--header-h, calc(var(--nav-h) + var(--vote-bar-h, 0px)));
  right: 0;
  left: 0;
  z-index: 90;
  height: 3px;
  pointer-events: none;
  background: rgba(0, 45, 45, 0.08);
}

.news-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #e8920a, #f0b45a);
  transform-origin: right;
}

.news-story-wrap {
  padding: calc(var(--header-h, calc(var(--nav-h) + var(--vote-bar-h, 0px))) + 1.35rem) 1.15rem 3.5rem;
}

.news-story {
  max-width: 48rem;
  margin: 0 auto 2.75rem;
  padding: 1.85rem 1.45rem 2rem;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 28, 28, 0.08);
}

.news-story__head {
  text-align: right;
}

.news-story__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.15rem;
  font-size: 0.78rem;
  color: #6a8180;
}

.news-story__crumb a {
  color: #0a5a53;
  text-decoration: none;
  font-weight: 700;
}

.news-story__kicker {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.2rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #3b2a08;
  background: #f0b45a;
  border-radius: 999px;
}

.news-story h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.5;
  color: #062e2c;
}

.news-story__dek {
  margin: 0 0 1.15rem;
  padding: 0.15rem 0 0.15rem 0;
  padding-right: 1rem;
  border-right: 3px solid #e8920a;
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.95;
  color: #1f4440;
}

.news-story__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  margin: 0 0 1.6rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(6, 46, 44, 0.12);
  border-bottom: 1px solid rgba(6, 46, 44, 0.12);
  font-size: 0.84rem;
  color: #4d6764;
}

.news-story__brand {
  font-weight: 800;
  color: #0a5a53;
}

.news-story__cover {
  margin: 0 -0.55rem 1.85rem;
}

.news-story__cover-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  max-height: min(68vh, 620px);
  border-radius: 22px;
  background: #001a1a;
  box-shadow: 0 22px 48px rgba(0, 28, 28, 0.16);
}

.news-story__cover-img,
.news-story__cover-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.news-story__cover-img {
  object-fit: cover;
  object-position: center;
}

.news-story__cover-img[hidden] {
  display: none;
}

.news-story__cover-plate {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.6rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 12% 20%, rgba(85, 201, 195, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 40% at 92% 8%, rgba(232, 146, 10, 0.22), transparent 52%),
    linear-gradient(155deg, #001616 0%, #003838 48%, #0a5a53 100%);
  color: #f7fffc;
}

.news-story__cover-plate span {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
}

.news-story__cover-plate em {
  font-style: normal;
  font-size: 0.88rem;
  color: #f0b45a;
}

.news-story.has-photo .news-story__cover-plate {
  display: none;
}

.news-story__cover-cap {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  margin: 0.65rem 0.55rem 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #5d7370;
}

.news-story__cover-cap::before {
  content: "";
  width: 2px;
  background: #e8920a;
  border-radius: 2px;
  flex-shrink: 0;
}

.news-story__body {
  font-size: 1.06rem;
  line-height: 2.1;
  color: #1e3a37;
  text-align: justify;
  text-justify: inter-word;
  overflow-wrap: break-word;
}

.news-story__body > *:first-child {
  margin-top: 0;
}

.news-story__body ul,
.news-story__body ol {
  margin: 0 0 1.15rem;
  padding-right: 1.25rem;
}

.news-story__body li {
  margin: 0 0 0.45rem;
}

.news-story__body > p:first-of-type {
  font-size: 1.12rem;
  font-weight: 600;
  color: #163532;
}

.news-story__body h2,
.news-story__body h3 {
  margin: 1.85rem 0 0.7rem;
  color: #062e2c;
  line-height: 1.55;
}

.news-story__body a {
  color: #0a5a53;
  font-weight: 700;
}

.news-story__body blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 1.1rem;
  border-right: 3px solid #e8920a;
  background: #f6faf8;
  border-radius: 0 12px 12px 0;
  font-size: 1.05rem;
  color: #0a3d39;
}

.news-story__body img,
.news-story__body figure {
  display: block;
  width: calc(100% + 1.5rem);
  max-width: none;
  margin: 1.7rem -0.75rem;
}

.news-story__body img {
  height: auto;
  min-height: 240px;
  max-height: min(70vh, 540px);
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 40, 40, 0.12);
}

.news-story__body figure img {
  width: 100%;
  margin: 0;
}

.news-story__body figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #5d7370;
  text-align: center;
}

.news-story__foot {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(6, 46, 44, 0.1);
}

.news-story__source {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: #5d7370;
}

.news-read__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (min-width: 760px) {
  .news-story {
    padding: 2.35rem 2.5rem 2.45rem;
  }

  .news-story__cover {
    margin: 0 -1.05rem 2rem;
  }

  .news-story__cover-cap {
    margin-inline: 1.05rem;
  }
}

.news-related {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.25rem 0 0;
}

.news-related h2 {
  margin: 0 0 1rem;
  font-size: 1.12rem;
  color: #062e2c;
}

.news-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-related .news-card__img {
  height: 168px;
}

@media (max-width: 960px) {
  .news-archive {
    grid-template-columns: 1fr 1fr;
  }

  .news-archive .news-card--feature .news-card__link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .news-archive .news-card--feature .news-card__img {
    min-height: 240px;
    height: 240px;
  }

  .news-related__grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-story__dek {
    font-size: 1.02rem;
  }

  .news-story__body {
    text-align: right;
    text-justify: auto;
    font-size: 0.98rem;
    line-height: 1.95;
  }

  .news-story__body img,
  .news-story__body figure {
    width: 100%;
    margin-inline: 0;
  }
}

@media (max-width: 640px) {
  .news-archive,
  .news-related__grid {
    grid-template-columns: 1fr;
  }

  .news-list-hero {
    padding: calc(var(--header-h, calc(var(--nav-h) + var(--vote-bar-h, 0px))) + 1.15rem) 0 1.6rem;
  }

  .news-list-hero h1 {
    font-size: 1.32rem;
  }

  .news-story h1 {
    font-size: 1.35rem;
  }

  .news-story {
    padding: 1.35rem 1.05rem 1.55rem;
    border-radius: 18px;
  }

  .news-story__cover {
    margin-inline: -0.35rem;
  }

  .news-story__cover-frame {
    min-height: 220px;
    border-radius: 16px;
  }

  .news-story__body img {
    min-height: 200px;
    max-height: 52vh;
    border-radius: 14px;
  }
}
