/* ==========================================================================
   JA za Ruše — Jernej Ajd campaign site
   ========================================================================== */

:root {
  --navy: #130f4f;
  --navy-deep: #0a0833;
  --green: #1b5e20;
  --green-light: #2e7d32;
  --paper: #ffffff;
  --soft: #f4f6f5;
  --soft-2: #eef1f0;
  --ink: #16182b;
  --muted: #5b5f72;
  --line: #e3e6e4;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(19, 15, 79, 0.06);
  --shadow-md: 0 12px 40px rgba(19, 15, 79, 0.12);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* overflow-x: clip (not hidden) — hidden would make html/body establish a
   scroll container, which breaks position:sticky on .site-header. clip
   still prevents horizontal scroll without that side effect. */
html, body { overflow-x: clip; max-width: 100%; }

/* The [hidden] attribute must always win over a class's own `display`
   value (e.g. .lightbox sets display:flex) — otherwise a "hidden"
   fixed-position overlay like the lightbox still sits on top of the
   page, invisible (opacity:0) but still intercepting every click. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.01em; }

a { color: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-small { padding: 9px 18px; font-size: 0.88rem; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 10px;
}

.section { padding: 96px 0; }
@media (max-width: 600px) {
  .section { padding: 64px 0; }
}
.section-alt { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: var(--navy); }
.section-intro { color: var(--muted); font-size: 1.05rem; }

/* ---------------- reveal-on-scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ================= HEADER / NAV ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
/* A separate layer for the blur/background: applying backdrop-filter directly
   on .site-header would make it the containing block for its position:fixed
   mobile-menu descendant, breaking that menu's full-screen positioning. */
.site-header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav-link:hover { background: var(--soft); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  margin-left: 6px;
}
.nav-cta:hover { background: var(--navy-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  width: 24px;
  background: var(--navy);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-link { padding: 16px; font-size: 1.1rem; text-align: center; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { border-radius: 999px; margin-top: 12px; }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
}
.hero-decor {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(27, 94, 32, 0.14), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(19, 15, 79, 0.10), transparent 55%),
    radial-gradient(circle at 20% 90%, rgba(19, 15, 79, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas: "logo media" "copy media";
  gap: 0 48px;
  align-items: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-logo-full {
  grid-area: logo;
  width: min(100%, 340px);
  margin: 0 0 28px;
  align-self: end;
}
.hero-copy { grid-area: copy; align-self: start; }
.hero-lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media {
  grid-area: media;
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}
.hero-photo-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid #fff;
  outline: 2px solid var(--line);
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.hero-badge-num { font-size: 2rem; font-weight: 800; color: var(--green-light); line-height: 1; }
.hero-badge-text { font-size: 0.8rem; font-weight: 600; line-height: 1.2; }

.hero-sticker {
  position: absolute;
  top: 20px;
  right: -18px;
  width: 190px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  transform: rotate(-6deg);
}
.hero-sticker img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "logo" "media" "copy"; }
  .hero-logo-full { margin: 0 auto 24px; align-self: auto; }
  .hero-media { max-width: 300px; margin: 0 auto 32px; }
  .hero-photo-frame { width: min(100%, 300px); }
}
@media (max-width: 480px) {
  .hero-sticker { width: 140px; top: 8px; right: -8px; padding: 9px 10px; }
  .hero-badge { padding: 12px 16px; gap: 8px; }
  .hero-badge-num { font-size: 1.5rem; }
  .hero-badge-text { font-size: 0.72rem; }
}

/* ================= TICKER ================= */
.ticker {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  animation: scroll-left 26s linear infinite;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.ticker-track span::after {
  content: "•";
  margin-left: 40px;
  color: var(--green-light);
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= PULL QUOTE / VALUES ================= */
.pull-quote {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  border-left: 5px solid var(--green);
  padding-left: 24px;
  margin: 0 0 32px;
  max-width: 900px;
}
.lede-text { font-size: 1.1rem; color: var(--muted); max-width: 760px; margin-bottom: 56px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.value-card {
  background: var(--soft);
  border-radius: var(--radius-md);
  padding: 28px 22px;
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.value-icon svg { width: 24px; height: 24px; }
.value-card h3 { color: var(--navy); font-size: 1.1rem; }
.value-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
}

.goals-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.goal-mini { display: flex; gap: 14px; }
.goal-mini-num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.goal-mini h4 { font-size: 0.95rem; color: var(--navy); margin: 0 0 4px; }
.goal-mini p { font-size: 0.85rem; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .goals-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .goals-strip { grid-template-columns: 1fr; }
}

/* ================= PROGRAM CARDS ================= */
/* Two independent columns (1-5 left, 6-10 right) instead of a shared grid —
   this way opening a card never stretches/blanks out its row-mate in the
   other column, since the columns don't share row tracks. */
.program-grid {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.program-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 780px) {
  .program-grid { flex-direction: column; }
}

.program-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.program-card[open] { box-shadow: var(--shadow-md); }
.program-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
}
.program-card summary::-webkit-details-marker { display: none; }

.program-num {
  flex: none;
  font-weight: 800;
  color: var(--green);
  font-size: 0.95rem;
  min-width: 44px;
}
.program-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.program-icon svg { width: 20px; height: 20px; }
.program-title { flex: 1; font-weight: 700; color: var(--navy); font-size: 1.05rem; }

.chev {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}
.program-card[open] .chev { transform: rotate(-135deg); }

.program-body { padding: 0 22px 26px 80px; }
.program-body-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.program-pitch { font-weight: 600; color: var(--ink); margin: 0; }

.program-thumb {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.program-thumb:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }
.program-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.program-thumb::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(10, 8, 51, 0.72);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='M15 15l5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}
.program-points { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.program-points li {
  background: var(--soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--ink);
}
.program-points strong { color: var(--navy); }
.program-summary { color: var(--muted); font-size: 0.94rem; margin: 0; }

@media (max-width: 560px) {
  .program-body { padding-left: 22px; }
}
@media (max-width: 400px) {
  .program-card summary { padding: 16px; gap: 10px; }
  .program-num { min-width: 32px; font-size: 0.85rem; }
  .program-icon { width: 34px; height: 34px; }
  .program-icon svg { width: 17px; height: 17px; }
  .program-title { font-size: 0.95rem; }
}

/* ================= O KANDIDATU ================= */
#kandidat { scroll-margin-top: 96px; }
.kandidat-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.kandidat-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}
.kandidat-copy h2 { color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.kandidat-copy p { color: var(--ink); font-size: 1.05rem; }

.kandidat-highlights {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kandidat-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
.kandidat-highlights li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.kandidat-bio p { margin: 0 0 20px; line-height: 1.7; }
.kandidat-bio-more { overflow: hidden; }

.kandidat-belief-block {
  border-left: 4px solid var(--green);
  padding-left: 20px;
  margin: 28px 0;
}
.kandidat-belief-block p {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.08rem;
  margin: 0 0 12px;
}

.kandidat-vision-quote { margin: 28px 0; }

.kandidat-taglist {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.kandidat-taglist li {
  background: var(--soft);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 7px 16px;
  border-radius: 999px;
}

.kandidat-closing {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.kandidat-closing p {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.6;
}
.kandidat-closing-line {
  color: var(--green) !important;
  font-size: 1.3rem !important;
  letter-spacing: 0.01em;
}

.kandidat-toggle { margin-top: 8px; }

@media (max-width: 860px) {
  .kandidat-inner { grid-template-columns: 1fr; }
  .kandidat-photo { max-width: 320px; margin: 0 auto; position: static; }
}

/* ================= NEWSLETTER ================= */
.newsletter-inner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.newsletter-inner h2 { color: #fff; }
.newsletter-inner .kicker { color: var(--green-light); }
.newsletter-inner .section-intro { color: rgba(255, 255, 255, 0.75); }

.form-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.form-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-family: var(--font);
}
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.form-consent input { margin-top: 3px; }
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-success {
  margin-top: 14px;
  font-weight: 700;
  color: var(--green-light);
}
.form-success.is-error { color: #ff8a8a; }

@media (max-width: 860px) {
  .newsletter-inner { grid-template-columns: 1fr; padding: 36px 24px; border-radius: var(--radius-md); }
}

/* ================= FOOTER ================= */
.site-footer { background: var(--navy-deep); color: #fff; padding: 64px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo { height: 60px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-hashtag-img { height: 26px; width: auto; margin: 12px 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { text-decoration: none; color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact { text-align: right; }
.footer-email { text-decoration: none; font-weight: 700; color: #fff; }
.social-row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 14px; }
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.15s ease;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { background: var(--green); }

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-contact { text-align: center; }
  .social-row { justify-content: center; }
}

.footer-legal {
  padding: 24px 24px 32px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}
.footer-legal em { color: rgba(255, 255, 255, 0.75); font-style: normal; font-weight: 600; }
.footer-legal a { color: rgba(255, 255, 255, 0.7); text-decoration: underline; }
.footer-legal a:hover { color: #fff; }

/* ================= SCROLL TO TOP ================= */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
  pointer-events: none;
}
.scroll-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--green); }
.scroll-top svg { width: 22px; height: 22px; }

/* ================= PRIVACY POLICY PAGE ================= */
.policy-content { max-width: 720px; margin: 0 auto; }
.policy-content h1 { color: var(--navy); font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 6px; }
.policy-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.policy-content h2 { color: var(--navy); font-size: 1.25rem; margin-top: 40px; }
.policy-content p, .policy-content li { color: var(--ink); font-size: 1rem; }
.policy-content ul { padding-left: 20px; }
.policy-content a { color: var(--green); font-weight: 600; }
.policy-table-wrap { overflow-x: auto; margin-top: 16px; }
.policy-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.policy-table th, .policy-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.policy-table th { color: var(--navy); background: var(--soft); }

/* ================= COOKIE BANNER ================= */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 20px 24px;
  max-width: 640px;
  margin: 0 auto;
}
.cookie-inner p { margin: 0 0 14px; font-size: 0.9rem; color: var(--ink); }
.cookie-inner a { color: var(--green); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 560px) {
  .cookie-actions { flex-direction: column-reverse; }
  .cookie-actions .btn { width: 100%; }
}

/* ================= INFOGRAPHIC LIGHTBOX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 8, 51, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox.is-open { opacity: 1; }

.lightbox-content {
  position: relative;
  max-width: min(90vw, 520px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: block;
}
.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 14px;
}
.lightbox-title { color: #fff; font-weight: 700; font-size: 0.95rem; }
.lightbox-download {
  flex: none;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.lightbox-download:hover { background: var(--green-light); }

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}
.lightbox-close svg { width: 20px; height: 20px; }

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}
