/* ==========================================================================
   LATIN Modern Theme - Main CSS & Design System
   Color Palette:
   - Primary Green: #085740
   - Accent Orange:  #F38222
   - Neutral Dark:   #1A202C
   - Neutral Light:  #FAFAFA
   ========================================================================== */

:root {
  --color-primary: #085740;
  --color-primary-dark: #053B2B;
  --color-primary-light: #0D7557;
  --color-secondary: #F38222;
  --color-secondary-hover: #E07012;
  --color-dark: #1A202C;
  --color-muted: #4A5568;
  --color-light: #FAFAFA;
  --color-white: #FFFFFF;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(8, 87, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(8, 87, 64, 0.12);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.25;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-secondary);
}

/* Container Utility */
.latin-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons System */
.btn-latin-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-white) !important;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(8, 87, 64, 0.25);
  transition: var(--transition-smooth);
}

.btn-latin-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 87, 64, 0.35);
}

.btn-latin-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-secondary);
  color: var(--color-white) !important;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(243, 130, 34, 0.3);
  transition: var(--transition-smooth);
}

.btn-latin-orange:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 130, 34, 0.4);
}

.btn-latin-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-primary) !important;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-latin-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
}

/* Header & Navigation Bar */
.latin-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(8, 87, 64, 0.08);
  padding: 1rem 0;
}

.latin-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.latin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-primary);
  text-decoration: none;
}

.latin-brand-img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  background: #ffffff;
  padding: 2px;
}

.latin-brand-img:hover {
  transform: scale(1.03);
}

.latin-brand-badge {
  background: rgba(243, 130, 34, 0.15);
  color: var(--color-secondary);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Top Navigation Bar & Dropdown Hierarchy (PRD v3.0) */
.latin-top-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(8, 87, 64, 0.05);
}

.nav-link .arrow {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

.nav-badge {
  background: #085740;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.nav-badge.orange {
  background: #F38222;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 1000;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  color: var(--color-dark);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.dropdown-menu li a:hover {
  background: rgba(8, 87, 64, 0.08);
  color: var(--color-primary);
  padding-left: 1.5rem;
}

/* Hero Section Carousel */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: 5rem 0 6rem 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-overlay-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(243, 130, 34, 0.2);
  border: 1px solid rgba(243, 130, 34, 0.4);
  color: var(--color-secondary);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.2rem;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--color-secondary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Impact Highlights Card Grid */
.impact-section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  color: var(--color-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.impact-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.impact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
  transition: var(--transition-smooth);
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.impact-card:hover::before {
  background: var(--color-secondary);
}

.impact-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.impact-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.impact-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Orbit Program Component */
.orbit-section {
  background: linear-gradient(180deg, var(--color-white) 0%, rgba(8, 87, 64, 0.03) 100%);
  padding: 5rem 0;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.orbit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.orbit-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid rgba(8, 87, 64, 0.12);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.orbit-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.orbit-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(8, 87, 64, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.orbit-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

/* Interactive Map Section */
.map-section {
  padding: 4.5rem 0;
}

.map-container-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

#leaflet-map {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  z-index: 10;
}

.map-info-popup {
  padding: 0.5rem;
}

.map-info-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.map-info-badge {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

/* WhatsApp Floating Widget */
.whatsapp-float-widget {
  position: fixed;
  bottom: 7.5rem;
  right: 2.125rem;
  z-index: 9999;
}

.whatsapp-float-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.whatsapp-float-trigger:hover {
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
}

/* AI Chatbot Floating Widget */
.ai-chatbot-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}

.ai-chatbot-trigger {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(8, 87, 64, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: var(--transition-smooth);
}

.ai-chatbot-trigger:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 14px 36px rgba(8, 87, 64, 0.5);
}

.ai-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 520px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-smooth);
}

.ai-chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  background: var(--color-primary);
  color: #fff;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.ai-chat-subtitle {
  font-size: 0.75rem;
  opacity: 0.85;
}

.ai-chat-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.ai-chat-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #F8FAFC;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.chat-bubble.bot {
  background: var(--color-white);
  color: var(--color-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.chat-bubble.user {
  background: var(--color-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-chat-footer {
  padding: 0.85rem;
  background: var(--color-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 0.5rem;
}

.ai-chat-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  outline: none;
  font-size: 0.9rem;
}

.ai-chat-input:focus {
  border-color: var(--color-primary);
}

.ai-chat-send {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer Section */
.latin-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-title {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-subtitle {
    margin: 0 auto 2rem auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .ai-chat-window {
    width: calc(100vw - 2rem);
    right: -1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* E-Library Cover Card Animations & Premium Styles */
.elibrary-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.elibrary-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(8, 87, 64, 0.12), 0 4px 8px rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(8, 87, 64, 0.25) !important;
}

.elibrary-card .book-cover-img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.elibrary-card:hover .book-cover-img {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================================================
   PRD EXTENDED DESIGN SYSTEM TOKENS (LATIN PRD v3.5)
   ========================================================================== */

/* Page Hero Banner */
.page-hero-banner {
  background: linear-gradient(135deg, #14532D 0%, #064E3B 50%, #0F172A 100%);
  color: #FFFFFF;
  padding: 4.5rem 0 3.5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #C25E2E;
}

.page-hero-tag {
  color: #F38222;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.page-hero-title {
  font-size: 2.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 760px;
  margin-top: 1rem;
  line-height: 1.65;
  color: #E2E8F0;
}

/* Timeline Components */
.timeline-track {
  position: relative;
  padding-left: 2.5rem;
  border-left: 3px solid #E2E8F0;
  margin: 2rem 0;
}

.timeline-node {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -3.05rem;
  top: 0.25rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #C25E2E;
  border: 4px solid #FFFFFF;
  box-shadow: 0 0 0 2px #C25E2E;
}

/* Archetype How-We-Work Matrix */
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.archetype-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(20, 83, 45, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.archetype-card:hover {
  transform: translateY(-4px);
  border-color: #C25E2E;
  box-shadow: 0 12px 30px rgba(194, 94, 46, 0.12);
}

/* Faceted Filter Pills */
.filter-pills-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-pill {
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover, .filter-pill.active {
  background: #14532D;
  color: #FFFFFF;
  border-color: #14532D;
}

/* Voice Audio Player Box */
.voice-audio-box {
  background: #0F172A;
  color: #F8FAFC;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1.25rem 0;
  border: 1px solid rgba(243, 130, 34, 0.3);
}

.voice-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #C25E2E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}

.voice-play-btn:hover {
  transform: scale(1.1);
  background: #F38222;
}

/* Citation Box */
.citation-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #14532D;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  position: relative;
  font-size: 0.88rem;
  color: #334155;
}

/* Editorial Content (Perspectives & Reading Layout) */
.editorial-container {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #1E293B;
}

.editorial-container p {
  margin-bottom: 1.5rem;
}

/* Landscape Drawer */
.landscape-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  max-width: 90vw;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.landscape-drawer.open {
  right: 0;
}

/* ==========================================================================
   Hero Banner Slider Component
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  min-height: 560px;
  background: #064E3B;
  color: #FFFFFF;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  transform: scale(1.03);
  display: flex;
  align-items: center;
  padding: 5rem 0 5rem 0;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide-body {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 5;
}

.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(243, 130, 34, 0.2);
  border: 1px solid rgba(243, 130, 34, 0.5);
  backdrop-filter: blur(8px);
  color: #F38222;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 1.15rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-slide-title {
  font-size: 3rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  margin-bottom: 1.35rem;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.85);
}

.hero-slide-title .highlight-text {
  color: #F38222;
}

.hero-slide-desc {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #FFFFFF;
  max-width: 760px;
  margin: 0 auto 2.25rem auto;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.85);
}

.hero-slide-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 48, 29, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-arrow:hover {
  background: #F38222;
  border-color: #F38222;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 24px;
}

.slider-arrow.next {
  right: 24px;
}

.slider-footer-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(10, 35, 25, 0.65);
  backdrop-filter: blur(12px);
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dots .dot.active {
  width: 28px;
  border-radius: 6px;
  background: #F38222;
}

.slider-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #E2E8F0;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .hero-slide {
    padding: 3.5rem 0 4.5rem 0;
    min-height: 500px;
  }
  .hero-slide-title {
    font-size: 1.85rem;
  }
  .hero-slide-desc {
    font-size: 0.95rem;
  }
  .slider-arrow {
    display: none;
  }
}

/* ==========================================================================
   MEL Framework 6 Dimensions Single Row
   ========================================================================== */
.impact-grid-six {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

@media (max-width: 1024px) {
  .impact-grid-six {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .impact-grid-six {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Partner Logos Component
   ========================================================================== */
.partner-logo-card {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.partner-logo-card:hover {
  transform: translateY(-4px);
  border-color: #14532D !important;
  box-shadow: 0 8px 24px rgba(8, 87, 64, 0.12) !important;
}

.partner-logo-card:hover img {
  filter: grayscale(0%) !important;
  transform: scale(1.08);
}

@keyframes zoomLogoModal {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Accountability & Transparency Cards
   ========================================================================== */
.accountability-card {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.accountability-card:hover {
  transform: translateY(-4px);
  border-color: #14532D !important;
  box-shadow: 0 10px 24px rgba(20, 83, 45, 0.08) !important;
}

/* ==========================================================================
   Global Modal Overlay & Lightbox Box
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-box {
  background: #ffffff;
  width: 100%;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(20, 83, 45, 0.12);
  position: relative;
  animation: zoomModalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close {
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.35rem;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

@keyframes zoomModalIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Timeline Hero Slider Component (History & Journey)
   ========================================================================== */
.timeline-slider-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.timeline-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.timeline-progress-track {
  position: absolute;
  top: 50%;
  left: 2rem;
  right: 2rem;
  height: 4px;
  background: #E2E8F0;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #14532D, #C25E2E);
  transition: width 0.4s ease;
  width: 0%;
}

.timeline-step-btn {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 9999px;
  padding: 0.65rem 1.35rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #64748B;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-step-btn:hover {
  border-color: #14532D;
  color: #14532D;
  transform: translateY(-2px);
}

.timeline-step-btn.active {
  background: #14532D;
  border-color: #14532D;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(20, 83, 45, 0.25);
  transform: scale(1.05);
}

.timeline-slide-card {
  display: none;
  background: linear-gradient(135deg, #064E3B 0%, #0F3E30 60%, #17352B 100%);
  color: #FFFFFF;
  border-radius: 28px;
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 40px -15px rgba(6, 78, 59, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeSlideIn 0.35s ease-out;
}

.timeline-slide-card.active {
  display: block;
}

.timeline-slide-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 94, 46, 0.25) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  .timeline-stepper {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  .timeline-progress-track {
    display: none;
  }
  .timeline-slide-card {
    padding: 2.25rem 1.5rem;
  }
}

/* ==========================================================================
   Advanced Interactive Map & Geoportal Component
   ========================================================================== */
.map-showcase-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .map-showcase-container {
    grid-template-columns: 1fr;
  }
}

.map-viewport-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(20, 83, 45, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
  height: 100%;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  background: #E2E8F0;
}

#leaflet-map {
  width: 100%;
  height: 100% !important;
  min-height: 540px;
  flex: 1 1 auto;
}

.map-floating-bar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 800;
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  border: 1px solid #E2E8F0;
}

.map-layer-btn {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.map-layer-btn.active, .map-layer-btn:hover {
  background: #14532D;
  color: #FFFFFF;
}

/* Pulsing Leaflet Markers */
.pulse-marker-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pulse-marker-core {
  width: 30px;
  height: 30px;
  background: #14532D;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(20, 83, 45, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 13px;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}

.pulse-marker-wrapper:hover .pulse-marker-core,
.pulse-marker-wrapper.active .pulse-marker-core {
  background: #C25E2E;
  transform: scale(1.22);
}

.pulse-marker-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(20, 83, 45, 0.4);
  animation: mapPinPulse 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

@keyframes mapPinPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.landscape-detail-card {
  background: #FFFFFF;
  border: 1px solid rgba(20, 83, 45, 0.12);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Custom Leaflet Popup */
.leaflet-popup-content-wrapper {
  border-radius: 18px !important;
  box-shadow: 0 16px 36px rgba(0,0,0,0.15) !important;
  padding: 0 !important;
  border: 1px solid rgba(20, 83, 45, 0.1) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.5 !important;
}

.leaflet-container {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* ==========================================================================
   LATIN Institutional i18n & Language Switcher
   ========================================================================== */
.latin-lang-switch {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border-radius: 20px;
  padding: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #E2E8F0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.latin-lang-btn {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.1;
  font-family: inherit;
}

.latin-lang-btn:hover:not(.active) {
  color: #14532D;
  background: rgba(20, 83, 45, 0.08);
}

.latin-lang-btn.active {
  background: #14532D;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(20, 83, 45, 0.25);
  cursor: default;
}

.latin-i18n-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0B291B;
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border: 1px solid #C25E2E;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.latin-i18n-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

