/* استایل اختصاصی صفحه اخبار — هم‌سبک کارت‌های صفحه اصلی */
.news-page {
  --navy: #122a5c;
  --blue-mid: #1e4fa3;
  --muted: #5b6b85;
  padding: 40px 0;
  background: var(--page-bg, #f9f9f9);
}

.news-page-title-box {
  background-color: #e8eef8;
  padding: 15px 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: right;
}

.news-page-title-box h1 {
  color: var(--page-text, #333);
  font-size: 1.8rem;
  margin: 0;
}

.news-grid-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.news-card-skeleton {
  min-height: 420px;
  border-radius: 18px;
  border: 1px solid #e4eefb;
  background:
    linear-gradient(90deg, #eef3fb 0%, #f7f9fd 45%, #eef3fb 90%) 0 0 / 200% 100%,
    #f3f6fc;
  animation: news-skel 1.2s ease-in-out infinite;
}

@keyframes news-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted, #5b6b85);
  padding: 48px 16px;
  margin: 0;
}

.news-card-page {
  background: var(--page-card-bg, #fff);
  border: 1px solid #e4eefb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 48, 110, 0.08);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}

.news-card-page:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(15, 48, 110, 0.14);
  border-color: #b7d3f7;
}

.news-card-page .news-card-image {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  margin: 12px 12px 0;
  border: 3px solid var(--blue-mid);
  border-radius: 12px;
}

.news-card-page .news-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  background: #e8f0fb;
  transition: transform 0.45s ease;
  border-radius: 10px;
}

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

.news-card-page .news-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(30, 79, 163, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(15, 48, 110, 0.2);
}

.news-card-page .news-badge i {
  font-size: 0.72rem;
  opacity: 0.95;
}

.news-card-page .news-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: start;
  min-height: 0;
}

.news-card-page .news-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.news-card-page .news-date i {
  color: var(--blue-mid);
  font-size: 0.9rem;
}

.news-card-page .news-card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-page .news-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card-page .news-card-body h3 a:hover {
  color: var(--blue-mid);
}

.news-card-page .news-card-body p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
  flex: 1;
}

.news-card-page .news-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.news-card-page .news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-mid);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.news-card-page .news-read-more:hover {
  color: var(--navy);
  gap: 12px;
}

body.lang-en .news-page-title-box {
  text-align: left;
}

body.lang-en .news-card-page .news-card-body,
body.lang-en .news-card-page .news-card-body h3,
body.lang-en .news-card-page .news-date {
  text-align: left;
}

body.lang-en .news-card-page .news-card-actions {
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .news-card-page {
    min-height: 0;
  }

  .news-card-page .news-card-image img {
    height: 200px;
  }
}
