/*
Theme Name: DeepBEAT 2026
Description: DeepBEAT website theme (2026 redesign).
Version: 1.0
*/

@font-face {
  font-family: 'Noto Sans';
  src: url('fonts/NotoSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Noto Sans';
  src: url('fonts/NotoSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Noto Sans';
  src: url('fonts/NotoSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Noto Sans';
  src: url('fonts/NotoSans-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'Noto Sans';
  src: url('fonts/NotoSans-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

:root {
  --teal:  #004137;
  --olive: #3C4F23;
  --green: #66AB46;
  --gdk:   #2C8848;
  --brown: #915E38;
  --gray:  #7A7979;
  --dark:  #534845;
  --cream: #EEECDF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Noto Sans', Arial, sans-serif;
  background: var(--teal);
  color: #fff;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

p {
  font-size: 18px;
  line-height: 22px;
  text-align: left;
}

/* ════════════════════════════
   NAV
════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  background: var(--teal);
}

/* Left: ECG icon + wordmark */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-ecg {
  display: flex;
  align-items: center;
}
.nav-wordmark {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #fff;
  text-transform: uppercase;
}

/* Right: nav links + social grouped together */
.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: .03em;
  transition: color .15s;
}
.nav-links a:hover { color: #fff; }

.nav-flags {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flag-icon {
  width: 26px;
  height: 18px;
  border-radius: 2px;
  overflow: hidden;
  display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
  transition: transform .15s ease;
}
.flag-icon svg { display: block; width: 100%; height: 100%; }
a.flag-icon:hover { transform: translateY(-2px); }
.flag-icon.disabled { opacity: .35; cursor: default; }

.nav-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  cursor: pointer;
  transition: background .15s;
}
.social-icon:hover { background: rgba(255,255,255,.8); }
.social-icon svg { width: 15px; height: 15px; fill: currentColor; }

/* ════════════════════════════
   HERO  (dark teal)
════════════════════════════ */
.hero {
  background: var(--teal) url('img/hero.png') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0 0;
}

.hero-logo {
  max-width: 420px;
  width: 100%;
  display: block;
  margin-bottom: 52px;
  padding: 0 32px;
  box-sizing: border-box;
}
@media (min-width: 480px) {
  .hero-logo { padding: 0; }
}

/* ── Geological illustration ── */
.geo-illustration {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Pine trees */
.trees-svg {
  width: 100%;
  max-width: 420px;
  display: block;
}

/* Geological cross-section card */
.geo-card {
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  border-radius: 2px;
}
.geo-green  { height: 28px; background: var(--green); }
.geo-brown  { height: 18px; background: var(--brown); }
.geo-gray   {
  background: var(--gray);
  display: flex;
  align-items: center;
  padding: 4px 0;
}
.geo-gray svg { width: 100%; display: block; }
.geo-dark   { height: 20px; background: var(--dark); }

/* "Co  REE  Li" label bar */
.mineral-bar {
  width: 100%;
  max-width: 420px;
  background: #1a1008;
  display: flex;
  justify-content: center;
  gap: 0;
}
.mineral-bar span {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* DEEPBEAT heading */
.hero-title {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: .25em;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  margin-top: 28px;
  margin-bottom: 72px;
  line-height: 1;
}

/* ════════════════════════════
   ECG WAVEFORM DIVIDER
════════════════════════════ */
.ecg-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  position: relative;
}
.ecg-divider img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}
/* per-transition backgrounds split at the ECG baseline */
.ecg-teal-teal  { background: var(--teal); }
.ecg-hero-teal  { background: linear-gradient(to bottom, transparent 62%, var(--teal) 62%); }
.ecg-teal-olive { background: linear-gradient(to bottom, var(--teal) 62%, var(--olive) 62%); }
.ecg-olive-teal { background: linear-gradient(to bottom, var(--olive) 62%, var(--teal) 62%); }

/* ════════════════════════════
   ABOUT PAGE
════════════════════════════ */
.main-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 56px;
}

.content-grid,
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

h2 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 20px;
}

.content-grid p,
.bottom-grid p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
  margin-bottom: 20px;
}

/* ── Read more / read less disclosure ── */
.read-more { margin-top: 4px; }
.read-more summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  list-style: none;
  user-select: none;
}
.read-more summary::-webkit-details-marker { display: none; }
.read-more summary::marker { content: ''; }
.read-more summary::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.read-more[open] summary::before { transform: rotate(45deg); }
.read-more summary .rm-less { display: none; }
.read-more[open] summary .rm-less { display: inline; }
.read-more[open] summary .rm-more { display: none; }
.read-more-body { margin-top: 14px; }
.read-more-body p:last-child { margin-bottom: 0; }

.ecg {
  margin-top: 36px;
}
.ecg svg { width: 100%; display: block; }

.about-graphic {
  width: 100%;
  margin-top: 16px;
}
.about-graphic img { width: 100%; display: block; }

@media (max-width: 768px) {
  .content-grid,
  .bottom-grid { grid-template-columns: 1fr; gap: 40px; }
  .main-title { margin-bottom: 36px; }
}

/* ════════════════════════════
   GALLERY
════════════════════════════ */
.page-content-inner.wide { max-width: 1200px; }

/* ── Main viewer ── */
.gallery-viewer { width: 100%; }

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  margin-bottom: 12px;
  cursor: zoom-in;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.4);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 28px 20px;
  z-index: 2;
  opacity: .7;
  transition: opacity .2s, background .2s;
}
.gallery-nav:hover { opacity: 1; background: rgba(0,0,0,.65); }
.gallery-nav.gallery-prev { left: 0; }
.gallery-nav.gallery-next { right: 0; }
.gallery-nav svg { width: 28px; display: block; }

/* ── Thumbnail strip ── */
.gallery-strip-outer {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.gallery-strip-outer::-webkit-scrollbar { display: none; }

.gallery-strip {
  display: flex;
  gap: 8px;
  width: max-content;
}

.gallery-thumb {
  width: 160px;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  opacity: .5;
  transition: opacity .2s, border-color .2s;
}
.gallery-thumb:hover { opacity: .8; }
.gallery-thumb.active { opacity: 1; border-color: var(--green); }
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .gallery-thumb { width: 100px; }
  .gallery-nav { padding: 18px 12px; }
  .gallery-nav svg { width: 20px; }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 95vw;
  max-height: 95vh;
}

.lightbox-img {
  display: block;
  max-width: 80vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
  opacity: .65;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-arrow {
  flex-shrink: 0;
  width: 64px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s;
  padding: 0;
}
.lightbox-arrow:hover { opacity: 1; }
.lightbox-arrow svg { width: 100%; display: block; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lightbox-arrow { width: 40px; }
  .lightbox-img { max-width: 90vw; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════
   RESEARCH / COUNTRIES SECTION
════════════════════════════ */
.research-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 80px;
}

.key-questions h2,
.project-timeline h2 { margin-bottom: 36px; }

.key-questions p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
  margin-bottom: 0;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.key-questions p:first-of-type { padding-top: 0; }
.key-questions p:last-of-type  { border-bottom: none; padding-bottom: 0; }

/* white rule + breathing room between the questions and the timeline */
.project-timeline {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid rgba(255,255,255,.35);
}
.project-timeline img {
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .project-timeline { margin-top: 40px; padding-top: 36px; }
}

/* Country grid */
.country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.country-img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  margin-bottom: 28px;
}

.country-location {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,.65);
  margin-bottom: 4px;
  line-height: 1.4;
}

.country-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1;
}

.country-minerals {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.mineral-badge {
  border: 1.5px solid rgba(255,255,255,.55);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
}

.country-body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,.72);
  text-align: left;
  margin-bottom: 16px;
}
.country-body:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .research-top  { grid-template-columns: 1fr; gap: 48px; }
  .country-grid  { grid-template-columns: 1fr; gap: 56px; }
}

/* ════════════════════════════
   MEDIA & PUBLICATIONS PAGE
════════════════════════════ */
.page-content.olive { background: var(--olive); }

.media-col-heading {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 40px;
}

.media-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

/* Event items (webinars / workshops) */
.event-item {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.event-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.event-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}

.event-date {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-bottom: 2px;
}

.event-link {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
}
a.event-link { color: var(--green); transition: color .15s; }
a.event-link:hover { color: #fff; }

.event-body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,.8);
  margin-top: 16px;
  margin-bottom: 0;
}

/* Publication items (manuscripts / abstracts) */
.publications-wrapper {
  position: relative;
  overflow: hidden;
}
.page-content.publications-wrapper {
  padding-top: clamp(100px, 15vw, 200px);
}

.publications-bg-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(72px, 13vw, 160px);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

.pub-item {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.pub-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.pub-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}

.pub-author {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
}

.pub-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
  margin-bottom: 20px;
}

.download-btn {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,.55);
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  transition: background .2s, border-color .2s;
}
.download-btn:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Downloads grid */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.download-filename {
  font-size: 15px;
  color: rgba(255,255,255,.8);
}

@media (max-width: 768px) {
  .media-two-col  { grid-template-columns: 1fr; gap: 56px; }
  .downloads-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ════════════════════════════
   PARTNERS PAGE
════════════════════════════ */
.partners-page-section { margin-bottom: 22px; }

.partners-page-coord {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.partners-page-coord .logo-tile img {
  height: 56px;
  max-width: 220px;
}

.partners-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0px 23px;
  align-items: center;
}
.partners-page-grid .logo-tile img { height: 56px; }

.logo-tile.logo-tile-center img { object-position: center; }

@media (max-width: 900px) {
  .partners-page-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .partners-page-coord { gap: 40px; }
  .partners-page-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ════════════════════════════
   CONTACT PAGE
════════════════════════════ */
.contact-people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 72px;
}

.contact-person {
  padding: 0 48px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.contact-person:first-child { padding-left: 0; }
.contact-person:last-child  { padding-right: 0; border-right: none; }

.contact-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 6px;
}

.contact-role {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,.65);
  margin-bottom: 24px;
}

.contact-institute {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
}

.contact-person-email {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--green);
  transition: color .15s;
}
.contact-person-email:hover { color: #fff; }

.contact-reach {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding-top: 56px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.contact-reach-label {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
}

.contact-email-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-email-icon svg { width: 34px; height: 34px; }

.contact-email {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  transition: color .15s;
}
.contact-email:hover { color: #fff; }

@media (max-width: 768px) {
  .contact-people {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-person {
    padding: 0 0 40px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
  .contact-person:last-child { border-bottom: none; padding-bottom: 0; }
  .contact-reach { flex-direction: column; gap: 24px; text-align: center; }
}

/* ════════════════════════════
   INNER PAGE BANNER
════════════════════════════ */
.page-banner {
  background: var(--teal);
  padding: 80px 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-banner h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 52px;
}

/* ════════════════════════════
   INNER PAGE CONTENT
════════════════════════════ */
.page-content {
  background: var(--teal);
  padding: 80px 48px 100px;
}
.page-content-inner {
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-banner { padding: 48px 24px 0; }
  .page-content { padding: 48px 24px 72px; }
}

/* ════════════════════════════
   TEXT / MISSION SECTION  (teal)
════════════════════════════ */
.mission {
  background: var(--teal);
  padding: 80px 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mission-inner {
  max-width: 760px;
  width: 100%;
  text-align: center;
  margin-bottom: 72px;
}
.mission-heading {
  font-size: clamp(27px, 3.6vw, 39px);
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 32px;
}
.mission-body {
  font-size: 21px;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  text-align: left;
  margin-bottom: 24px;
}
.mission-body:last-child { margin-bottom: 0; }

/* ════════════════════════════
   NEWS SLIDER
════════════════════════════ */
.news {
  background: var(--teal);
  padding: 80px 0;
}

.news-heading {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  margin-bottom: 48px;
}

.news-slider {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 16px;
}

.news-arrow {
  flex-shrink: 0;
  width: 72px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  opacity: .6;
  transition: opacity .2s;
  padding: 0;
}
.news-arrow:hover { opacity: 1; }
.news-arrow:disabled { opacity: .15; cursor: default; }
.news-arrow svg { width: 100%; display: block; }

.news-track {
  flex: 1;
  overflow: hidden;
}

.news-slides-wrapper {
  display: flex;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}

.news-slide {
  min-width: 100%;
}

.news-title {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
}

.news-date {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.news-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,.07);
  margin-bottom: 28px;
}

.news-body {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
}

@media (max-width: 768px) {
  .news-arrow { width: 40px; }
  .news-slider { padding: 0 12px; gap: 8px; }
  .news { padding: 48px 0; }
}

/* ════════════════════════════
   PARTNERS SECTION (olive)
════════════════════════════ */
.partners {
  background: var(--olive);
  padding: 64px 72px 0;
}
.partners-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding-bottom: 64px;
}

/* Column label */
.col-label {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 36px;
}

/* Coordination logos (stacked) */
.coord-logos {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Partner logos grid */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
  align-items: center;
}

/* Associated partners row (index.html) */
.partner-grid.associated {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1000px;
}
@media (min-width: 769px) and (max-width: 1024px) {
  .partner-grid.associated { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .partner-grid.associated { grid-template-columns: repeat(2, 1fr); }
}

/* Logo tile */
.logo-tile {
  display: flex;
  align-items: center;
}
.logo-tile a {
  display: flex;
  align-items: center;
}
.logo-tile img {
  display: block;
  height: 90px;
  width: 100%;
  object-fit: contain;
  object-position: left center;
}
.coord-logos .logo-tile img {
  height: 108px;
}

/* ════════════════════════════
   FOOTER
════════════════════════════ */
footer { background: var(--teal); }

/* Newsletter bar (above footer-body) */
.footer-newsletter {
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-newsletter-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.footer-newsletter-text {
  font-size: 14px;
  color: rgba(255,255,255,.65);
}
.libutton {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 14px;
  padding: 7px;
  text-align: center;
  outline: none;
  text-decoration: none !important;
  color: #ffffff !important;
  width: 200px;
  height: 32px;
  border-radius: 16px;
  background-color: #0A66C2;
  font-family: "SF Pro Text", Helvetica, sans-serif;
}
.footer-newsletter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.55);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  transition: background .2s, border-color .2s, transform .2s;
}
.footer-newsletter-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  transform: translateY(-2px);
}
.footer-newsletter-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .footer-newsletter-inner { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-newsletter-btn { transition: none; }
  .footer-newsletter-btn:hover { transform: none; }
}

.footer-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-wordmark {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #fff;
  text-transform: uppercase;
}

.footer-center {
  text-align: center;
  font-size: 17px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  max-width: 660px;
}
.footer-center .copyright {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  margin-bottom: 6px;
}

.footer-text {
  font-size: 14px;
}


/* right margin keeps the EU badge clear of the fixed back-to-top button */
.footer-eu { flex-shrink: 0; margin-right: 60px; }
.footer-eu img { display: block; height: 44px; width: auto; }

/* ════════════════════════════
   HAMBURGER BUTTON
════════════════════════════ */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════
   TABLET  (769 – 1024 px)
════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  .partners { padding: 48px 40px 0; }
  .partners-inner { grid-template-columns: 180px 1fr; gap: 40px; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-tile img { height: 72px; }
  .coord-logos .logo-tile img { height: 88px; }
}

/* ════════════════════════════
   MOBILE  (≤ 768 px)
════════════════════════════ */
@media (max-width: 768px) {
  /* nav */
  .nav { padding: 0 24px; }
  .nav-burger { display: flex; }

  .nav-right {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--teal);
    padding: 24px 32px 32px;
    gap: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    z-index: 100;
  }
  .nav-right.open { display: flex; }

  .nav-links { flex-direction: column; gap: 0; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-links a { display: block; padding: 14px 0; font-size: 18px; }

  /* hero */
  .hero { padding: 40px 0 0; }

  /* mission */
  .mission { padding: 48px 24px 0; }
  .mission-heading { font-size: clamp(22px, 5vw, 32px); }
  .mission-body { font-size: 17px; }

  /* partners */
  .partners { padding: 40px 24px 0; }
  .partners-inner { grid-template-columns: 1fr; gap: 36px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
  .logo-tile img { height: 60px; }
  .coord-logos .logo-tile img { height: 72px; }
  .col-label { font-size: 16px; margin-bottom: 24px; }

  /* footer */
  .footer-body {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 24px;
    text-align: center;
  }
  .footer-center { max-width: 100%; }
  .footer-eu { margin-right: 0; margin-bottom: 48px; }
}

/* ════════════════════════════
   NEWS GRID (news.html)
════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-card-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-body {
  padding: 24px;
}

.news-card-title {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--olive);
  margin-bottom: 10px;
}

.news-card-meta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.news-card-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════
   SUBTLE MOTION
   (scroll reveal + gentle hover lift — kept minimal so it never
   gets in the way of reading or clicking)
════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

.contact-person,
.pub-item,
.event-item,
.download-row,
.logo-tile,
.news-slide,
.news-card {
  transition: transform .25s ease;
}
.contact-person:hover,
.pub-item:hover,
.event-item:hover,
.download-row:hover,
.logo-tile:hover,
.news-card:hover {
  transform: translateY(-3px);
}

.gallery-thumb { transition: opacity .2s ease, transform .2s ease; }
.gallery-thumb:hover { transform: translateY(-2px); }

.nav-brand img { transition: transform .2s ease; }
.nav-brand:hover img { transform: scale(1.04); }

.download-btn,
.event-link a,
.social-icon {
  transition: transform .15s ease, color .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.download-btn:hover,
.social-icon:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .contact-person,
  .pub-item,
  .event-item,
  .download-row,
  .logo-tile,
  .news-slide,
  .news-card,
  .gallery-thumb,
  .nav-brand img,
  .download-btn,
  .event-link a,
  .social-icon,
  .flag-icon {
    transition: none !important;
  }
  .contact-person:hover,
  .pub-item:hover,
  .event-item:hover,
  .download-row:hover,
  .logo-tile:hover,
  .news-card:hover,
  .gallery-thumb:hover,
  .nav-brand:hover img,
  .download-btn:hover,
  .social-icon:hover,
  a.flag-icon:hover {
    transform: none !important;
  }
}

/* ════════════════════════════
   BACK TO TOP BUTTON
════════════════════════════ */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, visibility 0s linear .25s;
  z-index: 500;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.back-to-top:hover { background: var(--green); }
.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity .15s linear, visibility 0s linear .15s; }
  .back-to-top.visible { transition: opacity .15s linear; }
}
@media (max-width: 640px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ════════════════════════════
   PARTNER MAP (partners.html)
════════════════════════════ */
.partner-map-section { margin-bottom: 40px; }

.partner-map-redesign {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 40px;
  align-items: stretch;
  width: 80%;
  margin: 0 auto;
}

.partner-map-left {
  display: flex;
  flex-direction: column;
}

.partner-map-na {
  width: 60%;
  margin: 0 auto 40px;
  aspect-ratio: 800 / 600;
  overflow: hidden;
}

.partner-logos-stack > .partners-page-section:last-child { margin-bottom: 0; }

.partner-map-right {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-map-eu {
  width: 80%;
  height: 80%;
  min-height: 336px;
  overflow: hidden;
}

.partner-map-na svg,
.partner-map-eu svg {
  display: block;
  width: 100%;
  height: 100%;
}
.partner-map-eu svg {
    margin-left: -2px;
}
.partner-map-na svg path.country-marker,
.partner-map-eu svg path.country-marker {
  fill: var(--green) !important;
  transition: fill .2s ease;
}
.partner-map-na svg path.country-marker.active,
.partner-map-eu svg path.country-marker.active {
  fill: var(--gdk) !important;
}
.partner-map-loading {
  color: rgba(255,255,255,.5);
  font-size: 14px;
  text-align: center;
  padding: 40px 0;
}

@media (max-width: 1024px) {
  .partner-map-redesign { grid-template-columns: 1fr; width: 100%; }
  .partner-map-na { width: 78%; }
  .partner-map-right { margin-top: 32px; }
  .partner-map-eu { min-height: 256px; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-map-na svg path.country-marker,
  .partner-map-eu svg path.country-marker { transition: none; }
}

/* ════════════════════════════
   PARTNER DESCRIPTIONS (partners.html)
════════════════════════════ */
html { scroll-behavior: smooth; }

.partner-desc-section { margin-top: 40px; }

.partner-desc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 40px 0;
  scroll-margin-top: 90px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.partner-desc:first-child { border-top: none; }

.partner-desc-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.partner-desc-logo {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 8px;
}
.partner-desc-link {
  font-size: 15px;
  color: var(--green);
  word-break: break-word;
}
.partner-desc-link:hover { text-decoration: underline; }

.partner-desc-main h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.partner-desc-main p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
  margin-bottom: 16px;
}
.partner-desc-main p:last-child { margin-bottom: 0; }
.partner-desc-main ul {
  margin: 0 0 16px 0;
  padding-left: 22px;
  list-style: disc;
}
.partner-desc-main ul li {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
}
.partner-desc-main strong { color: #fff; }

@media (max-width: 768px) {
  .partner-desc { grid-template-columns: 1fr; gap: 20px; }
}

/* ════════════════════════════
   DELIVERABLES TABLE (media.html)
════════════════════════════ */
.deliverables-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.deliverables-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.deliverables-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  padding: 0 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  white-space: nowrap;
}
.deliverables-table td {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  vertical-align: middle;
}
.deliverables-table tbody tr:last-child td { border-bottom: none; }
.deliverables-table td:first-child,
.deliverables-table th:first-child { padding-left: 0; }
.deliverables-table td:last-child,
.deliverables-table th:last-child { padding-right: 0; }
.deliverables-table .deliverable-pending {
  color: rgba(255,255,255,.4);
  text-align: center;
}
.deliverables-table .download-btn { white-space: nowrap; }

/* ════════════════════════════
   WORDPRESS CONTENT (post bodies from the editor)
════════════════════════════ */
.news-body p { margin-bottom: 1em; }
.news-body p:last-child { margin-bottom: 0; }
.news-body a { color: #fff; text-decoration: underline; }
.news-body img { max-width: 100%; height: auto; display: block; margin: 16px 0; }
.news-body ul, .news-body ol { margin: 0 0 1em 1.4em; }
.news-card-title a { color: inherit; }
.news-card-title a:hover { text-decoration: underline; }
