/* ====================================================
   ZakonExpert — News Styles (TengriNews-inspired)
   ==================================================== */

/* ─── HERO ─────────────────────────────────────────── */
.news-hero {
  background: linear-gradient(135deg, #0f2044 0%, #1a3560 100%);
  padding: 2.75rem 0 2.25rem;
  color: #fff;
}
.news-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0.4rem 0 0.9rem;
  line-height: 1.3;
}
.news-hero-lead {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 0 1.4rem;
  line-height: 1.65;
}
.news-breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.7rem;
}
.news-breadcrumb a { color: rgba(255,255,255,0.72); text-decoration: none; }
.news-breadcrumb a:hover { color: #fff; }

/* ─── CATEGORY TABS ──────────────────────────────── */
.news-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.news-categories a {
  padding: 0.28rem 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.18s;
  white-space: nowrap;
}
.news-categories a:hover,
.news-categories a.active {
  background: #d7a742;
  border-color: transparent;
  color: #0f2044;
  font-weight: 700;
}

/* ─── SECTION CONTAINER ─────────────────────────── */
.news-section {
  padding: 2.5rem 0 4rem;
  background: #f5f7fa;
}

/* ─── TOP FEATURED ROW ──────────────────────────── */
.news-top-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Main big featured article */
.news-featured-main {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.09);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s;
  text-decoration: none;
  color: inherit;
}
.news-featured-main:hover {
  box-shadow: 0 10px 32px rgba(15,32,68,0.15);
}
.news-featured-main-img {
  height: 310px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0f2044, #1a3560);
}
.news-featured-main-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.news-featured-main:hover .news-featured-main-img img {
  transform: scale(1.04);
}
.news-featured-cat-badge {
  position: absolute; top: 14px; left: 14px;
  background: #d7a742; color: #0f2044;
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 0.22rem 0.75rem; border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.news-featured-main-body {
  padding: 1.4rem 1.6rem 1.5rem;
  flex: 1; display: flex; flex-direction: column;
}
.news-featured-main-meta {
  display: flex; align-items: center; gap: 0.55rem;
  flex-wrap: wrap; margin-bottom: 0.65rem;
}
.news-featured-main-body h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 800; line-height: 1.35;
  color: #0f2044; margin: 0 0 0.7rem; flex: 1;
}
.news-featured-main-body h2 a {
  color: inherit; text-decoration: none;
}
.news-featured-main-body h2 a:hover { color: #1a3560; text-decoration: underline; }
.news-featured-excerpt {
  font-size: 0.92rem; color: #64748b; line-height: 1.65;
  margin-bottom: 1.1rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-featured-readmore {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 800; color: #1a3560;
  text-decoration: none; margin-top: auto;
  transition: color 0.18s;
}
.news-featured-readmore:hover { color: #d7a742; }
.news-featured-readmore svg { transition: transform 0.18s; }
.news-featured-readmore:hover svg { transform: translateX(3px); }

/* Secondary cards column */
.news-featured-side {
  display: flex; flex-direction: column; gap: 1rem;
}
.news-secondary-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: grid;
  grid-template-columns: 108px 1fr;
  flex: 1;
  transition: box-shadow 0.2s;
  text-decoration: none; color: inherit;
}
.news-secondary-card:hover {
  box-shadow: 0 6px 22px rgba(15,32,68,0.12);
}
.news-secondary-img {
  overflow: hidden;
  background: linear-gradient(135deg, #0f2044, #1a3560);
}
.news-secondary-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.28s;
  display: block;
}
.news-secondary-card:hover .news-secondary-img img { transform: scale(1.06); }
.news-secondary-body {
  padding: 0.85rem 1rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.news-secondary-meta {
  font-size: 0.7rem; color: #94a3b8;
}
.news-secondary-title {
  font-size: 0.88rem; font-weight: 700; line-height: 1.38; color: #0f2044;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.news-secondary-title a { color: inherit; text-decoration: none; }
.news-secondary-title a:hover { color: #1a3560; text-decoration: underline; }
.news-secondary-tags { margin-top: auto; padding-top: 0.4rem; display: flex; gap: 0.3rem; flex-wrap: wrap; }

/* ─── INLINE CTA STRIP ───────────────────────────── */
.news-cta-strip {
  background: linear-gradient(90deg, #0f2a4e 0%, #1b4272 100%);
  border-radius: 14px;
  padding: 1.1rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.news-cta-strip-icon {
  font-size: 1.75rem; line-height: 1; flex-shrink: 0;
}
.news-cta-strip-text { flex: 1; min-width: 180px; }
.news-cta-strip-q {
  font-weight: 800; color: #fff;
  font-size: 1.05rem; margin: 0 0 0.15rem;
}
.news-cta-strip-hint {
  font-size: 0.85rem; color: rgba(255,255,255,0.7); margin: 0;
}
.news-cta-strip-actions {
  display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap;
}

/* ─── GRID SECTION HEADER ────────────────────────── */
.news-section-header {
  display: flex; align-items: center; gap: 1rem;
  border-bottom: 2.5px solid #0f2a4e;
  padding-bottom: 0.65rem;
  margin-bottom: 1.4rem;
}
.news-section-header h2 {
  font-size: 1.05rem; font-weight: 800; color: #0f2a4e; margin: 0; flex: 1;
  text-transform: uppercase; letter-spacing: 0.03em;
}

/* ─── CARD GRID ──────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15,32,68,0.13);
}
.news-card-img {
  height: 185px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0f2044, #1a3560);
}
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-category {
  position: absolute; top: 10px; left: 10px;
  background: rgba(15,32,68,0.78);
  color: #fff; font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.18rem 0.55rem; border-radius: 4px;
  backdrop-filter: blur(3px);
}
.news-card-body {
  padding: 1rem 1.1rem 0.9rem;
  flex: 1; display: flex; flex-direction: column;
}
.news-card-meta {
  display: flex; align-items: center; gap: 0.45rem;
  flex-wrap: wrap; margin-bottom: 0.45rem;
}
.news-source {
  font-size: 0.7rem; font-weight: 600; color: #1a3560;
  background: rgba(26,53,96,0.09); padding: 0.1rem 0.5rem; border-radius: 8px;
}
.news-date { font-size: 0.7rem; color: #94a3b8; }
.news-card-title {
  font-size: 0.93rem; font-weight: 700;
  margin: 0 0 0.45rem; line-height: 1.38; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-title a { color: #0f2044; text-decoration: none; }
.news-card-title a:hover { color: #1a3560; text-decoration: underline; }
.news-card-excerpt {
  font-size: 0.83rem; color: #64748b; margin: 0 0 0.65rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-footer {
  display: flex; align-items: center; gap: 0.45rem;
  flex-wrap: wrap; margin-top: auto;
  padding-top: 0.55rem; border-top: 1px solid #f1f5f9;
}
.news-read-more {
  font-size: 0.78rem; font-weight: 700; color: #1a3560;
  text-decoration: none; margin-right: auto;
  transition: color 0.18s;
}
.news-read-more:hover { color: #d7a742; }
.news-tag {
  font-size: 0.66rem !important; padding: 0.08rem 0.48rem !important;
  background: rgba(26,53,96,0.07) !important; color: #1a3560 !important;
  border-radius: 6px !important;
}

/* ─── PAGINATION ─────────────────────────────────── */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}
.news-page-btn {
  padding: 0.5rem 1.3rem;
  border: 1.5px solid #1a3560; border-radius: 8px;
  color: #1a3560; text-decoration: none; font-weight: 700;
  transition: all 0.2s; font-size: 0.9rem;
}
.news-page-btn:hover { background: #1a3560; color: #fff; }
.news-page-info { color: #64748b; font-size: 0.88rem; }

/* ─── CTA BLOCK (bottom) ─────────────────────────── */
.news-cta-block {
  background: linear-gradient(135deg, #0f2044 0%, #1a3560 100%);
  border-radius: 18px;
  padding: 2rem 2.5rem;
  color: #fff;
  margin-top: 1rem;
}
.news-cta-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.news-cta-inner > div:first-child { flex: 1; min-width: 200px; }
.news-cta-block h3 { font-size: 1.35rem; font-weight: 800; margin: 0 0 0.4rem; }
.news-cta-block p { color: rgba(255,255,255,0.78); margin: 0; font-size: 0.95rem; }
.news-cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; flex-shrink: 0; }

/* ─── EMPTY STATE ────────────────────────────────── */
.news-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #94a3b8;
}
.news-empty h2 { font-size: 1.3rem; margin: 1rem 0 0.5rem; color: #64748b; }

/* ─────────────────────────────────────────────────────
   NEWS DETAIL PAGE
   ───────────────────────────────────────────────────── */
.news-detail-hero {
  background: linear-gradient(135deg, #0f2044 0%, #1a3560 100%);
  padding: 1.25rem 0;
}
.news-detail-section {
  padding: 2.5rem 0 4rem;
  background: #f5f7fa;
}
.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.news-detail-main {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.news-detail-cover {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  max-height: 380px;
  background: linear-gradient(135deg, #0f2044, #1a3560);
}
.news-detail-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.news-detail-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.5rem; margin-bottom: 1rem;
}
.news-source-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 600; color: #1a3560;
  background: rgba(26,53,96,0.09); padding: 0.25rem 0.75rem; border-radius: 12px;
}
.news-detail-main h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 800; color: #0f2044;
  line-height: 1.35; margin-bottom: 1.5rem;
}
.news-kратко {
  background: #f0f5ff;
  border-left: 4px solid #1a3560;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.news-kратко strong {
  display: block; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: #1a3560; margin-bottom: 0.4rem;
}
.news-section-block { margin-bottom: 1.75rem; }
.news-section-block h2 {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 1.15rem; font-weight: 700; color: #0f2044; margin-bottom: 0.75rem;
}
.news-section-block--main { margin-bottom: 2rem; }
.news-section-block--main h2 { font-size: 1.2rem; }
.news-section-block--main p {
  font-size: 1.05rem; line-height: 1.85; color: #1e2d40; margin-bottom: 1rem;
}
.news-source-ref {
  font-size: 0.8rem; color: #94a3b8; margin-top: 0.5rem;
}
.news-source-ref a { color: #1a3560; }
.news-commentary {
  background: #fafbff;
  border: 1px solid rgba(26,53,96,0.12); border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.news-commentary-header {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem;
}
.news-commentary-header svg { color: #1a3560; }
.news-commentary-header h2 { margin: 0; font-size: 1.05rem; }
.news-checklist {
  padding-left: 1.25rem; margin: 0 0 1rem; color: #334155; line-height: 1.7;
}
.news-inline-cta {
  display: inline-block; color: #1a3560; font-weight: 600; text-decoration: none; font-size: 0.9rem;
}
.news-inline-cta:hover { color: #d7a742; }
.news-service-links { margin-bottom: 1.75rem; }
.news-service-links h3 { font-size: 1rem; font-weight: 700; color: #0f2044; margin-bottom: 0.75rem; }
.news-service-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
}
.news-service-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.9rem; background: #f0f5ff; border-radius: 8px;
  text-decoration: none; color: #1a3560; font-size: 0.85rem; font-weight: 500;
  transition: background 0.2s;
}
.news-service-card:hover { background: #dbeafe; color: #0f2044; }
.news-share {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: 1.5rem; padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
}
.news-share span { font-size: 0.85rem; color: #64748b; }
.news-share-btn {
  padding: 0.35rem 0.9rem; border-radius: 8px; font-size: 0.8rem;
  font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: opacity 0.2s;
}
.news-share-btn:hover { opacity: 0.85; }
.news-share-wa { background: #25d366; color: #fff; }
.news-share-tg { background: #2ca5e0; color: #fff; }
.news-share-copy { background: #f1f5f9; color: #1a3560; }
.news-detail-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.25rem; }
.news-cta-card {
  background: linear-gradient(135deg, #0f2044, #1a3560);
  border-radius: 14px; padding: 1.5rem; color: #fff;
}
.news-cta-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.news-cta-card p { font-size: 0.875rem; color: rgba(255,255,255,0.8); margin-bottom: 1rem; }
.news-related {
  background: #fff; border-radius: 14px; padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.news-related h3 { font-size: 0.95rem; font-weight: 700; color: #0f2044; margin-bottom: 0.75rem; }
.news-related-item {
  display: block; padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9;
  text-decoration: none; color: #334155; font-size: 0.875rem; line-height: 1.4; transition: color 0.2s;
}
.news-related-item:last-child { border-bottom: none; }
.news-related-item:hover { color: #1a3560; }
.news-topics {
  background: #fff; border-radius: 14px; padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.news-topics h3 { font-size: 0.95rem; font-weight: 700; color: #0f2044; margin-bottom: 0.75rem; }
.news-topics-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.news-topics-grid a {
  padding: 0.25rem 0.75rem; background: #f0f5ff; border-radius: 12px;
  font-size: 0.8rem; color: #1a3560; text-decoration: none; font-weight: 500; transition: background 0.2s;
}
.news-topics-grid a:hover { background: #dbeafe; }
.news-when-help {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
  border-radius: 12px; padding: 1.5rem; border-left: 4px solid #1a3560;
}
.news-when-help h2 { color: #0f2044; margin-bottom: 0.75rem; font-size: 1.1rem; }
.news-when-help p { color: #334155; margin-bottom: 1rem; }
.news-when-help-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.news-full-content { font-size: 1.05rem; line-height: 1.85; color: #1e293b; }
.news-full-content p { margin-bottom: 1.2rem; }
.news-full-content p:last-child { margin-bottom: 0; }
.news-divider { border: none; border-top: 2px solid #f1f5f9; margin: 2rem 0; }

/* ─── ARTICLE BODY (detail page) ────────────────── */
.news-article-body {
  font-size: 1.06rem;
  line-height: 1.9;
  color: #1e293b;
  margin-bottom: 1.75rem;
}
.news-article-body p {
  margin-bottom: 1.1rem;
}
.news-article-body p:last-child { margin-bottom: 0; }

.news-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a3560;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid rgba(26,53,96,0.2);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: background 0.18s, border-color 0.18s;
}
.news-source-link:hover {
  background: rgba(26,53,96,0.06);
  border-color: rgba(26,53,96,0.4);
  color: #0f2044;
}

/* Sidebar widgets */
.news-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.25rem; }
.news-sidebar-widget {
  background: #fff; border-radius: 14px; padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.news-sidebar-widget h3 { font-size: 0.95rem; font-weight: 800; color: #0f2044; margin: 0 0 0.55rem; }
.news-sidebar-widget p { font-size: 0.86rem; color: #64748b; margin: 0 0 0.9rem; line-height: 1.5; }
.news-sidebar-wa {
  display: flex; align-items: center; gap: 0.5rem;
  background: #25d366; color: #fff; border-radius: 10px;
  padding: 0.65rem 1rem; text-decoration: none; font-weight: 700; font-size: 0.88rem;
  margin-bottom: 0.55rem; transition: opacity 0.2s;
}
.news-sidebar-wa:hover { color: #fff; opacity: 0.9; }
.news-sidebar-phone {
  display: flex; align-items: center; gap: 0.5rem;
  color: #1a3560; text-decoration: none; font-size: 0.88rem; font-weight: 600;
}
.news-sidebar-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.news-sidebar-tags a {
  padding: 0.25rem 0.7rem; background: #f0f5ff; border-radius: 10px;
  font-size: 0.78rem; color: #1a3560; text-decoration: none; font-weight: 500; transition: background 0.2s;
}
.news-sidebar-tags a:hover { background: #dbeafe; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .news-top-row { grid-template-columns: 1fr 300px; }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .news-top-row { grid-template-columns: 1fr; }
  .news-featured-side { flex-direction: row; }
  .news-secondary-card { flex: 1; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-detail-layout { grid-template-columns: 1fr; }
  .news-detail-sidebar, .news-sidebar { position: static; }
  .news-service-grid { grid-template-columns: 1fr; }
  .news-cta-inner { flex-direction: column; gap: 1.25rem; }
}
@media (max-width: 680px) {
  .news-featured-side { flex-direction: column; }
  .news-featured-main-img { height: 220px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .news-cta-strip { padding: 1rem 1.25rem; gap: 1rem; }
  .news-cta-strip-icon { display: none; }
  .news-detail-main { padding: 1.25rem 1rem; }
  .news-cta-block { padding: 1.5rem 1.25rem; }
}
@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-cta-actions, .news-cta-strip-actions, .news-when-help-actions { flex-direction: column; }
}
