/* ==========================================================================
   Base Styles & Design System
   ========================================================================== */
:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;

  /* Color Palette - Light Mode */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-heading: #020617;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;

  --donate-color: #e11d48;
  --donate-hover: #be123c;
  --donate-light: #fff1f2;
  --donate-border: #fecdd3;

  --emerald: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;

  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --amber-text: #92400e;

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 20px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-banner: 0 -4px 20px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.2s ease-in-out;
}

[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-subtle: #1a243b;
  --border-color: #273451;
  --border-focus: #60a5fa;

  --text-main: #cbd5e1;
  --text-muted: #94a3b8;
  --text-heading: #f8fafc;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: #1e293b;
  --primary-border: #2563eb;

  --donate-color: #f43f5e;
  --donate-hover: #fb7185;
  --donate-light: #371520;
  --donate-border: #881337;

  --emerald: #10b981;
  --emerald-light: #064e3b;
  --emerald-border: #047857;

  --amber-bg: #2d1f05;
  --amber-border: #78350f;
  --amber-text: #fcd34d;

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 20px -3px rgb(0 0 0 / 0.5);
  --shadow-banner: 0 -4px 24px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-heading);
  line-height: 1.2;
}

.brand-badge {
  font-size: 0.725rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--donate-color);
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--text-muted);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
:root:not([data-theme="dark"]) .sun-icon { display: none; }
:root:not([data-theme="dark"]) .moon-icon { display: block; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn svg {
  width: 18px;
  height: 18px;
}

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

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

.btn-donate {
  background: linear-gradient(135deg, var(--donate-color), #be123c);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(225, 29, 72, 0.25);
}

.btn-donate:hover {
  background: linear-gradient(135deg, #be123c, #9f1239);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(225, 29, 72, 0.35);
}

.heart-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-donate:hover .heart-icon {
  transform: scale(1.15);
}

.btn-secondary {
  background-color: var(--bg-card-subtle);
  color: var(--text-heading);
  border-color: var(--border-color);
}

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

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

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

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

.donation-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--donate-light);
  color: var(--donate-color);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  border: 1px solid var(--donate-border);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--donate-color);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.18;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.trust-pill-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-heading);
  box-shadow: var(--shadow-sm);
}

.trust-pill svg {
  width: 16px;
  height: 16px;
  color: var(--emerald);
}

/* ==========================================================================
   Photo Gallery Grid (Impact Stories)
   ========================================================================== */
.photo-gallery-section {
  margin-bottom: 3.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gallery-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #0f172a;
}

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

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

.gallery-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gallery-tag.medical {
  background: rgba(37, 99, 235, 0.9);
}

.gallery-tag.foster {
  background: rgba(5, 150, 105, 0.9);
}

.gallery-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-card-body h3 {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.gallery-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Donation Card & Form Container
   ========================================================================== */
.donate-section {
  margin-bottom: 4rem;
}

.donate-container-card {
  background: var(--bg-card);
  border: 2px solid var(--donate-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.donate-container-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #e11d48, #f43f5e, #fb7185);
}

.donate-header-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.donate-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--donate-light);
  color: var(--donate-color);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.donate-heading {
  font-family: var(--font-display);
  font-size: 2.15rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.donate-subtext {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.donate-box-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: start;
}

.donate-form-wrapper {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
}

/* Frequency Toggle */
.frequency-toggle {
  display: flex;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 1.5rem;
  gap: 4px;
}

.freq-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.freq-btn.active {
  background-color: var(--donate-color);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.freq-badge {
  background-color: #fef08a;
  color: #854d0e;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  text-transform: uppercase;
}

.freq-btn.active .freq-badge {
  background-color: #ffffff;
  color: var(--donate-color);
}

/* Amount Chips */
.amount-selection-area {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.65rem;
}

.amount-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.amount-chip {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  cursor: pointer;
  transition: var(--transition);
}

.amount-chip:hover {
  border-color: var(--donate-color);
  color: var(--donate-color);
}

.amount-chip.active {
  background-color: var(--donate-light);
  border-color: var(--donate-color);
  color: var(--donate-color);
  box-shadow: 0 0 0 1px var(--donate-color);
}

.custom-amount-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.custom-amount-input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem 0.75rem 2rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-heading);
  transition: var(--transition);
}

.custom-amount-input:focus {
  outline: none;
  border-color: var(--donate-color);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

/* Impact Preview Card */
.impact-preview-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background-color: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.5rem;
}

.impact-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.impact-text strong {
  display: block;
  font-size: 0.875rem;
  color: var(--emerald);
  margin-bottom: 0.2rem;
}

.impact-text p {
  font-size: 0.85rem;
  color: var(--text-heading);
  line-height: 1.45;
  margin: 0;
}

/* Donor Details Form */
.donor-details-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.flex-1 {
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  font-family: inherit;
  font-size: 0.925rem;
  color: var(--text-heading);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--donate-color);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.payment-method-group {
  margin-top: 0.25rem;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.pay-method-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.4rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.pay-method-option.active {
  border-color: var(--donate-color);
  background-color: var(--donate-light);
  color: var(--donate-color);
}

/* Receipt Card */
.receipt-card {
  background-color: var(--bg-card);
  border: 2px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  animation: fadeIn 0.4s ease;
}

.receipt-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.success-check-badge {
  width: 42px;
  height: 42px;
  background-color: var(--emerald);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.receipt-header h3 {
  font-size: 1.15rem;
  color: var(--text-heading);
}

.receipt-header p {
  font-size: 0.85rem;
  color: var(--emerald);
}

.receipt-table {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--border-color);
}

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

.receipt-row strong {
  color: var(--text-heading);
}

.receipt-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Donation Sidebar */
.donate-sidebar .assurance-card {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.assurance-card h3 {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.assurance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.assurance-list strong {
  color: var(--text-heading);
}

.tax-info-box {
  display: flex;
  gap: 0.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.tax-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.tax-desc .tax-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.tax-desc p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.offline-donation-info {
  background-color: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.825rem;
}

.offline-donation-info h4 {
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.offline-donation-info p {
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   Impact Features Grid (Where Gifts Go)
   ========================================================================== */
.impact-cards-section {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-heading);
  margin-bottom: 1.75rem;
}

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

.impact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.impact-feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

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

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 0.85rem;
}

.impact-feature-card h3 {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 0.65rem;
}

.impact-feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Policy Pages Styles
   ========================================================================== */
.policy-article {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.policy-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.policy-tag {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.policy-header h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.policy-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.25rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.policy-section p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.policy-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-section li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.cookie-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cookie-table th, .cookie-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.cookie-table th {
  background-color: var(--bg-card-subtle);
  color: var(--text-heading);
  font-weight: 700;
}

/* ==========================================================================
   Cookie Consent Floating Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-banner);
  z-index: 100;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text h4 {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.cookie-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 2.75rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
}

.footer-left {
  max-width: 540px;
}

.footer-title {
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.footer-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-main);
  border-left: 3px solid var(--donate-color);
  padding-left: 0.85rem;
  margin: 0.75rem 0 1.25rem;
  line-height: 1.5;
}

.footer-subscription {
  margin-top: 1rem;
}

.sub-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.footer-sub-form {
  display: flex;
  gap: 0.5rem;
  max-width: 380px;
}

.footer-sub-input {
  flex: 1;
  background-color: var(--bg-card-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-heading);
  transition: var(--transition);
}

.footer-sub-input:focus {
  outline: none;
  border-color: var(--donate-color);
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.15);
}

.footer-sub-success {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald);
  margin-top: 0.4rem;
  display: block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover, .footer-links a.active-footer-link {
  color: var(--donate-color);
  text-decoration: underline;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hidden {
  display: none !important;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-title { font-size: 2.15rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .donate-box-grid { grid-template-columns: 1fr; }
  .impact-cards-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; }
  .cookie-banner-content { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .cookie-actions { justify-content: flex-end; }
}

@media (max-width: 640px) {
  .nav-links .nav-link { display: none; }
  .amount-chips { grid-template-columns: repeat(3, 1fr); }
  .form-row { flex-direction: column; }
  .payment-methods-grid { grid-template-columns: 1fr; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; }
}

/* Print Stylesheet */
@media print {
  .site-header, .site-footer .footer-right, .donate-form-wrapper, .cookie-banner {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .receipt-card {
    display: block !important;
  }
}
