/* ============================================
   أفق الأمل — Horizon of Hope
   Main Stylesheet
   ============================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  --primary: #005c26;
  --primary-light: #2c9e66;
  --primary-lighter: #5fc07f;
  --secondary: #0a81b2;
  --secondary-light: #58a8d0;
  --accent: #10543f;
  --dark: #1a1a2e;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #f8faf9;
  --bg-alt: #f0f5f2;
  --bg-card: #ffffff;
  --sage: #b5c6b5;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0, 92, 38, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 92, 38, 0.12);
  --shadow-hover: 0 8px 32px rgba(0, 92, 38, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(44,158,102,0.08) 0%, rgba(10,129,178,0.08) 100%);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.3);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: var(--white); }

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

.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-header p {
  max-width: 600px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

section {
  padding: 80px 0;
}

.bg-alt {
  background: var(--bg-alt);
}

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

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

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 92, 38, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 92, 38, 0.4);
}

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

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

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

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

.btn-icon {
  font-size: 1.2em;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  /* Solid by default (not transparent) — doesn't depend on the scroll JS
     running to look correct. */
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
  padding: 10px 0;
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img {
  height: 75px;
  width: 75px;
  flex-shrink: 0;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 4px 10px rgba(0, 92, 38, 0.12));
}

.navbar.scrolled .navbar-logo img {
  height: 58px;
  width: 58px;
}

.navbar-logo:hover img {
  transform: scale(1.08);
}

.navbar-logo span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

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

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(44, 158, 102, 0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 16px;
  left: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* ---------- Dropdown Menu ---------- */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
}

.nav-dropdown:hover .dropdown-toggle,
.nav-dropdown .dropdown-toggle.active {
  color: var(--primary);
  background: rgba(44, 158, 102, 0.08);
}

.nav-dropdown .dropdown-toggle.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 16px;
  left: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.dropdown-icon {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon,
.nav-dropdown.open .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--white);
  min-width: 180px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
  border: 1px solid var(--border);
}

html[lang="de"] .dropdown-menu {
  right: auto;
  left: 0;
}

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

.dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 16px !important;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0 !important;
  background: transparent !important;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
}

.dropdown-menu a::after {
  display: none !important;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: rgba(44, 158, 102, 0.08) !important;
  color: var(--primary) !important;
}

.dropdown-menu a i {
  width: 18px;
  text-align: center;
  color: var(--primary);
  font-size: 0.9rem;
}

.nav-cta {
  margin-right: 8px;
}

.nav-cta .btn-primary {
  background: #f59e0b; /* Orange-Yellow / Amber */
  border: 1px solid #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  color: white;
}

.nav-cta .btn-primary:hover {
  background: #d97706; /* Darker amber on hover */
  border-color: #d97706;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(44, 158, 102, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10, 129, 178, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

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

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInRight 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--gradient-soft);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(44, 158, 102, 0.15);
  transition: var(--transition);
  text-decoration: none;
}

.hero-badge:hover {
  background: rgba(44, 158, 102, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 92, 38, 0.1);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-content h1 {
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 2;
  margin-bottom: 32px;
  color: var(--text-light);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInLeft 1s ease-out;
}

.hero-visual img {
  max-width: 400px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 92, 38, 0.15));
  animation: floatSlow 6s ease-in-out infinite;
}

/* Creative Hero Image - Modern Organic & Interactive */
.creative-hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

/* Animated Gradient Background */
.creative-hero-wrapper::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -15%;
  right: -15%;
  bottom: -15%;
  background: var(--gradient);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: morphBlob 10s ease-in-out infinite alternate;
  z-index: 0;
  opacity: 0.15;
  filter: blur(25px);
}

.creative-hero-wrapper::after {
  content: '';
  position: absolute;
  inset: -5%;
  background: var(--gradient-soft);
  border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
  animation: morphBlob 12s ease-in-out infinite alternate-reverse;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Main Image - Organic Shape with Glow & Shadow */
.creative-hero-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% 40% 60% 30% / 40% 60% 30% 60%;
  z-index: 3;
  box-shadow: 0 30px 60px rgba(0, 92, 38, 0.25), 0 0 40px rgba(44, 158, 102, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.9);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: floatOrganic 6s ease-in-out infinite;
}

/* Hover Animation */
.creative-hero-wrapper:hover .creative-hero-img {
  transform: scale(1.05) translateY(-10px) rotate(2deg);
  border-radius: 40% 60% 50% 40% / 50% 40% 60% 50%;
  box-shadow: 0 40px 80px rgba(0, 92, 38, 0.3), 0 0 60px rgba(44, 158, 102, 0.5);
}

/* Floating Animations */
@keyframes morphBlob {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

@keyframes floatOrganic {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-1.5deg); }
}

/* Decorative Elements */
.decor-blob {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient);
  z-index: 2;
  opacity: 0.7;
  filter: blur(8px);
  animation: floatSlow 8s ease-in-out infinite alternate;
}

.decor-blob-1 {
  width: 60px;
  height: 60px;
  top: 10%;
  right: -10%;
  background: var(--secondary-light);
  animation-delay: 1s;
}

.decor-blob-2 {
  width: 80px;
  height: 80px;
  bottom: 5%;
  left: -15%;
  background: var(--primary-light);
  animation-delay: 2.5s;
}

.decor-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 4;
  animation: floatSlow 5s ease-in-out infinite alternate-reverse;
}

.decor-dot-1 {
  top: 20%;
  left: 5%;
}

.decor-dot-2 {
  bottom: 25%;
  right: 5%;
  background: var(--secondary);
}

.creative-hero-wrapper:hover .decor-blob-1 { transform: translate(15px, -15px); }
.creative-hero-wrapper:hover .decor-blob-2 { transform: translate(-15px, 15px); }
.creative-hero-wrapper:hover .decor-dot-1 { transform: translate(-10px, -10px) scale(1.5); }
.creative-hero-wrapper:hover .decor-dot-2 { transform: translate(10px, 10px) scale(1.5); }

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

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

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

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

/* ---------- Stats Section ---------- */
.stats {
  padding: 60px 0;
  position: relative;
}

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

.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--gradient);
}

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

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Card Components ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.card-badge.active {
  background: var(--primary-light);
  color: var(--white);
}

.card-badge.archived {
  background: var(--sage);
  color: var(--text);
}

.card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  min-height: 3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ---------- Grid Layouts ---------- */
.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: 24px;
}

/* ---------- Campaign Section ---------- */
.campaign-featured {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.campaign-featured-img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.campaign-featured-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.campaign-featured-content h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.campaign-featured-content p {
  margin-bottom: 24px;
}

/* ---------- Progress Bar ---------- */
.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--bg-alt);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
  margin-top: auto;
}

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

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

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

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Filter Tabs ---------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 28px;
  border-radius: 50px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.filter-tab:hover {
  color: var(--primary);
  border-color: var(--primary-light);
}

.filter-tab.active {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 92, 38, 0.25);
}

/* ---------- Donate Section ---------- */
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.donate-amount {
  padding: 16px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 2px solid var(--sage);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  background: var(--bg-card);
}

.donate-amount:hover,
.donate-amount.selected {
  border-color: var(--primary);
  background: var(--gradient-soft);
  color: var(--primary);
}

.donate-amount.selected {
  box-shadow: 0 4px 16px rgba(0, 92, 38, 0.15);
}

.donate-custom {
  padding: 16px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--sage);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  color: var(--text-muted);
}

.donate-custom input {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  background: transparent;
  color: var(--primary);
}

.payment-methods {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.payment-method {
  flex: 1;
  min-width: 140px;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
}

.payment-method:hover,
.payment-method.selected {
  border-color: var(--primary);
  background: var(--gradient-soft);
}

.payment-method .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.payment-method .label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  transition: var(--transition);
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(44, 158, 102, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

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' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--primary);
  margin-top: 4px;
}

.form-check label {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-light);
}

.file-upload {
  border: 2px dashed var(--sage);
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-alt);
}

.file-upload:hover {
  border-color: var(--primary-light);
  background: var(--gradient-soft);
}

.file-upload .icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.file-upload p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-overlay p {
  color: var(--white);
  font-weight: 500;
  margin: 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition);
  border: none;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* ---------- News / Blog ---------- */
.news-card {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 20px;
}

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

.news-card-img {
  width: 200px;
  min-width: 200px;
  height: 150px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.news-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  transition: var(--transition);
}

.news-card:hover .news-card-content h3 {
  color: var(--primary);
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gradient-soft);
  color: var(--primary);
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-hover);
}

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

.contact-info-card h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-info-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
}

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

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
  color: var(--primary);
}

.social-link:hover {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 92, 38, 0.3);
}

/* ---------- Team Section ---------- */

.team-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--primary-light);
  padding: 3px;
  background: var(--white);
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-right: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-right: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: -34px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-item h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

/* ---------- Partners ---------- */
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

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

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

/* ---------- Values Section ---------- */
.value-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

.value-card h4 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.value-card p {
  line-height: 1.8;
  color: var(--text-light);
  font-size: 0.92rem;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: var(--transition);
}

.value-card:hover::before {
  transform: scaleX(1);
}

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

.value-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 2rem;
  box-shadow: 0 8px 16px rgba(44, 158, 102, 0.1);
}

.value-card h4 {
  margin-bottom: 8px;
}

/* ---------- Feature / Info Box ---------- */
.info-box {
  background: var(--gradient-soft);
  border-radius: var(--radius);
  padding: 32px;
  border-right: 4px solid var(--primary);
  margin-bottom: 24px;
}

.info-box h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

/* ---------- Security Badge ---------- */
.security-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.security-badge {
  text-align: center;
  padding: 20px;
}

.security-badge .icon {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--primary-light);
}

.security-badge p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* ---------- Page Header / Breadcrumb ---------- */
.page-header {
  padding: 140px 0 60px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header h1 {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  margin: 0;
}

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

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

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

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

.breadcrumb .current {
  color: var(--white);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

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

.footer-about img {
  height: 48px;
  margin-bottom: 16px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.8;
}

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

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 3px;
  background: var(--primary-light);
  border-radius: 2px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-lighter);
  padding-right: 8px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

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

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  /* Visible by default so content never depends on main.js running in time;
     JS still adds .visible on scroll-into-view for the fade-in effect when it works. */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 16px rgba(0, 92, 38, 0.3);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 92, 38, 0.4);
}

/* ---------- Activity Slider ---------- */
.activity-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 5px 40px;
  scroll-snap-type: x mandatory;
}

.activity-slider::-webkit-scrollbar {
  height: 8px;
}

.activity-slider::-webkit-scrollbar-track {
  background: var(--bg-alt);
  border-radius: 10px;
}

.activity-slider::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
}

.activity-slide {
  flex: 0 0 350px;
  scroll-snap-align: start;
}

/* ---------- Donate Page Specific ---------- */
.donate-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto;
}

.donate-form-card h3 {
  text-align: center;
  margin-bottom: 32px;
}

.amount-display {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
}

.amount-display .currency {
  font-size: 1.5rem;
}

/* ---------- Volunteer specific ---------- */
.volunteer-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.volunteer-info-text h3 {
  margin-bottom: 16px;
}

.volunteer-info-text p {
  line-height: 2;
}

.volunteer-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.volunteer-stat {
  text-align: center;
  padding: 24px;
  background: var(--gradient-soft);
  border-radius: var(--radius);
}

.volunteer-stat .number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}

.volunteer-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.volunteer-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Videos Section ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

.video-card-body {
  padding: 16px 20px;
}

.video-card-body h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.video-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    max-width: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .campaign-featured {
    grid-template-columns: 1fr;
  }

  .campaign-featured-img {
    height: 250px;
    min-height: auto;
  }

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

  .volunteer-info {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .navbar {
    padding: 10px 0;
  }

  .navbar-logo {
    gap: 8px;
  }

  .navbar-logo img {
    height: 48px;
    width: 48px;
  }

  .navbar-logo span {
    font-size: 1.05rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    gap: 4px;
    z-index: 1000;
  }

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

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin: 4px 0;
    padding: 4px 0;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-cta {
    margin-right: 0;
    margin-top: 16px;
    width: 100%;
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

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

  section {
    padding: 50px 0;
  }

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

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

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

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

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

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

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

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

  .news-card-img {
    width: 100%;
    height: 180px;
  }

  .donate-form-card,
  .volunteer-form-card {
    padding: 24px;
  }

  .amount-display {
    font-size: 2rem;
  }

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

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

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .page-header {
    padding: 120px 0 40px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

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

  .payment-methods {
    flex-direction: column;
  }
}

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

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

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Albums Grid ---------- */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.album-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.album-cover {
    height: 200px;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.album-card:hover .album-cover img {
    transform: scale(1.1);
}

.album-cover i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.5;
}

.album-info {
    padding: 20px;
    text-align: center;
}

.album-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.album-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ---------- Payment Methods Dynamic Styles ---------- */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.payment-method .icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  transition: var(--transition);
}

.payment-method .label {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.payment-method:hover {
  border-color: rgba(44, 158, 102, 0.5);
}

.payment-method.selected {
  border-color: var(--primary);
  background: rgba(44, 158, 102, 0.05);
}

.payment-method.selected .label {
  font-weight: 600;
  color: var(--primary);
}

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

/* ---------- Campaign Details Modal ---------- */
.campaign-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.campaign-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.campaign-modal-content {
  background: var(--bg-card);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.campaign-modal-overlay.active .campaign-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  left: 16px; /* RTL layout */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg);
}

.modal-img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
}

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

.modal-body {
  padding: 32px;
  overflow-y: auto;
}

.modal-body h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 16px;
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 32px;
}

.modal-progress {
  background: rgba(44, 158, 102, 0.05);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  border: 1px solid rgba(44, 158, 102, 0.1);
}

.modal-progress .progress-bar {
  height: 10px;
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

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

.modal-progress-info {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
}

.modal-progress-info .current { color: var(--primary); }
.modal-progress-info .target { color: var(--text-muted); }

.modal-actions {
  display: flex;
  gap: 16px;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ---------- Premium Segmented Language Switcher ---------- */
.nav-links > .lang-switcher {
  display: none;
}

@media (max-width: 768px) {
  /* On mobile there isn't room for the switcher in the top bar next to the
     logo and hamburger, so hide it there and show the copy inside the
     slide-out menu instead. */
  .navbar > .container > .lang-switcher {
    display: none;
  }

  .nav-links > .lang-switcher {
    display: inline-flex;
    margin: 16px 0 0;
  }
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px;
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  gap: 3px;
  margin-left: 12px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar.scrolled .lang-switcher {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.2;
  cursor: pointer;
  border: none;
  box-shadow: none;
  opacity: 0.85;
}

.lang-btn svg {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  object-fit: cover;
}

.lang-btn:hover {
  opacity: 1;
  color: var(--primary);
  background: rgba(44, 158, 102, 0.12);
  transform: none;
}

.lang-btn.active {
  opacity: 1;
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(44, 158, 102, 0.35);
  border-color: transparent !important;
  transform: none !important;
}

.lang-btn.active svg {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- LTR / German Support ---------- */
html[lang="de"] body {
  direction: ltr;
  text-align: left;
}

/* LTR Navigation Layout Alignment */
html[lang="de"] .navbar .container {
  flex-direction: row;
}

html[lang="de"] .lang-switcher {
  margin-left: 0;
  margin-right: 12px;
}

html[lang="de"] .nav-btn {
  margin-left: 0;
}

/* Specific LTR Overrides for Margins/Positions */
html[lang="de"] .hero-content {
  text-align: left;
}

html[lang="de"] .hero-buttons {
  justify-content: flex-start;
}

html[lang="de"] .about-content {
  text-align: left;
}

html[lang="de"] .section-header {
  text-align: left;
}

html[lang="de"] .section-header h2::after {
  right: auto;
  left: 0;
}

html[lang="de"] .stat-card {
  text-align: left;
}

html[lang="de"] .footer,
html[lang="de"] .footer-col {
  text-align: left;
}

html[lang="de"] .footer h4::after,
html[lang="de"] .footer-col h4::after {
  right: auto;
  left: 0;
}

html[lang="de"] .footer-social {
  justify-content: flex-start;
}

html[lang="de"] .contact-info-item {
  flex-direction: row;
}

html[lang="de"] .contact-info-item i {
  margin-left: 0;
  margin-right: 16px;
}

html[lang="de"] .volunteer-form {
  text-align: left;
}

html[lang="de"] .form-checkbox {
  justify-content: flex-start;
}

html[lang="de"] .form-checkbox input {
  margin-left: 0;
  margin-right: 10px;
}

html[lang="de"] .impressum-section {
  text-align: left;
}

html[lang="de"] .privacy-section {
  text-align: left;
}

/* Mobile Nav Drawer LTR Behavior */
@media (max-width: 991px) {
  html[lang="de"] .nav-links {
    left: auto;
    right: -100%;
    text-align: left;
  }
  html[lang="de"] .nav-links.active {
    right: 0;
    left: auto;
  }
}
