/* VAPELINKER News module shell — template/dafeult/newslist.html, news.html */

:root {
  --news-ink: #18212b;
  --news-muted: #64707d;
  --news-line: #e5e9ed;
  --news-soft: #f5f8fa;
  --news-accent: #1671ff;
  --news-accent-dark: #0d56c7;
}

.news-main,
.news-article {
  color: var(--news-ink);
}

.news-heading,
.news-article-header {
  margin-bottom: 28px;
}

.news-eyebrow {
  margin: 0 0 8px;
  color: var(--news-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.news-heading h1,
.news-article-header h1,
.newsdetails.news-article > h1 {
  margin: 0;
  color: var(--news-ink);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
}

.news-summary {
  margin: 16px 0 0;
  color: var(--news-muted);
  font-size: 16px;
  line-height: 1.8;
}

.news-current-crumb {
  color: var(--news-muted);
}

.news-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.news-categories a {
  padding: 8px 15px;
  border: 1px solid var(--news-line);
  border-radius: 999px;
  color: var(--news-ink);
  background: #fff;
  transition: 0.2s ease;
}

.news-categories a:hover,
.news-categories a:focus-visible {
  border-color: var(--news-accent);
  color: var(--news-accent);
}

.news-page a:focus-visible {
  outline: 3px solid rgba(22, 113, 255, 0.3);
  outline-offset: 3px;
}

.news-list {
  display: grid;
  gap: 22px;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  overflow: hidden;
  border: 1px solid var(--news-line);
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
  box-shadow: 0 10px 28px rgba(24, 33, 43, 0.08);
  transform: translateY(-2px);
}

.news-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eef2f7;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.news-istop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: var(--news-accent);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.news-card-meta {
  margin: 0;
  color: #8a939c;
  font-size: 13px;
}

.news-card h2 {
  margin: 8px 0 12px;
  font-size: 22px;
  line-height: 1.45;
}

.news-card h2 a {
  color: var(--news-ink);
}

.news-card h2 a:hover,
.news-card.is-top h2 a {
  color: var(--news-accent);
}

.news-card-body > p:not(.news-card-meta) {
  flex: 1;
  margin: 0 0 16px;
  color: var(--news-muted);
  line-height: 1.75;
}

.news-read-more {
  align-self: flex-start;
  color: var(--news-accent);
  font-size: 14px;
  font-weight: 700;
}

.news-read-more:hover {
  color: var(--news-accent-dark);
}

.news-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--news-muted);
  background: var(--news-soft);
}

.news-conversion,
.news-knowledge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 38px;
  padding: 30px;
  border-radius: 12px;
  color: #fff;
  background: #17212b;
}

.news-conversion h2,
.news-knowledge-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
}

.news-conversion p,
.news-knowledge-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.news-conversion .news-eyebrow,
.news-knowledge-card .news-eyebrow {
  color: #7eb4ff;
}

.news-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.news-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.news-btn-primary,
.news-btn-primary:hover {
  color: #fff;
  background: var(--news-accent);
}

.news-btn-primary:hover {
  background: var(--news-accent-dark);
}

.news-btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.news-btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

.news-article-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--news-line);
}

.news-article-meta,
.newsdetails-data {
  margin: 14px 0 0;
  color: #8a939c;
  font-size: 13px;
}

.news-article-meta span {
  margin-left: 20px;
}

.news-body,
.newsdetails-cont {
  margin-top: 24px;
}

.news-bbs-callout {
  margin-top: 30px;
  padding: 20px;
  border: 1px dashed #c4e6f9;
  border-radius: 8px;
  background: #f0f7ff;
}

.news-bbs-callout h2 {
  margin: 0 0 10px;
  color: var(--news-accent);
  font-size: 18px;
}

.news-bbs-callout p {
  margin: 0 0 14px;
  color: var(--news-muted);
  font-size: 14px;
  line-height: 1.75;
}

.news-bbs-callout a {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  background: var(--news-accent);
}

.news-bbs-callout a:hover {
  color: #fff;
  background: var(--news-accent-dark);
}

.news-prev-next,
.pages-list {
  display: grid;
  gap: 8px;
  margin: 28px 0;
  padding: 18px 0;
  border-top: 1px solid var(--news-line);
  border-bottom: 1px solid var(--news-line);
}

.news-guess-like,
.guess-like-box {
  margin-top: 30px;
  padding: 20px;
  clear: both;
  border: 1px solid var(--news-line);
  border-radius: 8px;
  background: #fff;
}

.news-guess-like .module-title,
.guess-like-box .module-title {
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--news-accent);
}

.news-guess-like .module-title h3,
.guess-like-box .module-title h3 {
  margin: 0;
  color: var(--news-ink);
  font-size: 18px;
  font-weight: 700;
}

.news-guess-list,
.guess-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
  padding: 0;
  list-style: none;
}

.news-guess-list li,
.guess-list li {
  width: 25%;
  margin-bottom: 15px;
  padding: 0 10px;
}

.news-guess-list a,
.guess-list a {
  display: block;
  text-decoration: none;
}

.news-guess-list .img-wrap,
.guess-list .img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 4px;
}

.news-guess-list .img-wrap img,
.guess-list .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-guess-list li:hover img,
.guess-list li:hover img {
  transform: scale(1.05);
}

.news-guess-list h4,
.guess-list h4 {
  display: -webkit-box;
  height: 40px;
  margin: 0;
  overflow: hidden;
  color: var(--news-ink);
  font-size: 14px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-guess-list a:hover h4,
.guess-list a:hover h4 {
  color: var(--news-accent);
}

@media (max-width: 991px) {
  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card-image img {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .news-conversion,
  .news-knowledge-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .news-heading h1,
  .news-article-header h1 {
    font-size: 28px;
  }

  .news-card-body {
    padding: 18px;
  }

  .news-card h2 {
    font-size: 19px;
  }

  .news-guess-list li,
  .guess-list li {
    width: 50%;
  }

  .news-guess-like,
  .guess-like-box {
    padding: 15px;
  }

  .news-actions {
    width: 100%;
  }

  .news-btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .news-actions {
    flex-direction: column;
  }

  .news-conversion,
  .news-knowledge-card {
    padding: 22px;
  }
}
