:root {
  --primary: #1678eb;
  --primary-dark: #0d4ea2;
  --gold: #f4c400;
  --gold-dark: #d5a900;
  --text: #182433;
  --muted: #66758a;
  --white: #ffffff;
  --bg: #f4f7fb;
  --soft: #edf2f7;
  --dark: #0f1724;
  --dark-2: #172131;
  --border: rgba(14, 25, 40, 0.08);
  --shadow: 0 14px 36px rgba(10, 25, 50, 0.10);
  --shadow-lg: 0 24px 70px rgba(10, 25, 50, 0.18);
}

/* =========================
   BASE
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1400px, calc(100% - 20px));
  margin: 0 auto;
}

/* =========================
   TOPBAR
========================= */
.topbar {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}

/* =========================
   HEADER / NAV
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.nav {
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 1;
}

.site-logo {
  width: 220px;
  height: 120px;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  display: block;
  flex-shrink: 0;
}

.brand-fallback {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: none;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
  margin-left: 10px;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  position: relative;
  transition: color .25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width .25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  padding: 14px 24px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.small {
  padding: 12px 18px;
  border-radius: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #11315b;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 90px 0;
}

.section-light {
  background: var(--bg);
}

.section-tag {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
}

.section-tag-light {
  color: var(--gold);
}

/* =========================
   HERO
========================= */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(244, 196, 0, .14), transparent 22%),
    radial-gradient(circle at top right, rgba(22, 120, 235, .16), transparent 20%),
    linear-gradient(135deg, #0f1724, #18283d);
  color: #fff;
  padding: 110px 0 70px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,.03), transparent),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.06), transparent 20%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
}

.news-hero-lead {
  margin: 0;
  max-width: 760px;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255,255,255,.88);
}

/* =========================
   ACTUALITES
========================= */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 28px;
  align-items: start;
}

.news-card-item {
  display: block;
  width: 100%;
  min-width: 0;
}

.news-card-image-link {
  display: block;
  width: 100%;
}

.news-card-thumb {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.news-card-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.20), rgba(0,0,0,.02));
}

.news-card-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: inline-flex;
  padding: 7px 10px;
  background: rgba(0,0,0,.88);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.news-card-text {
  padding-top: 14px;
}

.news-card-title-link {
  text-decoration: none;
}

.news-card-title-link h3 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.16;
  color: var(--text);
  transition: color .2s ease;
}

.news-card-title-link:hover h3 {
  color: var(--primary);
}

.news-card-meta {
  color: var(--muted);
  font-size: 15px;
}

.news-card-meta strong {
  color: var(--text);
}

/* =========================
   ARTICLE DETAIL
========================= */
.article-layout-pro {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr;
  gap: 28px;
  align-items: start;
}

.article-sidebar-pro,
.article-main-pro {
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14,25,40,.05);
}

.article-sidebar-pro {
  padding: 24px;
  position: sticky;
  top: 110px;
}

.article-sidebar-pro h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 22px;
}

.article-sidebar-pro ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--muted);
}

.article-sidebar-pro li + li {
  margin-top: 10px;
}

.article-main-pro {
  overflow: hidden;
}

.article-cover-pro {
  height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.article-content-pro {
  padding: 28px 26px 30px;
}

.article-content-pro h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: var(--text);
}

.article-content-pro p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 16px;
}

.article-lead {
  font-size: 18px !important;
  color: var(--muted) !important;
}

.news-chip {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22,120,235,.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

/* =========================
   FOOTER CLAIR
========================= */
.footer {
  margin-top: auto;
  background: #eef3f8;
  color: #2f3b4a;
  padding: 38px 0 16px;
  border-top: 1px solid rgba(14, 25, 40, 0.08);
}

.footer-main {
  display: grid;
  grid-template-columns: 320px 1fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 14px;
}

.footer-brand-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #1f73df;
}

.footer-brand-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #607189;
  max-width: 240px;
}

.footer-column h4 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  color: #6f6889;
  text-transform: uppercase;
}

.footer-column p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #2f3b4a;
}

.footer-column a {
  color: #2f3b4a;
  transition: color .2s ease;
}

.footer-column a:hover {
  color: #1678eb;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 25, 40, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: #607189;
  font-size: 14px;
  line-height: 1.7;
}

/* =========================
   REVEAL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: all .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1180px) {
  .container {
    width: min(1240px, calc(100% - 18px));
  }

  .nav {
    min-height: 108px;
    padding: 8px 0;
  }

  .site-logo {
    width: 180px;
    height: 96px;
  }

  .brand-text {
    margin-left: 8px;
  }

  .nav-links {
    gap: 18px;
    margin-right: 0;
  }

  .footer-main {
    grid-template-columns: 280px 1fr 1fr;
  }

  .footer-column:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 980px) {
  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-layout-pro {
    grid-template-columns: 1fr;
  }

  .article-sidebar-pro {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: auto;
  }
}

@media (max-width: 920px) {
  .nav {
    min-height: 96px;
    padding: 8px 0;
  }

  .site-logo {
    width: 150px;
    height: 82px;
  }

  .brand-text {
    margin-left: 6px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 13px;
    max-width: 260px;
    white-space: normal;
    line-height: 1.25;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin-right: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(22,120,235,.06);
  }

  .nav-links a::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .article-cover-pro {
    height: 240px;
  }

  .article-sidebar-pro,
  .article-content-pro {
    padding: 20px 18px;
  }

  .footer {
    padding: 28px 0 14px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-logo {
    width: 120px;
    height: 120px;
  }

  .footer-brand-title {
    font-size: 20px;
  }

  .footer-column h4 {
    font-size: 16px;
  }

  .footer-column p,
  .footer-bottom p {
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1240px, calc(100% - 14px));
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0;
  }

  .nav {
    min-height: 84px;
    padding: 6px 0;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .site-logo {
    width: 118px;
    height: 64px;
  }

  .brand-text {
    margin-left: 4px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
    max-width: 150px;
    white-space: normal;
    line-height: 1.25;
  }

  .section {
    padding: 68px 0;
  }

  .page-hero {
    padding: 90px 0 56px;
  }

  .page-hero h1 {
    font-size: clamp(30px, 10vw, 48px);
  }

  .news-hero-lead {
    font-size: 16px;
  }

  .news-card-thumb {
    height: 220px;
  }

  .news-card-title-link h3 {
    font-size: 22px;
  }

  .news-card-meta {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .site-logo {
    width: 104px;
    height: 58px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 10px;
    max-width: 130px;
  }

  .news-hero-lead {
    font-size: 15px;
  }

  .footer-logo {
    width: 105px;
    height: 105px;
  }

  .footer-brand-title {
    font-size: 18px;
  }
}


/* =========================================================
   FNRSIT - NAVIGATION PREMIUM : SURVOL + CLIC ACTIF
   Ajouté pour donner un vrai fond visuel aux boutons du menu.
========================================================= */
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-links a::after {
  display: none !important;
}

.nav-links a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 120, 235, 0.26);
}

.nav-links a:active {
  transform: translateY(0) scale(0.97);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: #11315b;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 12px 28px rgba(244, 196, 0, 0.28);
}

.nav-links a:focus-visible {
  outline: none;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 0 4px rgba(22, 120, 235, 0.18);
}

@media (max-width: 920px) {
  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 15px;
    border-radius: 14px;
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-links a[aria-current="page"] {
    transform: translateX(4px);
  }
}


/* =========================================================
   FNRSIT - EFFETS PREMIUM : ACTUALITÉS
========================================================= */
.news-card-item,
.article-sidebar-pro,
.article-main-pro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.news-card-thumb,
.news-card-title-link h3,
.news-card-tag,
.article-cover-pro {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease,
    background 0.35s ease,
    filter 0.35s ease;
}

.news-card-item:hover {
  transform: translateY(-12px) scale(1.025);
}

.news-card-item:hover .news-card-thumb {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 28px 70px rgba(10, 25, 50, 0.22);
}

.news-card-item:hover .news-card-tag {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #11315b;
}

.news-card-item:hover .news-card-title-link h3 {
  color: var(--primary);
  transform: translateY(-2px);
}

.article-sidebar-pro:hover,
.article-main-pro:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 28px 70px rgba(10, 25, 50, 0.18);
}

.article-main-pro:hover .article-cover-pro {
  filter: saturate(1.08) contrast(1.04);
}

@media (max-width: 760px) {
  .news-card-item:hover,
  .article-sidebar-pro:hover,
  .article-main-pro:hover {
    transform: translateY(-6px) scale(1.01);
  }
}

/* ==================================================
   Actualites publiques - style institutionnel
================================================== */
.hidden {
  display: none !important;
}

.news-index-page,
.article-detail-page {
  background: #f5f6f8;
}

.news-list-heading,
.article-detail-heading {
  padding: 54px 0 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f6f8 100%);
  border-bottom: 1px solid rgba(12, 24, 40, 0.08);
}

.news-eyebrow,
.article-chip {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 11px;
  color: #fff;
  background: #0d4ea2;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-list-heading h1,
.article-detail-heading h1 {
  max-width: 960px;
  margin: 0;
  color: #172234;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
}

.news-list-heading p,
.article-detail-heading p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #5b6472;
  font-size: 17px;
  line-height: 1.65;
}

.news-list-section,
.article-detail-section {
  padding: 36px 0 70px;
}

.news-list-layout,
.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.news-list-main,
.article-detail-card {
  min-width: 0;
}

.news-list {
  display: grid;
  gap: 22px;
}

.news-list-item {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 22px;
  background: transparent;
  border-bottom: 1px solid rgba(12, 24, 40, 0.10);
}

.news-list-image {
  display: block;
  min-height: 174px;
  overflow: hidden;
  background: #dbe4ef;
  border-radius: 4px;
  text-decoration: none;
}

.news-list-image img,
.article-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-fallback,
.article-cover-fallback {
  display: grid;
  min-height: 174px;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 78, 162, 0.94), rgba(244, 196, 0, 0.72)),
    radial-gradient(circle at top left, rgba(255,255,255,.24), transparent 34%);
  font-weight: 900;
}

.news-list-body {
  min-width: 0;
}

.news-list-title {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-list-title h2 {
  margin: 0 0 10px;
  color: #172234;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.2;
}

.news-list-title:hover h2 {
  color: #0d4ea2;
}

.news-list-body p {
  margin: 0 0 12px;
  color: #5f6876;
  font-size: 15px;
  line-height: 1.65;
}

.news-list-body time,
.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #6a7280;
  font-size: 14px;
  font-weight: 700;
}

.news-read-more {
  display: inline-flex;
  width: fit-content;
  margin-top: 13px;
  padding: 9px 13px;
  color: #fff;
  background: #0d4ea2;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.news-read-more:hover {
  background: #083c7d;
}

.news-loading-state,
.news-empty-state,
.article-empty {
  padding: 22px;
  color: #5f6876;
  background: #fff;
  border: 1px solid rgba(12, 24, 40, 0.08);
  border-radius: 4px;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.news-pagination button,
.news-pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #172234;
  background: #fff;
  border: 1px solid rgba(12, 24, 40, 0.12);
  border-radius: 3px;
  font-weight: 800;
}

.news-pagination button {
  cursor: pointer;
}

.news-pagination button.active {
  color: #fff;
  background: #0d4ea2;
  border-color: #0d4ea2;
}

.news-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.news-side-panel,
.article-detail-side {
  position: sticky;
  top: 90px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(12, 24, 40, 0.08);
  border-radius: 4px;
}

.news-side-panel h2,
.article-detail-side h2 {
  margin: 0 0 16px;
  color: #172234;
  font-size: 21px;
}

.featured-news-list {
  display: grid;
  gap: 13px;
}

.featured-news-link {
  display: block;
  padding-bottom: 13px;
  color: inherit;
  border-bottom: 1px solid rgba(12, 24, 40, 0.09);
  text-decoration: none;
}

.featured-news-link strong {
  display: block;
  color: #172234;
  font-size: 14px;
  line-height: 1.4;
}

.featured-news-link span {
  display: block;
  margin-top: 6px;
  color: #6a7280;
  font-size: 12px;
  font-weight: 700;
}

.featured-news-link:hover strong {
  color: #0d4ea2;
}

.news-side-note {
  margin-top: 24px;
  padding: 16px;
  background: #f4f7fb;
  border-left: 4px solid #f4c400;
}

.news-side-note h3 {
  margin: 0 0 8px;
  color: #172234;
  font-size: 16px;
}

.news-side-note p {
  margin: 0;
  color: #5f6876;
  font-size: 14px;
  line-height: 1.55;
}

.article-back {
  display: inline-flex;
  margin-bottom: 20px;
  color: #0d4ea2;
  font-weight: 800;
  text-decoration: none;
}

.article-back:hover {
  text-decoration: underline;
}

.article-detail-card {
  padding: 0;
  background: #fff;
  border: 1px solid rgba(12, 24, 40, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.article-detail-cover {
  width: 100%;
  min-height: 360px;
  background: #dbe4ef;
}

.article-detail-summary {
  margin: 0;
  padding: 26px 30px 0;
  color: #24354a;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.65;
}

.article-detail-body {
  padding: 24px 30px 34px;
  color: #273447;
  font-size: 17px;
  line-height: 1.8;
}

.article-detail-body p {
  margin: 0 0 18px;
}

.article-detail-meta span::after {
  content: "•";
  margin-left: 8px;
  color: #b0b7c2;
}

@media (max-width: 980px) {
  .news-list-layout,
  .article-detail-layout {
    grid-template-columns: 1fr;
  }

  .news-side-panel,
  .article-detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .news-list-heading,
  .article-detail-heading {
    padding: 38px 0 26px;
  }

  .news-list-section,
  .article-detail-section {
    padding: 26px 0 48px;
  }

  .news-list-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-list-image,
  .news-list-fallback {
    min-height: 210px;
  }

  .article-detail-cover {
    min-height: 230px;
  }

  .article-detail-summary,
  .article-detail-body {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Site-wide mobile fixes for news pages */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 24px, 100%) !important;
  }

  .nav {
    min-height: auto !important;
    padding: 10px 0 !important;
    align-items: center !important;
  }

  .brand {
    max-width: calc(100% - 20px);
    gap: 10px;
  }

  .site-logo {
    width: min(150px, 42vw) !important;
    height: auto !important;
  }

  .brand-text {
    min-width: 0;
  }

  .nav-links {
    width: 100% !important;
    max-width: 100% !important;
  }

  .news-list-layout,
  .article-detail-layout,
  .footer-main {
    grid-template-columns: 1fr !important;
  }

  .news-side-panel,
  .article-detail-side {
    position: static !important;
  }

  .news-list-item {
    grid-template-columns: 1fr !important;
  }

  .news-list-image,
  .news-list-fallback {
    min-height: 220px;
  }

  .article-detail-cover {
    min-height: 250px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 18px, 100%) !important;
  }

  .site-logo {
    width: min(118px, 36vw) !important;
  }

  .news-list-heading h1,
  .article-detail-heading h1 {
    font-size: clamp(1.8rem, 10vw, 2.4rem) !important;
  }

  .news-list-body,
  .news-side-panel,
  .article-detail-side,
  .article-detail-summary,
  .article-detail-body {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .footer-main {
    gap: 24px !important;
  }
}

