@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* GLOBAL CSS VARIABLES */
:root {
  --color-primary: #C05746;       /* Red Institutional */
  --color-primary-hover: #A94333;
  --color-secondary: #4A5D23;     /* Green Institutional */
  --color-secondary-hover: #3B4B1B;
  --color-white: #FFFFFF;
  --color-light: #F5F5F5;
  --color-light-alt: #EAEAEA;
  --color-dark: #1A1A1A;
  --color-dark-muted: #555555;
  --color-dark-light: #777777;
  --font-main: 'Montserrat', sans-serif;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --header-height: 80px;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark-muted);
}

/* HEADER & NAVIGATION */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-white);
  z-index: 1000;
  transition: var(--transition-normal);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  height: 70px;
}

.header-container {
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition-normal);
}

header.scrolled .logo img {
  height: 42px;
}

/* DESKTOP MENU */
.nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  padding: 0 12px;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--color-primary);
}

.nav-link i.fa-chevron-down {
  font-size: 10px;
  transition: var(--transition-fast);
}

.nav-item:hover .nav-link i.fa-chevron-down {
  transform: rotate(180deg);
}

/* Dropdowns */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-normal);
  padding: 10px 0;
  border-top: 3px solid var(--color-primary);
}

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

.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-dark-muted);
}

.dropdown-link:hover {
  background-color: var(--color-light);
  color: var(--color-primary);
  padding-left: 25px;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--color-light-alt);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-light);
  color: var(--color-dark);
}

.lang-btn:hover {
  background-color: var(--color-light-alt);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: var(--transition-fast);
  min-width: 100px;
  margin-top: 5px;
  overflow: hidden;
}

.lang-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark-muted);
}

.lang-opt:hover {
  background-color: var(--color-light);
  color: var(--color-primary);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  letter-spacing: 0.5px;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 87, 70, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-dark:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
  padding: 100px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--color-light);
  padding-bottom: 10px;
}

.mobile-nav-link {
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0 0 15px;
}

.mobile-submenu.open {
  display: flex;
}

.mobile-sub-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark-muted);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* APP CONTAINER / ROUTER TRANSITION */
#app-container {
  margin-top: var(--header-height);
  flex-grow: 1;
}

.page-section {
  animation: fadeIn 0.4s ease forwards;
}

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

/* SECTION COMMON STYLES */
section {
  padding: 80px 0;
  position: relative;
}

.bg-light {
  background-color: var(--color-light);
}

.bg-dark {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.bg-dark p {
  color: #D5DDD0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
  color: inherit;
}

.section-desc {
  font-size: 16px;
  color: var(--color-dark-muted);
}

.bg-dark .section-desc {
  color: #D5DDD0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* HERO COMMON STYLE */
.page-hero {
  padding: 100px 0;
  background-color: var(--color-secondary);
  color: var(--color-white);
  text-align: center;
}

.page-hero .section-label {
  color: #D6E4C4;
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  font-size: 18px;
  color: #D5DDD0;
  max-width: 700px;
  margin: 0 auto;
}

/* HERO MAIN (HOME) */
.hero-main {
  width: 100%;
  height: 90vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35); /* 35% opacity overlay */
  z-index: 1;
}

.hero-main .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 100%;
  width: 100%;
  color: var(--color-white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content .section-label {
  color: var(--color-white);
  font-size: 14px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  margin: 15px 0 25px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  max-width: 900px;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 35px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

/* CREDIBILITY STRIP */
.credibility-strip {
  padding: 40px 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-light-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 20px;
}

.stat-item {
  padding: 10px;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark-muted);
}

/* PRESENTATION BLOCK (2 COLUMNS) */
.presentation-image {
  position: relative;
}

.presentation-image img {
  border-radius: var(--border-radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.presentation-content p {
  margin-bottom: 20px;
}

.presentation-content h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

/* PILARES CARDS */
.pilar-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-light-alt);
}

.pilar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.pilar-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.pilar-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.pilar-card:hover .pilar-img-wrapper img {
  transform: scale(1.05);
}

.pilar-icon-badge {
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  border: 3px solid var(--color-white);
}

.pilar-card:nth-child(even) .pilar-icon-badge {
  background-color: var(--color-secondary);
}

.pilar-info {
  padding: 35px 20px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pilar-info h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.pilar-info p {
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pilar-link {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pilar-card:nth-child(even) .pilar-link {
  color: var(--color-secondary);
}

.pilar-link:hover {
  letter-spacing: 0.5px;
}

/* MOZAMBIQUE MAP SECTION */
.map-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #F8F9FA;
  padding: 30px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-light-alt);
}

.map-visual svg, #svg2 {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.province-path, #svg2 path {
  fill: #D2D8CB;
  stroke: #FFFFFF;
  stroke-width: 1.5;
  transition: var(--transition-fast);
  cursor: pointer;
}

/* Hovering on any path highlights it in primary red */
#svg2 path:hover {
  fill: var(--color-primary) !important;
}

/* Active provinces default to green when not hovered */
.province-path.active, 
#svg2 #MZ-L, 
#svg2 #MZ-MPM, 
#svg2 #MZ-G, 
#svg2 #MZ-I {
  fill: var(--color-secondary);
}

/* PARTNERS LOGO GRID */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  padding: 10px;
  background-color: var(--color-white);
  border: 1px solid var(--color-light-alt);
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
}

.partner-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition-normal);
}

.partner-logo:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* CALL TO ACTION BANNER */
.cta-banner {
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--color-white);
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 50% opacity overlay */
  z-index: 1;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cta-banner h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* HISTÓRIAS DE MUDANÇA (HIDDEN ON LAUNCH) */
.stories-carousel {
  background-color: var(--color-light);
  border-radius: var(--border-radius-lg);
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.story-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}

.story-img img {
  border-radius: var(--border-radius-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.story-quote blockquote {
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 20px;
  position: relative;
  line-height: 1.5;
}

.story-quote blockquote::before {
  content: '"';
  font-size: 80px;
  color: rgba(192, 87, 70, 0.15);
  position: absolute;
  top: -40px;
  left: -20px;
}

.story-author {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary);
}

.story-role {
  font-size: 13px;
  color: var(--color-dark-light);
}

/* CARDS COMMON */
.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: 30px;
  border: 1px solid var(--color-light-alt);
  transition: var(--transition-normal);
}

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

/* MINI-CARDS ORG */
.org-card {
  padding: 24px;
  border-left: 4px solid var(--color-primary);
}

.org-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* VALUES GRID */
.value-card {
  padding: 24px;
  text-align: center;
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-light);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: var(--transition-normal);
}

.value-card:hover .value-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.value-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 13px;
}

/* TEAM EXECUTIVE */
.member-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--color-light-alt);
  transition: var(--transition-normal);
}

.member-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.member-img-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #EEE;
}

.member-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.member-card:hover .member-img-wrapper img {
  transform: scale(1.03);
}

.member-info {
  padding: 20px;
}

.member-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.member-role {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 15px;
}

.member-bio {
  font-size: 13px;
  margin-bottom: 15px;
}

.member-socials {
  display: flex;
  gap: 10px;
}

.member-social-btn {
  width: 32px;
  height: 32px;
  background-color: var(--color-light);
  color: var(--color-dark-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.member-social-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ACCORDIONS (STRATEGIC PILLARS) */
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 40px;
}

.pillar-item {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-light-alt);
  overflow: hidden;
}

.pillar-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 24px;
  text-align: left;
  font-weight: 700;
  font-size: 18px;
  gap: 20px;
  justify-content: space-between;
}

.pillar-trigger-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pillar-trigger-icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-light);
  color: var(--color-primary);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.pillar-chevron {
  transition: var(--transition-normal);
  color: var(--color-dark-light);
}

.pillar-item.active .pillar-chevron {
  transform: rotate(180deg);
}

.pillar-item.active .pillar-trigger {
  border-bottom: 1px solid var(--color-light);
}

.pillar-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.pillar-item.active .pillar-content {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(0.9, 0, 0.8, 0.2);
}

.pillar-content-inner {
  padding: 24px;
  font-size: 14px;
  line-height: 1.6;
}

/* METAS 2030 NUMBERS */
.meta-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  padding: 24px;
  text-align: center;
  color: var(--color-white);
}

.meta-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.bg-dark .meta-number {
  color: #E29B90;
}

.meta-desc {
  font-size: 13px;
  color: #D5DDD0;
  font-weight: 500;
}

/* LIST WITH ICONS */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.icon-list-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.icon-list-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.icon-list-text {
  font-size: 14px;
  color: var(--color-dark-muted);
}

/* METRICS PILLARS STRIP */
.metrics-strip {
  padding: 50px 0;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.metrics-strip .stat-number {
  color: var(--color-white);
}

.metrics-strip .stat-label {
  color: rgba(255,255,255,0.8);
}

/* PROJECTS FILTER & GRID */
.filter-bar {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-light-alt);
  background-color: var(--color-white);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-dark-muted);
  min-width: 160px;
}

.project-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-light-alt);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-area-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: var(--color-light);
  color: var(--color-primary);
  margin-bottom: 15px;
}

.project-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.project-meta-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 13px;
  border-bottom: 1px solid var(--color-light);
  padding-bottom: 15px;
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-dark-muted);
}

.project-meta-item i {
  color: var(--color-primary);
  width: 14px;
  text-align: center;
}

.project-desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.project-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-active .project-status-dot { background-color: #4CAF50; }
.status-active { color: #4CAF50; }

.status-completed .project-status-dot { background-color: #2196F3; }
.status-completed { color: #2196F3; }

.status-planning .project-status-dot { background-color: #FF9800; }
.status-planning { color: #FF9800; }

/* TRANSPARENCY CHART STYLES */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.chart-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-light-alt);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chart-card h4 {
  font-size: 16px;
  margin-bottom: 25px;
  color: var(--color-dark);
}

.chart-svg-container {
  width: 220px;
  height: 220px;
  margin-bottom: 30px;
  position: relative;
}

.chart-legend {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-dark-muted);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.chart-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.chart-center-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark);
}

.chart-center-lbl {
  font-size: 10px;
  color: var(--color-dark-light);
  text-transform: uppercase;
}

/* COMPARATIVE FINANCIAL TABLE */
.financial-table-wrapper {
  overflow-x: auto;
  margin-top: 30px;
  border: 1px solid var(--color-light-alt);
  border-radius: var(--border-radius-md);
}

.financial-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.financial-table th {
  background-color: var(--color-light);
  font-weight: 700;
  padding: 15px 20px;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-light-alt);
}

.financial-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-light-alt);
  color: var(--color-dark-muted);
}

.financial-table tr:last-child td {
  border-bottom: none;
}

.financial-table tr:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

/* DOCUMENT LIST (PDF) */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-light-alt);
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
}

.doc-item:hover {
  border-color: var(--color-primary);
  background-color: rgba(192, 87, 70, 0.02);
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.doc-icon {
  font-size: 24px;
  color: var(--color-primary);
}

.doc-name {
  font-weight: 600;
  font-size: 14px;
}

.doc-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-dark-light);
  text-transform: uppercase;
}

/* PARTNERS TAB SYSTEM */
.tabs-header {
  display: flex;
  gap: 12px;
  border-bottom: none;
  margin-bottom: 40px;
  overflow-x: auto;
  padding: 6px;
  background-color: var(--color-light);
  border-radius: var(--border-radius-lg);
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.tab-btn {
  padding: 12px 24px;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-dark-muted);
  border: none;
  border-radius: var(--border-radius-md);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tab-btn:hover {
  color: var(--color-primary);
  background-color: rgba(192, 87, 70, 0.08);
}

.tab-btn.active {
  color: var(--color-white);
  background-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

/* DONATION WIZARD (FORM) */
.donation-wizard {
  background-color: var(--color-white);
  border: 1px solid var(--color-light-alt);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-light-alt);
  z-index: 1;
}

.wizard-progress-bar {
  position: absolute;
  top: 15px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  z-index: 2;
  transition: width 0.3s ease;
}

.wizard-step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 2px solid var(--color-light-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-dark-light);
  z-index: 3;
  transition: var(--transition-normal);
  position: relative;
}

.wizard-step-node.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(192, 87, 70, 0.15);
}

.wizard-step-node.completed {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-white);
}

.wizard-step-label {
  position: absolute;
  top: 38px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-dark-light);
}

.wizard-step-node.active .wizard-step-label {
  color: var(--color-primary);
}

.wizard-step-panel {
  display: none;
}

.wizard-step-panel.active {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

/* FORM FIELDS styling */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-light-alt);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-light);
  color: var(--color-dark);
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(192, 87, 70, 0.1);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.btn-group-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.btn-selectable {
  padding: 15px 10px;
  border: 2px solid var(--color-light-alt);
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-dark-muted);
}

.btn-selectable:hover {
  border-color: var(--color-primary);
}

.btn-selectable.selected {
  border-color: var(--color-primary);
  background-color: rgba(192, 87, 70, 0.05);
  color: var(--color-primary);
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  border-top: 1px solid var(--color-light-alt);
  padding-top: 20px;
}

/* NEWS LAYOUT */
.news-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.news-featured-main {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-light-alt);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-featured-img {
  aspect-ratio: 16/9;
  background-color: #DDD;
}

.news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured-body {
  padding: 30px;
}

.news-featured-title {
  font-size: 26px;
  font-weight: 800;
  margin: 15px 0;
}

.news-featured-title:hover {
  color: var(--color-primary);
}

.news-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-dark-light);
  margin-bottom: 10px;
  align-items: center;
}

.news-tag {
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 700;
}

.news-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-sidebar-item {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-light-alt);
  padding: 20px;
}

.news-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  margin: 10px 0 5px;
  line-height: 1.4;
}

.news-sidebar-title:hover {
  color: var(--color-primary);
}

.news-grid-item {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-light-alt);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.news-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-grid-img {
  aspect-ratio: 16/10;
  background-color: #EEE;
}

.news-grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-grid-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-grid-title {
  font-size: 16px;
  margin: 10px 0;
  line-height: 1.4;
}

.news-grid-title:hover {
  color: var(--color-primary);
}

.news-grid-desc {
  font-size: 13px;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* NEWS ARTICLE INDIVIDUAL VIEW */
.article-header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.article-header h1 {
  font-size: 40px;
  font-weight: 800;
  margin: 20px 0;
  line-height: 1.2;
}

.article-banner {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 50px;
  background-color: #DDD;
}

.article-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-container {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 700px;
  margin: 0 auto;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-dark-muted);
}

.article-content p {
  margin-bottom: 25px;
  font-size: 16px;
}

.article-content blockquote {
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  color: var(--color-dark);
  padding-left: 20px;
  border-left: 4px solid var(--color-primary);
  margin: 30px 0;
}

.article-content img {
  border-radius: var(--border-radius-md);
  margin: 30px 0;
}

.article-author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 30px;
  background-color: var(--color-light);
  border-radius: var(--border-radius-md);
  margin-top: 50px;
  border: 1px solid var(--color-light-alt);
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #CCC;
  flex-shrink: 0;
}

.author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 3px;
}

.author-role {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.author-bio {
  font-size: 13px;
  color: var(--color-dark-muted);
}

/* CONTACTS PAGE SPECIFIC */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(192, 87, 70, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-lbl {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 5px;
}

.contact-info-val {
  font-size: 14px;
  color: var(--color-dark-muted);
  line-height: 1.5;
}

.contact-map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-light-alt);
  height: 350px;
  margin-top: 30px;
}

.contact-map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* NEWSLETTER STRIP */
.newsletter-strip {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 0;
  text-align: center;
}

.newsletter-strip .container {
  max-width: 600px;
}

.newsletter-strip h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.newsletter-strip p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex-grow: 1;
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  border: none;
  font-size: 14px;
}

/* FOOTER styling */
footer {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 80px 0 30px;
  font-size: 14px;
  border-top: 4px solid var(--color-primary);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 15px;
  text-transform: uppercase;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-col p {
  color: #C8D2BF;
  line-height: 1.6;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #C8D2BF;
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 5px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  color: #C8D2BF;
}

.footer-contact-item i {
  color: var(--color-primary);
  margin-top: 3px;
  width: 14px;
  text-align: center;
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.footer-newsletter-form input {
  padding: 12px 15px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-size: 13px;
}

.footer-newsletter-form input::placeholder {
  color: #8C9982;
}

.footer-newsletter-form button {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.footer-newsletter-form button:hover {
  background-color: var(--color-primary-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-bottom-text {
  font-size: 11px;
  color: #8C9982;
  line-height: 1.6;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: #8C9982;
}

.footer-legal-links a:hover {
  color: var(--color-white);
}

/* SUCCESS ALERT */
.success-alert {
  background-color: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: var(--border-radius-md);
  padding: 24px;
  color: #2E7D32;
  text-align: center;
  margin-top: 20px;
  animation: fadeIn 0.3s ease forwards;
}

.success-alert i {
  font-size: 40px;
  margin-bottom: 15px;
}

.success-alert h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.success-alert p {
  font-size: 14px;
  color: #1B5E20;
}

/* RESPONSIVE BREAKPOINTS */

@media (max-width: 1199px) {
  .header-container {
    padding: 0 15px;
  }
}

/* Tablet & Mobile (under 1024px) */
@media (max-width: 1023px) {
  header {
    height: 70px;
  }
  
  header.scrolled {
    height: 70px;
  }
  
  .nav-menu {
    display: none; /* Hide desktop menu */
  }
  
  .menu-toggle {
    display: flex; /* Show hamburger */
  }
  
  .hero-main h1 {
    font-size: 42px;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  
  .news-featured-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet portrait (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-2 {
    gap: 30px;
  }
}

/* Mobile (under 768px) */
@media (max-width: 767px) {
  .page-hero {
    padding: 60px 0;
  }
  
  .page-hero h1 {
    font-size: 28px;
  }
  
  .page-hero p {
    font-size: 14px;
  }

  section {
    padding: 60px 0;
  }
  
  .hero-main {
    height: auto;
    padding: 120px 0 80px;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .hero-content p {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .cta-banner h2 {
    font-size: 28px;
  }
  
  .cta-banner p {
    font-size: 15px;
  }
  
  .donation-wizard {
    padding: 20px;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .news-featured-body {
    padding: 20px;
  }
  
  .news-featured-title {
    font-size: 20px;
  }
  
  .btn-selectable {
    font-size: 11px;
    padding: 10px 5px;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* MAP TOOLTIP */
.map-tooltip {
  position: absolute;
  display: none;
  background-color: rgba(26, 26, 26, 0.95);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Montserrat', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

/* PDF MODAL VIEWER SYSTEM */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #FFFFFF;
  width: 90%;
  max-width: 950px;
  height: 85%;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(-40px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--color-light-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #FFFFFF;
}

.modal-header h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-dark);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-dark-light);
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-body {
  flex-grow: 1;
  padding: 0;
  background-color: #E4E7E1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-footer {
  padding: 18px 25px;
  border-top: 1px solid var(--color-light-alt);
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  background-color: #FFFFFF;
}

/* DOCUMENT GRID & ACTIONS RESPONSIVENESS */
.doc-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 650px) {
  .doc-item {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 15px;
  }
  .doc-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .modal-container {
    width: 95%;
    height: 90%;
  }
  .modal-footer {
    padding: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Center all content in the last section of each page before footer */
#app-container > section:last-of-type {
  text-align: center;
}

#app-container > section:last-of-type .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#app-container > section:last-of-type .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#app-container > section:last-of-type .grid-2,
#app-container > section:last-of-type .grid-3,
#app-container > section:last-of-type .grid-4,
#app-container > section:last-of-type .grid-5 {
  justify-content: center;
  text-align: center;
}

#app-container > section:last-of-type .card,
#app-container > section:last-of-type .pilar-card,
#app-container > section:last-of-type .org-card {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#app-container > section:last-of-type ul, 
#app-container > section:last-of-type ol {
  display: inline-block;
  text-align: left;
}

#app-container > section:last-of-type p,
#app-container > section:last-of-type h2,
#app-container > section:last-of-type h3,
#app-container > section:last-of-type h4,
#app-container > section:last-of-type h5 {
  text-align: center;
}

#app-container > section:last-of-type .cta-buttons,
#app-container > section:last-of-type .social-links {
  justify-content: center !important;
}

#app-container > section:last-of-type .icon-list {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin: 0 auto;
}

/* VOLUNTARIADO PROCESS CARDS */
.process-card {
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.process-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* SYMMETRICAL SPACING & TEXT ALIGNMENT OVERRIDES */

/* Centering the last section must not affect the Contacts Page */
.contacts-page-section,
.contacts-page-section h3,
.contacts-page-section h4,
.contacts-page-section p,
.contacts-page-section label,
.contacts-page-section input,
.contacts-page-section select,
.contacts-page-section textarea,
.contacts-page-section .contact-info-lbl,
.contacts-page-section .contact-info-val {
  text-align: left !important;
}

/* Enforce symmetrical section titles spacing across the site */
.section-title {
  margin-bottom: 24px !important;
}
.section-header {
  margin-bottom: 40px !important;
}

/* Prevent double spacing: remove top margin from containers following section-header */
.section-header + div,
.section-header + .grid-2,
.section-header + .grid-3,
.section-header + .grid-4,
.section-header + .partners-grid,
.section-header + .process-steps-container {
  margin-top: 0 !important;
}

/* Prevent double spacing: if section title is the last element inside header, reset its margin */
.section-header > *:last-child {
  margin-bottom: 0 !important;
}

/* Standardize margin under main column headings inside sections */
section h2[style*="font-size: 28px"],
section h2[style*="font-size:28px"],
section h3[style*="font-size: 28px"],
section h3[style*="font-size:28px"],
section h2[style*="font-size: 25px"],
section h2[style*="font-size:25px"],
.grid-2 h2,
.grid-2 h3,
.grid-3 h2,
.grid-3 h3 {
  margin-bottom: 24px !important;
}

/* Ensure card headings stay compact and do not inherit large margins */
.card h3,
.card h4,
.pilar-card h3,
.process-card h4,
.partner-logo span {
  margin-bottom: 10px !important;
}

/* Text alignment helper */
.text-center {
  text-align: center !important;
}

/* Mobile responsive tabs alignment styling override */
@media (max-width: 767px) {
  .tabs-header {
    justify-content: flex-start !important;
  }
}

/* --- MONITORING CARDS REDESIGN (PLAN PAGE) --- */
.monitor-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-light-alt);
  border-radius: var(--border-radius-lg) !important;
  background-color: var(--color-white);
  padding: 40px 30px !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.monitor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(192, 87, 70, 0.3);
}

.monitor-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.monitor-card:hover::after {
  transform: scaleX(1);
}

.monitor-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.monitor-card:hover .monitor-icon-wrapper {
  transform: scale(1.1) rotate(8deg);
}

.monitor-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px !important;
  transition: var(--transition-normal);
}

.monitor-card:nth-child(1) h4,
.monitor-card:nth-child(3) h4 {
  color: var(--color-primary);
}

.monitor-card:nth-child(2) h4 {
  color: var(--color-secondary);
}

.monitor-card p {
  font-size: 14px;
  color: var(--color-dark-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- UNIFORM CALL-TO-ACTION (CTA) SPACING --- */
.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-section .container > h2,
.cta-section .container > p {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  text-align: center;
}

.cta-section .container > div,
.cta-section .container > a,
.cta-section .container > button {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Specific button styles alignment */
.cta-section .cta-buttons,
.cta-section div[style*="display:flex"],
.cta-section div[style*="display: flex"] {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* --- PARTNERS TESTIMONIALS SLIDER --- */
.partners-slider-container {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  overflow: hidden;
  padding: 10px 60px 20px;
}

.partners-slider-wrapper {
  position: relative;
  width: 100%;
}

.partners-slider-wrapper .story-item {
  width: 100%;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

.partners-slider-wrapper .story-item.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 2;
}

/* Slider navigation arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-white);
  border: 1px solid var(--color-light-alt);
  color: var(--color-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.prev-arrow {
  left: 5px;
}

.next-arrow {
  right: 5px;
}

/* Slider dot indicators */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-light-alt);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background-color: var(--color-dark-light);
}

.slider-dot.active {
  background-color: var(--color-primary);
  width: 20px;
  border-radius: 4px;
}

/* --- DONATE CARD SPACING OVERRIDE --- */
.donate-card h3,
.donate-card h4 {
  margin-bottom: 24px !important;
}

/* --- PAGE ENTRANCE TRANSITIONS --- */
#app-container.page-active {
  animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MOBILE TOGGLE ANIMATION --- */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
