/* ============================================
   OR HAJAIM FOUNDATION — GLOBAL STYLES
   ============================================ */

:root {
  --gold-light: #f5d270;
  --gold-main: #c9973a;
  --gold-dark: #8a6220;
  --gold-gradient: linear-gradient(135deg, #f5d270 0%, #c9973a 40%, #8a6220 100%);
  --gold-gradient-rev: linear-gradient(135deg, #8a6220 0%, #c9973a 40%, #f5d270 100%);
  --blue-deep: #0a0f1e;
  --blue-dark: #111827;
  --blue-mid: #1a2744;
  --blue-accent: #1f3a6e;
  --blue-bright: #2456b0;
  --white: #ffffff;
  --white-muted: rgba(255, 255, 255, 0.78);
  --white-dim: rgba(255, 255, 255, 0.40);
  --text-light: #e8ddc0;
  --shadow-gold: 0 0 30px rgba(201, 151, 58, 0.35);
  --shadow-deep: 0 8px 40px rgba(0, 0, 0, 0.6);
  --border-gold: 1px solid rgba(197, 151, 58, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Card Defaults (Dark) */
  --card-bg: linear-gradient(145deg, rgba(26, 39, 68, 0.9), rgba(10, 15, 30, 0.95));
  --card-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 151, 58, 0.12);
  --card-border: rgba(201, 151, 58, 0.18);
  --card-text: var(--white-muted);

  /* Font Variables */
  --font-cinzel: 'Cinzel', serif;
  --font-cinzel-dec: 'Cinzel Decorative', serif;
  --font-lora: 'Lora', serif;
  --font-assistant: 'Assistant', sans-serif;
}

/* Light Theme Variables — Premium Parchment Palette */
body.light-mode {
  /* Set global background gradient reflecting logo's radial pergamino */
  background: radial-gradient(circle at top center, #fdf8e6 0%, #f9edc3 60%, #e8d0a0 100%);
  background-attachment: fixed;
  background-size: cover;

  --blue-deep: #fdfbf7;
  --white: #3d2605;
  --blue-dark: rgba(255, 255, 255, 0.5);
  --blue-mid: rgba(249, 237, 195, 0.4);
  --blue-accent: rgba(232, 208, 160, 0.5);
  --blue-bright: #c9973a;
  --text-light: #3d2605;
  --white-muted: rgba(61, 38, 5, 0.85);
  --white-dim: rgba(61, 38, 5, 0.60);
  --shadow-deep: 0 15px 45px rgba(61, 38, 5, 0.08);

  /* Refined Gold from Logo */
  --gold-main: #c9973a;
  --gold-light: #f5d270;
  --gold-dark: #3d2605;
  --gold-gradient: linear-gradient(135deg, #c9973a 0%, #f5d270 50%, #8a6d3b 100%);

  /* Card Light Mode Overrides */
  --card-bg: rgba(255, 253, 240, 0.8);
  --card-shadow: 0 15px 35px rgba(61, 38, 5, 0.08), 0 0 0 1px rgba(201, 151, 58, 0.15);
  --card-border: rgba(201, 151, 58, 0.3);
  --card-text: #3d2605;
}

/* ============================================
   GLOBAL SECTION SPACING AND GRADIENT DIVIDERS
   ============================================ */
section[id] {
  position: relative;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(201, 151, 58, 0.3) 20%, var(--gold-main) 50%, rgba(201, 151, 58, 0.3) 80%, transparent) 1;
}

/* Base resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-lora), Georgia, serif;
  background: var(--blue-deep);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: transform, opacity;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ===== GOLD TEXT ===== */
/* ===== UTILITIES ===== */
.hidden {
  display: none !important;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION TAG (אור החיים style) ===== */
.section-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-main);
  border: 1px solid rgba(201, 151, 58, 0.9);
  padding: 4px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
  margin-top: 40px;
}

.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--white-muted);
  max-width: 680px;
  margin: 0 auto 24px;
}

.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold-main);
  font-size: 1.1rem;
}

.left-ornament {
  justify-content: flex-start;
  margin: 16px 0 28px;
}

.ornament-star {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 6px rgba(201, 151, 58, 0.5));
}

.card-interactive {
  cursor: pointer;
  transition: var(--transition);
}

.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

/* ===== BUTTONS ===== */
.btn-primary-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: var(--blue-deep);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  box-shadow: 0 4px 20px rgba(201, 151, 58, 0.4), 0 0 0 0 rgba(201, 151, 58, 0.3);
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 151, 58, 0.55), 0 0 0 4px rgba(201, 151, 58, 0.15);
}

.btn-secondary-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 13px 30px;
  border: 2px solid var(--gold-main);
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary-gold:hover {
  background: rgba(201, 151, 58, 0.12);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* Light mode override for secondary buttons */
body.light-mode .btn-secondary-gold {
  color: #8a6d3b;
  border-color: #c9973a;
}

body.light-mode .btn-secondary-gold:hover {
  background: rgba(201, 151, 58, 0.1);
  color: #5c3c0a;
  border-color: #8a6d3b;
}


/* ============================================
   HEADER — Custom Geometric Style
   ============================================ */

#main-header.custom-header {
  --pill-top: 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 110px;
  background: transparent;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

#main-header.custom-header::before {
  content: '';
  position: absolute;
  top: var(--pill-top);
  left: 30px;
  right: 20px;
  height: 80px;
  background: rgba(28, 36, 51, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(212, 163, 89, 0.8);
  border-radius: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  z-index: 1;
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-header.custom-header.scrolled {
  --pill-top: 10px;
  height: 90px;
}

#main-header.custom-header.scrolled::before {
  top: 10px;
  height: 70px;
  background: rgba(28, 36, 51, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 163, 89, 0.3);
}

@media (max-width: 1149px) {
  #main-header.custom-header {
    --pill-top: 12px;
    height: 90px;
  }

  #main-header.custom-header::before {
    height: 62px;
    left: 20px;
  }

  #main-header.custom-header.scrolled {
    --pill-top: 8px;
    height: 74px;
  }

  #main-header.custom-header.scrolled::before {
    top: 8px;
    height: 56px;
  }
}

@media (max-width: 768px) {
  #main-header.custom-header {
    --pill-top: 8px;
    height: 76px;
  }

  #main-header.custom-header::before {
    height: 54px;
    left: 10px;
    right: 10px;
    border-radius: 30px;
  }

  #main-header.custom-header.scrolled {
    --pill-top: 5px;
    height: 62px;
  }

  #main-header.custom-header.scrolled::before {
    top: 5px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  #main-header.custom-header {
    --pill-top: 6px;
    height: 64px;
  }

  #main-header.custom-header::before {
    height: 48px;
    border-radius: 24px;
  }

  #main-header.custom-header.scrolled {
    --pill-top: 4px;
    height: 54px;
  }

  #main-header.custom-header.scrolled::before {
    top: 4px;
    height: 44px;
  }
}

/* LEFT SHAPE - Actions Area */
.header-left-shape {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  /* Tighter gap for actions */
  padding: 20px 0 0 50px;
  height: 100px;
  z-index: 2;
  background: transparent;
  clip-path: none;
  transition: var(--transition);
}

#main-header.scrolled .header-left-shape {
  padding-top: 10px;
  height: 80px;
}

@media (max-width: 1149px) {
  .header-left-shape {
    display: none;
  }
}

.btn-donate-custom {
  font-family: 'Assistant', 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #e5c78f;
  padding: 10px 24px;
  /* Slightly tighter padding */
  background: transparent;
  border: 1px solid rgba(212, 163, 89, 0.7);
  border-radius: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  text-decoration: none;
  z-index: 2;
  margin-right: 12px;
  /* Add margin to separate from icons */
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-donate-custom:hover {
  background: var(--gold-gradient);
  border-color: var(--gold-light);
  color: var(--blue-deep);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(201, 151, 58, 0.4), 0 0 20px rgba(201, 151, 58, 0.2);
}

body.light-mode .btn-donate-custom {
  color: #5c3c0a;
  border-color: rgba(176, 141, 72, 0.8);
}

body.light-mode .btn-donate-custom:hover {
  background: var(--gold-gradient);
  border-color: var(--gold-dark);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(138, 109, 59, 0.3);
}

@media (max-width: 768px) {
  .btn-donate-custom {
    padding: 8px 16px;
    font-size: 0.75rem;
    margin-right: 6px;
  }
}

@media (max-width: 500px) {
  .btn-donate-custom {
    padding: 8px;
    /* Circular button */
    border-radius: 50%;
    margin-right: 4px;
    width: 36px;
    height: 36px;
  }

  .donate-text {
    display: none;
  }

  .donate-icon {
    display: block !important;
  }
}

.header-search-custom,
.header-cart-custom {
  background: transparent;
  color: rgba(229, 199, 143, 0.85);
  /* Matches gold buttons */
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.header-search-custom:hover,
.header-cart-custom:hover {
  transform: translateY(-2px);
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* NEW ACTIONS (Language & Theme) */
.header-actions-divider {
  width: 1px;
  height: 24px;
  background: rgba(212, 163, 89, 0.3);
  margin: 0 8px;
  /* Slightly wider margin for divider breathing room */
}

.header-lang-toggle,
.header-theme-toggle {
  background: transparent;
  color: rgba(229, 199, 143, 0.85);
  /* Matches gold buttons */
  border: none;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  font-family: 'Assistant', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 8px;
}

.header-lang-toggle:hover,
.header-theme-toggle:hover {
  transform: translateY(-2px);
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.lang-dropdown {
  position: relative;
  z-index: 10;
}

.lang-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(14, 18, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 163, 89, 0.4);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.lang-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-family: 'Assistant', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-menu button:hover {
  background: rgba(212, 163, 89, 0.15);
  color: #fff;
}

/* LIGHT MODE OVERRIDES (Header specific) */
body.light-mode #main-header.custom-header::before {
  background: linear-gradient(135deg, #fdf9e8 0%, #f5e1a4 50%, #fdf9e8 100%);
  border-color: rgba(201, 151, 58, 0.45);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

body.light-mode #main-header.custom-header.scrolled::before {
  background: linear-gradient(135deg, #fdf9e8 0%, #eccd72 50%, #f5e1a4 100%);
  border-color: rgba(201, 151, 58, 0.5);
  box-shadow: 0 10px 30px rgba(201, 151, 58, 0.15);
}

body.light-mode .custom-nav a {
  color: rgba(0, 0, 0, 0.65);
}

body.light-mode .custom-nav a:hover,
body.light-mode .custom-nav a.active {
  color: #000000;
  text-shadow: 0 0 1px rgba(0,0,0,0.1);
}

body.light-mode .header-search-custom,
body.light-mode .header-cart-custom,
body.light-mode .header-lang-toggle,
body.light-mode .header-theme-toggle {
  color: #3d2605;
}

body.light-mode .header-search-custom:hover,
body.light-mode .header-cart-custom:hover,
body.light-mode .header-lang-toggle:hover,
body.light-mode .header-theme-toggle:hover {
  color: #000;
  transform: translateY(-2px) scale(1.1);
}

body.light-mode .custom-hamburger span {
  background: #b08d48;
  box-shadow: none;
}

body.light-mode .lang-menu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(212, 163, 89, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body.light-mode .lang-menu button {
  color: #2c251d;
}

body.light-mode .lang-menu button:hover {
  background: rgba(212, 163, 89, 0.15);
  color: #000;
}

/* Light Mode Dropdown */
body.light-mode .dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(212, 163, 89, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body.light-mode .dropdown-menu a {
  color: #2c251d;
}

body.light-mode .dropdown-menu a:hover {
  background: rgba(212, 163, 89, 0.1);
  color: #b08d48;
}

/* Day Mode Logo Wrapper Swap - Adjusted for all-white header */
body.light-mode .header-right-logo::before {
  background-image: url('data:image/svg+xml;utf8,<svg width="256" height="182" viewBox="0 0 256 182" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(%23filter0_d_34_2)"><path d="M85.5749 78.5292C86.1989 53.5421 75.6674 28.716 52.4657 19.4195L4 0H266.5C266.5 0 289.606 123.418 223.088 160.727C162.887 194.493 99.3601 157.702 90.2943 118.793C86.5296 102.636 85.2937 89.7867 85.5749 78.5292Z" fill="%23ffffff"/></g><defs><filter id="filter0_d_34_2" x="0" y="0" width="274.383" height="182" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="4"/><feGaussianBlur stdDeviation="2"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_34_2"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_34_2" result="shape"/></filter></defs></svg>') !important;
  opacity: 1 !important;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.05));
}

body.light-mode .header-right-logo {
  background: transparent !important;
}

/* CENTER NAV */
.custom-nav {
  display: none;
  flex: 1;
  position: relative;
  z-index: 2;
}

@media (min-width: 1400px) {
  .custom-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    margin-right: 250px;
    /* Prevent overlap with the absolute right logo */
    padding-right: 0;
    transition: var(--transition);
  }

  #main-header.scrolled .custom-nav {
    padding-top: 10px;
  }
}

.custom-nav>ul {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Slightly tighter gap to fit all items (including DONAR and ARTICULOS) */
  list-style: none;
  margin: 0;
  padding: 0;
  height: 80px;
  transition: var(--transition);
}

#main-header.scrolled .custom-nav>ul {
  height: 70px;
}

.custom-nav>ul>li {
  position: relative;
  list-style: none;
}

.custom-nav a {
  font-family: 'Cinzel', serif;
  /* Extremely elegant serif font */
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.75);
  /* Sophisticated off-white */
  text-align: center;
  padding: 8px 4px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(229, 199, 143, 0.8);
  letter-spacing: 0.1em;
  padding: 10px 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: none;
}

/* Icons in header follow contrast */
.header-search-custom,
.header-cart-custom,
.header-lang-toggle,
.header-theme-toggle {
  color: rgba(229, 199, 143, 0.85);
}

.custom-nav a.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(212, 163, 89, 0.5);
}

.dropdown-icon {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
  opacity: 1;
}

/* DROPDOWN MENU */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(14, 18, 26, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: 12px;
  min-width: 180px;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: block !important;
  height: auto !important;
  /* Ensure it expands to fit all items */
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.dropdown-menu a:hover {
  background: rgba(212, 163, 89, 0.15);
  color: var(--gold-light);
  transform: none;
  /* No vertical lift inside dropdown */
}

.custom-nav a:hover,
.custom-nav a.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(253, 185, 49, 0.4);
}

/* Subtle dot indicator under active item */
.custom-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #e5c78f;
  border-radius: 50%;
  box-shadow: 0 0 6px #e5c78f;
}

/* RIGHT: Logo Overlap with Curved Background — fluid scaling */
.header-right-logo {
  --shape-w: 240px;
  position: absolute;
  right: 0;
  top: 0;
  width: var(--shape-w);
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 3;
  overflow: visible;
}

#main-header.scrolled .header-right-logo {
  top: 0;
  height: 100%;
}

@media (max-width: 1149px) {
  .header-right-logo {
    --shape-w: 220px;
  }
}

@media (max-width: 768px) {
  .header-right-logo {
    --shape-w: 200px;
  }
}

@media (max-width: 480px) {
  .header-right-logo {
    --shape-w: 180px;
  }
}

/* The curved white SVG shape — always proportional to container */
.header-right-logo::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: var(--shape-w);
  height: calc(var(--shape-w) * 182 / 256);
  background: url('data:image/svg+xml;utf8,<svg width="256" height="182" viewBox="0 0 256 182" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(%23filter0_d_34_2)"><path d="M85.5749 78.5292C86.1989 53.5421 75.6674 28.716 52.4657 19.4195L4 0H266.5C266.5 0 289.606 123.418 223.088 160.727C162.887 194.493 99.3601 157.702 90.2943 118.793C86.5296 102.636 85.2937 89.7867 85.5749 78.5292Z" fill="white"/></g><defs><filter id="filter0_d_34_2" x="0" y="0" width="274.383" height="182" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="4"/><feGaussianBlur stdDeviation="2"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_34_2"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_34_2" result="shape"/></filter></defs></svg>') no-repeat right top;
  background-size: contain;
  z-index: -1;
  transition: var(--transition);
  transform-origin: top right;
  opacity: 0.95;
}



/* Logo always sized and positioned proportional to the shape */
.custom-logo {
  position: absolute;
  width: calc(var(--shape-w) * 0.547);
  height: calc(var(--shape-w) * 0.547);
  right: calc(var(--shape-w) * 0.059);
  top: calc(var(--shape-w) * 0.059);
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: var(--transition);
  max-width: 100%;
}



/* HAMBURGER (Mobile) */
.custom-hamburger {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 10px;
  z-index: 4;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .custom-hamburger {
    left: 24px;
  }
}

@media (min-width: 1400px) {
  .custom-hamburger {
    display: none;
  }
}

@media (min-width: 1150px) and (max-width: 1399px) {
  .custom-hamburger {
    left: 58px;
    top: calc(20px + 40px);
    transform: translateY(-50%);
  }

  .custom-hamburger::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: rgba(212, 163, 89, 0.3);
  }

  .header-left-shape {
    padding-left: 147px;
  }
}

.custom-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #e5c78f;
  /* Beautiful soft gold to match the new dark glass header */
  border-radius: 2px;
  transition: var(--transition);
  box-shadow: 0 0 5px rgba(229, 199, 143, 0.3);
  /* Subtle glow */
}

/* ============================================
   RTL HEADER FIXES
   ============================================ */
html[dir="rtl"] .header-right-logo {
  right: auto;
  left: 0;
}

html[dir="rtl"] .header-right-logo::before {
  right: auto;
  left: 0;
  /* Mirror the SVG drawing inside the data URL */
  background-image: url('data:image/svg+xml;utf8,<svg width="256" height="182" viewBox="0 0 256 182" fill="none" xmlns="http://www.w3.org/2000/svg"><g transform="translate(256, 0) scale(-1, 1)" filter="url(%23filter0_d_34_2)"><path d="M85.5749 78.5292C86.1989 53.5421 75.6674 28.716 52.4657 19.4195L4 0H266.5C266.5 0 289.606 123.418 223.088 160.727C162.887 194.493 99.3601 157.702 90.2943 118.793C86.5296 102.636 85.2937 89.7867 85.5749 78.5292Z" fill="white"/></g><defs><filter id="filter0_d_34_2" x="0" y="0" width="274.383" height="182" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="4"/><feGaussianBlur stdDeviation="2"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_34_2"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_34_2" result="shape"/></filter></defs></svg>');
  background-position: left top;
  transform-origin: top left;
}

/* Light mode RTL SVG - Parchment/White color instead of dark blue */
html[dir="rtl"] body.light-mode .header-right-logo::before {
  background-image: url('data:image/svg+xml;utf8,<svg width="256" height="182" viewBox="0 0 256 182" fill="none" xmlns="http://www.w3.org/2000/svg"><g transform="translate(256, 0) scale(-1, 1)" filter="url(%23filter0_d_34_2)"><path d="M85.5749 78.5292C86.1989 53.5421 75.6674 28.716 52.4657 19.4195L4 0H266.5C266.5 0 289.606 123.418 223.088 160.727C162.887 194.493 99.3601 157.702 90.2943 118.793C86.5296 102.636 85.2937 89.7867 85.5749 78.5292Z" fill="white"/></g><defs><filter id="filter0_d_34_2" x="0" y="0" width="274.383" height="182" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="4"/><feGaussianBlur stdDeviation="2"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_34_2"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_34_2" result="shape"/></filter></defs></svg>') !important;
}

/* Because origin is top left, scroll scale down works perfectly towards the left wall */


/* Move the logo circle purely structurally */
html[dir="rtl"] .custom-logo {
  right: auto;
  left: calc(var(--shape-w) * 0.059);
}

html[dir="rtl"] #main-header.scrolled .custom-logo {
  right: auto;
  left: calc(var(--shape-w) * 0.059);
}

@media (max-width: 1150px) {
  html[dir="rtl"] .custom-logo {
    right: auto;
    left: 15px;
  }
}

@media (max-width: 768px) {
  html[dir="rtl"] .custom-logo {
    right: auto;
    left: 12px;
  }
}

@media (max-width: 500px) {
  html[dir="rtl"] .custom-logo {
    right: auto;
    left: 8px;
  }
}

/* Reset structural margins for nav, actions, hamburgers */
html[dir="rtl"] .header-left-shape {
  padding-left: 0;
  padding-right: 50px;
}

@media (max-width: 1150px) {
  html[dir="rtl"] .header-left-shape {
    padding-left: 0;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  html[dir="rtl"] .header-left-shape {
    padding-left: 0;
    padding-right: 16px;
  }
}

html[dir="rtl"] .custom-nav {
  margin-right: 0;
  margin-left: 250px;
}

html[dir="rtl"] .custom-hamburger {
  left: auto;
  right: 40px;
}

@media (max-width: 768px) {
  html[dir="rtl"] .custom-hamburger {
    right: 24px;
  }
}

/* ===== MOBILE NAV — Left Drawer ===== */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  z-index: 2000;
  background: linear-gradient(180deg, #0a0f1e 0%, #0d1525 100%);
  border-right: 1px solid rgba(201, 151, 58, 0.25);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  display: flex;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.6);
}

.mobile-nav-overlay.open {
  transform: translateX(0);
}

/* Backdrop */
.mobile-nav-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.mobile-nav-overlay.open::before {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-overlay ul {
  list-style: none;
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: 100%;
  width: 100%;
}

.mobile-group {
  margin-bottom: 5px;
}

.mobile-group-title {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--gold-main);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  opacity: 0.7;
}

.mobile-sub {
  list-style: none;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-left: 1px solid rgba(212, 163, 89, 0.2);
}

/* RTL Adjustment for mobile sub */
[dir="rtl"] .mobile-sub {
  border-left: none;
  border-right: 1px solid rgba(212, 163, 89, 0.2);
  padding-left: 0;
  padding-right: 20px;
}

.mobile-nav-overlay a {
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
}

.mobile-donate {
  color: var(--gold-main) !important;
  border: 1px solid var(--gold-main);
  padding: 10px 30px;
  border-radius: 100px;
}

.close-mobile-nav {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: var(--gold-main);
  font-size: 1.6rem;
  line-height: 1;
  z-index: 1;
}

.mobile-nav-footer {
  padding: 20px 32px;
  border-top: 1px solid rgba(201, 151, 58, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: auto;
}

.mobile-nav-footer button {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border: 1px solid rgba(201, 151, 58, 0.3);
  border-radius: 20px;
  transition: var(--transition);
}

.mobile-nav-footer button:hover,
.mobile-nav-footer button.active-lang {
  color: var(--gold-main);
  border-color: var(--gold-main);
}

/* ============================================
   GALLERY MARQUEE — Infinite Scroll Gallery
   ============================================ */

@keyframes gallery-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.gallery-marquee-section {
  position: relative;
  padding: 80px 0 60px;
  background: #050812 !important;
  /* Unified dark background */
  overflow: hidden;
}

/* ── VIDEO DE FONDO (Galería / Sobre Nosotros) ─────────────── */
.about-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.about-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  /* Máxima visibilidad del fuego */
  filter: saturate(1.3) brightness(1.2);
}

.about-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 8, 5, 1) 0%,
      rgba(10, 8, 5, 0.95) 25%,
      rgba(184, 115, 51, 0.25) 50%,
      rgba(184, 115, 51, 0.25) 70%,
      rgba(10, 8, 5, 1) 100%);
  pointer-events: none;
  backdrop-filter: blur(1px);
  /* Suaviza las chispas para leer mejor */
}

/* Asegurar que el contenido de la galería esté sobre el video */
.gallery-marquee-header,
.gallery-track-wrapper {
  position: relative;
  z-index: 2;
}

/* Fix para modo día en sección con fondo oscuro (Galería) */
/* Unified gallery styles: Light mode tag and ornament overrides removed */

.gallery-marquee-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 24px;
}

.gallery-marquee-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-light);
  margin: 12px 0 8px;
  letter-spacing: 0.05em;
  text-shadow:
    0 4px 15px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(201, 151, 58, 0.4);
}

.gallery-marquee-subtitle,
#gallery-subtitle {
  font-size: 1.1rem;
  color: #ffffff !important;
  max-width: 600px;
  margin: 0 auto;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 1),
    -1px -1px 2px rgba(0, 0, 0, 1),
    0 0 10px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
  opacity: 1 !important;
  display: block;
}

/* Ensure the gallery title pops against the light particle background */
@keyframes silver-shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes gold-shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

#gallery-title {
  background: linear-gradient(90deg, #c9973a, #f5d270, #8a6220, #f5d270, #c9973a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: gold-shimmer 8s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 15px rgba(201, 151, 58, 0.3));
}

/* Unified gallery styles: Light mode title and subtitle overrides removed */

.gallery-track-wrapper {
  overflow: visible;
  /* Allow symbols and ribbon overflow to be seen */
  width: 100%;
  padding-bottom: 60px;
  /* Space for the symbols */
}

.gallery-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: gallery-scroll 35s linear infinite;
  will-change: transform;
}

.gallery-track:hover {
  animation-play-state: paused;
}

@keyframes gallery-scroll-rtl {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(50%);
  }
}

html[dir="rtl"] .gallery-track {
  animation: gallery-scroll-rtl 35s linear infinite;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover {
  transform: translateY(-8px);
}

.gallery-card:hover .gallery-card-arch {
  border-color: rgba(245, 210, 112, 0.8);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 4px rgba(245, 210, 112, 0.2),
    0 0 30px rgba(201, 151, 58, 0.25);
}

.gallery-card:hover .gallery-card-arch img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1.2);
}

.gallery-card-arch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(5, 8, 20, 0.7) 100%);
  pointer-events: none;
}

.arch-ribbon-svg-container {
  position: absolute;
  bottom: -120px;
  /* Sits perfectly covering the arch base */
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  /* Grand museum scale */
  height: 240px;
  /* Deep ribbon detail */
  z-index: 50;
  pointer-events: none;
  animation: ribbonWave 5s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center bottom;
}

.gallery-card:hover .arch-ribbon-svg-container {
  transform: translateX(-50%) scale(1.15);
}

.arch-ribbon-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}


.gallery-card-arch {
  width: 240px;
  height: 320px;
  overflow: visible;
  /* Allow ribbon to overflow */
  border-radius: 120px 120px 16px 16px;
  position: relative;
  border: 2px solid rgba(197, 151, 58, 0.45);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.55),
    0 0 0 4px rgba(197, 151, 58, 0.08),
    inset 0 0 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.gallery-card-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 120px 120px 16px 16px;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
  filter: brightness(0.85) saturate(1.1);
}

/* Golden Symbol Refinement */
.arch-symbol-gold {
  margin-top: 15px;
  /* Reduced from 45px to bring it closer to the thick ribbon */
  color: #fde08d;
  /* Brighter gold for the icon */
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter:
    drop-shadow(0 0 12px rgba(253, 185, 49, 0.6)) drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-card:hover .arch-symbol-gold {
  color: #fff;
  transform: scale(1.2) translateY(-8px) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(245, 210, 112, 0.9));
}

.arch-symbol-gold svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

.gallery-fade-left,
.gallery-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  /* Wider fade */
  pointer-events: none;
  z-index: 2;
}

.gallery-fade-left {
  left: 0;
  background: linear-gradient(to right, rgba(10, 15, 30, 0.5), transparent);
}

.gallery-fade-right {
  right: 0;
  background: linear-gradient(to left, rgba(10, 15, 30, 0.5), transparent);
}

/* Light Mode Gallery Overrides */
/* Unified gallery styles: Light mode arch overrides removed */

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('hero_bg.png') center center / cover no-repeat;
  transition: background-image 0.5s ease;
}

body.light-mode .hero {
  background-image: url('hero_bg_light.png');
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(5, 8, 18, 0.90) 0%,
      rgba(10, 16, 40, 0.82) 40%,
      rgba(5, 10, 25, 0.92) 100%);
  z-index: 1;
  transition: background 0.5s ease;
}

body.light-mode .hero-bg-overlay {
  background: linear-gradient(160deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(244, 241, 232, 0.75) 40%,
      rgba(255, 255, 255, 0.92) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold-main);
  border-radius: 50%;
  animation: floatParticle linear infinite;
  opacity: 0;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  10% {
    opacity: 0.7;
  }

  90% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1.5);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 170px 24px 80px;
  /* Increased top padding to account for 90px header height */
  max-width: 860px;
  animation: heroFadeIn 1.2s ease-out forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(201, 151, 58, 0.4);
  border-radius: 100px;
  padding: 6px 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold-main);
  letter-spacing: 0.2em;
  margin-bottom: 28px;
  background: rgba(201, 151, 58, 0.06);
}

.badge-star {
  font-size: 1rem;
}

.hero-heb {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(201, 151, 58, 0.4));
  line-height: 1.15;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px auto;
  max-width: 320px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0.5;
}

.divider-icon {
  color: var(--gold-main);
  font-size: 1.2rem;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

body.light-mode .hero-title {
  color: var(--text-light);
}

body.light-mode .hero-typed {
  color: var(--gold-dark) !important;
  font-weight: 700;
}

.hero-title em {
  font-style: normal;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--white-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(201, 151, 58, 0.2);
  padding-top: 28px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  font-family: 'Cinzel', serif;
}

.stat-divider {
  color: rgba(201, 151, 58, 0.3);
  font-size: 1.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.65;
  transition: var(--transition);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-main);
  font-family: 'Cinzel', serif;
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--gold-main);
  border-bottom: 2px solid var(--gold-main);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(6px);
  }
}

/* ============================================
   SEGULOT
   ============================================ */
.section-segulot {
  position: relative;
  padding: 100px 0;
  background: var(--blue-dark);
  overflow: hidden;
}

.section-bg-overlay-segulot {
  position: absolute;
  inset: 0;
  background: url('segulot_bg.png') center center / cover no-repeat;
  opacity: 0.12;
  z-index: 0;
  transition: background-image 0.5s ease;
}

body.light-mode .section-bg-overlay-segulot {
  background-image: url('segulot_bg_light.png');
  opacity: 0.65;
}

.segulot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.segula-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.segula-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.segula-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 151, 58, 0.4);
  box-shadow: var(--card-shadow);
}

.segula-card:hover::before {
  opacity: 1;
}

.segula-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(201, 151, 58, 0.15), rgba(201, 151, 58, 0.05));
  border: 1.5px solid rgba(201, 151, 58, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.segula-card:hover .segula-icon-wrap {
  background: linear-gradient(135deg, rgba(201, 151, 58, 0.25), rgba(201, 151, 58, 0.10));
  box-shadow: 0 0 20px rgba(201, 151, 58, 0.2);
}

.segula-icon {
  font-size: 2rem;
}

.segula-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.segula-desc {
  font-size: 0.88rem;
  color: var(--card-text);
  line-height: 1.6;
  margin-bottom: 18px;
}

.segula-link {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold-main);
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.segula-link:hover {
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

.segulot-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(201, 151, 58, 0.08), rgba(26, 39, 68, 0.5));
  border: 1px solid rgba(201, 151, 58, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
}

.segulot-cta p {
  font-size: 1.1rem;
  color: var(--white-muted);
  margin-bottom: 20px;
  font-family: 'Lora', serif;
  font-style: italic;
}

/* ============================================
   KOLEL
   ============================================ */
.section-kolel {
  padding: 100px 0;
  background: var(--blue-deep);
  position: relative;
  overflow: hidden;
}

.section-bg-overlay-kolel {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: 0;
  mix-blend-mode: overlay;
  transition: opacity 1s ease;
}

body.light-mode .section-bg-overlay-kolel {
  opacity: 0.1;
}

.section-kolel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0.3;
}

.section-kolel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0.3;
}

.kolel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.kolel-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(201, 151, 58, 0.25);
}

.kolel-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, opacity 0.5s ease;
}

.video-overlay-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: 0.4s ease;
}

.video-overlay-play:hover {
  background: rgba(0, 0, 0, 0.1);
}

.play-btn-main {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  box-shadow: 0 0 40px rgba(201, 151, 58, 0.5);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-overlay-play:hover .play-btn-main {
  transform: scale(1.15);
  box-shadow: 0 0 60px rgba(201, 151, 58, 0.7);
}

.kolel-video-iframe-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: none;
  background: #000;
}

.kolel-video-iframe-container.playing {
  display: block;
}

.kolel-video-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.kolel-image-wrap.is-playing .kolel-img,
.kolel-image-wrap.is-playing .video-overlay-play,
.kolel-image-wrap.is-playing .kolel-img-badge {
  opacity: 0;
  pointer-events: none;
}

.kolel-image-wrap:hover .kolel-img {
  transform: scale(1.04);
}

.kolel-img-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--gold-gradient);
  color: var(--blue-deep);
  font-family: 'Cinzel Decorative', serif;
  font-weight: 900;
  border-radius: var(--radius);
  padding: 12px 18px;
  text-align: center;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.kolel-img-badge small {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kolel-intro {
  font-size: 1.05rem;
  color: var(--white-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.kolel-intro em {
  font-style: italic;
  color: var(--gold-light);
}

.kolel-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.kolel-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(201, 151, 58, 0.04);
  border-left: 2px solid var(--gold-main);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: var(--transition);
}

.kolel-feature:hover {
  background: rgba(201, 151, 58, 0.08);
  border-left-color: var(--gold-light);
}

.feature-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.kolel-feature h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.kolel-feature p {
  font-size: 0.88rem;
  color: var(--white-muted);
}

/* ============================================
   HISTORIA / SOBRE NOSOTROS
   ============================================ */
.section-orhajaim {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  background: var(--blue-deep);
}

.section-orhajaim .container {
  position: relative;
  z-index: 2;
}

/* ============================================
   TIENDA
   ============================================ */
.section-tienda {
  padding: 60px 0;
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}

.section-bg-overlay-tienda {
  position: absolute;
  inset: 0;
  background: url('products_bg.png') center center / cover no-repeat;
  opacity: 0.05;
  z-index: 0;
  transition: background-image 0.5s ease;
}

body.light-mode .section-bg-overlay-tienda {
  background-image: url('products_bg_light.png');
  opacity: 0.45;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 151, 58, 0.35);
  box-shadow: var(--card-shadow);
}

.product-badge-new {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  background: var(--gold-gradient);
  color: var(--blue-deep);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.product-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.6);
  transition: all 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
  filter: brightness(0.6) saturate(0.8);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.btn-add-cart {
  background: var(--gold-gradient);
  color: var(--blue-deep);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-cart:hover {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 0.78rem;
  color: var(--gold-main);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.product-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.84rem;
  color: var(--card-text);
  margin-bottom: 16px;
  line-height: 1.6;
}

.product-price-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-buy-now {
  background: rgba(201, 151, 58, 0.12);
  color: var(--gold-main);
  border: 1px solid rgba(201, 151, 58, 0.35);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-buy-now:hover {
  background: var(--gold-gradient);
  color: var(--blue-deep);
  border-color: transparent;
}

.tienda-cta {
  text-align: center;
}

/* ============================================
   SHIURIM
   ============================================ */
.section-shiurim {
  padding: 60px 0;
  background: linear-gradient(160deg, var(--blue-deep), var(--blue-mid), var(--blue-deep));
  position: relative;
}

.shiurim-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.filter-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 9px 22px;
  border-radius: 100px;
  border: 1px solid rgba(201, 151, 58, 0.3);
  background: transparent;
  color: var(--white-dim);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--gold-main);
  color: var(--gold-light);
  background: rgba(201, 151, 58, 0.06);
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: var(--blue-deep);
  border-color: transparent;
  font-weight: 700;
}

.shiurim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 48px;
}

/* Synchronized Card Design with Shiurim Page */
.shiur-card {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

body.light-mode .shiur-card {
  background: rgba(255, 252, 245, 0.7);
  border-color: rgba(176, 141, 72, 0.2);
  box-shadow: 0 8px 24px rgba(122, 88, 26, 0.08);
}

.shiur-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(201, 151, 58, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 151, 58, 0.2);
}

.shiur-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(10, 15, 30, 0.8);
}

.shiur-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.shiur-card:hover .shiur-thumb-img {
  transform: scale(1.07);
}

.shiur-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
}

.shiur-card:hover .shiur-thumb-overlay {
  background: rgba(10, 15, 30, 0.55);
}

.shiur-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(201, 151, 58, 0.5);
  color: var(--blue-deep);
}

.shiur-card:hover .shiur-play-btn {
  opacity: 1;
  transform: scale(1);
}

.shiur-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.shiur-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shiur-category {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 6px;
}

.shiur-title {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
  margin-bottom: 8px;
}

body.light-mode .shiur-title {
  color: #3d2605;
}

.shiur-desc {
  font-family: 'Assistant', sans-serif;
  font-size: 0.85rem;
  color: var(--white-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.8;
}

body.light-mode .shiur-desc {
  color: #4a3b2b;
}

.shiur-speaker-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 151, 58, 0.15);
}

.shiur-speaker-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-main);
  object-fit: cover;
  background: var(--blue-dark);
}

.shiur-speaker-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.shiur-speaker-name {
  font-family: 'Assistant', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

body.light-mode .shiur-speaker-name {
  color: #8a6220;
}

.shiur-date {
  font-family: 'Assistant', sans-serif;
  font-size: 0.72rem;
  color: var(--white-muted);
  opacity: 0.8;
  transition: color 0.3s ease;
}

body.light-mode .shiur-date {
  color: #5c3c0a;
}





.shiurim-premium-container {
  padding: 80px 60px;
  border-radius: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}


body.light-mode .shiurim-premium-container {
  background: #ffffff;
  box-shadow: 0 15px 45px rgba(61, 38, 5, 0.08), 0 0 0 1px rgba(201, 151, 58, 0.1);
  border: 1px solid rgba(201, 151, 58, 0.15);
}

@media (max-width: 768px) {
  .shiurim-premium-container {
    padding: 30px 16px;
    border-radius: 20px;
  }
}



.shiur-subheader {
  grid-column: 1 / -1;
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold-main);
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shiur-subheader::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(201, 151, 58, 0.4), transparent);
}

.shiur-subheader-icon {
  font-size: 1.5rem;
}

.shiur-subheader:first-of-type {
  margin-top: 10px;
}

.shiur-card.hidden {
  display: none;
}


.yt-embed-wrap {
  width: 100%;
  height: 100%;
}

.sp-card-spotify-play {
  background: #1DB954 !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.5) !important;
}

.yt-embed-wrap {
  width: 100%;
  padding-bottom: 56.25%;
  position: relative;
  background: #000;
}

.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.shiur-info {
  padding: 20px;
}

.shiur-category {
  font-size: 0.78rem;
  color: var(--gold-main);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.shiur-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.3;
}

.shiur-desc {
  font-size: 0.84rem;
  color: var(--card-text);
  margin-bottom: 14px;
  line-height: 1.6;
}

.shiur-speaker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 151, 58, 0.15);
  margin-bottom: 12px;
}

.sp-card-speaker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(var(--gold-primary-rgb), 0.1);
}

.sp-card-speaker-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-card-spotify {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 185, 84, 0.1);
  color: #1DB954;
  border: 1px solid rgba(29, 185, 84, 0.2);
  border-radius: 50%;
  transition: var(--transition);
}

.sp-card-spotify:hover {
  background: #1DB954;
  color: #fff;
  transform: scale(1.1);
}

.shiur-speaker-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-main);
  object-fit: cover;
  background: var(--blue-dark);
}

.shiur-speaker-name {
  font-family: 'Assistant', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
}

.shiur-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--white-dim);
}

.shiur-yt-link {
  color: var(--gold-main);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  transition: var(--transition);
}

.shiur-yt-link:hover {
  color: var(--gold-light);
}

/* ============================================
   TESTIMONIOS
   ============================================ */

.shiurim-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.btn-youtube,
.btn-spotify,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 15px 36px;
  border-radius: 100px;
  transition: var(--transition);
  text-transform: uppercase;
  min-width: 280px;
  text-decoration: none;
}

.btn-youtube {
  background: #ff0000;
}

.btn-youtube:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.4);
  color: white;
}

.btn-spotify {
  background: #1DB954;
}

.btn-spotify:hover {
  background: #1ed760;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(29, 185, 84, 0.4);
  color: white;
}

.btn-whatsapp {
  background: #25D366;
}

.btn-whatsapp:hover {
  background: #20c359;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  color: white;
}

/* ============================================
   DONAR
   ============================================ */
.section-donar {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--blue-dark);
}

.donar-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201, 151, 58, 0.08) 0%, transparent 70%),
    linear-gradient(160deg, var(--blue-dark), var(--blue-deep));
  z-index: 0;
}

.donar-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.donar-sub {
  font-size: 1.05rem;
  color: var(--white-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.donar-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 32px 0;
}

.donar-amount {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donar-amount small {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--white-dim);
  margin-top: 2px;
  font-family: 'Lora', serif;
}

.donar-amount:hover {
  background: rgba(201, 151, 58, 0.15);
  border-color: var(--gold-main);
}

.donar-amount.active {
  background: var(--gold-gradient);
  color: var(--blue-deep);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.donar-amount.active small {
  color: rgba(10, 15, 30, 0.7);
}

.donar-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto 20px;
}

.donar-input {
  background: var(--white-dim);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 20px;
  color: var(--text-light);
  font-family: 'Lora', serif;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.donar-input::placeholder {
  color: var(--white-dim);
}

.donar-input:focus {
  border-color: var(--gold-main);
  background: rgba(201, 151, 58, 0.05);
  box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.1);
}

.btn-donar-cta {
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
}

.donar-note {
  font-size: 0.8rem;
  color: var(--white-dim);
  margin-top: 12px;
  letter-spacing: 0.03em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--blue-deep);
  border-top: 1px solid rgba(201, 151, 58, 0.2);
  padding: 70px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.footer-logo-heb {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo-esp {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-main);
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--white-dim);
  margin-bottom: 20px;
  font-style: italic;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 151, 58, 0.25);
  border-radius: 50%;
  color: var(--gold-main);
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(201, 151, 58, 0.12);
  border-color: var(--gold-main);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links ul li a {
  font-size: 0.88rem;
  color: var(--white-dim);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-contact p {
  font-size: 0.88rem;
  color: var(--white-dim);
  margin-bottom: 8px;
}

.footer-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 151, 58, 0.25), transparent);
  margin-bottom: 24px;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--white-dim);
  line-height: 1.6;
}

.footer-quote {
  color: var(--gold-dark);
  font-style: italic;
  margin-top: 6px;
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.floating-socials-container {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.floating-btn:hover {
  transform: scale(1.1);
  color: white;
}

.floating-wa {
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.floating-wa:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.floating-yt {
  background: #ff0000;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.floating-yt:hover {
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5);
}

.floating-sp {
  background: #1DB954;
  box-shadow: 0 4px 20px rgba(29, 185, 84, 0.4);
}

.floating-sp:hover {
  box-shadow: 0 8px 30px rgba(29, 185, 84, 0.5);
}

.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  color: var(--blue-deep);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS / REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(10px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform, filter;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

.reveal-delay-5 {
  transition-delay: 0.40s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .kolel-inner {
    gap: 40px;
  }
}

@media (max-width: 768px) {

  #main-nav,
  .btn-donate {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-inner {
    padding: 12px 20px;
  }

  .hero-content {
    padding: 100px 20px 70px;
  }

  .kolel-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .kolel-img {
    height: 300px;
  }

  .segulot-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .shiurim-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .donar-amounts {
    gap: 8px;
  }

  .donar-amount {
    padding: 10px 18px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .logo-esp {
    display: none;
  }

  .shiurim-filter {
    gap: 6px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

/* ============================================
   TESTIMONIOS — Miracle Stories Carousel
   ============================================ */

.section-testimonios {
  position: relative;
  padding: 60px 0;
  background: linear-gradient(180deg, var(--blue-dark) 0%, rgba(8, 12, 30, 0.99) 100%);
  overflow: hidden;
}

.testimonios-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(201, 151, 58, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.testimonios-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  position: relative;
}

.testimonios-track-outer {
  flex: 1;
  overflow: hidden;
}

.testimonios-track {
  display: flex;
  gap: 16px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ─── Card ─── */
/* Width is set by JS via inline style (card.style.width). */
/* Fallback % ensures the carousel still works with CSS alone. */
.testi-card {
  flex-shrink: 0;
  width: calc(33.333% - 16px);
  /* Overridden by JS */
  padding: 0;
  box-sizing: border-box;
  display: flex;
  /* Ensure inner card takes full height */
}

.testi-card-inner {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  /* Take full width of parent */
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testi-card-inner:hover {
  border-color: rgba(201, 151, 58, 0.45);
  box-shadow: var(--card-shadow);
  transform: translateY(-4px);
}

.testi-stars {
  color: var(--gold-main);
  font-size: 1.1rem;
  letter-spacing: 3px;
}

.testi-quote {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--card-text);
  font-style: italic;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  /* Push to bottom of card */
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testi-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201, 151, 58, 0.5);
  flex-shrink: 0;
}

.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testi-name {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.testi-location {
  font-size: 0.78rem;
  color: var(--white-muted);
}

.testi-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(201, 151, 58, 0.12);
  border: 1px solid rgba(201, 151, 58, 0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  width: fit-content;
}

/* Nav Arrows */
.testi-nav {
  background: rgba(22, 33, 62, 0.85);
  border: 1px solid rgba(201, 151, 58, 0.35);
  color: var(--gold-light);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testi-nav:hover {
  background: rgba(201, 151, 58, 0.2);
  border-color: var(--gold-main);
  transform: scale(1.1);
}

/* Dots */
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201, 151, 58, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.testi-dot.active {
  background: var(--gold-main);
  transform: scale(1.3);
}

.testi-cta-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ============================================
   CONTACTO — Contact + Appointment Section
   ============================================ */

.section-contacto {
  position: relative;
  padding: 60px 0;
  background: linear-gradient(160deg, rgba(5, 8, 20, 1) 0%, rgba(12, 18, 40, 0.99) 100%);
  overflow: hidden;
}

.contacto-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201, 151, 58, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ─── Info Column ─── */
.contacto-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 12px 0 8px;
}

.contacto-subtitle {
  color: var(--white-muted);
  font-size: 1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.contacto-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  transition: var(--transition);
}

.contacto-item:hover {
  border-color: rgba(201, 151, 58, 0.4);
  background: rgba(22, 33, 62, 0.85);
  transform: translateX(4px);
}

.contacto-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 151, 58, 0.12);
  border-radius: 10px;
  flex-shrink: 0;
}

.contacto-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contacto-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-main);
}

.contacto-value {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contacto-value:hover {
  color: var(--gold-light);
}

/* Map */
.contacto-map-preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 58, 0.25);
  height: 200px;
}

.contacto-map-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.4) invert(0.05);
}

/* ─── Form Column ─── */
.contacto-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px 36px;
  backdrop-filter: blur(16px);
}

.contacto-form-header {
  margin-bottom: 28px;
  text-align: center;
}

.form-tag-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.contacto-form-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.contacto-form-sub {
  font-size: 0.88rem;
  color: var(--card-text);
  line-height: 1.6;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contacto-form-wrap {
    padding: 28px 20px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(5, 10, 25, 0.6);
  border: 1px solid rgba(201, 151, 58, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-light);
  font-size: 0.92rem;
  font-family: 'Lora', serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(201, 151, 58, 0.6);
  box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.1);
}

.form-group select option {
  background: #0d1530;
  color: #fff;
}

.btn-form-submit {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  margin-top: 4px;
}

.form-privacy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--white-muted);
  margin-top: 4px;
}

/* Light mode overrides */
body.light-mode .section-contacto,
body.light-mode .section-testimonios {
  background: linear-gradient(180deg, #f0ebe0 0%, #e8e0d0 100%);
}

body.light-mode .testi-card-inner {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(150, 100, 30, 0.3);
}

body.light-mode .testi-quote,
body.light-mode .testi-location {
  color: #3a2f20;
}

body.light-mode .testi-name {
  color: #1a1207;
}

body.light-mode .contacto-item {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(150, 100, 30, 0.25);
}

body.light-mode .contacto-value {
  color: #1a1207;
}

body.light-mode .contacto-form-wrap {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(150, 100, 30, 0.3);
}

body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(150, 100, 30, 0.3);
  color: #1a1207;
}

body.light-mode .form-group input::placeholder,
body.light-mode .form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

body.light-mode .contacto-form-title {
  color: #1a1207;
}

body.light-mode .testi-nav {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(150, 100, 30, 0.4);
}

/* ============================================
   RTL SUPPORT (Hebrew)
   ============================================ */
[dir="rtl"] {
  font-family: 'Frank Ruhl Libre', serif;
  /* Default elegant classic Hebrew font for the entire body */
}

/* 
   USE 'Frank Ruhl Libre' FOR ALL ELEMENTS THAT USE 'Cinzel' OR 'Cinzel Decorative' IN ENGLISH
*/
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .contacto-title,
[dir="rtl"] .contacto-form-title,
[dir="rtl"] .gallery-marquee-title,
[dir="rtl"] .segula-name,
[dir="rtl"] .stat-number,
[dir="rtl"] .kolel-img-badge,
[dir="rtl"] .product-price,
[dir="rtl"] .custom-nav a,
[dir="rtl"] .mobile-link,
[dir="rtl"] .btn-primary-gold,
[dir="rtl"] .btn-secondary-gold,
[dir="rtl"] .btn-buy-now,
[dir="rtl"] .btn-add-cart,
[dir="rtl"] .section-tag,
[dir="rtl"] .hero-badge,
[dir="rtl"] .segula-link,
[dir="rtl"] .kolel-feature h4,
[dir="rtl"] .product-name,
[dir="rtl"] .filter-btn,
[dir="rtl"] .shiur-title,
[dir="rtl"] .shiur-yt-link,
[dir="rtl"] .btn-youtube,
[dir="rtl"] .testi-name,
[dir="rtl"] .footer-logo-esp,
[dir="rtl"] .footer-links h4,
[dir="rtl"] .footer-contact h4,
[dir="rtl"] .contacto-label,
[dir="rtl"] .form-group label,
[dir="rtl"] .stat-label,
[dir="rtl"] .product-category,
[dir="rtl"] .shiur-category,
[dir="rtl"] .gallery-card-label,
[dir="rtl"] .testi-tag,
[dir="rtl"] .product-badge-new {
  font-family: 'Frank Ruhl Libre', serif !important;
  letter-spacing: 0.03em;
  font-weight: 800;
  /* Extra weight to match Cinzel's uppercase presence */
}

/* ENHANCE SIZES TO PREVENT HEBREW SHRINKAGE */
[dir="rtl"] .hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
}

[dir="rtl"] .section-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem) !important;
}

[dir="rtl"] .gallery-marquee-title {
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
}

[dir="rtl"] .contacto-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
}

[dir="rtl"] .contacto-form-title {
  font-size: 1.6rem !important;
}

[dir="rtl"] .custom-nav a {
  font-size: 1.15rem !important;
}

[dir="rtl"] .mobile-link {
  font-size: 1.6rem !important;
}

[dir="rtl"] .segula-name {
  font-size: 1.6rem !important;
}

[dir="rtl"] .btn-primary-gold,
[dir="rtl"] .btn-secondary-gold,
[dir="rtl"] .btn-buy-now,
[dir="rtl"] .btn-add-cart,
[dir="rtl"] .btn-youtube {
  font-size: 1.1rem !important;
}

[dir="rtl"] .filter-btn,
[dir="rtl"] .section-tag,
[dir="rtl"] .hero-badge,
[dir="rtl"] .gallery-card-label,
[dir="rtl"] .product-category,
[dir="rtl"] .shiur-category,
[dir="rtl"] .testi-tag,
[dir="rtl"] .contacto-label,
[dir="rtl"] .form-group label {
  font-size: 0.95rem !important;
  /* Bump up small labels */
}

[dir="rtl"] .product-name,
[dir="rtl"] .shiur-title,
[dir="rtl"] .kolel-feature h4,
[dir="rtl"] .testi-name,
[dir="rtl"] .footer-links h4,
[dir="rtl"] .footer-contact h4 {
  font-size: 1.2rem !important;
}

[dir="rtl"] .segula-link,
[dir="rtl"] .shiur-yt-link {
  font-size: 1.15rem !important;
  /* Larger for Hebrew visibility */
  font-weight: 700 !important;
}

/* Specify Assistant for paragraphs and subtitles */
[dir="rtl"] p,
[dir="rtl"] .segula-desc,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .gallery-marquee-subtitle {
  font-family: 'Assistant', 'Segoe UI', sans-serif;
  letter-spacing: 0.01em;
}

[dir="rtl"] .hero-heb {
  letter-spacing: 0;
}

[dir="rtl"] .ornament-star {
  display: inline-block;
  transform: scaleX(-1);
}

[dir="rtl"] .segula-link::after {
  content: ' ←';
  display: inline-block;
  margin-right: 5px;
  transition: transform 0.3s ease;
}

[dir="rtl"] .segula-link:hover::after {
  transform: translateX(-5px);
}


[dir="rtl"] .btn-primary-gold i,
[dir="rtl"] .btn-secondary-gold i {
  margin-left: 8px;
  margin-right: 0;
}

/* ============================================
   ANUNCIOS / EVENTOS SECTION
   ============================================ */

.section-anuncios {
  position: relative;
  padding: 10px 0;
  margin: 0;
  background: transparent;
  overflow: visible;
  /* Allow shadow overflow */
  z-index: 10;
  border-top: 1px solid rgba(201, 151, 58, 0.5);
  border-bottom: 1px solid rgba(201, 151, 58, 0.5);
  box-shadow: inset 0 10px 20px -10px rgba(201, 151, 58, 0.15),
    inset 0 -10px 20px -10px rgba(201, 151, 58, 0.15);
}


.anuncios-slider {
  width: 100%;
  aspect-ratio: 5 / 1;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  background: transparent;
}

.anuncios-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anuncios-slide.active {
  opacity: 1;
  visibility: visible;
}

.anuncios-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s linear;
}

.anuncios-slide.active img {
  transform: scale(1.1);
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--gold-main);
  border-color: var(--gold-main);
  width: 32px;
  border-radius: 10px;
  box-shadow: 0 0 10px var(--gold-main);
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(10, 15, 30, 0.5);
  border: 1px solid rgba(201, 151, 58, 0.3);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.slider-arrow:hover {
  background: var(--gold-main);
  color: var(--blue-deep);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(201, 151, 58, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

@media (max-width: 768px) {
  .slider-arrow {
    display: none;
    /* Hide arrows on mobile for cleaner look */
  }
}

.anuncio-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 2px;
  width: fit-content;
}

.anuncio-card--blue .anuncio-badge {
  background: rgba(74, 144, 217, 0.15);
  color: #7ec8f5;
  border: 1px solid rgba(74, 144, 217, 0.3);
}

.anuncio-card--gold .anuncio-badge {
  background: rgba(201, 151, 58, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(201, 151, 58, 0.35);
}

.anuncio-card--green .anuncio-badge {
  background: rgba(76, 175, 112, 0.15);
  color: #7dd9a0;
  border: 1px solid rgba(76, 175, 112, 0.3);
}

.anuncio-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin: 0;
}

body.light-mode .anuncio-title {
  color: #1a1208;
}

.anuncio-desc {
  font-size: 0.93rem;
  color: var(--white-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

body.light-mode .anuncio-desc {
  color: var(--card-text);
}

/* ── Meta info (date / location) ── */
.anuncio-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 151, 58, 0.15);
}

.anuncio-meta-item {
  font-size: 0.84rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
}

/* ── Empty state ── */
.anuncios-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--white-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.anuncios-empty span {
  font-size: 3rem;
  opacity: 0.4;
}

.anuncios-empty p {
  font-size: 1rem;
  font-family: 'Lora', serif;
  opacity: 0.6;
}

/* Light mode card */
body.light-mode .anuncio-card {
  border-color: rgba(176, 141, 72, 0.25);
}

body.light-mode .anuncio-icon-wrap {
  background: rgba(0, 0, 0, 0.02);
}

body.light-mode .anuncio-meta-item {
  color: var(--gold-dark);
}

/* RTL */
[dir="rtl"] .anuncio-card::before {
  left: unset;
  right: 0;
  border-radius: 0 4px 4px 0;
}

@media (max-width: 768px) {
  .anuncios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-anuncios {
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .anuncio-body {
    padding: 18px 18px 20px;
  }
}

/* ── SHIUR SPEAKER STYLES ── */
.shiur-speaker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 151, 58, 0.12);
}

.shiur-speaker-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold-main);
  object-fit: cover;
  background: var(--blue-dark);
}

.shiur-speaker-name {
  font-family: 'Assistant', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

/* [dir="rtl"] .shiur-speaker - Default row is already right-to-left in RTL */

/* Light mode speaker adjustment */
body.light-mode .shiur-speaker-name {
  color: #1a1207;
}

body.light-mode .shiur-speaker {
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* ============================================
   ROSH KOLEL SECTION
   ============================================ */
.rosh-kolel-inner {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid rgba(201, 151, 58, 0.2);
}

#rosh-kolel-container .rosh-kolel-inner {
  flex-direction: row-reverse;
}

.rosh-image-wrap {
  flex: 0 0 400px;
  position: relative;
  border-radius: 20px;
}

.rosh-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--gold-main);
  object-fit: cover;
  display: block;
}

.rosh-img-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--gold-gradient);
  color: var(--blue-deep);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.rosh-content {
  flex: 1;
}

.rosh-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 5px;
}

.rosh-title-text {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--white-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 25px;
}

.rosh-info {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--white-muted);
  margin-bottom: 30px;
  font-style: italic;
}

/* Response for Rosh Kolel */
@media (max-width: 991px) {

  .rosh-kolel-inner,
  #rosh-kolel-container .rosh-kolel-inner {
    flex-direction: column !important;
    gap: 40px;
    text-align: center;
  }

  .rosh-image-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
  }
}

/* Light Mode for Rosh Kolel */
body.light-mode .rosh-name {
  color: var(--gold-dark);
}

body.light-mode .rosh-title-text,
body.light-mode .rosh-info {
  color: var(--card-text);
}

body.light-mode .rosh-kolel-inner {
  border-top-color: rgba(176, 141, 72, 0.3);
}

/* ===================================================
   shiurim.css — Or Hajaim Foundation — Shiurim Page
   Torah Anytime-style layout + premium modal
   =================================================== */

/* ── PAGE HERO ──────────────────────────── */
.sp-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 60px;
  overflow: hidden;
  background: var(--blue-deep);
  text-align: center;
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 151, 58, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(201, 151, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.sp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.4) 0%, rgba(10, 15, 30, 0.7) 100%);
  pointer-events: none;
}

.sp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.sp-hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin: 12px 0 16px;
  line-height: 1.15;
}

.sp-hero-sub {
  font-size: 1.05rem;
  color: var(--white-muted);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

/* ── TOOLBAR ────────────────────────────── */
.sp-toolbar {
  position: sticky;
  top: 88px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 40px;
  background: rgba(10, 15, 30, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 151, 58, 0.2);
  flex-wrap: wrap;
}

body.light-mode .sp-toolbar {
  background: rgba(255, 252, 245, 0.96);
  border-bottom-color: rgba(176, 141, 72, 0.3);
}

.sp-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 151, 58, 0.25);
  border-radius: 100px;
  padding: 9px 18px;
  flex: 0 1 280px;
  color: rgba(201, 151, 58, 0.7);
  transition: var(--transition);
}

body.light-mode .sp-search-wrap {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(176, 141, 72, 0.4);
  color: var(--gold-main);
}

.sp-search-wrap:focus-within {
  border-color: var(--gold-main);
  box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.15);
}

#sp-search {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-light);
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  width: 100%;
  caret-color: var(--gold-main);
}

body.light-mode #sp-search {
  color: var(--text-light);
}

#sp-search::placeholder {
  color: var(--white-dim);
}

.sp-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sp-cat-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(201, 151, 58, 0.3);
  background: transparent;
  color: rgba(245, 210, 112, 0.6);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.sp-cat-btn:hover {
  border-color: var(--gold-main);
  color: var(--gold-light);
  background: rgba(201, 151, 58, 0.08);
}

.sp-cat-btn.active {
  background: var(--gold-gradient);
  color: var(--blue-deep);
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(201, 151, 58, 0.35);
  font-weight: 700;
}

/* ── MAIN CONTENT AREA ──────────────────── */
.sp-main {
  padding: 40px 0 60px;
  min-height: 60vh;
  background: var(--blue-deep);
}

body.light-mode .sp-main {
  background: var(--blue-deep);
  /* inherits light-mode override */
}

/* ── CATEGORY SECTION ───────────────────── */
.sp-cat-section {
  margin-bottom: 52px;
}

.sp-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px 18px;
}

.sp-cat-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.sp-cat-nav {
  display: flex;
  gap: 8px;
}

.sp-row-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 151, 58, 0.1);
  border: 1px solid rgba(201, 151, 58, 0.35);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.sp-row-arrow:hover {
  background: rgba(201, 151, 58, 0.2);
  border-color: var(--gold-main);
  transform: scale(1.08);
}

/* ── HORIZONTAL CAROUSEL ROW ─────────────── */
.sp-row-wrap {
  position: relative;
  overflow: hidden;
  padding: 8px 40px 16px;
}

.sp-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  cursor: grab;
}

.sp-row:active {
  cursor: grabbing;
}

.sp-row::-webkit-scrollbar {
  display: none;
}

/* ── VIDEO CARD ─────────────────────────── */
.sp-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.sp-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(201, 151, 58, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 151, 58, 0.2);
}

.sp-card:focus {
  outline: 2px solid var(--gold-main);
  outline-offset: 2px;
}

.sp-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(10, 15, 30, 0.8);
}

.sp-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-card:hover .sp-card-thumb img {
  transform: scale(1.07);
}

.sp-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
}

.sp-card:hover .sp-card-overlay {
  background: rgba(10, 15, 30, 0.55);
}

.sp-card-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(201, 151, 58, 0.5);
  color: var(--blue-deep);
}

.sp-card:hover .sp-card-play {
  opacity: 1;
  transform: scale(1);
}

.sp-card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.sp-card-info {
  padding: 14px 16px 16px;
}

.sp-card-cat {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 6px;
}

.sp-card-title {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-card-speaker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 151, 58, 0.15);
}

.sp-speaker-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-main);
  object-fit: cover;
  background: var(--blue-dark);
}

.sp-speaker-name {
  font-family: 'Assistant', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

/* ── SEARCH RESULTS GRID ────────────────── */
.sp-search-grid {
  padding: 0 40px;
}

.sp-search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.sp-search-results-grid .sp-card {
  flex: none;
  width: 100%;
}

/* ── NO RESULTS ─────────────────────────── */
.sp-no-results {
  text-align: center;
  color: var(--white-muted);
  font-size: 1.05rem;
  padding: 60px 24px;
  font-family: 'Lora', serif;
}

/* ── YOUTUBE CTA BANNER ──────────────────── */
.sp-yt-banner {
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.95) 0%, rgba(10, 15, 30, 0.98) 100%);
  border-top: 1px solid rgba(201, 151, 58, 0.2);
  border-bottom: 1px solid rgba(201, 151, 58, 0.2);
}

body.light-mode .sp-yt-banner {
  background: linear-gradient(135deg, rgba(240, 235, 220, 0.95) 0%, rgba(250, 245, 235, 0.98) 100%);
}

.sp-yt-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.sp-banner-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

.sp-banner-icons .icon-yt,
.sp-banner-icons .icon-sp,
.sp-banner-icons .icon-wa {
  flex-shrink: 0;
}

.sp-banner-icons .icon-yt {
  color: #ff0000;
  filter: drop-shadow(0 0 16px rgba(255, 0, 0, 0.35));
}

.sp-banner-icons .icon-sp {
  color: #1DB954;
  filter: drop-shadow(0 0 16px rgba(29, 185, 84, 0.35));
}

.sp-banner-icons .icon-wa {
  color: #25D366;
  filter: drop-shadow(0 0 16px rgba(37, 211, 102, 0.35));
}

.sp-yt-text {
  flex: 1;
  min-width: 200px;
}

.sp-yt-text h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.4rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.sp-yt-text p {
  color: var(--white-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── YouTube Button ─────────────────────── */
.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: #ff0000;
  color: #fff;
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.35);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-youtube:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5);
}

.sp-cta-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 768px) {

  .btn-youtube,
  .btn-spotify {
    width: 100%;
    min-width: unset;
  }
}

/* ── VIDEO MODAL BACKDROP ────────────────── */
body.modal-open {
  overflow: hidden;
}

.sp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5, 8, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sp-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ── VIDEO MODAL ─────────────────────────── */
.sp-modal {
  background: linear-gradient(160deg, #111827, #0a0f1e);
  border: 1px solid rgba(201, 151, 58, 0.3);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 40px rgba(201, 151, 58, 0.12);
  width: min(60vw, 960px);
  max-width: 96vw;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 151, 58, 0.3) transparent;
}
.sp-modal.is-doc {
  width: min(90vw, 1200px);
}
.sp-modal.is-doc .sp-modal-player {
  aspect-ratio: auto;
  min-height: 70vh;
}

body.light-mode .sp-modal {
  background: linear-gradient(160deg, #fffcf5, #f5f0e0);
  border-color: rgba(176, 141, 72, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), 0 0 40px rgba(176, 141, 72, 0.1);
}

body.light-mode .sp-modal-header {
  border-bottom-color: rgba(176, 141, 72, 0.2);
  background: rgba(255, 255, 255, 0.5);
}

body.light-mode .sp-modal-title {
  color: #3d2605;
}

body.light-mode .sp-modal-cat {
  color: #c9973a;
}

body.light-mode .sp-modal-desc {
  color: #5d4037;
  border-top-color: rgba(176, 141, 72, 0.2);
  background: rgba(255, 255, 255, 0.3);
}

.sp-modal-backdrop.active .sp-modal {
  transform: scale(1) translateY(0);
}

/* ── ZOOM & MAGNIFIER ───────────────────── */
.sp-modal-zoom-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.sp-modal-zoom-container img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.sp-modal-magnifier {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 3px solid #c9973a;
  border-radius: 50%;
  pointer-events: none;
  display: none;
  z-index: 100;
  box-shadow: 0 0 20px rgba(0,0,0,0.5), inset 0 0 15px rgba(0,0,0,0.2);
  background-repeat: no-repeat;
  background-color: #000;
}

.sp-modal-header {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(201, 151, 58, 0.15);
  gap: 16px;
}

.sp-modal-meta {
  flex: 1;
}

.sp-modal-cat {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 6px;
}

.sp-modal-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}
.sp-modal-date {
  display: block;
  font-family: 'Assistant', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 5px;
  letter-spacing: 0.02em;
}
body.light-mode .sp-modal-date {
  color: rgba(61, 38, 5, 0.6);
}

.sp-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 4px;
}

.sp-modal-yt-link,
.sp-modal-fullscreen,
.sp-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 151, 58, 0.2);
  color: var(--gold-light);
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.95rem;
}

.sp-modal-yt-link {
  color: #ff4444;
}
.sp-modal-wa-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
  transition: var(--transition);
  cursor: pointer;
}
.sp-modal-wa-link:hover {
  background: #25D366;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.sp-modal-yt-link:hover {
  background: rgba(255, 68, 68, 0.15);
  border-color: #ff4444;
}

.sp-modal-fullscreen:hover,
.sp-modal-close:hover {
  background: rgba(201, 151, 58, 0.15);
  border-color: var(--gold-main);
  color: var(--white);
}

/* ── IFRAME PLAYER ──────────────────────── */
/* ── IFRAME PLAYER ──────────────────────── */
.sp-modal-player-container {
  width: 100%;
  background: #000;
}

.sp-modal-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.sp-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.sp-modal-player iframe,
.sp-modal-player-wrapper iframe,
.sp-modal-player-wrapper video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
  display: block;
}

.sp-modal-lang-selector {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}

.sp-modal-versions {
  display: flex;
  gap: 10px;
}

.v-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.v-btn:hover {
  background: rgba(201, 151, 58, 0.2);
  border-color: var(--gold-main);
  color: #fff;
}

.v-btn.active {
  background: var(--gold-main);
  color: #000;
  border-color: var(--gold-main);
  font-weight: bold;
}

/* ── MODAL DESCRIPTION ───────────────────── */
.sp-modal-desc {
  padding: 16px 24px 20px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--white-muted);
  line-height: 1.7;
  border-top: 1px solid rgba(201, 151, 58, 0.12);
}

/* ── Shiurim CTA (index.html enhancement) ── */
.shiurim-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* ── WhatsApp Banner Variation ────────────── */
.sp-wa-banner {
  background: linear-gradient(135deg, rgba(14, 30, 20, 0.95) 0%, rgba(5, 15, 10, 0.98) 100%);
  border-top-color: rgba(37, 211, 102, 0.2);
  border-bottom-color: rgba(37, 211, 102, 0.2);
}

body.light-mode .sp-wa-banner {
  background: linear-gradient(135deg, rgba(230, 250, 235, 0.95) 0%, rgba(240, 255, 245, 0.98) 100%);
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .sp-modal {
    width: min(90vw, 700px);
  }

  .sp-cat-header {
    padding: 0 20px 16px;
  }

  .sp-row-wrap {
    padding: 8px 20px 16px;
  }

  .sp-search-grid {
    padding: 0 20px;
  }

  .sp-toolbar {
    padding: 12px 20px;
  }

  .sp-yt-banner {
    padding: 40px 20px;
  }
}

@media (max-width: 600px) {
  .sp-modal {
    width: 96vw;
    border-radius: 16px;
  }

  .sp-card {
    flex: 0 0 220px;
  }

  .sp-cat-title {
    font-size: 1rem;
  }

  .sp-toolbar {
    top: 78px;
    gap: 12px;
  }

  .sp-search-wrap {
    flex-basis: 100%;
  }

  .sp-yt-inner {
    flex-direction: column;
    text-align: center;
  }

  .sp-hero {
    padding-top: 120px;
  }

  .sp-modal-header {
    flex-direction: column;
  }

  .sp-modal-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* [dir="rtl"] .sp-card-speaker - Default row is already right-to-left in RTL */

/* ── RTL OVERRIDES ───────────────────────── */
[dir="rtl"] .sp-card-duration {
  right: auto;
  left: 8px;
}

[dir="rtl"] .sp-cat-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .sp-toolbar {
  flex-direction: row-reverse;
}

[dir="rtl"] .sp-modal-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .sp-yt-inner {
  flex-direction: row-reverse;
}


/* � � � � � �  Rabanim Section � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �  */
.section-rabanim {
  padding: 60px 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.rabanim-bg-ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(201, 151, 58, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Carousel Styles */
.rabanim-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 50px;
}

.rabanim-track-outer {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.rabanim-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.rabanim-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rabanim-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.rab-img-wrap {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 5px;
  background: var(--gold-grad);
  margin-bottom: 25px;
  position: relative;
}

.rab-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card-bg);
}

.rab-name {
  font-family: var(--font-cinzel);
  color: var(--gold-primary);
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.rab-title {
  font-family: var(--font-assistant);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.rab-blessing {
  font-family: var(--font-lora);
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
  position: relative;
  padding: 0 10px;
}

.rab-blessing::before,
.rab-blessing::after {
  content: '"';
  font-family: var(--font-cinzel);
  font-size: 2rem;
  color: var(--gold-dim);
  line-height: 0;
  vertical-align: middle;
}

.rabanim-nav {
  background: var(--gold-dim);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: all 0.3s ease;
}

.rabanim-nav:hover {
  background: var(--gold-primary);
  color: var(--bg-dark);
}

.rabanim-prev {
  left: -60px;
}

.rabanim-next {
  right: -60px;
}

.rabanim-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.rabanim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rabanim-dot.active {
  background: var(--gold-primary);
  width: 25px;
  border-radius: 10px;
}

/* Light Mode Overrides */
body.light-mode .section-rabanim {
  background: var(--bg-light-cream);
}

body.light-mode .rabanim-card {
  background: var(--white-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .rab-blessing {
  color: var(--text-dark);
}


@media (max-width: 1100px) {
  .rabanim-prev {
    left: -10px;
  }

  .rabanim-next {
    right: -10px;
  }
}

@media (max-width: 900px) {
  .rabanim-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 600px) {
  .rabanim-card {
    flex: 0 0 100%;
  }

  .section-rabanim {
    padding: 60px 0;
  }
}

/* � � � � � �  Evento Central � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �  */
.section-evento {
  padding: 60px 0 70px;
  margin-top: 60px;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 151, 58, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(201, 151, 58, 0.10) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 151, 58, 0.10) 0%, transparent 45%),
    linear-gradient(180deg, #0d1525 0%, #0a0f1e 50%, #0d1525 100%);
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(201, 151, 58, 0.25);
  border-bottom: 1px solid rgba(201, 151, 58, 0.25);
}

.section-evento::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(201, 151, 58, 0.7) 30%, #c9973a 50%, rgba(201, 151, 58, 0.7) 70%, transparent);
  pointer-events: none;
}

.section-evento::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(201, 151, 58, 0.7) 30%, #c9973a 50%, rgba(201, 151, 58, 0.7) 70%, transparent);
  pointer-events: none;
}

/* Content Layout (Condensed) */

/* Content Layout (Condensed) */
.evento-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 151, 58, 0.18) 0%, rgba(201, 151, 58, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.evento-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  opacity: 1;
  transition: all 1s ease 0.4s;
}

/* Video Wrapper */
.evento-video-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(201, 151, 58, 0.15),
    0 0 40px rgba(201, 151, 58, 0.12);
  border: 1px solid rgba(201, 151, 58, 0.45);
  background: #000;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.video-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
  filter: brightness(0.6);
}

.evento-video-wrap:hover .video-placeholder-img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.play-btn-main {
  width: 80px;
  height: 80px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a2333;
  box-shadow: 0 0 40px rgba(201, 151, 58, 0.4);
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.evento-video-wrap:hover .play-btn-main {
  transform: scale(1.1);
}

.evento-video-iframe-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: none;
  background: #000;
}

.evento-video-iframe-container.active {
  display: block;
}

.evento-video-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Info Card (Condensed) */
.evento-info-card {
  background: linear-gradient(145deg, rgba(201, 151, 58, 0.07) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(201, 151, 58, 0.04) 100%);
  backdrop-filter: blur(30px);
  padding: 36px 32px;
  border-radius: 28px;
  border: 1px solid rgba(201, 151, 58, 0.4);
  box-shadow:
    0 0 0 1px rgba(201, 151, 58, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(201, 151, 58, 0.08) inset;
  position: relative;
}

.evento-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 151, 58, 0.8), transparent);
  border-radius: 50%;
}

.evento-info-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e8c97a 0%, #c9973a 40%, #f0d98a 70%, #c9973a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 151, 58, 0.25);
  position: relative;
  letter-spacing: 0.04em;
  text-shadow: none;
}

.evento-info-header h3::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #c9973a, transparent);
  border-radius: 2px;
}

#evento-desc-text {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.evento-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.evento-detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(201, 151, 58, 0.10) 0%, rgba(201, 151, 58, 0.04) 100%);
  border-radius: 14px;
  border: 1px solid rgba(201, 151, 58, 0.2);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.evento-detail-item:hover {
  border-color: rgba(201, 151, 58, 0.5);
  box-shadow: 0 4px 20px rgba(201, 151, 58, 0.12);
}

.detail-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
  color: #1a2333;
}

.detail-content span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.evento-cta .btn-primary-gold {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  border-radius: 50px;
}

/* Light Mode Overrides */
body.light-mode .section-evento {
  background: radial-gradient(circle at center, #ffffff 0%, #f7f4f0 100%);
}

body.light-mode .evento-info-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(201, 151, 58, 0.2);
}

body.light-mode #evento-desc-text {
  color: #443322;
}

body.light-mode .detail-content span {
  color: #221100;
}

/* Responsive */
@media (max-width: 992px) {
  .evento-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-evento {
    padding: 40px 0;
  }

  .gate-seal-container {
    width: 100px;
    height: 100px;
  }
}

@media (max-height: 800px) {
  .section-evento {
    padding: 20px 0;
    min-height: auto;
  }

  .evento-info-card {
    padding: 20px;
  }

  .evento-info-header h3 {
    font-size: 1.5rem;
  }
}





/* ============ OR HAJAIM SECTION ============ */
.section-orhajaim {
  padding: 100px 0;
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

.orhajaim-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 151, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.orhajaim-tabs-container {
  max-width: 1000px;
  margin: 50px auto 0;
  position: relative;
  z-index: 2;
}

.orhajaim-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(201, 151, 58, 0.2);
  padding-bottom: 10px;
}

.tab-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-cinzel);
  font-size: 1.1rem;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn.active {
  color: var(--gold-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
}

.orhajaim-tabs-content {
  min-height: 400px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

/* History Timeline */
.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 20px;
}

.history-item {
  display: flex;
  gap: 30px;
  position: relative;
}

.history-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: -40px;
  width: 2px;
  background: rgba(201, 151, 58, 0.2);
}

.history-item:last-child::before {
  display: none;
}

.history-marker {
  width: 30px;
  height: 30px;
  background: var(--bg-dark);
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(201, 151, 58, 0.3);
  z-index: 2;
}

.history-info h3 {
  color: var(--gold-primary);
  font-family: var(--font-cinzel);
  margin-bottom: 10px;
}

.history-info p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Books Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.book-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 151, 58, 0.1);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(5px);
}

.book-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 151, 58, 0.3);
}

.book-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.book-card h3 {
  color: var(--gold-primary);
  font-family: var(--font-cinzel);
  margin-bottom: 10px;
}

.book-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Tzion Info */
.tzion-info-wrap {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.tzion-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

/* Light Mode Overrides */
.light-mode .section-orhajaim {
  background: var(--bg-light);
}

.light-mode .book-card {
  background: rgba(201, 151, 58, 0.05);
  border-color: rgba(201, 151, 58, 0.1);
}

.light-mode .book-card p {
  color: var(--text-dark);
}

.light-mode .history-info p {
  color: var(--text-dark);
}

.light-mode .tzion-text {
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .orhajaim-tabs-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .tab-btn {
    font-size: 0.9rem;
    padding: 8px 15px;
  }

  .sp-modal-magnifier {
    display: none !important;
  }
}

/* ============ OR HAJAIM GALLERY SLIDER ============ */
.section-orhajaim {
  padding: 100px 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.shine-border-wrapper {
  position: relative;
  --border-radius: 20px;
  --border-width: 2px;
  --duration: 14s;
  --color-1: #c9973a;
  --color-2: #efd391;
  --color-3: #63440e;
  --background-radial-gradient: radial-gradient(transparent, transparent, var(--color-1), var(--color-2), var(--color-3), transparent, transparent);
  --mask-linear-gradient: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  border-radius: var(--border-radius);
  padding: 40px;
  /* Padding for content inside the border */
  background: rgba(10, 15, 30, 0.4);
  backdrop-filter: blur(8px);
}

.shine-border-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  padding: var(--border-width);
  background-image: var(--background-radial-gradient);
  background-size: 300% 300%;
  mask: var(--mask-linear-gradient);
  -webkit-mask: var(--mask-linear-gradient);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  will-change: background-position;
  animation: orhajaim-shine var(--duration) linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes orhajaim-shine {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

body.light-mode .shine-border-wrapper {
  background: rgba(253, 250, 243, 0.7);
  --color-1: #c9973a;
  --color-2: #8a6220;
  --color-3: #584827;
}

.orhajaim-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 151, 58, 0.1) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.orhajaim-slider-outer {
  position: relative;
  z-index: 2;
  margin-top: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  padding: 20px 0;
}

.orhajaim-slider-container {
  display: flex;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 calc((100% - 60px) / 3);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 163, 89, 0.2);
  background: var(--blue-deep);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
}

.gallery-slide:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(212, 163, 89, 0.6);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(212, 163, 89, 0.15);
}

/* Decorative Corners */
.card-flourish {
  position: absolute;
  width: 60px;
  height: 60px;
  color: rgba(212, 163, 89, 0.5);
  z-index: 10;
  pointer-events: none;
  transition: all 0.5s ease;
}

.corner-tl {
  top: 15px;
  left: 15px;
}

.corner-tr {
  top: 15px;
  right: 15px;
}

.gallery-slide:hover .card-flourish {
  color: var(--gold-main);
  transform: scale(1.1);
}

.slide-image-wrap {
  width: 100%;
  height: 360px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.slide-text-section {
  padding: 24px 28px 28px;
  background: #0a0f1e;
  flex: 1;
}

.slide-text-section h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-main);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slide-text-section .title-divider-flourish {
  width: 140px;
  height: 20px;
  margin: 0 0 12px;
  color: rgba(212, 163, 89, 0.4);
  transition: all 0.5s ease;
}

.gallery-slide:hover .slide-text-section .title-divider-flourish {
  color: var(--gold-main);
  width: 160px;
}

.slide-text-section p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-slide:hover .slide-img {
  transform: scale(1.1);
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 36px;
  background: linear-gradient(to top,
      rgba(5, 8, 18, 0.98) 0%,
      rgba(5, 8, 18, 0.8) 40%,
      transparent 100%);
  color: #fff;
  z-index: 5;
}

.slide-content {
  position: relative;
  z-index: 2;
}

.slide-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-main);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Decorative Title Divider */
.title-divider-flourish {
  width: 140px;
  height: 20px;
  margin: 0 0 15px 0;
  color: rgba(212, 163, 89, 0.4);
  transition: all 0.5s ease;
}

.gallery-slide:hover .title-divider-flourish {
  color: var(--gold-main);
  width: 160px;
}

.slide-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 5px;
}

/* Internal Frame Decoration */
.card-frame-decoration {
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(212, 163, 89, 0.1);
  pointer-events: none;
  z-index: 4;
  transition: all 0.5s ease;
  border-radius: 12px;
}

.gallery-slide:hover .card-frame-decoration {
  inset: 10px;
  border-color: rgba(212, 163, 89, 0.3);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(201, 151, 58, 0.2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.slider-nav:hover:not(:disabled) {
  background: var(--gold-primary);
  color: #000;
  box-shadow: 0 0 20px rgba(201, 151, 58, 0.4);
}

.slider-nav:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.slider-nav.prev {
  left: 10px;
}

.slider-nav.next {
  right: 10px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(201, 151, 58, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot.active {
  width: 35px;
  border-radius: 10px;
  background: var(--gold-primary);
  box-shadow: 0 0 10px rgba(201, 151, 58, 0.5);
}

/* Light Mode Styles for Gallery - Premium Golden Glassmorphism */
body.light-mode .section-orhajaim {
  background: linear-gradient(135deg, #fdfbf7 0%, #f9f4e8 30%, #f2ebda 60%, #e8ddc0 100%);
  position: relative;
}

body.light-mode .orhajaim-bg-glow {
  background: radial-gradient(circle, rgba(201, 151, 58, 0.25) 0%, transparent 70%);
  opacity: 0.8;
}

body.light-mode .gallery-slide {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px) saturate(1.8);
  -webkit-backdrop-filter: blur(12px) saturate(1.8);
  border: 1px solid rgba(201, 151, 58, 0.35);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.05),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
}

body.light-mode .gallery-slide:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--gold-main);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.08),
    0 0 30px rgba(201, 151, 58, 0.15);
}

body.light-mode .slide-overlay {
  background: linear-gradient(to top,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.7) 40%,
      transparent 100%);
}

body.light-mode .slide-content h3 {
  color: var(--gold-dark);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

body.light-mode .slide-content p {
  color: #4a3f35;
  font-weight: 500;
}

body.light-mode .card-flourish {
  color: var(--gold-main);
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.8));
}

body.light-mode .title-divider-flourish {
  color: var(--gold-main);
}

body.light-mode .slide-text-section {
  background: #fdfaf3;
  border-top: 1px solid rgba(212, 163, 89, 0.2);
}

body.light-mode .slide-text-section h3 {
  color: #8a6220;
}

body.light-mode .slide-text-section p {
  color: #3d2605;
}

body.light-mode .slide-text-section .title-divider-flourish {
  color: #c9973a;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .gallery-slide {
    flex: 0 0 calc((100% - 30px) / 2);
  }
}

@media (max-width: 768px) {
  .gallery-slide {
    flex: 0 0 100%;
  }

  .slide-image-wrap {
    height: 400px;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
}


/* ============ ACTUALIZACIONES SEGULOT (MODAL/IMAGENES) ============ */
.segula-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.segula-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.segula-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.segula-card:hover .segula-img {
  transform: scale(1.05);
}

.segula-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  opacity: 0.8;
}

.segula-icon-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(26, 39, 68, 0.8);
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 2;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.segula-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* ============ KOLEL EXPLORER ============ */
.kolel-explorer-wrap {
  margin-top: 60px;
}

.kolel-explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.kolel-explorer-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 151, 58, 0.2);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.kolel-explorer-card:hover {
  transform: translateY(-5px);
  background: rgba(201, 151, 58, 0.08);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.explorer-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.kolel-explorer-card h4 {
  color: var(--gold-primary);
  font-family: var(--font-cinzel);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.kolel-explorer-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.explorer-link {
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.kolel-explorer-card:hover .explorer-link {
  border-bottom-color: var(--gold-primary);
}

/* ============ VOCES DEL KOLEL ============ */
.kolel-voices-wrap {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(201, 151, 58, 0.1);
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.voice-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.voice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(201, 151, 58, 0.4);
}

.voice-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.voice-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.voice-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.voice-card:hover .voice-overlay {
  opacity: 1;
}

.play-btn-mini {
  width: 50px;
  height: 50px;
  background: rgba(201, 151, 58, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 1.2rem;
  padding-left: 4px;
  box-shadow: 0 4px 15px rgba(201, 151, 58, 0.4);
}

.voice-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.voice-content::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: rgba(201, 151, 58, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

.voice-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.voice-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.author-name {
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.author-role {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-top: 3px;
}

.light-mode .segula-overlay {
  background: linear-gradient(to top, var(--bg-light), transparent);
}

.light-mode .kolel-explorer-card {
  background: var(--bg-card);
  border-color: rgba(201, 151, 58, 0.2);
}

.light-mode .kolel-explorer-card p {
  color: var(--text-dark);
}

.light-mode .voice-quote {
  color: var(--text-dark);
}

.light-mode .author-role {
  color: rgba(0, 0, 0, 0.5);
}

.light-mode .voice-content::before {
  color: rgba(201, 151, 58, 0.2);
}

/* ============================================
   SECTION: RABANIM (ESTEEMED GUIDANCE)
   ============================================ */
.section-rabanim {
  padding: 100px 0;
  background: var(--blue-deep);
  position: relative;
  overflow: hidden;
}

.rabanim-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 151, 58, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.rabanim-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 60px;
}

.rabanim-track-viewport {
  overflow: hidden;
  border-radius: 20px;
}

.rabanim-track {
  display: flex;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* --- Card Design: Rectangular & Golden --- */
.rabanim-card {
  flex: 0 0 calc(33.333% - 20px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.rabanim-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold-main);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 151, 58, 0.15);
}

.rabanim-img-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
  border: 2px solid var(--gold-main);
  padding: 6px;
  background: rgba(201, 151, 58, 0.05);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.rabanim-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  filter: sepia(0.2) contrast(1.1);
  transition: transform 0.6s ease;
}

.rabanim-card:hover .rabanim-img-frame img {
  transform: scale(1.05);
}

.rabanim-name {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.rabanim-title {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 16px;
}

.rabanim-quote {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--white-muted);
  font-style: italic;
  position: relative;
  padding: 0 10px;
}

.rabanim-quote::before,
.rabanim-quote::after {
  content: '"';
  font-family: serif;
  font-size: 2rem;
  color: rgba(201, 151, 58, 0.2);
  line-height: 1;
  position: absolute;
}

.rabanim-quote::before {
  top: -10px;
  left: -10px;
}

.rabanim-quote::after {
  bottom: -24px;
  right: -10px;
}

/* Arrows & Dots */
.rabanim-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(26, 39, 68, 0.8);
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.rabanim-nav:hover:not(:disabled) {
  background: var(--gold-main);
  color: var(--blue-deep);
  box-shadow: 0 0 15px rgba(201, 151, 58, 0.4);
}

.rabanim-nav:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.rabanim-nav.prev {
  left: 0;
}

.rabanim-nav.next {
  right: 0;
}

.rabanim-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.rabanim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(201, 151, 58, 0.2);
  border: 1px solid rgba(201, 151, 58, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.rabanim-dot.active {
  background: var(--gold-main);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(201, 151, 58, 0.5);
}

/* Light Mode Overrides */
body.light-mode .section-rabanim {
  background: #fdfbf7;
}

body.light-mode .rabanim-card {
  background: #fff;
  border-color: rgba(176, 141, 72, 0.2);
}

body.light-mode .rabanim-name {
  color: var(--gold-dark);
}

body.light-mode .rabanim-title {
  color: #8a6220;
}

body.light-mode .rabanim-quote {
  color: #4a3f35;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .rabanim-card {
    flex: 0 0 calc(50% - 15px);
  }

  .rabanim-carousel-container {
    padding: 0 50px;
  }
}

@media (max-width: 600px) {
  .rabanim-card {
    flex: 0 0 100%;
  }

  .rabanim-carousel-container {
    padding: 0 40px;
  }

  .rabanim-nav {
    width: 36px;
    height: 36px;
  }
}

/* ============================================================ 
   IMMERSIVE REVEAL ANIMATIONS (KOLEL & PORTAL)
   ============================================================ */

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes curtain-open-left {
  0% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@keyframes curtain-open-right {
  0% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@keyframes gold-luster-sweep {
  0% {
    transform: translateX(-100%) skewX(-15deg);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(200%) skewX(-15deg);
    opacity: 0;
  }
}

@keyframes divine-light-entry {
  0% {
    filter: brightness(0) blur(10px);
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    filter: brightness(1) blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gate-pattern-slide {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 100px 100px;
  }
}


/* --- Kolel Reveal & Immersive Layout (Simplified) --- */
.kolel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (max-width: 992px) {
  .kolel-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

/* Transition Gate Removed */

/* ============================================
   ANIMATED GRADIENT BORDER
   ============================================ */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes gb-rotate {
  to {
    --gradient-angle: 360deg;
  }
}

/* Shared gradient conic stops (gold palette) */
.gb-wrapper,
.gallery-slide.gb-slide {
  --gb-p: #584827;
  --gb-s: #c7a03c;
  --gb-a: #f9de90;
}

/* ── Wrapper approach (segulot + product cards) ─ */
.gb-wrapper {
  padding: 2px;
  border-radius: calc(var(--radius-lg) + 2px);
  display: flex;
  flex-direction: column;
  background: conic-gradient(from var(--gradient-angle),
      var(--gb-p) 0%,
      var(--gb-s) 30%,
      var(--gb-a) 50%,
      var(--gb-s) 70%,
      var(--gb-p) 100%);
}

/* ── Direct approach (gallery slides — solid bg) ─ */
.gallery-slide.gb-slide {
  border: 2px solid transparent;
  background-image:
    linear-gradient(#0a0f1e, #0a0f1e),
    conic-gradient(from var(--gradient-angle),
      var(--gb-p) 0%,
      var(--gb-s) 30%,
      var(--gb-a) 50%,
      var(--gb-s) 70%,
      var(--gb-p) 100%);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
}

/* Inner cards fill the wrapper */
.gb-wrapper>.segula-card,
.gb-wrapper>.product-card {
  flex: 1;
  border: none;
}

/* ── Animation modes ─ */
.gb-auto {
  animation: gb-rotate 5s linear infinite;
}

.gb-stop {
  animation: gb-rotate 5s linear infinite;
}

.gb-stop:hover {
  animation-play-state: paused;
}

.gb-slide {
  animation: gb-rotate 8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {

  .gb-auto,
  .gb-stop,
  .gb-slide {
    animation: none;
  }

  .gb-wrapper {
    background: rgba(199, 160, 60, 0.4);
  }

  .gallery-slide.gb-slide {
    border-color: #c7a03c;
  }
}

/* ── Light Mode Fixes ────────────────────────────────── */
/* Light Mode Cleanup */

/* ============================================
   INFO MODAL & READ MORE BUTTON
   ============================================ */

.read-more-wrap {
  display: flex;
  justify-content: center;
}

.btn-read-more {
  background: transparent;
  color: var(--gold-main);
  border: 1px solid var(--gold-main);
  padding: 8px 32px;
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}

.btn-read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: 0.6s;
}

.btn-read-more:hover::before {
  left: 100%;
}

.btn-read-more:hover {
  background: rgba(201, 151, 58, 0.1);
  box-shadow: 0 0 20px rgba(201, 151, 58, 0.35);
  transform: translateY(-3px);
  color: var(--white);
  border-color: var(--gold-light);
}

.info-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 19, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.info-modal {
  background: linear-gradient(145deg, #111827, #060912);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 30px;
  border: 1px solid rgba(201, 151, 58, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(201, 151, 58, 0.15);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: scale(0.85) translateY(40px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-modal-backdrop.active .info-modal {
  transform: scale(1) translateY(0);
}

.info-modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold-main);
  border: 1px solid rgba(201, 151, 58, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
  cursor: pointer;
}

.info-modal-close:hover {
  background: var(--gold-main);
  color: var(--blue-deep);
  transform: rotate(90deg);
  box-shadow: 0 0 15px var(--gold-main);
}

.info-modal-body {
  padding: 60px;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-main) transparent;
}

.info-modal-body::-webkit-scrollbar {
  width: 6px;
}

.info-modal-body::-webkit-scrollbar-thumb {
  background: var(--gold-main);
  border-radius: 10px;
}

.modal-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.modal-title-main {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 15px;
}

.modal-subtitle-main {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 50px;
  margin-bottom: 50px;
}

@media (max-width: 900px) {
  .modal-content-grid {
    grid-template-columns: 1fr;
  }

  .info-modal-body {
    padding: 40px 25px;
  }
}

.modal-image-container {
  position: relative;
}

.modal-image-main {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(201, 151, 58, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease;
}

.modal-image-frame {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(201, 151, 58, 0.15);
  border-radius: 25px;
  pointer-events: none;
}

.modal-text-content h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold-main);
  margin: 30px 0 15px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-text-content h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 151, 58, 0.4), transparent);
}

.modal-text-content p {
  color: var(--white-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
}

.modal-info-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.modal-gallery-item {
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 58, 0.2);
  aspect-ratio: 3/2;
  position: relative;
}

.modal-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-gallery-item:hover img {
  transform: scale(1.15);
  filter: brightness(1.1);
}

.modal-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: 0.4s;
}

.modal-gallery-item:hover::after {
  opacity: 1;
}

body.light-mode .info-modal {
  background: #fdfaf0;
  border-color: rgba(138, 109, 59, 0.4);
}

body.light-mode .info-modal-backdrop {
  background: rgba(253, 248, 230, 0.9);
}

body.light-mode .modal-text-content p {
  color: #4a3b2b;
}

body.light-mode .info-modal-close {
  background: rgba(0, 0, 0, 0.04);
}


/* CARD READ MORE BUTTON */
.btn-read-more-card {
  margin-top: 15px;
  background: transparent;
  color: var(--gold-main);
  border: 1px solid rgba(201, 151, 58, 0.4);
  padding: 6px 20px;
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-read-more-card:hover {
  background: var(--gold-main);
  color: var(--blue-deep);
  box-shadow: 0 0 15px rgba(201, 151, 58, 0.4);
  transform: translateY(-2px);
}
/* ============================================
   SHORTS (VERTICAL VIDEOS) STYLES
   ============================================ */
.shiur-shorts-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
}

.shiur-card-vertical {
  flex: 0 0 200px !important;
}

.shiur-card-vertical .shiur-thumb-wrap,
.sp-card-vertical .sp-card-thumb {
  aspect-ratio: 9 / 16 !important;
}

.shiur-card-vertical .shiur-thumb-img,
.sp-card-vertical .sp-card-thumb img {
  object-fit: cover !important;
}

@media (max-width: 600px) {
  .shiur-shorts-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .shiur-card-vertical {
    flex: 0 0 calc(50% - 6px) !important;
  }
}

/* ================================================================
   HEBREW TYPOGRAPHY ADJUSTMENTS
   Ensures Hebrew text matches visual weight of Spanish/English
   ================================================================ */
html[lang="he"] {
  font-size: 112%; /* Scale up everything (rem based) */
}

html[lang="he"] body {
  line-height: 1.6;
  font-family: var(--font-assistant), sans-serif;
}

/* Titles & Headers */
html[lang="he"] .section-title,
html[lang="he"] .hero-title,
html[lang="he"] .modal-title-main {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

html[lang="he"] .section-tag {
  font-size: 0.95rem;
  padding: 5px 22px;
  font-weight: 700;
}

/* Buttons */
html[lang="he"] .btn-primary-gold,
html[lang="he"] .btn-secondary-gold,
html[lang="he"] .btn-form-submit {
  font-family: 'Assistant', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding-top: 16px;
  padding-bottom: 16px;
}

html[lang="he"] .btn-donate-custom {
  font-family: 'Assistant', sans-serif;
}

html[lang="he"] .hero-heb {
  font-size: clamp(2.5rem, 8vw, 5.2rem);
  margin-bottom: 12px;
}

/* Navigation */
html[lang="he"] .custom-nav a {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* Cards & Content */
html[lang="he"] .product-name,
html[lang="he"] .segula-name,
html[lang="he"] .rabanim-name {
  font-size: 1.4rem;
  font-weight: 800;
}

html[lang="he"] .product-desc,
html[lang="he"] .segula-desc,
html[lang="he"] .rabanim-quote,
html[lang="he"] .hero-sub {
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Specific button in the image reported by user */
html[lang="he"] #btn-ir-tefilot,
html[lang="he"] #btn-enviar-nombre {
  font-size: 1.1rem;
  min-height: 54px;
}


/* ============================================
   PREMIUM APP ALERTS (AESTHETIC DIALOGS)
   ============================================ */
.app-alert-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.app-alert-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.app-alert-dialog {
  background: linear-gradient(165deg, rgba(26, 39, 68, 0.98), rgba(10, 15, 30, 1));
  border: 1px solid rgba(201, 151, 58, 0.35);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 40px rgba(201, 151, 58, 0.15), inset 0 1px 1px rgba(255,255,255,0.05);
  border-radius: 28px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  transform: scale(0.85) translateY(30px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-alert-backdrop.active .app-alert-dialog {
  transform: scale(1) translateY(0);
}

.app-alert-dialog::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.app-alert-icon {
  width: 72px;
  height: 72px;
  background: var(--gold-gradient);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 36px;
  color: #1a0f00;
  box-shadow: 0 12px 30px rgba(201, 151, 58, 0.4), 0 0 0 8px rgba(201, 151, 58, 0.08);
  transform: rotate(-5deg);
}

.app-alert-title {
  font-family: var(--font-cinzel);
  font-size: 1.75rem;
  color: var(--gold-main);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.app-alert-message {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 500;
}

.app-alert-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.app-alert-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: var(--font-assistant);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
}

.app-alert-btn-primary {
  background: var(--gold-gradient);
  color: #1a0f00;
  box-shadow: 0 8px 20px rgba(201, 151, 58, 0.25);
}

.app-alert-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(201, 151, 58, 0.45);
  filter: brightness(1.1);
}

.app-alert-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-alert-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
