/* =========================================================
   MEDIANTA — NAUJIENŲ STILIAI
   Papildo styles.css. Naudoja tuos pačius dizaino kintamuosius.
   ========================================================= */

/* ---------- Puslapio antraštė ---------- */
.news-head {
  padding-top: 96px;
  padding-bottom: 64px;
}
.news-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 24px;
}
.news-title .italic-soft {
  font-style: italic;
  font-weight: 200;
  color: var(--ink-soft);
}
.news-lede {
  margin-top: 24px;
  max-width: 42rem;
  font-size: 17px;
  font-weight: 300;
  color: var(--muted-foreground);
}

/* ---------- Išskirta naujiena ---------- */
.news-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
@media (min-width: 900px) {
  .news-featured {
    grid-template-columns: 1.25fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 64px 0;
  }
}
.news-featured__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--secondary);
}
.news-featured__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-featured:hover .news-featured__media img { transform: scale(1.06); }
.news-featured h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 300;
  line-height: 1.15;
  margin-top: 16px;
  color: var(--ink);
}
.news-featured p.news-featured__sum {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 300;
  color: var(--muted-foreground);
  max-width: 34rem;
}

/* ---------- Meta eilutė (data + žyma) ---------- */
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.news-meta .dot {
  width: 3px; height: 3px;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}
.news-meta .news-tag { color: var(--ink-soft); }

/* ---------- Naujienų tinklelis ---------- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.news-grid--top { border-top: 1px solid var(--hairline); }
@media (min-width: 640px)  { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  background: var(--background);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--ink);
  transition: background 0.3s ease;
}
@media (min-width: 768px) { .news-card { padding: 32px; } }
.news-card:hover { background: #fff; }

.news-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--secondary);
}
.news-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-card:hover .news-card__media img { transform: scale(1.08); }

/* Kai nuotraukos nėra — vietoje jos rodomas datos blokas */
.news-card__placeholder,
.news-featured__placeholder {
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: var(--accent-bg);
  aspect-ratio: 4 / 3;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}
.news-featured__placeholder { aspect-ratio: 16 / 9; font-size: 40px; }

.news-card h3 {
  font-size: 20px;
  line-height: 1.22;
  font-weight: 500;
  margin-top: 12px;
  color: var(--ink);
}
.news-card p {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted-foreground);
}
.news-card__more {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.news-card__more svg { transition: transform 0.3s ease; }
.news-card:hover .news-card__more svg { transform: translateX(4px); }

/* ---------- „Rodyti daugiau" ---------- */
.news-more-wrap {
  display: flex;
  justify-content: center;
  padding: 56px 0 96px;
}

/* ---------- Tuščia būsena ---------- */
.news-empty {
  padding: 80px 0 120px;
  text-align: center;
  color: var(--muted-foreground);
  font-weight: 300;
}

/* =========================================================
   VIENOS NAUJIENOS PUSLAPIS
   ========================================================= */
.article-head {
  padding-top: 88px;
  padding-bottom: 40px;
  max-width: 46rem;
}
.article-head h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 20px;
}
.article-head .article-sum {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
}
.article-figure {
  margin: 0 0 56px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--secondary);
}
.article-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Tekstas */
.article-body {
  max-width: 42rem;
  padding-bottom: 40px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
}
.article-body p { margin: 0 0 24px; }
.article-body h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}
.article-body h4 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 32px 0 12px;
}
.article-body ul,
.article-body ol { margin: 0 0 24px; padding-left: 20px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--brass); }
.article-body strong { font-weight: 500; color: var(--ink); }
.article-body blockquote {
  margin: 32px 0;
  padding-left: 24px;
  border-left: 2px solid var(--brass);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
}
.article-body figure { margin: 32px 0; }
.article-body figure img { width: 100%; }
.article-body figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted-foreground);
}

/* Apačia: grįžti + kitos naujienos */
.article-foot {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.article-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.article-nav a {
  max-width: 20rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}
.article-nav a:hover { color: var(--ink); }
.article-nav .dir {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.article-nav .ttl { color: var(--ink); font-weight: 400; }

/* =========================================================
   NAUJAUSIOS NAUJIENOS PRADINIAME PUSLAPYJE
   ========================================================= */
.news-latest-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.news-latest-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 16px;
}
