/* ============================================
   news.css — Industry News & Insights
   Matches the Zhongshen light theme + dark nav.
   ============================================ */

/* ── TOKENS (mirror global so the page is self-sufficient) ── */
:root {
  --text-primary:   #0f172a;
  --text-body:      #334155;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;

  --bg-white:       #ffffff;
  --bg-soft:        #f8fafc;
  --bg-tint:        #eff6ff;
  --bg-deep:        #0f172a;

  --brand:          #2563eb;
  --brand-hover:    #1d4ed8;
  --brand-light:    #3b82f6;
  --brand-pale:     #dbeafe;

  --orange:         #f97316;
  --orange-h:       #ea6c0a;

  --border:         #e2e8f0;
  --border-light:   #f1f5f9;

  --shadow-sm:      0 1px 2px rgba(15,23,42,0.06);
  --shadow:         0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg:      0 16px 40px rgba(15,23,42,0.10);

  --navy:           var(--bg-deep);
  --gold-lt:        var(--brand-light);
}

/* ── HERO (dark, centered) ── */
.news-hero {
  --hero-bg: #0d2f4e;
  background: var(--hero-bg);
  background-image:
    radial-gradient(ellipse 60% 70% at 78% 30%, rgba(37,99,235,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(249,115,22,0.12) 0%, transparent 60%),
    linear-gradient(135deg, rgba(13,47,78,0.96) 0%, rgba(22,61,97,0.85) 100%);
  padding: 76px 5% 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.news-hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }

.news-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92); font-family: 'Sora', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 4px;
  margin-bottom: 22px; backdrop-filter: blur(4px);
}
.news-eyebrow::before { content: '★'; color: #f99a57; }

.news-hero h1 {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  color: rgba(255,255,255,0.96); line-height: 1.14; margin-bottom: 18px;
}
.news-hero h1 em { font-style: normal; color: #f99a57; }
.news-hero p {
  color: rgba(255,255,255,0.72); font-size: 1.05rem; line-height: 1.75;
  max-width: 600px; margin: 0 auto;
}

/* ── MAIN ── */
.news-main {
  background: var(--bg-soft);
  padding: 56px 5% 88px;
  position: relative;
}
.news-inner { max-width: 1180px; margin: 0 auto; }

/* ── FILTER PILLS ── */
.news-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.news-filter {
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.01em;
  padding: 9px 18px; border-radius: 100px; cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.news-filter:hover { color: var(--brand); border-color: var(--brand-pale); }
.news-filter.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(37,99,235,0.28);
}

/* ── FEATURED ARTICLE ── */
.featured-section {
  display: flex; flex-direction: column; gap: 32px;
  margin-bottom: 48px;
}
.featured-article {
  display: flex; flex-wrap: wrap;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}
.featured-article:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.featured-media {
  flex: 0 0 46%; position: relative; min-height: 320px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  overflow: hidden;
}
.featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fa-placeholder, .nc-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--brand);
  background: linear-gradient(135deg, #e8f1ff 0%, #d3e4ff 100%);
}
.fa-placeholder .material-symbols-outlined { font-size: 3.4rem; opacity: 0.55; }
.nc-placeholder .material-symbols-outlined { font-size: 2.6rem; opacity: 0.55; }
.fa-placeholder span.cap, .nc-placeholder span.cap {
  font-family: 'Sora', sans-serif; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7;
}

.featured-body {
  flex: 1; min-width: 300px;
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.featured-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Sora', sans-serif; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 14px;
}
.featured-flag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
}
.featured-body h2 {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  color: var(--text-primary); line-height: 1.22; margin-bottom: 14px;
  text-wrap: balance;
}
.featured-body p {
  color: var(--text-body); font-size: 1rem; line-height: 1.75;
  margin-bottom: 22px; max-width: 560px;
}
.featured-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px;
}

/* ── CARD GRID ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  display: flex; flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-top-color 0.2s;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--brand);
}

.nc-media {
  position: relative; height: 184px; flex-shrink: 0;
  background: var(--bg-tint); overflow: hidden;
}
.nc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nc-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: 'Sora', sans-serif; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: rgba(15,23,42,0.78);
  backdrop-filter: blur(4px);
  padding: 5px 11px; border-radius: 4px;
}

.nc-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 20px 22px 22px;
}
.nc-body h3 {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 1.05rem; color: var(--text-primary);
  line-height: 1.34; margin-bottom: 10px; text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc-excerpt {
  color: var(--text-muted); font-size: 0.9rem; line-height: 1.65;
  margin-bottom: 18px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; max-height: calc(0.9rem * 1.65 * 4);
}

/* ── META (shared featured + card) ── */
.meta-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.78rem; color: var(--text-light);
  font-family: 'Sora', sans-serif; font-weight: 500;
}
.meta-row .meta-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-row .material-symbols-outlined {
  font-size: 0.95rem; color: var(--text-light);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.nc-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--border-light);
}

.read-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Sora', sans-serif; font-size: 0.82rem; font-weight: 700;
  color: var(--brand); text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.read-link .material-symbols-outlined {
  font-size: 1.05rem;
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 20;
  transition: transform 0.2s;
}
.read-link:hover { color: var(--brand-hover); gap: 9px; }
.read-link:hover .material-symbols-outlined { transform: translateX(3px); }

/* Featured read button is solid orange */
.featured-cta {
  align-self: flex-start;
  background: var(--orange); color: #fff;
  padding: 12px 26px; border-radius: 7px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.03em; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(249,115,22,0.3);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.featured-cta:hover { background: var(--orange-h); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,115,22,0.4); }
.featured-cta .material-symbols-outlined { font-size: 1.1rem; }

/* ── EMPTY STATE (no filter matches) ── */
.news-empty {
  display: none; text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.news-empty.show { display: block; }
.news-empty .material-symbols-outlined { font-size: 2.6rem; color: var(--text-light); margin-bottom: 10px; }
.news-empty p { font-family: 'Sora', sans-serif; font-weight: 600; }

/* ── PAGINATION ── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 48px; margin-bottom: 8px;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  font-family: 'Sora', sans-serif; font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-white);
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.page-link:hover { color: var(--brand); border-color: var(--brand-pale); }
.page-link.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(37,99,235,0.28);
  cursor: default;
}
.page-link.disabled {
  color: var(--text-light); border-color: var(--border-light);
  background: var(--bg-soft); cursor: not-allowed; pointer-events: none;
  opacity: 0.5;
}
.page-link .material-symbols-outlined {
  font-size: 1.1rem;
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}
.page-link.prev { gap: 4px; padding: 0 14px; }
.page-link.next { gap: 4px; padding: 0 14px; }

/* ── CTA BAND ── */
.news-cta-band {
  background: #0d2f4e;
  background-image:
    radial-gradient(ellipse 60% 70% at 20% 30%, rgba(37,99,235,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 80%, rgba(249,115,22,0.08) 0%, transparent 60%),
    linear-gradient(135deg, rgba(13,47,78,0.98) 0%, rgba(22,61,97,0.90) 100%);
  padding: 72px 5% 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ncb-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.ncb-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.ncb-badge {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 14px;
  border-radius: 4px;
}
.ncb-inner h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  color: rgba(255,255,255,0.95);
  line-height: 1.25;
  margin-bottom: 12px;
  text-wrap: balance;
}
.ncb-inner > p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.ncb-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ncb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 7px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.ncb-btn .material-symbols-outlined {
  font-size: 1.1rem;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}
.ncb-btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,0.3);
}
.ncb-btn-primary:hover {
  background: var(--orange-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}
.ncb-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
}
.ncb-btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  transform: translateY(-2px);
}
.ncb-note {
  color: rgba(255,255,255,0.35);
  font-size: 0.76rem;
  margin-top: 22px;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
}

/* ── ANIMATE ── */
.aos { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.aos.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER (match about) ── */
.site-footer-meta {
  background: var(--bg-deep); color: rgba(255,255,255,0.35);
  text-align: center; padding: 20px 5%; font-size: 0.78rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.site-footer-meta a { color: rgba(255,255,255,0.5); text-decoration: none; }
.site-footer-meta a:hover { color: var(--brand-pale); }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .featured-media { flex: none; width: 100%; min-height: 220px; }
  .featured-body { padding: 30px 28px; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-main { padding: 40px 5% 64px; }
  .news-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .news-filters::-webkit-scrollbar { display: none; }
  .news-filter { flex-shrink: 0; }
}

/* ============================================
   HOMEPAGE TEASER — Latest News section
   (used inside index.html)
   ============================================ */
.home-news {
  background: var(--bg-white);
  padding: 80px 5%;
  position: relative;
}
.home-news-inner { max-width: 1180px; margin: 0 auto; }
.home-news-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.home-news-head .hn-tag {
  display: inline-block; font-family: 'Sora', sans-serif;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand);
  background: var(--brand-pale); padding: 5px 12px;
  border-radius: 4px; margin-bottom: 14px;
}
.home-news-head h2 {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--text-primary);
  line-height: 1.2; max-width: 560px;
}
.home-news-head .hn-all {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.88rem;
  color: var(--brand); text-decoration: none; white-space: nowrap;
  padding-bottom: 6px;
  transition: gap 0.2s, color 0.2s;
}
.home-news-head .hn-all .material-symbols-outlined { font-size: 1.1rem; transition: transform 0.2s; }
.home-news-head .hn-all:hover { color: var(--brand-hover); gap: 10px; }
.home-news-head .hn-all:hover .material-symbols-outlined { transform: translateX(3px); }
.home-news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
@media (max-width: 980px) { .home-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .home-news-grid { grid-template-columns: 1fr; }
  .home-news { padding: 56px 5%; }
}
