/* ============================================================
   FONDATION LEFOULON-DELALANDE — components.css
   Boutons · Hero · Stats · Cards · Forms · Breadcrumb · Page header
   ============================================================ */

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .22s;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}
.btn-sm { padding: 8px 18px; font-size: .8rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ── Layout deux colonnes (contenu + aside) ─────────────────── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
.sticky-aside { position: sticky; top: 20px; }
@media (max-width: 900px) {
  .split-layout { grid-template-columns: 1fr; }
  .sticky-aside { position: static; }
}

/* ── Grille de cartes 2 colonnes ────────────────────────────── */
.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .card-grid-2 { grid-template-columns: 1fr; }
}

/* ── Bandeaux et figures pleine largeur ─────────────────────── */
.media-banner {
  background: var(--navy-deep);
  overflow: hidden;
  max-height: 360px;
}
.media-banner img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  opacity: .9;
}
.figure-media {
  margin: 32px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.figure-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

/* ── Lien annexe (« voir plus ») ────────────────────────────── */
.link-more {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ── Page Header (bannière de titre) ────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-hover) 100%);
  padding: 64px 40px 56px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
}
.page-header .container { position: relative; }
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p  { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 640px; }
.page-header .breadcrumb { color: rgba(255,255,255,.5); margin-bottom: 20px; }
.page-header .breadcrumb a { color: rgba(255,255,255,.5); }
.page-header .breadcrumb a:hover { color: var(--gold); }
.page-header .breadcrumb .sep { color: rgba(255,255,255,.2); }
.page-header .breadcrumb .current { color: rgba(255,255,255,.85); }

/* ── Hero (page d'accueil) ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.fondation-lefoulon-delalande.fr/wp-content/uploads/2021/10/Sans-titre-27.png');
  background-size: cover;
  background-position: center;
  opacity: .25;
  filter: grayscale(.4);
  transform: scale(1.03);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(6,22,41,.92) 0%,
    rgba(10,34,64,.80) 50%,
    rgba(10,34,64,.60) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 100px 40px 80px;
  width: 100%;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--gold);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 680px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero p {
  color: rgba(255,255,255,.78);
  font-size: 1.1rem;
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: bounce 2.5s ease infinite;
}
.hero-scroll svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(6px); }
}

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 0 40px;
}
.stats-bar .container { padding: 0 40px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,.08);
}
.stat-item {
  padding: 32px 28px;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Section intro ──────────────────────────────────────────── */
.intro-section {
  padding: 88px 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.intro-img img { width: 100%; height: 100%; object-fit: cover; }
.intro-text .section-label { display: block; }
.intro-text h2 { margin-bottom: 20px; }
.intro-text p { color: var(--text-muted); margin-bottom: 16px; }
.intro-text .btn { margin-top: 24px; }

/* ── Programme cards ────────────────────────────────────────── */
.programs-section {
  background: var(--bg-section);
  padding: 88px 0;
}
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
.program-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.program-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.program-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.program-card:hover .program-card-img img { transform: scale(1.05); }
.program-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-sm);
}
.program-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.program-card-body h3 { margin-bottom: 12px; font-size: 1.4rem; }
.program-card-body p  { color: var(--text-muted); font-size: .9rem; flex: 1; }
.program-card-body .amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0 4px;
  font-family: var(--font-heading);
}
.program-card-body .amount-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.program-card-body .amount-label {
  font-size: .85rem;
  color: var(--text-muted);
}
.program-card-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.program-card-footer .created {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── News cards ─────────────────────────────────────────────── */
.news-section { padding: 88px 0; }
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.news-card-img {
  height: 190px;
  overflow: hidden;
  background: var(--bg-section);
  flex-shrink: 0;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.news-category {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--gold-light);
  color: var(--gold-dark);
}
.news-category.cat-prix   { background: #FEF3C7; color: #92400E; }
.news-category.cat-bourse { background: #DBEAFE; color: #1D4ED8; }
.news-category.cat-appel  { background: #D1FAE5; color: #065F46; }
.news-category.cat-event  { background: #EDE9FE; color: #5B21B6; }
.news-date {
  font-size: .78rem;
  color: var(--text-muted);
}
.news-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.35;
  flex: 1;
}
.news-card-body h3 a { color: var(--navy); transition: color .2s; }
.news-card-body h3 a:hover { color: var(--blue); }
.news-card-body p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.news-read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.news-read-more:hover { gap: 10px; }

/* Featured news (big card) */
.news-card.featured {
  grid-column: span 2;
  flex-direction: row;
}
.news-card.featured .news-card-img { height: auto; flex: 0 0 45%; }
.news-card.featured .news-card-body { padding: 36px; }
.news-card.featured h3 { font-size: 1.4rem; }

/* ── Timeline ───────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
  margin: 40px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--border));
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--gold-light);
}
.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 6px;
  line-height: 1;
}
.timeline-item p { font-size: .9rem; color: var(--text-muted); }

/* ── Team grid ──────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.team-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.team-card {
  text-align: center;
}
.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s, transform .2s;
}
.team-card:hover .team-avatar {
  border-color: var(--gold);
  transform: scale(1.04);
}
.team-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}
.team-role {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Highlight box ──────────────────────────────────────────── */
.highlight-box {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 24px 28px;
  margin: 28px 0;
}
.highlight-box h4 { color: var(--gold-dark); margin-bottom: 8px; }
.highlight-box p  { color: var(--text); font-size: .95rem; margin: 0; }

/* ── Info card ──────────────────────────────────────────────── */
.info-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.info-card--sm { padding: 20px; }
.info-card h3 { margin-bottom: 16px; }
.info-card-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.info-card h3.info-card-title { margin-bottom: 20px; }
.info-card-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.info-card .info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.info-card .info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--bg-section);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.info-row-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-row-content strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 3px; font-weight: 700; }
.info-row-content span { font-size: .95rem; color: var(--text); }

/* ── Formulaire de contact ──────────────────────────────────── */
.contact-form {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .02em;
}
.form-field label .required { color: var(--red); margin-left: 2px; }
.form-field input,
.form-field textarea,
.form-field select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: .9rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  background: var(--bg);
  outline: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1,112,185,.12);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select { appearance: none; cursor: pointer; }
.form-hint {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: .78rem;
}
.form-submit { margin-top: 24px; }
.form-note {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── Appel à candidatures ───────────────────────────────────── */
.apply-section {
  background: var(--gold-light);
  border-radius: var(--r-xl);
  padding: 48px;
  margin: 48px 0;
}
.apply-section--split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.apply-section .section-label { color: var(--gold-dark); }
.apply-section h3 { margin: 8px 0 12px; }
.apply-desc {
  color: var(--text-muted);
  font-size: .95rem;
}
.apply-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .apply-section { padding: 28px 20px; }
  .apply-section--split { grid-template-columns: 1fr; }
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-hover) 100%);
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner .container { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p  { color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto 32px; }
.cta-banner .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Suggestions (Ce qui pourrait vous intéresser) ──────────── */
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.suggestion-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.suggestion-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold-light);
}
.suggestion-icon {
  width: 44px; height: 44px;
  background: var(--gold-light);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.suggestion-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.suggestion-card h4 { font-size: 1rem; color: var(--navy); line-height: 1.35; }
.suggestion-card p  { font-size: .85rem; color: var(--text-muted); flex: 1; line-height: 1.65; }
.suggestion-card a.link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.suggestion-card a.link:hover { gap: 10px; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
.page-num {
  width: 36px; height: 36px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all .2s;
}
.page-num:hover,
.page-num.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ── Loading skeleton ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-section) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Blocs prédéfinis de skeleton */
.sk-thumb { height: 190px; }
.sk-hero  { height: 340px; border-radius: 0; }
.sk-icon  {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  margin-bottom: 12px;
}
.sk-line       { height: 16px; margin-bottom: 10px; }
.sk-line--xs   { height: 12px; }
.sk-line--sm   { height: 14px; }
.sk-line--lg   { height: 20px; }
.sk-line--xl   { height: 40px; }
.sk-line--last { margin-bottom: 0; }
.sk-line--gap  { margin-bottom: 28px; }

/* Largeurs de skeleton */
.w-55  { width: 55%; }
.w-60  { width: 60%; }
.w-70  { width: 70%; }
.w-75  { width: 75%; }
.w-80  { width: 80%; }
.w-85  { width: 85%; }
.w-90  { width: 90%; }
.w-95  { width: 95%; }
.w-100 { width: 100%; }
.w-120px { width: 120px; }

/* ── Responsive composants ──────────────────────────────────── */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: 1fr; }
  .news-grid     { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-column: span 2; flex-direction: column; }
  .news-card.featured .news-card-img { height: 220px; flex: none; }
  .intro-grid    { gap: 48px; }
}

@media (max-width: 768px) {
  .intro-grid    { grid-template-columns: 1fr; }
  .intro-img     { max-height: 280px; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .stats-bar     { padding: 0 20px; }
  .news-grid     { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: span 1; }
  .form-grid     { grid-template-columns: 1fr; }
  .hero-content  { padding: 80px 20px 60px; }
  .page-header   { padding: 44px 20px 36px; }
  .programs-grid { gap: 20px; }
  .team-grid     { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .contact-form  { padding: 28px 20px; }
  .cta-banner    { padding: 52px 20px; }
}

@media (max-width: 480px) {
  .stats-grid      { grid-template-columns: 1fr; }
  .hero-ctas       { flex-direction: column; }
  .cta-banner .cta-btns { flex-direction: column; align-items: center; }
  .news-header     { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero h1         { font-size: 1.9rem; }
}

/* ── Article detail page ─────────────────────────────────────── */
.article-hero-wrap {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  background: var(--navy);
}
.article-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  opacity: .88;
}
.article-page-header { padding-top: 36px; }
.article-page-header h1 { max-width: 820px; }
.article-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.article-author {
  font-size: .78rem;
  color: var(--text-muted);
}

/* 2-column layout: content + sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

/* Main body */
.article-body-wrap { min-width: 0; }
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.article-body h2,
.article-body h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 36px 0 14px;
  line-height: 1.2;
}
.article-body h2 { font-size: 1.7rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body p  { margin-bottom: 18px; }
.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--navy); }
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--navy); }

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 28px;
}
.article-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-section);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Link to official source */
.article-external-link {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

/* Sidebar meta card */
.article-aside { position: sticky; top: calc(var(--sb-collapsed) + 24px); }
.article-meta-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.article-meta-card h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 700;
}
.article-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-meta-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--text);
}
.article-meta-list li svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.article-meta-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap .2s;
}
.article-meta-back:hover { gap: 10px; color: var(--navy); }

/* Prev / Next navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 64px;
}
.article-nav-prev,
.article-nav-next {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: #fff;
  max-width: 48%;
  transition: border-color .2s, box-shadow .2s;
  color: var(--text);
}
.article-nav-prev:hover,
.article-nav-next:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  color: var(--navy);
}
.article-nav-next > div { text-align: right; }
.article-nav-prev span,
.article-nav-next span {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.article-nav-prev strong,
.article-nav-next strong {
  display: block;
  font-size: .88rem;
  color: var(--navy);
  line-height: 1.3;
}
.article-nav-prev svg,
.article-nav-next svg {
  flex-shrink: 0;
  stroke: var(--blue);
}

/* Related articles */
.article-related-section { margin-top: 16px; }
.article-related-section h2 {
  font-size: 1.5rem;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold-light);
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Responsive article */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside  { position: static; }
  .article-meta-card { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
  .article-meta-list { flex-direction: row; flex-wrap: wrap; gap: 16px; margin: 0; flex: 1; }
  .article-meta-card h4 { width: 100%; margin-bottom: 0; }
  .article-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .article-hero-img { height: 220px; }
  .article-related-grid { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; }
  .article-nav-prev,
  .article-nav-next { max-width: 100%; }
}
@media (max-width: 480px) {
  .article-hero-img { height: 160px; }
}
