:root {
  --primary: #032e6b;
  --secondary: #1d5d94;
  --accent: #8fd7d1;
  --dark: #032e6b;
  --text: #17385c;
  --muted: #567487;
  --line: rgba(3, 46, 107, 0.12);
  --bg: #f4f4f4;
  --soft: #f4f4f4;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(3, 46, 107, 0.12);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: #f4f4f4;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, li { line-height: 1.8; }
ul { padding-left: 1.1rem; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(3, 46, 107, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 90px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  flex: 0 0 auto;
  min-width: 0;
}
.brand-logo { width: 120px; height: 120px; flex: 0 0 54px; }
.brand strong { display:block; font-size: 1.05rem; letter-spacing: .15em; }
.brand span { display:block; font-size: .77rem; opacity: .78; }
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 1.8vw, 28px);
  color: var(--primary);
  font-size: .9rem;
  letter-spacing: .035em;
  white-space: nowrap;
}
.main-nav a, .main-nav span { opacity: .95; }
.main-nav a.active { font-weight: 700; }
.nav-toggle { display:none; background:none; border:none; color:#fff; font-size:2rem; cursor:pointer; }

.page-hero {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 20%),
    linear-gradient(120deg, #032e6b 0%, #032e6b 55%, #1d5d94 100%);
  color: #fff;
  padding: 74px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: auto -120px -140px auto;
  width: 380px;
  height: 380px;
  background: rgba(143,215,209,.18);
  border-radius: 50%;
  filter: blur(6px);
}
.page-hero::before {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.20), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.16), transparent 18%),
    radial-gradient(circle at 65% 78%, rgba(255,255,255,.14), transparent 18%);
  animation: heroPulse 9s ease-in-out infinite;
}
.page-hero.compact { padding: 54px 0 68px; }
.eyebrow {
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .88;
  margin: 0 0 14px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 20px;
  align-items: center;
}
.hero-copy h1, .page-title {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: 1.05;
}
.hero-lead, .page-lead {
  font-size: 1.16rem;
  max-width: 760px;
  opacity: .95;
}
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 28px rgba(13,59,86,.24); }
.btn-secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.34); }
.btn-light { background: #fff; color: var(--dark); box-shadow: 0 12px 24px rgba(10, 32, 24, .12); }

.snapshot-card, .card, .news-card, .info-card, .contact-card, .panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.snapshot-card { padding: 28px; color: var(--dark); }
.snapshot-card h2 { margin-top: 0; }
.snapshot-card ul { margin-bottom:0; }

.section { padding: 82px 0; }
.section-soft { background: var(--soft); }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.35rem); margin: 0; color: var(--dark); }
.section-heading p { margin-bottom: 10px; color: var(--muted); }
.intro-grid, .two-col { display:grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.content-block, .side-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.content-block.alt { background: var(--soft); }
.cards-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card { padding: 28px; }
.info-card h3 { margin-top: 0; color: var(--dark); }
.info-card ul { margin-bottom: 0; }
.stats-grid, .partners-grid, .result-grid, .news-grid, .contact-grid, .timeline-grid, .feature-grid, .image-strip, .story-grid, .impact-band { display:grid; gap:22px; }
.stats-grid { grid-template-columns: repeat(4, 1fr); margin-top: -34px; position: relative; z-index: 3; }
.stat-box { padding: 24px; background: linear-gradient(180deg, #ffffff 0%, #f7fcf9 100%); border-radius: 24px; box-shadow: var(--shadow); border:1px solid var(--line); }
.stat-box span { color: var(--muted); font-size:.92rem; }
.stat-box strong { display:block; margin: 10px 0 6px; color: var(--dark); font-size:1.3rem; }
.home-highlights {
  position: relative;
  margin-top: -34px;
  padding-bottom: 12px;
  z-index: 3;
}
.section-heading-compact {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}
.section-heading-compact h2 {
  margin-bottom: 0;
}
.stats-grid-enhanced {
  margin-top: 0;
  align-items: stretch;
}
.stat-box-enhanced {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,250,247,.98) 100%);
  box-shadow: 0 18px 45px rgba(18, 42, 66, 0.10);
}
.stat-box-enhanced::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(34, 139, 34, 0.10);
  pointer-events: none;
}
.stat-box-enhanced strong {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.12;
}
.stat-box-enhanced p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  flex: 1;
}
.stat-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(57, 171, 74, 0.14), rgba(3, 46, 107, 0.08));
  color: var(--primary);
  font-size: 1.65rem;
  box-shadow: inset 0 0 0 1px rgba(57, 171, 74, 0.08);
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(3, 46, 107, 0.06);
  color: var(--dark);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
}
.stat-pill i {
  color: var(--primary);
}
.result-grid { grid-template-columns: repeat(3, 1fr); }
.result-card { padding: 26px; background: linear-gradient(180deg, #ffffff 0%, #f3fbf6 100%); }
.result-number { font-size: 2rem; color: var(--primary); font-weight: 800; }
.news-grid { grid-template-columns: repeat(3, 1fr); }
.news-card { padding: 26px; }
.news-meta { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.news-status { display:inline-block; margin-top:8px; padding:7px 12px; border-radius:999px; background: rgba(13,59,86,.08); color: var(--dark); font-size:.84rem; }
.news-card-featured {
  padding: 0;
  overflow: hidden;
}
.news-card-media {
  aspect-ratio: 16 / 10;
  min-height: 220px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7f9fe);
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card-body {
  padding: 26px;
}
.partners-grid { grid-template-columns: repeat(3, 1fr); }
.partner-card { padding: 28px; }
.partner-card h3 { margin-bottom: 8px; }
.partner-role { color: var(--primary); font-weight: 700; }
.contact-grid { grid-template-columns: 1fr .9fr; }
.contact-card { padding: 30px; }
.contact-list { list-style:none; padding:0; margin:0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.site-footer { background: var(--dark); color: rgba(255,255,255,.88); padding: 34px 0; }
.footer-grid { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.footer-note { font-size: .92rem; max-width: 800px; }

.hero-visual {
  position: relative;
  min-height: 620px;
  border-radius: 34px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -40px;
}
.hero-visual img {
  width: 100%;
  max-width: 760px;
  height: auto;
  object-fit: contain;
  transform: scale(1.22);
}
.hero-badge {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(10, 36, 54, .9);
  color: #f6fbff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 35px rgba(10, 36, 54, .26);
  backdrop-filter: blur(10px);
  width: min(420px, calc(100% - 48px));
  max-width: calc(100% - 48px);
}
.hero-badge strong { display:block; font-size: 1.1rem; margin-bottom: 6px; }
.hero-badge br { display: none; }

.image-card {
  position: relative;
  min-height: 290px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  color: var(--dark);
  border-radius: 20px;
  padding: 14px 16px;
}

.split-feature {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 34px;
  align-items: center;
}
.text-flow {
  max-width: 700px;
}
.text-flow h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 14px; color: var(--dark); }
.text-flow p { margin: 0 0 16px; }
.bullet-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.bullet-inline span {
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(46, 76, 130, 0.08);
}

.image-strip { grid-template-columns: repeat(3, 1fr); }
.story-grid { grid-template-columns: 1.15fr .85fr; align-items: center; }
.story-grid.reverse .story-text { order: 2; }
.story-grid.reverse > img { order: 1; }
.story-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0; }
.impact-band { grid-template-columns: repeat(3, 1fr); }
.impact-item {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(24,33,58,.08);
  border-radius: 24px;
  padding: 22px;
}
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.feature-card h3 { margin: 0 0 10px; color: var(--dark); }

.photo-banner {
  min-height: 360px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.page-hero-news {
  background: linear-gradient(135deg, #eef3ff, #f7faff);
  color: var(--dark);
  border-bottom: 1px solid rgba(24,33,58,.08);
}
.page-hero-news .eyebrow,
.page-hero-news .page-title,
.page-hero-news .page-lead { color: var(--dark); opacity: 1; }
.page-hero-news .page-title { max-width: 860px; }
.page-hero-news .page-lead { max-width: 720px; color: var(--muted); }
.news-shell {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 54px;
  align-items: start;
}
.news-intro {
  position: sticky;
  top: 120px;
}
.news-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.12;
  color: var(--dark);
}
.news-stream {
  display: grid;
  gap: 0;
}
.news-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 0 0 30px;
  margin: 0 0 30px;
  border-bottom: 1px solid rgba(24,33,58,.12);
}
.news-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.news-item-copy {
  max-width: 760px;
}
.news-item-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.12;
  color: var(--dark);
}
.news-item-copy p {
  margin: 0;
  font-size: 1.02rem;
}
.news-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 14px;
}
.news-item-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(13,59,86,.08);
  color: var(--dark);
  font-size: .82rem;
  font-weight: 600;
}
.news-item-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  color: var(--primary);
}
.news-item-link::after {
  content: "→";
}
.news-thumb {
  border-radius: 26px;
  overflow: hidden;
  min-height: 360px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7f9fe);
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



body.login-wrap {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(7, 43, 67, 0.38), rgba(7, 43, 67, 0.38)),
    url("./assets/admin-login-bg.png") center center / cover no-repeat;
}

.login-page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
}

.login-card {
  width: min(100%, 680px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 34px;
  padding: 44px 46px;
  box-shadow: 0 28px 90px rgba(6, 25, 38, 0.28);
  backdrop-filter: blur(10px);
}

.admin-login-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 26px;
  color: var(--text);
  text-align: center;
  font-weight: 700;
  transition: transform .2s ease, opacity .2s ease;
}

.admin-login-home img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 24px rgba(3, 46, 107, 0.12));
}

.admin-login-home span {
  font-size: 0.96rem;
  color: #5a7488;
}

.admin-login-home:hover {
  transform: translateY(-2px);
  opacity: .96;
}

.login-eyebrow {
  color: #7685a3;
  margin-bottom: 12px;
  text-align: center;
}

.login-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--dark);
  text-align: center;
}

.login-intro,
.login-footnote {
  color: var(--muted);
  line-height: 1.75;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.login-intro {
  margin-bottom: 26px;
  max-width: 48ch;
}

.login-form-modern {
  max-width: 520px;
  margin: 0 auto;
}

.login-form-modern .form-group {
  margin-bottom: 18px;
}

.login-form-modern label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.login-form-modern input {
  width: 100%;
  height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(3, 46, 107, 0.12);
  background: rgba(251, 253, 255, 0.98);
  padding: 0 18px;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-form-modern input:focus {
  border-color: rgba(31, 101, 140, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 101, 140, 0.12);
}

.login-submit {
  min-width: 170px;
  height: 56px;
  border-radius: 999px;
  margin: 10px auto 0;
  font-weight: 700;
  display: block;
}

#loginError.error {
  margin-top: 12px;
  color: #c63b64;
  font-weight: 600;
  min-height: 1.4em;
  text-align: center;
}

.login-footnote {
  margin-top: 24px;
  font-size: 0.98rem;
  max-width: 50ch;
}

@media (max-width: 640px) {
  .login-page-shell {
    padding: 24px 14px;
  }

  .login-card {
    width: 100%;
    padding: 28px 22px;
    border-radius: 24px;
  }

  .admin-login-home img {
    width: 82px;
    height: 82px;
  }

  .login-submit {
    width: 100%;
  }
}

.main-nav a { color: var(--primary); font-weight:600; }




/* ===== Restored header, mobile nav, admin dashboard and login styles ===== */

/* Header */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--primary);
  flex: 0 0 auto;
  min-width: 0;
  transition: transform .25s ease, filter .25s ease;
}

.brand:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(3, 46, 107, 0.12));
}

.brand-logo {
  width: 120px;
  height: 120px;
  flex: 0 0 54px;
  transition: transform .28s ease, filter .28s ease, opacity .28s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.04) rotate(-1deg);
  filter: drop-shadow(0 12px 20px rgba(3, 46, 107, 0.14));
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 1.8vw, 28px);
  color: var(--primary);
  font-size: .9rem;
  letter-spacing: .035em;
  white-space: nowrap;
}

.main-nav a {
  color: var(--primary);
  font-weight: 600;
}

.main-nav a,
.main-nav span {
  opacity: .95;
}

.main-nav a.active {
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 900px) {
  .nav-wrap {
    min-height: 78px;
    position: relative;
  }

  .brand-logo {
    width: 88px;
    height: 88px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(3, 46, 107, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(3, 46, 107, 0.14);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 10px;
    border-radius: 12px;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(3, 46, 107, 0.06);
  }
}

/* Admin dashboard */
.admin-body {
  background: linear-gradient(180deg, #f5f9fc 0%, #edf4f9 100%);
}

.admin-shell.modern {
  width: min(1140px, calc(100% - 32px));
  margin: 34px auto 48px;
}

.admin-top.modern {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #2f3f88 0%, #5c6ee8 48%, #78aee5 100%);
  color: #fff;
  border-radius: 34px 34px 0 0;
  padding: 26px 24px 20px;
  box-shadow: 0 24px 60px rgba(39, 61, 129, 0.16);
}

.admin-top.modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 20%),
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.1), transparent 16%);
  pointer-events: none;
}

.admin-top-actions {
  position: absolute;
  top: 22px;
  right: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 2;
}

.admin-topbar-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.admin-hero-copy {
  max-width: 760px;
  padding-top: 4px;
}

.admin-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-weight: 500;
}

.admin-statline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.admin-stat {
  min-width: 136px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}

.admin-stat strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
}

.admin-content.modern {
  display: grid;
  grid-template-columns: 1fr 0.94fr;
  gap: 18px;
  align-items: start;
  background: transparent;
}

.panel.modern {
  background: #fff;
  border: 1px solid rgba(3, 46, 107, 0.08);
  border-radius: 0 0 28px 28px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(3, 46, 107, 0.08);
}

.admin-content.modern > .panel.modern:first-child {
  border-top-left-radius: 28px;
}

.admin-content.modern > .panel.modern:last-child {
  border-top-right-radius: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--dark);
}

.form-group input[type="text"],
.form-group input[type="search"],
.form-group input[type="file"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(3, 46, 107, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.file-help,
.small {
  color: var(--muted);
}

.image-preview {
  margin-top: 12px;
}

.image-preview img {
  width: 100%;
  max-width: 280px;
  border-radius: 18px;
  border: 1px solid rgba(3, 46, 107, 0.08);
}

.admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.admin-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filter-chip {
  border: 1px solid rgba(3, 46, 107, 0.12);
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.admin-filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.admin-result-count {
  color: var(--muted);
  font-weight: 600;
}

.admin-list {
  display: grid;
  gap: 16px;
}

.admin-item {
  border: 1px solid rgba(3, 46, 107, 0.08);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(3, 46, 107, 0.06);
}

.admin-item-thumb {
  aspect-ratio: 16 / 7;
  background: #eef5fb;
}

.admin-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-item-body {
  padding: 18px;
}

.admin-item-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.admin-item-head h3 {
  margin: 6px 0 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.news-meta,
.news-item-status {
  color: var(--muted);
}

.news-item-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eff4f8;
  font-weight: 700;
  white-space: nowrap;
}

.admin-item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 28px rgba(13,59,86,.24); }
.btn-secondary { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-light { background: #fff; color: var(--dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-danger { background: #d44267; color: #fff; }
.btn-ghost { background: #eef4f8; color: var(--dark); }

@media (max-width: 980px) {
  .admin-content.modern {
    grid-template-columns: 1fr;
  }

  .admin-top.modern {
    padding-top: 92px;
  }

  .admin-top-actions {
    left: 24px;
    right: 24px;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .admin-shell.modern {
    width: min(100%, calc(100% - 20px));
    margin: 14px auto 28px;
  }

  .admin-top.modern {
    border-radius: 24px 24px 0 0;
    padding: 88px 18px 18px;
  }

  .panel.modern {
    padding: 18px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .admin-top-actions {
    top: 16px;
    left: 18px;
    right: 18px;
  }

  .admin-top-actions .btn {
    flex: 1 1 auto;
  }

  .admin-filter-bar {
    align-items: flex-start;
  }
}

/* Admin login */
body.login-wrap {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(7, 43, 67, 0.38), rgba(7, 43, 67, 0.38)),
    url("./assets/admin-login-bg.png") center center / cover no-repeat;
}

.login-page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
}

.login-card {
  width: min(100%, 680px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 34px;
  padding: 44px 46px;
  box-shadow: 0 28px 90px rgba(6, 25, 38, 0.28);
  backdrop-filter: blur(10px);
}

.admin-login-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 26px;
  color: var(--text);
  text-align: center;
  font-weight: 700;
  transition: transform .2s ease, opacity .2s ease;
}

.admin-login-home img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 24px rgba(3, 46, 107, 0.12));
}

.admin-login-home span {
  font-size: 0.96rem;
  color: #5a7488;
}

.admin-login-home:hover {
  transform: translateY(-2px);
  opacity: .96;
}

.login-eyebrow {
  color: #7685a3;
  margin-bottom: 12px;
  text-align: center;
}

.login-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--dark);
  text-align: center;
}

.login-intro,
.login-footnote {
  color: var(--muted);
  line-height: 1.75;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.login-intro {
  margin-bottom: 26px;
  max-width: 48ch;
}

.login-form-modern {
  max-width: 520px;
  margin: 0 auto;
}

.login-form-modern .form-group {
  margin-bottom: 18px;
}

.login-form-modern label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.login-form-modern input {
  width: 100%;
  height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(3, 46, 107, 0.12);
  background: rgba(251, 253, 255, 0.98);
  padding: 0 18px;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-form-modern input:focus {
  border-color: rgba(31, 101, 140, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 101, 140, 0.12);
}

.login-submit {
  min-width: 170px;
  height: 56px;
  border-radius: 999px;
  margin: 10px auto 0;
  font-weight: 700;
  display: block;
}

#loginError.error {
  margin-top: 12px;
  color: #c63b64;
  font-weight: 600;
  min-height: 1.4em;
  text-align: center;
}

.login-footnote {
  margin-top: 24px;
  font-size: 0.98rem;
  max-width: 50ch;
}

@media (max-width: 640px) {
  .login-page-shell {
    padding: 24px 14px;
  }

  .login-card {
    width: 100%;
    padding: 28px 22px;
    border-radius: 24px;
  }

  .admin-login-home img {
    width: 82px;
    height: 82px;
  }

  .login-submit {
    width: 100%;
  }
}


/* ===== Restored news toolbar, modal and footer ===== */

.main-nav a,
.main-nav a.active {
  color: var(--primary);
}

.site-footer {
  margin-top: 64px;
  background: var(--dark);
  color: rgba(255,255,255,.88);
  padding: 56px 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 34px;
  align-items: start;
}

.footer-brand-link {
  display: inline-flex;
  margin-bottom: 18px;
}

.footer-logo {
  width: 112px;
  height: auto;
}

.footer-brand p,
.footer-links a,
.footer-social p,
.footer-copy {
  color: rgba(255,255,255,.82);
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4,
.footer-social h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.05rem;
}

.footer-links a {
  line-height: 1.7;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.footer-copy {
  margin: 0;
  font-size: .92rem;
  line-height: 1.8;
}

.page-hero-news {
  padding-bottom: 80px;
}

.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.news-toolbar-left.compact {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 760px;
}

.news-search-wrap {
  position: relative;
  flex: 1 1 auto;
  width: auto;
}

.news-search-wrap input {
  width: 100%;
  height: 64px;
  border-radius: 24px;
  border: 1px solid rgba(3, 46, 107, 0.12);
  background: #fff;
  padding: 0 62px 0 24px;
  font: inherit;
  font-size: 1.02rem;
  color: var(--text);
  box-shadow: 0 14px 34px rgba(3, 46, 107, 0.06);
}

.news-search-wrap input:focus {
  outline: none;
  border-color: rgba(31, 101, 140, 0.45);
  box-shadow: 0 0 0 4px rgba(31, 101, 140, 0.10);
}

.news-search-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.news-filter-toggle {
  min-width: auto;
  height: 64px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.news-filter-toggle.btn.btn-primary {
  background: var(--primary);
  color: #fff;
}

.filter-icon {
  font-size: 1rem;
  line-height: 1;
}

.news-results-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.news-filters {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid rgba(3, 46, 107, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(3, 46, 107, 0.06);
}

.news-filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.news-filters-actions {
  margin-top: 14px;
}

.news-item-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 700;
}

.news-item-link:hover {
  text-decoration: underline;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 31, 46, 0.62);
  backdrop-filter: blur(6px);
}

.news-modal.open {
  display: flex;
}

.news-modal-panel {
  position: relative;
  width: min(940px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(10, 36, 54, 0.24);
}

.news-modal-media {
  aspect-ratio: 16 / 8;
  background: #eef4f8;
}

.news-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-modal-body {
  padding: 28px;
}

.news-modal-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  margin-bottom: 10px;
}

.news-modal-body h2 {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.news-modal-body p {
  margin: 0;
  color: var(--text);
}

.news-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--dark);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 36, 54, 0.14);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .news-filter-toggle .filter-label {
    display: none;
  }

  .news-filter-toggle {
    width: 64px;
    padding: 0;
    justify-content: center;
  }

  .news-filters-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .news-toolbar-left.compact {
    max-width: none;
  }

  .news-search-wrap input {
    height: 58px;
    border-radius: 20px;
  }

  .news-filter-toggle {
    height: 58px;
  }

  .news-modal {
    padding: 14px;
  }

  .news-modal-body {
    padding: 20px;
  }
}


/* ===== Smoother page animations ===== */
.reveal,
.section-heading,
.content-block,
.side-block,
.stat-box,
.result-card,
.partner-card,
.contact-card,
.info-card,
.panel,
.snapshot-card,
.news-card,
.image-card,
.impact-item,
.hero-visual,
.photo-banner,
.feature-card,
.text-flow,
.news-item,
.news-intro,
.news-toolbar,
.news-filters {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  filter: blur(4px);
}

.reveal.is-visible,
.section-heading.is-visible,
.content-block.is-visible,
.side-block.is-visible,
.stat-box.is-visible,
.result-card.is-visible,
.partner-card.is-visible,
.contact-card.is-visible,
.info-card.is-visible,
.panel.is-visible,
.snapshot-card.is-visible,
.news-card.is-visible,
.image-card.is-visible,
.impact-item.is-visible,
.hero-visual.is-visible,
.photo-banner.is-visible,
.feature-card.is-visible,
.text-flow.is-visible,
.news-item.is-visible,
.news-intro.is-visible,
.news-toolbar.is-visible,
.news-filters.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.reveal-delay-1 { transition-delay: 0.04s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.2s; }
.reveal-delay-4 { transition-delay: 0.28s; }

.hero-copy > *,
.page-hero .container > * {
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > *:nth-child(1),
.page-hero .container > *:nth-child(1) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(2),
.page-hero .container > *:nth-child(2) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(3),
.page-hero .container > *:nth-child(3) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(4),
.page-hero .container > *:nth-child(4) { animation-delay: 0.36s; }
.hero-copy > *:nth-child(5),
.page-hero .container > *:nth-child(5) { animation-delay: 0.46s; }

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .section-heading,
  .content-block,
  .side-block,
  .stat-box,
  .result-card,
  .partner-card,
  .contact-card,
  .info-card,
  .panel,
  .snapshot-card,
  .news-card,
  .image-card,
  .impact-item,
  .hero-visual,
  .photo-banner,
  .feature-card,
  .text-flow,
  .news-item,
  .news-intro,
  .news-toolbar,
  .news-filters,
  .hero-copy > *,
  .page-hero .container > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
}


/* Admin dashboard should not depend on global reveal JS */
.admin-body .panel,
.admin-body .panel.modern {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ===== Responsive hotfixes (April 2026) ===== */
html, body {
  overflow-x: hidden;
}

iframe, video, canvas, svg {
  max-width: 100%;
}

.main-nav,
.hero-copy,
.hero-visual,
.news-item,
.news-item-copy,
.news-item-media,
.admin-top-actions,
.footer-top > *,
.content-block,
.side-block,
.panel,
.info-card,
.result-card,
.partner-card,
.contact-card,
.stat-box {
  min-width: 0;
}

.brand-logo {
  width: clamp(84px, 9vw, 120px);
  height: auto;
  flex: 0 0 auto;
}

.news-item-media img,
.hero-visual img,
.photo-banner img,
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-feature,
  .story-grid,
  .news-shell,
  .contact-grid,
  .intro-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .photo-banner {
    min-height: 340px;
  }

  .story-grid.reverse .story-text,
  .story-grid.reverse > img {
    order: 0;
  }

  .news-intro {
    position: static;
    top: auto;
  }

  .news-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .news-item-media {
    order: -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .cards-grid,
  .result-grid,
  .news-grid,
  .partners-grid,
  .impact-band,
  .feature-grid,
  .image-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100%, calc(100% - 28px));
  }

  .page-hero,
  .page-hero.compact {
    padding: 40px 0 56px;
  }

  .page-hero::after {
    width: 240px;
    height: 240px;
    inset: auto -60px -80px auto;
  }

  .section {
    padding: 56px 0;
  }

  .hero-lead,
  .page-lead {
    font-size: 1rem;
  }

  .hero-badge {
    left: 18px;
    right: 18px;
    bottom: 18px;
    transform: none;
    width: auto;
    max-width: none;
  }

  .footer-grid,
  .admin-topbar-row,
  .admin-top-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-top-actions {
    position: static;
    margin-bottom: 18px;
  }

  .admin-top.modern {
    padding-top: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100%, calc(100% - 20px));
  }

  .nav-wrap {
    min-height: 72px;
  }

  .brand-logo {
    width: 72px;
  }

  .main-nav {
    left: 10px;
    right: 10px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .hero-copy h1,
  .page-title,
  .section-heading h2,
  .text-flow h2,
  .story-text h2,
  .news-intro h2,
  .login-card h1 {
    line-height: 1.12;
  }

  .hero-actions,
  .news-toolbar,
  .news-toolbar-left.compact,
  .admin-badge-row,
  .admin-list-filters {
    gap: 10px;
  }

  .hero-actions .btn,
  .news-toolbar .btn,
  .admin-top-actions .btn,
  .admin-list-filters button {
    width: 100%;
  }

  .cards-grid,
  .cards-grid-two,
  .result-grid,
  .news-grid,
  .partners-grid,
  .stats-grid,
  .impact-band,
  .feature-grid,
  .image-strip,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .content-block,
  .side-block,
  .snapshot-card,
  .contact-card,
  .partner-card,
  .news-card,
  .info-card,
  .result-card,
  .panel.modern,
  .impact-item {
    padding: 20px;
  }

  .hero-visual,
  .photo-banner,
  .image-card,
  .news-item-media {
    min-height: 240px;
  }

  .image-caption,
  .hero-badge,
  .news-filters,
  .news-modal-body {
    padding: 16px;
  }

  .news-search-wrap input,
  .news-filter-toggle {
    height: 54px;
  }

  .footer-logo {
    width: 88px;
  }

  .social-icons {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100%, calc(100% - 16px));
  }

  .page-hero,
  .page-hero.compact {
    padding: 32px 0 44px;
  }

  .stat-box,
  .result-card,
  .news-card,
  .partner-card,
  .contact-card,
  .info-card,
  .panel.modern {
    border-radius: 20px;
  }

  .btn,
  .news-filter-toggle,
  .login-submit {
    min-height: 46px;
  }

  .hero-badge {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.stat-box {
  height: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

.stat-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.partner-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}
@media (max-width: 768px) {
  .news-card-media {
    min-height: 200px;
  }
}


/* ===== Footer redesign based on reference image ===== */
.site-footer {
  margin-top: 64px;
  background: #f3f4f6;
  color: #244f94;
  padding: 52px 0 44px;
  border-top: 1px solid rgba(36,79,148,.08);
}

.footer-reference {
  max-width: 1020px;
  text-align: center;
}

.footer-reference-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-reference-logo {
  width: clamp(110px, 12vw, 150px);
  height: auto;
}

.footer-reference-brand h3,
.footer-follow,
.footer-project-number,
.footer-reference p {
  color: #244f94;
}

.footer-reference-brand h3 {
  margin: 0;
  font-size: clamp(1.8rem, 2.2vw, 2.3rem);
  line-height: 1.1;
  font-weight: 800;
}

.footer-follow {
  margin: 6px 0 2px;
  font-size: clamp(1.1rem, 1.8vw, 1.65rem);
  font-weight: 800;
}

.footer-reference-social {
  justify-content: center;
  gap: 16px;
  margin: 2px 0 24px;
}

.footer-reference-social a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #19364d;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px rgba(25,54,77,.14);
}

.footer-reference-social a:hover {
  transform: translateY(-2px);
}

.footer-reference-eu {
  margin-top: 10px;
}

.footer-eu-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 14px;
  flex-wrap: wrap;
}

.footer-eu-row p {
  margin: 0;
  text-align: left;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.3;
}

.footer-eu-flag {
  width: 148px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(13,59,86,.08);
}

.footer-project-number {
  margin: 14px 0 6px;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.4;
}

.footer-disclaimer,
.footer-reference-license p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.45;
  color: #3d5f95;
}

.footer-reference-license {
  margin-top: 24px;
}

.footer-license-badge {
  width: 180px;
  height: auto;
  margin: 0 auto 16px;
}

.footer-reference-license p {
  max-width: 1020px;
}

/* bigger header logo */
.brand-logo {
  width: clamp(112px, 12vw, 150px);
  height: auto;
  flex: 0 0 auto;
}

.nav-wrap {
  min-height: 104px;
}

@media (max-width: 768px) {
  .nav-wrap {
    min-height: 92px;
  }

  .brand-logo {
    width: clamp(96px, 28vw, 126px);
  }

  .footer-reference-social a {
    width: 50px;
    height: 50px;
  }

  .footer-eu-row {
    gap: 14px;
  }

  .footer-eu-row p {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 42px 0 34px;
  }

  .footer-eu-flag {
    width: 128px;
  }

  .footer-license-badge {
    width: 150px;
  }
}

.full-width-form {
    display: block;
}

.contact-form-card.full {
    width: 100%;
    max-width: 900px; /* opcional */
    margin: 0 auto;
}

.contact-form textarea {
    min-height: 160px;
}

/* CONTACT FORM FULL WIDTH FIX */
.full-width-form.container {
  width: 100%;
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

.full-width-form .contact-card {
  width: 100%;
}


/* FIX EMAIL INPUT STYLE */
.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid #dfe5ea;
  background: #f8fafc;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

/* CONTACT FORM SIZE + EMAIL FIELD CONSISTENCY FIX */
.contact-grid.contact-grid-form.full-width-form {
  grid-template-columns: 1fr;
}

.contact-form-card.full {
  width: min(1180px, 100%);
  max-width: 1180px;
}

.contact-form {
  width: 100%;
}

.contact-form .form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.contact-form .form-group {
  width: 100%;
}

.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group input[type="search"],
.contact-form .form-group textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid #dfe5ea;
  background: #f8fafc;
  font-size: 16px;
  line-height: 1.35;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form .form-group textarea {
  min-height: 190px;
}

@media (max-width: 768px) {
  .full-width-form.container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-form .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


@media (max-width:900px){
  







  .objective-card{
    min-height:auto;
  }
}


.objectives-wrap{
  margin-top: 18px;
}

.objectives-row{
  display: flex;
  justify-content: center;
  gap: 42px;
}

.objectives-row + .objectives-row{
  margin-top: 34px;
}

.objective-card{
  width: 330px;
  min-height: 252px;
  background: #4569a6;
  color: #fff;
  border-radius: 26px;
  padding: 28px 28px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 14px 12px 0 rgba(13,59,86,.12);
}

.objective-icon{
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  color: #fff;
  flex: 0 0 auto;
}

.objective-icon svg{
  width: 100%;
  height: 100%;
  display: block;
}

.objective-icon img,
.objective-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.objective-card p{
  margin: 0;
  max-width: 255px;
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.55;
  font-weight: 500;
  text-transform: none;
}

@media (max-width: 1180px){
  .objectives-row{
    gap: 26px;
  }
  .objective-card{
    width: 300px;
  }
}

@media (max-width: 980px){
  .objectives-row{
    flex-wrap: wrap;
  }
  .objectives-row-top,
  .objectives-row-bottom{
    max-width: 100%;
  }
}

@media (max-width: 760px){
  .objectives-row{
    flex-direction: column;
    align-items: center;
  }
  .objective-card{
    width: min(100%, 340px);
    min-height: auto;
  }
}


.target-section{
  background:radial-gradient(circle at 8% 8%, rgba(90, 165, 220, 0.22), transparent 32%),
        radial-gradient(circle at 92% 95%, rgba(76, 164, 220, 0.22), transparent 30%),
        linear-gradient(135deg, #05253d 0%, #063a5f 55%, #0a4d78 100%) !important;
  position:relative;
  padding:80px 0;
  color:#fff;
}

.target-inner{
  max-width:1100px;
  margin:0 auto;
}

.target-header{
  margin-bottom:40px;
}

.target-header h2{
  color:#fff;
}

.target-cards{
  display:flex;
  justify-content:space-between;
  gap:40px;
}

.target-card{
  background:#f2f4f8;
  color:#1b2b4b;
  padding:30px;
  border-radius:20px;
  width:48%;
  box-shadow:10px 12px 0 rgba(0,0,0,0.15);
}

.target-icon{
  width:46px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px;
  border-radius:14px;
  background:rgba(3, 46, 107, 0.10);
  color:#032e6b;
  font-size:24px;
  line-height:1;
}

.target-icon i{
  display:block;
}

@media(max-width:900px){
  .target-cards{
    flex-direction:column;
  }
  .target-card{
    width:100%;
  }
}


.partners-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.showcase-card {
  position: relative;
  padding: 26px 26px 30px;
  border-radius: 28px;
  overflow: hidden;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.98));
  border: 1px solid rgba(17, 76, 119, .12);
  box-shadow: 0 20px 45px rgba(10, 36, 54, .08);
}

.showcase-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
}

.showcase-card-ficus::after { background: linear-gradient(90deg, #1d8f59, #3dbb78); }
.showcase-card-euro::after { background: linear-gradient(90deg, #2a77d4, #57a4ff); }
.showcase-card-walk::after { background: linear-gradient(90deg, #6a42bb, #8d6bdb); }

.showcase-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(13, 87, 138, .08);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.showcase-flag {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 8px 18px rgba(10, 36, 54, .12);
}

.showcase-logo-wrap {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.showcase-logo {
  width: auto;
  max-width: 220px;
  max-height: 78px;
  object-fit: contain;
  display: block;
}

.showcase-card h3 {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.05;
}

.showcase-card p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.8;
}

.showcase-actions {
  margin-top: 24px;
}

@media (max-width: 1080px) {
  .partners-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-logo-wrap {
    min-height: unset;
  }
}

@media (max-width: 1200px) {
  .stats-grid-enhanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-highlights {
    margin-top: -18px;
  }
  .stats-grid-enhanced {
    grid-template-columns: 1fr;
  }
  .stat-box-enhanced {
    padding: 24px;
  }
  .stat-box-enhanced strong {
    font-size: 1.45rem;
  }
  .stat-pill {
    width: 100%;
    justify-content: flex-start;
  }
}








/* HERO FINAL BALANCED VERSION */
.hero {
    min-height: 700px !important;
    padding: 72px 0 0 !important;
    overflow: hidden !important;
}

.hero-grid {
    display: grid !important;
    grid-template-columns: 0.84fr 1.16fr !important;
    align-items: center !important;
    gap: 24px !important;
}

.hero-content {
    max-width: 610px !important;
    position: relative !important;
    z-index: 2 !important;
}

.hero-visual {
    min-height: 560px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    overflow: visible !important;
    margin-right: -45px !important;
    transform: translateY(18px) !important;
    position: relative !important;
    z-index: 1 !important;
}

.hero-visual img {
    width: min(58vw, 740px) !important;
    max-width: none !important;
    height: auto !important;
    object-fit: contain !important;
    transform: scale(1.06) !important;
    transform-origin: center right !important;
}

@media (min-width: 1400px) {
    .hero-visual img {
        width: 780px !important;
        transform: scale(1.08) !important;
    }
}

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 0.9fr 1.1fr !important;
        gap: 18px !important;
    }

    .hero-visual {
        margin-right: -25px !important;
        transform: translateY(12px) !important;
    }

    .hero-visual img {
        width: min(56vw, 660px) !important;
        transform: scale(1.04) !important;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto !important;
        padding: 54px 0 36px !important;
        overflow: hidden !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-visual {
        min-height: auto !important;
        margin-right: 0 !important;
        justify-content: center !important;
        transform: none !important;
    }

    .hero-visual img {
        width: 100% !important;
        max-width: 520px !important;
        transform: none !important;
    }
}


/* ACTIVITIES SECTION DARK STYLE */
.activities,
.key-activities,
.activities-section {
    background:
        radial-gradient(circle at top left, rgba(74,144,226,0.15), transparent 35%),
        radial-gradient(circle at bottom right, rgba(74,144,226,0.18), transparent 30%),
        linear-gradient(135deg, #052742 0%, #06365a 55%, #0b4f7d 100%) !important;
    padding: 90px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.activities h2,
.key-activities h2,
.activities-section h2 {
    color: #ffffff !important;
}

.activities .section-label,
.key-activities .section-label,
.activities-section .section-label {
    color: rgba(255,255,255,0.7) !important;
}

.activity-card,
.activities .card,
.key-activities .card,
.activities-section .card {
    background: rgba(255,255,255,0.98) !important;
    border-radius: 28px !important;
    box-shadow:
        14px 14px 28px rgba(0,0,0,0.28),
        0 4px 10px rgba(255,255,255,0.08) inset !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    transition: all 0.3s ease !important;
}

.activity-card:hover,
.activities .card:hover,
.key-activities .card:hover,
.activities-section .card:hover {
    transform: translateY(-8px) translateX(-4px) !important;
    box-shadow:
        20px 20px 40px rgba(0,0,0,0.35),
        0 4px 12px rgba(255,255,255,0.12) inset !important;
}

.activity-card h3,
.activities .card h3,
.key-activities .card h3,
.activities-section .card h3 {
    color: #08263f !important;
}

.activity-card p,
.activities .card p,
.key-activities .card p,
.activities-section .card p {
    color: #16344d !important;
    line-height: 1.8 !important;
}


/* REAL FIX - DARK KEY ACTIVITIES SECTION */
.activities-dark-section {
    background:
        radial-gradient(circle at 8% 8%, rgba(90, 165, 220, 0.22), transparent 32%),
        radial-gradient(circle at 92% 95%, rgba(76, 164, 220, 0.22), transparent 30%),
        linear-gradient(135deg, #05253d 0%, #063a5f 55%, #0a4d78 100%) !important;
    padding: 90px 0 100px !important;
    overflow: hidden !important;
}

.activities-dark-section .eyebrow {
    color: rgba(255, 255, 255, 0.72) !important;
}

.activities-dark-section h2 {
    color: #ffffff !important;
}

.activities-dark-section .info-card {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 28px !important;
    box-shadow: 22px 22px 34px rgba(0, 0, 0, 0.34) !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease !important;
}

.activities-dark-section .info-card:hover {
    transform: translate(-4px, -8px) !important;
    box-shadow: 30px 30px 48px rgba(0, 0, 0, 0.42) !important;
}

.activities-dark-section .info-card h3 {
    color: #08263f !important;
}

.activities-dark-section .info-card p {
    color: #16344d !important;
}


/* RESULTS SECTION BLUE BOXES */
.results-grid .result-card,
.results-grid article,
.results-grid .info-card {
    background: linear-gradient(145deg, #003b75 0%, #002a57 100%) !important;
    border-radius: 30px !important;
    box-shadow: 18px 18px 30px rgba(0,0,0,0.18) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

.results-grid .result-card *,
.results-grid article *,
.results-grid .info-card * {
    color: #ffffff !important;
}

.results-grid .result-card p,
.results-grid article p,
.results-grid .info-card p {
    color: rgba(255,255,255,0.88) !important;
}

.results-grid .result-card:hover,
.results-grid article:hover,
.results-grid .info-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 24px 24px 40px rgba(0,0,0,0.24) !important;
}

/* Homepage hero image adjustment */
.page-hero .hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(360px, 0.9fr) minmax(320px, 1fr) !important;
  gap: clamp(32px, 5vw, 76px) !important;
}

.page-hero .hero-copy {
  max-width: 620px;
}

.page-hero .hero-visual {
  min-height: auto !important;
  margin: 0 !important;
  transform: none !important;
  justify-content: center !important;
  overflow: visible !important;
}

.page-hero .hero-visual img {
  width: min(100%, 560px) !important;
  max-width: 560px !important;
  height: auto !important;
  display: block;
  object-fit: contain !important;
  transform: none !important;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .20));
}

@media (min-width: 1400px) {
  .page-hero .hero-visual img {
    max-width: 600px !important;
  }
}

@media (max-width: 900px) {
  .page-hero .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: left;
  }

  .page-hero .hero-visual img {
    width: min(100%, 430px) !important;
    max-width: 430px !important;
    margin: 6px auto 0;
  }
}

@media (max-width: 560px) {
  .page-hero .hero-visual img {
    max-width: 340px !important;
  }
}

/* Brand typography normalization */
body { font-size: 16px; font-weight: 400; }
p, li { font-size: 1rem; }
.hero-lead, .text-flow p, .story-text p, .section-heading p { font-size: clamp(1rem, 1.1vw, 1.08rem); }
small, .news-meta, .stat-box span { font-size: .92rem; }

/* Global blue section consistency update */
.hero,
.cta-section,
.footer-cta,
.project-hero,
.news-hero,
.contact-hero,
.about-hero,
.page-hero {
  background: linear-gradient(135deg, #032e6b 0%, #032e6b 55%, #1d5d94 100%) !important;
}

.section-blue,
.dark-section,
.highlight-section {
  background: #032e6b !important;
}


/* === Results resources section: Canva-style cards === */
.resources-showcase-section {
  background: #032e6b !important;
  padding: 64px 0 !important;
}
.resources-showcase-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 40px 28px !important;
  align-items: stretch !important;
}
.resources-showcase-grid .result-card {
  background: #dbe2ec !important;
  color: #032e6b !important;
  border: 0 !important;
  border-radius: 22px !important;
  padding: 28px 26px 26px !important;
  min-height: 255px !important;
  box-shadow: 8px 8px 0 rgba(91, 125, 172, 0.78) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}
.resources-showcase-grid .result-number {
  display: none !important;
}
.resources-showcase-grid .result-card h3 {
  margin: 0 0 2px !important;
  color: #032e6b !important;
  font-size: 1.45rem !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
}
.resources-showcase-grid .result-card p {
  margin: 0 0 2px !important;
  color: #032e6b !important;
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}
.resources-showcase-grid .result-card ul {
  margin: 0 !important;
  padding-left: 1.35rem !important;
  color: #032e6b !important;
}
.resources-showcase-grid .result-card li {
  color: #032e6b !important;
  font-size: 0.86rem !important;
  line-height: 1.28 !important;
  margin: 0 !important;
}
@media (max-width: 980px) {
  .resources-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  .resources-showcase-section {
    padding: 42px 0 !important;
  }
  .resources-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .resources-showcase-grid .result-card {
    min-height: auto !important;
  }
}

/* Fix: make NEWS hero text readable on blue background */
.page-hero-news .eyebrow,
.page-hero-news .page-title,
.page-hero-news .page-lead {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* FINAL FOOTER POSITION / BRAND FIX */
.site-footer {
  margin-top: 0 !important;
  background: #ffffff !important;
  color: #032e6b !important;
  padding: 58px 0 30px !important;
  border-top: 0 !important;
}

.footer-reference {
  width: min(100%, 900px) !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  text-align: left !important;
}

.footer-reference-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 30px !important;
  text-align: center !important;
}

.footer-reference-logo {
  width: 100px !important;
  height: auto !important;
  display: block !important;
}

.footer-follow {
  margin: 0 !important;
  color: #032e6b !important;
  font-size: 20px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.footer-reference-social {
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  margin: 4px 0 0 !important;
}

.footer-reference-social a {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #19364d !important;
  color: #ffffff !important;
  font-size: 15px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.12) !important;
}

.footer-reference-eu {
  margin-top: 0 !important;
  text-align: left !important;
}

.footer-eu-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  margin: 0 0 12px 0 !important;
  flex-wrap: nowrap !important;
}

.footer-eu-flag {
  width: 92px !important;
  height: auto !important;
  flex: 0 0 auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.footer-eu-row p {
  margin: 0 !important;
  color: #032e6b !important;
  text-align: left !important;
  font-size: 20px !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
}

.footer-project-number {
  margin: 10px 0 2px !important;
  color: #032e6b !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
}

.footer-disclaimer,
.footer-reference-license p,
.footer-reference p {
  color: #032e6b !important;
}

.footer-disclaimer,
.footer-reference-license p {
  max-width: 900px !important;
  margin: 0 !important;
  text-align: left !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
}

.footer-reference-license {
  margin-top: 22px !important;
  text-align: left !important;
}

.footer-license-badge {
  width: 160px !important;
  height: auto !important;
  display: block !important;
  margin: 0 0 18px 0 !important;
}

@media (max-width: 768px) {
  .site-footer { padding: 46px 0 28px !important; }
  .footer-reference { padding: 0 18px !important; }
  .footer-eu-row { align-items: flex-start !important; }
  .footer-eu-flag { width: 86px !important; }
  .footer-eu-row p { font-size: 18px !important; }
  .footer-project-number,
  .footer-disclaimer,
  .footer-reference-license p { font-size: 15px !important; }
}
/* ================================
   Accessibility widget and modes
   ================================ */
:root {
  --accessibility-font-scale: 1;
}

html.accessibility-text-size {
  font-size: calc(16px * var(--accessibility-font-scale));
}

body.accessibility-readable-font,
body.accessibility-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
}

body.accessibility-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 0.18em;
}

body.accessibility-high-contrast {
  --primary: #002b66;
  --secondary: #004a99;
  --dark: #001f4d;
  --text: #001f4d;
  --muted: #203a5e;
  background: #ffffff !important;
  color: #001f4d !important;
}

body.accessibility-high-contrast .page-hero,
body.accessibility-high-contrast .hero,
body.accessibility-high-contrast .dark-section,
body.accessibility-high-contrast .section-blue,
body.accessibility-high-contrast .target-groups,
body.accessibility-high-contrast .results-section {
  background: #001f4d !important;
  color: #ffffff !important;
}

body.accessibility-high-contrast .card,
body.accessibility-high-contrast .result-card,
body.accessibility-high-contrast .partner-card,
body.accessibility-high-contrast .contact-card,
body.accessibility-high-contrast .news-card,
body.accessibility-high-contrast .impact-item,
body.accessibility-high-contrast .info-card,
body.accessibility-high-contrast .panel,
body.accessibility-high-contrast .snapshot-card,
body.accessibility-high-contrast .feature-card,
body.accessibility-high-contrast .content-block,
body.accessibility-high-contrast .side-block,
body.accessibility-high-contrast .footer-reference {
  border: 2px solid #001f4d !important;
}

body.accessibility-reduce-motion *,
body.accessibility-reduce-motion *::before,
body.accessibility-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.accessibility-toggle {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9998;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: #032e6b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(3, 46, 107, 0.32);
}

.accessibility-toggle:hover,
.accessibility-toggle:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid #8fd7d1;
  outline-offset: 3px;
}

.accessibility-toggle svg {
  width: 34px;
  height: 34px;
}

.accessibility-panel {
  position: fixed;
  left: 22px;
  bottom: 96px;
  z-index: 9999;
  width: min(330px, calc(100vw - 44px));
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  color: #032e6b;
  border: 1px solid rgba(3, 46, 107, 0.14);
  box-shadow: 0 20px 55px rgba(3, 46, 107, 0.22);
}

.accessibility-panel[hidden] {
  display: none !important;
}

.accessibility-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.accessibility-panel h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #032e6b;
}

.accessibility-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #f4f4f4;
  color: #032e6b;
  font-size: 1.3rem;
  cursor: pointer;
}

.accessibility-options {
  display: grid;
  gap: 10px;
}

.accessibility-option,
.accessibility-reset {
  width: 100%;
  border: 1px solid rgba(3, 46, 107, 0.16);
  border-radius: 14px;
  background: #f4f4f4;
  color: #032e6b;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.accessibility-option:hover,
.accessibility-option:focus-visible,
.accessibility-reset:hover,
.accessibility-reset:focus-visible,
.accessibility-option.active {
  background: #032e6b;
  color: #ffffff;
  outline: none;
}

.accessibility-size-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.accessibility-reset {
  text-align: center;
  margin-top: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10000;
  background: #032e6b;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 0 0 12px 12px;
  font-weight: 800;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid #8fd7d1;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .accessibility-toggle {
    width: 56px;
    height: 56px;
    left: 14px;
    bottom: 14px;
  }

  .accessibility-panel {
    left: 14px;
    bottom: 82px;
    width: calc(100vw - 28px);
  }
}

/* Always-visible back-to-top button */
.back-to-top-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #032e6b;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(3, 46, 107, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.back-to-top-button:hover,
.back-to-top-button:focus-visible {
  transform: translateY(-3px);
  background: #064589;
  box-shadow: 0 18px 38px rgba(3, 46, 107, 0.34);
}

.back-to-top-button svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 560px) {
  .back-to-top-button {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}

/* Results section cards - updated to match requested reference */
.results-heading {
  text-align: left;
  margin-bottom: 26px;
}

.results-heading h2 {
  max-width: 780px;
  letter-spacing: -0.03em;
}

.results-impact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.result-impact-card {
  min-height: 238px;
  padding: 28px 30px;
  border: 0;
  border-radius: 22px;
  background: #2f5689 !important;
  color: #ffffff;
  box-shadow: 8px 8px 0 rgba(47, 86, 137, 0.22), 0 18px 34px rgba(18, 48, 87, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.result-impact-card .result-number {
  color: #ffffff;
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  line-height: 1;
  font-weight: 900;
  margin-bottom: 8px;
}

.result-impact-card h3 {
  color: #ffffff;
  font-size: clamp(1.15rem, 1.8vw, 1.48rem);
  line-height: 1.2;
  font-weight: 850;
  margin: 0 0 24px;
}

.result-impact-card p {
  color: #ffffff;
  font-size: clamp(1.05rem, 1.65vw, 1.42rem);
  line-height: 1.25;
  margin: 0;
}

.result-impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 rgba(47, 86, 137, 0.24), 0 24px 44px rgba(18, 48, 87, 0.2);
}

@media (max-width: 900px) {
  .results-impact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .result-impact-card {
    min-height: auto;
    padding: 26px;
  }
}


/* Privacy, GDPR and cookie consent */
.footer-reference-privacy {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-weight: 700;
}

.footer-reference-privacy a,
.footer-cookie-preferences {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-cookie-preferences {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.gdpr-form-consent {
  margin: 20px 0 26px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(3, 46, 107, 0.12);
  border-radius: 18px;
  background: rgba(3, 46, 107, 0.035);
}

.gdpr-consent-title {
  margin: 0 0 12px;
  color: var(--dark);
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.gdpr-consent-title span {
  color: #c93636;
}

.gdpr-checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--dark);
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1.45;
}

.gdpr-checkbox-line input {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.gdpr-checkbox-line a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form-status.error {
  color: #b42318;
  font-weight: 700;
  margin-top: 12px;
}

.privacy-policy-section {
  padding-top: 42px;
}

.privacy-policy-card {
  background: #ffffff;
  border: 1px solid rgba(3, 46, 107, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
}

.privacy-policy-card h2 {
  color: var(--dark);
  margin: 28px 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.privacy-policy-card h2:first-child {
  margin-top: 0;
}

.privacy-policy-card a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 46, 107, 0.38);
  backdrop-filter: blur(5px);
}

.cookie-consent-overlay.is-open {
  display: flex;
}

.cookie-consent-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(3, 46, 107, 0.28);
  border: 1px solid rgba(3, 46, 107, 0.14);
  padding: clamp(20px, 3.2vw, 32px);
}

.cookie-consent-head {
  display: grid;
  grid-template-columns: 140px 1fr 44px;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.cookie-consent-logo {
  width: 128px;
  max-height: 82px;
  object-fit: contain;
}

.cookie-consent-head h2 {
  margin: 0;
  color: var(--dark);
  text-align: center;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 800;
}

.cookie-consent-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary);
  border-radius: 9px;
  color: var(--primary);
  background: #ffffff;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.cookie-consent-text {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 18px;
}

.cookie-btn {
  border: 1px solid rgba(3, 46, 107, 0.12);
  border-radius: 10px;
  background: #f4f4f4;
  color: var(--dark);
  min-height: 58px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  transform: translateY(-2px);
}

.cookie-accept,
.cookie-save {
  background: var(--primary);
  color: #ffffff;
}

.cookie-save {
  grid-column: span 3;
}

.cookie-policy-link {
  display: table;
  margin: 0 auto;
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.cookie-preferences {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(3, 46, 107, 0.045);
  border: 1px solid rgba(3, 46, 107, 0.10);
}

.cookie-pref-row span {
  display: grid;
  gap: 3px;
  color: var(--dark);
}

.cookie-pref-row small {
  color: var(--muted);
  font-weight: 500;
}

.cookie-pref-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

.cookie-pref-row-disabled {
  opacity: .78;
}

@media (max-width: 680px) {
  .cookie-consent-head {
    grid-template-columns: 1fr 44px;
  }

  .cookie-consent-logo {
    width: 110px;
  }

  .cookie-consent-head h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .cookie-consent-close {
    grid-column: 2;
    grid-row: 1;
  }

  .cookie-consent-actions {
    grid-template-columns: 1fr;
  }

  .cookie-save {
    grid-column: auto;
  }

  .gdpr-checkbox-line {
    font-size: .9rem;
  }
}


/* Privacy policy modal */
.privacy-policy-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.privacy-policy-modal.is-open {
  display: flex;
}

.privacy-policy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 24, 45, 0.72);
  backdrop-filter: blur(4px);
}

.privacy-policy-modal-box {
  position: relative;
  width: min(980px, 96vw);
  height: min(760px, 88vh);
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 34, 73, 0.35);
  border: 1px solid rgba(0, 58, 111, 0.12);
}

.privacy-policy-modal-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: linear-gradient(135deg, #05253d 0%, #063a5f 55%, #0a4d78 100%);
  color: #ffffff;
}

.privacy-policy-modal-header h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  letter-spacing: 0.02em;
}

.privacy-policy-modal-close {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.privacy-policy-modal-close:hover,
.privacy-policy-modal-close:focus-visible {
  background: #ffffff;
  color: #063a5f;
  outline: none;
}

.privacy-policy-modal-frame {
  width: 100%;
  height: calc(100% - 72px);
  border: 0;
  background: #ffffff;
}

body.privacy-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .privacy-policy-modal {
    padding: 10px;
  }

  .privacy-policy-modal-box {
    width: 100%;
    height: 92vh;
    border-radius: 18px;
  }

  .privacy-policy-modal-header {
    height: 64px;
    padding: 0 16px;
  }

  .privacy-policy-modal-close {
    width: 40px;
    height: 40px;
  }
}

/* ===== Language switcher ===== */
.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  letter-spacing: .035em;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 12px;
  line-height: 1;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  background: rgba(3, 46, 107, 0.06);
  outline: none;
}

.language-flag {
  font-size: 1rem;
  line-height: 1;
}

.language-toggle i {
  font-size: .7rem;
  transition: transform .2s ease;
}

.language-switcher.open .language-toggle i {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  display: none;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(3, 46, 107, 0.10);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(3, 46, 107, 0.16);
  z-index: 50;
}

.language-switcher.open .language-menu {
  display: grid;
  gap: 4px;
}

.language-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 12px;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button.active {
  background: rgba(3, 46, 107, 0.07);
  outline: none;
}

.language-menu button.active {
  font-weight: 800;
}

@media (max-width: 900px) {
  .language-switcher {
    width: 100%;
    display: block;
  }

  .language-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 10px;
  }

  .language-menu {
    position: static;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
    border-radius: 14px;
  }
}

/* === Admin tabs + Results publishing === */
.admin-tabs {
  display: flex;
  gap: 10px;
  background: #ffffff;
  border-left: 1px solid rgba(3, 46, 107, 0.08);
  border-right: 1px solid rgba(3, 46, 107, 0.08);
  padding: 16px 24px 0;
}

.admin-tab {
  border: 1px solid rgba(3, 46, 107, 0.10);
  background: #f4f8fb;
  color: #032e6b;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-tab.is-active,
.admin-filter-chip.is-active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

.uploaded-file-preview,
.admin-resource-file {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f0f6fb;
  color: #032e6b;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.uploaded-file-preview a {
  color: var(--primary);
  text-decoration: underline;
}

.admin-resource-item .admin-item-body {
  padding: 20px;
}

/* === Public results library === */
.published-results-section {
  background:
    radial-gradient(circle at 8% 8%, rgba(90, 165, 220, 0.14), transparent 30%),
    linear-gradient(180deg, #f7fbfe 0%, #edf5fb 100%) !important;
}

.results-download-heading {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.results-library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, .7fr) auto;
  gap: 14px;
  align-items: end;
  background: #ffffff;
  border: 1px solid rgba(3, 46, 107, 0.08);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(3, 46, 107, 0.08);
  margin: 30px 0 16px;
}

.results-library-toolbar .form-group {
  margin-bottom: 0;
}

.published-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.published-result-card,
.results-empty {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,251,255,0.98) 100%);
  border: 1px solid rgba(3, 46, 107, 0.08);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(3, 46, 107, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.published-result-card {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.published-result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #032e6b 0%, #2c76b6 100%);
}

.published-result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(3, 46, 107, 0.12);
  border-color: rgba(3, 46, 107, 0.16);
}

.results-empty {
  grid-column: 1 / -1;
  min-height: auto;
  text-align: center;
}

.published-result-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.published-result-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, #032e6b 0%, #255f98 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 14px 26px rgba(3, 46, 107, 0.18);
  flex: 0 0 auto;
}

.published-result-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.published-result-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: #eef5fb;
  color: #032e6b;
  font-size: .78rem;
  font-weight: 800;
}

.published-result-card h3 {
  color: #032e6b;
  margin: 0 0 10px;
  line-height: 1.2;
  font-size: 1.35rem;
}

.published-result-card p,
.published-result-description {
  color: var(--muted);
  margin: 0 0 16px;
}

.published-result-description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.published-result-action {
  align-self: flex-start;
  margin-top: auto;
  min-width: 170px;
}

.published-result-action.disabled {
  pointer-events: none;
  opacity: .55;
}

.result-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 19, 41, 0.68);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 120;
}

.result-preview-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.result-preview-panel {
  width: min(1060px, 100%);
  max-height: min(90vh, 920px);
  background: #ffffff;
  border-radius: 30px;
  border: 1px solid rgba(3, 46, 107, 0.10);
  box-shadow: 0 30px 80px rgba(4, 18, 42, 0.28);
  position: relative;
  overflow: hidden;
}

.result-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  min-height: 560px;
}

.result-preview-media {
  background: linear-gradient(180deg, #eff6fc 0%, #f8fbfe 100%);
  border-right: 1px solid rgba(3, 46, 107, 0.08);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-preview-media img,
.result-preview-media iframe,
.result-preview-media video {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(3, 46, 107, 0.10);
}

.result-preview-media img {
  object-fit: contain;
  padding: 12px;
}

.result-preview-media video {
  object-fit: contain;
}

.result-preview-placeholder {
  width: 100%;
  min-height: 100%;
  border-radius: 24px;
  border: 1px dashed rgba(3, 46, 107, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,250,253,0.96));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px;
  color: #032e6b;
}

.result-preview-placeholder i {
  font-size: 2.6rem;
  margin-bottom: 14px;
}

.result-preview-placeholder h3 {
  margin: 0 0 10px;
}

.result-preview-placeholder p {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
}

.result-preview-content {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}

.result-preview-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.result-preview-badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef5fb;
  color: #032e6b;
  font-size: .82rem;
  font-weight: 800;
}

.result-preview-content h2 {
  margin: 0 0 12px;
  color: #032e6b;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.12;
}

.result-preview-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.result-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
}

.result-preview-actions [hidden],
.result-preview-actions .is-hidden {
  display: none !important;
}

.result-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(3, 46, 107, 0.08);
  color: #032e6b;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
}

.result-preview-close:hover,
.result-preview-close:focus-visible {
  background: rgba(3, 46, 107, 0.14);
}

@media (max-width: 980px) {
  .published-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results-library-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .results-library-toolbar .btn {
    grid-column: 1 / -1;
  }
  .result-preview-layout {
    grid-template-columns: 1fr;
  }
  .result-preview-media {
    border-right: 0;
    border-bottom: 1px solid rgba(3, 46, 107, 0.08);
    min-height: 360px;
  }
  .result-preview-media img,
  .result-preview-media iframe,
  .result-preview-media video {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .admin-tabs {
    padding: 14px 16px 0;
  }
  .admin-tab {
    flex: 1;
  }
  .published-results-grid,
  .results-library-toolbar {
    grid-template-columns: 1fr;
  }
  .published-result-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .published-result-meta {
    justify-content: flex-start;
  }
  .result-preview-modal {
    padding: 14px;
  }
  .result-preview-panel {
    border-radius: 24px;
    max-height: 92vh;
  }
  .result-preview-media,
  .result-preview-content {
    padding: 20px;
  }
  .result-preview-media img,
  .result-preview-media iframe,
  .result-preview-media video {
    min-height: 240px;
  }
  .result-preview-actions .btn {
    width: 100%;
  }
}

/* Fix: prevent long result descriptions/links from overflowing the preview modal */
.result-preview-content {
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.result-preview-content h2,
.result-preview-content p,
.result-preview-badges span {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.result-preview-layout {
  min-width: 0;
}
