/* Facts pages — extracted from static templates */
.facts-page .reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.facts-page .reveal.visible { opacity: 1; transform: translateY(0); }
FACTS NICHE — EDITORIAL MAGAZINE STYLE
   Accent: Forest Green #1A6FBF | Highlight: Golden #FF6B35
   ================================================================ */
*, *::before, *::after { box-sizing: border-box }

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --fg: #1A6FBF;        /* forest green accent */
  --fg-light: rgba(26,111,191,.09);
  --fg-mid:   rgba(26,111,191,.18);
  --gold:     #FF6B35;
  --gold-light: rgba(255,107,53,.12);
  --facts-bg: #F2F6FF;  /* warm off-white */
}

/* ---- HERO ---- */
.facts-hero {
  padding: 130px 5% 70px;
  background: linear-gradient(140deg, #0F1F5C 0%, #122272 45%, #1A6FBF 100%);
  position: relative; overflow: hidden; min-height: 420px;
  display: flex; align-items: flex-end;
}
/* decorative floating elements */
.fh-shape {
  position: absolute; opacity: .12; pointer-events: none;
  font-size: 56px; animation: fhFloat 7s ease-in-out infinite;
  user-select: none;
}
.fh-shape.a { top:15%; left:4%;  font-size:44px; animation-delay:0s }
.fh-shape.b { top:60%; left:9%;  font-size:30px; animation-delay:1.2s }
.fh-shape.c { top:18%; right:5%; font-size:52px; animation-delay:.6s }
.fh-shape.d { top:58%; right:8%; font-size:32px; animation-delay:1.8s }
.fh-shape.e { top:8%;  right:28%;font-size:24px; animation-delay:.9s }
.fh-shape.f { top:72%; left:32%; font-size:22px; animation-delay:1.4s }
@keyframes fhFloat {
  0%,100% { transform: translateY(0) rotate(0deg) }
  40%     { transform: translateY(-16px) rotate(5deg) }
  70%     { transform: translateY(5px) rotate(-3deg) }
}
/* subtle pattern overlay */
.facts-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(255,107,53,.08) 0%, transparent 60%);
}
.fh-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; padding-bottom: 52px;
}
.fh-text { flex: 1; min-width: 280px }
.fh-rotating-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FF6B35; color: #0F1F5C;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
  padding: 7px 16px; border-radius: 50px; margin-bottom: 20px;
}
.fh-rotating-badge .badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #0F1F5C;
  animation: badgePulse 1.2s ease-in-out infinite;
}
@keyframes badgePulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.5)} }

.fh-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900;
  color: #fff; line-height: 1.08; letter-spacing: -.5px; margin-bottom: 16px;
}
.fh-text h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #FF6B35, #FFB89A);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.fh-text p { font-size: 16px; color: rgba(255,255,255,.78); line-height: 1.7; max-width: 480px }
.fh-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px }
.fh-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px); padding: 8px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 700; color: #fff;
}
.fh-pill span { font-weight: 900; color: #FF6B35 }

.fh-visual { flex-shrink:0; font-size:110px; line-height:1;
  filter:drop-shadow(0 8px 32px rgba(0,0,0,.3));
  animation:fhBob 4s ease-in-out infinite; }
@keyframes fhBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ---- MAIN ---- */
.facts-main { background: var(--facts-bg); padding: 0 5% 80px }
.facts-wrap { max-width: 1180px; margin: 0 auto }

/* pull stats strip up to overlap hero bottom */
.facts-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
  margin-top: -36px; margin-bottom: 52px; position: relative; z-index: 4;
}
.facts-stat {
  background: #fff; border-radius: 20px;
  padding: 20px 16px; text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.04);
  border-top: 4px solid transparent; transition: transform .25s;
}
.facts-stat:hover { transform: translateY(-4px) }
.facts-stat.c1 { border-top-color: var(--fg) }
.facts-stat.c2 { border-top-color: #FF6B35 }
.facts-stat.c3 { border-top-color: #6C63FF }
.facts-stat.c4 { border-top-color: #EC4899 }
.facts-stat-icon { font-size: 26px; margin-bottom: 6px; display: block }
.facts-stat-num  { font-size: clamp(1.8rem,3vw,2.4rem); font-weight:900; color:var(--navy); display:block; line-height:1 }
.facts-stat-lbl  { font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.8px; margin-top:4px; display:block }

/* ---- SECTION HEADS ---- */
.facts-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.facts-section-head h2 {
  font-size: 22px; font-weight: 900; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.facts-section-head h2::before {
  content: ''; width: 4px; height: 22px; border-radius: 2px;
  background: var(--fg); display: inline-block; flex-shrink: 0;
}
.view-all-link {
  display:inline-flex; align-items:center; gap:8px;
  font-size:13.5px; font-weight:700; color:var(--fg); text-decoration:none; transition:gap .2s;
}
.view-all-link:hover { gap:12px }

/* ---- FACT OF THE DAY WIDGET ---- */
.fotd-widget {
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.03);
  border: 1.5px solid rgba(255,107,53,.3);
  margin-bottom: 52px;
}
.fotd-top {
  background: linear-gradient(135deg, #0F1F5C, #1A6FBF);
  padding: 0; position: relative; overflow: hidden;
  display: flex; gap: 0; min-height: 160px;
}
.fotd-top::after {
  content: '💡'; position:absolute; right:28px; top:50%; transform:translateY(-50%);
  font-size:80px; opacity:.1; pointer-events:none;
}
.fotd-top-accent {
  width: 6px; background: #FF6B35; flex-shrink: 0;
}
.fotd-top-body { padding: 28px 32px; flex: 1 }
.fotd-badge {
  display:inline-flex; align-items:center; gap:7px;
  background: #FF6B35; color:#0F1F5C;
  font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:1px;
  padding:5px 14px; border-radius:50px; margin-bottom:14px;
}
.fotd-badge .dot { width:7px; height:7px; border-radius:50%; background:#0F1F5C; animation:badgePulse 1.2s ease-in-out infinite }
.fotd-title { font-size:clamp(1.1rem,2.2vw,1.5rem); font-weight:900; color:#fff; line-height:1.3; margin-bottom:8px; position:relative; z-index:1 }
.fotd-cat { font-size:12px; font-weight:700; color:rgba(255,255,255,.65); position:relative; z-index:1 }

.fotd-body { padding: 26px 32px }
.fotd-excerpt { font-size:15px; color:var(--text); line-height:1.75; margin-bottom:20px }
.fotd-source {
  display:inline-flex; align-items:center; gap:7px;
  font-size:11.5px; font-weight:700; color:var(--fg);
  background:var(--fg-light); border:1px solid var(--fg-mid);
  padding:5px 13px; border-radius:50px; margin-bottom:20px; text-decoration:none;
  transition:all .2s;
}
.fotd-source:hover { background:var(--fg); color:#fff }
.fotd-actions {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
.fotd-timer { font-size:12.5px; font-weight:700; color:var(--muted); display:flex; align-items:center; gap:6px }
.fotd-timer svg { width:14px; height:14px; stroke:var(--muted); fill:none; stroke-width:2 }
.fotd-read-btn {
  display:inline-flex; align-items:center; gap:8px;
  background:linear-gradient(135deg,#1A6FBF, #00B8C8);
  color:#fff; border:none; padding:12px 26px; border-radius:50px;
  font-size:13.5px; font-weight:800; cursor:pointer; font-family:inherit;
  box-shadow:0 6px 20px rgba(26,111,191,.3); transition:all .2s;
}
.fotd-read-btn:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(26,111,191,.4) }
.fotd-share-row { display:flex; gap:8px; align-items:center; font-size:12px; font-weight:700; color:var(--muted) }
.fotd-share-btn {
  width:30px; height:30px; border-radius:50%; background:#fff;
  border:1.5px solid var(--border); display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:13px; transition:all .2s; text-decoration:none; color:var(--navy);
}
.fotd-share-btn:hover { border-color:var(--fg); color:var(--fg) }

/* ---- CATEGORY GRID ---- */
.facts-cat-grid {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 14px;
  margin-bottom: 52px;
}
.facts-cat-card {
  border-radius: 20px; padding: 22px 14px 18px; text-align:center;
  cursor:pointer; text-decoration:none; display:flex; flex-direction:column;
  align-items:center; gap:8px; transition:all .25s; position:relative; overflow:hidden;
  border: 1.5px solid transparent;
}
.facts-cat-card:hover { transform:translateY(-5px) scale(1.03); box-shadow:0 12px 32px rgba(0,0,0,.15) }
.facts-cat-icon { font-size:36px; line-height:1 }
.facts-cat-name { font-size:13px; font-weight:800; color:#fff }
.facts-cat-count { font-size:11px; font-weight:600; color:rgba(255,255,255,.72) }
/* Per-category colours */
.fcat-science    { background:linear-gradient(135deg,#4F46E5,#7C3AED) }
.fcat-history    { background:linear-gradient(135deg,#92400E,#D97706) }
.fcat-space      { background:linear-gradient(135deg,#1E1B4B,#4338CA) }
.fcat-nature    { background:linear-gradient(135deg,#059669,#10B981) }
.fcat-body       { background:linear-gradient(135deg,#9D174D,#EC4899) }
.fcat-technology { background:linear-gradient(135deg,#1E40AF,#3B82F6) }
.fcat-geography  { background:linear-gradient(135deg,#0F1F5C,#10B981) }
.fcat-food       { background:linear-gradient(135deg,#92400E,#F59E0B) }
.fcat-animals    { background:linear-gradient(135deg,#9A3412,#F97316) }
.fcat-psychology { background:linear-gradient(135deg,#581C87,#9333EA) }

/* ---- FEATURED FACT CARDS (large, image-first) ---- */
.facts-featured-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  margin-bottom: 22px;
}
.fact-card-featured {
  background: #fff; border-radius: 24px; overflow: hidden;
  cursor: pointer; text-decoration:none; display:flex; flex-direction:column;
  box-shadow: 0 4px 20px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  border: 1.5px solid rgba(0,0,0,.06);
  transition: all .3s cubic-bezier(.22,.68,0,1.2);
  position: relative;
}
/* left colour strip — the differentiating detail */
.fact-card-featured::before {
  content:''; position:absolute; top:0; left:0; bottom:0;
  width:4px; background:var(--fg); border-radius:0;
  transition:width .25s ease; z-index:2;
}
.fact-card-featured:hover { transform:translateY(-6px); box-shadow:0 18px 48px rgba(26,111,191,.14); border-color:rgba(26,111,191,.15) }
.fact-card-featured:hover::before { width:6px }
.fact-card-featured:hover .fcf-title { color:var(--fg) }

.fcf-thumb {
  height: 200px; overflow:hidden; position:relative; flex-shrink:0;
  margin-left: 4px; /* clear the colour strip */
}
.fcf-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease }
.fact-card-featured:hover .fcf-thumb img { transform:scale(1.05) }
.fcf-thumb-placeholder {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:64px;
}
.fcf-cat-badge {
  position:absolute; bottom:12px; left:12px; z-index:3;
  font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.5px;
  padding:5px 12px; border-radius:50px; backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.3);
}
.fcf-body { padding:22px 20px 20px 24px; flex:1; display:flex; flex-direction:column }
.fcf-title {
  font-size:17px; font-weight:800; color:var(--navy); line-height:1.35;
  margin-bottom:9px; transition:color .2s;
}
.fcf-excerpt {
  font-size:13.5px; color:var(--muted); line-height:1.65;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  margin-bottom:16px; flex:1;
}
.fcf-foot {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:12px; border-top:1px solid var(--border);
}
.fcf-meta { display:flex; gap:12px; align-items:center }
.fcf-meta-item {
  font-size:11.5px; font-weight:600; color:var(--muted);
  display:flex; align-items:center; gap:4px;
}
.fcf-meta-item svg { width:12px; height:12px; stroke:var(--muted); fill:none; stroke-width:2 }
.fcf-arrow {
  width:32px; height:32px; border-radius:50%;
  background:var(--fg-light); color:var(--fg);
  display:flex; align-items:center; justify-content:center;
  font-size:15px; font-weight:700; transition:all .2s;
  border:1px solid var(--fg-mid);
}
.fact-card-featured:hover .fcf-arrow { background:var(--fg); color:#fff }

/* ---- COMPACT FACT CARDS (horizontal, news-feed style) ---- */
.facts-compact-list {
  background:#fff; border-radius:22px;
  box-shadow:0 4px 20px rgba(0,0,0,.07);
  border:1.5px solid rgba(0,0,0,.05);
  overflow:hidden; margin-bottom:52px;
}
.fact-card-compact {
  display:flex; align-items:center; gap:18px;
  padding:18px 24px; border-bottom:1px solid var(--border);
  cursor:pointer; text-decoration:none; transition:all .2s;
  position:relative;
}
.fact-card-compact:last-child { border-bottom:none }
.fact-card-compact::before {
  content:''; position:absolute; left:0; top:0; bottom:0;
  width:3px; background:var(--fg); opacity:0; transition:opacity .2s;
}
.fact-card-compact:hover { background:#FAFDF9 }
.fact-card-compact:hover::before { opacity:1 }
.fact-card-compact:hover .fcc-title { color:var(--fg) }

.fcc-thumb {
  width:88px; height:88px; border-radius:14px; overflow:hidden; flex-shrink:0;
  background:var(--bg2); display:flex; align-items:center; justify-content:center; font-size:36px;
}
.fcc-thumb img { width:100%; height:100%; object-fit:cover }
.fcc-body { flex:1; min-width:0 }
.fcc-cat-pill {
  font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.5px;
  padding:3px 10px; border-radius:50px; display:inline-flex; margin-bottom:7px;
}
.fcc-title {
  font-size:14.5px; font-weight:700; color:var(--navy); line-height:1.35;
  margin-bottom:5px; transition:color .2s;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.fcc-excerpt {
  font-size:12.5px; color:var(--muted); line-height:1.55;
  display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;
}
.fcc-meta { display:flex; gap:10px; align-items:center; margin-top:8px }
.fcc-meta-item { font-size:11px; font-weight:600; color:var(--muted); display:flex; align-items:center; gap:3px }
.fcc-meta-item svg { width:11px; height:11px; stroke:var(--muted); fill:none; stroke-width:2 }
.fcc-arrow { font-size:16px; color:var(--muted); flex-shrink:0; transition:all .2s }
.fact-card-compact:hover .fcc-arrow { color:var(--fg); transform:translateX(4px) }

/* ---- RESPONSIVE ---- */
@media(max-width:1000px) {
  .facts-stats { grid-template-columns:repeat(2,1fr) }
  .facts-cat-grid { grid-template-columns:repeat(5,1fr) }
}
@media(max-width:768px) {
  .facts-featured-grid { grid-template-columns:1fr }
  .facts-cat-grid { grid-template-columns:repeat(3,1fr) }
  .facts-stat-num { font-size:1.8rem }
}
@media(max-width:480px) {
  .facts-cat-grid { grid-template-columns:repeat(2,1fr) }
  .fh-visual { display:none }
  .fotd-body { padding:20px }
  .fotd-top-body { padding:22px 20px }
  .fact-card-compact { padding:14px 16px }
  .fcc-thumb { width:72px; height:72px }
}

FACTLIST PAGE — inherits editorial design system from facts.html
   ================================================================ */
*, *::before, *::after { box-sizing: border-box }
:root {
  --fg: #1A6FBF; --fg-light: rgba(26,111,191,.09); --fg-mid: rgba(26,111,191,.18);
  --gold: #FF6B35; --facts-bg: #F2F6FF;
}

/* Compact hero */
.fl-hero {
  padding: 130px 5% 60px;
  background: linear-gradient(140deg, #0F1F5C 0%, #122272 50%, #1A6FBF 100%);
  position: relative; overflow: hidden;
}
.fl-hero::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 70% 80% at 80% 50%, rgba(255,107,53,.08), transparent 60%) }
.fl-hero-inner { position:relative; z-index:2; max-width:1180px; margin:0 auto }
.fl-eyebrow { display:inline-flex; align-items:center; gap:8px; background:#FF6B35; color:#0F1F5C; font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:1.2px; padding:6px 16px; border-radius:50px; margin-bottom:16px }
.fl-hero h1 { font-size:clamp(2rem,4.5vw,3rem); font-weight:900; color:#fff; line-height:1.1; letter-spacing:-.4px; margin-bottom:12px }
.fl-hero h1 em { font-style:normal; background:linear-gradient(90deg,#FF6B35,#FFB89A); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text }
.fl-hero p { font-size:15px; color:rgba(255,255,255,.75); max-width:480px; line-height:1.65 }

/* Main */
.fl-main { background:var(--facts-bg); padding:32px 5% 80px }
.fl-wrap { max-width:1180px; margin:0 auto }

/* Filter panel */
.fl-filter-panel {
  background:#fff; border-radius:22px; padding:24px 28px;
  box-shadow:0 4px 20px rgba(0,0,0,.07); border:1.5px solid rgba(26,111,191,.1);
  margin-bottom:28px;
  display:flex; flex-direction:column; gap:18px;
}
.fl-filter-row { display:flex; align-items:center; gap:14px; flex-wrap:wrap }
.fl-filter-label { font-size:11.5px; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:.7px; white-space:nowrap; min-width:80px }
.fl-pills { display:flex; gap:8px; flex-wrap:wrap }
.fl-pill {
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; font-weight:700; color:var(--muted);
  padding:8px 16px; border-radius:50px; border:1.5px solid var(--border);
  background:var(--bg); cursor:pointer; transition:all .18s; white-space:nowrap;
}
.fl-pill:hover { border-color:var(--fg); color:var(--fg); background:var(--fg-light) }
.fl-pill.active { background:var(--fg); border-color:var(--fg); color:#fff; box-shadow:0 4px 14px rgba(26,111,191,.3) }

/* Search input */
.fl-search-wrap { position:relative }
.fl-search-wrap svg { position:absolute; left:14px; top:50%; transform:translateY(-50%); width:16px; height:16px; stroke:var(--muted); fill:none; stroke-width:2 }
.fl-search { width:100%; padding:12px 16px 12px 42px; border-radius:12px; border:1.5px solid var(--border); background:var(--bg); font-size:14px; font-family:inherit; color:var(--text); outline:none; transition:all .2s }
.fl-search:focus { border-color:var(--fg); background:#fff; box-shadow:0 0 0 3px var(--fg-light) }

/* Results bar */
.fl-results-bar { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:10px }
.fl-results-count { font-size:13.5px; font-weight:700; color:var(--muted) }
.fl-results-count strong { color:var(--navy); font-size:15px }
.fl-clear-btn { font-size:12.5px; font-weight:700; color:var(--fg); background:none; border:none; cursor:pointer; font-family:inherit; display:none }
.fl-clear-btn.show { display:block }

/* Sort select */
.fl-sort { padding:8px 32px 8px 14px; border-radius:10px; border:1.5px solid var(--border); background:var(--bg); font-size:13px; font-weight:600; font-family:inherit; color:var(--text); cursor:pointer; outline:none; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235B6680' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center }

/* Section heads */
.fl-section-head { display:flex; align-items:center; gap:10px; margin-bottom:18px }
.fl-section-head h2 { font-size:19px; font-weight:900; color:var(--navy) }
.fl-section-head h2::before { content:''; width:4px; height:20px; border-radius:2px; background:var(--fg); display:inline-block; margin-right:2px }

/* Featured grid */
.fl-featured-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:28px }
.fact-card-featured {
  background:#fff; border-radius:22px; overflow:hidden; cursor:pointer; text-decoration:none;
  display:flex; flex-direction:column; position:relative;
  box-shadow:0 4px 20px rgba(0,0,0,.07); border:1.5px solid rgba(0,0,0,.06);
  transition:all .3s cubic-bezier(.22,.68,0,1.2);
}
.fact-card-featured::before { content:''; position:absolute; top:0; left:0; bottom:0; width:4px; background:var(--fg); transition:width .25s; z-index:2 }
.fact-card-featured:hover { transform:translateY(-5px); box-shadow:0 16px 44px rgba(26,111,191,.14); border-color:rgba(26,111,191,.15) }
.fact-card-featured:hover::before { width:6px }
.fact-card-featured:hover .fcf-title { color:var(--fg) }
.fcf-thumb { height:180px; overflow:hidden; position:relative; margin-left:4px }
.fcf-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s }
.fact-card-featured:hover .fcf-thumb img { transform:scale(1.05) }
.fcf-thumb-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:60px }
.fcf-cat-badge { position:absolute; bottom:12px; left:12px; z-index:3; font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; padding:5px 12px; border-radius:50px; backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.3) }
.fcf-body { padding:20px 18px 18px 22px; flex:1; display:flex; flex-direction:column }
.fcf-title { font-size:16px; font-weight:800; color:var(--navy); line-height:1.35; margin-bottom:8px; transition:color .2s }
.fcf-excerpt { font-size:13px; color:var(--muted); line-height:1.65; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:14px; flex:1 }
.fcf-foot { display:flex; align-items:center; justify-content:space-between; padding-top:10px; border-top:1px solid var(--border) }
.fcf-meta { display:flex; gap:12px }
.fcf-meta-item { font-size:11.5px; font-weight:600; color:var(--muted); display:flex; align-items:center; gap:4px }
.fcf-meta-item svg { width:12px; height:12px; stroke:var(--muted); fill:none; stroke-width:2 }
.fcf-arrow { width:30px; height:30px; border-radius:50%; background:var(--fg-light); color:var(--fg); display:flex; align-items:center; justify-content:center; font-size:14px; transition:all .2s; border:1px solid var(--fg-mid) }
.fact-card-featured:hover .fcf-arrow { background:var(--fg); color:#fff }

/* Compact list */
.fl-compact-list { background:#fff; border-radius:20px; box-shadow:0 4px 20px rgba(0,0,0,.07); border:1.5px solid rgba(0,0,0,.05); overflow:hidden; margin-bottom:40px }
.fact-card-compact { display:flex; align-items:center; gap:16px; padding:16px 22px; border-bottom:1px solid var(--border); cursor:pointer; text-decoration:none; transition:all .2s; position:relative }
.fact-card-compact:last-child { border-bottom:none }
.fact-card-compact::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--fg); opacity:0; transition:opacity .2s }
.fact-card-compact:hover { background:#FAFDF9 }
.fact-card-compact:hover::before { opacity:1 }
.fact-card-compact:hover .fcc-title { color:var(--fg) }
.fact-card-compact.hidden-card { display:none }
.fcc-thumb { width:80px; height:80px; border-radius:12px; overflow:hidden; flex-shrink:0; background:var(--bg2); display:flex; align-items:center; justify-content:center; font-size:32px }
.fcc-thumb img { width:100%; height:100%; object-fit:cover }
.fcc-body { flex:1; min-width:0 }
.fcc-cat-pill { font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; padding:3px 10px; border-radius:50px; display:inline-flex; margin-bottom:6px }
.fcc-title { font-size:14px; font-weight:700; color:var(--navy); line-height:1.35; margin-bottom:4px; transition:color .2s; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
.fcc-excerpt { font-size:12.5px; color:var(--muted); line-height:1.55; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden }
.fcc-meta { display:flex; gap:10px; margin-top:6px }
.fcc-meta-item { font-size:11px; font-weight:600; color:var(--muted); display:flex; align-items:center; gap:3px }
.fcc-meta-item svg { width:11px; height:11px; stroke:var(--muted); fill:none; stroke-width:2 }
.fcc-arrow { font-size:16px; color:var(--muted); flex-shrink:0; transition:all .2s }
.fact-card-compact:hover .fcc-arrow { color:var(--fg); transform:translateX(4px) }

/* Empty state */
.fl-empty { text-align:center; padding:60px 20px; background:#fff; border-radius:20px; border:1.5px dashed rgba(26,111,191,.2); display:none }
.fl-empty.show { display:block }
.fl-empty .emoji { font-size:52px; margin-bottom:14px }
.fl-empty h3 { font-size:18px; font-weight:800; color:var(--navy); margin-bottom:8px }
.fl-empty p { font-size:13.5px; color:var(--muted); margin-bottom:16px }
.fl-empty button { background:var(--fg); color:#fff; border:none; padding:11px 24px; border-radius:50px; font-size:13.5px; font-weight:700; cursor:pointer; font-family:inherit }

@media(max-width:900px) { .fl-featured-grid { grid-template-columns:1fr } }
@media(max-width:640px) { .fl-filter-row { flex-direction:column; align-items:flex-start } .fact-card-compact { padding:12px 14px } .fcc-thumb { width:68px; height:68px } }

FACT DETAIL PAGE — full editorial article layout
   ================================================================ */
*, *::before, *::after { box-sizing: border-box }
:root {
  --fg: #1A6FBF; --fg-light: rgba(26,111,191,.09); --fg-mid: rgba(26,111,191,.18);
  --gold: #FF6B35; --facts-bg: #F2F6FF;
}

/* ---- HERO (full-bleed featured image) ---- */
.fd-hero {
  height: 520px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; /* text sits at bottom */
  background: #0F1F5C;
}

/* ── Full-bleed photo ── */
.fd-hero-img {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.fd-hero-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  display: block; transition: transform 8s ease;
}
.fd-hero:hover .fd-hero-img img { transform: scale(1.05) }

/* ── Gradient: transparent at top → very dark at bottom ── */
/* Image is fully visible in top 55%; text zone is dark & readable below */
.fd-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to top,
    rgba(8,12,45,1)    0%,
    rgba(8,12,45,.92)  25%,
    rgba(8,12,45,.55)  50%,
    rgba(8,12,45,.12)  72%,
    rgba(8,12,45,0)   100%
  );
}

/* ── Subtle brand colour tint ── */
.fd-hero-tint {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(15,31,92,.38) 0%, rgba(0,184,200,.12) 100%);
  mix-blend-mode: multiply;
}

/* ── Fallback: branded hero when no photo available ── */
.fd-hero-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: none;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.fd-hero-fallback.show { display: flex }

/* Layered geometric rings — premium background decoration */
.fd-hero-fallback::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 72% 50%, rgba(255,255,255,.06) 0%, transparent 55%),
    radial-gradient(circle at 28% 50%, rgba(0,184,200,.08) 0%, transparent 45%);
}
.fd-hero-fallback::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.07);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  box-shadow:
    0 0 0 80px rgba(255,255,255,.03),
    0 0 0 160px rgba(255,255,255,.02),
    0 0 0 240px rgba(255,255,255,.01);
}

/* Category icon — large, centered, with glow */
.fd-fallback-icon-wrap {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.fd-fallback-emoji {
  font-size: 110px; line-height: 1;
  filter: drop-shadow(0 0 40px rgba(255,255,255,.2))
          drop-shadow(0 16px 32px rgba(0,0,0,.5));
  animation: fallbackFloat 5s ease-in-out infinite;
}
@keyframes fallbackFloat {
  0%,100% { transform: translateY(0) }
  50%      { transform: translateY(-14px) }
}
.fd-fallback-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; color: rgba(255,255,255,.45);
}

/* Thin horizontal line accents */
.fd-fallback-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.12), transparent);
  z-index: 1;
}
.fd-fallback-line.top    { top: 35% }
.fd-fallback-line.bottom { top: 65% }

/* ── Text inner: pushed to very bottom ── */
.fd-hero-inner {
  position: relative; z-index: 2;
  max-width: 860px; width: 100%; margin: 0 auto;
  padding: 0 5% 48px;  /* generous bottom pad so text clears the meta strip */
}
.fd-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.65);
  margin-bottom: 18px; flex-wrap: wrap;
}
.fd-breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .15s }
.fd-breadcrumb a:hover { color: #FF6B35 }
.fd-breadcrumb span { color: rgba(255,255,255,.35) }
.fd-hero-cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px;
  background: #FF6B35; color: #0F1F5C;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 14px;
}
.fd-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 900;
  color: #fff; line-height: 1.15; letter-spacing: -.3px; margin-bottom: 0;
}

/* ---- MAIN CONTENT ---- */
.fd-main { background: var(--facts-bg); padding: 0 5% 80px }
.fd-wrap { max-width: 860px; margin: 0 auto }

/* Meta strip — pulled up to overlap hero */
.fd-meta-strip {
  background: #fff; border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.04);
  padding: 18px 28px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: -32px; margin-bottom: 36px; position: relative; z-index: 4;
  border: 1.5px solid rgba(26,111,191,.1);
}
.fd-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.fd-meta-item svg { width: 14px; height: 14px; stroke: var(--muted); fill: none; stroke-width: 2 }
.fd-meta-divider { width: 1px; height: 18px; background: var(--border) }

/* Content article */
.fd-article {
  background: #fff; border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border: 1.5px solid rgba(0,0,0,.05);
  overflow: hidden; margin-bottom: 24px;
  position: relative;
}
.fd-article::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0;
  width: 5px; background: var(--fg); z-index: 1;
}
.fd-article-body { padding: 36px 40px 36px 48px }
.fd-article-body h2 {
  font-size: 20px; font-weight: 900; color: var(--navy);
  margin: 28px 0 12px; line-height: 1.3;
}
.fd-article-body h2:first-child { margin-top: 0 }
.fd-article-body p {
  font-size: 15.5px; color: var(--text); line-height: 1.85;
  margin-bottom: 18px;
}
.fd-article-body p:last-child { margin-bottom: 0 }
.fd-article-body strong { color: var(--navy); font-weight: 700 }

/* Pull quote */
.fd-pullquote {
  border-left: 4px solid #FF6B35; padding: 18px 24px;
  background: linear-gradient(135deg, rgba(255,107,53,.06), rgba(255,107,53,.02));
  border-radius: 0 14px 14px 0; margin: 26px 0;
  font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.5;
  font-style: italic;
}

/* Fact highlight box */
.fd-highlight {
  background: var(--fg-light); border: 1.5px solid var(--fg-mid);
  border-radius: 16px; padding: 20px 24px; margin: 24px 0;
  display: flex; align-items: flex-start; gap: 14px;
}
.fd-highlight-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px }
.fd-highlight-text { font-size: 14px; color: var(--text); line-height: 1.7 }
.fd-highlight-text strong { color: var(--fg) }

/* ---- SOURCE CARD ---- */
.fd-source-card {
  background: #fff; border-radius: 18px; padding: 22px 26px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06); border: 1.5px solid rgba(26,111,191,.15);
  margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.fd-source-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: 4px }
.fd-source-name { font-size: 15px; font-weight: 700; color: var(--navy) }
.fd-source-link {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--fg); color: #fff; text-decoration: none;
  padding: 10px 22px; border-radius: 50px; font-size: 13px; font-weight: 700;
  transition: all .2s; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(26,111,191,.3);
}
.fd-source-link:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,111,191,.4) }

/* ---- SHARE ROW ---- */
.fd-share-card {
  background: #fff; border-radius: 18px; padding: 22px 26px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06); border: 1.5px solid rgba(0,0,0,.05);
  margin-bottom: 32px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.fd-share-label { font-size: 14px; font-weight: 700; color: var(--navy) }
.fd-share-btns { display: flex; gap: 10px }
.fd-share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 50px; font-size: 13px; font-weight: 700;
  cursor: pointer; border: 1.5px solid var(--border); background: var(--bg);
  color: var(--navy); font-family: inherit; transition: all .2s;
}
.fd-share-btn:hover { border-color: var(--fg); color: var(--fg); background: var(--fg-light) }
.fd-share-btn.primary { background: var(--fg); color: #fff; border-color: var(--fg); box-shadow: 0 4px 14px rgba(26,111,191,.3) }
.fd-share-btn.primary:hover { box-shadow: 0 6px 20px rgba(26,111,191,.4); transform: translateY(-2px) }

/* ---- RELATED FACTS ---- */
.fd-related-head { font-size: 19px; font-weight: 900; color: var(--navy); margin-bottom: 18px; display: flex; align-items: center; gap: 10px }
.fd-related-head::before { content: ''; width: 4px; height: 20px; border-radius: 2px; background: var(--fg); display: inline-block }
.fd-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px }
.fd-related-card {
  background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.07); border: 1.5px solid rgba(0,0,0,.06);
  transition: all .25s; display: flex; flex-direction: column; position: relative;
}
.fd-related-card::before { content:''; position:absolute; top:0; left:0; bottom:0; width:3px; background:var(--fg); opacity:0; transition:opacity .2s }
.fd-related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,111,191,.14); border-color: rgba(26,111,191,.15) }
.fd-related-card:hover::before { opacity:1 }
.fd-related-card:hover .fdr-title { color: var(--fg) }
.fdr-thumb {
  height: 140px; overflow: hidden; position: relative; flex-shrink: 0;
  background: #0F1F5C;
}
.fdr-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transition: transform .4s ease;
}
.fd-related-card:hover .fdr-thumb img { transform: scale(1.05) }
.fdr-thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 44px;
}
.fdr-body { padding: 14px 16px 16px }
.fdr-cat { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 3px 9px; border-radius: 50px; display: inline-flex; margin-bottom: 7px }
.fdr-title { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.4; transition: color .2s; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden }

/* ---- RESPONSIVE ---- */
@media(max-width: 700px) {
  .fd-hero { height: 460px }
  .fd-hero-title { font-size: 1.45rem }
  .fd-fallback-emoji { font-size: 110px }
  .fd-article-body { padding: 24px 20px 24px 26px }
  .fd-related-grid { grid-template-columns: 1fr 1fr }
  .fd-meta-strip { padding: 14px 18px }
}
@media(max-width: 480px) {
  .fd-related-grid { grid-template-columns: 1fr }
  .fd-share-btns { flex-wrap: wrap }
  .fd-hero { height: 360px }
  .fd-hero-inner { padding-bottom: 36px }
  .fd-fallback-emoji { font-size: 80px; opacity: .4 }
}
