:root {
  --news-navy: #141943;
  --news-navy-soft: #20285f;
  --news-red: #c8402e;
  --news-red-dark: #aa3325;
  --news-ink: #1f2a4d;
  --news-muted: #62708d;
  --news-surface: #ffffff;
  --news-surface-soft: #f6f8ff;
  --news-border: rgba(20, 25, 67, 0.1);
  --news-shadow: 0 24px 60px rgba(20, 25, 67, 0.08);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.news-item {
  display: flex;
}

.news-item > * {
  width: 100%;
}

.news-story-card,
.news-featured-panel,
.news-empty-state,
.news-article-card,
.news-sidebar-card {
  background: var(--news-surface);
  border: 1px solid var(--news-border);
  box-shadow: var(--news-shadow);
}

.news-story-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  height: 100%;
}

.news-story-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe6f6;
  flex-shrink: 0;
}

.news-story-card__media img,
.news-featured-panel__media img,
.news-single-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-story-card__media img,
.news-featured-panel__media img {
  transition: transform 0.5s ease;
}

.news-story-card:hover .news-story-card__media img,
.news-featured-panel:hover .news-featured-panel__media img {
  transform: scale(1.04);
}

/* Category badge overlaid on image */
.news-story-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #c8402e;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(200,64,46,0.35);
  pointer-events: none;
}

.news-story-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 24px;
  flex: 1;
}

/* Hide the chip in body when badge is shown on image — keep for archive view */
.news-story-card__body .news-story-chip {
  display: none;
}

.news-story-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(200, 64, 46, 0.1);
  color: var(--news-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-story-card__title,
.news-featured-panel__title,
.news-related-section__title {
  color: var(--news-navy);
  font-weight: 800;
  line-height: 1.2;
}

.news-story-card__title {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  margin: 0;
}

.news-story-card__title a,
.news-featured-panel__title a {
  color: inherit;
  text-decoration: none;
}

.news-story-card__title a:hover,
.news-featured-panel__title a:hover {
  color: var(--news-red);
}

.news-story-card__excerpt,
.news-featured-panel__excerpt,
.news-single-hero__excerpt,
.news-sidebar-card__copy {
  color: var(--news-muted);
  line-height: 1.65;
  font-size: 0.92rem;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.news-story-card__meta,
.news-single-hero__meta,
.news-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #8792aa;
  font-size: 0.95rem;
}

.news-story-card__cta {
  margin-top: auto;
  width: fit-content;
  font-size: 0.88rem;
  padding: 9px 20px;
}

.news-featured-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 34px;
}

.news-featured-panel__media {
  min-height: 100%;
  background: #dfe6f6;
}

.news-featured-panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 38px;
}

.news-featured-panel__title {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

.news-featured-panel__actions {
  margin-top: 8px;
}

.news-archive-shell {
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at top left, rgba(200, 64, 46, 0.09), transparent 28%),
    linear-gradient(180deg, #f7f8fd 0%, #ffffff 30%);
}

.news-empty-state {
  grid-column: 1 / -1;
  border-radius: 28px;
  padding: 48px 28px;
  text-align: center;
}

/* ─────────────────────────────────────────────
   NEWS DETAIL PAGE  (nsd-*)
───────────────────────────────────────────── */

/* Page wrapper */
.nsd-page {
  background: #f7f8fd;
}

/* ── Body layout ── */
.nsd-body {
  padding: 90px 0 110px;
}

.nsd-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 70px;
  align-items: start;
}

/* ── Article ── */
.nsd-article {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Featured Image */
.nsd-article__featured-image {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: 0 24px 60px rgba(20, 25, 67, 0.18);
}

.nsd-article__featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.nsd-article__prose {
  color: #3F4652;
  font-size: 1.125rem;
  line-height: 1.8;
  font-weight: 400;
}

.nsd-article__prose > *:first-child { 
  margin-top: 0; 
  font-size: 1.3125rem;
  color: #141943;
  line-height: 1.7;
  font-weight: 500;
}

.nsd-article__prose h2,
.nsd-article__prose h3,
.nsd-article__prose h4 {
  color: #141943;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 50px;
  margin-bottom: 24px;
}

.nsd-article__prose h2 { font-size: 2rem; }
.nsd-article__prose h3 { font-size: 1.625rem; }

.nsd-article__prose p,
.nsd-article__prose ul,
.nsd-article__prose ol,
.nsd-article__prose blockquote { margin-bottom: 28px; }

.nsd-article__prose ul,
.nsd-article__prose ol { padding-left: 1.5em; }

.nsd-article__prose li { margin-bottom: 0.55em; }

.nsd-article__prose a {
  color: var(--news-red);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.nsd-article__prose strong { color: var(--news-navy); }

.nsd-article__prose blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--news-red);
  background: #f6f8ff;
  border-radius: 0 16px 16px 0;
  color: var(--news-navy);
  font-style: italic;
}

.nsd-article__prose img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 28px 0;
  box-shadow: 0 16px 44px rgba(20,25,67,0.1);
}

/* Share Section */
.nsd-share-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #E5E7EB;
}

.nsd-share-section__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #141943;
  margin: 0 0 18px;
}

.nsd-share-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Share icon buttons */
.nsd-share-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s;
}

.nsd-share-icon:hover {
  transform: translateY(-3px);
}

.nsd-share-icon--facebook {
  background: #1877F2;
}

.nsd-share-icon--twitter {
  background: #1DA1F2;
}

.nsd-share-icon--linkedin {
  background: #0A66C2;
}

.nsd-share-icon--whatsapp {
  background: #25D366;
}

/* ── Sidebar ── */
.nsd-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nsd-sidebar-card {
  background: #F5F6FA;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 32px 28px;
}

.nsd-sidebar-card--dark {
  background: linear-gradient(135deg, #141943 0%, #1e2a5a 100%);
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(20, 25, 67, 0.25);
}

.nsd-sidebar-card__heading {
  font-size: 1.125rem;
  font-weight: 800;
  color: #141943;
  margin: 0 0 20px;
}

.nsd-sidebar-card__heading--light { 
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.nsd-sidebar-card__copy {
  color: #6B7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 16px 0 0;
}

.nsd-sidebar-card__copy--light { 
  color: rgba(255,255,255,0.82); 
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 24px;
}

/* Author */
.nsd-author__name {
  color: #141943;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

/* Sidebar link */
.nsd-sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #C8402E;
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.2s;
  margin-top: 16px;
}

.nsd-sidebar-link:hover {
  gap: 10px;
}

/* Related list */
.nsd-related-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nsd-related-item {
  display: block;
  text-decoration: none;
  transition: transform 0.2s;
  padding-bottom: 24px;
  border-bottom: 1px solid #E5E7EB;
}

.nsd-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.nsd-related-item:hover {
  transform: translateX(4px);
}

.nsd-related-item__category {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #C8402E;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.nsd-related-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: #141943;
  line-height: 1.4;
  margin: 0 0 6px;
}

.nsd-related-item__date {
  font-size: 0.8125rem;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
}

/* Newsletter form */
.nsd-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nsd-newsletter-form__input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.nsd-newsletter-form__input::placeholder { color: rgba(255,255,255,0.4); }
.nsd-newsletter-form__input:focus { border-color: rgba(255,255,255,0.4); }

.nsd-newsletter-form__btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: #C8402E;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.15s;
}

.nsd-newsletter-form__btn:hover {
  background: #b03426;
  transform: translateY(-2px);
}

.nsd-newsletter-form__privacy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin: 12px 0 0;
  line-height: 1.5;
}

/* ── Related ── */
.nsd-related {
  padding: 0 0 92px;
}

.nsd-related__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.nsd-related__title {
  margin: 12px 0 0;
  color: var(--news-navy);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .nsd-layout { 
    grid-template-columns: 1fr; 
    gap: 44px;
  }
  .nsd-sidebar { 
    position: static; 
    order: -1;
  }
}

@media (max-width: 820px) {
  .nsd-body { padding: 60px 0 80px; }
  .nsd-article__featured-image { margin-bottom: 40px; }
}

@media (max-width: 640px) {
  .nsd-body { padding: 50px 0 70px; }
}

/* ─────────────────────────────────────────────
   Legacy single-page classes kept for archive
   pages that may still reference them
───────────────────────────────────────────── */
.news-single-page { background: #f7f8fd; }

.news-sidebar-link-list { display: flex; flex-direction: column; gap: 16px; }

.news-sidebar-link {
  display: grid;
  grid-template-columns: 76px minmax(0,1fr);
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.news-sidebar-link__thumb {
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #dfe6f6;
}

.news-sidebar-link__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-sidebar-link__title {
  color: var(--news-navy);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.18s;
}

.news-sidebar-link:hover .news-sidebar-link__title { color: var(--news-red); }
.news-sidebar-link__meta { margin-top: 4px; color: #9098ab; font-size: 0.86rem; }

.news-related-section { padding: 0 0 92px; }

.news-related-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.news-related-section__title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.news-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--news-border);
  color: var(--news-navy);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(20, 25, 67, 0.06);
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
  color: #fff;
  background: var(--news-red);
  border-color: var(--news-red);
}

@media (max-width: 1100px) {
  .news-grid,
  .news-featured-panel {
    grid-template-columns: 1fr;
  }

  .news-featured-panel__media {
    min-height: 320px;
  }
}

@media (max-width: 820px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-story-card__body,
  .news-featured-panel__content {
    padding: 24px;
  }

  .news-archive-shell {
    padding-bottom: 72px;
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-related-section__header {
    align-items: flex-start;
    flex-direction: column;
  }
}
