/* ── HOME PAGE CSS ── */

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 520px;
  background: 
    linear-gradient(rgba(10,50,20,0.68), rgba(5,30,12,0.72)),
    linear-gradient(135deg, #1a5c30 0%, #0d3d1e 50%, #081f10 100%);
  display: flex; align-items: center;
  padding: 5rem 5%;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: 
    radial-gradient(circle at 30% 60%, rgba(0,180,90,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(212,148,10,0.06) 0%, transparent 40%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 640px;
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero-image {
  justify-self: end;
  width: min(100%, 560px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,0.86);
  border-radius: 6px;
  box-shadow: 0 20px 44px rgba(0,0,0,0.28);
  transform: rotate(1deg);
}
.hero-image img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-content h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  color: #fff; font-weight: 700; line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero-content p {
  font-size: 1.05rem; color: rgba(255,255,255,0.8);
  line-height: 1.7; margin-bottom: 2rem; max-width: 520px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── PILLARS ── */
.pillars { background: var(--white); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  border-top: 3px solid var(--green);
  padding-top: 2rem;
}
.pillar { text-align: center; padding: 2rem 1rem; }
.pillar-icon {
  font-size: 2rem; margin-bottom: 0.75rem;
  display: block;
}
.pillar h3 {
  font-size: 0.85rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--green-dark); margin-bottom: 0.5rem;
}
.pillar p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ── EVENTS ── */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.event-img {
  height: 160px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1rem;
}
.event-img-1 { background: linear-gradient(135deg, #1a5c30, #2d9c5a); }
.event-img-2 { background: linear-gradient(135deg, #7a5c00, #d4940a); }
.event-img-3 { background: linear-gradient(135deg, #1c3a6e, #2f5ca8); }
.event-img::after {
  content: attr(data-emoji);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem; opacity: 0.2;
}
.event-date-badge {
  background: var(--white); border-radius: 6px;
  padding: 6px 12px; text-align: center;
  min-width: 52px; position: relative; z-index: 1;
}
.event-date-badge span { display: block; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: 0.1em; }
.event-date-badge strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--green-dark); line-height: 1; }
.event-body { padding: 1.25rem 1.25rem 1.5rem; }
.event-body h4 { font-family: 'Merriweather', serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; line-height: 1.4; }
.event-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.event-location { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }

/* ── PRESIDENT ── */
.president-section {
  display: grid; grid-template-columns: 3fr 1.5fr;
  background: var(--green-dark);
}
.president-left {
  display: flex; align-items: center; gap: 2rem;
  padding: 3rem 4% 3rem 5%;
}
.president-photo { flex-shrink: 0; }
.president-avatar-circle {
  width: 110px; height: 130px;
  background: linear-gradient(135deg, #2d9c5a, #1a5c30);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: rgba(255,255,255,0.6);
  font-family: 'Merriweather', serif;
  border: 3px solid rgba(255,255,255,0.15);
  overflow: hidden;
}
.president-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.president-text h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem; font-weight: 700; color: var(--gold-light);
  margin-bottom: 0.75rem;
}
.president-text p { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 1rem; }
.president-sig strong { display: block; color: #fff; font-weight: 700; font-size: 0.95rem; }
.president-sig em { font-size: 0.8rem; color: rgba(255,255,255,0.5); font-style: normal; }
.join-panel {
  background: var(--gold);
  padding: 3rem 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.join-panel h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem;
}
.join-panel p { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.6; }

/* ── IMPACT ── */
.impact-section { background: var(--white); }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.impact-item {
  text-align: center; padding: 2.5rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow .2s;
}
.impact-item:hover { box-shadow: var(--shadow-lg); }
.impact-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.impact-num {
  font-family: 'Merriweather', serif;
  font-size: 2.4rem; font-weight: 700; color: var(--green-dark); line-height: 1;
}
.impact-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; font-weight: 600; }

/* ── GALLERY GRID ── */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.gallery-thumb {
  aspect-ratio: 1; border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; cursor: pointer;
  transition: transform .2s, opacity .2s;
}
.gallery-thumb:hover { transform: scale(1.04); opacity: 0.9; }

/* ── SPONSORS ── */
.sponsors-section { background: var(--white); overflow: hidden; }
.sponsors-slider { overflow: hidden; position: relative; }
.sponsors-slider::before,
.sponsors-slider::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1;
}
.sponsors-slider::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.sponsors-slider::after { right: 0; background: linear-gradient(to left, var(--white), transparent); }
.sponsors-track { display: flex; align-items: center; gap: 2.5rem; width: max-content; }
.sponsor-logo {
  background: var(--light-gray); border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem 2rem;
  font-size: 0.875rem; font-weight: 700; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
  transition: background .2s, color .2s;
}
.sponsor-logo:hover { background: var(--green-light); color: var(--green-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr); gap: 2rem; }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content { max-width: none; }
  .hero-image { justify-self: stretch; width: 100%; transform: none; }
  .events-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .president-section { grid-template-columns: 1fr; }
  .president-left { flex-direction: column; text-align: center; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
}
