/* ==========================================================================
   NGO Website Builder - Main Stylesheet
   Version: 1.0.0
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */
html { overflow-x: hidden; }

:root {
  --primary: #1e3a5f;
  --primary-dark: #142940;
  --primary-light: #2a5080;
  --secondary: #c9a227;
  --secondary-dark: #a68520;
  --secondary-light: #e0b830;
  --accent: #2ecc71;
  --accent-dark: #25a35a;
  --accent-light: #3ddc84;
  --dark: #0a0f1a;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --font-body: 'Outfit', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #0a0f1a 100%);
  --gradient-1: linear-gradient(135deg, #1e3a5f 0%, #2ecc71 100%);
  --gradient-2: linear-gradient(135deg, #c9a227 0%, #1e3a5f 100%);
  --gradient-3: linear-gradient(135deg, #2ecc71 0%, #c9a227 100%);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-full: 50%;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

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

::-moz-selection {
  background-color: var(--primary);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

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

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

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

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

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: 1.15rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
}

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

strong,
b {
  font-weight: 600;
  color: var(--dark);
}

small {
  font-size: 0.875rem;
}

.text-highlight {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

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

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

.text-accent {
  color: var(--accent);
}

.text-white {
  color: var(--white);
}

.text-gray {
  color: var(--gray-500);
}

.fw-400 {
  font-weight: 400;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--gray-600);
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 40px;
}

.section-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

/* ==========================================================================
   4. UTILITY CLASSES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-wrap: break-word;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

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

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-lg {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 15px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section-header .underline {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 2px;
  margin: 20px auto 0;
  transition: var(--transition);
}

.section-header:hover .underline {
  width: 100px;
}

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

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

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

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

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.align-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 10px;
}

.gap-2 {
  gap: 20px;
}

.gap-3 {
  gap: 30px;
}

.gap-4 {
  gap: 40px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-3 {
  margin-top: 30px;
}

.mt-4 {
  margin-top: 40px;
}

.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 30px;
}

.mb-4 {
  margin-bottom: 40px;
}

.pt-1 {
  padding-top: 10px;
}

.pt-2 {
  padding-top: 20px;
}

.pt-3 {
  padding-top: 30px;
}

.pb-1 {
  padding-bottom: 10px;
}

.pb-2 {
  padding-bottom: 20px;
}

.pb-3 {
  padding-bottom: 30px;
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn:hover::after {
  left: 100%;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3);
  color: var(--white);
}

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

.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.3);
  color: var(--dark);
}

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

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
  color: var(--white);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

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

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
  color: var(--primary);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1.1rem;
}

.btn-icon {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
}

.btn-icon.btn-sm {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.btn-icon.btn-lg {
  width: 60px;
  height: 60px;
  font-size: 1.4rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   5. NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 18px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

body:not(.home-page) .navbar:not(.scrolled) {
  background: transparent;
}

body:not(.home-page) .nav-link {
  color: rgba(255,255,255,0.9);
}

body:not(.home-page) .nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

body:not(.home-page) .navbar.scrolled .nav-link {
  color: var(--gray-700);
}

body:not(.home-page) .navbar.scrolled .nav-link:hover {
  color: var(--primary);
  background: rgba(30, 58, 95, 0.06);
}

body.home-page .navbar:not(.scrolled) {
  opacity: 0;
  pointer-events: none;
}

body.home-page .navbar.scrolled {
  opacity: 1;
  pointer-events: auto;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-brand img {
  height: 45px;
  width: auto;
}

.nav-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .nav-brand .brand-name {
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link {
  color: var(--gray-700);
}

.navbar.scrolled .nav-link:hover {
  color: var(--primary);
  background: rgba(30, 58, 95, 0.05);
}

.nav-link .arrow {
  font-size: 0.7rem;
  transition: var(--transition);
}

.has-dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

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

.dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 0.95rem;
  color: var(--gray-700);
  transition: var(--transition);
}

.dropdown-menu .dropdown-item:hover {
  background: var(--gray-50);
  color: var(--primary);
  padding-left: 28px;
}

.dropdown-menu .dropdown-item .item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  transition: var(--transition);
}

.dropdown-menu .dropdown-item:hover .item-icon {
  background: var(--primary);
  color: var(--white);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 700px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu .mega-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mega-menu .mega-item:hover {
  background: var(--gray-50);
}

.mega-menu .mega-item .mega-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.mega-menu .mega-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.mega-menu .mega-item p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--gray-500);
}

.nav-cta {
  margin-left: 20px;
}

/* Mobile Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--dark);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

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

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 15, 26, 0.85) 0%, rgba(30, 58, 95, 0.7) 100%);
}

/* Animated Shapes / Blobs */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  bottom: -50px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--primary-light);
  top: 40%;
  left: 30%;
  animation: float 6s ease-in-out infinite 1s;
}

.hero-shape-4 {
  width: 150px;
  height: 150px;
  background: var(--secondary);
  top: 20%;
  right: 20%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphBlob 12s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-badge i {
  color: var(--accent);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--secondary);
  opacity: 0.4;
  border-radius: 4px;
  z-index: -1;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin-bottom: 35px;
  max-width: 550px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 5px;
}

.hero-stat .stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Slider */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-slide.active::before {
  animation: kenBurns 8s ease forwards;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

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

.hero-slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
}

.hero-slide .hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Floating Cards */
.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--white);
  z-index: 2;
}

.hero-floating-card.card-1 {
  top: 20%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.hero-floating-card.card-2 {
  bottom: 25%;
  right: 15%;
  animation: float 8s ease-in-out infinite 1s;
}

.hero-floating-card .card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.hero-floating-card .card-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-floating-card .card-subtext {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ==========================================================================
   7. ABOUT SECTION
   ========================================================================== */
.about {
  position: relative;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content .section-subtitle {
  display: inline-block;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content .lead {
  margin-bottom: 30px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.about-feature:hover {
  background: var(--gray-50);
}

.about-feature .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-feature h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--gray-500);
}

/* About Image */
.about-image {
  position: relative;
}

.about-image .image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image .image-wrapper img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-image:hover .image-wrapper img {
  transform: scale(1.03);
}

.about-image .accent-shape {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--gradient-3);
  border-radius: var(--radius-lg);
  bottom: -30px;
  left: -30px;
  z-index: -1;
}

.about-image .experience-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-image .experience-badge .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-image .experience-badge .text {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ==========================================================================
   8. THEORY OF CHANGE SECTION
   ========================================================================== */
.theory-of-change {
  background: var(--gray-50);
}

.toc-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.toc-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toc-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

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

.toc-card.then-card {
  border-left-color: var(--accent);
}

.toc-card .card-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.toc-card .card-label.if-label {
  background: rgba(30, 58, 95, 0.1);
  color: var(--primary);
}

.toc-card .card-label.then-label {
  background: rgba(46, 204, 113, 0.1);
  color: var(--accent-dark);
}

.toc-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.toc-card p {
  font-size: 0.95rem;
  margin: 0;
}

.toc-arrow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.toc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--gradient-1);
  color: var(--white);
  font-size: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   9. STATS SECTION
   ========================================================================== */
.stats-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,...') repeat;
  opacity: 0.05;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.stat-card .stat-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--accent);
}

.stat-card .stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.stat-card .stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

/* ==========================================================================
   10. MISSION / VISION SECTION
   ========================================================================== */
.mission-vision {
  position: relative;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mv-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-1);
}

.mv-card.vision-card::before {
  background: var(--gradient-3);
}

.mv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.mv-card .mv-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 25px;
}

.mv-card.mission-card .mv-icon {
  background: rgba(30, 58, 95, 0.1);
  color: var(--primary);
}

.mv-card.vision-card .mv-icon {
  background: rgba(46, 204, 113, 0.1);
  color: var(--accent);
}

.mv-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.mv-card p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.mv-card .mv-list {
  margin-top: 20px;
}

.mv-card .mv-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.mv-card .mv-list li:last-child {
  border-bottom: none;
}

.mv-card .mv-list li i {
  color: var(--accent);
  margin-top: 4px;
}

.mv-card .mv-list li span {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* ==========================================================================
   11. AREAS OF INTERVENTION
   ========================================================================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.area-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 350px;
  cursor: pointer;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%);
}

.area-card .area-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.area-card .area-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.area-card .area-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.area-card:hover .area-image img {
  transform: scale(1.1);
  object-fit: cover;
  object-position: center;
}

.area-card .area-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 15, 26, 0.9) 0%, rgba(10, 15, 26, 0.2) 60%, transparent 100%);
  transition: var(--transition);
}

.area-card:hover .area-overlay {
  background: linear-gradient(to top, rgba(30, 58, 95, 0.95) 0%, rgba(30, 58, 95, 0.4) 60%, rgba(30, 58, 95, 0.1) 100%);
}

.area-card .area-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 2;
  transition: var(--transition);
}

.area-card:hover .area-content {
  transform: translateY(-10px);
}

.area-card .area-icon,
.area-card .area-overlay-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: var(--transition);
}

.area-card:hover .area-icon,
.area-card:hover .area-overlay-icon {
  background: var(--white);
  color: var(--primary);
}

.area-card .area-content h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.area-card .area-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 15px;
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition);
}

.area-card:hover .area-content p {
  color: rgba(255, 255, 255, 0.95);
}

.area-card .area-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 1;
  transition: var(--transition);
}

.area-card:hover .area-link {
  color: var(--white);
  gap: 12px;
}

/* ==========================================================================
   12. CAMPAIGNS SECTION
   ========================================================================== */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.campaign-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.campaign-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.campaign-card .campaign-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.campaign-card .campaign-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.campaign-card:hover .campaign-image img {
  transform: scale(1.05);
}

.campaign-card .campaign-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
}

.campaign-card .campaign-featured {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary);
  color: var(--dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.campaign-card .campaign-body {
  padding: 25px;
}

.campaign-card .campaign-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.campaign-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.campaign-card h3 a:hover {
  color: var(--primary);
}

.campaign-card .campaign-excerpt {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Progress Bar */
.campaign-progress {
  margin-bottom: 15px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar .progress-fill {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 10px;
  transition: width 1.5s ease;
  width: 0;
}

.progress-bar .progress-fill.animated {
  width: var(--progress);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.progress-info .raised {
  font-weight: 700;
  color: var(--primary);
}

.progress-info .goal {
  color: var(--gray-500);
}

.campaign-card .campaign-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--gray-100);
}

.campaign-card .donors {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.campaign-card .donors i {
  color: var(--secondary);
}

/* ==========================================================================
   13. TEAM SECTION
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  text-align: center;
  position: relative;
}

.team-card .team-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 15px;
  height: 220px;
}

.team-card .team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition-slow);
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-card .team-social {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.9), transparent);
  display: flex;
  justify-content: center;
  gap: 6px;
  transform: translateY(100%);
  transition: var(--transition);
}

.team-card:hover .team-social {
  transform: translateY(0);
}

.team-card .team-social a {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  transition: var(--transition);
}

.team-card .team-social a:hover {
  background: var(--white);
  color: var(--primary);
}

.team-card h4 {
  font-size: 1rem;
  margin-bottom: 3px;
}

.team-card .team-position {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 500;
}

/* ==========================================================================
   14. PARTNERS SECTION
   ========================================================================== */
.partners {
  background: var(--gray-50);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100px;
}

.partner-logo img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

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

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

/* Partner Carousel */
.partners-carousel {
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  gap: 30px;
  animation: scrollPartners 30s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

/* ==========================================================================
   15. TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.testimonials .section-header h2 {
  color: var(--white);
}

.testimonials .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  text-align: center;
  padding: 0 20px;
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.testimonial-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 30px;
  position: relative;
  padding-top: 40px;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  color: var(--secondary);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--secondary);
}

.testimonial-author-info h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.testimonial-author-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
}

.testimonial-rating {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.testimonial-rating i {
  color: var(--secondary);
  font-size: 1rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-nav button {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.testimonial-nav button.active {
  background: var(--secondary);
  width: 35px;
  border-radius: 6px;
}

.testimonial-nav button:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   16. EVENTS SECTION
   ========================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  transition: var(--transition);
}

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

.event-card .event-date {
  flex-shrink: 0;
  width: 100px;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 20px;
}

.event-card .event-date .day {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.event-card .event-date .month {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.event-card .event-content {
  padding: 25px;
  flex: 1;
}

.event-card .event-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.event-card .event-type.type-workshop {
  background: rgba(46, 204, 113, 0.1);
  color: var(--accent-dark);
}

.event-card .event-type.type-seminar {
  background: rgba(30, 58, 95, 0.1);
  color: var(--primary);
}

.event-card .event-type.type-webinar {
  background: rgba(201, 162, 39, 0.1);
  color: var(--secondary-dark);
}

.event-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.event-card .event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-card .event-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.event-card .event-meta span i {
  color: var(--primary);
  width: 16px;
  text-align: center;
}

/* ==========================================================================
   17. BLOG SECTION
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.blog-card .blog-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-card .blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-card .blog-body {
  padding: 25px;
}

.blog-card .blog-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.blog-card .blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card .blog-meta i {
  color: var(--secondary);
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card .blog-excerpt {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--gray-100);
}

.blog-card .blog-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-card .blog-author img {
  width: 35px;
  height: 35px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.blog-card .blog-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.blog-card .read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card .read-more:hover {
  gap: 10px;
  color: var(--secondary);
}

/* ==========================================================================
   18. GALLERY SECTION
   ========================================================================== */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.gallery-filter .filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}

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

.gallery-masonry {
  columns: 4;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 95, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item .gallery-overlay h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 5px;
  transform: translateY(10px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay h4 {
  transform: translateY(0);
}

.gallery-item .gallery-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
  transform: translateY(10px);
  transition: var(--transition);
  transition-delay: 0.1s;
}

.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

.gallery-item .gallery-overlay .zoom-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
  transform: scale(0.5);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay .zoom-icon {
  transform: scale(1);
}

/* ==========================================================================
   19. VOLUNTEER CTA SECTION
   ========================================================================== */
.volunteer-cta {
  background: var(--gradient-1);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.volunteer-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.volunteer-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.volunteer-cta .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.volunteer-cta h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 15px;
}

.volunteer-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.volunteer-cta .btn-white {
  font-size: 1.05rem;
}

/* ==========================================================================
   20. CONTACT SECTION
   ========================================================================== */
/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Map Container */
.contact-map-container {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 3px solid var(--white);
  position: relative;
}

.contact-map-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.contact-map-container iframe,
.contact-map-container #mapContainer {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Contact Info Cards */
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.contact-info-card .info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  background: var(--gradient-1);
}

.contact-info-card .info-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark);
}

.contact-info-card .info-text p {
  font-size: 0.875rem;
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
}

.contact-info-card .info-text a {
  color: var(--primary);
  font-weight: 500;
}

.contact-info-card .info-text a:hover {
  color: var(--secondary);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-100);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* Social Pill Buttons */
.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
  text-decoration: none;
}

.social-pill i {
  font-size: 1rem;
}

.social-pill span {
  line-height: 1;
}

.social-pill:hover {
  transform: translateY(-3px);
  color: var(--white);
  text-decoration: none;
}

.social-facebook {
  background: #1877f2;
}

.social-facebook:hover {
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
  background: #1565d8;
}

.social-twitter {
  background: #000000;
}

.social-twitter:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #1a1a1a;
}

.social-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-instagram:hover {
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

.social-linkedin {
  background: #0a66c2;
}

.social-linkedin:hover {
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
  background: #0958a8;
}

.social-youtube {
  background: #ff0000;
}

.social-youtube:hover {
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.35);
  background: #e60000;
}

/* ==========================================================================
   21. FOOTER
   ========================================================================== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-about .footer-brand img {
  height: 45px;
}

.footer-about .footer-brand .brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: var(--transition);
}

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

.footer-column h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  transition: var(--transition);
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer-contact li i {
  color: var(--secondary);
  margin-top: 5px;
  width: 16px;
  text-align: center;
}

.footer-bottom {
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

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

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  color: var(--white);
}

/* ==========================================================================
   22. PAGE HERO / BREADCRUMB
   ========================================================================== */
.page-hero {
  position: relative;
  padding: 160px 0 100px;
  background: var(--gradient-hero);
  text-align: center;
  overflow: hidden;
}

.page-hero .container {
  overflow: hidden;
  word-wrap: break-word;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,...') repeat;
  opacity: 0.03;
}

.page-hero .hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-hero .hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.page-hero .hero-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: -50px;
  right: -50px;
}

.page-hero .hero-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  bottom: -30px;
  left: 10%;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb .current {
  color: var(--secondary);
  font-weight: 500;
}

/* ==========================================================================
   23. FORMS
   ========================================================================== */
.form-group {
  margin-bottom: 22px;
}

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

.form-group label .required {
  color: #e74c3c;
  margin-left: 3px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.form-control::placeholder {
  color: var(--gray-400);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Validation Styles */
.form-control.is-valid {
  border-color: var(--accent);
}

.form-control.is-invalid {
  border-color: #e74c3c;
}

.form-text {
  font-size: 0.85rem;
  margin-top: 5px;
}

.form-text.error {
  color: #e74c3c;
}

.form-text.success {
  color: var(--accent-dark);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-check label {
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}

/* Input with icon */
.input-icon {
  position: relative;
}

.input-icon .form-control {
  padding-left: 48px;
}

.input-icon i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  transition: var(--transition);
}

.input-icon:focus-within i {
  color: var(--primary);
}

/* ==========================================================================
   24. CARDS (Base)
   ========================================================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-body {
  padding: 30px;
}

.card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   25. BADGES
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  line-height: 1.4;
}

.badge-primary {
  background: rgba(30, 58, 95, 0.1);
  color: var(--primary);
}

.badge-secondary {
  background: rgba(201, 162, 39, 0.1);
  color: var(--secondary-dark);
}

.badge-accent {
  background: rgba(46, 204, 113, 0.1);
  color: var(--accent-dark);
}

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

.badge-featured {
  background: var(--secondary);
  color: var(--dark);
}

.badge-success {
  background: rgba(46, 204, 113, 0.1);
  color: var(--accent-dark);
}

.badge-warning {
  background: rgba(241, 196, 15, 0.1);
  color: #d4a00a;
}

.badge-danger {
  background: rgba(231, 76, 60, 0.1);
  color: #c0392b;
}

/* ==========================================================================
   26. PROGRESS BAR
   ========================================================================== */
.progress {
  width: 100%;
  height: 10px;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-lg {
  height: 14px;
}

.progress-bar-sm {
  height: 6px;
}

.progress .progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--gradient-1);
  transition: width 1.5s ease;
  position: relative;
}

.progress .progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.progress .progress-bar-fill.accent {
  background: var(--gradient-3);
}

.progress .progress-bar-fill.secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ==========================================================================
   27. LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-caption {
  text-align: center;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* ==========================================================================
   28. LOADING
   ========================================================================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8faff 0%, #eef2ff 50%, #f0f4ff 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-dismiss {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,0.06);
  color: #6b7280;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  z-index: 1;
}

.loader-dismiss:hover {
  background: rgba(0,0,0,0.12);
  color: #111827;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.loader-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: loaderPulse 2s ease-in-out infinite;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--primary, #1e3a5f);
  border-radius: 50%;
  animation: loaderSpin 1.2s linear infinite;
}

.loader-ring-2 {
  inset: 8px;
  border-top-color: #818cf8;
  animation-duration: 1.8s;
  animation-direction: reverse;
}

.loader-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary, #1e3a5f);
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}

.loader-tagline {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 24px;
  max-width: 260px;
  line-height: 1.4;
}

.loader-progress {
  width: 160px;
  height: 3px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary, #1e3a5f), #818cf8);
  border-radius: 10px;
  animation: loaderProgress 2s ease-in-out infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes loaderProgress {
  0% { width: 0%; margin-left: 0; }
  50% { width: 70%; margin-left: 15%; }
  100% { width: 0%; margin-left: 100%; }
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 16px;
  margin-bottom: 10px;
  width: 100%;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-title {
  height: 28px;
  margin-bottom: 15px;
  width: 80%;
}

.skeleton-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
}

.skeleton-image {
  height: 200px;
  width: 100%;
}

.skeleton-btn {
  height: 45px;
  width: 150px;
  border-radius: var(--radius);
}

/* ==========================================================================
   29. ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes morphBlob {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50% {
    transform: scaleY(0.5);
    transform-origin: top;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes loaderDot {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes scrollPartners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-fadeInUp {
  opacity: 0;
  transform: translateY(30px);
}

.animate-fadeInUp.animated {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInLeft {
  opacity: 0;
  transform: translateX(-30px);
}

.animate-fadeInLeft.animated {
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
  opacity: 0;
  transform: translateX(30px);
}

.animate-fadeInRight.animated {
  animation: fadeInRight 0.6s ease forwards;
}

.animate-scaleIn {
  opacity: 0;
  transform: scale(0.9);
}

.animate-scaleIn.animated {
  animation: scaleIn 0.6s ease forwards;
}

.delay-1 {
  transition-delay: 0.1s;
  animation-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
  animation-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
  animation-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
  animation-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
  animation-delay: 0.5s;
}

/* ==========================================================================
   30. SCROLL ANIMATIONS
   ========================================================================== */
[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-down"] {
  transform: translateY(-40px);
}

[data-animate="fade-left"] {
  transform: translateX(-40px);
}

[data-animate="fade-right"] {
  transform: translateX(40px);
}

[data-animate="scale"] {
  transform: scale(0.9);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ============================================
   CAMPAIGN CARD DESIGN
   ============================================ */
.campaign-content {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campaign-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.campaign-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin: 0;
}

.campaign-description {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.campaign-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-raised {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
}

.progress-goal {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-3);
  border-radius: 10px;
  transition: width 1.5s ease;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}

/* ============================================
   BLOG CARD DESIGN
   ============================================ */
.blog-content {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin: 0;
}

.blog-excerpt {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--gray-400);
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-meta i {
  color: var(--secondary);
}

.blog-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.blog-link:hover {
  color: var(--secondary);
  gap: 10px;
}

.blog-link i {
  font-size: 0.75rem;
  transition: var(--transition);
}

/* ============================================
   CAMPAIGN IMAGE
   ============================================ */
.campaign-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.campaign-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.campaign-card:hover .campaign-image {
  transform: scale(1.05);
}

.blog-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

/* ============================================
   DONATION MODAL
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

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

.donation-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0 0 24px;
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.amount-btn {
  padding: 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.custom-amount-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.custom-amount-input:focus {
  outline: none;
  border-color: var(--primary);
}

.donate-submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.donate-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ==========================================================================
   31. RESPONSIVE - TABLET (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-main,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .toc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .toc-arrow-col {
    flex-direction: row;
    justify-content: center;
  }

  .toc-arrow {
    transform: rotate(90deg);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .campaigns-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .volunteer-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-masonry {
    columns: 3;
  }

  .hero-floating-card {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
    gap: 5px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-link {
    color: var(--gray-700);
    width: 100%;
    padding: 12px 18px;
  }

  .nav-link:hover {
    background: var(--gray-50);
    color: var(--primary);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 20px;
    min-width: auto;
  }

  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0 0 0 20px;
    grid-template-columns: 1fr;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 15px;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-map-container {
    height: 350px;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   32. RESPONSIVE - MOBILE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .section {
    padding: 60px 16px;
  }

  .section-lg {
    padding: 80px 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .mv-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .mv-card-new {
    padding: 28px !important;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .team-card .team-image {
    height: 180px;
  }

  .team-card .team-social {
    padding: 8px;
    gap: 4px;
  }

  .team-card .team-social a {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .team-card h4 {
    font-size: 0.9rem;
  }

  .team-card .team-position {
    font-size: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat-card {
    padding: 25px 15px;
  }

  .stat-card .stat-number {
    font-size: 2.2rem;
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }

  .area-card {
    height: 280px;
  }

  .campaigns-grid {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    flex-direction: column;
  }

  .event-card .event-date {
    width: 100%;
    flex-direction: row;
    gap: 10px;
    padding: 15px 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-masonry {
    columns: 2;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat .stat-number {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

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

  .blog-grid-inner {
    grid-template-columns: 1fr;
  }

  .blog-layout {
    gap: 30px;
  }

  .blog-card .blog-image {
    height: 200px;
  }

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

  .volunteer-form-wrapper {
    padding: 25px;
  }

  .volunteer-layout {
    gap: 30px;
  }

  .form-control {
    width: 100%;
    box-sizing: border-box;
  }

  .footer-main,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    padding: 25px;
  }

  .page-hero {
    padding: 130px 0 70px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .breadcrumb {
    flex-wrap: wrap;
    justify-content: center;
  }

  .testimonial-quote {
    font-size: 1.1rem;
  }

  .testimonial-quote::before {
    font-size: 3rem;
  }

  .mv-card {
    padding: 30px 25px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .container {
    padding: 0 16px;
  }

  .btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
  }

  .theory-pair { flex-direction: column; }
  .theory-arrow { width: 100%; height: 48px; flex-direction: row; }
  .theory-arrow .arrow-desktop { display: none; }
  .theory-arrow .arrow-mobile { display: flex; align-items: center; justify-content: center; }
}

/* ==========================================================================
   33. RESPONSIVE - SMALL (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .section {
    padding: 50px 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .hero {
    min-height: 100vh;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .hero-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
  }

  .hero-stat .stat-number {
    font-size: 1.8rem;
  }

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

  .stat-card .stat-number {
    font-size: 2rem;
  }

  .partners-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .partner-logo {
    height: 70px;
    padding: 15px;
  }

  .gallery-masonry {
    columns: 1;
  }

  .contact-info-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-map-container {
    height: 300px;
  }

  .contact-social {
    justify-content: center;
  }

  .social-pill span {
    display: none;
  }

  .social-pill {
    padding: 12px;
    border-radius: var(--radius-full);
    width: 48px;
    height: 48px;
    justify-content: center;
  }

  .about-content h2 {
    font-size: 1.5rem;
  }

  .area-card {
    height: 250px;
  }

  .campaign-card .campaign-image {
    height: 180px;
  }

  .blog-card .blog-image {
    height: 180px;
  }

  .team-card .team-image {
    height: 160px;
  }

  .volunteer-cta {
    padding: 50px 0;
  }

  .volunteer-cta h2 {
    font-size: 1.5rem;
  }

  .toc-card {
    padding: 20px;
  }

  .mv-card .mv-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .lightbox-close {
    top: -40px;
    right: 0;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .blog-card .blog-image {
    height: 180px;
  }

  .blog-card .blog-body {
    padding: 18px;
  }

  .blog-card h3 {
    font-size: 1.05rem;
  }

  .volunteer-form-wrapper {
    padding: 20px;
  }

  .contact-form {
    padding: 20px;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   33b. BLOG LAYOUT
   ========================================================================== */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.blog-main {
  min-width: 0;
}

.blog-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
}

.blog-sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.blog-search-wrapper {
  position: relative;
}

.blog-search-input {
  padding-right: 45px !important;
}

.blog-search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
}

.blog-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ==========================================================================
   33c. VOLUNTEER LAYOUT
   ========================================================================== */
.volunteer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.volunteer-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

/* ==========================================================================
   34. DARK THEME
   ========================================================================== */
.dark-theme {
  --dark: #ffffff;
  --white: #0a0f1a;
  --gray-50: #1a1f2e;
  --gray-100: #1e2333;
  --gray-200: #252b3b;
  --gray-300: #333a4d;
  --gray-400: #555d73;
  --gray-500: #8892a7;
  --gray-600: #b0b8c9;
  --gray-700: #e1e5ed;
}

.dark-theme body {
  background-color: #0a0f1a;
  color: #e1e5ed;
}

.dark-theme .card,
.dark-theme .contact-form,
.dark-theme .contact-info-card,
.dark-theme .partner-logo,
.dark-theme .blog-card,
.dark-theme .campaign-card,
.dark-theme .event-card,
.dark-theme .mv-card,
.dark-theme .toc-card {
  background: #1a1f2e;
}

.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6 {
  color: #ffffff;
}

.dark-theme p {
  color: #b0b8c9;
}

.dark-theme .navbar.scrolled {
  background: rgba(10, 15, 26, 0.95);
}

.dark-theme .form-control {
  background: #1e2333;
  border-color: #252b3b;
  color: #e1e5ed;
}

.dark-theme .form-control:focus {
  background: #252b3b;
}

.dark-theme .dropdown-menu {
  background: #1a1f2e;
  border-color: #252b3b;
}

.dark-theme .dropdown-menu .dropdown-item {
  color: #b0b8c9;
}

.dark-theme .dropdown-menu .dropdown-item:hover {
  background: #252b3b;
  color: #ffffff;
}

.dark-theme .footer {
  background: #050810;
}

.dark-theme .page-hero {
  background: linear-gradient(135deg, #0a0f1a 0%, #1a1f2e 100%);
}

.dark-theme .gallery-filter .filter-btn {
  background: #1a1f2e;
  border-color: #252b3b;
  color: #b0b8c9;
}

.dark-theme .gallery-filter .filter-btn:hover,
.dark-theme .gallery-filter .filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.dark-theme .badge-primary {
  background: rgba(42, 80, 128, 0.3);
}

.dark-theme .badge-accent {
  background: rgba(46, 204, 113, 0.2);
}

.dark-theme .back-to-top {
  background: var(--primary-light);
}

.dark-theme .nav-links {
  background: #0a0f1a;
}

.dark-theme .nav-link {
  color: #b0b8c9;
}

.dark-theme .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.dark-theme .testimonial-quote {
  color: rgba(255, 255, 255, 0.9);
}

.dark-theme .testimonial-author-info h4 {
  color: #ffffff;
}

.dark-theme .testimonial-author-info p {
  color: rgba(255, 255, 255, 0.6);
}

.dark-theme .event-card .event-date {
  background: var(--primary-dark);
}

.dark-theme .campaign-card .campaign-footer {
  border-top-color: #252b3b;
}

.dark-theme .blog-card .blog-footer {
  border-top-color: #252b3b;
}

.dark-theme .mv-card .mv-list li {
  border-bottom-color: #252b3b;
}

.dark-theme .progress {
  background: #252b3b;
}

/* ==========================================================================
   35. RECEIPT PAGE (Print Styles)
   ========================================================================== */
@media print {
  .receipt-page {
    font-family: 'Outfit', Arial, sans-serif;
    color: #000;
    background: #fff;
    padding: 20px;
  }

  .receipt-page * {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .receipt-page .navbar,
  .receipt-page .footer,
  .receipt-page .back-to-top,
  .receipt-page .btn,
  .receipt-page .no-print {
    display: none !important;
  }

  .receipt-page .receipt-container {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #ddd;
    padding: 30px;
  }

  .receipt-page .receipt-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .receipt-page .receipt-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .receipt-page .receipt-header p {
    font-size: 0.9rem;
    margin: 0;
  }

  .receipt-page .receipt-details {
    margin-bottom: 20px;
  }

  .receipt-page .receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
  }

  .receipt-page .receipt-row .label {
    font-weight: 600;
  }

  .receipt-page .receipt-total {
    font-size: 1.2rem;
    font-weight: 700;
    border-top: 2px solid #000;
    padding-top: 10px;
    margin-top: 10px;
  }

  .receipt-page .receipt-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.85rem;
  }

  .receipt-page .receipt-logo {
    max-width: 150px;
    margin: 0 auto 15px;
  }

  .receipt-page .receipt-barcode {
    text-align: center;
    margin-top: 20px;
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  @page {
    margin: 1cm;
    size: A4;
  }
}

/* ==========================================================================
   36. PRINT ONLY CLASSES
   ========================================================================== */
@media screen {
  .print-only {
    display: none !important;
  }
}

@media print {
  .print-only {
    display: block !important;
  }

  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   37. ADDITIONAL COMPONENTS
   ========================================================================== */

/* Tabs */
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 30px;
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

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

.tab-btn.active {
  color: var(--primary);
  font-weight: 600;
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
  animation: fadeInUp 0.4s ease;
}

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

/* Accordion */
.accordion {
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--gray-50);
}

.accordion-header h4 {
  font-size: 1rem;
  margin: 0;
}

.accordion-header .accordion-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.8rem;
}

.accordion-item.active .accordion-header .accordion-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-body-content {
  padding: 0 24px 18px;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
}

/* Alert / Notification */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
  color: var(--accent-dark);
}

.alert-error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: #c0392b;
}

.alert-warning {
  background: rgba(241, 196, 15, 0.1);
  border: 1px solid rgba(241, 196, 15, 0.2);
  color: #d4a00a;
}

.alert-info {
  background: rgba(30, 58, 95, 0.1);
  border: 1px solid rgba(30, 58, 95, 0.2);
  color: var(--primary);
}

.alert i {
  font-size: 1.2rem;
  margin-top: 2px;
}

/* Tooltip */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-wrapper .tooltip-text {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 10;
}

.tooltip-wrapper .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--dark);
}

.tooltip-wrapper:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

/* Breadcrumb Page */
.breadcrumb-page {
  padding: 15px 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-page .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breadcrumb-page .breadcrumb-left h1 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination .page-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-300);
  transition: var(--transition);
}

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

.pagination .page-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination .page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Sidebar Widget */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.sidebar-widget h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}

.sidebar-search {
  position: relative;
}

.sidebar-search .form-control {
  padding-right: 45px;
}

.sidebar-search button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sidebar-search button:hover {
  background: var(--primary-dark);
}

.sidebar-categories li {
  margin-bottom: 10px;
}

.sidebar-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--gray-600);
  transition: var(--transition);
}

.sidebar-categories a:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.sidebar-categories .count {
  background: var(--gray-100);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.sidebar-categories a:hover .count {
  background: var(--primary);
  color: var(--white);
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gray-600);
  background: var(--gray-100);
  transition: var(--transition);
}

.tag-cloud a:hover {
  background: var(--primary);
  color: var(--white);
}

/* CTA Section */
.cta-section {
  background: var(--gradient-2);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -200px;
  right: -100px;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 15px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 30px;
}

/* Pricing Table */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured .pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 20px 0;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-500);
}

.pricing-card .pricing-features {
  text-align: left;
  margin: 25px 0;
}

.pricing-card .pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--gray-600);
}

.pricing-card .pricing-features li i {
  color: var(--accent);
}

.pricing-card .pricing-features li.disabled {
  opacity: 0.4;
}

.pricing-card .pricing-features li.disabled i {
  color: var(--gray-400);
}

/* Newsletter */
.newsletter {
  background: var(--gray-50);
  padding: 60px 0;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form .form-control {
  flex: 1;
}

/* Map Section */
.map-section {
  height: 400px;
  position: relative;
}

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

/* Timeline - Used by about page */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--gray-200);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item .timeline-content {
  width: 100%;
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.timeline-item .timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.timeline-item .timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary);
  z-index: 1;
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
  display: block;
}

.timeline-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   38. ICON BOX
   ========================================================================== */
.icon-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.icon-box:hover {
  background: var(--gray-50);
  transform: translateY(-3px);
}

.icon-box .icon-box-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.icon-box.icon-box-primary .icon-box-icon {
  background: rgba(30, 58, 95, 0.1);
  color: var(--primary);
}

.icon-box.icon-box-primary:hover .icon-box-icon {
  background: var(--primary);
  color: var(--white);
}

.icon-box.icon-box-accent .icon-box-icon {
  background: rgba(46, 204, 113, 0.1);
  color: var(--accent);
}

.icon-box.icon-box-accent:hover .icon-box-icon {
  background: var(--accent);
  color: var(--white);
}

.icon-box.icon-box-secondary .icon-box-icon {
  background: rgba(201, 162, 39, 0.1);
  color: var(--secondary);
}

.icon-box.icon-box-secondary:hover .icon-box-icon {
  background: var(--secondary);
  color: var(--white);
}

.icon-box h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.icon-box p {
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   39. COUNTER ANIMATION
   ========================================================================== */
.counter-box {
  text-align: center;
  padding: 30px;
}

.counter-box .counter-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.counter-box .counter-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
}

.counter-box .counter-label {
  font-size: 1rem;
  color: var(--gray-500);
}

/* ==========================================================================
   40. IMAGE COMPARISON
   ========================================================================== */
.image-comparison {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.image-comparison img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   41. SCROLL PROGRESS BAR
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-1);
  z-index: 10000;
  transition: width 0.1s ease;
}

/* ==========================================================================
   42. CUSTOM CURSOR EFFECTS
   ========================================================================== */
.cursor-pointer {
  cursor: pointer;
}

/* ==========================================================================
   43. SELECTION HIGHLIGHT
   ========================================================================== */
::selection {
  background: var(--primary);
  color: var(--white);
}

::-moz-selection {
  background: var(--primary);
  color: var(--white);
}

/* ==========================================================================
   44. FOCUS STYLES (Accessibility)
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ==========================================================================
   45. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-shape,
  .partners-track,
  .hero-floating-card,
  .animate-on-scroll,
  [data-animate] {
    animation: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   46. HIGH CONTRAST MODE
   ========================================================================== */
@media (prefers-contrast: high) {
  :root {
    --shadow: 0 0 0 2px #000;
    --shadow-lg: 0 0 0 3px #000;
  }

  .btn {
    border-width: 3px;
  }
}

/* ==========================================================================
   47. HTML/CSS CLASS NAME COMPATIBILITY
   Maps HTML class names to expected CSS class names
   ========================================================================== */

/* --- Navbar compatibility --- */
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-logo { height: 40px; width: auto; }
.navbar .brand-text { display: flex; flex-direction: column; }
.navbar .brand-name { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.navbar .brand-tagline { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.navbar.scrolled .brand-name { color: var(--dark); }
.navbar.scrolled .brand-tagline { color: var(--gray-500); }
.navbar.scrolled .header-tagline { color: var(--gray-500); }
.mobile-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; z-index: 1001; padding: 4px; background: none; border: none; }
.mobile-toggle .hamburger-line { display: block; width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.navbar.scrolled .mobile-toggle .hamburger-line { background: var(--dark); }
.mobile-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
.user-menu-container { margin-left: auto; }
.user-menu-container .auth-links { display: flex; gap: 10px; align-items: center; }
.user-menu-container .user-menu { position: relative; }
.user-menu-container .user-avatar-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); overflow: hidden; cursor: pointer; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.user-menu-container .user-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-menu-container .user-avatar-btn .avatar-initial { font-size: 1rem; font-weight: 700; }
.user-menu-container .user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 260px; max-width: calc(100vw - 32px); padding: 8px 0; display: none; z-index: 1000; overflow: hidden; }
.user-menu-container .user-dropdown.open { display: block; }
.user-menu-container .dropdown-header { padding: 14px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--gray-200); }
.user-menu-container .dropdown-header img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: block; }
.user-menu-container .dropdown-header .avatar-initial { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.user-menu-container .dropdown-header > div { min-width: 0; flex: 1; }
.user-menu-container .dropdown-header strong { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu-container .dropdown-header small { display: block; color: var(--gray-500); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu-container .dropdown-divider { height: 1px; background: var(--gray-200); margin: 4px 0; }
.user-menu-container .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 0.9rem; color: var(--gray-700); transition: var(--transition); }
.user-menu-container .dropdown-item:hover { background: var(--gray-50); color: var(--primary); }
.user-menu-container .dropdown-item i { width: 18px; text-align: center; }

.header-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  margin-left: 12px;
}
.header-donate-btn:hover {
  background: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}
.navbar.scrolled .header-donate-btn {
  background: var(--secondary);
  color: var(--white);
}
@media (max-width: 768px) {
  .header-donate-btn { padding: 5px 12px; font-size: 0.75rem; margin-left: 6px; }
}

/* --- Hero section compatibility --- */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--gradient-hero); overflow: hidden; }
.hero-section .hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.hero-section .hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; overflow: hidden; background-size: cover; background-position: center; }
.hero-section .hero-slide.active { opacity: 1; z-index: 1; }
.hero-section .hero-slide::before { content: ''; position: absolute; top: -5%; left: -5%; width: 110%; height: 110%; background-image: inherit; background-size: cover; background-position: center; z-index: 0; }
.hero-section .hero-slide.active::before { animation: kenBurns 8s ease forwards; }
.hero-section .hero-slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.45); z-index: 1; }
.hero-section .hero-content { position: relative; z-index: 2; max-width: 700px; padding-top: 260px; }
.hero-section .hero-subtitle { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 8px 20px; border-radius: 50px; color: var(--white); font-size: 0.875rem; font-weight: 500; margin-bottom: 25px; border: 1px solid rgba(255,255,255,0.15); }
.hero-section .hero-title { color: var(--white); font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.hero-section .hero-title .highlight { position: relative; display: inline-block; }
.hero-section .hero-title .highlight::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 12px; background: var(--secondary); opacity: 0.4; border-radius: 4px; z-index: -1; }
.hero-section .hero-description { color: rgba(255,255,255,0.8); font-size: 1.2rem; margin-bottom: 35px; max-width: 550px; line-height: 1.8; }
.hero-section .hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-section .hero-blob { position: absolute; border-radius: 50%; opacity: 0.1; pointer-events: none; }
.hero-section .hero-blob-1 { width: 400px; height: 400px; background: var(--accent); top: -100px; right: -100px; animation: float 8s ease-in-out infinite; }
.hero-section .hero-blob-2 { width: 300px; height: 300px; background: var(--secondary); bottom: -50px; left: -50px; animation: float 10s ease-in-out infinite reverse; }
.hero-section .hero-blob-3 { width: 200px; height: 200px; background: var(--primary-light); top: 40%; left: 30%; animation: float 6s ease-in-out infinite 1s; }

.hero-section .hero-logo { height: 70px; width: auto; margin-bottom: 20px; padding: 10px 16px; background: rgba(255, 255, 255, 0.15); border: 2px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius); backdrop-filter: blur(10px); display: block; }

/* Hero top bar - navigation inside hero */
.hero-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 16px 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
}
.hero-top-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-mobile-toggle {
  position: absolute;
  right: 0;
}
.hero-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Centered hero branding */
.hero-centered-brand {
  position: absolute;
  top: 120px;
  left: 0;
  right: 0;
  z-index: 15;
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-centered-logo {
  height: 100px;
  width: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.4));
}
.hero-centered-name {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.hero-centered-tagline {
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  color: rgba(255,255,255,0.85);
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-nav .hero-nav-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.hero-nav .hero-nav-link:hover,
.hero-nav .hero-nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.hero-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hero-mobile-toggle .hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hero-mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 260px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 12px;
  flex-direction: column;
  gap: 2px;
}
.hero-mobile-nav.open { display: flex; }
.hero-mobile-nav .hero-nav-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.hero-mobile-nav .hero-nav-link:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
@media (max-width: 768px) {
  .hero-centered-brand {
    top: 30px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
  }
  .hero-nav { display: none; }
  .hero-mobile-toggle { display: flex; }
  .hero-section .hero-content { padding-top: 30px; }
  .hero-section .hero-title { font-size: clamp(1.8rem, 5vw, 2.5rem); }
  .hero-section .hero-description { font-size: 1rem; line-height: 1.6; }
  .hero-section .hero-buttons { flex-direction: column; gap: 10px; }
  .hero-section .hero-buttons .btn { width: 100%; text-align: center; }
  .hero-stats { position: relative; }
  .hero-stats-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 769px) {
  .hero-mobile-nav { display: none !important; }
}

/* Learn More button - solid background */
.hero-section .btn-outline {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.hero-section .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* Hero floating info cards */
.floating-info-cards { position: absolute; right: 10%; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 20px; }
.floating-card { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 16px 24px; color: var(--white); transition: var(--transition); text-decoration: none; }
.floating-card:hover { background: rgba(255,255,255,0.2); transform: translateX(-5px); color: var(--white); }
.floating-card-icon { width: 50px; height: 50px; border-radius: var(--radius-sm); background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.floating-card-text { display: flex; flex-direction: column; }
.floating-card-text .floating-label { font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; }
.floating-card-text .floating-value { font-size: 0.95rem; font-weight: 600; }

/* Hero stats row */
.hero-stats { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; background: rgba(0,0,0,0.2); backdrop-filter: blur(10px); }
.hero-stats .container { padding: 0; }
.hero-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stat-box { text-align: center; padding: 25px 20px; border-right: 1px solid rgba(255,255,255,0.1); }
.hero-stat-box:last-child { border-right: none; }
.hero-stat-icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 8px; }
.hero-stat-number { font-size: 2.2rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 4px; }
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Hero slider nav */
.hero-slider-nav { position: absolute; bottom: 120px; right: 10%; z-index: 5; display: flex; gap: 10px; }
.hero-nav-btn { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; font-size: 1.1rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.hero-nav-btn:hover { background: var(--primary); border-color: var(--primary); }
.hero-dots { position: absolute; bottom: 130px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); border: none; cursor: pointer; transition: var(--transition); }
.hero-dot.active { background: var(--secondary); transform: scale(1.2); }

/* --- About section compatibility --- */
.about-section { position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content .section-subtitle { display: inline-block; margin-bottom: 12px; }
.about-content .section-title { margin-bottom: 20px; }
.about-text { color: var(--gray-600); line-height: 1.8; margin-bottom: 15px; }
.about-content .about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 25px 0; }
.about-content .about-features li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--gray-700); }
.about-content .about-features li i { color: var(--accent); font-size: 1.1rem; }
.about-buttons { display: flex; gap: 12px; margin-top: 25px; }
.about-image-wrapper { position: relative; }
.about-image-wrapper .about-image { width: 100%; height: 450px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-accent-shape { position: absolute; width: 120px; height: 120px; background: var(--gradient-3); border-radius: var(--radius-lg); bottom: -30px; left: -30px; z-index: -1; }
.about-experience-badge { position: absolute; bottom: 30px; right: -20px; background: var(--primary); color: var(--white); padding: 25px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-lg); }
.about-experience-badge .badge-number { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; }
.about-experience-badge .badge-text { font-size: 0.85rem; opacity: 0.9; }

/* --- Theory of Change compatibility --- */
.theory-section { background: var(--gray-50); }
.theory-flow { display: flex; flex-direction: column; gap: 30px; max-width: 900px; margin: 40px auto 0; }
.theory-pair { display: flex; align-items: stretch; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--primary); box-shadow: var(--shadow-md); }
.theory-card { flex: 1; background: var(--white); padding: 30px; position: relative; transition: var(--transition); }
.theory-card.theory-if { border-left: none; }
.theory-card.theory-then { border-left: none; }
.theory-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); z-index: 1; }
.theory-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; padding: 5px 14px; border-radius: 20px; margin-bottom: 14px; }
.theory-badge.if-badge { background: var(--primary); color: var(--white); }
.theory-badge.then-badge { background: var(--accent); color: var(--white); }
.theory-icon { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--gradient-1); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.3rem; margin-bottom: 16px; }
.theory-card.theory-then .theory-icon { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.theory-title { font-size: 1.15rem; margin-bottom: 10px; }
.theory-description { font-size: 0.93rem; margin: 0; color: var(--gray-600); line-height: 1.7; }
.theory-arrow { display: flex; align-items: center; justify-content: center; width: 56px; flex-shrink: 0; background: var(--primary); color: var(--white); font-size: 1.3rem; }
.theory-arrow .arrow-mobile { display: none; }
.theory-arrow .arrow-desktop { display: flex; align-items: center; justify-content: center; }

/* --- Stats section compatibility --- */
.stats-section .stat-card .stat-icon { width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; color: var(--accent); }
.stats-section .stat-card .stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 8px; }
.stats-section .stat-card .stat-label { font-size: 0.95rem; color: rgba(255,255,255,0.7); }

/* --- Section header compatibility --- */
.section-header .section-subtitle { display: inline-block; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--secondary); margin-bottom: 10px; }
.section-header .section-title { margin-bottom: 15px; }
.section-header p { color: var(--gray-500); max-width: 600px; margin: 0 auto; }

/* --- Mission/Vision compatibility --- */
.mission-vision .mv-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); border-top: 4px solid var(--primary); transition: var(--transition); }
.mission-vision .mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.mission-vision .mv-card.vision-card { border-top-color: var(--accent); }
.mission-vision .mv-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--gradient-1); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.5rem; margin-bottom: 20px; }
.mission-vision .mv-card.vision-card .mv-icon { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.mv-card-new { transition: all 0.4s ease !important; }
.mv-card-new:hover { transform: translateY(-8px) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important; border-color: rgba(255,255,255,0.2) !important; }
.mv-card-new.mission:hover { border-top-color: #c9a227 !important; }
.mv-card-new.vision:hover { border-top-color: #10b981 !important; }

/* --- Campaigns compatibility --- */
.campaigns-section .campaign-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.campaigns-section .campaign-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.campaigns-section .campaign-image { position: relative; height: 220px; overflow: hidden; }
.campaigns-section .campaign-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.campaigns-section .campaign-card:hover .campaign-image img { transform: scale(1.05); }
.campaigns-section .campaign-badges { position: absolute; top: 15px; left: 15px; display: flex; gap: 8px; }
.campaigns-section .campaign-body { padding: 24px; }
.campaigns-section .campaign-category { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.campaigns-section .campaign-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.campaigns-section .campaign-excerpt { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 16px; }
.campaigns-progress { margin-bottom: 16px; }
.campaigns-progress .progress-bar { width: 100%; height: 8px; background: var(--gray-200); border-radius: 10px; overflow: hidden; }
.campaigns-progress .progress-fill { height: 100%; background: var(--gradient-3); border-radius: 10px; transition: width 1s ease; }
.campaigns-progress .progress-info { display: flex; justify-content: space-between; font-size: 0.85rem; margin-top: 8px; }
.campaigns-progress .progress-info .raised { color: var(--accent); font-weight: 600; }
.campaigns-progress .progress-info .goal { color: var(--gray-500); }
.campaigns-section .campaign-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.campaigns-section .campaign-footer .donors { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--gray-500); }
.campaign-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.campaign-badge.active { background: rgba(46,204,113,0.1); color: var(--accent-dark); }
.campaign-badge.completed { background: rgba(30,58,95,0.1); color: var(--primary); }
.campaign-badge.upcoming { background: rgba(201,162,39,0.1); color: var(--secondary-dark); }
.campaign-featured { position: absolute; top: 15px; right: 15px; background: var(--secondary); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* --- Team compatibility --- */
.team-section .team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); text-align: center; }
.team-section .team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-section .team-image { position: relative; height: 220px; overflow: hidden; }
.team-section .team-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: var(--transition-slow); }
.team-section .team-card:hover .team-image img { transform: scale(1.05); }
.team-section .team-social { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; padding: 12px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); transform: translateY(100%); transition: var(--transition); }
.team-section .team-card:hover .team-social { transform: translateY(0); }
.team-section .team-social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.2); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: var(--transition); }
.team-section .team-social a:hover { background: var(--primary); }
.team-section .team-info { padding: 15px; }
.team-section .team-info h4 { font-size: 1rem; margin-bottom: 3px; }
.team-section .team-position { font-size: 0.8rem; color: var(--primary); font-weight: 500; }

/* --- Partners compatibility --- */
.partners-section .partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.partners-section .partner-item { display: flex; align-items: center; justify-content: center; padding: 30px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); filter: grayscale(100%); opacity: 0.6; }
.partners-section .partner-item:hover { filter: grayscale(0%); opacity: 1; transform: translateY(-5px); box-shadow: var(--shadow-md); }
.partners-section .partner-item img { max-height: 60px; max-width: 100%; }
.partners-section .partner-name { font-size: 1rem; font-weight: 600; color: var(--gray-700); text-align: center; }

/* --- Testimonials compatibility --- */
.testimonials-section .testimonial-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: relative; }
.testimonials-section .testimonial-quote { font-size: 1.05rem; font-style: italic; color: var(--gray-600); line-height: 1.8; margin-bottom: 20px; position: relative; padding-left: 20px; border-left: 3px solid var(--secondary); }
.testimonials-section .testimonial-author { display: flex; align-items: center; gap: 15px; }
.testimonials-section .testimonial-author img { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; }
.testimonials-section .testimonial-author-info h4 { font-size: 1rem; margin-bottom: 2px; }
.testimonials-section .testimonial-author-info p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }
.testimonials-section .testimonial-rating { display: flex; gap: 3px; margin-top: 12px; }
.testimonials-section .testimonial-rating i { color: var(--secondary); font-size: 0.9rem; }

/* --- Events compatibility --- */
.events-section .event-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; position: relative; }
.events-section .event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.events-section .event-date-badge { position: absolute; top: 15px; left: 15px; background: var(--primary); color: var(--white); padding: 12px 16px; border-radius: var(--radius-sm); text-align: center; z-index: 2; }
.events-section .event-date-badge .day { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.events-section .event-date-badge .month { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.events-section .event-image { position: relative; height: 200px; overflow: hidden; }
.events-section .event-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.events-section .event-card:hover .event-image img { transform: scale(1.05); }
.events-section .event-type-badge { position: absolute; top: 15px; right: 15px; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; background: var(--secondary); color: var(--white); z-index: 2; }
.events-section .event-content { padding: 24px; flex: 1; }
.events-section .event-content h3 { font-size: 1.2rem; margin-bottom: 12px; }
.events-section .event-meta { display: flex; flex-direction: column; gap: 6px; }
.events-section .event-meta span { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--gray-500); }
.events-section .event-meta span i { color: var(--primary); width: 18px; }
.events-section .event-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--primary); font-weight: 600; font-size: 0.95rem; }
.events-section .event-link:hover { gap: 10px; color: var(--primary-dark); }

/* --- Blog compatibility --- */
.blog-section .blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.blog-section .blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-section .blog-image { position: relative; height: 200px; overflow: hidden; }
.blog-section .blog-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.blog-section .blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-section .blog-category { position: absolute; top: 15px; left: 15px; background: var(--primary); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.blog-section .blog-body { padding: 24px; }
.blog-section .blog-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-section .blog-body h3 a:hover { color: var(--primary); }
.blog-section .blog-excerpt { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 16px; }
.blog-section .blog-meta { display: flex; align-items: center; gap: 15px; font-size: 0.85rem; color: var(--gray-500); margin-bottom: 12px; }
.blog-section .blog-meta span { display: flex; align-items: center; gap: 6px; }
.blog-section .blog-meta span i { color: var(--primary); }
.blog-section .read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 0.95rem; }
.blog-section .read-more:hover { gap: 10px; color: var(--primary-dark); }

/* --- Gallery compatibility --- */
.gallery-section .gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; justify-content: center; }
.gallery-section .filter-btn { padding: 8px 20px; border-radius: 50px; border: 2px solid var(--gray-200); background: var(--white); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: var(--transition); }
.gallery-section .filter-btn:hover, .gallery-section .filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.gallery-section .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-section .gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-section .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.gallery-section .gallery-item:hover img { transform: scale(1.1); }
.gallery-section .gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; opacity: 0; transition: var(--transition); }
.gallery-section .gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-section .gallery-overlay h4 { color: white; font-size: 1.1rem; margin-bottom: 4px; }
.gallery-section .gallery-overlay p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 0; }
.gallery-section .gallery-overlay .zoom-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; transition: var(--transition); }
.gallery-section .gallery-item:hover .gallery-overlay .zoom-icon { transform: translate(-50%, -50%) scale(1); }

/* --- Volunteer CTA compatibility --- */
.volunteer-cta-section { background: var(--gradient-1); position: relative; overflow: hidden; padding: 80px 0; }
.volunteer-cta-section::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.volunteer-cta-section::after { content: ''; position: absolute; bottom: -30%; left: -5%; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.volunteer-cta-section .container { position: relative; z-index: 1; text-align: center; }
.volunteer-cta-section h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.volunteer-cta-section p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 600px; margin: 0 auto 30px; }
.volunteer-cta-section .btn-white { background: var(--white); color: var(--primary); padding: 14px 32px; border-radius: var(--radius); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.volunteer-cta-section .btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); color: var(--primary); }

/* --- Contact compatibility --- */
.contact-section .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-section .contact-form h3 { font-size: 1.5rem; margin-bottom: 24px; }
.contact-section .contact-form .form-group { margin-bottom: 18px; }
.contact-section .contact-form label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--gray-700); margin-bottom: 6px; }
.contact-section .contact-form input, .contact-section .contact-form textarea, .contact-section .contact-form select { width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem; transition: var(--transition); outline: none; }
.contact-section .contact-form input:focus, .contact-section .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,95,0.1); }
.contact-section .contact-form textarea { resize: vertical; min-height: 120px; }
.contact-section .contact-info-card { display: flex; gap: 16px; padding: 20px; background: var(--gray-50); border-radius: var(--radius); margin-bottom: 16px; transition: var(--transition); }
.contact-section .contact-info-card:hover { background: var(--white); box-shadow: var(--shadow); }
.contact-section .contact-info-card .info-icon { width: 50px; height: 50px; border-radius: var(--radius-sm); background: var(--gradient-1); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.2rem; flex-shrink: 0; }
.contact-section .contact-info-card h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-section .contact-info-card p { font-size: 0.9rem; color: var(--gray-500); margin: 0; }
.contact-section .contact-social { display: flex; gap: 10px; margin-top: 20px; }
.contact-section .social-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; font-size: 0.875rem; font-weight: 600; color: var(--white); transition: var(--transition); }
.contact-section .contact-map-container { border-radius: var(--radius); overflow: hidden; height: 350px; box-shadow: var(--shadow); }
.contact-section .contact-map-container iframe, .contact-section .contact-map-container #mapContainer { width: 100%; height: 100%; border: 0; }

/* --- Footer compatibility --- */
.footer { background: var(--dark); color: var(--gray-400); }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 40px; }
.footer-about .footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-about .footer-brand img { height: 40px; }
.footer-about .footer-brand .brand-name { font-size: 1.3rem; font-weight: 700; color: var(--white); }
.footer-about p { font-size: 0.95rem; line-height: 1.7; color: var(--gray-400); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--gray-400); transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-column h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-column h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--secondary); border-radius: 2px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.95rem; color: var(--gray-400); transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.8rem; color: var(--gray-500); }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 0.95rem; }
.footer-contact li i { color: var(--secondary); width: 20px; text-align: center; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.9rem; color: var(--gray-500); margin: 0; }
.footer-bottom-links { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }
.footer-bottom-links a { font-size: 0.85rem; color: var(--gray-500); }
.footer-bottom-links a:hover { color: var(--secondary); }

/* --- Page Hero (inner pages) compatibility --- */
.page-hero { background: var(--gradient-hero); padding: 140px 0 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml,...') repeat; opacity: 0.05; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; position: relative; z-index: 1; }
.page-hero .breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 0.9rem; position: relative; z-index: 1; flex-wrap: wrap; justify-content: center; overflow: hidden; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb span { color: var(--gray-400); }

/* --- Scroll progress compatibility --- */
.scroll-progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--gradient-3); z-index: 9999; transition: width 0.1s; width: 0; }

/* --- Form message compatibility --- */
.form-message { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; display: none; }
.form-message.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-message.success { display: block; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* --- Back to top compatibility --- */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition); z-index: 99; box-shadow: var(--shadow-md); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); color: var(--white); }

/* --- Responsive fixes --- */
@media (max-width: 992px) {
    .navbar { padding: 10px 0; }
    .mobile-toggle { display: flex; }
    .navbar-brand { gap: 6px; }
    .navbar-logo { height: 30px; }
    .navbar .brand-name { font-size: 1rem; }
    .navbar .brand-tagline { font-size: 0.65rem; }
    .mobile-toggle .hamburger-line { width: 22px; height: 2.5px; }
    .user-menu-container .auth-links { gap: 4px; }
    .user-menu-container .auth-links .btn-sm { padding: 5px 10px; font-size: 0.75rem; }
    .user-menu-container .user-avatar-btn { width: 32px; height: 32px; }
    .hero-section .floating-info-cards { display: none; }
    .hero-section .hero-stats-row { grid-template-columns: repeat(2, 1fr); }
    .hero-slider-nav, .hero-dots { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrapper { order: -1; }
    .stats-section .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-section .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-section .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-section .contact-wrapper { grid-template-columns: 1fr; }
    .footer-main,
    .footer-grid { grid-template-columns: 1fr 1fr !important; }
    .nav-links { position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; background: var(--white); flex-direction: column; padding: 80px 20px 30px; box-shadow: -5px 0 30px rgba(0,0,0,0.1); transition: var(--transition); z-index: 999; overflow-y: auto; }
    .nav-links.open { right: 0; }
    .nav-links .nav-link { color: var(--gray-700); padding: 12px 16px; }
    .nav-links .nav-link:hover { background: var(--gray-50); color: var(--primary); }
    .nav-links .nav-donate-btn { display: none; }
}

@media (max-width: 576px) {
    .hero-section .hero-stats-row { grid-template-columns: 1fr 1fr; }
    .hero-section .hero-stat-box { padding: 15px 10px; }
    .hero-section .hero-stat-number { font-size: 1.5rem; }
    .stats-section .stats-grid { grid-template-columns: 1fr; }
    .partners-section .partners-grid { grid-template-columns: 1fr; }
    .gallery-section .gallery-grid { grid-template-columns: 1fr; }
    .footer-main,
    .footer-grid { grid-template-columns: 1fr !important; padding: 30px 0 20px !important; gap: 20px !important; }
    .footer-col { text-align: center; }
    .footer-col .footer-links { align-items: center; }
    .footer-social { justify-content: center; }
    .footer-contact-info { align-items: center; }
    .about-content .about-features { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr !important; }
    .mv-card-new { padding: 24px !important; }
    .timeline-item .timeline-content { width: 100%; }
    .mission-vision-section { padding: 60px 16px !important; }
    .about-section { padding: 60px 16px; }
    .container { padding: 0 16px; }
}

/* ==========================================================================
   OUR STORY TIMELINE
   ========================================================================== */
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: translateX(-50%);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
}
.timeline-item.left {
    justify-content: flex-start;
    padding-right: calc(50% + 30px);
    text-align: right;
}
.timeline-item.right {
    justify-content: flex-end;
    padding-left: calc(50% + 30px);
    text-align: left;
}
.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    white-space: nowrap;
}
.timeline-content {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    width: 100%;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}
.timeline-content h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}
.timeline-content p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-item.left,
    .timeline-item.right {
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
        justify-content: flex-start;
    }
    .timeline-date { left: 20px; }
    .timeline-content { max-width: 100%; }
}

/* ==========================================================================
   GALLERY SECTION - Wrapper for slider + mosaic
   ========================================================================== */
.gallery-wrapper {
    background: var(--gray-50, #f8f9fa);
    padding: 0;
    overflow: hidden;
}

/* ==========================================================================
   GALLERY SLIDER - Infinite horizontal scroll with nav buttons
   ========================================================================== */
.gallery-slider-section {
    overflow: visible;
    background: transparent;
}
.gallery-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.gallery-slider-viewport {
    overflow: hidden;
    border-radius: 12px;
}
.gallery-slider-track {
    display: flex;
    gap: 16px;
    will-change: transform;
}
.gallery-slide {
    transition: transform 0.3s;
    flex-shrink: 0;
}
.gallery-slide:hover { transform: scale(1.03); }
.gallery-slide img { transition: transform 0.5s; object-fit: cover; object-position: center; }
.gallery-slide:hover img { transform: scale(1.08); }

/* Nav buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30, 58, 95, 0.75);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 5;
    transition: background 0.3s, transform 0.3s;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.gallery-nav-btn:hover {
    background: rgba(30, 58, 95, 1);
    transform: translateY(-50%) scale(1.1);
}
.gallery-nav-prev {
    left: -4px;
}
.gallery-nav-next {
    right: -4px;
}

/* ==========================================================================
   GALLERY MOSAIC - Varied grid sizes for 10 random photos
   ========================================================================== */
.gallery-mosaic-section {
    background: transparent;
}
.mosaic-grid { position: relative; }
.mosaic-item { transition: transform 0.3s, box-shadow 0.3s; }
.mosaic-item:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(0,0,0,0.15); z-index: 2; }
.mosaic-item img { transition: transform 0.5s; object-fit: cover; object-position: center; }
.mosaic-item:hover img { transform: scale(1.1); }

@media (max-width: 768px) {
    .gallery-nav-btn { width: 36px; height: 36px; font-size: 0.85rem; }
    .gallery-nav-prev { left: 8px; }
    .gallery-nav-next { right: 8px; }
    .mosaic-grid { grid-template-columns: repeat(2, 1fr) !important; grid-auto-rows: 150px !important; }
    .mosaic-item { grid-column: span 1 !important; grid-row: span 1 !important; }
    .mosaic-item:nth-child(1) { grid-column: span 2 !important; }
}

/* ==========================================================================
   TESTIMONIALS - Continuous vertical scrolling (movie credits style)
   ========================================================================== */
.testimonials-scroll-wrapper {
    overflow: hidden;
    max-height: 400px;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}
.testimonials-scroll-track {
    animation: testimonialsScroll 20s linear infinite;
}
.testimonials-scroll-track:hover {
    animation-play-state: paused;
}
@keyframes testimonialsScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.testimonial-scroll-item {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-scroll-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ==========================================================================
   RESPONSIVE OVERRIDES (fix cascade ordering issues)
   ========================================================================== */

/* Blog layout mobile */
@media (max-width: 992px) {
  .blog-layout { grid-template-columns: 1fr; gap: 40px; }
  .volunteer-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .blog-grid-inner { grid-template-columns: 1fr; }
}

/* Event images cover container */
.events-section .event-image-wrapper { position: relative; height: 200px; overflow: hidden; }
.events-section .event-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.events-section .event-card:hover .event-image-wrapper img { transform: scale(1.05); }

/* Blog detail layout */
.blog-detail-layout { display: grid; grid-template-columns: 1fr; gap: 50px; }
.blog-detail-layout > * { min-width: 0; overflow-wrap: break-word; }
@media (min-width: 993px) { .blog-detail-layout { grid-template-columns: 2fr 1fr; } }

/* Blog post content - prevent overflow */
#postContent { overflow-wrap: break-word; word-wrap: break-word; }
#postContent img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 15px 0; }
#postContent pre { overflow-x: auto; max-width: 100%; padding: 15px; background: var(--gray-50); border-radius: var(--radius); }
#postContent code { font-size: 0.9em; }
#postContent blockquote { max-width: 100%; overflow: hidden; }
#postContent .drop-cap::first-letter {
    float: left; font-size: 4.5em; line-height: 0.8; font-weight: 700;
    color: var(--primary); margin: 0 0.08em 0 0; padding-top: 0.05em;
    font-family: Georgia, serif;
}
#postContent .drop-cap { padding-left: 0; line-height: 1.7; }
#postContent iframe { max-width: 100%; }
#postContent table { display: block; overflow-x: auto; max-width: 100%; }

/* Theory arrow mobile - force full width and down arrow */
@media (max-width: 768px) {
  .theory-pair { flex-direction: column; }
  .theory-arrow { width: 100% !important; height: 48px !important; flex-direction: row !important; border-radius: 0; }
  .theory-arrow .arrow-desktop { display: none !important; }
  .theory-arrow .arrow-mobile { display: flex !important; align-items: center; justify-content: center; }
}

/* ============================================
   EVENT AUDIENCE & PLACES (Frontend)
   ============================================ */
.event-card .event-audience-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  margin-top: 8px;
}

.event-card .event-fee-info,
.event-card .event-places-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
}

.event-card .event-fee-info i,
.event-card .event-places-info i {
  color: var(--primary);
  font-size: 11px;
}

/* ==========================================================================
   EVENTS LISTING CARDS (vertical layout fix)
   ========================================================================== */
.events-grid .event-card {
  flex-direction: column;
}
.events-grid .event-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gray-100, #f1f5f9);
  flex-shrink: 0;
}
.events-grid .event-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.events-grid .event-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary, #1e3a5f), var(--primary-dark, #0f172a));
  color: rgba(255, 255, 255, 0.6);
  font-size: 3rem;
}
.events-grid .event-date {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 64px;
  padding: 10px 6px;
  border-radius: 12px;
  background: var(--primary, #1e3a5f);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.events-grid .event-date.past {
  background: var(--gray-600, #475569);
}
.events-grid .event-date .day {
  font-size: 1.5rem;
}
.events-grid .event-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.events-grid .event-content {
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.events-grid .event-content h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 10px;
}
.events-grid .event-content h3 a {
  color: inherit;
  text-decoration: none;
}
.events-grid .event-content h3 a:hover {
  color: var(--primary, #1e3a5f);
}
.events-grid .event-meta {
  flex-direction: column;
}
.events-grid .event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.events-grid .event-audience-badge,
.events-grid .event-fee-badge,
.events-grid .event-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0;
}
.events-grid .event-fee-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.events-grid .event-free-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.events-grid .event-places {
  font-size: 0.82rem;
  color: var(--gray-500, #64748b);
  margin-top: 8px;
}
.events-grid .event-places em {
  color: #ef4444;
  font-style: normal;
  font-weight: 600;
}
.events-grid .event-desc {
  font-size: 0.9rem;
  color: var(--gray-600, #475569);
  margin: 12px 0;
  line-height: 1.6;
}
.events-grid .event-learn-more {
  color: var(--primary, #1e3a5f);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
  padding-top: 4px;
}
.events-grid .event-learn-more i {
  font-size: 0.7rem;
  margin-left: 2px;
}
.events-grid .event-learn-more:hover {
  text-decoration: underline;
}
@media (max-width: 992px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODERN EVENT CARDS (premium redesign)
   ========================================================================== */
.events-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  align-items: stretch;
}
.ev-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  animation: evFadeUp 0.5s ease both;
}
.ev-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.ev-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0a0f1a 100%);
  flex-shrink: 0;
}
.ev-media.no-img .ev-img {
  display: none;
}
.ev-media::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.ev-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.ev-card:hover .ev-img {
  transform: scale(1.08);
}
.ev-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.15) 0%, transparent 35%, rgba(10, 15, 26, 0.55) 100%);
  pointer-events: none;
}
.ev-type {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 15, 26, 0.55);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 2;
}
.ev-aud {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--aud, #10b981) 16%, white);
  color: var(--aud, #10b981);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid color-mix(in srgb, var(--aud, #10b981) 35%, transparent);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.ev-past-ribbon {
  position: absolute;
  bottom: 16px;
  right: -8px;
  background: var(--gray-600);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 16px 5px 12px;
  border-radius: 8px 0 0 8px;
  z-index: 2;
}
.ev-date {
  position: absolute;
  left: 16px;
  bottom: -30px;
  width: 68px;
  padding: 10px 6px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.7);
  text-align: center;
  z-index: 3;
}
.ev-day {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}
.ev-mon {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary-dark);
  margin-top: 2px;
}
.ev-card.is-past .ev-img {
  filter: grayscale(0.7);
}
.ev-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 44px 22px 22px;
  flex: 1;
}
.ev-title {
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-title a {
  color: var(--dark, #0a0f1a);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ev-title a:hover {
  color: var(--primary);
}
.ev-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ev-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--gray-600);
}
.ev-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.1), rgba(201, 162, 39, 0.14));
  color: var(--primary);
  font-size: 0.78rem;
  flex-shrink: 0;
}
.ev-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ev-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
}
.ev-pill.ev-fee {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.22);
}
.ev-pill.ev-free {
  background: rgba(46, 204, 113, 0.12);
  color: var(--accent-dark);
  border: 1px solid rgba(46, 204, 113, 0.25);
}
.ev-pill.ev-seats-pill {
  background: rgba(30, 58, 95, 0.07);
  color: var(--primary);
  border: 1px solid rgba(30, 58, 95, 0.14);
}
.ev-seats-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.ev-seats-top em {
  color: #dc2626;
  font-style: normal;
  font-weight: 700;
}
.ev-bar {
  height: 8px;
  border-radius: 50px;
  background: var(--gray-100);
  overflow: hidden;
}
.ev-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
  transition: width 0.6s ease;
}
.ev-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gray-600);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-foot {
  margin-top: auto;
  padding-top: 6px;
}
.ev-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, gap 0.25s ease;
}
.ev-cta i {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}
.ev-cta:hover {
  color: #fff;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.35);
  transform: translateY(-1px);
}
.ev-cta:hover i {
  transform: translateX(3px);
}
.ev-card.is-past .ev-cta {
  background: var(--gray-600);
}
@keyframes evFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 640px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .ev-media {
    height: 200px;
  }
}
.dark-theme .ev-card {
  background: #111827;
  border-color: #1f2937;
}
.dark-theme .ev-title a {
  color: #f9fafb;
}
.dark-theme .ev-meta-row,
.dark-theme .ev-desc,
.dark-theme .ev-seats-top {
  color: #9ca3af;
}
.dark-theme .ev-date {
  background: rgba(17, 24, 39, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}
.dark-theme .ev-day {
  color: #fff;
}
.dark-theme .ev-bar {
  background: #1f2937;
}
@media (prefers-reduced-motion: reduce) {
  .ev-card,
  .ev-img,
  .ev-cta {
    animation: none;
    transition: none;
  }
}

/* ==========================================================================
   PREMIUM EVENT CARDS (evt-*) + EVENT DETAIL
   ========================================================================== */
.events-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  align-items: stretch;
}
.events-grid .evt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  animation: evtIn 0.55s ease both;
}
.events-grid .evt-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.55);
}
.events-grid .evt-media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 190px;
  max-height: 240px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e3a5f 0%, #142940 55%, #0a0f1a 100%);
}
.events-grid .evt-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.events-grid .evt-card:hover .evt-img {
  transform: scale(1.07);
}
.events-grid .evt-media--empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 3.2rem;
}
.events-grid .evt-media--empty::after {
  content: '';
  position: absolute;
  right: -46px;
  top: -46px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.4) 0%, transparent 70%);
}
.events-grid .evt-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.28) 0%, transparent 38%, rgba(10, 15, 26, 0.5) 100%);
  pointer-events: none;
}
.events-grid .evt-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}
.events-grid .evt-type {
  background: var(--secondary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.events-grid .evt-aud {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(10, 15, 26, 0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.events-grid .evt-aud i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aud, #2ecc71);
  font-size: 0;
}
.events-grid .evt-date {
  position: absolute;
  left: 16px;
  bottom: 14px;
  min-width: 70px;
  padding: 9px 10px 7px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  text-align: center;
  z-index: 2;
}
.events-grid .evt-day {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}
.events-grid .evt-my {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary-dark);
  margin-top: 3px;
}
.events-grid .evt-fee {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 50px;
  z-index: 2;
  background: rgba(46, 204, 113, 0.92);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.events-grid .evt-fee.is-paid {
  background: rgba(10, 15, 26, 0.72);
  border: 1px solid rgba(201, 162, 39, 0.7);
  color: #f5d76e;
  backdrop-filter: blur(8px);
}
.events-grid .evt-past-ribbon {
  position: absolute;
  top: 56px;
  right: -8px;
  background: var(--gray-600);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px 5px 12px;
  border-radius: 8px 0 0 8px;
  z-index: 2;
}
.events-grid .evt-card.is-past .evt-img {
  filter: grayscale(0.75);
}
.events-grid .evt-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px 22px 22px;
  flex: 1;
  min-width: 0;
}
.events-grid .evt-title {
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.events-grid .evt-title a {
  color: var(--dark);
  text-decoration: none;
}
.events-grid .evt-title a:hover {
  color: var(--primary);
}
.events-grid .evt-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.events-grid .evt-m {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-600);
  min-width: 0;
}
.events-grid .evt-m span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.events-grid .evt-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 95, 0.08);
  color: var(--primary);
  font-size: 0.76rem;
  flex-shrink: 0;
}
.evt-cap {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 12px 14px;
}
.evt-cap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.evt-cap-label i {
  color: var(--primary);
  margin-right: 6px;
}
.evt-cap-label b {
  color: var(--dark);
}
.evt-cap-pct {
  font-weight: 800;
  color: var(--primary);
}
.evt-track {
  height: 8px;
  border-radius: 50px;
  background: var(--gray-200);
  overflow: hidden;
}
.evt-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
  transition: width 0.6s ease;
}
.evt-card.is-full .evt-fill,
.evt-cap.is-full .evt-fill {
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}
.evt-cap-sub {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 7px;
}
.evt-cap-sub em {
  color: #dc2626;
  font-style: normal;
  font-weight: 700;
}
.evt-cap-sub .ok {
  color: var(--accent-dark);
  font-weight: 700;
}
.events-grid .evt-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gray-600);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.events-grid .evt-foot {
  margin-top: auto;
  padding-top: 4px;
}
.events-grid .evt-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
}
.events-grid .evt-cta .evt-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  transition: transform 0.25s ease, background 0.25s ease;
}
.events-grid .evt-cta:hover .evt-arrow {
  transform: translateX(5px);
  background: var(--secondary);
}
.evt-count {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 18px;
  text-align: center;
}
@keyframes evtIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* skeleton loading */
.events-grid .evt-sk {
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.events-grid .evt-sk-media {
  height: 200px;
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: evtShimmer 1.3s ease-in-out infinite;
}
.events-grid .evt-sk-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.events-grid .evt-sk-line {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: evtShimmer 1.3s ease-in-out infinite;
}
@keyframes evtShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (max-width: 640px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
.dark-theme .events-grid .evt-card {
  background: #111827;
  border-color: #1f2937;
}
.dark-theme .events-grid .evt-title a {
  color: #f9fafb;
}
.dark-theme .events-grid .evt-m,
.dark-theme .events-grid .evt-desc,
.dark-theme .evt-cap-head,
.dark-theme .evt-cap-sub {
  color: #9ca3af;
}
.dark-theme .events-grid .evt-cap,
.dark-theme .evt-cap {
  background: #0b1220;
  border-color: #1f2937;
}
.dark-theme .events-grid .evt-date {
  background: rgba(17, 24, 39, 0.94);
}
.dark-theme .events-grid .evt-day {
  color: #fff;
}
.dark-theme .events-grid .evt-track,
.dark-theme .evt-track {
  background: #1f2937;
}
@media (prefers-reduced-motion: reduce) {
  .events-grid .evt-card,
  .events-grid .evt-img,
  .events-grid .evt-cta .evt-arrow {
    animation: none;
    transition: none;
  }
}

/* ---------- Event detail dynamic ---------- */
.evt-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 44px;
  align-items: start;
}
.evt-cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  min-height: 280px;
}
.evt-cover img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.evt-cover-badges {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.evt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 50px;
  background: rgba(10, 15, 26, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.evt-side-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.evt-side-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}
.evt-side-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(30, 58, 95, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.evt-side-row small {
  color: var(--gray-500);
  display: block;
  font-size: 0.74rem;
}
.evt-side-row strong {
  font-size: 0.92rem;
}
.evt-rel-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
.evt-rel-item:hover {
  background: var(--gray-50);
}
.evt-rel-item img {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.evt-share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}
.evt-share-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.evt-book-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.evt-book-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.evt-pay-opt {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.evt-gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.evt-gal img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.evt-gal a:hover img {
  transform: scale(1.04);
}
@media (max-width: 992px) {
  .evt-detail-layout {
    grid-template-columns: 1fr;
  }
  .evt-cover img {
    height: 260px;
  }
}

/* ==========================================================================
   HEADER LAYOUT (single Donate pill, far right) + RICH-TEXT LISTS
   ========================================================================== */
.navbar .brand-powered {
  display: none !important;
}
.navbar-brand {
  min-width: 0;
  flex-shrink: 1;
}
.navbar .brand-text {
  min-width: 0;
  overflow: hidden;
}
#headerDonateBtn,
.user-menu-container,
.mobile-toggle {
  flex-shrink: 0;
}
/* Rich-text lists: the global reset strips bullets/numbers — restore them
   inside editor + frontend content so lists don't render as paragraphs. */
.block-editor-content ul,
#postContent ul,
.blog-content ul,
.evt-rich ul,
.rich-text ul {
  list-style: disc;
  padding-left: 1.6em;
  margin: 0 0 14px;
}
.block-editor-content ol,
#postContent ol,
.blog-content ol,
.evt-rich ol,
.rich-text ol {
  list-style: decimal;
  padding-left: 1.6em;
  margin: 0 0 14px;
}
.block-editor-content li,
#postContent li,
.blog-content li,
.evt-rich li,
.rich-text li {
  margin-bottom: 5px;
}
.block-editor-content li::marker,
#postContent li::marker,
.evt-rich li::marker {
  color: var(--primary);
  font-weight: 700;
}
@media (max-width: 480px) {
  .navbar .container {
    gap: 6px;
  }
  .navbar .brand-powered {
    display: none;
  }
  .navbar .brand-name {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-donate-btn {
    padding: 6px 12px;
    font-size: 0.72rem;
    margin-left: 4px;
  }
}

/* ==========================================================================
   CORE VALUES (Home + About)
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.value-card .value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.25);
}
.value-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--dark);
}
.value-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}
.dark-theme .value-card {
  background: #111827;
  border-color: #1f2937;
}
.dark-theme .value-card h3 {
  color: #f9fafb;
}
.dark-theme .value-card p {
  color: #9ca3af;
}

/* Editor-only chrome must never render on published pages (older posts may contain it) */
.album-edit-badge {
  display: none !important;
}
.block-editor-content .album-edit-badge {
  display: block !important;
}

/* Drop cap: editor + all frontend rich content */
.block-editor-content .drop-cap::first-letter,
.blog-content .drop-cap::first-letter,
.evt-rich .drop-cap::first-letter {
  float: left;
  font-size: 4.2em;
  line-height: 0.85;
  font-weight: 700;
  color: var(--primary, #1e3a5f);
  margin: 0 0.08em 0 0;
  padding-top: 0.05em;
  font-family: Georgia, serif;
}

/* ==========================================================================
   END OF STYLESHEET
   ========================================================================== */
