/* ===================================================
   Charitable Trust Website — Design System & Styles
   =================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary palette */
  --primary: #0d9488;
  --primary-light: #14b8a6;
  --primary-dark: #0f766e;
  --primary-glow: rgba(13, 148, 136, .25);

  /* Accent */
  --accent: #f59e0b;
  --accent-light: #fbbf24;

  /* Surfaces */
  --bg: #f0fdf4;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, .72);
  --surface-border: rgba(13, 148, 136, .12);

  /* Text */
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-on-primary: #ffffff;

  /* Income / Expense */
  --income: #10b981;
  --income-bg: rgba(16, 185, 129, .1);
  --expense: #ef4444;
  --expense-bg: rgba(239, 68, 68, .1);

  /* Misc */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .1);
  --transition: .3s cubic-bezier(.4, 0, .2, 1);

  /* Fonts */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

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

.section-header-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

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

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

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(245, 158, 11, .25);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, .35);
}

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

/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(240, 253, 244, .7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(240, 253, 244, .92);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}

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

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: var(--transition);
}

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

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

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

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 30%, #a7f3d0 60%, #6ee7b7 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .15) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-40px) scale(1.05);
  }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--surface-border);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-badge span {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--surface-border);
}

.hero-stat h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.hero-stat p {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ================================================================
   IMPACT COUNTER
   ================================================================ */
.impact {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.impact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

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

.impact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, .12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.impact-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
}

.impact-label {
  font-size: .9rem;
  opacity: .8;
  margin-top: 4px;
}

/* ================================================================
   ABOUT
   ================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  font-size: 5rem;
  opacity: .5;
}

.about-image .floating-card {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.floating-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.floating-card p {
  font-size: .78rem;
  color: var(--text-muted);
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.value-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--surface-border);
  transition: var(--transition);
}

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

.value-card .icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.value-card h4 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.value-card p {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ================================================================
   CAUSES
   ================================================================ */
.causes-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  border: 1px solid var(--surface-border);
  background: var(--bg-alt);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

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

.causes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.cause-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  transition: var(--transition);
}

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

.cause-card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.cause-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .3), transparent);
}

.cause-card-body {
  padding: 24px;
}

.cause-card-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  background: var(--income-bg);
  color: var(--income);
}

.cause-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cause-card-body p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.progress-wrap {
  margin-bottom: 12px;
}

.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 8px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 1.5s cubic-bezier(.4, 0, .2, 1);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ================================================================
   OPEN TRANSACTIONS — Transparency Ledger
   ================================================================ */
.transactions {
  background: var(--bg-alt);
}

.txn-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.txn-summary-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  text-align: center;
}

.txn-summary-card.income {
  background: var(--income-bg);
  border-color: rgba(16, 185, 129, .2);
}

.txn-summary-card.expense {
  background: var(--expense-bg);
  border-color: rgba(239, 68, 68, .2);
}

.txn-summary-card.balance {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}

.txn-summary-card h4 {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: .8;
}

.txn-summary-card .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.txn-summary-card.income .amount {
  color: var(--income);
}

.txn-summary-card.expense .amount {
  color: var(--expense);
}

.txn-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.txn-search {
  flex: 1;
  min-width: 240px;
  padding: 12px 20px 12px 44px;
  border: 1px solid var(--surface-border);
  border-radius: 50px;
  font-size: .9rem;
  background: var(--bg);
  outline: none;
  transition: var(--transition);
}

.txn-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.txn-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.txn-search-wrap::before {
  content: '🔍';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .9rem;
}

.txn-filter {
  padding: 12px 20px;
  border: 1px solid var(--surface-border);
  border-radius: 50px;
  font-size: .85rem;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  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='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.txn-filter:focus {
  border-color: var(--primary);
}

.txn-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: var(--bg-alt);
}

.txn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.txn-table thead {
  background: var(--bg);
}

.txn-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: var(--transition);
}

.txn-table th:hover {
  color: var(--primary);
}

.txn-table th .sort-arrow {
  margin-left: 4px;
  font-size: .7rem;
}

.txn-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--surface-border);
}

.txn-table tr:hover td {
  background: rgba(13, 148, 136, .03);
}

.txn-type {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}

.txn-type.income {
  background: var(--income-bg);
  color: var(--income);
}

.txn-type.expense {
  background: var(--expense-bg);
  color: var(--expense);
}

.txn-receipt {
  color: var(--income);
  font-weight: 600;
}

.txn-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.txn-pagination button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--bg-alt);
  font-size: .85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.txn-pagination button.active,
.txn-pagination button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.txn-pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ================================================================
   DONATE
   ================================================================ */
.donate {
  background: linear-gradient(160deg, #ecfdf5, #d1fae5);
  position: relative;
  overflow: hidden;
}

.donate::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
}

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

.donate-info h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.donate-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.donate-benefits {
  margin-top: 24px;
}

.donate-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: .92rem;
  color: var(--text-muted);
}

.donate-benefits li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.donate-form-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-border);
  position: relative;
  z-index: 2;
}

.donate-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

.amount-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.amount-btn {
  padding: 14px;
  border: 2px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  background: var(--bg);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.donate-form-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.donate-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.donate-success .checkmark {
  font-size: 3rem;
  margin-bottom: 16px;
}

.donate-success h3 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 8px;
}

.donate-success p {
  color: var(--text-muted);
}

/* ================================================================
   EVENTS
   ================================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.event-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  overflow: hidden;
  transition: var(--transition);
}

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

.event-card-header {
  padding: 28px 28px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.event-date-badge {
  min-width: 60px;
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  color: #fff;
}

.event-date-badge .day {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-badge .month {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.event-card-header p {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.event-card-body {
  padding: 20px 28px 28px;
}

.event-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: .82rem;
  color: var(--text-muted);
}

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

/* ================================================================
   TEAM
   ================================================================ */
.team {
  background: var(--bg-alt);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.team-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  transition: var(--transition);
}

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

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.team-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.team-card .role {
  font-size: .82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card p {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  transition: var(--transition);
}

.team-socials a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 40px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn .5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-quote {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary);
  line-height: 0;
  vertical-align: -12px;
  margin-right: 4px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text);
}

.testimonial-role {
  font-size: .82rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--surface-border);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 8px;
}

/* ================================================================
   NEWSLETTER
   ================================================================ */
.newsletter {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 80px 0;
}

.newsletter-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 12px;
}

.newsletter p {
  opacity: .85;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 22px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .92rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, .6);
}

.newsletter-form input:focus {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .18);
}

.newsletter-form .btn {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
}

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

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: #0c1f1c;
  color: #fff;
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand p {
  color: rgba(255, 255, 255, .55);
  margin-top: 12px;
  font-size: .88rem;
  line-height: 1.7;
}

.footer h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: var(--primary-light);
}

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

.footer-links a {
  color: rgba(255, 255, 255, .55);
  font-size: .88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .88rem;
  color: rgba(255, 255, 255, .55);
}

.footer-contact li span:first-child {
  font-size: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: .82rem;
  color: rgba(255, 255, 255, .35);
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .45);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ================================================================
   ZAKAT & SADAQAH
   ================================================================ */
.zakat-section {
  background: var(--bg-alt);
}

.zakat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.zakat-card {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
}

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

.zakat-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.zakat-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.zakat-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.zakat-info {
  background: rgba(13, 148, 136, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.zakat-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--surface-border);
}

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

.zakat-info-row span {
  color: var(--text-muted);
}

.zakat-info-row strong {
  color: var(--text);
}

.zakat-verse {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(245, 158, 11, 0.06));
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: left;
}

.zakat-verse em {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 8px;
}

.zakat-verse span {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

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

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width:1024px) {

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

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

@media (max-width:768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }

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

  .hamburger {
    display: flex;
  }

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

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .txn-summary {
    grid-template-columns: 1fr;
  }

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

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

  .newsletter-form {
    flex-direction: column;
  }

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

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

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

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

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

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

/* ================================================================
   DATA SOURCE BADGE — Shows if transactions are live or static
   ================================================================ */
.data-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
}

.data-source-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.data-source-badge .dot.live {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, .5);
  animation: pulse 2s infinite;
}

.data-source-badge .dot.static {
  background: #94a3b8;
}