/* ==============================================
   VERIDIAN — Аналітичний портал медіапростору
   style.css
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:           #F9F7F4;
  --bg-alt:       #F0EDEA;
  --bg-dark:      #2C2C2C;
  --text:         #2C2C2C;
  --text-light:   #5A5A5A;
  --text-muted:   #8A8A8A;
  --accent:       #4A8B8C;
  --accent-dark:  #376667;
  --accent-light: #EAF4F4;
  --brown:        #C4A882;
  --brown-light:  #F5EFE7;
  --border:       #E2DDD8;
  --white:        #FFFFFF;
  --font-serif:   'Merriweather', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --max-w:        1240px;
  --radius:       4px;
  --shadow-sm:    0 1px 3px rgba(44,44,44,0.08);
  --shadow-md:    0 4px 16px rgba(44,44,44,0.10);
  --shadow-lg:    0 8px 32px rgba(44,44,44,0.12);
  --transition:   0.22s ease;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul, ol { padding-left: 1.5rem; }

/* ── Container ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ──────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
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.45rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1.1rem; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--text-light);
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-light);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text);
}
blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ── Header / Navigation ─────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
  margin-top: 1px;
}

.main-nav { display: flex; align-items: center; gap: 0.1rem; }
.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 0.25rem; }
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
}
.nav-dropdown:hover > a::after { transform: rotate(-135deg) translateY(-2px); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 210px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  border-radius: 0;
}
.dropdown-menu a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.5rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.65rem 1.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent); background: var(--accent-light); }

/* ── Hero ────────────────────────────────────── */
.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  font-family: var(--font-sans);
}
.hero h1 {
  margin-bottom: 1.25rem;
}
.hero p.lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ── Section Headers ──────────────────────────── */
.section-header {
  margin-bottom: 2.5rem;
}
.section-header.centered { text-align: center; }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
  font-family: var(--font-sans);
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 620px; }
.section-header.centered p { margin: 0 auto; }
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-top: 1rem;
  border-radius: 2px;
}
.section-header.centered .section-divider { margin: 1rem auto 0; }

/* ── Cards ───────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-img { overflow: hidden; }
.card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 1.4rem; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.card-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-sans);
}
.card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.card h3 { margin-bottom: 0.65rem; font-size: 1.05rem; line-height: 1.35; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); }
.card p { font-size: 0.9rem; margin-bottom: 1rem; }
.card-footer {
  padding: 0.85rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}
.read-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── Grid Layouts ────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ── Sidebar Layout ───────────────────────────── */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.sidebar-layout.reverse { grid-template-columns: 300px 1fr; }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.widget-header {
  padding: 0.9rem 1.2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.widget-header h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-sans);
}
.widget-body { padding: 1.2rem; }

.sidebar-post {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-img {
  width: 68px;
  height: 52px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-post-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-info { flex: 1; min-width: 0; }
.sidebar-post-info h5 {
  font-size: 0.82rem;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  font-family: var(--font-sans);
}
.sidebar-post-info h5 a { color: var(--text); }
.sidebar-post-info h5 a:hover { color: var(--accent); }
.sidebar-post-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Tags ────────────────────────────────────── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text-light);
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.tag:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ── Stats Row ───────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.stat-item {
  background: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Article Content ─────────────────────────── */
.article-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.article-category {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
}
.article-date, .article-read-time {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.article-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  border: 2px solid var(--border);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info small { font-size: 0.75rem; color: var(--text-muted); display: block; }
.author-info strong { font-size: 0.9rem; }

.article-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article-body h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.article-body p { margin-bottom: 1.3rem; line-height: 1.85; }
.article-body ul, .article-body ol { margin-bottom: 1.3rem; }
.article-body li { margin-bottom: 0.4rem; color: var(--text-light); }
.article-body .article-img {
  margin: 2.5rem 0;
  border-radius: 6px;
  overflow: hidden;
}
.article-body .article-img img { width: 100%; height: 400px; object-fit: cover; }
.article-body .img-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
}

/* ── Info Box ────────────────────────────────── */
.info-box {
  background: var(--accent-light);
  border: 1px solid rgba(74,139,140,0.2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.info-box h4 { color: var(--accent-dark); margin-bottom: 0.5rem; }
.info-box p { font-size: 0.9rem; margin-bottom: 0; }

/* ── Breadcrumb ──────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { color: var(--border); }
.breadcrumb span.current { color: var(--text-light); }

/* ── Page Header ─────────────────────────────── */
.page-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 3rem;
}
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { font-size: 1.05rem; max-width: 680px; }

/* ── Featured Banner ─────────────────────────── */
.featured-strip {
  background: var(--bg-dark);
  color: var(--white);
  padding: 2.5rem 0;
}
.featured-strip h2, .featured-strip h3 { color: var(--white); }
.featured-strip p { color: rgba(255,255,255,0.75); }
.featured-strip .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.featured-strip .btn-outline:hover {
  background: var(--white);
  color: var(--text);
}

/* ── Tabs ────────────────────────────────────── */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  gap: 0;
  overflow-x: auto;
}
.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.tab-btn.active, .tab-btn:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Timeline ────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.675rem;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  font-family: var(--font-sans);
}
.timeline-item h4 { margin-bottom: 0.4rem; }
.timeline-item p { font-size: 0.9rem; margin-bottom: 0; }

/* ── Team Card ───────────────────────────────── */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.team-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.team-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}
.team-card p { font-size: 0.85rem; }
.team-social { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.team-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.team-social a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ── Forms ───────────────────────────────────── */
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,139,140,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A8A8A' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-check { display: flex; align-items: flex-start; gap: 0.6rem; }
.form-check input { margin-top: 3px; accent-color: var(--accent); }
.form-check label { font-size: 0.85rem; font-weight: 400; color: var(--text-light); }

.form-success {
  display: none;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-left: 4px solid #4CAF50;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #1B5E20;
}
.form-success.show { display: flex; align-items: center; gap: 0.6rem; }
.form-success::before { content: '✓'; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }

/* ── Pagination ──────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2.5rem 0;
}
.page-link {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.page-link:hover, .page-link.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ── Section Spacing ─────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }
.footer-brand .logo-mark { background: var(--accent); }
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 1.25rem 0;
  color: rgba(255,255,255,0.6);
}
.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}
.footer-contact-line a { color: rgba(255,255,255,0.6); }
.footer-contact-line a:hover { color: var(--white); }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ── Cookie Banner ───────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: var(--white);
  padding: 1.1rem 1.5rem;
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.86rem; color: rgba(255,255,255,0.8); flex: 1; min-width: 220px; }
.cookie-banner p a { color: var(--accent); }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* ── Policy Pages ────────────────────────────── */
.policy-content h2 { margin-top: 3rem; margin-bottom: 1rem; font-size: 1.4rem; }
.policy-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.1rem; }
.policy-content p { line-height: 1.85; margin-bottom: 1.2rem; }
.policy-content ul, .policy-content ol { margin-bottom: 1.2rem; }
.policy-content li { margin-bottom: 0.5rem; color: var(--text-light); line-height: 1.7; }
.policy-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.policy-content th { background: var(--bg-alt); font-size: 0.85rem; text-align: left; padding: 0.75rem 1rem; border: 1px solid var(--border); }
.policy-content td { padding: 0.75rem 1rem; border: 1px solid var(--border); font-size: 0.88rem; color: var(--text-light); vertical-align: top; }
.policy-content tr:nth-child(even) td { background: var(--bg); }
.policy-update-box {
  background: var(--accent-light);
  border: 1px solid rgba(74,139,140,0.25);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  margin-bottom: 2.5rem;
  font-size: 0.88rem;
  color: var(--accent-dark);
}

/* ── Contact ─────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 0.88rem; margin-bottom: 0.25rem; }
.contact-info-item p { font-size: 0.88rem; margin: 0; }

/* ── Research Page ───────────────────────────── */
.research-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  transition: box-shadow var(--transition);
}
.research-card:hover { box-shadow: var(--shadow-md); }
.research-card-img {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.research-card-img img { width: 100%; height: 100%; object-fit: cover; }
.research-card-body { flex: 1; }
.research-card-body h3 { margin-bottom: 0.5rem; }
.research-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.research-meta span { font-size: 0.78rem; color: var(--text-muted); }
.research-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* ── Resources ───────────────────────────────── */
.resource-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: box-shadow var(--transition);
}
.resource-item:hover { box-shadow: var(--shadow-sm); }
.resource-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.resource-body h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.resource-body p { font-size: 0.83rem; margin: 0; }

/* ── Newsletter ──────────────────────────────── */
.newsletter-box {
  background: var(--accent);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  color: var(--white);
  text-align: center;
}
.newsletter-box h2 { color: var(--white); margin-bottom: 0.6rem; }
.newsletter-box p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }
.newsletter-form { display: flex; max-width: 440px; margin: 0 auto; gap: 0.6rem; }
.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-sans);
}
.newsletter-form input:focus { outline: 2px solid rgba(255,255,255,0.5); }

/* ── Back to Top ─────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
  transition: background var(--transition), transform var(--transition);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ── Utilities ───────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.85rem; }
.font-serif { font-family: var(--font-serif); }
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}
.brown-divider {
  height: 3px;
  background: var(--brown);
  border: none;
  border-radius: 2px;
  margin: 2rem 0;
}
.highlight {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar-layout.reverse { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger-btn { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .research-card { flex-direction: column; }
  .research-card-img { width: 100%; height: 180px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .header-actions .btn { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .page-header { padding: 2.5rem 0 2rem; }
  .section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3rem 0; }
  .container { padding: 0 16px; }
}

/* R13 */
:root {
  --text-dark: inherit;
}
