/* ===== GSTC INDIA NEWS - news.css (news module of theme) ===== */
/* Scoped news styles layered over css/theme.css tokens; auto dark-mode via var() */

.news-main { padding: 32px 0 64px; min-height: 60vh; }

/* ---------- Hero ---------- */
.news-hero {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--emerald-800) 100%);
  color: #fff; padding: 52px 0 56px; border-radius: 0 0 0 0;
}
.news-hero-inner { max-width: 780px; }
.news-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 10px; color: #fff; }
.news-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.82); margin: 0 0 22px; line-height: 1.6; }
.news-hero-meta { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .85rem; color: rgba(255,255,255,.75); }
.news-hero-meta .icon { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Search widget (hero + search page) ---------- */
.news-search {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border-radius: var(--radius-full); padding: 6px 6px 6px 16px; box-shadow: var(--shadow-lg);
}
.news-search .icon { width: 20px; height: 20px; color: var(--text-tertiary); flex: 0 0 auto; }
.news-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; color: var(--text-primary); padding: 8px 4px;
}
.news-search input::placeholder { color: var(--text-tertiary); }
.news-search-page { margin: 0 0 22px; max-width: 640px; }
.news-search-note { color: var(--text-tertiary); font-size: .9rem; margin: 0 0 18px; }

/* ---------- Section headers ---------- */
.news-sec { margin-top: 44px; }
.news-sec-alt { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 36px 0 44px; margin-top: 44px; }
.news-sechead { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text-primary); margin-bottom: 18px; }
.news-sechead .icon { width: 22px; height: 22px; color: var(--primary); }
.news-about { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; line-height: 1.75; color: var(--text-secondary); font-size: .95rem; }
.news-about-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Grids & cards ---------- */
.news-grid { display: grid; gap: 20px; }
.news-grid-3 { grid-template-columns: repeat(3, 1fr); }
.news-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease;
}
a.news-card-link { display: flex; flex-direction: column; padding: 18px; text-decoration: none; color: inherit; height: 100%; }
.news-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.news-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .8rem; color: var(--text-tertiary); }
.news-card-cat { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; }
.news-card-date { white-space: nowrap; }
.news-card-title { font-size: 1.02rem; line-height: 1.45; color: var(--text-primary); margin: 0 0 8px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-excerpt { font-size: .88rem; color: var(--text-secondary); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-meta { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-tertiary); border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 12px; }
.news-card-featured { border-top: 3px solid var(--primary); }

/* ---------- Badges ---------- */
.news-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-full); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.news-badge .icon { width: 13px; height: 13px; }
.news-badge-ok { background: var(--success-soft); color: var(--success); }
.news-badge-warn { background: var(--warning-soft); color: var(--warning); }
.news-badge-hot { background: var(--danger-soft); color: var(--danger); }

/* ---------- Breadcrumb / archive headers ---------- */
.news-crumb { font-size: .85rem; color: var(--text-tertiary); margin-bottom: 16px; }
.news-crumb a { color: var(--primary); text-decoration: none; }
.news-archhead { margin-bottom: 24px; }
.news-archhead h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 6px; color: var(--text-primary); }
.news-archhead p { color: var(--text-secondary); margin: 0; font-size: .95rem; }

/* ---------- Chips (category/subcategory filter) ---------- */
.news-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.news-chip {
  padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--border-strong);
  background: var(--bg-card); color: var(--text-secondary); font-size: .82rem; text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.news-chip:hover { border-color: var(--primary); color: var(--primary); }
.news-chip-active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.news-chip-active:hover { color: #fff; }

/* ---------- Category cards ---------- */
.news-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.news-catcard {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.news-catcard:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.news-caticon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 6px; }
.news-caticon .icon { width: 20px; height: 20px; }
.news-catname { font-weight: 700; color: var(--text-primary); font-size: 1rem; }
.news-catcount { font-size: .78rem; color: var(--primary); font-weight: 600; }
.news-catdesc { font-size: .84rem; color: var(--text-secondary); line-height: 1.55; }

/* ---------- Article page ---------- */
.news-article {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow-sm);
}
.news-article--unverified { border-top: 3px solid var(--warning); }
.news-article-head { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.news-article-top { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: 12px; }
.news-article-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); line-height: 1.25; color: var(--text-primary); margin: 0 0 16px; }
.news-article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.news-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.news-avatar-lg { width: 56px; height: 56px; font-size: 1.05rem; }
.news-author-name { font-size: .92rem; }
.news-author-name a { color: var(--text-primary); font-weight: 700; text-decoration: none; }
.news-author-role { font-size: .78rem; color: var(--text-tertiary); }
.news-lede { font-size: 1.08rem; line-height: 1.7; color: var(--text-secondary); margin: 16px 0 0; }

/* ---------- Prose ---------- */
.news-prose { font-size: 1rem; line-height: 1.8; color: var(--text-primary); }
.news-prose h2, .news-h { font-size: 1.3rem; margin: 30px 0 12px; color: var(--text-primary); line-height: 1.4; }
.news-prose h3 { font-size: 1.12rem; margin: 24px 0 10px; color: var(--text-primary); }
.news-prose p, .news-p { margin: 0 0 16px; color: var(--text-secondary); }
.news-prose ul, .news-ul, .news-prose ol, .news-ol { margin: 0 0 16px; padding-left: 24px; color: var(--text-secondary); }
.news-prose li { margin: 6px 0; }
.news-prose a { color: var(--primary); }
.news-prose strong { color: var(--text-primary); }
.news-prose blockquote { border-left: 3px solid var(--accent); margin: 18px 0; padding: 8px 16px; background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-secondary); }
.news-prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.news-prose th, .news-prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.news-prose th { background: var(--bg-alt); font-weight: 700; color: var(--text-primary); }

/* ---------- Ad cards / bands ---------- */
.news-ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 20px 0; }
.news-adcard { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 8px; }
.news-adcard-title { font-size: .95rem; margin: 0; }
.news-adcard-title a { color: var(--primary); text-decoration: none; font-weight: 700; }
.news-adcard-title a:hover { text-decoration: underline; }
.news-adcard-desc { font-size: .8rem; color: var(--text-secondary); line-height: 1.55; margin: 0; flex: 1 1 auto; }
.news-adcard-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-adcard-price { font-weight: 800; color: var(--text-primary); font-size: 1.05rem; }
.news-adband { border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: var(--radius-lg); padding: 16px; margin: 26px 0; }
.news-adband-label { font-weight: 700; color: var(--accent-strong); margin-bottom: 12px; }

/* ---------- Sources / tags / disclaimer ---------- */
.news-sources { margin: 22px 0 0; padding: 12px 16px; background: var(--bg-alt); border-radius: var(--radius-md); font-size: .85rem; color: var(--text-tertiary); }
.news-sources li { margin: 4px 0; }
.news-source a { color: var(--text-secondary); }
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.news-tag { padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-full); font-size: .78rem; color: var(--secondary); text-decoration: none; transition: background .2s ease; }
.news-tag:hover { background: var(--navy-50); }
.news-disclaimer { margin-top: 20px; padding: 12px 14px; border-left: 3px solid var(--warning); background: var(--warning-soft); border-radius: var(--radius-sm); font-size: .82rem; color: var(--text-secondary); display: flex; gap: 8px; line-height: 1.65; }
.news-disclaimer .icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--warning); margin-top: 2px; }
.news-disclaimer-warn { border-left-color: var(--danger); }
.news-disclaimer-warn .icon { color: var(--danger); }

/* ---------- Related / misc ---------- */
.news-related { margin-top: 42px; }
.news-related h2 { font-size: 1.25rem; color: var(--text-primary); margin: 0 0 16px; }

/* ---------- 404 ---------- */
.news-err404 { text-align: center; padding: 60px 20px; }
.news-err404-code { font-size: 4.5rem; font-weight: 800; color: var(--primary-soft); line-height: 1; }
.news-err404 h1 { font-size: 1.6rem; color: var(--text-primary); margin: 8px 0; }
.news-err404 p { color: var(--text-secondary); margin: 0 0 22px; }
.news-err404-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .news-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-main { padding: 20px 0 48px; }
  .news-grid-3 { grid-template-columns: 1fr; }
  .news-hero { padding: 36px 0 40px; }
  .news-search { flex-wrap: wrap; padding: 8px 12px; border-radius: var(--radius-lg); }
  .news-search input { width: 100%; flex: 1 1 100%; }
  .news-article { padding: 18px 16px; }
  .news-article-meta { gap: 8px; }
  .news-ads { grid-template-columns: 1fr; }
  .news-err404-code { font-size: 3.5rem; }
}
