/* ==========================================================================
   CSS PAGES - HOME.CSS (Beranda)
   Fundraising-focused redesign
   ========================================================================== */

/* ─── 1. HERO SECTION ──────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: var(--green-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 20s infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg,
    rgba(20, 50, 10, 0.95) 0%,
    rgba(20, 50, 10, 0.75) 50%,
    rgba(20, 50, 10, 0.45) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 750px;
  padding-top: 5rem; /* clearance dari fixed navbar */
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(166, 206, 57, 0.2);
  border: 1px solid rgba(166, 206, 57, 0.4);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lime);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  color: var(--lime);
}

.hero-description {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Pulse animation pada tombol donasi utama */
.btn-pulse {
  animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(166, 206, 57, 0.5); }
  50%       { box-shadow: 0 0 0 12px rgba(166, 206, 57, 0); }
}

/* ─── 2. QUICK ACCESS MENU ─────────────────────────────────────────────── */
.quick-access-section {
  position: relative;
  z-index: 4;
  margin-top: -4rem;
  padding-bottom: 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-300);
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  text-align: center;
  background-color: var(--cream);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

.quick-item i {
  font-size: 1.75rem;
  color: var(--green);
  margin-bottom: 0.75rem;
  transition: var(--transition-normal);
}

.quick-item:hover {
  background-color: var(--green);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.quick-item:hover i { color: var(--lime); transform: scale(1.1); }

/* ─── 3. STATS COUNTER ─────────────────────────────────────────────────── */
.stats-counter-section {
  background: var(--green-dark);
  padding: 3.5rem 0;
}

.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-counter-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
}

.stat-counter-card:last-child { border-right: none; }

.stat-counter-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(166, 206, 57, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--lime);
}

.stat-counter-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.stat-counter-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ─── 4. PROGRAM DONASI (Fundraising Cards) ────────────────────────────── */
.fundraising-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.fundraising-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-300);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.fundraising-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.fundraising-img-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.fundraising-card:hover .fundraising-img-wrapper img {
  transform: scale(1.06);
}

.fundraising-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fundraising-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fundraising-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.fundraising-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

/* Progress bar fundraising */
.fundraising-progress-wrap {
  margin-bottom: 0.75rem;
}

.fundraising-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.fundraising-collected {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green);
}

.fundraising-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.fundraising-progress-bar {
  height: 7px;
  background: var(--gray-300);
  border-radius: 100px;
  overflow: hidden;
}

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

.fundraising-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.fundraising-donatur {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.fundraising-cta {
  display: block;
  text-align: center;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  text-decoration: none;
}

.fundraising-cta:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

/* ─── 5. ALUMNI STORY SECTION ───────────────────────────────────────────── */
.alumni-section {
  background: var(--white);
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.alumni-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  border: 1px solid var(--gray-300);
  transition: var(--transition-normal);
}

.alumni-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.alumni-photo {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--green);
}

.alumni-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.alumni-quote-icon {
  font-size: 2.5rem;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

.alumni-quote {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}

.alumni-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-dark);
  display: block;
}

.alumni-role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Impact statement bawah alumni */
.alumni-impact-bar {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.alumni-impact-text {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  flex: 1;
}

.alumni-impact-text strong {
  color: var(--lime);
  font-size: 1.15rem;
}

/* ─── 6. GALLERY PREVIEW ────────────────────────────────────────────────── */
.home-gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

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

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

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

/* ─── 7. NEWS ───────────────────────────────────────────────────────────── */
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ─── 8. DONATION CTA BANNER ────────────────────────────────────────────── */
.donation-cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, #1a3d0a 100%);
  color: var(--white);
  padding: 4rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.donation-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 60% 40%, rgba(166, 206, 57, 0.12) 0%, transparent 60%);
}

.donation-cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.donation-cta-desc {
  max-width: 580px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
}

/* ─── 9. FLOATING DONATE BAR (Mobile only) ──────────────────────────────── */
.floating-donate-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  padding: 0.85rem 1.25rem;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  border-top: 1px solid var(--gray-300);
}

.floating-donate-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius-lg);
  width: 100%;
  text-decoration: none;
  animation: btnPulse 2.5s ease-in-out infinite;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .quick-grid         { grid-template-columns: repeat(3, 1fr); }
  .stats-counter-grid { grid-template-columns: repeat(2, 1fr); }
  .fundraising-grid   { grid-template-columns: repeat(2, 1fr); }
  .home-news-grid     { grid-template-columns: repeat(2, 1fr); }
  .home-gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title          { font-size: 2.25rem; }
  .hero-description    { font-size: 1rem; }
  .hero-content        { padding-top: 4.5rem; }
  .quick-grid          { grid-template-columns: repeat(3, 1fr); }
  .quick-access-section { margin-top: -2rem; }
  .stats-counter-grid  { grid-template-columns: repeat(2, 1fr); }
  .stat-counter-card   { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-counter-card:nth-child(even) { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-counter-number { font-size: 2rem; }
  .fundraising-grid    { grid-template-columns: 1fr; }
  .alumni-grid         { grid-template-columns: 1fr; }
  .alumni-card         { flex-direction: column; }
  .alumni-impact-bar   { flex-direction: column; text-align: center; gap: 1rem; }
  .home-news-grid      { grid-template-columns: 1fr; }
  .home-gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .donation-cta-banner { padding: 2.5rem 1.5rem; }
  .donation-cta-title  { font-size: 1.6rem; }
  .floating-donate-bar { display: block; }

  /* Beri ruang bawah untuk floating bar */
  body { padding-bottom: 80px; }
}

@media (max-width: 480px) {
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    padding: 1rem;
  }
  .quick-item {
    padding: 0.9rem 0.25rem;
    font-size: 0.75rem;
    gap: 0.4rem;
    border-radius: var(--radius-md);
  }
  .quick-item i {
    width: 1.75rem;
    height: 1.75rem;
  }
}
