/* ============================================
   Yaranu Nissim — design tokens
   Palette lifted from the Rav's own event posters:
   warm bronze/brown backgrounds, warm gold foil accents.
   ============================================ */
:root {
  --bg:        #150f0a;
  --bg-panel:  #1f160e;
  --bg-panel-2:#281d12;
  --border:    rgba(217,180,94,0.22);
  --gold:      #d9b45e;
  --gold-soft: rgba(217,180,94,0.14);
  --gold-dark: #a9822f;
  --text:      #f3f1ea;
  --text-muted:#b8a98e;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Backdrop: warm sunbeams from the top-left, a scatter of star-like
   points, and a soft glowing arc bottom-right — echoing the Rav's own
   event posters. Fixed behind everything so every page shares it. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22500%22%20height%3D%22500%22%3E%3Ccircle%20cx%3D%22165%22%20cy%3D%22485%22%20r%3D%220.78%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.64%22/%3E%3Ccircle%20cx%3D%2237%22%20cy%3D%22420%22%20r%3D%221.24%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.47%22/%3E%3Ccircle%20cx%3D%2229%22%20cy%3D%22465%22%20r%3D%221.21%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.27%22/%3E%3Ccircle%20cx%3D%22222%22%20cy%3D%22214%22%20r%3D%220.68%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.3%22/%3E%3Ccircle%20cx%3D%22217%22%20cy%3D%2230%22%20r%3D%221.59%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.32%22/%3E%3Ccircle%20cx%3D%22114%22%20cy%3D%22322%22%20r%3D%221.35%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.82%22/%3E%3Ccircle%20cx%3D%22295%22%20cy%3D%22299%22%20r%3D%221.08%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.84%22/%3E%3Ccircle%20cx%3D%2223%22%20cy%3D%22285%22%20r%3D%221.63%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.42%22/%3E%3Ccircle%20cx%3D%2273%22%20cy%3D%22276%22%20r%3D%220.74%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.44%22/%3E%3Ccircle%20cx%3D%22417%22%20cy%3D%22349%22%20r%3D%220.82%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.6%22/%3E%3Ccircle%20cx%3D%22327%22%20cy%3D%2296%22%20r%3D%221.05%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.58%22/%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%22288%22%20r%3D%220.67%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.37%22/%3E%3Ccircle%20cx%3D%22348%22%20cy%3D%22272%22%20r%3D%221.11%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.44%22/%3E%3Ccircle%20cx%3D%22299%22%20cy%3D%22472%22%20r%3D%221.14%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.43%22/%3E%3Ccircle%20cx%3D%22406%22%20cy%3D%2292%22%20r%3D%221.44%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.4%22/%3E%3Ccircle%20cx%3D%22294%22%20cy%3D%22153%22%20r%3D%221.23%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.78%22/%3E%3Ccircle%20cx%3D%22373%22%20cy%3D%22229%22%20r%3D%220.95%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.84%22/%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%22262%22%20r%3D%221.1%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2277%22%20cy%3D%22477%22%20r%3D%221.19%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.27%22/%3E%3Ccircle%20cx%3D%22342%22%20cy%3D%2239%22%20r%3D%221.52%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.59%22/%3E%3Ccircle%20cx%3D%22448%22%20cy%3D%22418%22%20r%3D%220.98%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.67%22/%3E%3Ccircle%20cx%3D%22304%22%20cy%3D%22254%22%20r%3D%221.3%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.52%22/%3E%3Ccircle%20cx%3D%22430%22%20cy%3D%2247%22%20r%3D%221.73%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.53%22/%3E%3Ccircle%20cx%3D%22340%22%20cy%3D%2233%22%20r%3D%220.67%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.67%22/%3E%3Ccircle%20cx%3D%22331%22%20cy%3D%22295%22%20r%3D%221.79%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.74%22/%3E%3Ccircle%20cx%3D%22145%22%20cy%3D%22366%22%20r%3D%221.06%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.65%22/%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%22481%22%20r%3D%221.15%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%2259%22%20cy%3D%22252%22%20r%3D%220.67%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.71%22/%3E%3Ccircle%20cx%3D%2266%22%20cy%3D%22378%22%20r%3D%220.9%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.48%22/%3E%3Ccircle%20cx%3D%22446%22%20cy%3D%22254%22%20r%3D%220.7%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.52%22/%3E%3Ccircle%20cx%3D%22281%22%20cy%3D%22142%22%20r%3D%221.66%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.74%22/%3E%3Ccircle%20cx%3D%22442%22%20cy%3D%22281%22%20r%3D%220.93%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22183%22%20cy%3D%22349%22%20r%3D%221.66%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.82%22/%3E%3Ccircle%20cx%3D%2277%22%20cy%3D%2242%22%20r%3D%220.81%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.39%22/%3E%3Ccircle%20cx%3D%22119%22%20cy%3D%226%22%20r%3D%221.18%22%20fill%3D%22%23e8c878%22%20opacity%3D%220.6%22/%3E%3C/svg%3E%0A"),
    conic-gradient(from 130deg at 0% 0%, transparent 0deg, rgba(233,196,120,0.22) 8deg, transparent 20deg, transparent 340deg, rgba(233,196,120,0.14) 352deg, transparent 360deg),
    radial-gradient(circle 60vmax at 100% 100%, transparent 60%, rgba(217,180,94,0.10) 63%, rgba(233,196,120,0.38) 65%, rgba(217,180,94,0.08) 68%, transparent 72%),
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(120,80,30,0.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(90,60,20,0.35) 0%, transparent 60%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 500px 500px, auto, auto, auto, auto;
  pointer-events: none;
}
h1, h2, h3, .brand-text { font-family: 'Frank Ruhl Libre', serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold-text {
  background: linear-gradient(135deg, #f3d98a, var(--gold) 45%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  text-align: center;
  margin: 0 0 40px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  background: rgba(21,15,10,0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 56px; width: auto; border-radius: 8px; }
.brand-text { font-weight: 700; font-size: 1.5rem; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--gold); }

/* --- Language dropdown, sits inline with the other nav links --- */
.nav-lang-dropdown { position: relative; }
.nav-lang-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 10px;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s;
}
.nav-lang-trigger .caret { font-size: 0.65rem; }
.nav-lang-dropdown.open .nav-lang-trigger,
.nav-lang-trigger:hover { border-color: var(--gold); color: var(--gold); }

.nav-lang-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 170px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  z-index: 40;
}
.nav-lang-dropdown.open .nav-lang-menu { display: flex; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
}
.lang-option .flag { font-size: 1.1rem; }
.lang-option:hover { background: var(--gold-soft); }
.lang-option.active { color: var(--gold); font-weight: 600; }

/* --- Weekly schedule dropdown --- */
.nav-schedule-menu {
  min-width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  gap: 4px;
}
.schedule-day-group { padding: 8px 10px; }
.schedule-day-group + .schedule-day-group { border-top: 1px solid var(--border); }
.schedule-day-name {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.schedule-entry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 2px 0;
}
.schedule-time { color: var(--text); font-weight: 600; white-space: nowrap; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 48px 0 56px;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, var(--gold-soft) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-logo { height: 84px; width: auto; border-radius: 10px; }
.hero-name {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin: 0;
  line-height: 1.1;
}

.hero-medallion { text-align: center; margin: 0; }
.hero-medallion img {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  padding: 5px;
  background: linear-gradient(135deg, #f3d98a, var(--gold) 60%, var(--gold-dark));
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.hero-medallion figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-gold {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 100px;
  background: linear-gradient(135deg, #f3d98a, var(--gold) 60%, var(--gold-dark));
  color: #1a1406;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .2s, box-shadow .2s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(217,180,94,0.35); }

/* --- Hero slider: image beside its caption, full width (the source
   photos are all portrait posters, so a side-by-side layout uses the
   space far better than a narrow overlay-caption frame). --- */
.hero-slides {
  position: relative;
  min-height: 380px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition: opacity 1s cubic-bezier(.4,0,.2,1), transform 1.1s cubic-bezier(.4,0,.2,1), visibility 1s;
}
.hero-slide.active { opacity: 1; visibility: visible; transform: scale(1); z-index: 1; }

.hero-slide img {
  width: 42%;
  flex-shrink: 0;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1);
}
.hero-slide.active img { animation: heroKenBurns 7s ease-out forwards; }
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

/* Portrait source (pushlines are filmed vertically) needs a higher crop
   bias than the landscape posters, or the subject's face ends up
   cropped out of this wide-short slot. */
.hero-slide-video.portrait img { object-position: center 8%; }

.hero-slide-video, .hero-slide-highlight { cursor: pointer; }
.hero-slide-tag {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  background: var(--gold);
  color: #1a1406;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 4px 12px;
  border-radius: 100px;
  z-index: 2;
}
.hero-slide-play {
  position: absolute;
  top: 50%;
  inset-inline-start: 21%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(10,7,4,0.55);
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 2;
  transition: background .2s, transform .2s;
}
.hero-slide-video:hover .hero-slide-play { background: var(--gold); color: #1a1406; transform: translate(-50%, -50%) scale(1.08); }

.hero-slide-caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 44px;
  min-width: 0;
}
.hero-slide-caption h2,
.hero-slide-caption p { opacity: 0; transform: translateY(16px); }
.hero-slide.active .hero-slide-caption h2 {
  animation: heroTextIn .7s cubic-bezier(.2,.8,.2,1) .22s forwards;
}
.hero-slide.active .hero-slide-caption p {
  animation: heroTextIn .7s cubic-bezier(.2,.8,.2,1) .38s forwards;
}
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-slide-caption h2 {
  color: var(--gold);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  margin: 0 0 12px;
}
.hero-slide-caption p {
  color: var(--text);
  font-size: 1rem;
  margin: 0;
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide img, .hero-slide-caption h2, .hero-slide-caption p, .hero-dot::after {
    animation: none !important;
    transition: opacity .3s ease !important;
    transform: none !important;
  }
  .hero-slide-caption h2, .hero-slide-caption p { opacity: 1; }
}
.hero-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
/* Each dot is a slim progress bar: it fills over the slide's dwell
   time (kept in sync with hero-slider.js's INTERVAL) rather than just
   flipping color, so the transition between slides feels driven by a
   visible countdown instead of an abrupt jump. */
.hero-dot {
  position: relative;
  width: 34px;
  height: 4px;
  border-radius: 100px;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}
.hero-dot::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 100px;
}
.hero-dot.active::after {
  animation: heroDotFill 5.5s linear forwards;
  animation-play-state: running;
}
#heroSlider.paused .hero-dot.active::after { animation-play-state: paused; }
@keyframes heroDotFill {
  from { width: 0%; }
  to   { width: 100%; }
}

.hero-cta-wrap { text-align: center; margin-top: 36px; }

/* ============================================
   ABOUT
   ============================================ */
.about-section { padding: 64px 0; text-align: center; }
.about-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: start;
}
/* Prose reads better on a narrower measure than the full 1140px content
   width — but the surrounding .wrap stays standard-width and centered,
   so every section's outer edges still line up down the page. */
.about-section > .wrap > p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Full-width campus photo, breaking out between paragraphs --- */
.about-photo-full {
  max-width: 1140px;
  margin: 48px auto;
  padding: 0 24px;
}
.about-photo-full img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 56px rgba(0,0,0,0.45);
  display: block;
}
.about-photo-full figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--gold);
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.15rem;
}

/* --- Rav Refael Rubin: a large, prominent photo (not a small medallion)
   with his name/title set large beside it, then the full text. --- */
.about-rabbi-block {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-top: 20px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
  text-align: start;
}
.about-rabbi-photo {
  flex: 0 0 40%;
  width: 40%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 18px;
  border: 1px solid var(--gold);
  box-shadow: 0 20px 56px rgba(0,0,0,0.45);
}
.about-rabbi-text { flex: 1; min-width: 0; }
.about-rabbi-heading { margin: 0 0 20px; }
.about-rabbi-name-lg {
  display: block;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--gold);
  line-height: 1.15;
}
.about-rabbi-title-lg {
  display: block;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- Sukkah highlight: a current fundraising initiative worth its own
   spotlight between the gallery and the general donate CTA. --- */
.sukkah-section { padding: 8px 0 64px; }
.sukkah-box {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 36px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(217,180,94,0.12), transparent 60%);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.sukkah-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sukkah-box h2 { margin: 0 0 16px; color: var(--gold); }
.sukkah-box p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 28px;
}

/* ============================================
   VIDEO GRID
   ============================================ */
.video-section { padding: 24px 0 72px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}
.video-card {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.video-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.video-card-thumb { position: relative; background: #000; aspect-ratio: 16 / 9; }
.video-card.portrait .video-card-thumb { aspect-ratio: 9 / 16; }
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  background: rgba(0,0,0,0.3);
  opacity: 0; transition: opacity .2s;
}
.video-card:hover .play-badge { opacity: 1; }
.duration-badge {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: 0.75rem; padding: 2px 8px; border-radius: 6px;
}
.rtl .duration-badge { right: auto; left: 8px; }
.category-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--gold); color: #1a1406;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}
.rtl .category-badge { left: auto; right: 8px; }
.video-card-title { padding: 12px 14px; font-size: 0.92rem; font-weight: 600; }
.video-card-summary {
  padding: 0 14px 12px;
  margin-top: -8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-more { text-align: center; margin-top: 32px; }
.link-gold { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.link-gold:hover { text-decoration: underline; }

/* ============================================
   SCHEDULE — weekly agenda (lessons/events + tfilot)
   ============================================ */
.schedule-section { padding: 64px 0; background: var(--bg-panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.agenda-week {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.agenda-day {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}
.agenda-day-name { margin: 0 0 10px; color: var(--gold); font-size: 1.05rem; }
.agenda-period { margin: 0 0 10px; }
.agenda-period:last-child { margin-bottom: 0; }
.agenda-period-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.agenda-entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.agenda-entry { display: flex; align-items: baseline; gap: 8px; font-size: 0.92rem; flex-wrap: wrap; }
.agenda-time { color: var(--text-muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.agenda-entry-event .agenda-label { color: var(--text); }
.agenda-entry-tfila .agenda-label { color: var(--gold); font-weight: 600; font-family: 'Frank Ruhl Libre', serif; }
.agenda-image-link { font-size: 0.9rem; }
.agenda-entry-exceptional { background: var(--gold-soft); border-radius: 8px; padding: 4px 8px; margin: -4px -8px; }
.agenda-exceptional-badge {
  background: var(--gold); color: #1a1406;
  font-size: 0.68rem; font-weight: 700;
  padding: 1px 7px; border-radius: 100px;
  white-space: nowrap;
}
.agenda-audience-badge {
  font-size: 0.68rem; font-weight: 700;
  padding: 1px 7px; border-radius: 100px;
  white-space: nowrap;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.agenda-audience-men { border-color: rgba(120,160,220,0.5); color: #a8c5ec; }
.agenda-audience-women { border-color: rgba(220,140,180,0.5); color: #eab8d0; }
.agenda-audience-mixed { border-color: var(--border); color: var(--text-muted); }

/* ============================================
   UPCOMING EXCEPTIONAL EVENTS — homepage header strip
   ============================================ */
.upcoming-strip {
  background: linear-gradient(135deg, rgba(217,180,94,0.16), transparent);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.upcoming-strip-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.upcoming-strip-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.upcoming-card {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 220px;
  max-width: 300px;
}
.upcoming-card-date {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  color: var(--gold);
}
.upcoming-card-day { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; }
.upcoming-card-daynum { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.upcoming-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.upcoming-card-time { font-size: 0.78rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.upcoming-card-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.upcoming-card-summary {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.upcoming-card-image-link { flex: 0 0 auto; font-size: 1rem; }

/* ============================================
   GALLERY GRID — reused by the announcements gallery
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ============================================
   DONATE
   ============================================ */
.donate-section {
  padding: 56px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(217,180,94,0.12), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.donate-section h2 { margin: 0 0 12px; }
.donate-section p { color: var(--text-muted); max-width: 520px; margin: 0 auto 28px; }

.nav-donate-btn {
  appearance: none;
  border: 1px solid rgba(217,180,94,0.55);
  background: rgba(217,180,94,0.12);
  color: var(--gold);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-donate-btn:hover {
  background: var(--gold);
  color: #0b0e1a;
  border-color: var(--gold);
}

button.btn-gold {
  appearance: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

/* Donation drawer — slides from the right */
body.donate-drawer-open { overflow: hidden; }

.donate-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  visibility: hidden;
}
.donate-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.donate-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 14, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.donate-drawer.is-open .donate-drawer-backdrop { opacity: 1; }

.donate-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  background: #0f1320;
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 48px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.donate-drawer.is-open .donate-drawer-panel { transform: translateX(0); }

.donate-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(217,180,94,0.08);
}
.donate-drawer-header h2 {
  margin: 0;
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.25rem;
  color: var(--gold);
}
.donate-drawer-close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
}
.donate-drawer-close:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.donate-drawer-body {
  flex: 1;
  min-height: 0;
  background: #fff;
}
.donate-drawer-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 560px) {
  .donate-drawer-panel { width: 100vw; }
}


/* ============================================
   CONTACT
   ============================================ */
.contact-section { padding: 64px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.contact-item { padding: 24px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; }
.contact-item .icon { font-size: 1.4rem; margin-bottom: 10px; color: var(--gold); }
.contact-item a { color: var(--text); }
.contact-item a:hover { color: var(--gold); }

/* ============================================
   WATCH PAGE
   ============================================ */
.watch-section { padding: 40px 0 80px; }
.watch-wrap { max-width: 720px; }
.watch-wrap.portrait { max-width: 420px; }

.pending-notice {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.player-frame {
  position: relative;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.player-frame video {
  width: 100%;
  max-height: 80vh;
  display: block;
  overflow-anchor: none; /* avoid scroll jump when video box sizes in */
}

/* --- Announcement detail page --- */
.announcement-detail-frame img { width: 100%; max-height: 80vh; object-fit: contain; display: block; margin: 0 auto; }
.announcement-pdf-open { position: relative; display: block; }
.announcement-pdf-badge {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #1a1406;
  font-size: 0.8rem; font-weight: 700;
  padding: 6px 16px; border-radius: 100px;
  white-space: nowrap;
}
.announcement-detail-summary {
  margin-top: 20px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
}
.announcement-detail-summary a { color: var(--gold); text-decoration: underline; }



.watch-play-gate {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
}
.watch-play-gate[hidden] { display: none !important; }
.watch-play-gate span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(232, 200, 120, 0.95);
  color: #1a1406;
  font-size: 1.8rem;
  padding-left: 4px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

/* One-tap sound unlock (prod autoplay starts muted) */
.watch-sound-btn {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(232, 200, 120, 0.85);
  border-radius: 999px;
  background: rgba(12, 10, 6, 0.88);
  color: #f5e6a8;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.watch-sound-btn[hidden] { display: none !important; }
.watch-sound-btn:hover { color: #fff; border-color: #ffe9a8; }

/* Compact Give CTA — gold bead travels along the real pill border */
.watch-give-btn {
  --give-gold: #e8c878;
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 9px 16px;
  border: 2px solid rgba(232, 200, 120, 0.85);
  border-radius: 999px;
  background: rgba(12, 10, 6, 0.88);
  color: var(--give-gold);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  overflow: visible;
}
.watch-give-btn .watch-give-bead {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: var(--give-gold);
  box-shadow: 0 0 0 1.5px rgba(12, 10, 6, 0.55), 0 0 5px rgba(232, 200, 120, 0.45);
  pointer-events: none;
  z-index: 2;
  offset-anchor: center;
  offset-rotate: 0deg;
  /* Path set in JS to match the live pill outline; CSS fallback = inset pill */
  offset-path: inset(0 round 999px);
  offset-distance: 0%;
  animation: watch-give-travel 3.2s linear infinite;
}
.watch-give-btn .watch-give-label {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.watch-give-btn.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.watch-give-btn:hover {
  color: #fff4c8;
  border-color: #f0d48a;
  transform: scale(1.03);
}
.watch-give-btn:hover .watch-give-bead {
  animation-duration: 2.2s;
}
.watch-give-btn.is-pulse {
  border-color: #ffe9a8;
  box-shadow: 0 0 0 1px rgba(232, 200, 120, 0.35), 0 2px 12px rgba(0, 0, 0, 0.35);
}
.watch-give-btn.is-pulse .watch-give-bead {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 1.5px rgba(12, 10, 6, 0.55), 0 0 8px rgba(232, 200, 120, 0.75);
}
@keyframes watch-give-travel {
  to { offset-distance: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .watch-give-btn .watch-give-bead { animation: none; }
}

/* End-of-video support card (fills the player) */
.watch-endcard {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(232, 200, 120, 0.18), transparent 55%),
    rgba(8, 6, 3, 0.92);
  color: #f5f0e6;
}
.watch-endcard[hidden] { display: none !important; }
.watch-endcard-logo {
  width: min(96px, 28vw);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.watch-endcard-brand {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold, #e8c878);
  letter-spacing: 0.03em;
}
.watch-endcard-msg {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(245, 240, 230, 0.92);
}
.watch-endcard-cta { margin-top: 4px; }
.watch-endcard-dismiss {
  margin-top: 4px;
  background: none;
  border: none;
  color: rgba(245, 240, 230, 0.55);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.watch-endcard-dismiss:hover { color: rgba(245, 240, 230, 0.9); }
.player-frame.has-endcard video { visibility: hidden; }

.watch-title { margin: 24px 0 8px; font-size: 1.4rem; }
.back-link { display: inline-block; margin-top: 12px; color: var(--text-muted); font-size: 0.9rem; }
.back-link:hover { color: var(--gold); }

.watch-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.watch-date { color: var(--text-muted); font-size: 0.9rem; }
.watch-nav { display: flex; align-items: center; gap: 10px; }
.watch-nav-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
}
.watch-nav-arrow:hover { border-color: var(--gold); color: var(--gold); }
.watch-nav-arrow.disabled { color: var(--border); pointer-events: none; }
.watch-nav-all {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px dotted var(--gold);
}

/* --- Category listing page --- */
.category-listing .section-title { margin-top: 24px; }
.category-empty { text-align: center; color: var(--text-muted); padding: 40px 0; }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filter-pill {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.filter-pill:hover { border-color: var(--gold); color: var(--text); }
.filter-pill.active { background: var(--gold); border-color: var(--gold); color: #1a1406; }

/* --- Announcements (PDF/JPG flyers) --- */
.announcement-card {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.announcement-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.announcement-thumb { position: relative; background: #000; aspect-ratio: 3 / 4; }
.announcement-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.announcement-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--gold); color: #1a1406;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}
.rtl .announcement-badge { left: auto; right: 8px; }
.announcement-caption { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.announcement-title { font-size: 0.9rem; font-weight: 600; }
.announcement-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.announcement-date { font-size: 0.78rem; color: var(--text-muted); }
.video-card-meta { padding: 0 14px 14px; margin-top: -8px; font-size: 0.78rem; color: var(--text-muted); }
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}
.page-link { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.page-link:hover { text-decoration: underline; }
.page-status { color: var(--text-muted); font-size: 0.85rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}
.footer-dedication { margin: 0 0 8px; opacity: .8; }

/* ============================================
   WHATSAPP CTA (floating button + "coming soon" modal)
   ============================================ */
.wa-float-btn {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  border: none;
  border-radius: 100px;
  background: #25D366;
  color: #08210f;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
  transition: transform .2s, box-shadow .2s;
}
.wa-float-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,0.5); }
.wa-float-btn span { max-width: 190px; line-height: 1.2; text-align: start; }

.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wa-modal.open { display: flex; }
.wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,0.72);
  backdrop-filter: blur(3px);
}
.wa-modal-box {
  position: relative;
  max-width: 380px;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: 36px 30px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.wa-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #25D366;
  color: #08210f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-modal-box h3 { color: var(--gold); margin: 0 0 10px; font-size: 1.2rem; }
.wa-modal-box p { color: var(--text-muted); margin: 0; line-height: 1.6; font-size: 0.95rem; }
.wa-interest-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; text-align: start; }
.wa-interest-form label { display: flex; flex-direction: column; gap: 4px; color: var(--text-muted); font-size: 0.85rem; }
.wa-interest-form input, .wa-interest-form select {
  border: 1px solid var(--border);
  background: #281d12;
  color: var(--text);
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
}
.wa-interest-form button { margin-top: 4px; }
.wa-interest-status { display: block; text-align: center; font-size: 0.85rem; color: var(--gold); min-height: 1.2em; }
.wa-modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.wa-modal-close:hover { color: var(--gold); }

/* --- Back-to-top: fixed to the physical right, mirrors the WhatsApp
   button (fixed to the physical left) — a stable pair of corner
   controls regardless of RTL/LTR reading direction. --- */
.back-to-top-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--bg-panel);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.back-to-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background: var(--gold-soft); }

/* ============================================
   WATCH — engage bar (like / share / message)
   ============================================ */
.engage-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0 8px;
}
.engage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
}
.engage-btn:hover { border-color: var(--gold); color: var(--gold); }
.engage-btn.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}
.engage-btn strong { color: var(--gold); font-weight: 600; }
.engage-status { color: var(--text-muted); font-size: 0.88rem; margin-inline-start: 4px; }

.rr-modal {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.rr-modal.open { display: flex; }
.rr-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
}
.rr-modal-box {
  position: relative;
  width: min(480px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  z-index: 1;
}
.rr-modal-close {
  position: absolute; top: 8px; inset-inline-end: 10px;
  border: 0; background: transparent; color: var(--text-muted);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.rr-msg-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.rr-msg-form label { display: flex; flex-direction: column; gap: 6px; color: var(--text-muted); font-size: 0.9rem; }
.rr-msg-form input, .rr-msg-form textarea {
  border: 1px solid var(--border);
  background: #281d12;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .main-nav { order: 3; width: 100%; justify-content: center; padding-top: 10px; border-top: 1px solid var(--border); }
}
@media (max-width: 700px) {
  .hero-slide { flex-direction: column; }
  .hero-slide img { width: 100%; height: 46%; }
  .hero-slide-caption { padding: 20px 22px; }
  .hero-slides { min-height: 480px; }
  /* On mobile the image is the full-width top strip, not a 42% side
     column, so the play button re-centers to match. */
  .hero-slide-play { inset-inline-start: 50%; top: 23%; }
  .hero-slide-tag { top: 14px; }
  .about-rabbi-block { flex-direction: column; text-align: center; }
  .about-rabbi-text p { text-align: start; }
  .about-rabbi-photo { width: 100%; max-width: 320px; aspect-ratio: 1 / 1; }
  .about-rabbi-heading { text-align: center; }
  .about-photo-full { margin: 36px auto; }
  .about-photo-full img { max-height: 320px; }
}
@media (max-width: 560px) {
  .hero { padding: 36px 0 40px; }
  .hero-logo { height: 60px; }
  .hero-medallion img { width: 120px; height: 120px; }
  .hero-slide-caption p { font-size: 0.88rem; }
  .about-section, .video-section, .schedule-section, .sukkah-section, .donate-section, .contact-section {
    padding-top: 44px; padding-bottom: 44px;
  }
  .sukkah-box { padding: 28px 22px; }
  .wa-float-btn { padding: 14px; bottom: 16px; left: 16px; }
  .wa-float-btn span { display: none; }
  .back-to-top-btn { width: 42px; height: 42px; bottom: 16px; right: 16px; }
}
