/* Fixed CSS - Only changed .section display property */

:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  /* Custom NGO Color Scheme */
  --ngo-primary: #2D7D4D;
  --ngo-primary-light: #3a9961;
  --ngo-primary-dark: #1f5a37;
  --ngo-secondary: #FF8C42;
  --ngo-secondary-light: #ffaa6f;
  --ngo-secondary-dark: #e67320;
  --ngo-accent: #F5E6D3;
  --ngo-text: #333333;
  --ngo-light-bg: #F9F7F4;
  --ngo-white: #FFFFFF;

  /* Override semantic colors with NGO theme */
  --color-primary: var(--ngo-primary);
  --color-primary-hover: var(--ngo-primary-light);
  --color-primary-active: var(--ngo-primary-dark);
  --color-secondary: var(--ngo-accent);
  --color-background: var(--ngo-light-bg);
  --color-surface: var(--ngo-white);
  --color-text: var(--ngo-text);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

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

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

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

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

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

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

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

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

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Elements only visible to admin (JS controls display) */
.admin-only {
  /* intentionally empty – JS sets display on/off */
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

/* Header Styles */
.site-header {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--ngo-primary);
}

.header-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--space-12) var(--space-16);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-12);
  flex-wrap: nowrap;
}

.logo {
  height: 60px;
  width: auto;
}
.logo-section {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.org-name {
  display: flex !important;
  flex-direction: column !important;   /* Stack vertically */
  gap: 4px !important;
}

.org-ids {
  margin-top: 4px !important;
  display: flex !important;
  gap: 12px !important;
  font-size: 0.75rem !important;
  color: #333 !important;
  font-weight: 500 !important;
  flex-wrap: wrap !important;
}

@media (max-width: 768px) {
  .org-ids {
    font-size: 0.7rem !important;
    gap: 8px !important;
  }
}

.org-name h1 {
  font-size: var(--font-size-xl);
  color: var(--ngo-primary);
  margin-bottom: 0;
}

.tagline {
  font-size: var(--font-size-sm);
  color: var(--ngo-text);
  opacity: 0.8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-8);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--ngo-primary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

/* Navigation */
.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-4);
  align-items: center;
}

.nav-link {
  display: block;
  padding: var(--space-10) var(--space-16);
  color: var(--ngo-text);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all var(--duration-fast);
  border-radius: var(--radius-base);
}

.nav-link:hover {
  background-color: rgba(45, 125, 77, 0.1);
  color: var(--ngo-primary);
}

.nav-link.active {
  color: var(--ngo-primary);
  font-weight: var(--font-weight-semibold);
}

.btn-nav {
  background-color: var(--ngo-secondary);
  color: var(--ngo-white);
  padding: var(--space-10) var(--space-20);
  border-radius: var(--radius-base);
}

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

/* Submenu */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-base);
  padding: var(--space-8);
  list-style: none;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--duration-normal);
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: var(--space-10) var(--space-16);
  color: var(--ngo-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-fast);
}

.submenu a:hover {
  background-color: rgba(45, 125, 77, 0.1);
}

/* =============================================== */
/* SECTION STYLES - THE ONLY CHANGE MADE HERE: */
/* =============================================== */
.section {
  display: block;
  padding: var(--space-24) var(--space-16);
  max-width: 1280px;
  margin: 0 auto;
  min-height: auto;
}

.section.active {
  display: block;
}
/* =============================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-32);
}

.section-header h2 {
  font-size: var(--font-size-4xl);
  color: var(--ngo-primary);
  margin-bottom: var(--space-12);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--ngo-text);
  opacity: 0.8;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(45, 125, 77, 0.1) 0%, rgba(255, 140, 66, 0.1) 100%);
  padding: var(--space-32) var(--space-24);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: var(--space-32);
}

/* Allow full width so heading doesn’t wrap early */
.hero-content {
  max-width: 100%; /* was 800px */
  margin: 0 auto;
}

.hero-title {
  font-size: 36px;
  color: var(--ngo-primary);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;          /* prevent wrapping on wide screens */
}
/* On smaller screens, allow wrapping and reduce font size */
@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
    white-space: normal;
  }
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--ngo-text);
  margin-bottom: var(--space-24);
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}

.stat-card {
  background-color: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--ngo-accent);
}

.stat-number {
  font-size: 36px;
  font-weight: var(--font-weight-bold);
  color: var(--ngo-secondary);
  margin-bottom: var(--space-8);
}

.stat-label {
  font-size: var(--font-size-md);
  color: var(--ngo-text);
}

/* Activity Carousel Section */
.activity-carousel-section {
  margin-bottom: var(--space-32);
}

/* Activity Carousel at Top Position */
.activity-carousel-section.carousel-top {
  margin-top: 0;
  margin-bottom: var(--space-32);
}

.carousel-header {
  text-align: center;
  margin-bottom: var(--space-24);
}

.carousel-header h3 {
  font-size: var(--font-size-3xl);
  color: var(--ngo-primary);
  margin-bottom: var(--space-8);
}

.carousel-header p {
  font-size: var(--font-size-md);
  color: var(--ngo-text);
  opacity: 0.8;
}

.activity-carousel {
  position: relative;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 2px solid var(--ngo-accent);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

/* Top positioned carousel - enhanced height */
.carousel-top .carousel-container {
  height: 380px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-32);
  padding: var(--space-32);
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease-in-out, visibility 500ms ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ngo-primary) 0%, var(--ngo-primary-light) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.slide-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.slide-icon {
  font-size: 120px;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-12);
}

.slide-category {
  display: inline-block;
  background-color: var(--ngo-secondary);
  color: var(--ngo-white);
  padding: var(--space-6) var(--space-16);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.slide-content h4 {
  font-size: var(--font-size-3xl);
  color: var(--ngo-primary);
  margin: 0;
  font-weight: var(--font-weight-bold);
}

.slide-meta {
  display: flex;
  gap: var(--space-20);
  flex-wrap: wrap;
  font-size: var(--font-size-sm);
  color: var(--ngo-text);
  opacity: 0.8;
}

.slide-date,
.slide-venue {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.slide-description {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--ngo-text);
  margin: 0;
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--ngo-white);
  border: 2px solid var(--ngo-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-normal);
  z-index: 10;
  color: var(--ngo-primary);
}

.carousel-btn:hover {
  background-color: var(--ngo-primary);
  color: var(--ngo-white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-md);
}

.carousel-btn-prev {
  left: var(--space-16);
}

.carousel-btn-next {
  right: var(--space-16);
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: var(--space-20);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-12);
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(45, 125, 77, 0.3);
  border: 2px solid var(--ngo-primary);
  cursor: pointer;
  transition: all var(--duration-fast);
  padding: 0;
}

.dot:hover {
  background-color: rgba(45, 125, 77, 0.5);
  transform: scale(1.2);
}

.dot.active {
  background-color: var(--ngo-primary);
  width: 32px;
  border-radius: var(--radius-full);
}

/* Carousel CTA */
.carousel-cta {
  text-align: center;
  margin-top: var(--space-24);
}

/* Carousel Responsive Design */
@media (max-width: 1024px) {
  .carousel-slide {
    grid-template-columns: 1fr;
    height: auto;
    padding: var(--space-24);
  }

  .carousel-container {
    height: auto;
    min-height: 450px;
  }

  .carousel-top .carousel-container {
    min-height: 320px;
  }

  .slide-visual {
    height: 200px;
  }

  .slide-icon {
    font-size: 80px;
  }

  .slide-content h4 {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 768px) {
  .carousel-container {
    min-height: 500px;
  }

  .carousel-top .carousel-container {
    min-height: 280px;
  }

  .carousel-slide {
    padding: var(--space-20);
  }

  .slide-content h4 {
    font-size: var(--font-size-xl);
  }

  .slide-description {
    font-size: var(--font-size-md);
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn-prev {
    left: var(--space-8);
  }

  .carousel-btn-next {
    right: var(--space-8);
  }
}

@media (max-width: 480px) {
  .carousel-container {
    min-height: 550px;
  }

  .carousel-top .carousel-container {
    min-height: 240px;
  }

  .carousel-slide {
    padding: var(--space-16);
  }

  .slide-visual {
    height: 150px;
  }

  .slide-icon {
    font-size: 60px;
  }

  .slide-content h4 {
    font-size: var(--font-size-lg);
  }

  .slide-meta {
    font-size: var(--font-size-xs);
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-header h3 {
    font-size: var(--font-size-2xl);
  }
}

/* Mission Brief */
.mission-brief {
  background-color: var(--color-surface);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--ngo-primary);
}

.mission-brief h3 {
  font-size: var(--font-size-2xl);
  color: var(--ngo-primary);
  margin-bottom: var(--space-16);
}

.mission-brief p {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--ngo-text);
}

/* Directors Section */
.directors-section {
  display: grid;
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}

.director-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-24);
}

.director-image {
  background-color: var(--ngo-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.director-info {
  padding: var(--space-24);
}

.director-info h3 {
  font-size: var(--font-size-2xl);
  color: var(--ngo-primary);
  margin-bottom: var(--space-8);
}

.director-position {
  font-size: var(--font-size-lg);
  color: var(--ngo-secondary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
}

.director-experience {
  font-size: var(--font-size-md);
  color: var(--ngo-text);
  opacity: 0.7;
  margin-bottom: var(--space-16);
}

.director-bio {
  line-height: 1.8;
}

.director-bio p {
  margin-bottom: var(--space-16);
}

.director-bio ul {
  margin-left: var(--space-24);
  margin-bottom: var(--space-16);
}

.director-bio li {
  margin-bottom: var(--space-8);
  color: var(--ngo-text);
}

/* Vision Mission Cards */
.vision-mission {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
}

.vm-card {
  background-color: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--ngo-secondary);
}

.vm-card h3 {
  font-size: var(--font-size-xl);
  color: var(--ngo-primary);
  margin-bottom: var(--space-16);
}

.vm-card p {
  line-height: 1.8;
  color: var(--ngo-text);
}

/* Projects Section */
.project-featured {
  margin-bottom: var(--space-32);
}

.project-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.project-card.featured {
  border: 3px solid var(--ngo-secondary);
}

.project-header {
  background: linear-gradient(135deg, var(--ngo-primary) 0%, var(--ngo-primary-light) 100%);
  color: var(--ngo-white);
  padding: var(--space-24);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-header h3 {
  font-size: var(--font-size-3xl);
  color: var(--ngo-white);
}

.project-status {
  background-color: var(--ngo-secondary);
  color: var(--ngo-white);
  padding: var(--space-6) var(--space-16);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.project-content {
  padding: var(--space-32);
}

.project-description {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  margin-bottom: var(--space-24);
  color: var(--ngo-text);
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.project-stat {
  background-color: var(--ngo-accent);
  padding: var(--space-16);
  border-radius: var(--radius-base);
  text-align: center;
}

.project-stat strong {
  display: block;
  font-size: var(--font-size-2xl);
  color: var(--ngo-primary);
  margin-bottom: var(--space-8);
}

.project-stat span {
  font-size: var(--font-size-sm);
  color: var(--ngo-text);
}

.project-objectives,
.project-impact,
.project-updates {
  margin-bottom: var(--space-24);
}

.project-objectives h4,
.project-impact h4,
.project-updates h4 {
  font-size: var(--font-size-xl);
  color: var(--ngo-primary);
  margin-bottom: var(--space-16);
}

.project-objectives ul {
  margin-left: var(--space-24);
}

.project-objectives li {
  margin-bottom: var(--space-8);
  color: var(--ngo-text);
  line-height: 1.6;
}

.project-impact p,
.project-updates p {
  line-height: 1.8;
  color: var(--ngo-text);
  margin-bottom: var(--space-16);
}

/* Tabs */
.tabs {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  background-color: var(--ngo-accent);
  border-bottom: 2px solid var(--ngo-primary);
}

.tab-btn {
  flex: 1;
  padding: var(--space-16) var(--space-24);
  background: none;
  border: none;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--ngo-text);
  cursor: pointer;
  transition: all var(--duration-fast);
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  background-color: rgba(45, 125, 77, 0.1);
}

.tab-btn.active {
  background-color: var(--color-surface);
  color: var(--ngo-primary);
  border-bottom-color: var(--ngo-secondary);
  font-weight: var(--font-weight-semibold);
}

.tab-content {
  display: none;
  padding: var(--space-24);
}

.tab-content.active {
  display: block;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-24);
}

.tab-header h3 {
  font-size: var(--font-size-2xl);
  color: var(--ngo-primary);
  margin-bottom: var(--space-8);
}

.member-count-text {
  font-size: var(--font-size-md);
  color: var(--ngo-text);
  margin: 0;
}

.member-count-badge {
  display: inline-block;
  background-color: var(--ngo-secondary);
  color: var(--ngo-white);
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-md);
}

.member-search-container {
  margin-bottom: var(--space-24);
  max-width: 500px;
}

.member-search-container .form-control {
  padding: var(--space-12) var(--space-16);
  font-size: var(--font-size-md);
}

.member-details-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.detail-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-16);
  padding: var(--space-12);
  border-bottom: 1px solid var(--ngo-accent);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row strong {
  color: var(--ngo-primary);
  font-weight: var(--font-weight-semibold);
}

.detail-row span {
  color: var(--ngo-text);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: var(--space-12) var(--space-16);
  text-align: left;
  border-bottom: 1px solid var(--ngo-accent);
}

.data-table th {
  background-color: var(--ngo-primary);
  color: var(--ngo-white);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:hover {
  background-color: rgba(45, 125, 77, 0.05);
}

.data-table td {
  color: var(--ngo-text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-base);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--duration-normal);
  border: none;
  text-decoration: none;
  gap: var(--space-8);
}

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

.btn-primary:hover {
  background-color: var(--ngo-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-small {
  padding: var(--space-8) var(--space-16);
  font-size: var(--font-size-sm);
}

.btn-large {
  padding: var(--space-16) var(--space-32);
  font-size: var(--font-size-lg);
}

.btn-action {
  padding: var(--space-6) var(--space-12);
  font-size: var(--font-size-xs);
  margin: 0 var(--space-4);
}

.btn-edit {
  background-color: #4CAF50;
  color: white;
}

.btn-delete {
  background-color: #f44336;
  color: white;
}

/* Activities Section */
.activity-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-bottom: var(--space-32);
  flex-wrap: wrap;
}

.activity-filter-btn {
  padding: var(--space-10) var(--space-20);
  background-color: var(--color-surface);
  border: 2px solid var(--ngo-accent);
  border-radius: var(--radius-base);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--ngo-text);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.activity-filter-btn:hover,
.activity-filter-btn.active {
  background-color: var(--ngo-primary);
  color: var(--ngo-white);
  border-color: var(--ngo-primary);
}

.activities-grid {
  display: grid;
  gap: var(--space-24);
}

.activity-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 2px solid var(--ngo-accent);
  transition: transform var(--duration-normal), box-shadow var(--duration-normal);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-24);
  padding: var(--space-24);
}

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

.activity-card.ongoing {
  border-color: var(--ngo-secondary);
  background: linear-gradient(to right, rgba(255, 140, 66, 0.05), var(--color-surface));
}

.activity-card.hidden {
  display: none;
}

.activity-icon {
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--ngo-accent) 0%, rgba(255, 140, 66, 0.2) 100%);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.activity-content h3 {
  font-size: var(--font-size-2xl);
  color: var(--ngo-primary);
  margin: 0;
}

.activity-status-badge {
  display: inline-block;
  background-color: var(--ngo-secondary);
  color: var(--ngo-white);
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  width: fit-content;
}

.activity-meta {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
  font-size: var(--font-size-sm);
  color: var(--ngo-text);
  opacity: 0.8;
}

.activity-date,
.activity-venue {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.activity-category {
  display: inline-block;
  background-color: rgba(45, 125, 77, 0.1);
  color: var(--ngo-primary);
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  width: fit-content;
}

.activity-description {
  line-height: 1.8;
  color: var(--ngo-text);
  margin: 0;
}

.activity-participants {
  font-size: var(--font-size-sm);
  color: var(--ngo-secondary);
  font-weight: var(--font-weight-semibold);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* Social Media Section */
.social-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}

/* Social Media Section */
.social-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-32);
}

.social-card {
  background-color: var(--color-surface);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.social-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-24);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-icon.facebook {
  background: #1877F2;
  color: white;
}

.social-card h3 {
  font-size: var(--font-size-2xl);
  color: var(--ngo-primary);
  margin-bottom: var(--space-16);
}

.social-card p {
  line-height: 1.8;
  margin-bottom: var(--space-24);
  color: var(--ngo-text);
}

.social-info {
  background-color: var(--color-surface);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.social-info h3 {
  font-size: var(--font-size-2xl);
  color: var(--ngo-primary);
  margin-bottom: var(--space-24);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-item strong {
  color: var(--ngo-primary);
}

.contact-item a {
  color: var(--ngo-secondary);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.social-card.featured-content {
  text-align: center;
  background: linear-gradient(135deg, rgba(45, 125, 77, 0.05) 0%, rgba(255, 140, 66, 0.05) 100%);
  border: 2px solid var(--ngo-accent);
}

.social-quick-links {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-24);
}

.social-quick-link {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all var(--duration-fast);
  color: var(--ngo-white);
}

.social-quick-link.instagram-link {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-quick-link.facebook-link {
  background: #1877F2;
}

.social-quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-quick-link .icon {
  font-size: var(--font-size-lg);
}

/* ====================================================== */
/* GALLERY – square labels + slide-up popups + fullscreen */
/* (CLEAN: no duplicates, square thumbs, no strip thumbs) */
/* ====================================================== */

/* square label boxes, centered in page */
.gallery-square-row {
  display: flex;
  justify-content: center;
  gap: var(--space-24);
  flex-wrap: wrap;
  margin: var(--space-32) 0;
}

.gallery-square-card {
  width: 190px;
  padding: var(--space-16);
  text-align: center;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast), border-color var(--duration-fast);
}

.gallery-square-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--ngo-primary);
  z-index: 10;
}

.gallery-square-card h3 {
  margin-top: var(--space-12);
  font-size: var(--font-size-lg);
  color: var(--ngo-primary);
}

.gallery-square-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background-color: var(--ngo-accent);
  background-size: cover;
  background-position: center;
  margin-bottom: var(--space-12);
}

/* slide-up popup overlay */
.gallery-slide-popup {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  max-height: 80vh;
  background: rgba(0, 0, 0, 0.45);
  transition: bottom 0.3s ease;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.gallery-slide-popup.show {
  bottom: 0;
}

.gallery-slide-inner {
  background-color: var(--color-surface);
  width: min(1000px, 100%);
  max-height: 80vh;
  border-radius: 16px 16px 0 0;
  padding: var(--space-20) var(--space-24) var(--space-24);
  overflow-y: auto;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}

/* header inside popup */
.gallery-slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-card-border);
  padding-bottom: var(--space-10);
  margin-bottom: var(--space-16);
}

.gallery-slide-header h3 {
  margin: 0;
  font-size: var(--font-size-xl);
  color: var(--ngo-primary);
}

.gallery-slide-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ngo-text);
}

/* IMPORTANT: Disable preview area so you don't get the "big image below" duplicate */
.gallery-preview,
.gallery-preview-img {
  display: none !important;
}

/* grid of images in popup (square thumbnails) */
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-16);
  margin-top: var(--space-16);
}

/* each thumb is a square card */
.gallery-item {
  aspect-ratio: 1 / 1;
  position: relative;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* image fills the square */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* empty message */
.gallery-empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-24) var(--space-16);
  border: 2px dashed var(--color-card-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ngo-accent) 0%, var(--color-bg-2) 100%);
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

/* admin actions (delete button overlay) */
.gallery-admin-actions {
  display: none;
  position: absolute;
  right: 10px;
  bottom: 10px;
}

body.admin .gallery-admin-actions {
  display: block !important;
}

/* Fullscreen viewer (JS toggles .show) */
.gallery-fullscreen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-fullscreen.show {
  opacity: 1;
  visibility: visible;
}

.gallery-fullscreen img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.gallery-fullscreen-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.6rem;
  cursor: pointer;
}

/* responsive tweaks */
@media (max-width: 600px) {
  .gallery-slide-inner {
    border-radius: 12px 12px 0 0;
    padding-inline: var(--space-16);
  }
  .gallery-square-card {
    width: 160px;
  }
}


/* small buttons – reuse global token colors */
.btn-small {
  padding: 0.25rem 0.6rem;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-base);
  border: none;
  cursor: pointer;
}

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

.btn-danger {
  background-color: var(--color-error);
  color: var(--ngo-white);
}

/* responsive tweaks */
@media (max-width: 600px) {
  .gallery-slide-inner {
    border-radius: 12px 12px 0 0;
    padding-inline: var(--space-16);
  }

  .gallery-square-card {
    width: 160px;
  }
}

.whatsapp-message {
  background-color: rgba(37, 211, 102, 0.1);
  padding: var(--space-24);
  border-radius: var(--radius-base);
  margin: var(--space-24) 0;
  border-left: 4px solid #25D366;
}

.message-preview {
  background-color: var(--color-surface);
  padding: var(--space-16);
  border-radius: var(--radius-base);
  margin-top: var(--space-12);
  text-align: left;
}

.message-preview p {
  font-size: var(--font-size-sm);
  color: var(--ngo-text);
  line-height: 1.6;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--color-surface);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  font-size: 28px;
  font-weight: bold;
  color: var(--ngo-text);
  cursor: pointer;
  line-height: 1;
}

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

#modal-title {
  font-size: var(--font-size-2xl);
  color: var(--ngo-primary);
  margin-bottom: var(--space-24);
}

.modal-actions {
  display: flex;
  gap: var(--space-12);
  justify-content: flex-end;
  margin-top: var(--space-24);
}
/* Profile image preview in member modal */
#profile-image-preview-wrap {
  margin-top: 12px;
  display: none;
}

#profile-image-preview {
  width: 100px;
  height: 150px;
  object-fit: cover;
  border: 2px solid var(--ngo-accent);
}

/* Validity field inline with membership date (optional) */
.validity-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-16);
}

/* Footer */
.site-footer {
  background-color: var(--ngo-primary);
  color: var(--ngo-white);
  padding: var(--space-32) var(--space-24);
  margin-top: var(--space-32);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-32);
  margin-bottom: var(--space-24);
}

.footer-section h4 {
  color: var(--ngo-white);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-lg);
}

.footer-section p {
  line-height: 1.8;
  opacity: 0.9;
}

.footer-section a {
  color: var(--ngo-white);
  text-decoration: none;
  opacity: 0.9;
  display: block;
  margin-bottom: var(--space-8);
}

.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-24);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .director-card {
    grid-template-columns: 1fr;
  }

  .director-image {
    height: 300px;
  }
}

@media (max-width: 1024px) {
  .activity-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .activity-icon {
    margin: 0 auto;
  }

  .activity-meta {
    justify-content: center;
  }

  .activity-category,
  .activity-status-badge {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    padding: var(--space-16);
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: var(--space-8);
  }

  .header-container {
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: 28px;
  }

  .section-header h2 {
    font-size: var(--font-size-3xl);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .logo {
    height: 40px;
  }

  .org-name h1 {
    font-size: var(--font-size-lg);
  }

  .tagline {
    font-size: var(--font-size-xs);
  }

  .section {
    padding: var(--space-16);
  }

  .hero-title {
    font-size: 24px;
  }

  .data-table {
    font-size: var(--font-size-xs);
  }

  .data-table th,
  .data-table td {
    padding: var(--space-8);
  }
}
/* 🔥 INSTAGRAM EMBED STYLES */
.social-feed-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3.5rem 0;
}

.social-feed-section .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ... (rest of your Instagram embed styles remain unchanged) ... */

.social-feed-section blockquote.instagram-media {
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
  margin: 1rem auto !important;
  max-width: 540px !important;
  width: 100% !important;
}

/* 🔥 PAYMENT FLOW UTILITIES (for payment.html + success.html) */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-16 { gap: var(--space-16, 1rem); }
.gap-32 { gap: var(--space-32, 2rem); }
.mb-16 { margin-bottom: var(--space-16, 1rem); }
.mb-32 { margin-bottom: var(--space-32, 2rem); }
.mt-16 { margin-top: var(--space-16, 1rem); }
.mt-48 { margin-top: var(--space-48, 3rem); }
.py-48 { padding: var(--space-48, 3rem) 0; }
.py-24 { padding: 1.5rem 0; }
.px-12 { padding-left: 0.75rem; padding-right: 0.75rem; }
.text-center { text-align: center; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.opacity-80 { opacity: 0.8; }

.bg-green-50 { background-color: #f0fdf4; }
.bg-blue-50 { background-color: #eff6ff; }
.border-green-200 { border-color: #bbf7d0; }
.text-green-700 { color: #166534; }
.text-blue-600 { color: #2563eb; }

/* Responsive */
@media (max-width: 768px) {
  .social-feed-section { padding: 2rem 0; }
  blockquote.instagram-media { min-width: 280px !important; }
}
.gallery-empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-24) var(--space-16);
  border: 2px dashed var(--color-card-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ngo-accent) 0%, var(--color-bg-2) 100%);
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}



/* =============================== */
/* FINAL PERFECT NAV + SPACING FIX */
/* =============================== */

/* Header: Full width, minimal padding */
.site-header, .header-container {
  width: 100% !important;
}

/* PERFECT 3-PART LAYOUT: Logo(Left) | Nav(Center) | IDs(Right) */
.header-container {
  padding: 12px 20px !important;      /* Tight padding */
  gap: 2rem !important;              /* Logo-to-Nav space */
}

.logo-section { 
  flex-shrink: 0 !important;         /* Logo fixed width */
  max-width: 300px !important;
}

.main-nav { 
  flex: 1 !important;                /* Nav takes center space */
  justify-content: center !important;
  margin: 0 1.5rem !important;       /* Nav side breathing room */
}

.nav-list {
  gap: 1rem !important;              /* Nav items spacing */
  padding: 0 !important;
}

.nav-link {
  padding: 8px 16px !important;      /* Perfect nav padding */
  white-space: nowrap !important;
}

/* Right IDs - flush right */
.header-right-ids {
  margin-left: auto !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 2px !important;
  font-size: 11px !important;
  color: #666 !important;
}

/* Mobile: Stack everything */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap !important;
    gap: 1rem !important;
    padding: 12px 16px !important;
  }
  .main-nav {
    order: 3 !important;             /* Nav goes bottom */
    width: 100% !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  .header-right-ids {
    order: 2 !important;
    margin-left: 0 !important;
    align-items: flex-start !important;
    width: 100% !important;
  }
}
.hover-row:hover { background-color: #f8f9ff !important; transition: 0.3s; }
.bg-gradient-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; }
.bg-gradient-info { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important; }
.contact-card, .btn-lg { transition: all 0.3s ease; }
.btn-lg:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important; }
.item-card { transition: all 0.3s; margin-bottom: 2rem !important; }
.item-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important; }
.min-vh-75 { min-height: 75vh; }