/* ═══════════════════════════════════════════════
   news.css — Страница категории Жаңалықтар
   ═══════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}
.breadcrumb {
  margin: 0;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
}
.breadcrumb-item a {
  color: var(--green-mid);
  text-decoration: none;
}
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--text-gray); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-gray); }

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 36px 0 32px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
  font-family: 'KZBookman', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: normal;
  color: #fff;
  position: relative;
  margin: 0 0 6px;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin: 0;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}
.page-hero-line {
  width: 44px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 14px;
  position: relative;
}

/* ── Main wrap ── */
.news-page-wrap {
  padding: 40px 0 60px;
  background: var(--gray-bg);
}

/* ── News grid cards ── */
.news-page-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tr), transform var(--tr);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.news-page-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.news-page-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #e4ede8;
  flex-shrink: 0;
}
.news-page-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.news-page-card:hover .news-page-card-img img {
  transform: scale(1.05);
}
.news-page-card-img.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-page-card-img.no-img i {
  font-size: 36px;
  color: rgba(27,77,53,0.15);
}

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

.news-page-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.news-page-date,
.news-page-views {
  font-size: 11px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-page-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page-excerpt {
  font-size: 12.5px;
  color: var(--text-gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-page-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.news-read-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-mid);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--tr);
}
.news-page-card:hover .news-read-more { gap: 9px; }

/* ── Pagination ── */
.news-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.news-pagination .page-link {
  color: var(--green-dark);
  border-color: var(--border-light);
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
}
.news-pagination .page-item.active .page-link {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.news-pagination .page-link:hover {
  background: #f0f7f3;
  color: var(--green-mid);
}

@media (max-width: 767px) {
  .news-page-card-img { height: 180px; }
  .page-hero h1 { font-size: 1.5rem; }
}
