/* ─── Reset & base ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Rubik", "Varela Round", sans-serif;
  color: #ffffff;
  background: #111;
  overflow-x: hidden;
}

/* ─── Lava‑lamp animated background 🟣 ─────────────────── */
.bg‑blobs {
  position: fixed;
  inset: 0;
  z-index: -2;
  filter: blur(100px);
  overflow: hidden;
}
.blob {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 20s infinite alternate;
}
.b1 { background:#ff0d6a; top:-10%; left:10%; }
.b2 { background:#1e90ff; bottom:-15%; right:5%; animation-delay:5s; }
.b3 { background:#ff9800; top:50%; left:60%; animation-delay:2s; }
@keyframes float {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-20%,20%) scale(1.3); }
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: auto;        /* trimmed: let content decide height */
  padding: 3rem 2rem 2rem; /* bottom padding gives small gap */
  display: grid;
  place-content: center;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 6vw + 1rem, 5rem);
  line-height: 1.15;
}
.hafer {
  color: #ffdc60;
  text-shadow: 0 0 10px #ffdc60;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { text-shadow:0 0 10px #ffdc60; }
  50%     { text-shadow:0 0 25px #ffdc60; }
}

/* ─── Weekly חאפר spotlight ───────────────────────────── */
.weekly-hafer {
  max-width: 800px;
  margin: 2rem auto;          /* tighter than before */
  text-align: center;
  padding: 0 1rem;
}
.weekly-hafer h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px #ffdc60;
}
.spotlight-img {
  display: block;
  margin: 2rem auto 0;
  max-width: 280px;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

/* ─── Fancy Hall‑of‑Fame title ────────────────────────── */
.title-fancy {
  font-size: clamp(2rem,4vw + 1rem,3.5rem);
  text-align: center;
  margin: 0 auto 2.5rem; /* slightly tighter */
  background: linear-gradient(90deg,#ff0d6a,#f9ac00,#1e90ff);
  -webkit-background-clip: text;
  color: transparent;
  animation: hue 8s linear infinite;
}
@keyframes hue {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ─── Gallery grid + hover captions ───────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 2rem;
  padding: 1rem 5vw 5rem;   /* top padding trimmed */
}
.gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  margin: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery figure::after {
  content: attr(data-caption);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(10%);
  transition: opacity .35s ease, transform .35s ease;
}
.gallery figure:hover img      { transform: scale(1.1); }
.gallery figure:hover::after   { opacity: 1; transform: translateY(0); }

/* ─── Overlay (for future modals) ─────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 9;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ─── Fade‑in reveal class toggled by JS ─────────────── */
.reveal {
  transform: translateY(0)!important;
  opacity: 1!important;
}
