/* ───────────────────────────────────────────────
   ברום עולם — Shofar TV-inspired Dark Theme
   Multi-page, RTL Hebrew, mobile-first
─────────────────────────────────────────────── */

:root {
  --navy-deep: #131738;
  --navy: #1a316a;
  --navy-mid: #1f3a7a;
  --navy-light: #2d4a8f;
  --gold: #fed130;
  --gold-light: #edf67d;
  --gold-deep: #d4a900;
  --cream: #f5f8fc;
  --text: #f5f8fc;
  --text-dim: #b8c5d6;
  --text-muted: #7d8aa3;
  --border: rgba(254, 209, 48, 0.18);
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 30px rgba(254, 209, 48, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Heebo', 'Assistant', system-ui, sans-serif;
  background: var(--navy-deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
  min-height: 100vh;
}
h1, h2, h3, h4 {
  font-family: 'Heebo', sans-serif;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.5px;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Header ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(19, 23, 56, 0.92);
  backdrop-filter: blur(16px);
  z-index: 1000;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.logo-mark .star {
  width: 40px; height: 40px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  position: relative;
  box-shadow: 0 0 20px rgba(254, 209, 48, 0.4);
}
.logo-mark .star::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--navy-deep);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
}
.logo-mark .text {
  font-family: 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.logo-mark .subtitle {
  font-family: 'Heebo', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 1.5px;
  margin-top: 3px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}
nav a {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}
nav a:hover, nav a.active { color: var(--gold); }
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; right: 0; left: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--gold);
  padding: 0.3rem;
}
@media (max-width: 920px) {
  nav { display: none; }
  .menu-toggle { display: block; }
  nav.open {
    display: block;
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: var(--navy-deep);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
  }
  nav.open ul {
    flex-direction: column;
    gap: 0;
  }
  nav.open ul li { width: 100%; }
  nav.open ul li a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
  }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 6px;
  font-weight: 700;
  transition: all 0.3s;
  border: 2px solid var(--gold);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--border-light);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-deep) 0%, #0f1123 50%, var(--navy-deep) 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(254, 209, 48, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -300px; left: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(26, 49, 106, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: rgba(254, 209, 48, 0.12);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}
.hero .badge .dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(254, 209, 48, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(254, 209, 48, 0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  margin-bottom: 1.2rem;
  letter-spacing: -1.5px;
  color: var(--text);
}
.hero h1 .accent { color: var(--gold); }
.hero .tagline {
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 2rem;
  font-style: italic;
}
.hero p.lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.85;
}
.hero-ctas {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Inner page hero */
.hero.inner {
  min-height: 55vh;
  padding-top: 9rem;
  padding-bottom: 4rem;
}
.hero.inner h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.hero.inner .lead { max-width: 760px; }

/* ─── Sections ─── */
section { padding: 5.5rem 1.5rem; position: relative; }
section.alt { background: linear-gradient(180deg, var(--navy-deep) 0%, #0f1330 100%); }
section.light-card-bg { background: var(--navy); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.section-header h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 0.8rem;
  color: var(--text);
}
.section-header h2 .accent { color: var(--gold); }
.section-header .divider {
  width: 80px; height: 3px;
  background: var(--gold);
  margin: 1.2rem auto;
  border-radius: 2px;
}
.section-header p.lead {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* ─── Activity Cards (the BIG clickable cards on home) ─── */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.activity-card {
  background: var(--navy);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  border: 1.5px solid var(--border-light);
}
.activity-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}
.activity-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(254, 209, 48, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.activity-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.activity-card:hover::before { transform: scaleX(1); }
.activity-card:hover::after { opacity: 1; }
.activity-card .icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  transition: all 0.4s;
  border: 1.5px solid var(--border);
  position: relative;
  z-index: 1;
}
.activity-card:hover .icon {
  transform: scale(1.1) rotate(-6deg);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.activity-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.activity-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}
.activity-card .read-more {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.3s;
  position: relative;
  z-index: 1;
}
.activity-card:hover .read-more { gap: 0.7rem; }
.activity-card.featured {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.activity-card.featured h3, .activity-card.featured p { color: var(--navy-deep); }
.activity-card.featured .icon {
  background: var(--navy-deep);
  color: var(--gold);
  border-color: var(--navy-deep);
}
.activity-card.featured .read-more { color: var(--navy-deep); }
.activity-card .featured-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--navy-deep);
  color: var(--gold);
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 2;
}

/* ─── Content sections ─── */
.content-section { background: var(--navy-deep); }
.content-section.dark-card { background: var(--navy); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col .text p {
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-dim);
}
.two-col .text p:first-child {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 500;
}

/* ─── Stats grid ─── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-card {
  background: var(--navy);
  padding: 2.2rem 1.5rem;
  text-align: center;
  border-radius: 10px;
  border-right: 4px solid var(--gold);
  transition: all 0.3s;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.stat-card .number {
  font-family: 'Heebo', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-card .label {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ─── Feature rows ─── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--navy);
  padding: 1.5rem;
  border-radius: 8px;
  border-right: 3px solid var(--gold);
  transition: all 0.3s;
}
.feature-row:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-md);
}
.feature-row .icon {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}
.feature-row h4 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
  color: var(--text);
}
.feature-row p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .separator { margin: 0 0.5rem; opacity: 0.5; }

/* ─── CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}
.cta-banner h2 {
  color: var(--navy-deep);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  position: relative;
}
.cta-banner p {
  color: var(--navy-deep);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  position: relative;
}
.cta-banner .btn {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--gold);
  position: relative;
}
.cta-banner .btn:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy-deep);
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.contact-item .icon {
  width: 50px; height: 50px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.contact-item h4 {
  color: var(--text);
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}
.contact-item p, .contact-item a {
  color: var(--text-dim);
  font-size: 1rem;
}
.contact-item a:hover { color: var(--gold); }
.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.social-link {
  width: 48px; height: 48px;
  background: var(--navy);
  border: 2px solid var(--border);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
  font-weight: 700;
}
.social-link:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-3px);
  border-color: var(--gold);
}
.contact-form {
  background: var(--navy);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.contact-form h3 { margin-bottom: 1.5rem; color: var(--gold); }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--navy-deep);
  color: var(--text);
  transition: all 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(254, 209, 48, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ─── Footer ─── */
footer {
  background: #0a0c1d;
  color: var(--text-dim);
  padding: 3.5rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}
footer h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.5rem; }
footer a {
  color: var(--text-dim);
  font-size: 0.95rem;
}
footer a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-bottom .blessing {
  color: var(--gold);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* ─── Responsive ─── */
@media (max-width: 920px) {
  .activities-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .activity-card { padding: 2rem 1.5rem; min-height: 260px; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-inner .logo-mark { justify-content: center; }
  section { padding: 4rem 1.2rem; }
  .hero { padding-top: 7rem; padding-bottom: 3rem; }
}
@media (max-width: 600px) {
  .activities-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .stat-card .number { font-size: 2.3rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .logo-mark .text { font-size: 1.2rem; }
  .logo-mark .subtitle { font-size: 0.65rem; }
  .header-inner { padding: 0 1rem; }
  .contact-form { padding: 1.8rem; }
}

/* ───────────────────────────────────────────────
   Video grid (midrasha page)
─────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
}
.video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}
.video-card video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}
.video-card figcaption {
  padding: 0.9rem 1rem 1.1rem;
  color: var(--gold);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  width: 100%;
}
@media (max-width: 800px) {
  .video-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}
