/* ============================================================
   santaclaus.am — Christmas Donation Platform
   Styles based on original santa_final.html design
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Armenian:wght@300;400;500;600;700;800&family=Rubik:wght@400;500;600;700;800&display=swap');

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #e7e2d8;
  font-family: 'Rubik', sans-serif;
  color: #2d2d2d;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(16, 27, 61, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 32px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand svg {
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font: 600 14px 'Rubik', sans-serif;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  opacity: 1;
}

.nav-link.donate-link {
  background: #e0524a;
  color: #fff;
  padding: 8px 18px;
}

.nav-link.donate-link:hover {
  background: #c94139;
  transform: translateY(-1px);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Language Switcher --- */
.nav-lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.nav-lang {
  font: 500 12px 'Rubik', sans-serif;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-lang:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-lang.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
  font-weight: 600;
}

/* --- Priority Nav ---
   .navbar-links holds only the items that currently fit; JS measures the
   real available width and moves whichever items don't fit (starting from
   the end) into #navOverflow, showing the hamburger only when there's
   something to put in it. This replaces a fixed pixel breakpoint: it self-
   adjusts for translated labels (hy/ru run wider than en), narrow tablets,
   and phones alike, always keeping as much of the nav visible as possible. */
.navbar-overflow {
  display: none;
  position: absolute;
  top: 64px;
  right: 0;
  min-width: 240px;
  flex-direction: column;
  background: rgba(16, 27, 61, 0.98);
  padding: 16px;
  gap: 4px;
  backdrop-filter: blur(10px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.navbar-overflow.open {
  display: flex;
}

.navbar-overflow .nav-link {
  width: 100%;
  padding: 12px 16px;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  width: 100%;
  /* Floor height matches the hero SVG's natural aspect ratio (520/1280) so the
     decorative art isn't clipped on wide screens; content can still grow taller. */
  min-height: max(480px, 40.625vw);
  margin-top: 64px;
  /* Solid fill matching the hero SVG's own sky gradient start color (see
     #skyGrad in index.php) — a gradient here would visibly seam against the
     SVG wherever content pushes the section taller than the SVG's natural
     height (very common on mobile, where the stacked form makes
     .hero-content much taller than the bottom-anchored art). */
  background: #2745e8;
  overflow: hidden;
}

/* Starfield across the whole hero background — not just the SVG art — so the
   solid blue fill never looks empty, including in the gap above the SVG that
   opens up whenever stacked mobile content makes .hero-content taller than
   the bottom-anchored art. */
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 4px 1px rgba(255,255,255,0.5);
  animation-name: twinkle;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .hero-star { animation: none; opacity: 0.8; }
}

.hero-svg {
  /* Anchored to the bottom of the section (not stacked via grid) so the ground/
     trees/mountain/sled art stays flush with the next section even when the
     stacked mobile form makes .hero-content taller than the SVG's own height. */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-svg svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Hero content overlay */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: max(480px, 40.625vw);
  padding: 56px 0;
  pointer-events: none;
}

.hero-content .container {
  width: 100%;
  pointer-events: auto;
}

.hero-content-inner {
  text-align: center;
  color: #fff;
  pointer-events: auto;
}

/* Two-column hero layout: title left, form right */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 48px;
  /* start, not center: the form column is much taller than the title/CTA
     column, and centering pushed the title far down next to the form's
     middle instead of keeping it up top alongside the form. */
  align-items: start;
}

.hero-info {
  pointer-events: auto;
  color: #fff;
}

.hero-form {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  pointer-events: auto;
  margin-top: -60px;
}

.hero-form .form-group {
  margin-bottom: 20px;
}

.hero-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #101b3d;
  margin-bottom: 8px;
}

.hero-form input,
.hero-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  font: 15px 'Rubik', sans-serif;
  color: #101b3d;
  background: #f8faff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.hero-form input:focus,
.hero-form textarea:focus {
  border-color: #2846E9;
  box-shadow: 0 0 0 3px rgba(40,70,233,0.1);
}

.hero-form textarea {
  min-height: 130px;
  resize: vertical;
}

.hero-form button[type="submit"] {
  font-size: 17px;
  padding: 16px 28px;
  border-radius: 14px;
}

/* Hero countdown banner */
.hero-countdown {
  text-align: center;
  color: #ffd166;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 28px;
  margin-bottom: 24px;
  background: rgba(16,27,61,0.35);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  display: inline-block;
  pointer-events: auto;
  white-space: nowrap;
}

.hero-countdown strong {
  color: #fff;
  font-weight: 700;
  font-size: 22px;
}

.hero-title {
  font-family: 'Caveat', cursive;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 17px 'Rubik', sans-serif;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  background: #e0524a;
  color: #fff;
  transition: transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(224,82,74,0.4);
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: none;
}

.hero-btn-outline:hover {
  background: #fff;
  color: #101b3d;
}

/* --- Sled animation wrapper --- */
.sled-animation {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.sled-group {
  position: absolute;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* --- Countdown Bar --- */
.countdown-bar {
  background: linear-gradient(135deg, #2846E9, #3a5bf0);
  padding: 12px 0;
  text-align: center;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: rgba(255,255,255,0.5);
}

.section-title {
  font-family: 'Caveat', cursive;
  font-size: 42px;
  font-weight: 700;
  color: #101b3d;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #5c6b82;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Card --- */
.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-body {
  padding: 32px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #101b3d;
  margin-bottom: 12px;
}

.card-text {
  font-size: 14px;
  color: #5c6b82;
  line-height: 1.7;
}

/* --- Steps / How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #2846E9, #3a5bf0);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #101b3d;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: #5c6b82;
  line-height: 1.7;
}

/* --- Rules Section --- */
.rules-list {
  max-width: 800px;
  margin: 0 auto;
}

.rule-item {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.rule-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #e0524a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.rule-text {
  font-size: 14px;
  color: #5c6b82;
  line-height: 1.6;
  padding-top: 5px;
  flex: 1;
}

/* Chevron indicator — only meaningful on mobile where rules collapse (see below) */
.rule-chevron {
  display: none;
  flex-shrink: 0;
  align-self: center;
  color: #8ea0c2;
  font-size: 12px;
  transition: transform 0.25s ease;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 16px 'Rubik', sans-serif;
  padding: 14px 30px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #e0524a;
  color: #fff;
  box-shadow: 0 4px 15px rgba(224,82,74,0.3);
}

.btn-primary:hover {
  background: #c94139;
}

.btn-secondary {
  background: #2846E9;
  color: #fff;
  box-shadow: 0 4px 15px rgba(40,70,233,0.3);
}

.btn-secondary:hover {
  background: #1a3fd6;
}

.btn-outline {
  background: transparent;
  color: #2846E9;
  border: 2px solid #2846E9;
}

.btn-outline:hover {
  background: #2846E9;
  color: #fff;
}

.btn-gold {
  background: #ffd166;
  color: #101b3d;
  box-shadow: 0 4px 15px rgba(255,209,102,0.4);
}

.btn-gold:hover {
  background: #f0c24f;
}

.btn-white {
  background: #fff;
  color: #2846E9;
}

.btn-white:hover {
  background: #eef1f6;
}

/* --- Letter Writing Section --- */
.letter-section {
  background: linear-gradient(135deg, #2846E9, #3a5bf0);
  color: #fff;
  position: relative;
}

.letter-section::before {
  content: '❄️';
  position: absolute;
  font-size: 200px;
  opacity: 0.07;
  top: 20px;
  right: 40px;
  transform: rotate(20deg);
  pointer-events: none;
  line-height: 1;
}

/* Extra decorative snowflakes on the letter section */
.letter-section::after {
  content: '❄️';
  position: absolute;
  font-size: 100px;
  opacity: 0.04;
  bottom: 20px;
  left: 40px;
  transform: rotate(-10deg);
  pointer-events: none;
  line-height: 1;
}

.letter-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.letter-info h2 {
  font-family: 'Caveat', cursive;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.letter-info p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 24px;
}

.letter-form {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  max-width: 520px;
  justify-self: end;
  width: 100%;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #dde5ef;
  border-radius: 10px;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  color: #2d2d2d;
  background: #f4f6fc;
  transition: border-color 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2846E9;
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group .required::after {
  content: ' *';
  color: #e0524a;
}

/* --- Checkbox row (agree to rules) --- */
.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group-checkbox input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
  margin-top: 2px;
}
.form-group-checkbox label {
  display: inline;
  font-size: 13px;
  font-weight: 400;
  color: #5c6b82;
  line-height: 1.4;
  cursor: pointer;
}
.form-group-checkbox label a {
  color: #2846E9;
  text-decoration: underline;
}

/* --- Live character counter (letter/message textareas) --- */
.char-counter {
  text-align: right;
  font-size: 12px;
  color: #8ea0c2;
  margin-top: 4px;
}

/* --- Published letter cards: "read more" truncation --- */
.letter-message {
  position: relative;
}

.letter-card.truncated .letter-message {
  max-height: 6.4em;
  overflow: hidden;
}

.letter-card.truncated:not(.expanded) .letter-message::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2em;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
}

.letter-card.expanded .letter-message {
  max-height: none;
}

.letter-toggle {
  display: inline-block;
  margin-top: 10px;
  background: none;
  border: none;
  color: #2846E9;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: 'Rubik', sans-serif;
}

.letter-toggle:hover {
  text-decoration: underline;
}


/* --- Donation Section --- */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.donation-card {
  background: #fff;
  border: 2px solid #dde5ef;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.donation-card:hover,
.donation-card.active {
  border-color: #2846E9;
  box-shadow: 0 4px 20px rgba(40,70,233,0.15);
}

.donation-amount {
  font-size: 36px;
  font-weight: 800;
  color: #101b3d;
  margin-bottom: 4px;
}

.donation-currency {
  font-size: 16px;
  color: #5c6b82;
  font-weight: 400;
}

.donation-label {
  font-size: 13px;
  color: #5c6b82;
  margin-top: 8px;
}

/* --- Sponsor / Partner Grid --- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.partner-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
}

.partner-icon {
  width: 64px;
  height: 64px;
  background: #eef1f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.partner-name {
  font-size: 15px;
  font-weight: 600;
  color: #101b3d;
  margin-bottom: 4px;
}

.partner-desc {
  font-size: 12px;
  color: #5c6b82;
}

/* --- Volunteer Grid --- */
.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.volunteer-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.volunteer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
}

.volunteer-avatar {
  height: 96px;
  background: linear-gradient(180deg, #f4f6fa 0%, #eef1f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.volunteer-avatar-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  line-height: 1;
}

.volunteer-card:hover .volunteer-avatar-inner {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.volunteer-name {
  font-size: 18px;
  font-weight: 700;
  color: #101b3d;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.volunteer-info {
  padding: 52px 24px 24px;
  text-align: center;
  font-family: 'Inter', 'Noto Sans Armenian', 'Rubik', sans-serif;
}

.volunteer-role {
  font-size: 12px;
  font-weight: 500;
  color: #8ea0c2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.volunteer-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #5c6b82;
  margin-bottom: 16px;
}

.pin-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #8ea0c2;
  display: block;
}

.volunteer-quote {
  font-size: 13px;
  font-weight: 400;
  color: #6b7d9a;
  line-height: 1.65;
  font-style: italic;
  padding: 12px 16px;
  border-left: 3px solid #2846E9;
  background: #f8f9fb;
  border-radius: 0 8px 8px 0;
  text-align: left;
}

/* --- Contact Form --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: linear-gradient(135deg, #2846E9, #3a5bf0);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
}

.contact-info-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-text {
  font-size: 14px;
  opacity: 0.9;
  padding-top: 8px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 2px 6px;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.3);
}

.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* --- Facebook Widget --- */
.fb-widget {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.fb-widget h3 {
  font-size: 16px;
  font-weight: 700;
  color: #101b3d;
  margin-bottom: 16px;
}

.fb-placeholder {
  background: #eef1f6;
  border-radius: 8px;
  padding: 40px 20px;
  color: #5c6b82;
  font-size: 14px;
}

/* --- Floating "Write a letter" CTA --- */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 15px 'Rubik', sans-serif;
  padding: 14px 26px;
  border-radius: 100px;
  background: #e0524a;
  color: #fff;
  box-shadow: 0 8px 24px rgba(224,82,74,0.4);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-cta:hover {
  background: #c94139;
  transform: translateY(-2px) scale(1);
}

@media (max-width: 767px) {
  .floating-cta {
    right: 16px;
    bottom: 16px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* --- Footer --- */
.footer {
  background: #101b3d;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

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

.footer-brand {
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

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

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

.footer-bottom-links a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* --- Snow Canvas --- */
#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* --- History Timeline (About page) --- */
.timeline {
  position: relative;
  margin: 24px 0;
  padding-left: 32px;
  border-left: 3px solid #dde5ef;
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -39px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2846E9;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #dde5ef;
}

.timeline-year {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #fff;
  background: #2846E9;
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.timeline-content {
  font-size: 16px;
  color: #3b4a63;
  line-height: 1.75;
}

@media (max-width: 767px) {
  .timeline { padding-left: 24px; }
  .timeline-item::before { left: -31px; width: 10px; height: 10px; }
}

/* --- Page Header (for inner pages) --- */
.page-header {
  margin-top: 64px;
  background: linear-gradient(135deg, #2846E9, #3a5bf0);
  padding: 80px 0 60px;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-family: 'Caveat', cursive;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-title { font-size: 48px; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; max-width: 520px; margin: 0 auto; }
  .hero-countdown { margin-bottom: 20px; font-size: 16px; }
  /* The -60px pull-up only makes sense next to the taller title column in the
     desktop 2-col layout; stacked here, it drags the form up over the CTA
     button/title above it. */
  .hero-form { max-width: 100%; margin-top: 0; }
  .letter-layout { grid-template-columns: 1fr; }
  .letter-form { max-width: 100%; }
  .contact-layout { grid-template-columns: 1fr; }
  .volunteer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 15px; }
  .hero-section { min-height: 350px; }
  .hero-content { min-height: 350px; }
  .hero-form { padding: 24px; }
  .hero-form textarea { min-height: 100px; }
  .contact-info-card,
  .contact-form-card { padding: 24px; }
  .hero-countdown { font-size: 14px; padding: 8px 18px; white-space: normal; }
  .hero-countdown strong { font-size: 17px; }
  .hero-layout { gap: 24px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 32px; }
  .steps-grid { grid-template-columns: 1fr; }
  .donation-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Swipeable carousels — pure CSS scroll-snap, no JS required */
  .partner-grid,
  .volunteer-grid {
    display: flex;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 12px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none;
  }
  .partner-grid::-webkit-scrollbar,
  .volunteer-grid::-webkit-scrollbar {
    display: none;
  }
  .partner-grid .partner-card,
  .volunteer-grid .volunteer-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  /* Rules accordion — collapse to one line, tap to expand */
  .rule-item { cursor: pointer; }
  .rule-chevron { display: block; }
  .rule-text {
    max-height: 1.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rule-item.expanded .rule-text {
    max-height: none;
    white-space: normal;
  }
  .rule-item.expanded .rule-chevron {
    transform: rotate(180deg);
  }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-header { padding: 60px 0 40px; }
  .page-header h1 { font-size: 36px; }
  .hero-content-inner { padding: 0 20px; }
  .letter-form { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-layout { gap: 20px; }
  .hero-form { padding: 20px; border-radius: 14px; }
  .hero-form textarea { min-height: 90px; }
  .hero-countdown { font-size: 12px; padding: 6px 14px; margin-bottom: 16px; white-space: normal; }
  .hero-countdown strong { font-size: 14px; }
  .partner-grid .partner-card,
  .volunteer-grid .volunteer-card {
    flex-basis: 90%;
  }
}

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

@keyframes snowfall {
  0% { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(100vh) rotate(360deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

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

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