/* =====================================================================
   EconomyWatch.top — Modern Navy Blue Theme
   ===================================================================== */

/* ── Custom Properties ─────────────────────────────────────────────── */
:root {
  --navy-900: #0a1628;
  --navy-800: #0d1f3c;
  --navy-700: #112a50;
  --navy-600: #163566;
  --navy-500: #1a4080;
  --navy-400: #2256a6;
  --navy-300: #3b74c8;
  --navy-200: #6d9de0;
  --navy-100: #b8d0f5;
  --navy-50:  #e8f0fb;

  --accent:        #f0a500;
  --accent-hover:  #e09200;
  --accent-light:  #fff6e0;

  --text-primary:   #1a1f2e;
  --text-secondary: #4a5568;
  --text-muted:     #718096;
  --text-white:     #ffffff;
  --text-on-navy:   #cce0ff;

  --bg-page:   #f4f7fc;
  --bg-white:  #ffffff;
  --bg-light:  #eef2f9;
  --bg-dark:   var(--navy-900);

  --border:        #d8e4f5;
  --border-strong: #b0c8ea;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 1px 4px rgba(10,22,40,.08);
  --shadow-md:  0 4px 20px rgba(10,22,40,.12);
  --shadow-lg:  0 12px 40px rgba(10,22,40,.18);
  --shadow-xl:  0 24px 60px rgba(10,22,40,.22);

  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --max-w:      1200px;
  --header-h:   72px;
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main#main-content { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-400); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-300); }
ul, ol { list-style: none; }

/* ── Typography ────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.25;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p  { margin-bottom: 1.1rem; color: var(--text-secondary); }
strong { color: var(--text-primary); }

/* ── Layout Helpers ────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .22s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy-500);
  color: #fff;
  border-color: var(--navy-500);
}
.btn-primary:hover {
  background: var(--navy-600);
  border-color: var(--navy-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--accent);
  color: var(--navy-900);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--navy-900);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--navy-400);
  border-color: var(--navy-400);
}
.btn-outline:hover {
  background: var(--navy-400);
  color: #fff;
}

/* ── HEADER ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-900);
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  gap: 1.5rem;
}
.logo-link { flex-shrink: 0; }
.site-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
  transition: opacity .2s;
}
.site-logo:hover { opacity: .85; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.main-nav a {
  color: var(--text-on-navy);
  font-weight: 500;
  font-size: .9rem;
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  transition: all .2s;
  white-space: nowrap;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: .85rem; right: .85rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .22s ease;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-on-navy);
  border-radius: 2px;
  transition: all .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO SLIDER ───────────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  max-height: 600px;
}
.slides-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slide {
  min-width: 100%;
  position: relative;
  height: 560px;
}
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,.85) 0%, rgba(22,53,102,.6) 60%, transparent 100%);
}
.slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 4rem;
  max-width: 780px;
}
.slide-category {
  display: inline-block;
  background: var(--accent);
  color: var(--navy-900);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.slider-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.slider-btn:hover { background: rgba(255,255,255,.28); }
.slider-dots {
  display: flex;
  gap: .5rem;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: none;
  transition: all .22s;
}
.slider-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ── ARTICLE CARDS GRID ────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1100px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards-grid-4 { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb-link { display: block; }

.card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
}
.card-category {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-400);
  background: var(--navy-50);
  padding: .25rem .65rem;
  border-radius: 100px;
  display: inline-block;
  width: max-content;
  transition: background .2s, color .2s;
}
.card-category:hover { background: var(--navy-100); }
.card-title {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--navy-400); }
.card-excerpt {
  font-size: .85rem;
  color: var(--text-muted);
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* ── SECTION HEADERS ───────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-header h2 {
  position: relative;
  padding-bottom: .6rem;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--navy-400), var(--navy-200));
  border-radius: 2px;
}
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-400);
  margin-bottom: .5rem;
}

/* ── CATEGORY SECTION (index.html) ────────────────────────────────── */
.category-section { padding: 3rem 0; }
.category-section:nth-child(even) { background: var(--bg-light); }

/* ── MINI CARDS (sidebar / you might also like) ────────────────────── */
.mini-card {
  display: flex;
  gap: .85rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: background .2s;
}
.mini-card:last-child { border-bottom: none; }
.mini-card-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}
.mini-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.mini-card:hover .mini-card-thumb img { transform: scale(1.06); }
.mini-card-body { min-width: 0; }
.mini-card-title {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.3;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-card-title a { color: inherit; }
.mini-card-title a:hover { color: var(--navy-400); }
.mini-card-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy-400);
}
.mini-card-link:hover { color: var(--navy-300); }

/* ── ARTICLE PAGE LAYOUT ───────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
}

/* Article main content */
.article-main {}
.article-hero-img {
  width: 100%;
  aspect-ratio: 800 / 440;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.article-category-badge {
  display: inline-block;
  background: var(--navy-50);
  color: var(--navy-500);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 100px;
  border: 1px solid var(--navy-100);
}
.article-meta time {
  font-size: .82rem;
  color: var(--text-muted);
}

/* Article body typography */
.article-body { max-width: 72ch; }
.article-body h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.article-body h2 {
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
  color: var(--navy-800);
}
.article-body h3 {
  margin: 2rem 0 .75rem;
  color: var(--navy-700);
}
.article-body p  { line-height: 1.85; margin-bottom: 1.25rem; }
.article-body ul, .article-body ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .4rem; color: var(--text-secondary); }
.article-body strong { color: var(--navy-800); }
.article-body a { color: var(--navy-400); text-decoration: underline; text-decoration-style: dotted; }
.article-body a:hover { color: var(--navy-300); text-decoration-style: solid; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: .875rem;
  overflow-x: auto;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.article-body thead { background: var(--navy-800); color: #fff; }
.article-body thead th { padding: .85rem 1rem; text-align: left; font-weight: 600; }
.article-body tbody tr { border-bottom: 1px solid var(--border); }
.article-body tbody tr:nth-child(even) { background: var(--bg-light); }
.article-body tbody td { padding: .75rem 1rem; color: var(--text-secondary); }
.article-body blockquote {
  border-left: 4px solid var(--navy-400);
  background: var(--navy-50);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--navy-700);
}

/* ── TABLE OF CONTENTS ─────────────────────────────────────────────── */
.toc {
  background: linear-gradient(135deg, var(--navy-50), var(--bg-white));
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy-400);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0 2.5rem;
}
.toc-title {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: .85rem;
  border: none;
  padding: 0;
}
.toc-list { counter-reset: toc-counter; }
.toc-list li {
  counter-increment: toc-counter;
  padding: .3rem 0;
}
.toc-list li a {
  color: var(--navy-500);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.toc-list li a::before {
  content: counter(toc-counter) ".";
  color: var(--navy-300);
  font-weight: 700;
  font-size: .8rem;
  min-width: 1.4em;
}
.toc-list li a:hover { color: var(--navy-400); }
.toc-list .toc-h3 { padding-left: 1.25rem; }
.toc-list .toc-h3 a { font-size: .83rem; }

/* ── SIDEBAR ───────────────────────────────────────────────────────── */
.article-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.sidebar-widget-title {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sidebar-widget-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 16px;
  background: var(--navy-400);
  border-radius: 2px;
}

/* ── YOU MIGHT ALSO LIKE ───────────────────────────────────────────── */
.also-like-section {
  padding: 3rem 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}
.also-like-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .also-like-grid { grid-template-columns: 1fr; }
}

/* ── BREADCRUMB ────────────────────────────────────────────────────── */
.breadcrumb {
  padding: 1rem 0 0;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.breadcrumb li { color: var(--text-muted); font-size: .82rem; }
.breadcrumb li + li::before { content: '›'; margin-right: .5rem; color: var(--border-strong); }
.breadcrumb a { color: var(--navy-400); font-weight: 500; }
.breadcrumb a:hover { color: var(--navy-300); }

/* ── CATEGORY PAGE HERO ────────────────────────────────────────────── */
.cat-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-500) 100%);
  padding: 4rem 0 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cat-hero-inner { position: relative; z-index: 1; }
.cat-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: .75rem;
}
.cat-hero p { color: var(--text-on-navy); font-size: 1.1rem; max-width: 600px; margin: 0; }

/* ── CONTACT PAGE ──────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem 0;
  align-items: start;
}
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info h1 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  background: var(--navy-50);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--navy-500);
  flex-shrink: 0;
}
.contact-detail-text { font-size: .95rem; }
.contact-detail-text a { color: var(--navy-400); font-weight: 500; }
.author-bio {
  background: linear-gradient(135deg, var(--navy-50), var(--bg-white));
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-top: 2rem;
}
.author-bio-name {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1rem;
  margin-bottom: .25rem;
}
.author-bio-title {
  font-size: .8rem;
  color: var(--navy-400);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.author-bio p { font-size: .9rem; margin: 0; }

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-form-wrap h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy-400);
  box-shadow: 0 0 0 3px rgba(34,86,166,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.captcha-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.captcha-row label { font-size: .85rem; font-weight: 600; color: var(--navy-800); white-space: nowrap; }
.captcha-row input { width: 80px; }
.hp-field { display: none !important; }
.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: #2e7d32;
  font-weight: 500;
  margin-top: 1rem;
}

/* ── PAGE HERO (for generic pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 3.5rem 0;
  color: #fff;
}
.page-hero h1 { color: #fff; }

/* ── FOOTER ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-900);
  color: var(--text-on-navy);
  padding: 3rem 0 2rem;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 3rem;
  align-items: start;
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo-link { grid-row: 1 / 3; }
.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.3) saturate(0.6);
  opacity: .85;
}
.footer-text {
  font-size: .83rem;
  color: var(--text-on-navy);
  opacity: .75;
  line-height: 1.7;
  margin: 0;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
}
.footer-nav a {
  color: var(--text-on-navy);
  font-size: .82rem;
  padding: .2rem .4rem;
  border-radius: var(--radius-sm);
  opacity: .7;
  transition: opacity .2s;
}
.footer-nav a:hover { opacity: 1; color: #fff; }

/* ── PAGINATION ────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 2rem 0;
}

/* ── BACK TO TOP ───────────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-500);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  z-index: 900;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover { background: var(--navy-600); }

/* ── READING PROGRESS ──────────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-400), var(--accent));
  z-index: 9999;
  width: 0%;
  transition: width .1s linear;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-800);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .main-nav a { display: block; padding: .7rem 1rem; width: 100%; }

  .slide { height: 400px; }
  .slide-content { padding: 1.5rem 1.5rem; }
  .hero-slider { max-height: none; }
}
@media (max-width: 480px) {
  .slide { height: 320px; }
}

/* ── UTILITY ───────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ── ANIMATIONS ────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp .5s ease both;
}
.article-card, .mini-card {
  animation: fadeInUp .4s ease both;
}


/* ================================================================
   MOBILE RESPONSIVENESS FIX — Article Layout (max-width: 992px)
   Injected patch to resolve sidebar overlap on mobile devices.
   ================================================================ */

@media (max-width: 992px) {

  /* Force single-column layout — no more side-by-side columns */
  .article-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    gap: 2rem !important;
    padding: 1.5rem 0 !important;
  }

  /* Strip sticky/fixed positioning from sidebar */
  .article-sidebar {
    position: static !important;
    top: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2rem !important;
    order: 2 !important;
  }

  /* Main article content fills full width and renders first */
  .article-main {
    width: 100% !important;
    max-width: 100% !important;
    order: 1 !important;
  }

  /* Sidebar widgets stretch to full width too */
  .sidebar-widget {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Prevent hero image overflow on narrow screens */
  .article-hero-img {
    border-radius: 8px !important;
  }

  /* Article body — relax max-width constraint on mobile */
  .article-body {
    max-width: 100% !important;
  }
}
