.news-page {
  /* max-width: 1200px; */
  max-width: 70%;
}

.news-article {
  padding: 28px 28px 24px;
}

.news-title {
  margin: 0;
  text-align: center;
  color: var(--primary);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.45;
  font-weight: 700;
}

.news-meta {
  margin-top: 12px;
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
}

[data-theme="dark"] .news-meta {
  color: #9ca3af;
}

.meta-dot {
  margin: 0 5px;
}

.news-content {
  margin-top: 22px;
}

.news-content p {
  margin: 0 0 14px 0;
  line-height: 2;
  font-size: 1.25rem;
  color: var(--text);
  text-indent: 2em;
  text-align: justify;
  word-break: break-word;
}

.news-figure {
  margin: 16px 0 18px;
}

.news-figure img {
  width: 80%;
  display: block;
  margin: 5px auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow:
    0 6px 18px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.08);
  object-fit: cover;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  filter: saturate(1.03) contrast(1.02);
}

.news-figure img:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.18),
    0 4px 10px rgba(15, 23, 42, 0.12);
  filter: saturate(1.08) contrast(1.04);
}
.news-figure figcaption {
  margin-top: 5px;
  text-align: center;
  font-size: 0.92rem;
  color: #6b7280;
}
[data-theme="dark"] .news-figure figcaption {
  color: #9ca3af;
}

.news-gallery {
  margin: 14px 0 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.news-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow:
    0 6px 18px rgba(15, 23, 42, 0.10),
    0 2px 6px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  filter: saturate(1.03) contrast(1.02);
}

.news-gallery img:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.16),
    0 4px 10px rgba(15, 23, 42, 0.10);
  filter: saturate(1.08) contrast(1.04);
}

.news-gallery figcaption {
  margin-top: 2px;
  text-align: center;
  font-size: 0.92rem;
  color: #6b7280;
}

.news-footer {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.back-link {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}
.back-link:hover {
  color: var(--accent);
}

.news-footer-with-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-qr-btn {
  margin-left: auto;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-qr-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.share-modal-content {
  max-width: 460px;
}

.share-qr-out {
  text-align: center;
}

.share-qr-title {
  margin: 8px 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-indent: 0 !important;
}

.share-qr-canvas-wrap {
  display: inline-block;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.share-qr-canvas-wrap img,
.share-qr-canvas-wrap canvas {
  display: block;
  width: 80%;
  /* width: min(320px, 70vw); */
  height: auto;
}

.share-qr-link {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #6b7280;
  word-break: break-all;
  text-indent: 0 !important;
}

.modal-content {
  width: min(90vw, 420px);
  padding: 20px;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  text-align: center;
  border-radius: 12px;
  background-color: var(--border);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.site-footer {
  /* max-width: 1200px; */
  max-width: 70%;
  margin: 20px auto 0;
  margin-bottom: 0;
  padding: 0 8vw 60px;
}

@media (max-width: 2000px){
  .news-page, .site-footer {
    max-width: 1200px;
  }

}

@media (max-width: 1300px){
  .news-page, .site-footer {
    max-width: 80%;
  }
}

@media (max-width: 980px){
  .news-page, .site-footer {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .news-page, .site-footer{
    padding-left: 10px;
    padding-right: 10px;
  }

  .news-article {
    padding: 20px 16px;
  }

  .news-content p {
    line-height: 1.9;
  }

  .news-figure img{
    width: 100%;
    max-height: 360px;
  }

  .news-gallery {
    grid-template-columns: 1fr;
  }

  .news-gallery img {
    width: 100%;
    height: auto;
    max-height: 360px;
  }

  .news-gallery figcaption {
    display: none;
  }
}