/* ===========================
   МОЯТ ПЪРВИ ВОТ — style.css
   =========================== */

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

/* ---------- ROOT VARIABLES ---------- */
:root {
  --primary:      #1a3a6b;
  --primary-dark: #112550;
  --primary-light:#2a5298;
  --accent:       #f5c518;
  --accent-dark:  #d4a800;
  --white:        #ffffff;
  --off-white:    #f8f9fc;
  --gray-100:     #f1f3f7;
  --gray-200:     #e2e6ee;
  --gray-400:     #9aa3b2;
  --gray-600:     #5a6378;
  --gray-800:     #2d3346;
  --green:        #22c55e;
  --green-light:  #dcfce7;
  --red:          #ef4444;
  --red-light:    #fee2e2;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 16px rgba(26,58,107,.12);
  --shadow-lg:    0 8px 32px rgba(26,58,107,.18);
  --radius:       12px;
  --radius-sm:    8px;
  --nav-width:    230px;
  --transition:   .25s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--off-white);
  color: var(--gray-800);
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }

/* ---------- LAYOUT ---------- */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ---------- SIDEBAR NAVBAR ---------- */
.sidebar {
  width: var(--nav-width);
  background: var(--primary);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-logo a {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo .logo-icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.sidebar-logo span { color: var(--white); }

.sidebar-nav { padding: 16px 0; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-left-color: var(--accent);
}
.sidebar-nav a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-left-color: var(--accent);
}
.sidebar-nav a i { width: 20px; text-align: center; font-size: .95rem; opacity: .8; }

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 1100;
  background: var(--primary);
  border: none;
  color: var(--white);
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  margin-left: var(--nav-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-body {
  flex: 1;
  padding: 48px 48px 32px;
  max-width: 960px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.hero::before {
  content: '';
  position: absolute;
  right: 80px; bottom: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(245,197,24,.08);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 560px;
  line-height: 1.7;
  position: relative;
}

/* ---------- SECTION TITLES ---------- */
.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--gray-600);
  margin-bottom: 28px;
  font-size: .95rem;
}
.section-divider {
  width: 48px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 28px;
}

/* Content headings (inside page body) */
.content-h2,
div.content-h2,
h2.content-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
/* When content-h2 is a div wrapping an h2 */
div.content-h2 h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0; padding: 0; border: none;
  display: flex; align-items: center; gap: 10px;
  flex: 1;
}
div.content-h2 ul {
  margin-top: 16px;
  width: 100%;
  padding-left: 0;
}
div.content-h2 ul li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: .92rem;
  color: var(--gray-800);
}
div.content-h2 ul li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--primary); font-weight: 700;
}
/* Override: make div.content-h2 block when it contains block children */
div.content-h2:has(h2) {
  flex-direction: column;
  align-items: flex-start;
}
div.content-h2:has(h2) h2 { border-bottom: none; padding-bottom: 0; }
.content-h2 i, div.content-h2 i, div.content-h2 h2 i { color: var(--accent); font-size: 1.2rem; }
.content-h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 24px 0 8px;
}
.content-p { margin-bottom: 14px; color: var(--gray-800); }

/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.card p { font-size: .9rem; color: var(--gray-600); }

/* Quick link cards */
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 24px; }
.quick-link-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--gray-800);
}
.quick-link-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  color: var(--primary);
}
.quick-link-card i { font-size: 1.8rem; color: var(--primary); }
.quick-link-card span { font-size: .85rem; font-weight: 600; }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; margin: 32px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
}
.timeline-dot {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-400);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(26,58,107,.15);
}
.timeline-dot.highlight {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(245,197,24,.25);
  width: 50px; height: 50px;
  font-size: .85rem;
}
.timeline-content { padding-top: 8px; }
.timeline-date { font-size: .8rem; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .05em; }
.timeline-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin: 2px 0 4px; }
.timeline-desc { font-size: .88rem; color: var(--gray-600); }

/* ---------- STEPS ---------- */
.steps { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.step-content h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.step-content p { font-size: .9rem; color: var(--gray-600); margin: 0; }

/* ---------- DO / DON'T ---------- */
.dos-donts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.do-box, .dont-box {
  border-radius: var(--radius);
  padding: 24px;
}
.do-box { background: var(--green-light); border: 1px solid #86efac; }
.dont-box { background: var(--red-light); border: 1px solid #fca5a5; }
.do-box h3 { color: #15803d; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.dont-box h3 { color: #b91c1c; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.do-box li, .dont-box li {
  font-size: .9rem;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.do-box li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.dont-box li::before { content: '✗'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }

/* ---------- BALLOT CARDS ---------- */
.ballot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; align-items: start; }
.ballot-card {
  border-radius: var(--radius);
  padding: 20px 20px 24px;
}
.ballot-valid { background: var(--green-light); border: 2px solid #86efac; }
.ballot-invalid { background: var(--red-light); border: 2px solid #fca5a5; }
.ballot-icon { font-size: 2.4rem; margin-bottom: 8px; text-align:center; }
.ballot-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; text-align:center; }
.ballot-valid h3 { color: #15803d; }
.ballot-invalid h3 { color: #b91c1c; }
.ballot-card > p, .ballot-card > ul { font-size:.85rem; margin-bottom:12px; }

/* Realistic ballot mockup */
.ballot-mockup {
  background: white;
  border: 2px solid #999;
  border-radius: 3px;
  font-size: .78rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  margin: 0 auto;
  max-width: 320px;
}
.ballot-mockup-header {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 6px 8px 5px;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .04em;
}
.ballot-mockup-subheader {
  background: #e8edf5;
  text-align: center;
  padding: 3px 8px;
  font-size: .72rem;
  color: var(--gray-600);
  border-bottom: 1px solid #ccc;
}
.ballot-mockup-row-header {
  display: grid;
  grid-template-columns: 28px 1fr 44px;
  background: var(--gray-100);
  border-bottom: 1px solid #ccc;
  padding: 4px 6px;
  font-weight: 700;
  font-size: .7rem;
  color: var(--gray-600);
  text-align: center;
}
.ballot-mockup-row {
  display: grid;
  grid-template-columns: 28px 1fr 44px;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
  min-height: 28px;
}
.ballot-mockup-row:last-child { border-bottom: none; }
.ballot-mockup-num {
  text-align: center;
  padding: 4px 2px;
  font-weight: 700;
  border-right: 1px solid #e5e7eb;
  color: var(--gray-500);
  font-size: .72rem;
}
.ballot-mockup-name {
  padding: 4px 8px;
  font-weight: 600;
  font-size: .75rem;
  color: var(--gray-800);
  border-right: 1px solid #e5e7eb;
}
.ballot-mockup-box {
  width: 26px; height: 22px;
  border: 1.5px solid #777;
  border-radius: 2px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1rem;
}
.ballot-mockup-box.mark-valid { color: #15803d; background:#f0fdf4; border-color:#16a34a; }
.ballot-mockup-box.mark-invalid { color: #b91c1c; background:#fef2f2; border-color:#dc2626; }
.ballot-mockup-pref {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #fafafa;
  border-top: 1px solid #ccc;
  font-size: .72rem;
  color: var(--gray-600);
}
.ballot-mockup-pref-box {
  border: 1.5px solid #999;
  border-radius: 2px;
  width: 40px; height: 20px;
  display: flex; align-items:center; justify-content:center;
  font-weight:700; font-size:.78rem;
  background: white;
}
.ballot-mockup-note {
  padding: 4px 8px;
  font-style:italic;
  font-size:.72rem;
  color: #b91c1c;
  background: #fff5f5;
  text-align:center;
}
@media (max-width:768px) { .ballot-grid { grid-template-columns: 1fr; } }

/* ---------- VIDEO GRID ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 8px;
}
.video-card { display: flex; flex-direction: column; gap: 8px; }
.video-card .video-wrapper { margin: 0; border-radius: var(--radius); overflow: hidden; }
.video-card .video-wrapper iframe { height: 180px; }
.video-caption-text { font-size: .82rem; font-weight: 600; color: var(--gray-600); margin: 0; text-align: center; }
@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-card .video-wrapper iframe { height: 220px; }
}

/* ---------- VIDEO PLACEHOLDER ---------- */
.video-wrapper {
  background: var(--primary-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
  position: relative;
}
.video-wrapper iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}
.video-placeholder {
  width: 100%;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transition: background var(--transition);
}
.video-placeholder:hover { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.play-btn {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.15);
  border: 3px solid rgba(255,255,255,.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  transition: all var(--transition);
}
.video-placeholder:hover .play-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}
.video-caption { font-size: .9rem; font-weight: 600; }

/* ---------- PARTY GRID ---------- */
.party-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
  max-width: 820px;
}
@media (max-width: 600px) {
  .party-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.party-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 16px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--gray-800);
  display: block;
}
.party-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
  color: var(--primary);
}
.party-logo {
  width: 80px; height: 80px;
  margin: 0 auto 14px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  overflow: hidden;
  background: var(--primary);
}
.party-logo img { width: 100%; height: 100%; object-fit: contain; }
.party-abbr { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--gray-400); margin-bottom: 4px; }
.party-name { font-size: .85rem; font-weight: 600; line-height: 1.3; }

/* Party colors */
.party-gerb { background: #003082; }
.party-ppdb { background: #0072c6; }
.party-velichie { background: #6d3fbb; }
.party-vazrazhdane { background: #1e8449; }
.party-bsp { background: #c0392b; }
.party-itn { background: #f39c12; }
.party-pb { background: #8e44ad; }
.party-aps { background: #117a65; }
.party-dps { background: #1a5276; }

/* ---------- PARTY PAGE ---------- */
.party-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 48px;
  color: var(--white);
  display: flex;
  gap: 28px;
  align-items: center;
}
.party-header-logo {
  width: 90px; height: 90px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.party-header-logo img { width: 100%; height: 100%; object-fit: contain; }
.party-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.party-header .party-number { color: var(--accent); font-size: 1rem; font-weight: 600; }
.party-header p { opacity: .85; margin-top: 8px; font-size: .95rem; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.pros-box, .cons-box {
  border-radius: var(--radius);
  padding: 20px;
}
.pros-box { background: var(--green-light); border: 1px solid #86efac; }
.cons-box { background: var(--red-light); border: 1px solid #fca5a5; }
.pros-box h4 { color: #15803d; font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cons-box h4 { color: #b91c1c; font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pros-box li, .cons-box li { font-size: .88rem; padding: 4px 0 4px 20px; position: relative; }
.pros-box li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.cons-box li::before { content: '✗'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }

.voting-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.voting-item {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.voting-item i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.voting-item a { color: var(--primary-light); font-weight: 600; font-size: .8rem; white-space: nowrap; }
.voting-item a:hover { color: var(--accent-dark); }

.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.policy-card {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 16px;
  border-left: 3px solid var(--primary);
}
.policy-card h5,
.policy-card h4 { font-size: .88rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.policy-card h4 i, .policy-card h5 i { color: var(--primary); }
.policy-card ul { list-style: disc; padding-left: 16px; }
.policy-card li { font-size: .85rem; color: var(--gray-600); padding: 2px 0; }
.policy-card li::marker { color: var(--primary); }
.policy-card > i { font-size: 1.4rem; color: var(--primary); margin-bottom: 10px; display: block; }
.policy-card p { font-size: .85rem; color: var(--gray-600); margin: 0; }

/* ---------- INFO BOXES ---------- */
.info-box {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-box i { font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.info-box.blue { background: #eff6ff; border: 1px solid #bfdbfe; }
.info-box.blue i { color: #1d4ed8; }
.info-box.yellow { background: #fffbeb; border: 1px solid #fde68a; }
.info-box.yellow i { color: #d97706; }
.info-box.green { background: var(--green-light); border: 1px solid #86efac; }
.info-box.green i { color: #16a34a; }
.info-box p { font-size: .9rem; margin: 0; }
.info-box strong { font-weight: 700; display: block; margin-bottom: 4px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-accent {
  background: var(--accent);
  color: var(--primary);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- DICTIONARY ---------- */
.dict-search-wrapper {
  position: relative;
  margin-bottom: 24px;
}
.dict-search-wrapper i {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}
#dict-search {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color var(--transition);
  background: var(--white);
}
#dict-search:focus { outline: none; border-color: var(--primary); }

.alpha-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.alpha-index a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: all var(--transition);
}
.alpha-index a:hover, .alpha-index a.active {
  background: var(--primary);
  color: var(--white);
}

.dict-group { margin-bottom: 32px; }
.dict-letter {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.dict-entry {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.dict-entry:hover { box-shadow: var(--shadow); }
.dict-term { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.dict-def { font-size: .88rem; color: var(--gray-600); }

/* ---------- QUIZ ---------- */
.quiz-container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  margin: 24px 0;
}
.quiz-progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  margin-bottom: 28px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width .4s ease;
}
.quiz-q-num { font-size: .8rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; margin-bottom: 8px; }
.quiz-question { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  font-size: .92rem;
  font-weight: 500;
  transition: all var(--transition);
  background: var(--white);
  text-align: left;
}
.quiz-option:hover { border-color: var(--primary); background: var(--off-white); }
.quiz-option.correct { border-color: var(--green); background: var(--green-light); color: #15803d; }
.quiz-option.wrong { border-color: var(--red); background: var(--red-light); color: #b91c1c; }
.quiz-option.disabled { pointer-events: none; }
.quiz-explanation {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .88rem;
  margin-top: 16px;
  display: none;
}
.quiz-result {
  text-align: center;
  padding: 40px;
}
.quiz-score { font-size: 3.5rem; font-weight: 800; color: var(--primary); }
.quiz-score span { font-size: 1.5rem; font-weight: 400; color: var(--gray-400); }
.quiz-result p { color: var(--gray-600); margin: 12px 0 24px; font-size: 1rem; }

/* ---------- MATCHING GAME ---------- */
.match-section { margin-top: 40px; }
.match-section h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.match-col { display: flex; flex-direction: column; gap: 10px; }
.match-col-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); margin-bottom: 4px; }
.match-card {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--transition);
  background: var(--white);
  user-select: none;
  min-height: 52px;
  display: flex;
  align-items: center;
}
.match-card:hover { border-color: var(--primary-light); }
.match-card.selected { border-color: var(--primary); background: #eff6ff; color: var(--primary); }
.match-card.matched { border-color: var(--green); background: var(--green-light); color: #15803d; pointer-events: none; }
.match-card.wrong-match { border-color: var(--red); background: var(--red-light); animation: shake .3s ease; }
.match-score-display {
  text-align: center;
  padding: 16px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-weight: 700;
  color: var(--primary);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ---------- GAME TABS ---------- */
.game-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
  width: fit-content;
}
.game-tab {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--gray-600);
  transition: all var(--transition);
}
.game-tab.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.game-panel { display: none; }
.game-panel.active { display: block; }

/* ---------- ONLINE POLITICS ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.platform-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.platform-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.platform-icon { font-size: 2.5rem; margin-bottom: 10px; }
.platform-card h4 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.platform-card p { font-size: .82rem; color: var(--gray-600); }

.fact-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.fact-check-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
}
.fact-check-item h4 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.fact-check-item p { font-size: .82rem; color: var(--gray-600); }
.fact-check-item a { font-size: .8rem; font-weight: 600; color: var(--primary-light); }

/* Fake news indicators */
.red-flags { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.red-flag {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.red-flag i { color: #ea580c; margin-top: 2px; }
.red-flag p { font-size: .88rem; margin: 0; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 40px 48px;
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 960px;
}
.footer-org h4 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-org p {
  font-size: .82rem;
  margin-bottom: 14px;
  opacity: .75;
}
.social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.social-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  transition: all var(--transition);
}
.social-icon:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  opacity: .55;
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-body { padding: 70px 20px 24px; width: 100%; }
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 1.9rem; }
  .dos-donts { grid-template-columns: 1fr; }
  .ballot-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
  .match-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 32px 20px; }
  .party-header { padding: 28px 20px; flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .party-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- OVERLAY ---------- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}
.sidebar-overlay.active { display: block; }

/* ---------- MISC ---------- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-green { background: var(--green-light); color: #15803d; }
.tag-red { background: var(--red-light); color: #b91c1c; }
.tag-yellow { background: #fffbeb; color: #92400e; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: .6rem; }

.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* ---------- CHECKLIST GRID ---------- */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.checklist-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.checklist-card .check-icon { font-size: 1.4rem; flex-shrink: 0; }
.checklist-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.checklist-card p { font-size: .85rem; color: var(--gray-600); margin: 0; }

/* ---------- INFO CARD ---------- */
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
}
.info-card h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.info-card p, .info-card li { font-size: .9rem; color: var(--gray-600); }
.info-card ul { padding-left: 16px; }
.info-card li { margin: 4px 0; }

/* ---------- STATS GRID ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.stat-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card .stat-number { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-card .stat-label { font-size: .85rem; opacity: .85; margin-top: 8px; }
