/* ===== News / article media frames ===== */

.news-article-hero {
  background: linear-gradient(120deg, var(--cyan-deep), var(--green));
  color: #fff;
  padding: 2rem 0 2.2rem;
}

.news-article-hero h1 {
  margin: 0.6rem 0;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.news-article-hero a {
  color: #fff;
  text-decoration: underline;
}

.news-article-meta {
  opacity: 0.9;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.news-breadcrumb {
  font-size: 0.85rem;
}

.news-card-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Article layout */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 2.5rem;
  align-items: start;
}

.news-article-body {
  min-width: 0;
}

.news-article-body .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.news-aside {
  display: grid;
  gap: 1rem;
}

.news-aside-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.news-aside-card h3 {
  margin: 0 0 0.7rem;
  color: var(--cyan-deep);
  font-size: 1rem;
}

.news-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-aside-list li {
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.news-aside-list li:last-child {
  border-bottom: 0;
}

.news-aside-list a {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
}

.news-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.news-article-body h2 {
  color: var(--cyan-deep);
  margin-top: 1.5rem;
}

.news-cta-box {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.news-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

/* CTA tin tức nằm trên nền sáng — không dùng ghost trắng (mất chữ khi hover) */
.news-cta-actions .btn-hero-primary,
.news-aside-cta .btn-hero-primary {
  background: var(--green);
  color: #fff;
  border: 1.5px solid var(--green);
}

.news-cta-actions .btn-hero-primary:hover,
.news-aside-cta .btn-hero-primary:hover,
a.news-cta-actions .btn-hero-primary:hover,
a.news-aside-cta .btn-hero-primary:hover {
  background: var(--green-dark, #067a38);
  color: #fff;
  border-color: var(--green-dark, #067a38);
}

.news-cta-actions .btn-hero-secondary,
.news-aside-cta .btn-hero-secondary {
  background: #fff;
  color: var(--cyan-deep);
  border: 1.5px solid var(--cyan-deep);
}

.news-cta-actions .btn-hero-secondary:hover,
.news-aside-cta .btn-hero-secondary:hover,
a.news-cta-actions .btn-hero-secondary:hover,
a.news-aside-cta .btn-hero-secondary:hover {
  background: var(--cyan-deep);
  color: #fff;
  border-color: var(--cyan-deep);
}

.news-related {
  padding: 0 0 2.5rem;
}

.news-related .container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.news-related h2 {
  color: var(--cyan-deep);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.news-card-inner {
  padding: 1rem;
}

.news-card-meta {
  margin-bottom: 0.45rem;
}

.news-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.35;
}

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

.news-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

/* Featured / inline — khung cố định, không méo */
.news-featured,
.news-inline {
  margin: 0 0 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.news-featured img,
.news-inline img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-inline {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Listing with photos — override .news-list li grid (72px) from style.css */
.news-list.news-list-photos {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list.news-list-photos > .news-item-card,
.news-list.news-list-photos > li {
  display: block;
  grid-template-columns: unset;
  gap: 0;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.news-list.news-list-photos .news-item-link {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  padding: 0.55rem 0.75rem 0.55rem 0.55rem;
  width: 100%;
}

.news-list.news-list-photos .news-item-link:hover {
  color: var(--cyan-deep);
}

.news-list.news-list-photos .news-thumb-img,
.news-list.news-list-photos .news-item-link .news-thumb-img {
  width: 160px !important;
  height: 100px !important;
  max-width: 160px !important;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  display: block;
  background: var(--bg);
  flex: none;
}

.news-list.news-list-photos .news-item-title {
  font-weight: 700;
  line-height: 1.35;
  font-size: 0.98rem;
  min-width: 0;
}

.news-related a,
.news-sidebar a {
  display: block;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

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

@media (max-width: 640px) {
  .news-list.news-list-photos .news-item-link {
    grid-template-columns: 1fr;
  }

  .news-list.news-list-photos .news-thumb-img,
  .news-list.news-list-photos .news-item-link .news-thumb-img {
    width: 100% !important;
    max-width: none !important;
    height: 160px !important;
  }
}
