/* ====== News Page ====== */

.page-hero {
  position: relative; padding: 140px 0 70px; overflow: hidden;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(5,150,105,0.10) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(132,204,22,0.10) 0%, transparent 50%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 780px; }
.page-hero .hero-en { margin-bottom: 18px; }
.page-hero-title {
  font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; color: var(--text-dark);
  letter-spacing: -0.5px; margin-bottom: 16px; line-height: 1.2;
}
.page-hero-sub { font-size: 16px; color: var(--text-body); line-height: 1.8; }
.page-hero-sub strong { color: var(--primary); }
.nav-link-active { color: var(--primary) !important; font-weight: 700; }

/* Layout */
.news-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px;
  max-width: 1280px; margin: 0 auto; padding: 60px 24px 80px;
}

/* Sidebar */
.news-sidebar {
  position: sticky; top: 88px; align-self: start;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.side-header { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.side-title { font-size: 15px; font-weight: 800; color: var(--text-dark); }
.side-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.side-nav { margin-bottom: 18px; }
.side-nav li { margin-bottom: 2px; }
.side-link {
  display: block; padding: 10px 12px; font-size: 13px; font-weight: 500;
  color: var(--text-body); border-radius: 8px; transition: all 0.2s;
}
.side-link:hover { background: rgba(5,150,105,0.06); color: var(--primary); }
.side-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; font-weight: 700; box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}
.side-recent { margin-bottom: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.side-recent-title { font-size: 12px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; letter-spacing: 1px; }
.side-recent-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 0;
  font-size: 12.5px; color: var(--text-body); transition: color 0.2s;
}
.side-recent-item:hover { color: var(--primary); }
.side-recent-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  flex-shrink: 0;
}
.side-cta {
  background: linear-gradient(135deg, rgba(5,150,105,0.08), rgba(132,204,22,0.08));
  border-radius: var(--radius); padding: 18px; text-align: center;
}
.side-cta-title { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.side-cta-text { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }

/* Main */
.news-main { min-width: 0; }

/* Featured */
.news-featured {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; margin-bottom: 28px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.news-featured::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.nf-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: var(--primary); padding: 4px 12px; background: rgba(5,150,105,0.08);
  border-radius: 4px; margin-bottom: 14px;
}
.news-featured h2 {
  font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: var(--text-dark);
  line-height: 1.3; margin-bottom: 10px;
}
.nf-meta { display: flex; gap: 20px; font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.news-featured > p { font-size: 14px; color: var(--text-body); line-height: 1.8; margin-bottom: 22px; }
.nf-highlights {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding-top: 20px; border-top: 1px dashed var(--border);
}
.nf-highlights > div { text-align: center; }
.nf-num {
  font-size: 28px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nf-num span { font-size: 13px; margin-left: 2px; -webkit-text-fill-color: var(--primary); }
.nf-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.nf-read {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: none;
  padding: 10px 20px; border: 1.5px solid var(--primary); border-radius: 8px;
  transition: all 0.25s;
}
.nf-read:hover {
  background: var(--primary); color: white;
  box-shadow: 0 4px 14px rgba(5,150,105,0.25); transform: translateY(-2px);
}

/* Grid */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: all 0.3s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.nc-tag {
  display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700;
  color: var(--primary); padding: 4px 10px; background: rgba(5,150,105,0.08);
  border-radius: 4px; margin-bottom: 12px;
}
.nc-tag-blue { color: #3b82f6; background: rgba(59,130,246,0.08); }
.nc-tag-yellow { color: #d97706; background: rgba(245,158,11,0.1); }
.news-card h3 {
  font-size: 16px; font-weight: 800; color: var(--text-dark);
  line-height: 1.45; margin-bottom: 10px;
  transition: color 0.2s;
}
.news-card:hover h3 { color: var(--primary); }
.news-card > p {
  font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px;
  flex-grow: 1;
}
.nc-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-muted); padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.nc-meta a {
  color: var(--primary); font-weight: 600; text-decoration: none;
}
.nc-meta a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1024px) {
  .news-layout { grid-template-columns: 1fr; padding: 40px 24px 60px; }
  .news-sidebar { position: static; order: -1; }
  .side-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
  .side-nav li { margin-bottom: 0; }
  .side-link { padding: 8px 14px; font-size: 12.5px; }
  .side-recent, .side-cta { display: none; }
  .news-featured { padding: 28px 24px; }
}

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .nf-highlights { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nf-highlights { grid-template-columns: 1fr; }
}
