/* ---------------------------------------------------
   0. IMPORT GOOGLE FONT
--------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* ---------------------------------------------------
   1. GLOBAL STYLES
--------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding-top: 120px;
  background-color: #ffffff;
  color: #222;
  line-height: 1.6;
}

h1, h2, h3 {
  color: #222;
  font-weight: 300;
  margin-top: 10px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  padding-left: 20px;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------
   2. FOCUS STYLES (accessibility)
--------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #70B746;
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------------------------------------------------
   3. GRADIENT BANNER STYLES (TOP & BOTTOM)
--------------------------------------------------- */
.gradient-banner {
  width: 100%;
  height: 280px;
  background: linear-gradient(to right, #ff5e5e, #ffc94d, #78e051);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-banner {
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
  margin-bottom: 40px;
}

.bottom-banner {
  height: 100px;
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0% 100%);
  margin-top: 40px;
}

.gradient-content {
  text-align: center;
}

.region-icons {
  display: flex;
  justify-content: center;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.region-icons div {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 120px;
}

.region-icons img {
  width: 160px;
  height: auto;
  margin-bottom: 8px;
}

.region-icons p {
  margin: 0;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9em;
  text-align: center;
}

/* ---------------------------------------------------
   4. HEADER, LOGO & NAVIGATION
--------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  padding: 0 30px;
  height: 120px;
}

header .logo {
  flex-shrink: 0;
}

header .logo img {
  width: auto;
  height: 112px;
  display: block;
}

/* Navigation menu */
nav {
  margin-left: auto;
}

nav ul.menu {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
  padding: 0;
  margin: 0;
}

nav ul.menu > li {
  position: relative;
  padding: 0 16px;
  border-left: 1px solid #e0e0e0;
}

nav ul.menu > li:first-child {
  border-left: none;
}

nav a {
  color: #444;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 10px;
  display: block;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

nav ul.menu > li:hover > a,
nav ul.menu > li > a.active {
  background-color: #f0f0f0;
  color: #111;
}

/* ---------------------------------------------------
   5. DROPDOWN MENU
--------------------------------------------------- */
.submenu {
  display: none;
  position: absolute;
  background-color: #ffffff;
  top: 100%;
  left: -8px;
  min-width: 230px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 8px 0;
  list-style: none;
  border: 1px solid #f0f0f0;
}

.submenu li a {
  padding: 10px 18px;
  white-space: nowrap;
  font-size: 0.875rem;
  color: #444;
  border-radius: 0;
  display: block;
}

.dropdown:hover .submenu {
  display: block;
}

.submenu li a:hover {
  background-color: #f5f5f5;
  color: #111;
}

/* ---------------------------------------------------
   6. HAMBURGER TOGGLE BUTTON
--------------------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-left: auto;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background-color: #f5f5f5;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------
   7. LANGUAGE SWITCHER
--------------------------------------------------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 20px;
  flex-shrink: 0;
}

.lang-switcher a {
  color: #888;
  padding: 4px 7px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switcher a:hover {
  color: #222;
  background-color: #f0f0f0;
}

.lang-switcher a.lang-active {
  color: #70B746;
  font-weight: 700;
}

.lang-switcher .lang-sep {
  color: #ddd;
  user-select: none;
}

/* ---------------------------------------------------
   8. MAIN CONTENT
--------------------------------------------------- */
.homepage-content {
  padding: 0;
  background-color: #ffffff;
}

/* ---------------------------------------------------
   9. PAGE HERO (reusable for inner pages)
--------------------------------------------------- */
.page-hero {
  padding: 60px 0 48px;
  background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
  border-bottom: 1px solid #e8ecf0;
}

.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.75rem;
  color: #70B746;
  margin: 0 0 12px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.page-hero .lead {
  margin: 0;
  max-width: 720px;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ---------------------------------------------------
   10. SCROLL FADE-IN ANIMATIONS
--------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-ready {
  opacity: 0;
}

.fade-in-visible {
  animation: fadeInUp 0.55s ease forwards;
}

/* ---------------------------------------------------
   11. CAROUSEL SECTION
--------------------------------------------------- */
.carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin: 0 auto 40px;
  background-color: #fff;
}

.carousel .slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel .slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.carousel .slide img {
  height: auto;
  width: min(90%, 1620px);
  aspect-ratio: 9 / 2;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto;
}

.carousel button.prev,
.carousel button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #333;
  font-size: 1.5rem;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 8px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.carousel button.prev:hover,
.carousel button.next:hover {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.carousel button.prev { left: 16px; }
.carousel button.next { right: 16px; }

.carousel-dots {
  text-align: center;
  margin-bottom: 40px;
}

.carousel-dots .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 5px;
  background-color: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dots .dot.active {
  background-color: #70B746;
  transform: scale(1.3);
}

/* ---------------------------------------------------
   12. HOMEPAGE SECTIONS
--------------------------------------------------- */
.homepage-section {
  padding: 72px 0;
}

.homepage-section h1,
.homepage-section h2 {
  margin-bottom: 20px;
}

.mission-section,
.sweet-section {
  background-color: #ffffff;
}

.mission-section h1,
.sweet-section h1 {
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
}

.mission-section p,
.sweet-section p {
  font-size: 1rem;
  color: #444;
  max-width: 800px;
}

.guiding-question {
  background-color: #f0f7ea;
  text-align: center;
  border-top: 1px solid #d6efc8;
  border-bottom: 1px solid #d6efc8;
}

.guiding-question h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #70B746;
  font-weight: 700;
  margin-bottom: 16px;
}

.guiding-question p {
  font-size: 1.35rem;
  font-weight: 300;
  max-width: 760px;
  margin: 0 auto;
  color: #1f2937;
  line-height: 1.5;
}

/* ---------------------------------------------------
   13. NEWS CARDS
--------------------------------------------------- */
.news-events {
  background-color: #f7f8fa;
}

.news-events .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-link {
  color: #70B746;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #70B746;
  border-radius: 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.section-link:hover {
  background-color: #70B746;
  color: #ffffff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.news-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #f0f0f0;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.news-date {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #70B746;
}

.news-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.news-card h3 a {
  color: #111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card h3 a:hover {
  color: #70B746;
}

.news-card p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
  flex-grow: 1;
  line-height: 1.55;
}

.news-more {
  font-weight: 600;
  font-size: 0.85rem;
  color: #005599;
  text-decoration: none;
  align-self: flex-start;
}

.news-more:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------
   14. NEWS PAGE
--------------------------------------------------- */
.news-page {
  background-color: #f7f8fa;
  min-height: 60vh;
}

.news-hero {
  padding: 60px 0 32px;
  background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
  border-bottom: 1px solid #e8ecf0;
}

.news-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.75rem;
  color: #70B746;
  margin: 0 0 10px;
}

.news-hero h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

.news-hero .lead {
  margin: 0;
  max-width: 760px;
  color: #4b5563;
  font-size: 1.05rem;
}

.news-catalog {
  padding: 40px 0 80px;
}

.news-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 32px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.filter-group label {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 0;
}

.search-group {
  flex: 1 1 260px;
}

.search-bar input,
.filter-group select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d2d6dc;
  background-color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.search-bar input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #70b746;
  box-shadow: 0 0 0 3px rgba(112, 183, 70, 0.15);
}

.news-empty-state {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 10px;
  background-color: #fff6e6;
  color: #92400e;
  border: 1px solid #fcd9a4;
  text-align: center;
}

.policy-recommendation-controls {
  margin: 24px 0 0;
}

.policy-category-description {
  margin: 18px 0 0;
  max-width: 80ch;
  color: #555;
  line-height: 1.6;
}

[data-policy-recommendations-grid] {
  margin-top: 24px;
}

/* ---------------------------------------------------
   15. NEWSLETTER SIGNUP
--------------------------------------------------- */
.newsletter-signup {
  background: #70B746;
  color: #ffffff;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  align-items: center;
}

.newsletter-form input,
.newsletter-form button {
  height: 46px;
  box-sizing: border-box;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 8px;
  border: none;
}

.newsletter-form input {
  flex: 1 1 260px;
  padding: 0 16px;
  color: #222;
  background-color: #ffffff;
}

.newsletter-form input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.newsletter-form button {
  flex: 0 0 auto;
  padding: 0 24px;
  background-color: #1f4e1c;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
  background-color: #163a14;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------
   16. FOOTER
--------------------------------------------------- */
.site-footer {
  background-color: #ffffff;
  color: #555;
  padding: 40px 30px 24px;
  border-top: 1px solid #e8e8e8;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 48px;
  max-width: 1200px;
  margin: 0 auto 32px;
}

.footer-column {
  flex: 1;
  min-width: 140px;
}

.footer-column:first-child {
  flex: 0 1 260px;
}

.footer-column:nth-child(2) {
  margin-left: 40px;
}

.footer-column [data-funding-acknowledgement] {
  font-size: 0.78rem;
  line-height: 1.5;
}

.footer-column p,
.footer-column a {
  color: #555;
  font-size: 0.875rem;
  text-decoration: none;
  margin: 4px 0;
  display: block;
}

.footer-column strong {
  color: #333;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}

.footer-column a:hover {
  color: #70B746;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 6px;
}

.footer-disclaimer {
  max-width: 1200px;
  padding: 0;
  margin: 0 auto 24px;
  color: #555;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: left;
}

.footer-bottom {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  max-width: 1200px;
  margin: 0 auto;
}

.social-links i {
  margin-right: 6px;
}

.social-links .icon-bluesky {
  display: inline-flex;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: middle;
}

.social-links .icon-bluesky svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Fallback for inner pages using bare <footer> */
footer:not(.site-footer) {
  background-color: #f4f4f4;
  color: #555;
  padding: 20px 30px;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid #e8e8e8;
}

footer:not(.site-footer) a {
  color: #70B746;
}

/* ---------------------------------------------------
   17. FORMS (CONTACT PAGE)
--------------------------------------------------- */
.contact-section {
  padding: 60px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-info p {
  color: #555;
  line-height: 1.65;
}

.contact-info .contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: #444;
  font-size: 0.95rem;
}

.contact-info .contact-detail a {
  color: #70B746;
}

.contact-form {
  background-color: #f9fafb;
  border-radius: 16px;
  padding: 36px;
  border: 1px solid #eef0f3;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #374151;
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d2d6dc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  margin-bottom: 20px;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #70B746;
  box-shadow: 0 0 0 3px rgba(112, 183, 70, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: #70B746;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #5da038;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: #70B746;
  border: 2px solid #70B746;
}

.btn-outline:hover {
  background-color: #70B746;
  color: #ffffff;
}

.tool-launch-panel {
  margin: 48px 0;
  padding: 40px;
  background-color: #f0f7ea;
  border: 1px solid #dcefd0;
  border-radius: 12px;
  text-align: center;
}

.tool-launch-panel h2 {
  margin-top: 0;
}

.tool-launch-panel p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: #555;
}

/* legacy button (homepage forms) */
button {
  background-color: #70B746;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #5da038;
}

/* ---------------------------------------------------
   18. INNER PAGE CONTENT SECTIONS
--------------------------------------------------- */
.content-section {
  padding: 64px 0;
}

.content-section + .content-section {
  padding-top: 0;
}

.content-section.alt-bg {
  background-color: #f7f8fa;
}

/* Card grids for team, partners, etc. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.reo-findings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid #ebebeb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card .card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #70B746;
  background-color: #f0f7ea;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #111;
}

.card p {
  font-size: 0.875rem;
  color: #555;
  margin: 0;
  line-height: 1.55;
}

.card-read-more {
  display: inline-block;
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #005599;
}

.card-read-more:hover,
.card-read-more:focus-visible {
  text-decoration: underline;
}

/* Team member cards */
.team-card .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #e8f5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #70B746;
  margin-bottom: 16px;
  overflow: hidden;
}

.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card .name {
  font-weight: 600;
  font-size: 1rem;
  color: #111;
  margin: 0 0 4px;
}

.team-card .role {
  font-size: 0.85rem;
  color: #70B746;
  font-weight: 500;
  margin: 0 0 4px;
}

.team-card .institution {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

/* Work package cards */
.wp-card {
  border-left: 4px solid #70B746;
}

.wp-card .wp-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: #70B746;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* Work package flip cards */
.wp-flip-card {
  perspective: 1200px;
  height: 340px;
  border-radius: 12px;
  transition: box-shadow 0.25s ease;
}

.wp-flip-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

.wp-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.wp-flip-card:hover .wp-flip-inner {
  transform: rotateY(180deg);
}

.wp-flip-front,
.wp-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  border: 1px solid #ebebeb;
  overflow: hidden;
}

.wp-flip-front {
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.wp-flip-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0) 100%);
}

.wp-flip-front .wp-number,
.wp-flip-front h3 {
  position: relative;
  z-index: 1;
}

.wp-flip-front .wp-number {
  color: #b7e6a0;
}

.wp-flip-front h3 {
  color: #ffffff;
  margin: 0;
}

.wp-flip-back {
  background-color: #ffffff;
  border-left: 4px solid #70B746;
  padding: 28px;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.wp-flip-front .wp-number,
.wp-flip-back .wp-number {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}

.wp-flip-back .wp-number {
  color: #70B746;
}

.wp-flip-back p:not(.wp-number) {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

/* Partner logos */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.partner-card {
  min-width: 0;
  overflow-wrap: anywhere;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid #ebebeb;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: box-shadow 0.2s ease;
}

.partner-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.partner-logo-placeholder {
  width: 80px;
  height: 40px;
  background-color: #f0f4f8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #aaa;
  font-weight: 600;
}

.partner-logo {
  width: 140px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Background for partners whose official logo is supplied in white. */
.partner-logo--dark {
  background-color: #17334d;
  border-radius: 4px;
  padding: 8px;
  box-sizing: border-box;
}

.partner-logo--portrait img {
  border-radius: 4px;
}

.partner-card h4 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
}

.partner-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #777;
}

.partner-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-contacts li {
  font-size: 0.8rem;
  color: #777;
}

.partner-contacts li + li {
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}

.partner-contacts .dept {
  display: block;
  color: #333;
  font-weight: 500;
  margin-bottom: 2px;
}

.partner-contacts a {
  color: #005599;
  text-decoration: none;
}

.partner-contacts a:hover {
  text-decoration: underline;
}

/* Press coverage list */
.press-group-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 12px;
}

.press-subgroup-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #70B746;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 24px 0 8px;
}

.press-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.press-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ebebeb;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
}

.press-list li:last-child {
  border-bottom: none;
}

.press-list a {
  color: #005599;
  font-weight: 500;
}

.press-list a:hover {
  text-decoration: underline;
}

.press-accordion {
  border: 1px solid #ebebeb;
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

.press-accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  background-color: #fafafa;
}

.press-accordion.press-sub summary {
  padding: 12px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #70B746;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.press-accordion summary::-webkit-details-marker {
  display: none;
}

.press-accordion summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: #888;
  transition: transform 0.2s ease;
}

.press-accordion[open] summary::after {
  transform: rotate(45deg);
}

.press-accordion[open] summary {
  border-bottom: 1px solid #ebebeb;
}

.press-accordion .press-list {
  padding: 4px 20px;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.video-card {
  padding: 0;
  overflow: hidden;
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f0f0f0;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
}

.video-play-badge i {
  font-size: 2.2rem;
  color: #ffffff;
  opacity: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: opacity 0.2s ease;
}

.video-card:hover .video-play-badge {
  background: rgba(0, 0, 0, 0.25);
}

.video-card:hover .video-play-badge i {
  opacity: 1;
}

.video-body {
  padding: 14px 18px 18px;
}

.video-body h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}

/* Publication list */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.pub-item {
  background-color: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow 0.2s ease;
}

.pub-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.pub-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: #70B746;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-top: 3px;
}

.pub-body h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.pub-body p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #666;
}

.pub-body a {
  font-size: 0.8rem;
  font-weight: 600;
  color: #005599;
}

.pub-body a:hover {
  text-decoration: underline;
}

/* Intro section carousel context */
.intro-section {
  margin-bottom: 0;
}

/* ---------------------------------------------------
   19. RESPONSIVE DESIGN (MOBILE)
--------------------------------------------------- */
@media (max-width: 900px) {
  .reo-findings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  nav ul.menu > li {
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 14px 20px;
    flex-wrap: wrap;
    row-gap: 0;
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    display: none;
    order: 10;
    width: 100%;
    margin-left: 0;
    padding: 12px 0 8px;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
  }

  nav.is-open {
    display: block;
  }

  nav ul.menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  nav ul.menu > li {
    width: 100%;
    padding: 0;
    border-left: none;
    border-bottom: 1px solid #f5f5f5;
  }

  nav ul.menu > li:last-child {
    border-bottom: none;
  }

  nav a {
    padding: 12px 16px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: none;
  }

  /* Mobile dropdown: toggle via JS class instead of CSS hover */
  .dropdown:hover .submenu {
    display: none;
  }

  .dropdown.is-open .submenu {
    display: block;
  }

  .submenu li a {
    padding: 10px 16px 10px 28px;
    font-size: 0.875rem;
  }

  .lang-switcher {
    order: 2;
    margin-left: 8px;
  }

  .lang-switcher a {
    padding: 3px 5px;
  }

  body {
    padding-top: 90px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .news-events .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form button {
    width: 100%;
  }

  .region-icons {
    gap: 32px;
  }

  .region-icons img {
    width: 100px;
  }

  .gradient-banner {
    height: 200px;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 28px;
  }

  .footer-column:nth-child(2) {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Limit policy citations to two lines while keeping page references visible. */
[data-policy-recommendations-grid] .card {
  min-width: 0;
}

[data-policy-recommendations-grid] .card-source-link {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  margin-top: 0;
  padding-top: 18px;
  font-size: 0.75rem;
  line-height: 1.5;
}

[data-policy-recommendations-grid] .card-source-title {
  flex: 0 1 auto;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: 3em;
  overflow: hidden;
  overflow-wrap: anywhere;
}

[data-policy-recommendations-grid] .card-source-pages {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Keep long translated labels readable in shared controls. */
#language-status {
  margin: 12px auto;
  padding: 12px 24px;
  max-width: 1100px;
  color: #8b1e1e;
  background: #fff5f5;
}

/* Editorial news and event pages */
[hidden] { display: none !important; }
.news-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.translation-note { font-size: .85rem; color: #586475; font-style: italic; }
.article-content { max-width: 850px; }
.article-body { font-size: 1.05rem; line-height: 1.8; overflow-wrap: anywhere; }
.article-body h2, .article-body h3 { margin-top: 2rem; line-height: 1.3; }
.article-body img, .article-cover { max-width: 100%; height: auto; border-radius: 10px; }
.article-body a, .article-back a { color: #346c21; text-decoration: underline; }
.article-body table { display: block; overflow-x: auto; border-collapse: collapse; }
.article-body td, .article-body th { padding: 8px; border: 1px solid #ddd; }
.article-content figure { margin: 0 0 28px; }
.article-content figcaption { font-size: .85rem; color: #666; }
.article-back { margin-top: 40px; }
.event-details { background: #f3f8ef; padding: 24px; border-radius: 12px; margin-bottom: 32px; }
.event-details h2 { margin-top: 0; }
.event-details dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.event-details dt { font-weight: 600; }
.event-details dd { margin: 0; overflow-wrap: anywhere; }
.event-status { font-weight: 600; }

/* Preserve intrinsic logo proportions when build-generated dimensions are present. */
.site-footer img { width: auto; }
