:root {
  --base-width: 1440;
  --page-margin: calc((52 / var(--base-width)) * 100vw);
  --gutter: calc((20 / var(--base-width)) * 100vw);
  --max-width: 1440px;

  --color-text-primary: #1e1e1e;
  --color-white: #ffffff;
  --color-muted: #666666;

  --font-heading: 'Blue Mirage', 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Accessibility Utility for Screen Readers & Semantic SEO */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  background-color: #000000;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: #000000;
  color: var(--color-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navbar */
.site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  background-color: #000000;
  padding: 20px var(--page-margin);
}

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gutter);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* 1st Column / Start: Logo */
.nav-col-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Center: Nav Buttons */
.nav-col-center {
  display: flex;
  justify-content: center;
}

.nav-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 56px;
  list-style: none;
}

.nav-item {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 22px;
  gap: 10px;
  height: 38px;
  border-radius: 9999px;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  text-decoration: none;
  white-space: nowrap;

  /* Studio Capsule Gradient & Shading */
  background: linear-gradient(180deg, #3c3c41 0%, #19191c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 2px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Typography: Roboto Regular, 12px, Uppercase */
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e5e5e7;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Curved Glass Sheen Light Overlay */
.nav-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 9999px 9999px 0 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Micro-interactions & Press States */
.nav-item:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

.nav-item:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

.nav-item.active {
  background: linear-gradient(180deg, #4d4d54 0%, #222226 100%);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 -1px 2px rgba(0, 0, 0, 0.9);
}

/* Navigation Dropdown Menu (Our Work) */
.nav-item-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item-has-dropdown {
  padding-right: 18px;
}

.nav-dropdown-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.nav-item-dropdown-wrapper:hover .nav-dropdown-caret,
.nav-item-dropdown-wrapper:focus-within .nav-dropdown-caret {
  transform: rotate(180deg);
  color: #ffffff;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: max-content;
  min-width: 230px;
  padding: 8px;
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.75),
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Invisible bridge between button and dropdown to prevent hover loss */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

.nav-item-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-item-dropdown-wrapper:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
  outline: none;
  transform: translateX(2px);
}

.nav-dropdown-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-dropdown-dot.dot-fossil {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
}

.nav-dropdown-dot.dot-climate {
  background: #f1f5f9;
  box-shadow: 0 0 8px rgba(241, 245, 249, 0.7);
}

.nav-dropdown-dot.dot-fashion {
  background: #a3d88d;
  box-shadow: 0 0 8px rgba(163, 216, 141, 0.7);
}

.nav-dropdown-dot.dot-activities {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

.nav-dropdown-item:hover .nav-dropdown-dot {
  transform: scale(1.3);
}

.nav-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-title {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f3f4f6;
  text-transform: none;
  line-height: 1.25;
  white-space: nowrap;
}

.nav-dropdown-sub {
  display: none !important;
}

.nav-dropdown-item:hover .nav-dropdown-title {
  color: #ffffff;
}

.nav-dropdown-item:hover .nav-dropdown-sub {
  color: #cbd5e1;
}

/* 3rd Column / End: CD */
.nav-col-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-cd {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #ffffff;
  user-select: none;
}

/* Hero Section - Full uncropped height */
.hero-section {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  display: block;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay to ensure high contrast and legibility for the quote */
.hero-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 2;
  pointer-events: none;
}

/* Hero Text / Quote */
.hero-text-container {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  max-width: calc((820 / 1440) * 100vw);
  margin: 0 auto;
  padding: 40px var(--page-margin);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-quote {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 400;
  font-size: 48px;
  line-height: 91.1%;
  letter-spacing: 0%;
  text-align: center;
  color: #FFFFFF;
  margin: 0;
  min-width: calc((700 / 1440) * 100vw);
  max-width: 100%;
  text-wrap: balance;
}

.hero-quote em {
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .nav-content {
    gap: 28px;
  }

  .hero-quote {
    font-size: 36px;
    min-width: auto;
  }

  .bottom-header-body {
    padding: 20px 20px 24px;
  }

  .bottom-header-inner-card {
    min-height: 180px;
    padding: 24px;
  }

  .bottom-header-title {
    font-size: 36px;
  }
}

@media (max-width: 900px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .nav-col-center {
    display: none !important;
  }

  .nav-col-end {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 680px) {

  .hero-quote {
    font-size: 26px;
    line-height: 1.15;
    min-width: auto;
  }

  .sawtooth-pattern-wrapper,
  .sawtooth-svg {
    height: 40px;
  }

  .bottom-header-section {
    padding-top: 20px;
  }

  .bottom-header-body {
    padding: 14px 14px 18px;
  }

  .bottom-header-inner-card {
    min-height: 150px;
    padding: 18px 16px;
  }

  .bottom-header-title {
    font-size: 24px;
  }
}

/* Bottom Header / Section: Be A Part Of Our Latest */
.bottom-header-section {
  position: relative;
  width: 100%;
  background-color: #000000;
  padding: 20px 0 0;
}

.bottom-header-container {
  position: relative;
  width: 100%;
  margin: 0;
}

/* Serrated / Sawtooth Wave Top Edge (Group 9) */
.sawtooth-pattern-wrapper {
  position: relative;
  width: 100%;
  height: 57.37px;
  overflow: hidden;
  line-height: 0;
  display: block;
}

.sawtooth-svg {
  display: block;
  width: 100%;
  height: 57.37px;
}

/* Green Leaf Repeating Banner (Frame 259) */
.repeating-leaf-banner {
  position: relative;
  width: 100%;
  height: 54px;
  background-color: #a3d88d;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin: 0;
  border: none;
}

.repeating-leaf-pattern {
  width: 100%;
  height: 54px;
  background-image: url('/assets/Home_Catch_up.png');
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 54px;
  transform: none;
}

/* Green Body Frame */
.bottom-header-body {
  position: relative;
  width: 100%;
  background-color: #a3d88d;
  padding: 28px 28px 32px;
  margin-top: -1px;
  /* Prevents hairline subpixel rendering gap */
  box-sizing: border-box;
}

/* White Inner Card */
.bottom-header-inner-card {
  position: relative;
  width: 100%;
  min-height: 220px;
  background-color: #ffffff;
  padding: 28px 32px;
  box-sizing: border-box;
}

.bottom-header-title {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 48px;
  line-height: 91.1%;
  letter-spacing: 0%;
  color: #000000;
  margin: 0;
}

/* ============================================================
   Pakistan Map / Our Stories Section
   ============================================================ */
.map-section {
  width: 100%;
  background-color: #000000;
}

/* Centered frame with side margins matching Figma Frame 154 */
.map-frame {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px var(--page-margin) 36px;
  box-sizing: border-box;
}

/* Relative container — markers are positioned % relative to this */
.map-pin-area {
  position: relative;
  width: 100%;
  line-height: 0;
}

.map-bg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

/* ---- City Marker ---- */
.city-marker {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 5;
  outline: none;
  background: transparent;
  border: none;
  padding: 0;
}

.city-marker:focus-visible .city-label {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

/* ---- Green Leaf Icon ---- */
.city-leaf {
  display: block;
  width: clamp(22px, 2.8vw, 42px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(163, 216, 141, 0.45));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.25s ease;
  pointer-events: none;
  user-select: none;
}

.city-marker:hover .city-leaf {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 6px 18px rgba(163, 216, 141, 0.7));
}

/* ---- Dark Pill Label ---- */
.city-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(10px, 1.4vw, 20px);
  height: clamp(22px, 2.2vw, 34px);
  border-radius: 9999px;
  white-space: nowrap;
  user-select: none;

  /* Dark pill — matches reference images */
  background: radial-gradient(ellipse at 50% 0%, #4a4a4e 0%, #1c1c1e 55%, #0a0a0a 100%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 -1px 2px rgba(0, 0, 0, 0.9);

  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: clamp(9px, 0.9vw, 14px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.city-marker:hover .city-label {
  transform: translateY(1px);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.9),
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    inset 0 -1px 2px rgba(0, 0, 0, 1);
}

/* ---- Ripple Rings Container ---- */
.city-ripples {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: -1;
}

/* ---- Individual Ripple Rings ---- */
.ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: clamp(100px, 12vw, 180px);
  height: clamp(100px, 12vw, 180px);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  opacity: 0;
  pointer-events: none;
}

/* Trigger animation on parent hover */
.city-marker:hover .ripple,
.city-marker:focus-visible .ripple {
  animation: ripple-expand 2.2s ease-out infinite;
}

.city-marker:hover .r2,
.city-marker:focus-visible .r2 {
  animation-delay: 0.55s;
}

.city-marker:hover .r3,
.city-marker:focus-visible .r3 {
  animation-delay: 1.1s;
}

/* ---- Ripple Keyframe ---- */
@keyframes ripple-expand {
  0% {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0.75;
  }

  60% {
    opacity: 0.3;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Responsive: scale map markers on small screens */
@media (max-width: 680px) {
  .city-label {
    padding: 0 8px;
    height: 20px;
    font-size: 8px;
    letter-spacing: 0.04em;
  }

  .city-leaf {
    width: 18px;
  }

  .ripple {
    width: 70px;
    height: 70px;
  }
}

/* ---- Interactive Map Marker Popup / Dropdown Card ---- */
.city-popup {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(240px, 23vw, 300px);
  background-color: #ffffff;
  padding: 24px 24px 28px;
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.94);
  transform-origin: top left;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.22s ease;
  z-index: 30;
  text-align: left;
  cursor: default;
}

/* Positioning adjustments to prevent overflow on edges */
#marker-jalalpur .city-popup,
#marker-hunza .city-popup {
  left: auto;
  right: 0;
  transform-origin: top right;
}

#marker-thar .city-popup {
  top: auto;
  bottom: 0;
  transform-origin: bottom left;
}

/* Open State */
.city-marker.is-open {
  z-index: 35;
}

.city-marker.is-open .city-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.city-marker.is-open .city-leaf,
.city-marker.is-open .city-label,
.city-marker.is-open .city-ripples {
  opacity: 0;
  pointer-events: none;
}

/* Popup Title / Green Badge */
.popup-badge {
  display: inline-block;
  background-color: #8cd867;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 9999px;
  margin-bottom: 18px;
  user-select: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(140, 216, 103, 0.3);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.popup-badge:hover {
  filter: brightness(1.05);
  transform: scale(1.02);
}

/* Popup Description Text */
.popup-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 15.5px);
  line-height: 1.48;
  color: #606060;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

@media (max-width: 680px) {
  .city-popup {
    width: min(230px, 68vw);
    padding: 16px 16px 20px;
  }

  .popup-badge {
    font-size: 11px;
    padding: 6px 14px;
    margin-bottom: 12px;
  }

  .popup-text {
    font-size: 12px;
    line-height: 1.38;
  }
}


/* ============================================================
   Site Footer Section
   ============================================================ */
.site-footer {
  position: relative;
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  padding: 40px var(--page-margin) 28px;
  box-sizing: border-box;
}

.footer-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Top Section: Logo, Tagline & Socials */
.footer-top-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand-area,
.footer-brand-col {
  width: 100%;
}

.footer-logo-link,
.footer-brand-link {
  display: inline-block;
  line-height: 0;
  width: fit-content;
}

.footer-logo,
.footer-brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
  max-width: 680px;
}

.footer-tagline strong {
  font-weight: 700;
}

.footer-social-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.footer-social-icon:hover {
  transform: translateY(-2px);
  opacity: 0.75;
}

.footer-social-icon svg {
  display: block;
}

/* Dividers */
.footer-divider {
  border: none;
  border-top: 1px solid #ffffff;
  margin: 20px 0 28px;
  width: 100%;
  opacity: 0.9;
}

/* Middle Section: Links & Newsletter */
.footer-main-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

/* Navigation Column */
.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link {
  font-family: 'Roboto', var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #ffffff;
  opacity: 0.8;
  transform: translateX(2px);
}

/* Newsletter Column */
.footer-newsletter-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
}

.footer-subscribe-title {
  font-family: 'Roboto', var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.footer-subscribe-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
}

.footer-subscribe-form {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 9999px;
  padding: 4px;
  width: 100%;
  max-width: 320px;
  margin-top: 8px;
  box-sizing: border-box;
}

.footer-email-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #1e1e1e;
  min-width: 0;
}

.footer-email-input::placeholder {
  color: #767676;
}

.footer-submit-btn {
  background-color: #4b68ff;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 8px 20px;
  font-family: 'Roboto', var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.footer-submit-btn:hover {
  background-color: #3553ec;
}

.footer-submit-btn:active {
  transform: scale(0.97);
}

/* Bottom Section: Copyright */
.footer-bottom-section {
  padding-top: 4px;
}

.footer-copyright {
  font-family: 'Roboto', var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

/* End of Global Site Footer */

/* ============================================================
   Our Story Page
   ============================================================ */
.story-page-section {
  position: relative;
  width: 100%;
  background-color: #000000;
  min-height: calc(100vh - 100px);
}

.story-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  padding: 40px var(--page-margin) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: calc(100vh - 120px);
  box-sizing: border-box;
  position: relative;
}

/* Text Content: Starts at the very left edge of Column 1 */
.story-content-col {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 40px;
  box-sizing: border-box;
  z-index: 2;
}

.story-main-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.08;
  color: #ffffff;
  margin: 0 0 32px 0;
  letter-spacing: -0.01em;
}

.story-text-group {
  margin-bottom: 24px;
  max-width: 540px;
}

.story-kicker {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
}

.story-section-title {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.story-paragraph {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: #ffffff;
  margin: 0;
  opacity: 0.95;
}

.story-action-area {
  margin-top: 10px;
}

.story-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #4b68ff;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.story-cta-btn:hover {
  background-color: #3856ea;
  transform: translateY(-1px);
}

.story-cta-btn:active {
  transform: scale(0.98);
}

/* Repeating Pattern Column: Hugging the right edge in Column 3 */
.story-pattern-col {
  grid-column: 3;
  width: 100%;
  height: 100%;
  min-height: 600px;
  background-image: url('/assets/repeating-our-story.png');
  background-repeat: repeat-y;
  background-position: right top;
  background-size: clamp(180px, 18vw, 250px) auto;
  pointer-events: none;
  user-select: none;
}

body.our-work-page .story-pattern-col {
  grid-column: 2;
  min-height: 520px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .story-grid-container {
    grid-template-columns: 1fr;
    padding: 28px var(--page-margin) 36px;
  }

  .story-content-col {
    grid-column: 1;
    padding-right: 0;
  }

  .story-pattern-col {
    display: none;
  }
}

/* ============================================================
   Team Intro Section (Full Width White Background)
   ============================================================ */
.team-intro-section {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  padding: 48px var(--page-margin) 28px;
  box-sizing: border-box;
}

.team-intro-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-intro-card {
  background-color: transparent;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
}

.team-card-header {
  margin-bottom: 20px;
}

.team-main-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: 1.1;
  color: #4b68ff;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.team-subtitle {
  font-family: var(--font-heading), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.45;
  color: #1e1e1e;
  margin: 0 0 16px 0;
}

.team-header-divider {
  border: none;
  border-top: 1px solid #b8cae6;
  margin: 0;
  width: 100%;
}

.team-card-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(28px, 3.5vw, 52px);
  align-items: end;
  padding-top: 20px;
}

/* Square Photo Grid */
.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 3), 1fr);
  gap: 10px;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
}

.team-photo-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f1f5f9;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-photo-item:hover .team-photo {
  transform: scale(1.06);
}

/* Narrative & Quote */
.team-narrative-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
}

.team-quote-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.team-quote {
  font-family: var(--font-heading), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.25;
  color: #4b68ff;
  margin: 0;
}

.team-quote-author {
  font-family: var(--font-heading), Georgia, serif;
  font-style: normal;
  font-size: 15px;
  color: #4b68ff;
  white-space: nowrap;
}

.team-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(13.5px, 1.05vw, 15px);
  line-height: 1.55;
  color: #1e1e1e;
  margin: 0;
}

/* Responsive adjustments for team intro */
@media (max-width: 900px) {
  .team-intro-section {
    padding: 32px var(--page-margin) 20px;
  }

  .team-card-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 14px;
  }

  .team-photo-grid {
    max-width: 100%;
  }
}

/* ============================================================
   Core Team Accordion Section (Full Width White Background)
   ============================================================ */
.core-team-section {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  padding: 28px var(--page-margin) 56px;
  box-sizing: border-box;
}

.core-team-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.core-team-card {
  background-color: transparent;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.core-team-title-col {
  display: flex;
  flex-direction: column;
}

.core-team-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.1;
  color: #4b68ff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.core-team-accordion-col {
  width: 100%;
}

.team-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.accordion-item {
  width: 100%;
  border-bottom: 1.5px solid #4b68ff;
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  padding: 16px 0;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.2s ease;
  outline: none;
}

.accordion-header:hover {
  opacity: 0.8;
}

.accordion-header:focus-visible {
  outline: 2px solid #4b68ff;
  outline-offset: 4px;
}

.accordion-name {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
  color: #4b68ff;
}

.accordion-role-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b68ff;
}

.accordion-role {
  font-family: var(--font-body);
  font-size: clamp(11.5px, 0.9vw, 13.5px);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4b68ff;
}

.accordion-icon {
  color: #4b68ff;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

/* Accordion Drawer */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.is-open .accordion-content {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.accordion-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: clamp(20px, 2.5vw, 36px);
  padding: 12px 0 24px;
  align-items: center;
}

.accordion-photo-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f1f5f9;
  border-radius: 8px;
}

.accordion-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.accordion-photo.pos-top-15 {
  object-position: center 15%;
}

.accordion-photo.pos-top-20 {
  object-position: center 20%;
}

.accordion-photo.pos-top-25 {
  object-position: center 25%;
}

.accordion-photo.is-logo,
.accordion-photo[src*="CAEA-Navbar-Logo"] {
  object-fit: contain;
  padding: clamp(24px, 4vw, 40px);
  background-color: #000000;
  box-sizing: border-box;
}

.accordion-bio {
  font-family: var(--font-body);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.55;
  color: #1e1e1e;
}

.accordion-bio p {
  margin: 0;
}

/* Responsive adjustments for Core Team Accordion */
@media (max-width: 900px) {
  .core-team-section {
    padding: 20px var(--page-margin) 40px;
  }

  .core-team-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .accordion-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .accordion-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
  }
}

/* ============================================================
   Allies Section (Full Width White Background)
   ============================================================ */
.allies-section {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  padding: 48px var(--page-margin) 56px;
  box-sizing: border-box;
}

.allies-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.allies-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.1;
  color: #4b68ff;
  margin: 0 0 32px 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Continuous Logo Ticker Tape Ribbon */
.allies-ticker-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  padding: 12px 0;
  mask-image: linear-gradient(to right, transparent 0%, #000000 6%, #000000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 6%, #000000 94%, transparent 100%);
}

.allies-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: alliesTickerScroll 28s linear infinite;
  will-change: transform;
}

.allies-ticker-wrapper:hover .allies-ticker-track {
  animation-play-state: paused;
}

.allies-ticker-half {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(48px, 5.5vw, 84px);
  padding-right: clamp(48px, 5.5vw, 84px);
}

.ally-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(64px, 6vw, 88px);
  min-width: 130px;
  max-width: 230px;
  background-color: transparent;
  padding: 6px 12px;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.ally-card:hover {
  transform: translateY(-3px) scale(1.06);
  opacity: 1;
}

.ally-logo-img {
  max-width: 100%;
  height: clamp(44px, 4.8vw, 62px);
  object-fit: contain;
  display: block;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes alliesTickerScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .allies-ticker-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
  .allies-ticker-half:last-child {
    display: none;
  }
  .allies-ticker-wrapper {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.ally-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ============================================================
   Join The Team Section (Full Width Black Background)
   ============================================================ */
.join-team-section {
  position: relative;
  width: 100%;
  background-color: #000000;
  padding: 56px var(--page-margin) 72px;
  box-sizing: border-box;
  overflow: hidden;
}

.join-team-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.join-team-header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 14px;
}

.join-team-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.join-team-pattern {
  flex: 1;
  height: clamp(36px, 3.5vw, 48px);
  background-image: url('/assets/repeating-logo-left.png');
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 100%;
  pointer-events: none;
  user-select: none;
}

.join-team-desc {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 16px);
  color: #ffffff;
  margin: 0 0 28px 0;
  line-height: 1.5;
}

.join-team-desc em {
  font-style: italic;
}

.join-team-action {
  display: flex;
}

.join-team-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #4b68ff;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.join-team-btn:hover {
  background-color: #3856ea;
  transform: translateY(-1px);
}

.join-team-btn:active {
  transform: scale(0.98);
}

/* Responsive adjustments for Allies & Join Team */
@media (max-width: 900px) {
  .allies-section {
    padding: 36px var(--page-margin) 44px;
  }

  .allies-ticker-wrapper {
    mask-image: linear-gradient(to right, transparent 0%, #000000 4%, #000000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 4%, #000000 96%, transparent 100%);
  }

  .allies-ticker-track {
    animation-duration: 22s;
  }

  .allies-ticker-half {
    gap: 36px;
    padding-right: 36px;
  }

  .ally-card {
    height: 58px;
    min-width: 105px;
    max-width: 175px;
    padding: 4px 8px;
  }

  .ally-logo-img {
    height: 40px;
  }

  .join-team-section {
    padding: 40px var(--page-margin) 48px;
  }

  .join-team-header-row {
    flex-wrap: wrap;
  }

  .join-team-heading {
    white-space: normal;
  }

  .join-team-pattern {
    width: 100%;
    flex: none;
    height: 32px;
  }
}

/* ==========================================================================
   Get Involved Section & Page Styles
   ========================================================================== */

.get-involved-outer-wrapper {
  background-color: #000000;
  padding: 24px var(--page-margin) 60px;
}

.get-involved-top-label {
  color: #888888;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.get-involved-container {
  background-color: #ffffff;
  border-radius: 36px;
  padding: 48px 48px 56px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.get-involved-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 400;
  color: #000000;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 44px;
  line-height: 1.08;
}

/* Grid Layout */
.cause-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "card1 card2 card3"
    "card4 card4 card3";
  gap: 24px;
}

.cause-card {
  border-radius: 28px;
  padding: 36px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.cause-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}

.cause-card-blue {
  background-color: #4D64D8;
  color: #ffffff;
}

.cause-card-black {
  background-color: #000000;
  color: #ffffff;
}

.cause-card-1 {
  grid-area: card1;
}

.cause-card-2 {
  grid-area: card2;
}

.cause-card-3 {
  grid-area: card3;
  padding: 40px;
}

.cause-card-4 {
  grid-area: card4;
  padding: 32px 36px;
}

/* Card Content Typography */
.cause-card-top {
  margin-bottom: 32px;
}

.cause-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #ffffff;
}

.cause-card-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  display: block;
}

.cause-card-desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Card Button */
.cause-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s ease;
  margin-top: 24px;
}

.cause-card-btn:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.cause-card-btn .btn-arrow {
  font-size: 13px;
  transition: transform 0.2s ease;
}

.cause-card-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Card 4 Horizontal Inner Layout */
.cause-card-4-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.cause-card-graphic-box {
  width: 100%;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cause-card-graphic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .cause-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "card1"
      "card2"
      "card4"
      "card3";
    gap: 20px;
  }

  .get-involved-container {
    padding: 32px 24px 40px;
    border-radius: 24px;
  }

  .cause-card-4-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cause-card-graphic-box {
    height: 200px;
  }
}

/* ==========================================================================
   OUR ANALYTICS PAGE STYLES
   ========================================================================== */
.analytics-hero-section {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px var(--page-margin) 20px;
}

.analytics-title-wrapper {
  margin-bottom: 32px;
}

.analytics-main-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.analytics-kicker {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #A3D88D;
  margin-bottom: 8px;
}

.analytics-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 800px;
  line-height: 1.6;
}

/* KPI Summary Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 40px;
}

.kpi-card {
  background: linear-gradient(145deg, rgba(30, 32, 35, 0.9), rgba(18, 20, 22, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(163, 216, 141, 0.4);
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.kpi-value .unit {
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  color: #A3D88D;
  margin-left: 4px;
}

.kpi-subtext {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
}

/* Section Filter Bar & Tab Nav */
.analytics-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(20, 22, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 8px 16px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

.tab-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
  background: linear-gradient(180deg, #4C6646 0%, #2E4832 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(76, 102, 70, 0.4);
}

.analytics-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.analytics-search-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 8px 16px 8px 36px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  width: 220px;
  transition: border-color 0.25s ease, width 0.25s ease;
}

.analytics-search-input:focus {
  border-color: #A3D88D;
  width: 260px;
}

.analytics-search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* Visualization Section Containers */
.analytics-section {
  margin-bottom: 60px;
}

.section-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.section-badge {
  background: rgba(163, 216, 141, 0.15);
  border: 1px solid rgba(163, 216, 141, 0.3);
  color: #A3D88D;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 9999px;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.charts-grid.full-width {
  grid-template-columns: 1fr;
}

.chart-card {
  background: linear-gradient(160deg, rgba(28, 30, 33, 0.95), rgba(18, 19, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.chart-card.full-col {
  grid-column: 1 / -1;
}

.chart-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.chart-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.chart-card-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-chart-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-chart-control:hover,
.btn-chart-control.active {
  background: rgba(163, 216, 141, 0.2);
  border-color: #A3D88D;
  color: #A3D88D;
}

.chart-wrapper {
  width: 100%;
  min-height: 380px;
  position: relative;
  flex: 1;
}

/* Pie Chart Container Styling as specified in Prompt */
.pie-chart-card-1 {
  background-color: rgb(222, 232, 210) !important;
  padding: 20px !important;
  border-radius: 8px !important;
  border: none !important;
}

.pie-chart-card-1 .chart-card-title,
.pie-chart-card-1 .chart-card-subtitle {
  color: #1e1e1e !important;
}

.pie-chart-card-2 {
  background-color: rgb(232, 239, 194) !important;
  padding: 20px !important;
  border-radius: 8px !important;
  border: none !important;
}

.pie-chart-card-2 .chart-card-title,
.pie-chart-card-2 .chart-card-subtitle {
  color: #1e1e1e !important;
}

/* Map Containers */
.leaflet-map-container {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
}

/* Responsive Grid for Analytics */
@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}



/* Static Leaflet Map Tooltip */
.static-map-tooltip {
  background: rgba(20, 22, 25, 0.9) !important;
  border: 1px solid rgba(163, 216, 141, 0.5) !important;
  color: #ffffff !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.static-map-tooltip::before {
  border-top-color: rgba(20, 22, 25, 0.9) !important;
}

/* ============================================================
   Activities Page Styles (Frame 259)
   ============================================================ */

.activities-page-section {
  position: relative;
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  padding: 10px 0 40px;
}

/* 3-Column Grid Container matching index.html / our-story.html */
.activities-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  padding: 20px var(--page-margin) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  box-sizing: border-box;
}

/* Hero Section: Column 1 for text, Columns 2-3 for gallery */
.activities-hero-text-col {
  grid-column: 1 / span 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 20px;
}

.activities-hero-quote {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.activities-hero-author {
  font-family: var(--font-body);
  font-size: 13px;
  color: #a0a0a0;
  margin-bottom: 24px;
  display: block;
}

.activities-hero-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.activities-hero-description {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: #cccccc;
  margin: 0;
}

/* ============================================================
   Activities & Gatherings Page / Drawer Styles (Figma Spec)
   ============================================================ */
.activities-hero-section {
  width: 100%;
  background-color: #ffffff;
  color: #111111;
  padding: 48px var(--page-margin) 44px;
}

.activities-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.activities-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-quote-box {
  margin: 0 0 28px 0;
  padding: 0;
  border: none;
}

.hero-quote-text {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(24px, 2.7vw, 36px);
  font-weight: 400;
  line-height: 1.35;
  color: #111111;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.hero-quote-author {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #777777;
  letter-spacing: 0.04em;
  font-style: normal;
  margin: 0;
}

.hero-story-content {
  margin-top: 8px;
}

.hero-story-heading {
  font-family: 'Roboto', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111111;
  margin: 0 0 12px 0;
}

.hero-story-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: #444444;
  margin: 0;
}

/* Right Gallery Column */
.activities-hero-right {
  display: flex;
  flex-direction: column;
}

.activities-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.gallery-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.gallery-arrow-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.gallery-arrow-btn.prev-arrow {
  left: 12px;
}

.gallery-arrow-btn.next-arrow {
  right: 12px;
}

.activities-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.thumb-item {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: all 0.2s ease;
  background: #f0f0f0;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-item:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.thumb-item.active {
  border-color: #4C66C5;
  opacity: 1;
  box-shadow: 0 2px 10px rgba(76, 102, 197, 0.35);
}

/* 2. Catch The Upcoming Gathering Banner */
.activities-upcoming-banner {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  padding: 0 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.leaf-pattern-top {
  width: 100%;
  height: 24px;
  background-repeat: repeat-x;
  background-size: 32px 24px;
  background-position: top center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24' fill='%2362CB2C'%3E%3Cpath d='M0 0 C0 13.25 7.16 24 16 24 C24.84 24 32 13.25 32 0 Z'/%3E%3C/svg%3E");
  margin-bottom: 36px;
}

.activities-upcoming-body {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.activities-upcoming-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.activities-upcoming-subtitle {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.btn-see-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #4C66C5;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 32px;
  border-radius: 42px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(76, 102, 197, 0.35);
}

.btn-see-more:hover {
  background-color: #3b52aa;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(76, 102, 197, 0.5);
}

/* 3. White Activity Feed Section */
.activities-feed-section {
  width: 100%;
  background-color: #ffffff;
  color: #1e1e1e;
  padding: 56px var(--page-margin) 64px;
}

.activities-feed-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.activities-feed-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

.activities-feed-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  color: #111111;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.activities-feed-intro {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
  max-width: 920px;
  margin: 0;
}

/* Activity Items List */
.activities-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
  align-items: center;
}

.activity-card:last-child {
  border-bottom: none;
}

.activity-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f4f4f4;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.activity-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.act-card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  opacity: 0.85;
}

.act-card-arrow:hover {
  background: rgba(0, 0, 0, 0.85);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.act-card-arrow.prev-act-img {
  left: 10px;
}

.act-card-arrow.next-act-img {
  right: 10px;
}

.activity-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  gap: 14px;
}

.activity-item-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  color: #111111;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.activity-item-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
  margin: 0;
}

.activity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.activity-date {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #777777;
  letter-spacing: 0.03em;
}

.activity-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  font-family: 'Roboto', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333333;
  background: #ffffff;
}

@media (max-width: 900px) {
  .activities-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .activity-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }
}

/* Blue "More than a retreat" Section */
.activities-blue-section {
  width: 100%;
  background-color: #405ee9;
  color: #ffffff;
  padding: 56px var(--page-margin);
}

.activities-blue-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.activities-blue-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 400;
  color: #ffffff;
  margin: 0;
}

.activities-blue-desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 920px;
  margin: 0;
}

.activities-video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 440px;
  background: linear-gradient(135deg, #2b3db5 0%, #1a2880 100%);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-play-btn {
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #405ee9;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.activities-video-card:hover .video-play-btn {
  transform: scale(1.1);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.video-thumbnail-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.activities-video-card:hover .video-cover-img {
  opacity: 0.75;
  transform: scale(1.02);
}

.activities-video-card .video-play-btn {
  position: relative;
  z-index: 2;
}

/* Video Player Modal */
.caea-video-modal-card {
  background-color: #0c0e12;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  width: 100%;
  max-width: 860px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  position: relative;
  animation: modal-fade-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-header {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #111418;
}

.video-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
}

.video-modal-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-container video,
.video-modal-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .activities-grid-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .activities-hero-text-col {
    grid-column: 1;
    padding-right: 0;
  }

  .activities-hero-gallery-col {
    grid-column: 1;
  }

  .activity-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .activity-media-box {
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   Universal Apply Now Popup Modal Styles (CAEA)
   ========================================================================== */
.caea-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.caea-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.caea-modal-card {
  background: #111418;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(77, 100, 216, 0.12);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
}

.caea-modal-overlay.is-active .caea-modal-card {
  transform: translateY(0) scale(1);
}

.caea-modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.caea-modal-kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3d88d;
  display: block;
  margin-bottom: 6px;
}

.caea-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.15;
}

.caea-modal-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  color: #9da5b4;
  line-height: 1.5;
  margin: 0;
}

.caea-modal-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9da5b4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s ease;
}

.caea-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.05);
}

.caea-modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.caea-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .caea-form-row {
    grid-template-columns: 1fr;
  }
}

.caea-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.caea-form-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}

.caea-form-label .required-star {
  color: #ef4444;
  margin-left: 2px;
}

.caea-form-input,
.caea-form-select,
.caea-form-textarea {
  background-color: #181d24;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.caea-form-input:focus,
.caea-form-select:focus,
.caea-form-textarea:focus {
  border-color: #a3d88d;
  box-shadow: 0 0 0 3px rgba(163, 216, 141, 0.2);
  background-color: #1e242d;
}

.caea-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.caea-modal-footer {
  padding: 18px 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.caea-btn-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9da5b4;
  padding: 11px 22px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.caea-btn-cancel:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.caea-btn-submit {
  background: #a3d88d;
  color: #000000;
  border: none;
  padding: 11px 26px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.caea-btn-submit:hover {
  background: #b5e8a0;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(163, 216, 141, 0.3);
}

/* Success Confirmation Screen */
.caea-modal-success {
  text-align: center;
  padding: 40px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.caea-success-icon-wrap {
  width: 72px;
  height: 72px;
  background: rgba(163, 216, 141, 0.15);
  border: 2px solid #a3d88d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a3d88d;
  margin-bottom: 22px;
  animation: caea-success-scale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes caea-success-scale {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.caea-success-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.caea-success-desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: #9da5b4;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 0 28px 0;
}

/* ============================================================
   DEVICE-ADAPTIVE MOBILE SYSTEM & RESPONSIVE ARCHITECTURE
   Triggered on Mobile Devices (is-mobile) & Small Viewports
   ============================================================ */

/* 1. Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #34343a 0%, #1a1a1d 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  color: #ffffff;
  padding: 0;
  margin-left: 10px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, filter 0.2s ease;
  z-index: 50;
}

.mobile-menu-toggle-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.04);
}

.mobile-menu-toggle-btn:active {
  transform: scale(0.95);
  filter: brightness(0.9);
}

.hamburger-box {
  position: relative;
  width: 18px;
  height: 12px;
  display: block;
}

.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.hamburger-line.line-1 { top: 0; }
.hamburger-line.line-2 { top: 5px; }
.hamburger-line.line-3 { top: 10px; }

.mobile-menu-toggle-btn.is-active .hamburger-line.line-1 {
  transform: translateY(5px) rotate(45deg);
}

.mobile-menu-toggle-btn.is-active .hamburger-line.line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle-btn.is-active .hamburger-line.line-3 {
  transform: translateY(-5px) rotate(-45deg);
}

/* 2. Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s ease;
}

.mobile-nav-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.is-open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #0d0f14;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -14px 0 45px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px 32px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.mobile-nav-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mobile-drawer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.mobile-drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.mobile-drawer-close-btn:active {
  transform: scale(0.92);
}

.mobile-drawer-nav {
  flex: 1;
  padding: 16px 0;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #d1d5db;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-link:active,
.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.mobile-nav-link.active {
  background: rgba(163, 216, 141, 0.12);
  border-color: rgba(163, 216, 141, 0.35);
  color: #a3d88d;
}

.mobile-nav-arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease;
}

.mobile-nav-link:hover .mobile-nav-arrow,
.mobile-nav-link:active .mobile-nav-arrow {
  transform: translateX(3px);
  color: #a3d88d;
}

/* Mobile Subnav for Our Work */
.mobile-nav-has-sub {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.mobile-nav-link-row .mobile-nav-link {
  flex: 1;
}

.mobile-subnav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-subnav-toggle:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-subnav-chevron {
  transition: transform 0.25s ease;
}

.mobile-subnav-toggle.is-open .mobile-subnav-chevron {
  transform: rotate(180deg);
  color: #a3d88d;
}

.mobile-subnav-list {
  list-style: none;
  padding: 4px 0 6px 14px;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 6px;
}

.mobile-subnav-list.is-open {
  display: flex;
}

.mobile-subnav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.mobile-subnav-link:active,
.mobile-subnav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.mobile-subnav-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  background: #a3d88d;
  color: #000000;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(163, 216, 141, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.mobile-drawer-cta:active {
  transform: scale(0.98);
}

.mobile-drawer-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.drawer-socials-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.drawer-social-icons {
  display: flex;
  gap: 14px;
}

.drawer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.drawer-social-link:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.12);
}

body.mobile-nav-locked {
  overflow: hidden !important;
  touch-action: none !important;
}

/* 3. Mobile Map Enhancements */
.mobile-city-pill-scroll {
  display: none;
}

.mobile-map-detail-sheet {
  display: none;
}

/* 4. Active Rules When on Mobile (Class or Media Query) */
@media (max-width: 900px), (pointer: coarse) and (max-width: 1024px) {
  :root {
    --page-margin: 16px;
    --gutter: 14px;
  }

  body {
    overflow-x: hidden;
    width: 100%;
  }

  .site-header {
    padding: 12px var(--page-margin);
  }

  .brand-logo {
    height: 32px;
  }

  .nav-col-center {
    display: none !important;
  }

  .nav-col-end {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-menu-toggle-btn {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
  }

  /* Map section mobile improvements */
  .city-popup {
    width: min(280px, 82vw) !important;
    max-width: 86vw !important;
    padding: 18px 16px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85) !important;
  }

  .popup-badge {
    font-size: 11px !important;
    padding: 6px 16px !important;
    margin-bottom: 10px !important;
    min-height: 32px;
  }

  .popup-text {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .city-marker {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .city-marker::after {
    content: "";
    position: absolute;
    inset: -14px;
    z-index: 10;
  }

  /* Universal Modal Dialogs on Mobile */
  .caea-modal-card {
    width: 92vw !important;
    max-width: 92vw !important;
    max-height: 90vh !important;
    border-radius: 16px !important;
  }

  .caea-modal-header {
    padding: 20px 20px 16px !important;
  }

  .caea-modal-title {
    font-size: 22px !important;
  }

  .caea-modal-close-btn {
    top: 16px !important;
    right: 16px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .caea-modal-body {
    padding: 18px 20px !important;
    gap: 14px !important;
  }

  .caea-form-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .caea-modal-footer {
    padding: 16px 20px 20px !important;
    flex-direction: column-reverse !important;
    gap: 10px !important;
  }

  .caea-btn-cancel,
  .caea-btn-submit {
    width: 100% !important;
    height: 46px !important;
    justify-content: center !important;
  }

  /* Video Modal on Mobile */
  .caea-video-modal-card {
    width: 94vw !important;
    max-width: 94vw !important;
    border-radius: 14px !important;
  }

  .video-modal-header {
    padding: 14px 16px !important;
  }

  /* Footer mobile styling */
  .footer-top-section {
    gap: 16px;
  }

  .footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Mobile Responsive Footer Adaptation (<= 768px) */
  .site-footer {
    padding: 40px var(--page-margin) 28px;
    background-color: #06080c;
  }

  .footer-top-section {
    padding-bottom: 24px;
  }

  .footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-logo {
    height: 40px;
    width: auto;
  }

  .footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 100%;
  }

  .footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
  }

  .footer-social-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .footer-social-icon:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  }

  .footer-main-section {
    flex-direction: column;
    gap: 32px;
    padding: 24px 0;
  }

  .footer-nav-col {
    width: 100%;
  }

  .footer-nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 14px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .footer-link:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  }

  .footer-newsletter-col {
    width: 100%;
    max-width: 100%;
  }

  .footer-subscribe-title {
    font-size: 15px;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
  }

  .footer-subscribe-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
    margin-bottom: 16px;
  }

  .footer-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    background: transparent;
    padding: 0;
    border-radius: 0;
  }

  .footer-email-input {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    font-size: 16px !important; /* Prevents iOS Safari auto-zoom */
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.35);
  }

  .footer-email-input:focus {
    outline: none;
    border-color: #4b68ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(75, 104, 255, 0.25);
  }

  .footer-submit-btn {
    width: 100%;
    height: 48px;
    border-radius: 9999px;
    background: #4b68ff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(75, 104, 255, 0.4), 0 3px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .footer-submit-btn:active {
    transform: scale(0.98);
    background: #3b54b2;
    box-shadow: 0 3px 10px rgba(75, 104, 255, 0.3);
  }

  .footer-bottom-section {
    text-align: center;
    padding-top: 20px;
  }

  .footer-copyright {
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0.04em;
    color: #64748b;
  }

  /* Prevent automatic mobile safari zoom on input focus */
  input, textarea, select {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  :root {
    --page-margin: 12px;
    --gutter: 10px;
  }

  .brand-logo {
    height: 28px;
  }

  .site-footer {
    padding: 32px var(--page-margin) 24px;
  }

  .footer-logo {
    height: 36px;
  }

  .footer-tagline {
    font-size: 13px;
  }

  .footer-social-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .footer-copyright {
    font-size: 10px;
  }
}

/* Explicit device class selector support (when detected as mobile) */
html.is-mobile .nav-col-center {
  display: none !important;
}

html.is-mobile .mobile-menu-toggle-btn {
  display: inline-flex;
}

html.is-mobile .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* ============================================================
   Mobile Touch Screen & Gesture Enhancements
   ============================================================ */
html.has-touch *,
html.has-touch *::before,
html.has-touch *::after {
  -webkit-tap-highlight-color: transparent;
}

html.has-touch button,
html.has-touch a,
html.has-touch [role="button"],
html.has-touch .nav-item,
html.has-touch .tab-btn,
html.has-touch .subtab-btn,
html.has-touch .filter-pill,
html.has-touch .city-marker,
html.has-touch .cause-card-btn,
html.has-touch .btn-watch-now,
html.has-touch .admin-btn,
html.has-touch .action-icon-btn,
html.has-touch .act-card-arrow,
html.has-touch .thumb-item {
  touch-action: manipulation;
}

/* Touch Horizontal Scroll Momentum Containers */
.tab-group,
.admin-tab-nav,
.admin-subtab-nav,
.activities-gallery-thumbs,
.chart-controls,
.table-wrapper,
.admin-table-container,
#fossil-filters,
#textile-filters {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Tactile Active Press Feedback for Touch Devices */
html.has-touch .cause-card-btn:active,
html.has-touch .btn-watch-now:active,
html.has-touch .admin-btn:active,
html.has-touch .tab-btn:active,
html.has-touch .filter-pill:active,
html.has-touch .mobile-nav-link:active,
html.has-touch .popup-badge:active {
  opacity: 0.88;
  transform: scale(0.97);
  transition: transform 0.1s ease, opacity 0.1s ease;
}

/* ============================================================
   Desktop & Mobile HTML Section Visibility Architecture
   ============================================================ */
@media (min-width: 769px) {
  .mobile-only,
  .mobile-section,
  .mobile-view {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-only,
  .desktop-section,
  .desktop-view {
    display: none !important;
  }
}

