/* Root and Reset */
:root {
  /* AUB Brand - Primary Reds */
  --brand: #840132; /* Berytus Red */
  --brand-ink: #5a0123; /* darker red */
  --brand-light: #a0334d; /* medium red */
  --brand-soft: #d67a8f; /* soft red */
  
  /* Complementary Colors */
  --accent-teal: #006666; /* deep teal */
  --accent-teal-light: #009999; /* medium teal */
  --accent-teal-soft: #b3d9d9; /* soft teal */
  --accent-amber: #cc7700; /* amber orange */
  --accent-amber-light: #ff9900; /* bright amber */
  --accent-amber-soft: #ffcc99; /* soft amber */
  --accent-green: #2d5a27; /* deep green */
  --accent-green-light: #4a8c3e; /* medium green */
  --accent-green-soft: #b3d9b3; /* soft green */
  
  /* Neutrals */
  --accent: #808080; /* Light Gray secondary */
  --ink: #000000; /* Black */
  --muted: #4d4d4d; /* mid gray for body */
  --bg: #ffffff;
  --card: #ffffff;
  --line: #e6e6e6;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --tint-rose: #fff5f8; /* very light brand tint */
  --tint-gray: #f7f7f7; /* soft gray */
  --tint-teal: #f0f8f8; /* very light teal tint */
  --tint-amber: #f0f0f0; /* light grey (replaced amber) */
  --tint-green: #f5f9f5; /* very light green tint */
}
* { 
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

html { 
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Montserrat", "proxima-nova", "Proxima Nova", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow-x: hidden;
  /* Improve mobile tap performance */
  -webkit-tap-highlight-color: rgba(132, 1, 50, 0.1);
  touch-action: manipulation;
}
h1,h2,h3,h4,h5,h6 { 
  line-height: 1.2; 
  margin: 0 0 .5rem;
  font-family: "Montserrat", "proxima-nova", "Proxima Nova", -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1 { font-weight: 700; }
p { margin: 0 0 1rem; color: var(--muted); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { 
  width: min(1120px, 92%); 
  width: -webkit-min(1120px, 92%);
  margin-left: auto;
  margin-right: auto;
}
.section { 
  padding: clamp(3rem, 6vw, 6rem) 0;
  padding: -webkit-clamp(3rem, 6vw, 6rem) 0;
}

/* Mobile improvements for containers and sections */
@media (max-width: 640px) {
  .container {
    width: min(1120px, 90%);
    width: -webkit-min(1120px, 90%);
  }
  .section {
    padding: clamp(2rem, 5vw, 3rem) 0;
    padding: -webkit-clamp(2rem, 5vw, 3rem) 0;
  }
}

.section-head { margin-bottom: 1.5rem; }
.section-head p { max-width: 60ch; }
.bg-rose { 
  background: #fff;
  background: -webkit-linear-gradient(180deg, var(--tint-rose), #fff);
  background: linear-gradient(180deg, var(--tint-rose), #fff);
}
.bg-gray { 
  background: #fff;
  background: -webkit-linear-gradient(180deg, var(--tint-gray), #fff);
  background: linear-gradient(180deg, var(--tint-gray), #fff);
}
.bg-amber { 
  background: #fff;
  background: -webkit-linear-gradient(180deg, var(--tint-gray), #fff);
  background: linear-gradient(180deg, var(--tint-gray), #fff);
}
.bg-green { 
  background: #fff;
  background: -webkit-linear-gradient(180deg, var(--tint-green), #fff);
  background: linear-gradient(180deg, var(--tint-green), #fff);
}
.section-head h2 { position: relative; display: inline-block; padding-bottom: .3rem; }
.section-head h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--brand), transparent); border-radius: 2px; }

/* Header */
.skip-link { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; }
.site-header { 
  position: -webkit-sticky;
  position: sticky;
  top: 0; 
  background: rgba(255,255,255,.9);
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); 
  z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: .6rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--ink); }
.brand-mark { display: inline-block; width: 2.8rem; height: 2.8rem; object-fit: contain; border-radius: 8px; animation: pulseSlow 4s ease-in-out infinite; vertical-align: middle; }
.brand-text { 
  position: relative; 
  letter-spacing: .3px;
  display: inline-block;
}
.brand-init { 
  display: inline-block; 
  line-height: 1;
  font-size: 1.05rem;
}
.brand-expanded { 
  display: none; 
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  box-shadow: var(--shadow);
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.brand:hover .brand-expanded {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.brand-word {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-ink);
  line-height: 1.6;
  white-space: nowrap;
  transition: all 0.2s;
}
.brand:hover .brand-word {
  color: var(--brand);
}
.brand-dots {
  color: var(--muted);
  font-weight: 300;
  margin-left: 0.2rem;
}
@keyframes pulseSlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.site-nav ul { list-style: none; display: flex; gap: 0.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { padding: .4rem .6rem; border-radius: .5rem; font-size: 0.9rem; white-space: nowrap; }
.site-nav a:hover { background: var(--tint-rose); text-decoration: none; }
.nav-toggle { display: none; }
@media (max-width: 1000px) {
  .site-nav a { font-size: 0.85rem; padding: .35rem .5rem; }
  .site-nav ul { gap: 0.35rem; }
}
@media (max-width: 840px) {
  .nav-toggle { 
    display: inline-flex; 
    align-items: center; 
    gap: .5rem; 
    background: #fff; 
    border: 1px solid var(--line); 
    padding: .6rem .8rem; 
    border-radius: .5rem;
    /* Better mobile touch target */
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .nav-toggle:hover, .nav-toggle:active {
    background: var(--tint-rose);
    border-color: var(--brand);
  }
  .site-nav ul { 
    position: absolute; 
    right: 4%; 
    top: 60px; 
    background: #fff; 
    border: 1px solid var(--line); 
    border-radius: .75rem; 
    padding: .75rem; 
    flex-direction: column; 
    min-width: 240px; 
    box-shadow: var(--shadow); 
    display: none;
    /* Smooth animation */
    animation: slideDown 0.3s ease;
  }
  .site-nav[aria-expanded="true"] ul { display: flex; }
  .site-nav a {
    padding: .75rem 1rem;
    font-size: 1rem;
    width: 100%;
    display: block;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn { 
  display: inline-block; 
  padding: .8rem 1.1rem; 
  border-radius: .7rem; 
  font-weight: 600; 
  border: 1px solid transparent;
  /* Improve mobile touch targets */
  min-height: 44px;
  min-width: 44px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(132,1,50,.25); }
.btn.primary:hover, .btn.primary:active { background: var(--brand-ink); transform: translateY(-1px); }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.ghost:hover, .btn.ghost:active { border-color: var(--brand); color: var(--brand); }

/* Mobile button improvements */
@media (max-width: 640px) {
  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }
}

/* Hero Logo Section - Above Everything */
.hero-logo-section {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}

.hero-logo-section .hero-logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-logo-section .hero-logo-main {
  max-width: 100%;
  width: clamp(200px, 35vw, 450px);
  height: auto;
  display: block;
  object-fit: contain;
}

/* Hero - Background Carousel Section (No longer full viewport) */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Carousel Container */
.hero-background-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg-image.active {
  opacity: 1;
  z-index: 1;
}

/* Optimized Overlay for Better Image Visibility with Translucent ESDU Layer */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Lighter gradient to let more background through */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 2;
  /* Smooth transition for visual consistency */
  transition: background 0.3s ease;
}

@media (max-width: 640px) {
  .hero-overlay {
    /* Darker overlay on mobile for better text contrast */
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.3) 40%,
      rgba(0, 0, 0, 0.3) 60%,
      rgba(0, 0, 0, 0.4) 100%
    );
  }
}

/* Content Container - Centered and Above Background */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  max-width: 900px;
  width: 92%;
  margin: 0 auto;
}

/* Main Titles - White with Shadow for Readability */
.hero-main-title {
  font-family: "Montserrat", "proxima-nova", "Proxima Nova", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 0 auto clamp(0.5rem, 1.5vw, 1rem);
  max-width: 100%;
  line-height: 1.3;
  padding: 0 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.6);
}

.hero-main-title-second {
  margin-top: 0;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ESDU Brand Image - Advanced Translucent Layer */
.hero-brand {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1rem, 2vw, 2rem) 0;
}

.hero-esdu-image {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  display: inline-block;
  /* Remove any padding that might interfere */
  padding: 0;
}

.esdu-acronym-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
  position: relative;
  z-index: 3;
  /* Enhance the image slightly for better visibility */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25)) 
          drop-shadow(0 4px 16px rgba(0, 0, 0, 0.15))
          contrast(1.05) brightness(1.02);
}

/* Multi-layered translucent backdrop for optimal text readability */
.hero-esdu-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Increased horizontal size and 80% transparency (20% opacity) */
  width: 90%;
  height: 80%;
  /* Sophisticated multi-layer background with gradient at 20% opacity for 80% transparency */
  background: 
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.2) 100%
    );
  border-radius: 1.25rem;
  z-index: 1;
  /* Advanced backdrop blur with fallback */
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  /* Subtle border for definition */
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* Soft glow effect */
  box-shadow: 
    0 8px 32px rgba(255, 255, 255, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Additional refinement layer for better text contrast */
.hero-esdu-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Adjusted to match wider primary layer */
  width: 85%;
  height: 75%;
  /* Very subtle white overlay just for text areas */
  background: 
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(255, 255, 255, 0) 80%
    );
  border-radius: 1rem;
  z-index: 2;
  pointer-events: none;
  /* Additional blur for smoothness */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Responsive adjustments for translucent layers */
@media (max-width: 900px) {
  .hero-esdu-image::before {
    width: 92%;
    height: 82%;
    /* Maintain 80% transparency (20% opacity) on smaller screens */
    background: 
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 100%
      );
  }
  
  .hero-esdu-image::after {
    width: 87%;
    height: 77%;
  }
}

@media (max-width: 640px) {
  .hero-esdu-image::before {
    width: 94%;
    height: 85%;
    /* Maintain 80% transparency (20% opacity) on mobile */
    background: 
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 100%
      );
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
  }
  
  .hero-esdu-image::after {
    width: 89%;
    height: 80%;
    background: 
      radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 80%
      );
  }
}

/* Hero Bottom Section - Below Background, Above Mission */
.hero-bottom-section {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3rem) 0;
  text-align: center;
}

.hero-bottom-section .container {
  max-width: 900px;
  margin: 0 auto;
}

/* Description Text - Now on White Background */
.hero-description {
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
  max-width: 750px;
}

.hero-description p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
  text-shadow: none;
  background: none;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Call-to-Action Buttons */
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
}

.hero-ctas .btn {
  box-shadow: 0 4px 12px rgba(132, 1, 50, 0.2);
}

.hero-ctas .btn.ghost {
  background: rgba(255, 255, 255, 1);
  color: var(--brand-ink);
  border-color: var(--line);
}

.hero-ctas .btn.ghost:hover {
  background: var(--tint-rose);
  border-color: var(--brand);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .hero-logo-section {
    padding: 1.5rem 0 1rem;
  }
  
  .hero-logo-section .hero-logo-main {
    width: clamp(180px, 50vw, 350px);
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 1.5rem 0;
  }
  
  .hero-esdu-image {
    max-width: 100%;
  }
  
  .hero-bottom-section {
    padding: 2rem 0;
  }
}

@media (max-width: 640px) {
  .hero-logo-section {
    padding: 1rem 0 0.5rem;
  }
  
  .hero-logo-section .hero-logo-main {
    width: clamp(160px, 60vw, 300px);
  }
  
  .hero {
    padding: 1.5rem 0;
  }
  
  .hero-main-title {
    font-size: clamp(1.2rem, 5.5vw, 1.6rem);
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  
  .hero-main-title-second {
    font-size: clamp(1rem, 4.5vw, 1.3rem);
  }
  
  .hero-description p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 1rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .hero-ctas .btn {
    width: 100%;
    max-width: 100%;
  }
  
  .hero-esdu-image {
    padding: 0 0.5rem;
  }
}

/* Legacy Hero Styles - Keep for Backwards Compatibility */
.hero-logo-top-left {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 1rem;
  pointer-events: none;
}

.hero-logo-corner {
  max-width: 100%;
  width: clamp(200px, 25vw, 350px);
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: auto;
}

@media (max-width: 700px) {
  .hero-logo-corner {
    width: clamp(150px, 30vw, 250px);
  }
  
  .hero-logo-main {
    width: clamp(180px, 60vw, 350px);
  }
}

/* Old hero-inner structure - hidden/removed */
.hero-inner {
  display: none;
}

.hero-copy,
.hero-visual,
.hero-image-carousel {
  display: none;
}

/* Fallback for missing images - ensure images are visible */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

img.image-error {
  display: none !important;
}

.image-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: inherit;
  min-height: 200px;
  border: 1px solid rgba(132, 1, 50, 0.08);
}

/* Hero image carousel already defined above */

/* Image Placeholder - Coming Soon */
.image-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--tint-rose), var(--tint-gray));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 2rem;
  border: 2px dashed var(--line);
}

.image-placeholder::before {
  content: "Coming Soon";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--brand-soft);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.slide-image,
.card-image,
.kotl-image,
.initiative-image,
.goal-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(132, 1, 50, 0.08);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(132, 1, 50, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 8px;
}

.slide-image {
  height: 200px;
  min-height: 200px;
}

.card-image {
  height: 200px;
  min-height: 200px;
}

.kotl-image {
  height: 300px;
  min-height: 300px;
}

.initiative-image {
  height: 180px;
  min-height: 180px;
}

.goal-image {
  height: 200px;
  min-height: 200px;
}

/* Other images - fill their frames completely */
.slide-image img,
.card-image img,
.kotl-image img,
.initiative-image img,
.goal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #ffffff;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(132, 1, 50, 0.06);
  padding: 0;
}

.slide-image .image-placeholder,
.card-image .image-placeholder,
.kotl-image .image-placeholder,
.initiative-image .image-placeholder,
.goal-image .image-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.25rem;
}

/* Ensure fallback shows when image fails */
.image-fallback {
  min-height: inherit;
  height: 100%;
}

/* Fade transitions - smooth and simple */
.hero-image.fade-out {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image.fade-in {
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

/* Legacy animation classes - simplified for smoother performance */
.hero-image.fade-blur-out {
  opacity: 0;
  filter: blur(8px) brightness(0.95);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image.fade-blur-in {
  opacity: 1;
  filter: blur(0px) brightness(1);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, 
              filter 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

/* Zoom effects - portrait specific */
.hero-image.portrait.zoom-in-effect {
  opacity: 0;
  transform: translateX(-50%) scale(0.85);
  animation: portraitZoomIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-image.portrait.zoom-out-effect {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: portraitZoomOut 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Zoom effects - landscape specific */
.hero-image.landscape.zoom-in-effect {
  opacity: 0;
  transform: translateY(-50%) scale(0.85);
  animation: landscapeZoomIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-image.landscape.zoom-out-effect {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  animation: landscapeZoomOut 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Slide animations - removed for cleaner transitions */
/* Rotate animation - removed for cleaner transitions */
/* Flip animations - removed for cleaner transitions */
/* Scale bounce animation - removed for cleaner transitions */
/* Wipe animations - removed for cleaner transitions */
/* Cross zoom animations - removed for cleaner transitions */
/* Blur focus animation - removed for cleaner transitions */

@keyframes heroFade {
  0%, 100% { opacity: 0; }
  15%, 85% { opacity: 1; }
}

/* Smooth zoom animations for portrait */
@keyframes portraitZoomIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes portraitZoomOut {
  0% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.15);
  }
}

/* Smooth zoom animations for landscape */
@keyframes landscapeZoomIn {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes landscapeZoomOut {
  0% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(1.15);
  }
}

@media (max-width: 900px) {
  .hero-inner { flex-direction: column; }
  .hero-visual { 
    order: -1;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 768px) {
  .hero-copy { flex: 1 1 100%; }
  .hero-visual {
    aspect-ratio: 3 / 4;
    padding: 5px;
  }
  .esdu-line { grid-template-columns: clamp(2.3rem, 15vw, 3.5rem) minmax(0, 1fr); }
  .esdu-letter { padding-bottom: 0.2rem; }
  .esdu-text { line-height: 1.3; white-space: normal; }
}

@media (max-width: 640px) {
  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Mission/Vision/Values slider */
.mvv .card-slider { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: stretch; margin-bottom: 1rem; }
.mvv .card { background: linear-gradient(180deg, var(--card), var(--tint-rose)); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; box-shadow: var(--shadow); transition: transform .2s; display: flex; flex-direction: column; }
.mvv .card p { flex: 1; }
.mvv .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(132, 1, 50, 0.08);
  box-shadow: 0 4px 12px rgba(132, 1, 50, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 8px;
}

.mvv .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1);
  background: #ffffff;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(132, 1, 50, 0.06);
  padding: 0;
}

.mvv .card:hover .card-image img {
  transform: scale(1.08);
  filter: brightness(1.05);
  box-shadow: 0 4px 16px rgba(132, 1, 50, 0.15);
}

.mvv .card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(132, 1, 50, 0.1));
  pointer-events: none;
}
.mvv .card:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,.1); }
.mvv .card h3 { margin-bottom: 1rem; }
.mvv .card-values { background: linear-gradient(180deg, var(--card), var(--tint-rose)); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; box-shadow: var(--shadow); transition: transform .2s; width: 100%; }
.mvv .card-values:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,.1); }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pill-list.pill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.pill-list li { background: linear-gradient(135deg, #fff0f4, #ffe8ed); color: var(--brand-ink); border: 1px solid #f5d2dc; padding: .5rem .85rem; border-radius: 999px; font-size: .85rem; line-height: 1.4; white-space: normal; text-align: center; display: flex; align-items: center; justify-content: center; }
.pill-list.pill-grid li { text-align: center; }
.slider-controls { display: none; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem; }
.slider-controls button { 
  border: 1px solid var(--line); 
  background: #fff; 
  padding: .6rem 1rem; 
  border-radius: .5rem; 
  font-size: 1.5rem;
  /* Better mobile touch targets */
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.slider-controls button:hover,
.slider-controls button:active {
  background: var(--tint-rose);
  border-color: var(--brand);
  transform: scale(1.05);
}
.slider-dots { display: inline-flex; gap: .35rem; }
.slider-dots::before, .slider-dots::after { content: ""; }
@media (max-width: 840px) {
  .mvv .card-slider { grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: 1rem; }
  .mvv .card { scroll-snap-align: center; }
  .slider-controls { display: flex; }
}
@media (max-width: 640px) {
  .mvv .card-slider { grid-auto-columns: 95%; }
  .mvv .card { padding: 1.5rem; }
  .mvv .card h3 { font-size: 1.4rem; }
  .mvv .card p { font-size: 1.05rem; line-height: 1.7; }
}

/* Carousel (ESDU at Work) – coverflow effect */
.carousel { position: relative; perspective: 1000px; }
.carousel-viewport { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--card); box-shadow: var(--shadow); }
.carousel-track { display: flex; align-items: stretch; will-change: transform; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.slide { flex: 0 0 100%; padding: 3rem 1.25rem; min-height: 260px; display: grid; place-content: center; text-align: center; }
.carousel .slide h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.slide-image {
  width: 100%;
  max-width: 500px;
  height: 250px;
  margin: 0 auto 1.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(1) contrast(1);
  background: linear-gradient(135deg, var(--tint-rose) 0%, var(--tint-gray) 100%);
}

.slide.is-active .slide-image img {
  transform: scale(1.05);
  filter: brightness(1.05) contrast(1.05);
}

.slide.is-prev .slide-image img,
.slide.is-next .slide-image img {
  transform: scale(0.95);
  filter: brightness(0.9) contrast(0.95);
}
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1rem; }
.carousel-controls button { 
  border: 1px solid var(--line); 
  background: #fff; 
  padding: .6rem 1rem; 
  border-radius: .5rem; 
  font-size: 1.5rem;
  /* Better mobile touch targets */
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.carousel-controls button:hover,
.carousel-controls button:active {
  background: var(--tint-rose);
  border-color: var(--brand);
  transform: scale(1.05);
}
.carousel-dots { display: inline-flex; gap: .35rem; }
.carousel-dots button { 
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  border: 1px solid var(--line); 
  background: #fff; 
  transition: transform .2s;
  /* Better mobile touch targets */
  min-width: 32px;
  min-height: 32px;
  padding: 8px;
  cursor: pointer;
}
.carousel-dots button[aria-current="true"] { background: var(--brand); border-color: var(--brand); transform: scale(1.15); }
.carousel-viewport::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.9), transparent 15%, transparent 85%, rgba(255,255,255,.9)); border-radius: 1rem; }

/* Coverflow transform for neighboring slides (progressively scaled via JS classes) */
.slide.is-prev { transform: translateX(-6%) rotateY(15deg) scale(.92); opacity: .9; transition: transform .7s, opacity .7s; }
.slide.is-next { transform: translateX(6%) rotateY(-15deg) scale(.92); opacity: .9; transition: transform .7s, opacity .7s; }
.slide.is-active { transform: translateZ(0) scale(1); opacity: 1; }

/* Keepers / AUB links */
.grid-keepers { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem; align-items: start; }
.kotl-card, .aub-links { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; box-shadow: var(--shadow); }
.kotl-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.kotl-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(1) saturate(1);
}

.kotl-card:hover .kotl-image img {
  transform: scale(1.08);
  filter: brightness(1.1) saturate(1.1);
}

.kotl-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(45, 90, 39, 0.1), transparent);
  pointer-events: none;
  z-index: 1;
}
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.chip-list li { display: inline-block; }
.chip-list span { display: inline-block; background: linear-gradient(135deg, #fff0f4, #ffe8ed); border: 1px solid #f5d2dc; color: var(--brand-ink); border-radius: 999px; padding: .35rem .6rem; transition: all .2s; cursor: default; font-size: 0.9rem; }
.chip-list span:hover { background: linear-gradient(135deg, #ffe8ed, #ffd6e0); border-color: #f5d2dc; }

/* Mobile improvements for chips and pills */
@media (max-width: 640px) {
  .chip-list {
    gap: .75rem;
    justify-content: center;
  }
  .chip-list span {
    padding: .5rem .85rem;
    font-size: 0.95rem;
  }
  .pill-list {
    gap: .75rem;
  }
  .pill-list li {
    padding: .65rem 1rem;
    font-size: 0.95rem;
  }
}

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

/* Cross-Cutting Initiatives */
.initiatives-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.initiative-item { 
  background: linear-gradient(180deg, var(--card), var(--tint-green)); 
  border: 1px solid var(--line); 
  border-radius: 1rem; 
  padding: 1.25rem; 
  box-shadow: var(--shadow); 
  transition: all .2s; 
  text-align: center;
}
.initiative-item:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 12px 26px rgba(0,0,0,.1);
  border-color: var(--brand); 
}
.initiative-item h4 { 
  margin: 0 0 .5rem; 
  font-size: 1.1rem; 
  font-weight: 700; 
  color: var(--brand-ink); 
}
.initiative-item p { 
  margin: 0; 
  font-size: .9rem; 
  line-height: 1.5; 
}
.initiative-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
}

.initiative-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(1) saturate(1);
  background: linear-gradient(135deg, var(--tint-rose) 0%, var(--tint-gray) 100%);
}

.initiative-item:hover .initiative-image img {
  transform: scale(1.1);
  filter: brightness(1.15) saturate(1.2);
}

.initiative-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(45, 90, 39, 0.15));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.initiative-item:hover .initiative-image::after {
  opacity: 1;
}

/* Video Player */
.video-player-wrapper {
  margin: 3rem 0 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.8));
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(132,1,50,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(132,1,50,0.1);
  background: #000;
  border: 2px solid rgba(132,1,50,0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-container:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(132,1,50,0.2);
  border-color: rgba(132,1,50,0.25);
  transform: translateY(-2px);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: calc(1rem - 2px);
  display: block;
}

@media (max-width: 640px) {
  .video-player-wrapper {
    margin: 2rem 0 0;
    padding: 1rem;
    border-radius: 1rem;
  }
  
  .video-container {
    border-radius: 0.75rem;
    max-width: 100%;
  }
  
  .video-container iframe,
  .video-container video {
    border-radius: calc(0.75rem - 2px);
  }
}

/* Timeline – manual navigation */
.timeline-wrapper {
  position: relative;
}

.timeline .timeline-track { 
  position: relative; 
  display: grid; 
  grid-auto-flow: column; 
  gap: .75rem; 
  overflow-x: auto; 
  overflow-y: hidden;
  padding: 1.25rem 1rem; 
  border: 1px solid var(--line); 
  border-radius: 1rem; 
  background: var(--card);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--brand) var(--line); /* Firefox */
}

.timeline .timeline-track::-webkit-scrollbar {
  height: 6px;
}

.timeline .timeline-track::-webkit-scrollbar-track {
  background: var(--line);
  border-radius: 3px;
}

.timeline .timeline-track::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 3px;
}

.timeline .timeline-track::-webkit-scrollbar-thumb:hover {
  background: var(--brand-ink);
}

.timeline .rail { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #eee; transform: translateY(-50%); pointer-events: none; }
.timeline .progress { position: absolute; left: 0; top: 50%; height: 2px; background: var(--brand); transform: translateY(-50%); width: 0; transition: width 0.6s ease; pointer-events: none; }
.timeline .year { 
  position: relative; 
  min-width: 180px; 
  padding: 1rem; 
  border-radius: .75rem; 
  border: 1px solid var(--line); 
  background: linear-gradient(180deg, #fff, var(--tint-gray)); 
  scroll-snap-align: start; 
  box-shadow: var(--shadow); 
  transition: all .3s ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.timeline .year:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.timeline .year:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.timeline .year::before { 
  content: ""; 
  position: absolute; 
  left: .5rem; 
  top: -10px; 
  width: 10px; 
  height: 10px; 
  background: var(--brand); 
  border-radius: 50%; 
  box-shadow: 0 0 0 6px rgba(132,1,50,.12); 
  transition: all .3s ease;
}

.timeline .year.active { 
  border-color: var(--brand); 
  background: linear-gradient(180deg, #fff, var(--tint-rose));
}

.timeline .year.active::before {
  box-shadow: 0 0 0 8px rgba(132,1,50,.2);
  transform: scale(1.2);
}

.timeline .year h4 { margin: 0 0 .35rem; font-weight: 700; color: var(--brand); }
.timeline .year p { margin: 0; font-size: .95rem; }

.timeline-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.timeline-prev,
.timeline-next {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(132,1,50,.25);
  -webkit-tap-highlight-color: transparent;
}

.timeline-prev:hover:not(:disabled),
.timeline-next:hover:not(:disabled) {
  background: var(--brand-ink);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(132,1,50,.35);
}

.timeline-prev:active:not(:disabled),
.timeline-next:active:not(:disabled) {
  transform: scale(0.95);
}

.timeline-prev:disabled,
.timeline-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--muted);
}

@media (max-width: 640px) {
  .timeline .year {
    min-width: 160px;
    padding: 0.85rem;
  }
  
  .timeline-prev,
  .timeline-next {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}



/* Strategic Goals */
.goals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.goal-card { 
  background: linear-gradient(180deg, var(--card), var(--tint-gray)); 
  border: 1px solid var(--line); 
  border-radius: 1rem; 
  padding: 1.5rem; 
  box-shadow: var(--shadow); 
  transition: transform .2s, box-shadow .2s;
}
.goal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,.1);
  border-color: var(--brand);
}
.goal-card h3 { 
  margin: 0 0 .75rem; 
  font-size: 1.2rem; 
  color: var(--brand-ink); 
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.goal-card h3::before {
  content: '→';
  font-size: 1.5rem;
  color: var(--brand);
}
.goal-card p { margin: 0; font-size: .95rem; line-height: 1.6; }

/* Mobile improvements for goals */
@media (max-width: 640px) {
  .goals-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .goal-card {
    padding: 1.75rem;
  }
  .goal-card h3 {
    font-size: 1.3rem;
  }
  .goal-card p {
    font-size: 1rem;
    line-height: 1.7;
  }
}
.goal-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
}

.goal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(1) saturate(1);
  background: linear-gradient(135deg, var(--tint-rose) 0%, var(--tint-gray) 100%);
}

.goal-card:hover .goal-image img {
  transform: scale(1.12);
  filter: brightness(1.1) saturate(1.15);
}

.goal-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(132, 1, 50, 0.1), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.goal-card:hover .goal-image::before {
  opacity: 1;
}

/* Impact */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { 
  background: linear-gradient(135deg, var(--card), var(--tint-rose)); 
  border: 1px solid var(--line); 
  border-radius: 1rem; 
  padding: 1.25rem; 
  text-align: center; 
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.kpi-value { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--brand-ink); }
.kpi-label { color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (max-width: 520px) { 
  .kpi-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .kpi {
    padding: 1.5rem;
  }
  .kpi-value {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .kpi-label {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Outreach maps - Leaflet */
.outreach { border: 1px solid var(--line); border-radius: 1rem; background: var(--card); box-shadow: var(--shadow); padding: 1rem; }
.outreach-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.map-tabs { display: inline-flex; gap: .5rem; border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; }
.map-tabs button { 
  background: #fff; 
  border: 0; 
  padding: .65rem 1rem; 
  color: var(--muted); 
  cursor: pointer; 
  transition: background .2s, color .2s;
  /* Better mobile touch targets */
  min-height: 44px;
  font-size: 1rem;
}
.map-tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }

/* Mobile improvements for maps */
@media (max-width: 640px) {
  .outreach-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .map-tabs {
    width: 100%;
  }
  .map-tabs button {
    flex: 1;
    padding: .75rem;
  }
  .map-stage {
    min-height: 350px;
  }
  #esdu-map-container {
    height: 350px;
  }
}
.map-stage { position: relative; margin-top: .75rem; border-radius: .75rem; overflow: hidden; min-height: 420px; }
#esdu-map-container { width: 100%; height: 420px; border-radius: .5rem; }
/* Reduce prominence of map labels to avoid interference with markers */
#esdu-map-container .leaflet-pane svg text {
  opacity: 0.1 !important;
  pointer-events: none;
  font-size: 5px !important;
}
/* Hide labels on smaller zoom levels where they're more likely to interfere */
#esdu-map-container .leaflet-zoom-pane text {
  opacity: 0.1 !important;
}

/* Custom ESDU map markers */
.esdu-hub-marker, .esdu-node-marker { background: transparent; border: none; }
.marker-animation-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-pulse, .node-pulse {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(132, 1, 50, 0.7);
  animation: pulse 3s infinite;
}
.node-pulse { background: var(--brand-ink); }
.hub-pulse::before, .node-pulse::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: ripple 3s infinite;
}
.node-pulse::before { border-color: var(--brand-ink); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(132, 1, 50, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(132, 1, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(132, 1, 50, 0); }
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Animated connection lines */
.animated-connection-line {
  stroke-dasharray: 10, 10;
  animation: dashMove 20s linear infinite;
}

/* Bidirectional animation - sends out and brings in (slower) */
.animated-connection-line.bidirectional {
  animation: dashMoveBidirectional 16s ease-in-out infinite;
}

@keyframes dashMove {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1000; }
}

/* Bidirectional: starts at hub (outgoing), reverses back (incoming) */
@keyframes dashMoveBidirectional {
  0% { stroke-dashoffset: 0; }
  45% { stroke-dashoffset: 1000; }
  50% { stroke-dashoffset: 1000; }
  95% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
  border-radius: .5rem;
  box-shadow: var(--shadow);
}

.map-popup-content { padding: .5rem 0; }
.map-popup-content h4 {
  margin: 0 0 .5rem;
  font-size: 1rem;
  color: var(--brand-ink);
  font-weight: 700;
}
.map-popup-content p {
  margin: 0 0 .5rem;
  font-size: .9rem;
  color: var(--muted);
}
.popup-logo {
  max-width: 60px;
  max-height: 40px;
  margin-bottom: .5rem;
  border-radius: .25rem;
}
.popup-link {
  display: inline-block;
  margin-top: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.popup-link:hover { text-decoration: underline; }

/* Partners */
.partners-categories { display: grid; gap: 2rem; }
.partner-category h4 { margin: 0 0 1rem; font-size: 1.1rem; color: var(--brand-ink); font-weight: 600; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.logo-tile { 
  display: grid; 
  place-items: center; 
  height: 88px; 
  border-radius: .75rem; 
  border: 1px solid var(--line); 
  background: linear-gradient(135deg, #fff, var(--tint-gray)); 
  filter: grayscale(100%); 
  transition: all .2s; 
  box-shadow: var(--shadow); 
  overflow: hidden;
  position: relative;
  animation: subtleGlow 6s ease-in-out infinite;
}
.logo-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 8s infinite;
}
.logo-tile a { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; }
.logo-tile span { font-size: .85rem; font-weight: 600; color: var(--muted); text-align: center; padding: .5rem; transition: all .2s; }
.logo-tile img { max-width: 80%; max-height: 70%; object-fit: contain; }
.logo-tile:hover { 
  filter: grayscale(0%); 
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 26px rgba(0,0,0,.12), 0 0 0 3px rgba(132,1,50,0.1);
  background: linear-gradient(135deg, #fff, var(--brand-soft)); 
  cursor: pointer; 
  animation: pulseTile 2s ease-in-out infinite;
}
.logo-tile:hover::before { animation: none; }
.logo-tile:hover span { color: var(--brand-ink); transform: scale(1.05); }
@media (max-width: 840px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .logo-grid { grid-template-columns: 1fr; } }

/* Staggered animation delays for logo tiles */
.logo-grid .logo-tile:nth-child(1) { animation-delay: 0s; }
.logo-grid .logo-tile:nth-child(2) { animation-delay: 0.3s; }
.logo-grid .logo-tile:nth-child(3) { animation-delay: 0.6s; }
.logo-grid .logo-tile:nth-child(4) { animation-delay: 0.9s; }
.logo-grid .logo-tile:nth-child(5) { animation-delay: 1.2s; }
.logo-grid .logo-tile:nth-child(6) { animation-delay: 1.5s; }
.logo-grid .logo-tile:nth-child(7) { animation-delay: 1.8s; }
.logo-grid .logo-tile:nth-child(8) { animation-delay: 2.1s; }
.logo-grid .logo-tile:nth-child(9) { animation-delay: 2.4s; }
.logo-grid .logo-tile:nth-child(10) { animation-delay: 2.7s; }
.logo-grid .logo-tile:nth-child(11) { animation-delay: 3s; }
.logo-grid .logo-tile:nth-child(12) { animation-delay: 3.3s; }
.logo-grid .logo-tile:nth-child(13) { animation-delay: 3.6s; }
.logo-grid .logo-tile:nth-child(14) { animation-delay: 3.9s; }
.logo-grid .logo-tile:nth-child(15) { animation-delay: 4.2s; }
.logo-grid .logo-tile:nth-child(16) { animation-delay: 4.5s; }

/* Logo tile animations */
@keyframes subtleGlow {
  0%, 100% { 
    box-shadow: var(--shadow);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 6px 20px rgba(132,1,50,.08), var(--shadow);
    transform: scale(1.01);
  }
}
@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}
@keyframes pulseTile {
  0%, 100% { 
    box-shadow: 0 12px 26px rgba(0,0,0,.12), 0 0 0 3px rgba(132,1,50,0.1);
  }
  50% { 
    box-shadow: 0 12px 26px rgba(0,0,0,.2), 0 0 0 3px rgba(132,1,50,0.2);
  }
}

/* International Donors - Uniform Grid */
.donor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 0;
  perspective: 1200px;
  perspective-origin: center center;
}

.donor-card {
  position: relative;
  background: linear-gradient(135deg, rgba(214, 122, 143, 0.4), rgba(132, 1, 50, 0.25));
  border: 1px solid rgba(132, 1, 50, 0.2);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  box-shadow: 0 4px 12px rgba(132, 1, 50, 0.15);
  transition: opacity 0.6s ease, box-shadow 0.2s ease-out, border-color 0.2s ease-out, background 0.2s ease-out;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(15px);
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

.donor-card.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0) rotateY(0);
}

.donor-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--brand-ink);
}

.donor-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-ink);
  transition: color 0.15s ease;
  line-height: 1.4;
  text-align: center;
}

.donor-card:not(.donor-card-idrc):hover {
  box-shadow: 0 8px 24px rgba(132, 1, 50, 0.25);
  border-color: rgba(132, 1, 50, 0.35);
  background: linear-gradient(135deg, rgba(214, 122, 143, 0.5), rgba(132, 1, 50, 0.3));
  z-index: 5;
}

.donor-card:not(.donor-card-idrc):hover span {
  color: var(--brand-ink);
}

/* IDRC Special Styling - Dark red filled color (subtly more prominent) */
.donor-card-idrc {
  background: linear-gradient(135deg, var(--brand), var(--brand-ink));
  border: 2px solid var(--brand-ink);
  box-shadow: 0 8px 24px rgba(132, 1, 50, 0.35);
  transition: opacity 0.6s ease, box-shadow 0.2s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

.donor-card-idrc a {
  color: #fff;
}

.donor-card-idrc span {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  transition: color 0.15s ease;
}

.donor-card-idrc:hover {
  box-shadow: 0 12px 32px rgba(132, 1, 50, 0.5);
  /* No background or border color change on hover */
}

.donor-card-idrc:hover span,
.donor-card-idrc:hover a {
  color: #fff !important;
}

/* Staggered animation delays for scroll reveal - faster and smoother */
.donor-card:nth-child(1) { transition-delay: 0.02s; }
.donor-card:nth-child(2) { transition-delay: 0.04s; }
.donor-card:nth-child(3) { transition-delay: 0.06s; }
.donor-card:nth-child(4) { transition-delay: 0.08s; }
.donor-card:nth-child(5) { transition-delay: 0.1s; }
.donor-card:nth-child(6) { transition-delay: 0.12s; }
.donor-card:nth-child(7) { transition-delay: 0.14s; }
.donor-card:nth-child(8) { transition-delay: 0.16s; }
.donor-card:nth-child(9) { transition-delay: 0.18s; }
.donor-card:nth-child(10) { transition-delay: 0.2s; }
.donor-card:nth-child(11) { transition-delay: 0.22s; }
.donor-card:nth-child(12) { transition-delay: 0.24s; }
.donor-card:nth-child(13) { transition-delay: 0.26s; }
.donor-card:nth-child(14) { transition-delay: 0.28s; }
.donor-card:nth-child(15) { transition-delay: 0.3s; }
.donor-card:nth-child(16) { transition-delay: 0.32s; }

/* Responsive Donor Grid */
@media (max-width: 900px) {
  .donor-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .donor-card {
    padding: 1rem 0.85rem;
    min-height: 90px;
  }
  
  .donor-card span {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .donor-grid {
    /* Keep 2 columns on mobile for better density */
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem 0;
  }
  
  .donor-card {
    padding: 1rem 0.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .donor-card span {
    font-size: 0.85rem;
    line-height: 1.3;
    /* Ensure text doesn't overflow */
    word-break: break-word; 
  }
  
  .donor-card a {
    padding: 0.25rem;
  }
  
  /* Mobile Focus State (Scroll-driven) */
  .donor-card.mobile-active {
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(132, 1, 50, 0.2);
    background: linear-gradient(135deg, rgba(214, 122, 143, 0.2), rgba(132, 1, 50, 0.1));
  }
  
  #projects .donor-card.mobile-active {
    background: #ffffff;
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(132, 1, 50, 0.15);
  }
  
  #projects .donor-card.mobile-active span {
    color: var(--brand);
  }
}

/* Project Cards - Minimalist Override */
#projects .donor-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#projects .donor-card:hover {
  background: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(132, 1, 50, 0.15);
  transform: translateY(-4px);
}

#projects .donor-card span {
  color: var(--ink);
}

#projects .donor-card:hover span {
  color: var(--brand);
}

/* ESDU Ecosystem - Uniform Grid with Scroll Animations */
.ecosystem-category {
  margin-top: 2rem;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 0;
}

.ecosystem-card {
  position: relative;
  background: linear-gradient(135deg, #fff, var(--tint-rose));
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.ecosystem-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ecosystem-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--brand-ink);
}

.ecosystem-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-ink);
  transition: all 0.3s;
  line-height: 1.4;
  text-align: center;
}

.ecosystem-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(132, 1, 50, 0.2);
  border-color: var(--brand);
  background: linear-gradient(135deg, #fff, var(--brand-soft));
  z-index: 5;
  transition: all 0.3s ease;
}

.ecosystem-card:hover span {
  color: var(--brand-ink);
}

/* Staggered animation delays for scroll reveal */
.ecosystem-card:nth-child(1) { transition-delay: 0.05s; }
.ecosystem-card:nth-child(2) { transition-delay: 0.1s; }
.ecosystem-card:nth-child(3) { transition-delay: 0.15s; }
.ecosystem-card:nth-child(4) { transition-delay: 0.2s; }
.ecosystem-card:nth-child(5) { transition-delay: 0.25s; }
.ecosystem-card:nth-child(6) { transition-delay: 0.3s; }
.ecosystem-card:nth-child(7) { transition-delay: 0.35s; }
.ecosystem-card:nth-child(8) { transition-delay: 0.4s; }
.ecosystem-card:nth-child(9) { transition-delay: 0.45s; }
.ecosystem-card:nth-child(10) { transition-delay: 0.5s; }
.ecosystem-card:nth-child(11) { transition-delay: 0.55s; }
.ecosystem-card:nth-child(12) { transition-delay: 0.6s; }
.ecosystem-card:nth-child(13) { transition-delay: 0.65s; }
.ecosystem-card:nth-child(14) { transition-delay: 0.7s; }
.ecosystem-card:nth-child(15) { transition-delay: 0.75s; }
.ecosystem-card:nth-child(16) { transition-delay: 0.8s; }

/* Responsive Ecosystem Grid */
@media (max-width: 900px) {
  .ecosystem-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  .ecosystem-card {
    padding: 1rem 0.85rem;
    min-height: 80px;
  }
  
  .ecosystem-card span {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .ecosystem-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }
  
  .ecosystem-card {
    padding: 0.9rem 0.75rem;
    min-height: 75px;
  }
  
  .ecosystem-card span {
    font-size: 0.85rem;
  }
}

/* Resources */
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.file-list a { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: .75rem; 
  padding: 1rem 1.25rem; 
  border: 1px solid var(--line); 
  border-radius: .75rem; 
  background: #fff; 
  box-shadow: var(--shadow); 
  text-decoration: none;
  /* Better mobile touch targets */
  min-height: 60px;
  transition: all 0.2s ease;
}
.file-list a:hover,
.file-list a:active { 
  border-color: var(--brand); 
  background: var(--tint-rose);
  transform: translateY(-2px);
}
.file-name { font-weight: 600; color: var(--ink); }
.file-meta { color: var(--muted); font-size: .95rem; }
.hint { margin-top: .75rem; font-size: .95rem; color: var(--muted); line-height: 1.6; }

/* Mobile improvements for resources */
@media (max-width: 640px) {
  .file-list {
    gap: 1rem;
  }
  .file-list a {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }
  .file-name {
    font-size: 1.05rem;
    line-height: 1.4;
  }
  .file-meta {
    font-size: 0.9rem;
  }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 1rem 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1.25rem 0; }
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; }
.footer-links { list-style: none; display: flex; gap: .75rem; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { color: var(--muted); padding: 0.5rem; }
@media (max-width: 720px) { 
  .footer-inner { 
    grid-template-columns: 1fr; 
    text-align: center; 
    justify-items: center; 
    gap: 1.5rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-links a {
    font-size: 1rem;
    padding: 0.75rem;
  }
}

/* Ecosystem Summary Section */
.ecosystem-summary-content {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.ecosystem-pillars,
.ecosystem-initiatives,
.ecosystem-networks,
.ecosystem-keywords {
  background: linear-gradient(180deg, var(--card), var(--tint-rose));
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.ecosystem-pillars h3,
.ecosystem-initiatives h3,
.ecosystem-networks h3,
.ecosystem-keywords h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--brand-ink);
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand);
}

.ecosystem-pillars .pill-list,
.ecosystem-networks .pill-list,
.ecosystem-keywords .pill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .ecosystem-summary-content {
    gap: 1.5rem;
  }
  
  .ecosystem-pillars .pill-list,
  .ecosystem-networks .pill-list,
  .ecosystem-keywords .pill-list {
    grid-template-columns: 1fr;
  }
}

/* Utilities */
[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].visible { opacity: 1; transform: none; }
