/*
Theme Name: Lao Economic & Fiscal Policy
Theme URI: https://www.mof.gov.la
Author: Department of Economic & Fiscal Policy
Author URI: https://www.mof.gov.la
Description: Official WordPress theme for the Department of Economic and Fiscal Policy, Ministry of Finance, Lao PDR. Features a professional blue government aesthetic with news updates, economic dashboard, overview, and publications sections.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lao-fiscal
Tags: government, blue, responsive, custom-menu, featured-images, custom-logo, translation-ready
*/

/* ─────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────── */
:root {
  --navy:       #0a2240;
  --blue:       #1a4f8a;
  --mid-blue:   #2469b3;
  --light-blue: #4a8fd4;
  --sky:        #d6e8f7;
  --accent:     #c8a84b;
  --white:      #ffffff;
  --off-white:  #f4f7fb;
  --text:       #1a2535;
  --muted:      #6b7a90;
  --border:     #d0dce8;
  --shadow-sm:  0 2px 12px rgba(10,34,64,.06);
  --shadow-md:  0 4px 24px rgba(10,34,64,.12);
  --shadow-lg:  0 12px 40px rgba(10,34,64,.20);
  --radius:     6px;
  --transition: .25s ease;
}

/* ─────────────────────────────────────
   PHETSARATH OT — LAO GOVERNMENT FONT
   Self-host: download from laoscript.net
   Place phetsarath-ot.woff2/.woff in /fonts/
   Then uncomment the @font-face block below.
───────────────────────────────────── */
/*
@font-face {
  font-family: 'Phetsarath OT';
  src: url('fonts/phetsarath-ot.woff2') format('woff2'),
       url('fonts/phetsarath-ot.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Phetsarath OT';
  src: url('fonts/phetsarath-ot-bold.woff2') format('woff2'),
       url('fonts/phetsarath-ot-bold.woff')  format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*/

/* ─────────────────────────────────────
   FONT VARIABLES
   Primary  = Phetsarath OT (Lao) with Noto Sans Lao fallback
   Headings = Noto Serif Lao / Noto Serif (elegant serif)
   Body     = Phetsarath OT / Noto Sans Lao / Noto Sans
───────────────────────────────────── */
:root {
  --font-lao-body:     'Phetsarath OT', 'Noto Sans Lao', 'Noto Sans', 'Segoe UI', sans-serif;
  --font-lao-heading:  'Phetsarath OT', 'Noto Serif Lao', 'Noto Serif', Georgia, serif;
  --font-en-body:      'Noto Sans', 'Segoe UI', Arial, sans-serif;
  --font-en-heading:   'Noto Serif', Georgia, 'Times New Roman', serif;
}

/* ─────────────────────────────────────
   RESET & BASE
───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-lao-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); transition: color var(--transition); }
a:hover { color: var(--navy); }
ul { list-style: none; }

/* ─────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-lao-heading);
  line-height: 1.3;  /* slightly more for Lao script */
  color: var(--navy);
}
h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 72px 0; }
.section-pad-sm { padding: 48px 0; }

/* Section header label */
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-heading h2 {
  font-size: 1.35rem;
  color: var(--navy);
  white-space: nowrap;
}
.section-tag {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 10px;
  letter-spacing: .1em;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Scroll animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: .1s; }
.fade-up.d2 { transition-delay: .2s; }
.fade-up.d3 { transition-delay: .3s; }

/* ─────────────────────────────────────
   TOP BAR
───────────────────────────────────── */
#top-bar {
  background: var(--navy);
  padding: 6px 0;
}
#top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#top-bar p,
#top-bar a,
#top-bar span {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  letter-spacing: .03em;
  text-decoration: none;
}
#top-bar a:hover { color: var(--accent); }
.top-bar-right { display: flex; gap: 16px; align-items: center; }
.top-lang a {
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.top-lang a:hover,
.top-lang a.active { background: var(--accent); border-color: var(--accent); color: var(--navy); }

/* ─────────────────────────────────────
   SITE HEADER & NAVIGATION
───────────────────────────────────── */
#site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(10,34,64,.1);
}
#site-header .container {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 20px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.logo-emblem {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-emblem img { width: 32px; height: 32px; object-fit: contain; }
.logo-emblem .logo-icon {
  width: 28px; height: 28px;
  fill: var(--accent);
}
.logo-text-wrap .site-name {
  font-family: var(--font-lao-heading);
  font-size: 15px;
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}
.logo-text-wrap .site-tagline {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .03em;
  font-family: var(--font-lao-body);
}

/* Primary Navigation */
#primary-nav { margin-left: auto; }
#primary-menu {
  display: flex;
  gap: 2px;
  align-items: center;
}
#primary-menu li { position: relative; }
#primary-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--navy);
  text-decoration: none;
  border-radius: 4px;
  transition: all var(--transition);
  text-transform: uppercase;
  white-space: nowrap;
  font-family: var(--font-lao-body);
}
#primary-menu a:hover,
#primary-menu .current-menu-item > a,
#primary-menu .current-page-ancestor > a {
  background: var(--sky);
  color: var(--blue);
}
#primary-menu .current-menu-item > a {
  background: var(--blue);
  color: var(--white);
}

/* Dropdown */
#primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blue);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 100;
  padding: 8px 0;
}
#primary-menu li:hover > .sub-menu { display: block; }
#primary-menu .sub-menu a {
  padding: 9px 18px;
  font-size: 13px;
  border-radius: 0;
  text-transform: none;
  letter-spacing: .02em;
}
#primary-menu .sub-menu a:hover { background: var(--sky); }

/* Hamburger */
#nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid var(--blue);
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
}

/* ─────────────────────────────────────
   TICKER / ANNOUNCEMENT BAND
───────────────────────────────────── */
#ticker-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, var(--mid-blue) 100%);
  padding: 12px 0;
  position: relative;
  overflow: hidden;
}
#ticker-band::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,.02) 20px, rgba(255,255,255,.02) 40px);
}
#ticker-band .container {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.ticker-label {
  background: var(--accent);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-content {
  overflow: hidden;
  flex: 1;
}
.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  color: #ffffff !important;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track span {
  font-size: 13px;
  flex-shrink: 0;
  font-family: var(--font-lao-body);
}
.ticker-track strong { color: var(--accent); }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─────────────────────────────────────
   NEWS SECTION
───────────────────────────────────── */
#news-section { background: var(--white); }

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 24px;
}

/* Featured large card */
.news-featured {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 480px;
  background: var(--navy);
}
.news-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-featured .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  transition: opacity .4s, transform .4s;
}
.news-featured:hover .card-img { opacity: .45; transform: scale(1.02); }
.news-featured .card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(5,18,40,.93) 55%);
  padding: 48px 28px 28px;
}
.cat-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.news-featured .card-body h3 {
  font-family: var(--font-lao-heading);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 10px;
}
.news-featured .card-body .excerpt {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.post-meta.dark { color: var(--muted); }

/* Small news cards */
.news-small {
  grid-column: 2;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.news-small:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--light-blue);
}
.news-small .card-img-wrap {
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--mid-blue));
  position: relative;
  flex-shrink: 0;
}
.news-small .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.news-small:hover .card-img-wrap img { transform: scale(1.04); }
.news-small .card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-small .card-body h3 {
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-small .card-body .excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-small .card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}

/* No posts placeholder */
.no-posts {
  padding: 48px 24px;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  grid-column: 1 / -1;
}

/* ─────────────────────────────────────
   DASHBOARD SECTION
───────────────────────────────────── */
#dashboard-section {
  background: var(--navy);
}
#dashboard-section .section-heading h2 { color: var(--white); }
#dashboard-section .section-heading::after { background: rgba(255,255,255,.12); }
#dashboard-section .section-tag { background: var(--accent); color: var(--navy); }

.dashboard-intro {
  color: rgba(255,255,255,.65);
  font-size: 15px;
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.charts-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
.charts-row-3 { grid-template-columns: repeat(3, 1fr); }
.charts-row-2 { grid-template-columns: 2fr 1fr; }

.chart-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.chart-card-header { margin-bottom: 20px; }
.chart-card-header h4 {
  font-family: var(--font-lao-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.chart-card-header p { font-size: 12px; color: rgba(255,255,255,.38); font-family: var(--font-lao-body); }

.chart-area {
  background: rgba(0,0,0,.2);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 6px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.chart-area.tall { height: 260px; }
.chart-area canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.chart-area .chart-loading {
  text-align: center;
  color: rgba(255,255,255,.25);
}
.chart-area .chart-loading svg { width: 32px; height: 32px; margin: 0 auto 8px; }
.chart-area .chart-loading p { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }

.dashboard-cta {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-outline-gold:hover { background: var(--accent); color: var(--navy); }
.dashboard-note {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  font-style: italic;
}

/* ─────────────────────────────────────
   ECONOMY OVERVIEW
───────────────────────────────────── */
#overview-section { background: var(--off-white); }

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 72px;
  align-items: center;
}

.overview-text .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mid-blue);
  margin-bottom: 14px;
  font-family: var(--font-lao-body);
}
.overview-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.3;
}
.overview-text h2 em { color: var(--mid-blue); font-style: normal; }
.overview-text p { font-size: 15.5px; color: #3a4a5e; line-height: 1.9; font-family: var(--font-lao-body); }

.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.stat-block .value {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  color: var(--blue);
  font-weight: 700;
  line-height: 1;
}
.stat-block .unit { font-size: 1rem; }
.stat-block .label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
  font-family: var(--font-lao-body);
}

.overview-image { position: relative; }
.overview-image .img-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10,34,64,.18);
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 100%);
  position: relative;
}
.overview-image .img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overview-image::before {
  content: '';
  position: absolute;
  top: -18px; right: -18px;
  width: 68%; height: 68%;
  border: 2px solid var(--accent);
  border-radius: 8px;
  z-index: -1;
  pointer-events: none;
}
.overview-image .img-caption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* ─────────────────────────────────────
   PUBLICATIONS
───────────────────────────────────── */
#publications-section { background: var(--white); }

.pub-list { display: flex; flex-direction: column; gap: 20px; }

.pub-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.pub-item:hover {
  border-color: var(--light-blue);
  box-shadow: 0 4px 20px rgba(36,105,179,.1);
  background: #fafcff;
}
.pub-cover {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pub-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pub-cover .pub-icon {
  color: rgba(255,255,255,.4);
  font-size: 2rem;
  position: relative;
  z-index: 1;
}
.pub-details h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.pub-meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  align-items: center;
}
.pub-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 2px;
}
.pub-type-badge.report  { background: var(--sky); color: var(--blue); }
.pub-type-badge.policy  { background: #fff3d0; color: #8a6a00; }
.pub-type-badge.data    { background: #e8f5e9; color: #2e7d32; }
.pub-type-badge.working { background: #f3e8ff; color: #6b21a8; }
.pub-meta-row .pub-date,
.pub-meta-row .pub-size {
  font-size: 12px;
  color: var(--muted);
}
.pub-details .excerpt {
  font-size: 13.5px;
  color: #4a5a70;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pub-download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-align: center;
  min-width: 72px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.pub-item:hover .pub-download-btn {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.pub-download-btn svg { width: 20px; height: 20px; }

.view-all-wrap { margin-top: 36px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--navy); color: var(--white); transform: translateX(4px); }
.btn-primary svg { width: 16px; height: 16px; transition: transform var(--transition); }
.btn-primary:hover svg { transform: translateX(4px); }

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
#site-footer {
  background: var(--navy);
  border-top: 3px solid var(--accent);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  text-decoration: none;
}
.footer-emblem {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-emblem svg { width: 24px; height: 24px; fill: var(--accent); }
.footer-brand-logo span {
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  color: var(--white);
  line-height: 1.35;
}
.footer-brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,.48);
  line-height: 1.75;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 13px;
  transition: all var(--transition);
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }

.footer-col-title {
  font-family: var(--font-lao-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-menu li { margin-bottom: 10px; }
.footer-menu a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-menu a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}
.footer-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; fill: var(--accent); }

.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-bottom-bar .container {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom-bar p {
  font-size: 12px;
  color: rgba(255,255,255,.28);
  margin: 0;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,.28);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.6); }

/* ─────────────────────────────────────
   SINGLE POST / PAGE
───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.4rem); }
.page-hero .breadcrumb {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--accent); }

.content-area {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
}
.content-area .entry-content { font-size: 16px; line-height: 1.85; color: #2e3d52; }
.content-area .entry-content h2,
.content-area .entry-content h3 { margin: 2rem 0 .75rem; }
.content-area .entry-content p { margin-bottom: 1.2rem; }
.content-area .entry-content a { color: var(--blue); text-decoration: underline; }
.content-area .entry-content img { margin: 1.5rem 0; border-radius: 4px; }
.content-area .entry-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: var(--sky);
  border-radius: 0 4px 4px 0;
  color: var(--navy);
  font-style: italic;
}
.content-area .entry-content ul,
.content-area .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.content-area .entry-content li { margin-bottom: .4rem; list-style: disc; }
.content-area .entry-content ol li { list-style: decimal; }

/* Publications archive page */
.pub-archive-header { margin-bottom: 36px; }
.pub-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ─────────────────────────────────────
   SIDEBAR
───────────────────────────────────── */
.sidebar-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}
.widget { margin-bottom: 36px; }
.widget-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  font-family: var(--font-lao-body);
}

/* ─────────────────────────────────────
   SEARCH RESULTS
───────────────────────────────────── */
.search-results-header { margin-bottom: 32px; }
.search-results-header h1 { font-size: 1.5rem; }
.search-results-header span { color: var(--blue); }
.search-result-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item h2 { font-size: 1.1rem; margin-bottom: 6px; }
.search-result-item h2 a { text-decoration: none; color: var(--navy); }
.search-result-item h2 a:hover { color: var(--blue); }
.search-result-item p { font-size: 14px; color: var(--muted); }

/* ─────────────────────────────────────
   404 PAGE
───────────────────────────────────── */
.error-404-section {
  text-align: center;
  padding: 100px 24px;
}
.error-404-section .error-code {
  font-family: 'Libre Baskerville', serif;
  font-size: 8rem;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 16px;
}
.error-404-section h1 { margin-bottom: 16px; }
.error-404-section p { color: var(--muted); margin-bottom: 28px; }

/* ─────────────────────────────────────
   PAGINATION
───────────────────────────────────── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 36px 0;
}
.pagination .page-numbers {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ─────────────────────────────────────
   FORMS
───────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="search"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,79,138,.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  padding: 11px 28px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--navy); }

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 1100px) {
  .charts-row-3 { grid-template-columns: repeat(2, 1fr); }
  .charts-row-2 { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .overview-image { max-width: 480px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .sidebar-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #nav-toggle { display: flex; align-items: center; justify-content: center; }
  #primary-nav { position: static; }
  #primary-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    padding: 16px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-top: 1px solid var(--border);
    z-index: 199;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  #primary-menu.open { display: flex; }
  #primary-menu a { border-radius: 0; padding: 12px 24px; }
  #primary-menu .sub-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    display: block;
    background: var(--off-white);
  }
  #primary-menu .sub-menu a { padding-left: 40px; font-size: 13px; }

  .news-grid { grid-template-columns: 1fr; }
  .news-featured { min-height: 340px; grid-row: 1; }
  .news-small { grid-column: 1; }
  .charts-row-3,
  .charts-row-2 { grid-template-columns: 1fr; }
  .overview-stats { grid-template-columns: repeat(2, 1fr); }
  .pub-item { grid-template-columns: 80px 1fr; }
  .pub-download-btn { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-bar .container { flex-direction: column; align-items: flex-start; }
  .section-pad { padding: 48px 0; }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .overview-stats { grid-template-columns: 1fr; }
  .pub-item { grid-template-columns: 1fr; }
  .pub-cover { display: none; }
  .ticker-content { display: none; }
  .top-bar-left { display: none; }
}

/* ─────────────────────────────────────
   NEWS ARCHIVE PAGE
───────────────────────────────────── */
.news-archive-section { background: var(--off-white); }

.news-archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* Archive description */
.archive-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Filter bar */
.news-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.news-filter-bar .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--muted);
  background: var(--white);
  text-decoration: none;
  font-family: var(--font-lao-body);
  transition: all var(--transition);
  cursor: pointer;
}
.news-filter-bar .filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.news-filter-bar .filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.filter-count {
  background: rgba(0,0,0,.1);
  border-radius: 10px;
  font-size: 10px;
  padding: 1px 6px;
  font-weight: 700;
}
.news-filter-bar .filter-btn.active .filter-count { background: rgba(255,255,255,.25); }

/* Results count */
.archive-results-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  font-family: var(--font-lao-body);
}
.archive-results-count strong { color: var(--navy); }

/* ── NEWS LIST ── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Individual list item */
.news-list-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: background var(--transition);
}
.news-list-item:first-child { padding-top: 0; }
.news-list-item:last-child { border-bottom: none; }
.news-list-item:hover { background: rgba(26,79,138,.02); }

/* Thumbnail */
.news-list-thumb {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  position: relative;
}
.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.news-list-item:hover .news-list-thumb img { transform: scale(1.04); }
.news-list-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  aspect-ratio: 16/10;
  border-radius: var(--radius);
}

/* Content */
.news-list-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

/* Meta row */
.news-list-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-family: var(--font-lao-body);
}
.news-list-cat {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
}
.news-list-cat:hover { background: var(--blue); color: var(--white); }
.news-list-date {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.news-list-read {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.news-list-read::before {
  content: '·';
  margin-right: 10px;
  opacity: .4;
}

/* Title */
.news-list-title {
  font-family: var(--font-lao-heading);
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
}
.news-list-title a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}
.news-list-title a:hover { color: var(--blue); }

/* Excerpt */
.news-list-excerpt {
  font-size: 14px;
  color: #4a5a70;
  line-height: 1.75;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-lao-body);
}

/* Read more link */
.news-list-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  margin-top: 4px;
  font-family: var(--font-lao-body);
  transition: gap var(--transition), color var(--transition);
}
.news-list-readmore:hover { color: var(--navy); gap: 10px; }

/* ── ARCHIVE PAGINATION ── */
.archive-pagination {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.archive-pagination .page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 0;
  margin: 0;
}
.archive-pagination .page-numbers li {}
.archive-pagination .page-numbers li a,
.archive-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--white);
  transition: all var(--transition);
  font-family: var(--font-lao-body);
  white-space: nowrap;
}
.archive-pagination .page-numbers li a:hover {
  background: var(--sky);
  border-color: var(--blue);
  color: var(--blue);
}
.archive-pagination .page-numbers li span.current {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.archive-pagination .page-numbers li span.dots {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

/* ── SIDEBAR ── */
.news-archive-sidebar {
  position: sticky;
  top: 96px; /* below sticky header */
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget:last-child { margin-bottom: 0; }

.sidebar-widget-title {
  font-family: var(--font-lao-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Search form */
.news-search-form .search-input-wrap {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.news-search-form .search-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,79,138,.1);
}
.news-search-form input[type="search"] {
  flex: 1;
  padding: 9px 14px;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-lao-body);
  background: var(--white);
}
.news-search-form button {
  background: var(--blue);
  border: none;
  padding: 0 14px;
  cursor: pointer;
  color: var(--white);
  display: flex;
  align-items: center;
  transition: background var(--transition);
}
.news-search-form button:hover { background: var(--navy); }

/* Recent articles list */
.sidebar-recent-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.sidebar-recent-item {}
.sidebar-recent-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
}
.sidebar-recent-thumb {
  width: 64px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.sidebar-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { width: 100%; height: 100%; }
.sidebar-recent-info { flex: 1; }
.sidebar-recent-title {
  display: block;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.45;
  font-family: var(--font-lao-body);
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.sidebar-recent-link:hover .sidebar-recent-title { color: var(--blue); }
.sidebar-recent-date {
  font-size: 11px;
  color: var(--muted);
  display: block;
}

/* Category list */
.sidebar-cat-list { list-style: none; }
.sidebar-cat-list li {
  border-bottom: 1px solid var(--border);
}
.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-lao-body);
  transition: color var(--transition), padding-left var(--transition);
}
.sidebar-cat-list li a:hover { color: var(--blue); padding-left: 6px; }
.sidebar-cat-list li a::after {
  content: attr(data-count);
  font-size: 11px;
  color: var(--muted);
  background: var(--off-white);
  border-radius: 10px;
  padding: 1px 7px;
}

/* Responsive — archive */
@media (max-width: 960px) {
  .news-archive-layout {
    grid-template-columns: 1fr;
  }
  .news-archive-sidebar {
    position: static;
  }
}
@media (max-width: 600px) {
  .news-list-item {
    grid-template-columns: 110px 1fr;
    gap: 16px;
  }
  .news-list-title { font-size: 1rem; }
  .news-list-excerpt { -webkit-line-clamp: 2; }
}
@media (max-width: 400px) {
  .news-list-item {
    grid-template-columns: 1fr;
  }
  .news-list-thumb {
    aspect-ratio: 16/7;
    max-height: 140px;
  }
}

/* ─────────────────────────────────────
   PRINT
───────────────────────────────────── */
@media print {
  #top-bar, #site-header, #ticker-band, #dashboard-section, #site-footer { display: none; }
  body { font-size: 12pt; color: #000; }
}

/* ─────────────────────────────────────
   ACCESSIBILITY
───────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
