/* 
 * NU FAO Centre - Complete Website Redesign 
 * Design System 2026
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Color System */
  --primary-deep: #1E4F7A;
  --primary-dark: #123351;
  --primary-green: #123351;

  --bg-cream: #F2F7FA;
  --bg-sand: #E3ECF3;
  --bg-white: #FFFFFF;

  --accent-coral: #1a5fbd;
  /* Redefined to dark blue site-wide */
  --accent-sage: #A9C9DB;

  --text-dark: #1A242B;
  --text-muted: #5C6E7A;

  /* Typography */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Layout & Measurements */
  --header-height: 80px;
  --radius-card: 20px;
  --radius-btn: 999px;

  /* Shadows & Effects */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 25px 30px -5px rgba(0, 0, 0, 0.12);

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary-deep);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 40px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h4 {
  font-size: 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-dark);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

a {
  color: var(--primary-deep);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--accent-coral);
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 2.5cm;
  box-sizing: border-box;
}

.site-container {
  width: 100%;
  max-width: 1640px;
  margin-inline: auto;
  padding: 0 2.5cm;
  box-sizing: border-box;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* Universal inter-section spacing */
section {
  margin-bottom: 40px;
}

section:last-of-type {
  margin-bottom: 0;
}

.bg-white {
  background-color: var(--bg-white);
}

.bg-cream {
  background-color: var(--bg-cream);
}

.bg-teal {
  background-color: var(--primary-deep);
  color: white;
}

.bg-teal h1,
.bg-teal h2,
.bg-teal h3,
.bg-teal p,
.bg-teal a {
  color: white;
}

.bg-teal p {
  color: rgba(255, 255, 255, 0.85);
}

.bg-teal .section-eyebrow {
  color: var(--accent-sage);
}

/* Eyebrow Labels */
.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: capitalize;
  color: var(--accent-coral);
  margin-bottom: 1rem;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1.5px solid transparent;
}

.btn-primary {
  background-color: #1a5fbd;
  color: white;
  border-color: #1a5fbd;
}

.btn-primary:hover {
  background-color: #1450a3;
  color: white;
  border-color: #1450a3;
  transform: none;
  box-shadow: none;
}

.btn-primary i {
  margin-left: 8px;
}

.btn-primary:hover i {
  transform: none;
}

.btn-secondary {
  background-color: #1a5fbd;
  border-color: #1a5fbd;
  color: white;
}

.btn-secondary:hover {
  background-color: #1450a3;
  border-color: #1450a3;
  color: white;
}

.btn-white {
  background-color: white;
  color: var(--primary-deep);
}

.btn-white:hover {
  background-color: var(--bg-cream);
  transform: translateY(-2px);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-smooth);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  /* Kept for any scroll-specific changes, but background is already white */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logos img {
  height: 48px;
  object-fit: contain;
}

/* Removed display logic for white logos since background is always white */

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-desktop a {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #000 !important;
  position: relative;
  text-decoration: none;
  font-weight: 400 !important;
}

.nav-desktop a:hover {
  color: #000 !important;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-coral);
  transition: width var(--transition-fast);
}

.nav-desktop a:hover::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  background: white;
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 24px;
  color: var(--text-dark) !important;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background-color: var(--bg-cream);
  color: #000 !important;
}

/* Mobile Nav */
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile-btn {
    display: block;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--primary-deep);
  z-index: 1001;
  padding: 80px 40px;
  transition: right var(--transition-smooth);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-drawer a {
  display: block;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 20px;
  font-family: var(--font-display);
}

/* Card System */
.card {
  background: white;
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* Split Layouts */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (min-width: 993px) {
  .split-layout.about-split {
    grid-template-columns: 1fr 1.1fr;
  }
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.split-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
}

.split-image img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.split-layout:hover .split-image img {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-image img {
    height: 400px;
  }

  .split-layout.reverse .split-text {
    order: 2;
  }

  .split-layout.reverse .split-image {
    order: 1;
  }

  /* About section mobile: text first, honeycomb second */
  .split-layout.about-split {
    gap: 0;
  }

  .split-layout.about-split .split-text {
    order: 1;
  }

  .split-layout.about-split .split-text div {
    text-align: justify !important;
  }

  .split-layout.about-split>div:not(.split-text) {
    order: 2;
    margin-top: -20px;
  }
}

/* About section mobile-specific fixes */
@media (max-width: 767px) {
  .about-heading {
    font-size: 1.25rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }

  .about-body {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    text-align: justify !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .split-layout.about-split,
  .split-layout.about-split .split-text {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding: 0 !important;
  }

  #about .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: hidden !important;
  }
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 24px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 60px;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 24px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: capitalize;
  color: var(--accent-sage);
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-credit-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credit-link:hover {
  color: #4da3ff;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: none;
    padding: 0 18px;
  }

  .footer {
    text-align: center;
  }

  .footer .footer-grid>div>div:first-child {
    justify-content: center !important;
  }

  .footer .footer-links li {
    justify-content: center !important;
  }

  .footer .footer-bottom {
    display: flex;
    text-align: center;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 2rem;
}

/* Micro-interactions */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Specific Component: Numbered Cards */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.numbered-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 40px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-smooth);
  color: var(--text-dark);
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

.numbered-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.numbered-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary-deep);
  transition: color var(--transition-smooth);
}

.numbered-card p {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--text-muted);
  transition: color var(--transition-smooth);
}

.mandate-icon {
  font-size: 2.5rem;
  color: var(--primary-deep);
  margin-bottom: 20px;
  transition: transform var(--transition-smooth);
}

.numbered-card:hover .mandate-icon {
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .numbered-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .numbered-grid {
    grid-template-columns: 1fr;
  }
}

/* Floating Mobile CTA */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.floating-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--primary-deep, #0d3d85);
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#backToTop:hover {
  background-color: var(--primary, #1a5fbd);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .floating-cta {
    bottom: 0;
    right: 0;
    width: 100%;
    transform: translateY(100%);
  }

  .floating-cta.is-visible {
    transform: translateY(0);
  }

  .floating-cta .btn {
    width: 100%;
    border-radius: 0;
    padding: 20px;
  }
}

/* Page Hero System */
section.page-hero,
.page-hero {
  background-color: var(--primary-deep);
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 0px !important;
}

.page-hero:not(.hero-redesign) {
  height: 12cm !important;
  min-height: 12cm !important;
  display: flex;
  align-items: center;
  padding: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 50%;
  height: 150%;
  background: radial-gradient(circle, rgba(242, 139, 104, 0.1) 0%, transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.breadcrumb {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--accent-sage);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--accent-sage);
}

.breadcrumb a:hover {
  color: white;
}

/* Large Impact Numbers */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.impact-num {
  font-family: var(--font-body);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--primary-deep);
  margin-bottom: 10px;
  line-height: 1;
}

.impact-label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
}

/* Redesigned About Section */
.about-hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 600px;
}

.about-hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-card-overlay {
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  background-color: var(--primary-deep);
  border-radius: 20px 20px 0 0;
  padding: 20px;
  color: white;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.map-card-overlay img {
  width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: brightness(0.9) contrast(1.2);
}

.map-stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.4;
  gap: 10px;
}

.map-stats>div {
  flex: 1;
}

@media (max-width: 992px) {
  .about-hero-image-wrapper {
    height: auto;
  }

  .map-card-overlay {
    position: relative;
    left: 0;
    right: 0;
    border-radius: var(--radius-card);
    margin-top: -20px;
  }
}

/* Feature Cards (3 Column) */
.feature-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--bg-cream);
  color: var(--primary-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.feature-card h4 {
  color: var(--primary-deep);
  margin-bottom: 16px;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Driving Impact section adjustments */
@media (max-width: 767px) {
  .impact-heading {
    font-size: 1.6rem !important;
    /* Forces it into roughly two lines */
    line-height: 1.3;
    padding: 0 10px;
  }

  .impact-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    /* Reduced space between cards */
  }

  .feature-card {
    padding: 20px;
  }

  .feature-card h4 {
    margin-bottom: 8px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin: 0 auto 16px;
  }
}

/* MOU cards: 1 per row on mobile */
@media (max-width: 767px) {
  .mou-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* Gallery Carousel */
.gallery-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-track img {
  width: 100%;
}

.gallery-nav-btn {
  display: none;
  /* hidden on desktop */
}

@media (max-width: 767px) {
  .gallery-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .gallery-track {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    flex: 1;
  }

  .gallery-track::-webkit-scrollbar {
    display: none;
  }

  .gallery-track img {
    width: 85vw;
    max-width: 320px;
    scroll-snap-align: center;
    border-radius: 16px !important;
  }

  .gallery-nav-btn {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary-deep);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
  }

  .gallery-nav-btn:hover {
    background: var(--accent-coral);
    transform: scale(1.15) translateY(-10px);
  }
}

/* Milestone Banner */
.milestone-banner {
  position: relative;
  display: flex;
  background-color: #020b18;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  overflow: hidden;
  color: white;
  min-height: 350px;
}

.milestone-space {
  background-color: #020817;
  background-image:
    radial-gradient(circle at 78% 26%, rgba(70, 124, 190, 0.2), transparent 18%),
    radial-gradient(circle at 68% 78%, rgba(25, 92, 135, 0.16), transparent 24%),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 72%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1.5px),
    linear-gradient(125deg, #010611 0%, #071b35 52%, #020a19 100%);
  background-size: auto, auto, 180px 180px, 230px 230px, auto;
}

.milestone-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(2, 11, 24, 0.97) 0%, rgba(4, 20, 50, 0.88) 45%, rgba(6, 18, 40, 0.55) 100%);
  z-index: 1;
}

/* Stars Layer */
.star-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.twinkling-star {
  position: absolute;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.4);
  animation: twinkle var(--duration, 3s) infinite ease-in-out;
  animation-delay: var(--delay, 0s);
}

.space-planet {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  box-shadow: inset -8px -6px 12px rgba(0, 0, 0, 0.48), 0 0 16px rgba(111, 185, 224, 0.18);
}

.space-planet-one {
  top: 18%;
  right: 9%;
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 32% 28%, #d8e8dc 0 8%, #719b8b 42%, #284c51 78%);
}

.space-planet-two {
  bottom: 13%;
  left: 46%;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 35% 30%, #f0c99f 0 8%, #af6d5c 48%, #542d3b 82%);
  box-shadow: inset -5px -4px 7px rgba(0, 0, 0, 0.5), 0 0 12px rgba(194, 115, 103, 0.22);
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.shooting-star {
  position: absolute;
  width: 150px;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8));
  animation: shooting var(--duration, 4s) infinite linear;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.shooting-star::before {
  content: '';
  position: absolute;
  right: 0;
  top: -1px;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 1);
}

@keyframes shooting {
  0% {
    transform: translate(0, 0) rotate(-35deg);
    opacity: 1;
  }

  15% {
    transform: translate(-400px, 280px) rotate(-35deg);
    opacity: 0;
  }

  100% {
    transform: translate(-400px, 280px) rotate(-35deg);
    opacity: 0;
  }
}

.milestone-content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 50px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 992px) {
  .milestone-banner::before {
    background: linear-gradient(to bottom, #082441 0%, rgba(8, 36, 65, 0.85) 60%, transparent 100%);
  }
}

/* Mobile: stack milestone text above globe */
@media (max-width: 767px) {
  .milestone-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: auto !important;
    padding: 0 0 0;
  }

  .milestone-content {
    max-width: 100% !important;
    flex: none !important;
    padding: 30px 24px 24px;
    text-align: center;
    order: 1;
  }

  .milestone-content .section-eyebrow {
    justify-content: center;
  }

  /* Globe container */
  .milestone-banner>div:not(.star-layer):not(.milestone-content) {
    order: 2;
    flex: none !important;
    width: 100% !important;
    min-height: 420px !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
  }

  /* Center the globe orbit wrapper */
  .milestone-banner>div:not(.star-layer):not(.milestone-content)>div {
    left: 50% !important;
    top: 50% !important;
    transform: scale(1) !important;
  }

  /* Shrink globe sphere */
  .globe-sphere {
    width: 180px !important;
    height: 180px !important;
  }

  /* Tight orbit radius — cards revolve close to the globe */
  .orbit-pos {
    transform: rotateY(var(--angle)) translateZ(170px) !important;
  }

  /* Orbit card: auto height, proper padding, text wraps cleanly */
  .orbit-card {
    width: 110px !important;
    min-height: 60px !important;
    height: auto !important;
    padding: 10px 8px !important;
    border-radius: 12px !important;
  }

  .impact-num {
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  .impact-label {
    font-size: 0.62rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
    white-space: normal !important;
  }
}


/* Focus Areas Section */
.focus-section {
  position: relative;
  background-color: #f7fbff;
  padding: 80px 0 100px;
  overflow: hidden;
}

.focus-eyebrow {
  font-family: var(--font-display, serif);
  font-size: 2.2rem;
  color: var(--primary-deep);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.focus-eyebrow::before,
.focus-eyebrow::after {
  display: none;
}

.focus-header-main {
  text-align: center;
  color: var(--primary-deep);
  font-family: var(--font-display, serif);
  font-size: 40px;
  margin-bottom: 50px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.focus-card {
  background: white;
  border-radius: 20px;
  padding: 40px 24px 60px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(8, 36, 65, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.focus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(8, 36, 65, 0.1);
}

.focus-icon-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #e6eff7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(8, 36, 65, 0.08);
}

.focus-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.focus-card:hover .focus-icon-wrapper img {
  transform: scale(1.1);
}

.focus-card h5 {
  font-family: var(--font-display, serif);
  color: var(--primary-deep);
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.focus-card h5::after {
  content: '';
  display: none;
  width: 30px;
  height: 2px;
  background-color: var(--accent-coral);
  margin: 16px auto 0;
}

.focus-card-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 Q25,30 50,50 T100,50 L100,100 L0,100 Z" fill="%23e6eff7" opacity="0.5"/></svg>');
  background-size: cover;
  background-position: bottom;
  z-index: 1;
}

@media (max-width: 1200px) {
  .focus-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* CTA Banner Gradient */
.cta-banner-gradient {
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--primary-deep) 100%);
  border-radius: var(--radius-card);
  padding: 50px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  gap: 40px;
  margin-bottom: 60px;
}

.cta-banner-content {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
}

.cta-icon {
  font-size: 3rem;
  opacity: 0.9;
}

.cta-banner-text h3 {
  color: white;
  margin-bottom: 8px;
}

.cta-banner-text p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  max-width: 500px;
}

@media (max-width: 992px) {
  .cta-banner-gradient {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }

  .cta-banner-content {
    flex-direction: column;
  }
}

/* Middle CTA Motion */
.middle-cta-motion {
  position: relative;
  overflow: hidden;
  color: white;
  margin-bottom: 80px;
}

.middle-cta-motion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://www.nufaocen.in/_next/image?url=%2Fhero.jpeg&w=3840&q=75');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: bgZoom 25s infinite alternate ease-in-out;
}

.middle-cta-motion::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

/* Quote Motion Section */
.quote-motion-section {
  position: relative;
  overflow: hidden;
  color: white;
}

.quote-motion-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://picsum.photos/seed/quote_bg/1920/800');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: bgZoom 25s infinite alternate ease-in-out;
}

.quote-motion-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  /* Normal dark fade/overlay */
  z-index: 1;
}

/* Elite Global Network Section */
.elite-network-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  color: white;
  overflow: hidden;
}

.elite-network-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://picsum.photos/seed/ocean/1920/1080');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: bgZoom 25s infinite alternate ease-in-out;
}

.elite-network-section::after {
  content: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
}

@keyframes bgZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

.elite-network-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.elite-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4a9eff;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 24px;
}

.elite-network-content h2 {
  font-family: var(--font-body, sans-serif);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: white;
  margin-bottom: 24px;
}

.elite-network-content h2 span {
  color: #4a9eff;
}

.elite-underline {
  width: 60px;
  height: 4px;
  background-color: #1a5fbd;
  margin-bottom: 30px;
}

.elite-network-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.elite-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-coral {
  background-color: #1a5fbd;
  color: white;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  border: 2px solid #1a5fbd;
  transition: all 0.3s ease;
}

.btn-coral:hover {
  background-color: #1448a0;
  border-color: #1448a0;
  color: white;
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
}

/* Final CTA Motion Section */
.cta-motion-section {
  position: relative;
  overflow: hidden;
  color: white;
}

.cta-motion-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://picsum.photos/seed/cta_bg/1920/1080');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: bgZoom 25s infinite alternate ease-in-out;
}

.cta-motion-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 29, 56, 0.8);
  z-index: 1;
}

.cta-motion-content {
  position: relative;
  z-index: 2;
}

/* Collaborators Hero Motion Section */
.collab-hero-motion {
  background: transparent !important;
}

.collab-hero-motion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://picsum.photos/seed/collab_hero/1920/1080');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: bgZoom 25s infinite alternate ease-in-out;
}

.collab-hero-motion::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

/* Events Hero Motion Section - bg image removed, now uses solid gradient via inline style */
.events-hero-motion {
  background: transparent !important;
}

/* Activities Hero Motion Section */
.activities-hero-motion {
  background: transparent !important;
}

.activities-hero-motion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://picsum.photos/seed/activities_hero/1920/1080');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: bgZoom 25s infinite alternate ease-in-out;
}

.activities-hero-motion::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

/* Reports Hero Motion Section */
.reports-hero-motion {
  background: transparent !important;
}

.reports-hero-motion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://picsum.photos/seed/reports_hero/1920/1080');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: bgZoom 25s infinite alternate ease-in-out;
}

.reports-hero-motion::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

/* Home Hero Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroCrossfade 24s infinite;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85));
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-slide:nth-child(3) {
  animation-delay: 12s;
}

.hero-slide:nth-child(4) {
  animation-delay: 18s;
}

@keyframes heroCrossfade {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  5% {
    opacity: 1;
    transform: scale(1.02);
  }

  25% {
    opacity: 1;
    transform: scale(1.1);
  }

  30% {
    opacity: 0;
    transform: scale(1.12);
  }

  100% {
    opacity: 0;
  }
}

/* Orbit Animation System (3D Horizontal) */
.orbit-system {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 700px;
  overflow: hidden;
  padding: 60px 0;
  background-color: var(--bg-cream);
  perspective: 1200px;
  /* Enables 3D space */
}

.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  animation: orbit-spin-y 90s linear infinite;
}

.orbit-center-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
}

.orbit-center {
  position: absolute;
  top: 0;
  left: 0;
  animation: orbit-counter-spin-y 90s linear infinite;
  /* Keeps the sphere facing forward so it doesn't flatten */
}

.globe-sphere {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background-image: url('../img/globe-map.png');
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: 0 center;
  /* 3D shading effect on the sphere */
  box-shadow: inset -40px -20px 60px rgba(0, 0, 0, 0.6), inset 10px 10px 30px rgba(255, 255, 255, 0.3), 0 0 60px rgba(14, 107, 95, 0.2);
  /* Spin the texture horizontally to simulate real world rotation */
  animation: globe-texture-spin 90s linear infinite;
}

@keyframes globe-texture-spin {
  from {
    background-position: 0 center;
  }

  to {
    background-position: -631.7px center;
  }
}

.orbit-pos {
  position: absolute;
  transform: rotateY(var(--angle)) translateZ(400px);
  transform-style: preserve-3d;
}

.orbit-counter {
  transform: rotateY(calc(-1 * var(--angle)));
  transform-style: preserve-3d;
}

.orbit-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-bottom: 4px solid var(--accent-coral);
  animation: orbit-counter-spin-y 30s linear infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 10px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-width 0.3s ease, padding-bottom 0.3s ease;
}

.orbit-card:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 16px 48px rgba(14, 107, 95, 0.25);
  border-bottom-width: 8px;
  padding-bottom: 16px;
}

/* Pause animations on hover */
.orbit-system:hover .orbit-track,
.orbit-system:hover .orbit-card,
.orbit-system:hover .orbit-center img {
  animation-play-state: paused !important;
}

.orbit-card .impact-num {
  font-size: 1.5rem;
  margin-bottom: 2px;
  color: var(--primary-deep);
  font-weight: 700;
  line-height: 1;
}

.orbit-card .impact-label {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
  letter-spacing: 0.05em;
  text-align: center;
}

@keyframes orbit-spin-y {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

@keyframes orbit-counter-spin-y {
  from {
    transform: translate(-50%, -50%) rotateY(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotateY(-360deg);
  }
}

/* Orbit Responsiveness */
@media (max-width: 768px) {
  .orbit-system {
    min-height: 500px;
    perspective: 800px;
  }

  .orbit-center img {
    width: 180px;
  }

  .orbit-pos {
    transform: rotateY(var(--angle)) translateZ(160px);
  }

  .orbit-card {
    width: 140px;
    margin-left: -70px;
    margin-top: -40px;
    padding: 12px;
  }

  .orbit-card .impact-num {
    font-size: 2rem;
    margin-bottom: 4px;
  }

  .orbit-card .impact-label {
    font-size: 0.65rem;
  }
}

@media (min-width: 769px) {
  .orbit-pos {
    transform: rotateY(var(--angle)) translateZ(400px);
  }
}

/* 3D Marquee System */
.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: scroll3D 20s linear infinite;
  transform-style: preserve-3d;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll3D {
  0% {
    transform: rotateY(8deg) translateX(0);
  }

  100% {
    transform: rotateY(8deg) translateX(calc(-50% - 16px));
  }
}

.marquee-card {
  padding: 30px 20px;
  width: 250px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  transform: translateZ(0);
}

.marquee-card:hover {
  transform: translateZ(50px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.marquee-card img {
  height: 60px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.marquee-card p {
  font-size: 0.85rem;
  margin: 0;
  font-weight: 600;
}

/* Mobile Hero Banner Overrides */
@media (max-width: 768px) {
  .page-hero:not(.hero-redesign) {
    margin: 16px;
    border-radius: 20px;
    overflow: hidden;
    height: 12cm !important;
    min-height: 12cm !important;
    padding: 0 !important;
  }

  .page-hero-content h1 {
    font-size: 2.2rem !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    border-radius: 50px;
  }

  background-image: url('https://picsum.photos/seed/reports_hero/1920/1080');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: bgZoom 25s infinite alternate ease-in-out;
}

.reports-hero-motion::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

/* Home Hero Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroCrossfade 24s infinite;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85));
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-slide:nth-child(3) {
  animation-delay: 12s;
}

.hero-slide:nth-child(4) {
  animation-delay: 18s;
}

@keyframes heroCrossfade {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  5% {
    opacity: 1;
    transform: scale(1.02);
  }

  25% {
    opacity: 1;
    transform: scale(1.1);
  }

  30% {
    opacity: 0;
    transform: scale(1.12);
  }

  100% {
    opacity: 0;
  }
}

/* Orbit Animation System (3D Horizontal) */
.orbit-system {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 700px;
  overflow: hidden;
  padding: 60px 0;
  background-color: var(--bg-cream);
  perspective: 1200px;
  /* Enables 3D space */
}

.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  animation: orbit-spin-y 30s linear infinite;
}

.orbit-center-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
}

.orbit-center {
  position: absolute;
  top: 0;
  left: 0;
  animation: orbit-counter-spin-y 30s linear infinite;
  /* Keeps the sphere facing forward so it doesn't flatten */
}

.globe-sphere {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background-image: url('../img/globe-map.png');
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: 0 center;
  /* 3D shading effect on the sphere */
  box-shadow: inset -40px -20px 60px rgba(0, 0, 0, 0.6), inset 10px 10px 30px rgba(255, 255, 255, 0.3), 0 0 60px rgba(14, 107, 95, 0.2);
  /* Spin the texture horizontally to simulate real world rotation */
  animation: globe-texture-spin 30s linear infinite;
}

@keyframes globe-texture-spin {
  from {
    background-position: 0 center;
  }

  to {
    background-position: -631.7px center;
  }
}

.orbit-pos {
  position: absolute;
  transform: rotateY(var(--angle)) translateZ(400px);
  transform-style: preserve-3d;
}

.orbit-counter {
  transform: rotateY(calc(-1 * var(--angle)));
  transform-style: preserve-3d;
}

.orbit-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-bottom: 4px solid var(--accent-coral);
  animation: orbit-counter-spin-y 30s linear infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 10px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-width 0.3s ease, padding-bottom 0.3s ease;
}

.orbit-card:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 16px 48px rgba(14, 107, 95, 0.25);
  border-bottom-width: 8px;
  padding-bottom: 16px;
}

/* Pause animations on hover */
.orbit-system:hover .orbit-track,
.orbit-system:hover .orbit-card,
.orbit-system:hover .orbit-center img {
  animation-play-state: paused !important;
}

.orbit-card .impact-num {
  font-size: 1.5rem;
  margin-bottom: 2px;
  color: var(--primary-deep);
  font-weight: 700;
  line-height: 1;
}

.orbit-card .impact-label {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
  letter-spacing: 0.05em;
  text-align: center;
}

@keyframes orbit-spin-y {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

@keyframes orbit-counter-spin-y {
  from {
    transform: translate(-50%, -50%) rotateY(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotateY(-360deg);
  }
}

/* Orbit Responsiveness & Pins */
@media (max-width: 768px) {
  .orbit-system {
    min-height: 480px;
    perspective: 1000px;
  }

  .globe-sphere {
    width: 200px;
    height: 200px;
    box-shadow: inset -20px -10px 40px rgba(0, 0, 0, 0.6), inset 5px 5px 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(14, 107, 95, 0.3);
  }

  .orbit-pos {
    transform: rotateY(var(--angle)) translateZ(105px);
  }
}

@media (min-width: 769px) {
  .orbit-pos {
    transform: rotateY(var(--angle)) translateZ(195px);
  }
}

.orbit-pin {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.orbit-pin:hover {
  transform: scale(1.1);
}

/* 3D Marquee System */
.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: scroll3D 20s linear infinite;
  transform-style: preserve-3d;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll3D {
  0% {
    transform: rotateY(8deg) translateX(0);
  }

  100% {
    transform: rotateY(8deg) translateX(calc(-50% - 16px));
  }
}

.marquee-card {
  padding: 30px 20px;
  width: 250px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  transform: translateZ(0);
}

.marquee-card:hover {
  transform: translateZ(50px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.marquee-card img {
  height: 60px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.marquee-card p {
  font-size: 0.85rem;
  margin: 0;
  font-weight: 600;
}

/* Mobile Hero Banner Overrides */
@media (max-width: 768px) {
  .page-hero:not(.hero-redesign) {
    margin: 16px;
    border-radius: 20px;
    overflow: hidden;
    height: 12cm !important;
    min-height: 12cm !important;
    padding: 0 !important;
  }

  .page-hero-content h1 {
    font-size: 2.2rem !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    border-radius: 50px;
  }
}




/* /* ===== HONEYCOMB FOCUS AREAS ===== */
.honeycomb-container {
  transform: scale(0.85);
  transform-origin: center center;
}

margin-left: -15px;
/* Pull slightly left to center it properly if it overflows */

.honeycomb-col {
  width: 140px;
  height: 160px;
  margin: 0 -20px;
  z-index: 1;
}

.honeycomb-col:nth-child(2) {
  z-index: 2;
}

.honeycomb-wrapper {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
  margin: 10px 0;
}

@keyframes honeycombPulse {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(0.95);
  }

  70% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1.06);
  }
}

.honeycomb-wrapper:hover {
  animation: honeycombPulse 0.7s ease-in-out forwards;
  z-index: 10;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(14, 107, 95, 0.35));
}

.honeycomb-cell {
  width: 230px;
  height: 168px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 42px;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.honeycomb-wrapper:hover .honeycomb-cell {
  background-color: var(--primary-deep);
}

.honeycomb-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.35s ease;
}

.honeycomb-wrapper:hover .honeycomb-icon {
  transform: scale(1.25);
  color: #ffffff !important;
}

.honeycomb-title {
  color: var(--primary-deep);
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.3;
  margin: 0;
  transition: color 0.35s ease;
}

.honeycomb-wrapper:hover .honeycomb-title {
  color: #ffffff;
}

.honeycomb-center .honeycomb-title {
  font-size: 1.5rem;
  line-height: 1.2;
}

/* Tablet */
@media (max-width: 992px) {
  .honeycomb-cell {
    width: 140px;
    height: 162px;
    padding: 0 22px;
  }

  .honeycomb-col {
    margin: 0 -10px;
  }

  .honeycomb-wrapper {
    margin: 8px 0;
  }

  .honeycomb-title {
    font-size: 0.75rem;
  }

  .honeycomb-icon {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }

  .honeycomb-center .honeycomb-title {
    font-size: 1.2rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .section {
    padding: 50px 0 !important;
  }

  section {
    margin-bottom: 0 !important;
  }

  .split-layout>div {
    min-width: 0;
  }

  .honeycomb-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, 70px);
    width: 300px;
    max-width: calc(100vw - 60px);
    margin: 0 auto;
    transform: none;
    transform-origin: center center;
    filter: drop-shadow(0 12px 32px rgba(14, 107, 95, 0.45));
  }

  .honeycomb-cell {
    width: calc(33.333vw + 10px);
    height: auto;
    aspect-ratio: 7 / 8;
    padding: 0 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f0fff8 100%);
  }

  .honeycomb-wrapper:hover .honeycomb-cell {
    background: linear-gradient(135deg, var(--primary-deep) 0%, #1a7a6e 100%);
  }

  .honeycomb-col {
    margin: 0 -8px;
  }

  .honeycomb-wrapper {
    margin: 3px 0;
  }

  .honeycomb-title {
    font-size: 0.72rem;
  }

  .honeycomb-icon {
    font-size: 1.4rem;
    margin-bottom: 5px;
  }

  .honeycomb-center .honeycomb-title {
    font-size: 1.05rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .honeycomb-container {
    transform: scale(0.72);
    transform-origin: center center;
    margin-left: -20px;
  }
}

/* =========================================
   HERO REDESIGN 
   ========================================= */
.page-hero.hero-redesign {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  /* Center vertically on desktop */
  padding: 120px 0 80px 0;
  overflow: hidden;
}

.page-hero.hero-redesign .container {
  width: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(2, 11, 24, 0.4) 0%, rgba(30, 79, 122, 0.25) 100%);
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-overlay {
    background: rgba(0, 0, 0, 0.2);
    /* Less blue, just a neutral dark overlay on desktop */
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 900px;
}

.hero-heading {
  color: white;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-content-wrapper {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-heading {
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    margin-bottom: 20px;
  }

  .hero-heading-line {
    white-space: nowrap;
  }
}

.hero-heading .text-accent {
  color: var(--accent-sage);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 760px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  background-color: #1a5fbd;
  color: white;
  border: 2px solid #1a5fbd;
}

.btn-hero-outline:hover {
  background-color: #1a5fbd;
  color: white;
  border: 2px solid #1a5fbd;
}

/* Responsive Hero Adjustments */
@media (max-width: 767px) {
  .page-hero.hero-redesign {
    min-height: 85vh;
    padding-top: 140px;
    /* Account for mobile header */
    align-items: flex-start;
    /* Push content up slightly on mobile so it doesn't feel squashed by browser bars */
  }

  .hero-content-wrapper {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

}

.honeycomb-wrapper {
  margin: 8px 0;
}

.honeycomb-title {
  font-size: 0.75rem;
}

.honeycomb-icon {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.honeycomb-center .honeycomb-title {
  font-size: 1.2rem;
}
}

/* Mobile */
@media (max-width: 767px) {
  #partner-institutions {
    padding-top: 0 !important;
  }

  .global-network-heading {
    font-size: 20px !important;
    letter-spacing: -0.02em !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
  }

  section {
    margin-bottom: 0 !important;
  }

  .split-layout>div {
    min-width: 0;
  }

  .honeycomb-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, 70px);
    width: 300px;
    max-width: calc(100vw - 60px);
    margin: 0 auto;
    transform: none;
    transform-origin: center center;
    filter: drop-shadow(0 12px 32px rgba(14, 107, 95, 0.45));
  }

  .honeycomb-cell {
    width: calc(33.333vw + 10px);
    height: auto;
    aspect-ratio: 7 / 8;
    padding: 0 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f0fff8 100%);
  }

  .honeycomb-wrapper:hover .honeycomb-cell {
    background: linear-gradient(135deg, var(--primary-deep) 0%, #1a7a6e 100%);
  }

  .honeycomb-col {
    margin: 0 -8px;
  }

  .honeycomb-wrapper {
    margin: 3px 0;
  }

  .honeycomb-title {
    font-size: 0.72rem;
  }

  .honeycomb-icon {
    font-size: 1.4rem;
    margin-bottom: 5px;
  }

  .honeycomb-center .honeycomb-title {
    font-size: 1.05rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .honeycomb-container {
    transform: scale(0.72);
    transform-origin: center center;
    margin-left: -20px;
  }
}

/* =========================================
   HERO REDESIGN 
   ========================================= */
.page-hero.hero-redesign {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  /* Center vertically on desktop */
  padding: 120px 0 80px 0;
  overflow: hidden;
}

.page-hero.hero-redesign .container {
  width: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(2, 11, 24, 0.55) 0%, rgba(30, 79, 122, 0.35) 100%);
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    /* Less blue, just a neutral dark overlay on desktop */
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 900px;
}

.hero-heading {
  color: white;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-content-wrapper {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-heading {
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    margin-bottom: calc(24px + 1cm);
  }

  .hero-heading-line {
    white-space: nowrap;
  }
}

.hero-heading .text-accent {
  color: var(--accent-sage);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 760px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  background-color: var(--primary-deep);
  color: white;
  border: 2px solid var(--primary-deep);
}

/* Responsive Hero Adjustments */
@media (max-width: 767px) {
  .page-hero.hero-redesign {
    min-height: 85vh;
    padding-top: 140px;
    /* Account for mobile header */
    align-items: flex-start;
    /* Push content up slightly on mobile so it doesn't feel squashed by browser bars */
  }

  .hero-content-wrapper {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* Flat-topped Honeycomb Grid Layout */
.honeycomb-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px auto;
  max-width: 1000px;
}

.honeycomb-col {
  display: flex;
  flex-direction: column;
  margin: 0 -22px;
  z-index: 1;
}

.honeycomb-col:nth-child(2) {
  z-index: 2;
  /* Center column slightly above so shadows layer well */
}

.honeycomb-wrapper {
  filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.06));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: 8px 0;
}

.honeycomb-wrapper:hover {
  transform: scale(1.15) translateY(-10px);
  z-index: 10;
  position: relative;
}

.honeycomb-cell {
  width: 250px;
  height: 216px;
  /* 250 * 0.866 */
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 40px;
}

.honeycomb-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.honeycomb-title {
  color: var(--primary-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  margin: 0;
}

.honeycomb-center .honeycomb-title {
  font-size: 1.4rem;
}

/* Mobile Responsive */
@media (max-width: 800px) {
  .honeycomb-wrapper {
    margin: 8px 0;
  }

  .honeycomb-cell {
    width: 200px;
    height: 173px;
    padding: 0 20px;
  }

  .honeycomb-col {
    margin: 0 -25px;
    /* (200 * 0.125) = 25px */
  }

  .honeycomb-title {
    font-size: 0.85rem;
  }

  .honeycomb-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
}

@media (max-width: 600px) {
  .honeycomb-container {
    flex-direction: row;
    transform: scale(0.8);
    transform-origin: center;
  }

  .honeycomb-wrapper {
    margin: 6px 0;
  }

  .honeycomb-cell {
    width: 140px;
    height: 121px;
    /* 140 * 0.866 */
    padding: 0 10px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    border-radius: 0;
  }

  .honeycomb-col {
    margin: 0 -12px;
    flex-direction: column;
  }

  .honeycomb-title {
    font-size: 0.65rem;
  }

  .honeycomb-center .honeycomb-title {
    font-size: 0.9rem;
  }

  .honeycomb-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }
}
}

/* Desktop Only Adjustments */
@media (min-width: 768px) {
  .collaborators-grid .card>div:first-child {
    margin-top: 16px !important;
    margin-bottom: 36px !important;
  }
}

/* Mobile Hero Heading Adjustments */
@media (max-width: 767px) {
  .hero-heading {
    font-size: 2.1rem !important;
    line-height: 1.15 !important;
  }
}

/* Desktop About Section Alignment */
@media (min-width: 993px) {
  .split-layout.about-split {
    align-items: flex-start !important;
  }

  .split-layout.about-split .split-text {
    justify-content: flex-start !important;
    padding-top: 12px;
  }
}

/* Display Utility Classes */
.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

@media (min-width: 768px) {
  .d-md-block {
    display: block !important;
  }

  .d-md-inline {
    display: inline !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  .d-md-none {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }

  .d-lg-inline {
    display: inline !important;
  }

  .d-lg-flex {
    display: flex !important;
  }

  .d-lg-none {
    display: none !important;
  }
}

/* Desktop Honeycomb Fade Background */
@media (min-width: 993px) {
  .honeycomb-cell {
    background: linear-gradient(145deg, #ffffff 0%, #e2f1f8 100%) !important;
  }

  .honeycomb-wrapper:hover .honeycomb-cell {
    background: linear-gradient(145deg, var(--primary-deep) 0%, #1a5fbd 100%) !important;
  }
}

left: 50%;
transform: translateX(-50%) translateY(10px) scale(0.9);
width: 260px;
background: white;
border-radius: 12px;
padding: 12px;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
opacity: 0;
visibility: hidden;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
pointer-events: none;
z-index: 100;
display: flex;
flex-direction: column;
gap: 10px;
}

.globe-tooltip img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}

.tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.tooltip-country {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-coral);
  text-transform: capitalize;
  letter-spacing: 0.05em;
}

.tooltip-title {
  font-size: 0.9rem;
  font-family: 'Google Sans', sans-serif;
  z-index: 2;
  /* Center column slightly above so shadows layer well */
}

.honeycomb-wrapper {
  filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.06));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
  margin: 8px 0;
}

.honeycomb-wrapper:hover {
  transform: scale(1.20) translateY(-12px);
  filter: drop-shadow(0px 15px 30px rgba(0, 0, 0, 0.2));
  z-index: 10;
  position: relative;
}

.honeycomb-cell {
  width: 250px;
  height: 216px;
  /* 250 * 0.866 */
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 40px;
}

.honeycomb-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.honeycomb-title {
  color: var(--primary-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  margin: 0;
}

.honeycomb-center .honeycomb-title {
  font-size: 1.4rem;
}

/* Mobile Responsive */
@media (max-width: 800px) {
  .honeycomb-wrapper {
    margin: 8px 0;
  }

  .honeycomb-cell {
    width: 200px;
    height: 173px;
    padding: 0 20px;
  }

  .honeycomb-col {
    margin: 0 -25px;
    /* (200 * 0.125) = 25px */
  }

  .honeycomb-title {
    font-size: 0.85rem;
  }

  .honeycomb-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
}

@media (max-width: 600px) {
  .honeycomb-container {
    flex-direction: row;
    transform: scale(0.8);
    transform-origin: center;
  }

  .honeycomb-wrapper {
    margin: 6px 0;
  }

  .honeycomb-cell {
    width: 140px;
    height: 121px;
    /* 140 * 0.866 */
    padding: 0 10px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    border-radius: 0;
  }

  .honeycomb-col {
    margin: 0 -12px;
    flex-direction: column;
  }

  .honeycomb-title {
    font-size: 0.65rem;
  }

  .honeycomb-center .honeycomb-title {
    font-size: 0.9rem;
  }

  .honeycomb-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }
}
}

/* Desktop Only Adjustments */
@media (min-width: 768px) {
  .collaborators-grid .card>div:first-child {
    margin-top: 16px !important;
    margin-bottom: 36px !important;
  }
}

/* Mobile Hero Heading Adjustments */
@media (max-width: 767px) {
  .hero-heading {
    font-size: 2.1rem !important;
    line-height: 1.15 !important;
  }
}

/* Desktop About Section Alignment */
@media (min-width: 993px) {
  .split-layout.about-split {
    align-items: flex-start !important;
  }

  .split-layout.about-split .split-text {
    justify-content: flex-start !important;
    padding-top: 12px;
  }
}

/* Display Utility Classes */
.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

@media (min-width: 768px) {
  .d-md-block {
    display: block !important;
  }

  .d-md-inline {
    display: inline !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  .d-md-none {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }

  .d-lg-inline {
    display: inline !important;
  }

  .d-lg-flex {
    display: flex !important;
  }

  .d-lg-none {
    display: none !important;
  }
}

/* Desktop Honeycomb Fade Background */
@media (min-width: 993px) {
  .honeycomb-cell {
    background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 100%) !important;
  }

  .honeycomb-wrapper:hover .honeycomb-cell {
    background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 100%) !important;
  }
}



/* Remove honeycomb blue hover */
.honeycomb-wrapper:hover .honeycomb-cell {
  background-color: #ffffff !important;
}

.honeycomb-wrapper:hover .honeycomb-title {
  color: var(--primary-deep) !important;
}

/* 2026 mobile experience refinements */
.home-gallery-controls {
  display: none;
}

@media (max-width: 991px) {
  body.menu-open {
    overflow: hidden;
  }

  .mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 320px;
    max-width: 100vw;
    height: 100dvh;
    padding: 80px 24px 32px;
    background: white;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(.2, .8, .2, 1), opacity 0.25s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    z-index: 5000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  }

  .mobile-drawer.open {
    transform: translateX(0);
    opacity: 1;
  }

  .mobile-drawer-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f4f6f8;
    color: #333;
    display: grid;
    place-items: center;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .mobile-drawer a {
    width: 100%;
    margin: 0;
    padding: 11px 16px;
    border-bottom: 1px solid #eaeaea;
    color: #333;
    font-size: clamp(1rem, 5vw, 1.28rem) !important;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
  }
}

@media (max-width: 767px) {

  .page-hero.hero-redesign {
    min-height: calc(100svh - 72px);
    padding: 122px 0 58px;
    align-items: center;
    margin-bottom: 0;
    background: #0a3154;
  }

  .page-hero.hero-redesign .hero-overlay {
    background: linear-gradient(180deg, rgba(4, 24, 44, .2) 0%, rgba(5, 35, 62, .45) 55%, rgba(5, 28, 50, .65) 100%);
  }

  .page-hero.hero-redesign .hero-content-wrapper {
    padding-inline: 22px;
  }

  .page-hero.hero-redesign .hero-heading {
    max-width: 340px;
    margin: 0 auto 20px;
    font-size: clamp(2rem, 9.2vw, 2.65rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em;
    text-wrap: balance;
  }

  .page-hero.hero-redesign .hero-subtitle {
    max-width: 345px;
    font-size: .94rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .9);
  }

  .page-hero.hero-redesign .hero-buttons .btn {
    min-width: 220px;
  }

  #mandate {
    padding-top: 54px !important;
  }

  #mandate .mandate-heading {
    font-size: 1.7rem !important;
    margin-bottom: 10px !important;
  }

  #mandate .mandate-subtitle {
    max-width: 330px;
    margin: 0 auto 28px !important;
    font-size: .96rem !important;
    line-height: 1.5;
    text-wrap: balance;
  }

  #focus-areas .container>div {
    justify-content: center;
  }

  #focus-areas .focus-copy {
    flex-basis: 100% !important;
    max-width: 360px !important;
    text-align: center;
    margin-inline: auto;
  }

  #focus-areas .focus-copy h2 {
    font-size: 2.35rem !important;
  }

  #focus-areas .focus-copy>div {
    justify-content: center;
    text-align: left;
  }

  #focus-areas .fa-hex {
    width: 104px;
    height: 90px;
  }

  #focus-areas .fa-hex img {
    width: 39px;
    height: 39px;
  }

  #focus-areas .fa-hex-label {
    font-size: .62rem;
  }

  #focus-areas .fa-hex-center .fa-hex-label {
    font-size: .82rem;
  }

  #focus-areas .fa-col-staggered {
    margin-top: 51px;
  }

  #focus-areas .fa-col-shifted {
    margin-left: -21px;
  }

  .home-gallery-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
  }

  .home-gallery-grid img {
    display: block !important;
  }

  .home-gallery-controls {
    display: none !important;
  }

  .gallery-nav-button {
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 1.5px solid var(--primary-deep);
    border-radius: 999px;
    background: white;
    color: var(--primary-deep);
    font: 600 .9rem var(--font-body);
  }

  .gallery-counter {
    min-width: 42px;
    text-align: center;
    color: var(--text-muted);
    font-size: .82rem;
  }

  .page-hero-content>p,
  .page-hero .section-subtitle,
  .page-hero .hero-subtitle {
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(.9rem, 4vw, 1rem) !important;
    line-height: 1.5 !important;
    text-wrap: balance;
  }

  .page-hero-content h1 {
    font-size: clamp(1.8rem, 8vw, 2.35rem) !important;
    text-wrap: balance;
  }
}

@keyframes galleryMobileIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Tablet Layout Adjustments */
@media (max-width: 1200px) {

  #global-network .collaborators-grid,
  #mous-home .mou-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 991px) {

  #global-network .collaborators-grid,
  #mous-home .mou-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Final mobile layout normalization after device-width QA */
@media (max-width: 767px) {
  :root {
    --header-height: 76px;
  }

  body {
    padding-bottom: 0;
  }

  .container {
    padding-inline: 18px;
  }

  .section {
    padding-block: 56px;
  }

  .section .mb-5 {
    margin-bottom: 36px;
  }

  .section h2 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
    line-height: 1.18;
    text-wrap: balance;
  }

  .section p {
    line-height: 1.65;
  }

  .header {
    height: var(--header-height);
  }

  .header-container {
    padding-inline: 18px;
  }

  .header-logos {
    gap: 10px;
    min-width: 0;
  }

  .header-logos img {
    max-height: 38px;
    max-width: 122px;
    width: auto;
  }

  .nav-mobile-btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
  }

  #about {
    padding-top: 44px !important;
  }

  #about .about-heading {
    white-space: normal !important;
    overflow: visible !important;
    font-size: 1.9rem !important;
  }

  #about .about-images {
    min-height: 230px !important;
    margin-top: 4px !important;
  }

  #about .about-body {
    font-size: .94rem !important;
    line-height: 1.72 !important;
  }

  #about .about-body>p {
    text-indent: 0 !important;
    text-align: left !important;
  }

  #about .about-body>div:last-of-type {
    padding: 22px 20px !important;
    margin-bottom: 10px !important;
  }

  #mandate .numbered-grid,
  .section.bg-white .numbered-grid {
    gap: 18px;
  }

  #mandate .numbered-card {
    min-height: 245px;
    padding: 30px 22px;
  }

  #mandate .numbered-card h3 {
    font-size: 1.25rem;
  }

  section#focus-areas.section {
    background: linear-gradient(to right, rgba(244, 249, 253, 0.95) 0%, rgba(232, 244, 253, 0.8) 100%), url(../img/hero-slide-2.jpg) center / cover no-repeat;
    margin-top: 0px;
    padding-top: clamp(0px, 1vw, 0px);
    padding-bottom: clamp(0px, 1vw, 80px);
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
  }

  #focus-areas .focus-copy p {
    text-align: center;
  }

  #global-network {
    padding-top: 52px !important;
  }

  #global-network .collaborators-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding-top: 10px !important;
    padding: 15px !important;
  }

  #global-network .collaborators-grid .card {
    padding: 22px 20px !important;
    border-radius: 14px !important;
  }

  #global-network .collaborators-grid .card>div:first-child {
    margin-bottom: 18px !important;
  }

  .elite-network-section {
    min-height: auto;
    padding: 58px 0 !important;
  }

  .elite-network-content {
    padding-inline: 4px;
    text-align: center;
  }

  .elite-network-content h2 {
    font-size: 1.9rem !important;
  }

  .elite-network-content p {
    font-size: .95rem;
  }

  .elite-buttons {
    display: grid;
    gap: 12px;
  }

  .elite-buttons a {
    width: 100%;
    justify-content: center;
  }

  .section.bg-white .numbered-grid .card {
    min-width: 0;
  }

  .section.bg-white .numbered-grid .card>div:last-child {
    padding: 24px 20px !important;
  }

  .section.bg-white .numbered-grid .card img {
    height: 200px !important;
  }

  /* Centre-align the "View Activity" button wrapper inside activity cards on mobile */
  .section.bg-white .numbered-grid .card>div:last-child>div:last-child,
  #activityGrid .card>div:last-child>div:last-child {
    justify-content: center !important;
  }

  #activityGrid .card .home-view-button {
    width: auto !important;
  }

  #mous-home {
    padding-block: 52px !important;
  }

  #mous-home .mou-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  #mous-home .mou-cards-grid>div {
    min-width: 0;
  }

  #mous-home .mou-cards-grid>div>div:first-child {
    min-height: 180px !important;
  }

  .home-gallery-grid img {
    border-radius: 14px !important;
  }

  #contact {
    min-height: auto !important;
  }

  #contact .container>div {
    padding-block: 48px !important;
  }

  .footer {
    padding: 56px 0 88px;
  }

  .footer-grid {
    gap: 34px;
    margin-bottom: 36px;
  }

  .floating-cta {
    left: 16px;
    right: 78px;
    bottom: 14px;
    width: auto;
    transform: translateY(90px);
    z-index: 998;
  }

  .floating-cta.is-visible {
    transform: translateY(0);
  }

  .floating-cta .btn {
    min-height: 48px;
    width: 100%;
    padding: 11px 20px;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(9, 45, 78, .28) !important;
  }

  #backToTop,
  .back-to-top,
  #goTopBtn {
    display: none !important;
  }


}

/* Mobile-first production overrides: intentionally last so inline desktop sizing
   cannot cause overflow on phones. Desktop (768px+) remains unchanged. */
@media (max-width: 767px) {
  html {
    overflow-x: hidden;
    scroll-padding-top: 72px;
  }

  body {
    width: 100%;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
  }

  *,
  *::before,
  *::after {
    min-width: 0;
  }

  img,
  svg,
  video,
  canvas,
  iframe {
    max-width: 100%;
  }

  button,
  a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .site-container,
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Compact two-logo header and stable off-canvas navigation. */
  .header {
    height: 68px !important;
    min-height: 68px;
  }

  .header-container {
    height: 68px;
    padding: 8px 14px !important;
    gap: 8px !important;
    flex-wrap: nowrap;
  }

  .logos-wrapper {
    flex: 1 1 auto;
    gap: 7px !important;
    overflow: hidden;
  }

  .header-logo-1 {
    width: auto !important;
    height: 30px !important;
    max-width: 94px !important;
  }

  .header-logo-2 {
    width: auto !important;
    height: 34px !important;
    max-width: 104px !important;
  }

  .header-divider {
    height: 25px !important;
    margin: 0 1px !important;
  }

  .nav-mobile-btn {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    font-size: 1.15rem !important;
  }

  .mobile-drawer {
    width: min(88vw, 340px) !important;
    max-width: 340px !important;
    padding: 70px 18px 24px !important;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-drawer a {
    padding: 11px 12px !important;
    font-size: .98rem !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }

  .mobile-drawer-close {
    width: 42px !important;
    height: 42px !important;
    top: 14px !important;
    right: 14px !important;
  }

  /* Home: About copy followed by a full-width, proportional honeycomb. */
  #about {
    margin-top: 0 !important;
    padding: 42px 0 24px !important;
  }

  #about .site-container:first-child>div {
    margin-bottom: 22px !important;
  }

  #about .site-container:first-child h2 {
    white-space: nowrap !important;
    font-size: clamp(1.48rem, 7.3vw, 1.9rem) !important;
    line-height: 1.15 !important;
  }

  #about .site-container:first-child p {
    max-width: 310px;
    font-size: .93rem !important;
    line-height: 1.45 !important;
    text-wrap: balance;
  }

  #about .site-container:nth-of-type(2) {
    margin-top: 0 !important;
    padding-inline: 0 !important;
  }

  #about .about-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    width: 100% !important;
  }

  #about .about-content-left {
    padding-inline: 16px !important;
    font-size: .94rem !important;
    line-height: 1.72 !important;
    text-align: justify !important;
  }

  #about .about-content-left p {
    margin-bottom: 16px !important;
    text-indent: 0 !important;
    overflow-wrap: break-word;
  }

  #about .about-content-right {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
    overflow: hidden;
  }

  #about .about-hex-container {
    width: 391px !important;
    height: 408px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  /* Mandate is a subheading; compact two-card rows on all phone widths. */
  #mandate {
    padding: 38px 0 46px !important;
  }

  #mandate .mandate-heading {
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
  }

  #mandate .mandate-subtitle {
    max-width: 330px !important;
    font-size: .88rem !important;
    line-height: 1.45 !important;
    margin-bottom: 24px !important;
  }

  #mandate .numbered-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #mandate .numbered-card {
    min-height: 0 !important;
    padding: 18px 10px !important;
    border-radius: 12px !important;
  }

  #mandate .numbered-card .mandate-icon {
    font-size: 1.45rem !important;
    margin-bottom: 10px !important;
  }

  #mandate .numbered-card h3 {
    font-size: .9rem !important;
    line-height: 1.25 !important;
    margin-bottom: 7px !important;
  }

  #mandate .numbered-card p {
    font-size: .72rem !important;
    line-height: 1.42 !important;
  }

  /* Global reference-centres composition: heading, globe, popup and cards. */
  .fao-globe-section {
    padding: 15px 0 42px !important;
    overflow: visible !important;
  }

  .fao-globe-inner {
    width: 100% !important;
    padding: 0 14px !important;
  }

  .fao-globe-heading {
    max-width: 345px !important;
    margin: 0 auto 22px !important;
    font-size: clamp(.9rem, 4.25vw, 1.15rem) !important;
    line-height: 1.38 !important;
    text-wrap: balance;
  }

  .fao-globe-heading br {
    display: none;
  }

  .fao-globe-columns {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .fao-globe-container {
    order: 1 !important;
    width: 100% !important;
    min-height: 310px !important;
    margin: 0 auto !important;
  }

  .fao-globe-stage {
    width: min(92vw, 360px) !important;
    height: 310px !important;
    margin: 0 auto !important;
  }

  .fao-globe-columns>div:first-child {
    order: 3 !important;
    width: 100% !important;
  }

  .fao-popup-zone {
    order: 2 !important;
    width: 100% !important;
    min-height: 0 !important;
  }

  #globePopupCard {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: -8px auto 14px !important;
    transform: none !important;
  }

  /* Collaborators: one clear card per row and phone-sized actions. */
  #global-network {
    padding: 44px 0 !important;
  }

  #global-network>.site-container>div:first-child h2 {
    font-size: clamp(1.48rem, 7.3vw, 1.9rem) !important;
  }

  #global-network .collaborators-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    padding-top: 18px !important;
  }

  #global-network .collaborators-grid .card {
    width: 100% !important;
    padding: 18px 16px !important;
  }

  #global-network .btn,
  #partner-institutions .btn {
    width: min(100%, 290px) !important;
    min-height: 44px;
    padding: 10px 16px !important;
    font-size: .85rem !important;
    white-space: normal;
    line-height: 1.3;
  }

  #partner-institutions {
    padding-top: 22px !important;
  }

  #partner-institutions h3 {
    font-size: 1.45rem !important;
  }

  /* Activities and MOUs use a readable single-card flow. */
  .section.bg-white .numbered-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .section.bg-white .numbered-grid .card img {
    height: 190px !important;
  }

  .section.bg-white .numbered-grid .card>div:last-child {
    padding: 20px 18px !important;
  }

  .section.bg-white .numbered-grid .card h4 {
    font-size: 1.05rem !important;
  }

  .section.bg-white .numbered-grid .card>div:last-child>div {
    flex-wrap: wrap;
  }

  #mous-home .mou-cards-grid {
    grid-template-columns: 1fr !important;
  }

  .regional-webinar-banner-inner {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .regional-webinar-media {
    min-height: 210px !important;
  }

  .regional-webinar-copy {
    padding: 26px 18px !important;
  }

  /* Homepage gallery responsive */
  .home-gallery-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .home-gallery-grid .gallery-thumb {
    display: block !important;
    width: 100% !important;
  }

  .home-gallery-controls {
    display: none !important;
  }

  .home-gallery-controls+div {
    margin-top: 28px !important;
  }

  /* Contact image/card, map and centered footer. */
  #contact {
    min-height: 520px !important;
    padding: 42px 0 !important;
    background-position: 62% center !important;
    align-items: flex-end !important;
  }

  #contact>div:first-child {
    background: linear-gradient(180deg, rgba(10, 25, 47, .22) 0%, rgba(10, 25, 47, .82) 42%, rgba(10, 25, 47, .98) 100%) !important;
  }

  #contact .site-container {
    padding: 0 18px !important;
  }

  #contact .contact-content-box {
    max-width: 100% !important;
    padding: 22px 18px !important;
    border-radius: 14px;
    background: rgba(7, 27, 49, .76);
    backdrop-filter: blur(5px);
    text-align: left !important;
  }

  #contact .contact-content-box h2 {
    white-space: normal !important;
    font-size: 1.22rem !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  #contact .contact-content-box>p {
    font-size: .91rem !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
  }

  #contact .contact-content-box h3 {
    font-size: 1rem !important;
    margin-bottom: 4px !important;
  }

  #contact .contact-content-box>div {
    margin-bottom: 14px !important;
  }

  #contact .contact-content-box p,
  #contact .contact-content-box a {
    font-size: .91rem !important;
    overflow-wrap: anywhere;
  }

  #contact+.fade-up {
    height: 320px !important;
  }

  #contact+.fade-up iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
  }

  .footer,
  .footer * {
    text-align: center !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;
  }

  .footer-grid>div {
    width: 100%;
  }

  .footer .footer-links li,
  .footer [style*="display: flex"] {
    justify-content: center !important;
  }

  /* Every public subpage: neutralize inline desktop grids and oversized heroes. */
  body>.page-hero {
    min-height: 330px !important;
    height: auto !important;
    padding: 105px 16px 52px !important;
    align-items: center !important;
  }

  .page-hero-content {
    width: 100% !important;
    padding-inline: 4px !important;
  }

  .page-hero-content h1 {
    font-size: clamp(1.8rem, 9vw, 2.35rem) !important;
    overflow-wrap: anywhere;
  }

  main [style*="grid-template-columns"],
  section:not(#mandate):not(#global-network) .container>[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [style*="minmax(400px"],
  [style*="minmax(320px"],
  [style*="minmax(280px"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .card {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .btn {
    max-width: 100%;
    min-height: 42px;
    white-space: normal;
  }
}

@media (max-width: 359px) {

  .site-container,
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .header-container {
    padding-inline: 10px !important;
  }

  .header-logo-1 {
    max-width: 82px !important;
    height: 27px !important;
  }

  .header-logo-2 {
    max-width: 90px !important;
    height: 30px !important;
  }

  #about .about-content-left {
    padding-inline: 12px !important;
    font-size: .9rem !important;
  }

  #mandate .numbered-card {
    padding: 15px 8px !important;
  }

  #mandate .numbered-card h3 {
    font-size: .82rem !important;
  }

  #mandate .numbered-card p {
    font-size: .68rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Activities Section Navigation Scrolling & Mandate Filters */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

#activities {
  scroll-margin-top: 120px;
}

.activity-category-filters {
  max-width: 1180px;
  margin: 26px auto 34px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.activity-category-filter {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  color: #31566e;
  background: #ffffff;
  border: 1px solid #d3e1e9;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.activity-category-filter:hover {
  color: #1a5fbd;
  border-color: #1a5fbd;
}

.activity-category-filter.active {
  color: #ffffff;
  background: #1a5fbd;
  border-color: #1a5fbd;
}

.activity-category-filter:focus-visible {
  outline: 3px solid rgba(11, 93, 145, 0.25);
  outline-offset: 2px;
}

.activity-filter-empty {
  margin: 30px 0 0;
  padding: 25px;
  color: #607582;
  text-align: center;
}

#activityGrid [hidden],
#activityFilterEmpty[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .activity-category-filters {
    margin: 21px 0 27px;
    padding: 2px 0 9px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .activity-category-filters::-webkit-scrollbar {
    display: none;
  }

  .activity-category-filter {
    flex: 0 0 164px;
    min-height: 44px;
    padding: 7px 10px;
    scroll-snap-align: start;
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   Standardized Event Cards Design
   ========================================================================== */
.event-cards-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto;
}

.event-card {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 32px;
  background: #ffffff;
  border: 1px solid #d3e1e9;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(11, 93, 145, 0.06);
  padding: 26px 30px;
  align-items: stretch;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(11, 93, 145, 0.12);
}

.event-card-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card-header {
  display: flex;
  flex-direction: column;
}

.event-card-badge {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 12px;
  background: #eaf4fb;
  color: #0b5d91;
  border: 1px solid #c2e0f4;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.event-card-title {
  margin: 0 0 6px;
  color: #0b5d91;
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  font-family: inherit;
}

.event-card-date {
  margin: 0 0 10px;
  color: #556877;
  font-size: 0.92rem;
  font-weight: 500;
}

.event-card-date em {
  font-style: italic;
  color: #1e293b;
  font-weight: 600;
}

/* Matching website brand color - NU-FAO blue, NO YELLOW */
.event-divider {
  height: 2.5px;
  width: 100%;
  background: #0b5d91;
  border: none;
  margin: 4px 0 14px;
  border-radius: 2px;
}

/* Justified paragraph as requested */
.event-card-desc {
  margin: 0 0 20px;
  color: #334155;
  font-size: 0.93rem;
  line-height: 1.68;
  text-align: justify;
  text-justify: inter-word;
}

.event-card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Left-aligned Know More button with matching website color */
.event-know-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 28px;
  background: #1a5fbd;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 12px rgba(26, 95, 189, 0.2);
}

.event-know-more-btn:hover {
  background: #1450a3;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 95, 189, 0.3);
}

.event-know-more-btn:focus-visible {
  outline: 3px solid rgba(26, 95, 189, 0.35);
  outline-offset: 2px;
}

.event-card-right {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}

.event-card-right img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 860px) {
  .event-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .event-card-right {
    order: -1;
    min-height: 220px;
    max-height: 260px;
  }
}

/* =========================================================
   Final mobile presentation corrections — home page
   ========================================================= */
.fao-heading-mobile {
  display: none;
}

.mou-sub-line {
  display: inline;
}

@media (max-width: 767px) {

  /* Professional, compact hero composition */
  .page-hero.hero-redesign {
    min-height: 540px !important;
    height: auto !important;
    padding: 32px 0 65px !important;
    align-items: center !important;
    justify-content: center !important;
    background-position: center !important;
  }

  .page-hero.hero-redesign .hero-overlay {
    background: linear-gradient(180deg, rgba(4, 24, 44, .28) 0%, rgba(5, 35, 62, .58) 58%, rgba(5, 28, 50, .88) 100%) !important;
  }

  .page-hero.hero-redesign .hero-content-wrapper {
    display: flex !important;
    width: 100% !important;
    padding: 0 16px !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transform: translateY(-16px);
  }

  .page-hero.hero-redesign .hero-content-wrapper>.d-md-none {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    text-align: center;
  }

  .page-hero.hero-redesign .hero-content-wrapper>.d-md-none>div:first-child {
    margin-bottom: 10px !important;
    font-size: .72rem !important;
    letter-spacing: .17em !important;
  }

  .page-hero.hero-redesign .hero-heading {
    max-width: 375px !important;
    margin: 0 auto 12px !important;
    font-size: clamp(1.5rem, 6.8vw, 1.95rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -.02em !important;
    text-align: center !important;
  }

  .page-hero.hero-redesign .hero-subtitle {
    max-width: 350px !important;
    margin: 0 auto 18px !important;
    color: rgba(255, 255, 255, .95) !important;
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }

  .page-hero.hero-redesign .hero-buttons {
    justify-content: center !important;
  }

  .page-hero.hero-redesign .hero-buttons .btn {
    min-width: 200px !important;
    min-height: 42px !important;
    padding: 9px 18px !important;
    font-size: .82rem !important;
  }

  /* Keep the complete honeycomb centred and proportional. */
  #about .about-content-right {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  #about .about-hex-container {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin: 0 auto !important;
    transform-origin: center center !important;
  }

  #about .honeycomb-container {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    margin: 0 auto !important;
    transform: none !important;
    transform-origin: center !important;
  }

  #about .honeycomb-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Exact three-line mobile heading and 15px vertical section padding. */
  .fao-globe-section {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }

  .fao-globe-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .fao-heading-desktop {
    display: none !important;
  }

  .fao-heading-mobile {
    display: block !important;
    width: 100%;
  }

  .fao-heading-mobile br {
    display: block !important;
  }

  .fao-globe-heading {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto 17px !important;
    padding: 0 4px !important;
    font-size: clamp(1rem, 4.6vw, 1.2rem) !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    text-align: center !important;
  }

  .fao-globe-heading .fao-heading-mobile {
    white-space: normal;
  }

  /* Mobile section statements */
  #activities .activity-heading-block {
    width: 100%;
    margin-bottom: 27px !important;
    text-align: center !important;
  }

  #activities .activity-heading-block h2 {
    margin-bottom: 7px !important;
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  #activities .activity-home-subtitle {
    max-width: 310px !important;
    margin: 0 auto 25px !important;
    font-size: .82rem !important;
    font-weight: 500 !important;
    line-height: 1.48 !important;
    text-align: center !important;
    text-wrap: balance;
  }

  #mous-home .mou-home-title {
    max-width: 100% !important;
    margin: 0 auto 9px !important;
    font-size: clamp(1rem, 5.2vw, 1.34rem) !important;
    line-height: 1.35 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow-wrap: normal;
  }

  #mous-home .text-center>p,
  #mous-home .mou-home-subtitle {
    max-width: 100% !important;
    font-size: clamp(.74rem, 3.2vw, .92rem) !important;
    line-height: 1.55 !important;
    text-align: center !important;
  }

  .mou-sub-line {
    display: block;
    white-space: nowrap;
  }

  .gallery-home-subtitle {
    max-width: 300px !important;
    margin: 7px auto 27px !important;
    font-size: .88rem !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }

  /* Contact information remains visually centred and evenly spaced. */
  #contact {
    min-height: 0 !important;
    padding: 46px 0 !important;
    background-position: 62% center !important;
  }

  #contact .site-container {
    padding: 0 20px !important;
  }

  #contact .contact-content-box {
    width: 100% !important;
    max-width: 390px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
  }

  #contact .contact-content-box h2 {
    white-space: normal !important;
    margin: 0 auto 16px !important;
    font-size: 1.28rem !important;
    line-height: 1.35 !important;
    text-align: center !important;
    text-wrap: balance;
  }

  #contact .contact-content-box p,
  #contact .contact-content-box h3,
  #contact .contact-content-box div {
    text-align: center !important;
  }

  #contact .contact-content-box>p {
    margin-bottom: 27px !important;
    font-size: .91rem !important;
    line-height: 1.65 !important;
  }

  #contact .contact-content-box>div {
    margin-bottom: 20px !important;
  }

  #contact .contact-content-box>div:last-child {
    margin-bottom: 0 !important;
  }

  #contact .contact-content-box h3 {
    margin-bottom: 5px !important;
    font-size: 1rem !important;
  }

  #contact .contact-content-box a,
  #contact .contact-content-box div p {
    font-size: .9rem !important;
  }

  /* Floating CTA and Go To Top hidden on mobile */
  .floating-cta,
  #backToTop,
  .back-to-top,
  #goTopBtn {
    display: none !important;
  }

  .footer,
  footer {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .footer .footer-bottom,
  footer .footer-bottom {
    min-height: 0 !important;
    padding-bottom: 15px !important;
    margin-bottom: 0 !important;
  }

  .footer .footer-bottom p:last-child,
  footer .footer-bottom p:last-child {
    margin-bottom: 0 !important;
  }

  /* Refined mobile navigation drawer */
  .mobile-drawer {
    width: min(88vw, 350px) !important;
    max-width: 350px !important;
    padding: 94px 18px 24px !important;
    gap: 5px !important;
    border-left: 1px solid rgba(255, 255, 255, .22) !important;
    background: linear-gradient(165deg, #063f70 0%, #075b83 48%, #087ca4 100%) !important;
    box-shadow: -18px 0 55px rgba(3, 31, 50, .34) !important;
    color: #fff !important;
  }

  .mobile-drawer::before {
    position: absolute;
    top: 27px;
    left: 22px;
    color: #fff;
    content: "Explore the Centre";
    font-size: .82rem;
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: capitalize;
  }

  .mobile-drawer::after {
    position: absolute;
    top: 58px;
    right: 18px;
    left: 18px;
    height: 1px;
    background: rgba(255, 255, 255, .2);
    content: "";
  }

  .mobile-drawer-close {
    top: 14px !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
    font-size: 1.35rem !important;
    backdrop-filter: blur(7px);
  }

  .mobile-drawer a {
    position: relative;
    width: 100% !important;
    margin: 0 !important;
    padding: 11px 14px 11px 38px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: rgba(255, 255, 255, .9) !important;
    background: transparent !important;
    font-family: var(--font-body) !important;
    font-size: .9rem !important;
    font-style: normal !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    line-height: 1.25 !important;
    text-align: left !important;
    transition: background .2s ease, color .2s ease, transform .2s ease !important;
  }

  .mobile-drawer a::before {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 6px;
    height: 6px;
    border: 2px solid #9edcf0;
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
  }

  .mobile-drawer a:hover,
  .mobile-drawer a:focus-visible {
    background: rgba(255, 255, 255, .13) !important;
    color: #fff !important;
    transform: translateX(3px);
    outline: none;
  }

  .mobile-drawer a[href="events.html"],
  .mobile-drawer a[href="workshops.html"],
  .mobile-drawer a[href="webinars.html"],
  .mobile-drawer a[href="invited-talks.html"] {
    margin-left: 20px !important;
    width: calc(100% - 20px) !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    color: rgba(255, 255, 255, .72) !important;
    font-size: .82rem !important;
  }
}

/* Global mobile rule: Ensure all Go To Top button variations are completely removed from mobile mode */
@media (max-width: 768px) {

  #goTopBtn,
  #backToTop,
  .back-to-top,
  button[aria-label="Go to top"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
  }
}

/* Global Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(120%);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s ease;
}

.mobile-bottom-nav.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #555;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 4px;
  transition: color 0.2s, transform 0.15s;
}

.mobile-bottom-nav .nav-item i {
  font-size: 1.2rem;
  color: #0b5d91;
  transition: transform 0.2s, color 0.2s;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item:active,
.mobile-bottom-nav .nav-item.active {
  color: #0b5d91;
}

.mobile-bottom-nav .nav-item:active i {
  transform: scale(0.9);
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Mobile footer and quick-navigation bars must meet both viewport edges. */
@media (max-width: 991px) {

  footer,
  .footer {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    border-radius: 0 !important;
  }

  .mobile-bottom-nav {
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
}

/* =========================================================
   Desktop alignment system
   Matches the first header logo and the Contact-button edge.
   ========================================================= */
@media (min-width: 992px) {
  .site-aligned-layout {
    --desktop-alignment-max: 1640px;
    --desktop-alignment-gutter: 2.5cm;
  }

  /* One shared boundary for the header, page sections and footer. */
  .site-aligned-layout .header-container,
  .site-aligned-layout .site-container,
  .site-aligned-layout .container,
  .site-aligned-layout .page-container,
  .site-aligned-layout .collaborators-container,
  .site-aligned-layout .footer .container,
  .site-aligned-layout footer .container {
    width: 100% !important;
    max-width: var(--desktop-alignment-max) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: var(--desktop-alignment-gutter) !important;
    padding-left: var(--desktop-alignment-gutter) !important;
    box-sizing: border-box !important;
  }

  /* About the Centre */
  .site-aligned-layout #about>.site-container,
  .site-aligned-layout #about .about-grid {
    width: 100% !important;
    max-width: var(--desktop-alignment-max) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  /* Mandates: its custom container follows the same header guides. */
  .site-aligned-layout #mandate .mandate-container,
  .site-aligned-layout #mandates .mandate-container {
    width: 100% !important;
    max-width: var(--desktop-alignment-max) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: var(--desktop-alignment-gutter) !important;
    padding-left: var(--desktop-alignment-gutter) !important;
    box-sizing: border-box !important;
  }

  /* Collaborators, Activities, MOU and Gallery content boundaries. */
  .site-aligned-layout #collaborators>.site-container,
  .site-aligned-layout #global-network>.site-container,
  .site-aligned-layout #activities>.site-container,
  .site-aligned-layout #mous-home>.site-container,
  .site-aligned-layout .gallery-preview-section>.site-container {
    width: 100% !important;
    max-width: var(--desktop-alignment-max) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: var(--desktop-alignment-gutter) !important;
    padding-left: var(--desktop-alignment-gutter) !important;
    box-sizing: border-box !important;
  }

  /* Current homepage Gallery section has no ID; align its direct container. */
  .site-aligned-layout section:has(.gallery-preview-title)>.site-container {
    width: 100% !important;
    max-width: var(--desktop-alignment-max) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: var(--desktop-alignment-gutter) !important;
    padding-left: var(--desktop-alignment-gutter) !important;
    box-sizing: border-box !important;
  }

  /* Contact copy starts directly below the first header logo. */
  .site-aligned-layout #contact {
    justify-content: flex-start !important;
  }

  .site-aligned-layout #contact>.site-container {
    width: 100% !important;
    max-width: var(--desktop-alignment-max) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: var(--desktop-alignment-gutter) !important;
    padding-left: var(--desktop-alignment-gutter) !important;
    box-sizing: border-box !important;
  }

  .site-aligned-layout #contact .contact-content-box {
    width: min(100%, 650px) !important;
    max-width: 650px !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
  }

  .site-aligned-layout #contact .contact-content-box h2,
  .site-aligned-layout #contact .contact-content-box h3,
  .site-aligned-layout #contact .contact-content-box p,
  .site-aligned-layout #contact .contact-content-box div {
    text-align: left !important;
  }

  /* Footer columns and bottom credit use the same left/right guides. */
  .site-aligned-layout .footer-grid,
  .site-aligned-layout .footer-bottom,
  .site-aligned-layout footer .footer-grid,
  .site-aligned-layout footer .footer-bottom {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }
}

/* ========================================================================== 
   Cross-device responsive baseline
   Phones: 320px+, tablets: 768px+, compact desktops: 992px+, wide screens.
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
svg {
  max-width: 100%;
}

iframe {
  max-width: 100%;
}

@media (min-width: 768px) and (max-width: 1199px) {

  .site-container,
  .page-container,
  .container:not(.header-container) {
    padding-right: clamp(22px, 3vw, 36px);
    padding-left: clamp(22px, 3vw, 36px);
    box-sizing: border-box;
  }

  .page-hero,
  .collaborators-hero,
  .mou-hero,
  .workshop-hero,
  .activities-hero {
    min-height: 360px;
    padding-inline: clamp(24px, 5vw, 56px);
  }

  .numbered-grid,
  .collaborators-grid,
  .mou-cards-grid,
  .mouHomeGrid,
  .home-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .contact-map-grid,
  .regional-webinar-banner-inner {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .contact-map-panel,
  .enquiry-panel {
    min-height: 420px;
  }
}

@media (max-width: 767px) {

  .site-container,
  .page-container,
  .container:not(.header-container) {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
    box-sizing: border-box;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  a,
  button {
    overflow-wrap: anywhere;
  }

  .page-hero,
  .collaborators-hero,
  .mou-hero,
  .workshop-hero,
  .activities-hero {
    min-height: 300px;
    padding: 96px 18px 48px;
  }

  .numbered-grid,
  .collaborators-grid,
  .mou-cards-grid,
  .mouHomeGrid,
  .home-gallery-grid,
  .contact-map-grid,
  .regional-webinar-banner-inner {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .btn,
  button:not(.nav-mobile-btn):not(.mobile-drawer-close):not(.gallery-nav-btn):not(.event-slider-arrow) {
    min-height: 44px;
  }

  .contact-map-panel iframe {
    min-height: 300px !important;
  }

  table {
    max-width: 100%;
  }
}

@media (min-width: 1600px) {

  .site-container,
  .page-container,
  .container:not(.header-container) {
    max-width: 1640px;
  }
}

/* At true desktop widths the off-canvas menu is not part of the layout. */
@media (min-width: 1301px) {
  .nav-desktop {
    display: flex;
  }

  .nav-mobile-btn,
  .mobile-drawer {
    display: none;
  }
}

/* Compact desktops retain the menu button, but
   position its closed drawer with transforms so it cannot create horizontal
   page scrolling. */
@media (min-width: 992px) and (max-width: 1300px) {
  .nav-desktop {
    display: none !important;
  }

  .nav-mobile-btn {
    display: flex !important;
  }

  .mobile-drawer {
    right: 0;
    width: min(88vw, 350px);
    max-width: 350px;
    height: 100dvh;
    box-sizing: border-box;
    transform: translateX(105%);
    transition: transform .35s ease;
  }

  .mobile-drawer.open {
    transform: translateX(0);
  }
}

/* Closed fixed drawers must not contribute to the document width on phones
   and tablets. */
@media (max-width: 1366px) {
  .shooting-star {
    display: none;
  }
}

@media (max-width: 1300px) {
  .mobile-drawer:not(.open) {
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-drawer.open {
    visibility: visible;
    pointer-events: auto;
  }
}

/* The CEFAS name is longer than the other two-column reference-centre cards.
   Give it its own content-led height on phones instead of compressing the
   country label and institution name into the fixed 80px desktop card. */
@media (max-width: 576px) {

  /* Keep the two-by-two reference-centre card group visually even on phones. */
  #inst-card-usa,
  #inst-card-uk,
  #inst-card-china-pearl,
  #inst-card-china-yellow {
    height: 176px !important;
    min-height: 176px !important;
    padding: 12px !important;
  }

  #inst-card-uk {
    padding: 12px !important;
  }

  #inst-card-uk .card-country {
    margin-bottom: 5px;
    line-height: 1.15;
  }

  #inst-card-uk .card-name {
    font-size: .75rem !important;
    line-height: 1.35 !important;
    overflow-wrap: normal;
    text-wrap: balance;
  }
}

/* On touch layouts, the globe detail panel is on-demand.  An invisible
   unselected panel must not reserve the large image/card area below the globe. */
@media (max-width: 991px) {
  #globePopupCard:not(.popup-visible) {
    display: none !important;
  }

  .fao-popup-zone:not(:has(#globePopupCard.popup-visible)) {
    display: none !important;
  }
}

/* Match the collaborator subsection hierarchy to mobile proportions. */
@media (max-width: 767px) {

  #global-network h3,
  #partner-institutions h3 {
    font-size: 1.4rem !important;
    line-height: 1.25 !important;
  }

  #global-network .collaborators-grid .card h4,
  #partner-institutions .card h4 {
    font-size: .95rem !important;
    line-height: 1.3 !important;
  }
}

/* Shared dimensions for every homepage "View …" call-to-action. */
.home-view-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(100%, 296px) !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 12px 32px !important;
  box-sizing: border-box !important;
  border-radius: 999px !important;
}

/* Gallery and hero surfaces use clean square edges. */
.home-gallery-grid .gallery-thumb,
.home-gallery-grid .gallery-thumb img,
.fao-inst-card,
.hero-schedule-notice {
  border-radius: 0 !important;
}

@media (max-width: 768px) {
  .page-hero:not(.hero-redesign) {
    margin: 0 !important;
    border-radius: 0 !important;
  }
}

/* ── Homepage Activity Section: Centre "View Activity" button on mobile ─── */
@media (max-width: 768px) {

  #activityGrid .card>div:last-child>div[style*="space-between"],
  #activityGrid .card>div:last-child>div:last-child {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  #activityGrid .card .home-view-button {
    width: auto !important;
    align-self: center !important;
  }
}