/* =========================================
   لیست اخبار
========================================= */
.news-page-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.news-hero {
  text-align: center;
  margin: 30px 0 40px;
}

.news-hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark, #073660);
  margin: 0 0 8px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.news-hero h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 70px;
  height: 4px;
  background: var(--accent, #f1c40f);
  border-radius: 2px;
}

.news-hero p {
  color: var(--text-muted, #7a8b99);
  font-size: 0.95rem;
  margin: 10px 0 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white, #fff);
  border: 1px solid var(--border, #eef2f5);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11, 59, 92, 0.12);
  border-color: #d0e3ef;
}

.news-card-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #eaf4fa, #d6e8f2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-placeholder {
  font-size: 3rem;
  color: var(--primary-light, #1e6d9a);
  opacity: 0.5;
}

.news-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted, #7a8b99);
  margin-bottom: 10px;
}

.news-card-date svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.news-card-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary, #0b3b5c);
  margin: 0 0 14px;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-light, #1e6d9a);
  font-size: 0.85rem;
  font-weight: 700;
}

.news-card-more span {
  transition: transform 0.2s;
}

.news-card:hover .news-card-more span {
  transform: translateX(-4px);
}

/* =========================================
   صفحه جزئیات خبر
========================================= */
.news-single-wrapper {
  max-width: 820px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-light, #1e6d9a);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 20px 0 24px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent, #f1c40f);
}

.news-single {
  background: var(--white, #fff);
  border: 1px solid var(--border, #eef2f5);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 8px 24px rgba(11, 59, 92, 0.06);
}

.news-single-header {
  border-bottom: 1px solid var(--border, #eef2f5);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.news-single-header h1 {
  font-size: 1.6rem;
  color: var(--primary-dark, #073660);
  margin: 0;
  line-height: 1.6;
}

.news-single-image {
  margin: 0 -36px 24px;
  max-height: 420px;
  overflow: hidden;
}

.news-single-image img {
  width: 100%;
  height: auto;
  display: block;
}

.news-single-body {
  font-size: 1rem;
  line-height: 2;
  color: var(--text, #1a2b3c);
  white-space: pre-line;
}

/* =========================================
   پیام خالی / 404
========================================= */
.no-results-box {
  text-align: center;
  padding: 40px 30px;
  background: var(--white, #fff);
  border-radius: 16px;
  border: 1px solid var(--border, #eef2f5);
  color: var(--text-muted, #7a8b99);
  font-size: 1rem;
}

.no-results-box h2 {
  margin: 0 0 8px;
  color: var(--primary, #0b3b5c);
}

/* =========================================
   ریسپانسیو
========================================= */
@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .news-page-wrapper {
    padding: 0 16px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-hero h1 {
    font-size: 1.4rem;
  }
  .news-single {
    padding: 22px 18px;
    border-radius: 14px;
  }
  .news-single-image {
    margin: 0 -18px 20px;
  }
  .news-single-header h1 {
    font-size: 1.2rem;
  }
}
