/* ===========================
   Base & Reset
   =========================== */

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

:root {
  --purple-deep:     #2C1445;
  --purple-mid:      #3D1F5C;
  --purple:          #6B3FA0;
  --purple-light:    #9B70CF;
  --purple-heading:  #A07CB5;
  --cream:           #FAF8F5;
  --cream-mid:       #F0EDE8;
  --white:           #FFFFFF;
  --text:            #1C1020;
  --text-mid:        #5A5060;
  --text-light:      #9A9098;
  --gold:            #C9A96E;
  --border:          #DDD5C8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: var(--text);
  background-color: var(--purple-deep);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.15;
  color: var(--purple-heading);
}

h1 em, h2 em, h3 em { font-style: italic; color: inherit; }


/* ===========================
   Navigation
   =========================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: rgba(44, 20, 69, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.home .site-nav {
  position: absolute;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

body.home .nav-inner {
  justify-content: flex-end;
}


.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
  flex-shrink: 0;
}

.nav-brand:hover { text-decoration: none; }

.nav-brand-top {
  font-family: 'Raleway', sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-brand:hover .nav-brand-name { color: rgba(255, 255, 255, 0.75); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-left: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  text-decoration: none;
}

.nav-donate a {
  border: 1px solid rgba(255, 255, 255, 0.38);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.75) !important;
  transition: border-color 0.2s, color 0.2s;
}

.nav-donate a:hover,
.nav-donate a.active {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.48rem 0.9rem;
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: border-color 0.2s;
}

.nav-toggle:hover { border-color: rgba(255, 255, 255, 0.65); }

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bars span {
  display: block;
  width: 15px;
  height: 1.5px;
  background-color: var(--white);
}


/* ===========================
   Hero (home page full-screen)
   =========================== */

.hero {
  background-color: var(--purple-deep);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 10, 45, 0.92) 0%,
    rgba(28, 10, 45, 0.55) 40%,
    rgba(28, 10, 45, 0.18) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 6rem 2.5rem 4rem;
}

.hero-body {
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.15rem;
  line-height: 1.12;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
  align-self: flex-end;
  padding-bottom: 0.25rem;
  flex-shrink: 0;
}

.hero-body {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.93rem;
  line-height: 1.55;
  max-width: 480px;
  margin-bottom: 0;
}

.hero-gallery {
  flex-shrink: 0;
  text-align: right;
  align-self: flex-end;
  padding-bottom: 0.25rem;
}

.hero-gallery-label {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.hero-gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.hero-gallery-thumb {
  width: 90px;
  height: 65px;
  background-color: rgba(255, 255, 255, 0.08);
  object-fit: cover;
  display: block;
}


/* ===========================
   Intro Split Layout
   =========================== */

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.intro-photo-wrap {
  background-color: var(--cream);
  background-image: radial-gradient(circle, rgba(107,63,160,0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.intro-photo-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 480px;
  border-radius: 160px 160px 0 0;
  background: rgba(201, 169, 110, 0.11);
  z-index: 0;
}

.intro-photo-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(107, 63, 160, 0.13);
  z-index: 0;
}

.intro-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.intro-arch-frame {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  box-shadow: 0 0 0 10px rgba(201,169,110,0.13), 0 0 0 20px rgba(201,169,110,0.07);
}

.intro-arch-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.intro-content {
  padding: 3.5rem 4rem 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--cream);
}

.intro-heading {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.75rem 0 1.5rem;
  line-height: 1.15;
}

.intro-lead {
  font-weight: 600;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.82;
  margin-bottom: 1.25rem;
}

.intro-body {
  color: var(--text-mid);
  font-size: 0.94rem;
  line-height: 1.88;
  margin-bottom: 2.25rem;
}

.intro-divider {
  width: 48px;
  height: 3px;
  background-color: var(--gold);
  margin-bottom: 2rem;
}

.intro-link {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.intro-link:hover { color: var(--purple); text-decoration: none; }


/* ===========================
   Page Header (inner pages)
   =========================== */

.page-header {
  background-color: var(--purple-mid);
  background-image:
    radial-gradient(ellipse at 75% 35%, rgba(155, 112, 207, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(28, 10, 45, 0.45) 0%, transparent 50%);
  padding: 1.75rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.page-header-ornament {
  display: block;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
  text-align: center;
}


/* ===========================
   Sections
   =========================== */

.section { padding: 3rem 2.5rem 5rem; }
.section--cream  { background-color: var(--cream); }
.section--pale   { background-color: var(--cream-mid); }
.section--deep   { background-color: var(--purple-mid); }

.section-inner       { max-width: 780px;  margin: 0 auto; }
.section-inner--wide { max-width: 1060px; margin: 0 auto; }

.section-eyebrow {
  display: inline-block;
  background-color: var(--purple);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}

.section--deep .section-eyebrow {
  background-color: rgba(155, 112, 207, 0.35);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

.section--deep .section-title { color: var(--white); }

.section-ornament {
  display: block;
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.45em;
  margin: 0.5rem 0 1rem;
  opacity: 0.5;
  text-align: center;
}

.section--deep .section-ornament { color: rgba(255, 255, 255, 0.22); opacity: 1; }

.section-body {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.88;
}

.section-body + .section-body { margin-top: 1.25rem; }

.section--deep .section-body { color: rgba(255, 255, 255, 0.68); }


/* ===========================
   Feature Cards
   =========================== */

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.feature-card {
  background-color: var(--white);
  border-radius: 12px;
  border-top: 3px solid var(--purple);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 2px 24px rgba(44, 20, 69, 0.08);
}

.feature-card-icon {
  color: var(--purple);
  margin-bottom: 1.1rem;
  display: block;
}

.feature-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.feature-card-body {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.82;
  margin-bottom: 1.4rem;
}

.feature-card-link {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s;
}

.feature-card-link:hover { color: var(--purple-mid); text-decoration: none; }


/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 100px;
  transition: all 0.22s ease;
}

.btn:hover { text-decoration: none; }

.btn--plum {
  background-color: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.btn--plum:hover {
  background-color: var(--purple-mid);
  border-color: var(--purple-mid);
  color: var(--white);
}

.btn--outline-plum {
  background-color: transparent;
  border-color: var(--purple);
  color: var(--purple);
}

.btn--outline-plum:hover {
  background-color: var(--purple);
  color: var(--white);
}

.btn--white {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--purple-deep);
}

.btn--white:hover {
  background-color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
}

.btn--outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn--outline-white:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}


/* ===========================
   Forms
   =========================== */

.form { margin-top: 2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  background-color: var(--white);
  font-size: 1rem;
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 6px;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus { border-color: var(--purple); }

textarea.form-control {
  height: 175px;
  resize: vertical;
  line-height: 1.6;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.65rem;
}

.form-control.is-invalid { border-color: #b94040; }
.form-control.is-invalid:focus { border-color: #b94040; }

.form-error {
  display: none;
  font-size: 0.78rem;
  color: #b94040;
  margin-top: 0.3rem;
}

.form-success {
  display: none;
  background-color: rgba(107, 63, 160, 0.08);
  border: 1px solid rgba(107, 63, 160, 0.22);
  color: var(--purple-mid);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  margin-top: 1.25rem;
  border-radius: 6px;
}

.section--deep .form-label { color: rgba(255, 255, 255, 0.55); }
.section--deep .form-control {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}
.section--deep .form-control::placeholder { color: rgba(255, 255, 255, 0.3); }
.section--deep .form-control:focus { border-color: var(--purple-light); }
.section--deep .form-success {
  background-color: rgba(155, 112, 207, 0.15);
  border-color: rgba(155, 112, 207, 0.35);
  color: rgba(255, 255, 255, 0.85);
}


/* ===========================
   App Store Buttons
   =========================== */

.app-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.75rem;
  background-color: var(--purple-deep);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  text-decoration: none;
  transition: all 0.22s;
  min-width: 195px;
  border-radius: 10px;
}

.store-btn:hover {
  background-color: var(--purple-mid);
  border-color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  color: var(--white);
}

.store-icon {
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  transition: color 0.22s;
  width: 26px;
  height: 26px;
}

.store-btn:hover .store-icon { color: var(--white); }

.store-btn-text small {
  display: block;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 4px;
}

.store-btn-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
}


/* ===========================
   Split Sections (side by side)
   =========================== */

.split-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-section {
  padding: 5rem 3.5rem;
}

.split-section--cream { background-color: var(--cream); }
.split-section--pale  { background-color: var(--cream-mid); }

@media (max-width: 820px) {
  .split-sections { grid-template-columns: 1fr; }
}


/* ===========================
   Shiurim Library
   =========================== */

.shiurim-empty {
  color: var(--text-mid);
  font-size: 0.95rem;
  padding: 2rem 0;
  text-align: center;
}

.shiurim-group { margin-bottom: 2.5rem; }
.shiurim-group:last-child { margin-bottom: 0; }

.shiurim-group-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.shiurim-list { margin-top: 0.5rem; }

.shiur-row {
  border-bottom: 1px solid var(--border);
}

.shiur-row:first-of-type { border-top: 1px solid var(--border); }

.shiur-row-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
}

.shiur-row-thumb {
  width: 52px;
  height: 52px;
  background-color: var(--purple);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
}

.shiur-row-meta {
  flex: 1;
  min-width: 0;
}

.shiur-row-title {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.shiur-row-date {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.shiur-row-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.shiur-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.shiur-play-btn:hover { color: var(--purple); }

.shiur-delete-btn {
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.shiur-delete-btn:hover { color: #b94040; }

.shiur-row-player {
  padding: 0.5rem 0 1rem 4.5rem;
}

.shiur-audio { width: 100%; }

.upload-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.75;
  text-align: center;
  margin-bottom: 0;
}

.upload-note code {
  background: rgba(255,255,255,0.1);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-family: monospace;
}


/* ===========================
   Recordings
   =========================== */

.recordings-split-section { padding-left: 0; padding-right: 0; }

.recordings-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}

.recordings-col {
  padding: 4rem 3rem;
}

.recordings-col--featured {
  border-right: 1px solid var(--border);
}

.recordings-col .section-title {
  margin-bottom: 0.75rem;
}

.recordings-col .section-eyebrow {
  margin-bottom: 0.5rem;
}

.recordings-embed-wrap {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.recordings-embed-label {
  background-color: var(--purple-deep);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.65rem 1.1rem;
  font-family: 'Raleway', sans-serif;
}

.recordings-embed-wrap iframe {
  width: 100%;
  height: 640px;
  border: none;
  display: block;
  background-color: var(--cream);
}


/* ===========================
   Footer
   =========================== */

.site-footer {
  background-color: var(--purple-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3.5rem 2.5rem 2rem;
  text-align: center;
}

.footer-inner { max-width: 1160px; margin: 0 auto; }

.footer-brand {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1.75rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.footer-brand:hover { text-decoration: none; color: rgba(255, 255, 255, 0.65); }

.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--white); text-decoration: none; }

.footer-ornament {
  display: block;
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  letter-spacing: 0.5em;
  text-align: center;
  margin-bottom: 1.5rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.69rem;
  letter-spacing: 0.04em;
}


/* ===========================
   Responsive
   =========================== */

@media (max-width: 1060px) and (min-width: 821px) {
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.64rem; }
}

@media (max-width: 960px) and (min-width: 821px) {
  .feature-cards { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: rgba(44, 20, 69, 0.98);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }

  .nav-links.is-open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 0.95rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
  }

  .nav-toggle { display: flex; }

  .hero { min-height: 100svh; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 0 1.5rem 4rem;
  }
  .hero h1 { font-size: 2rem; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
  .hero-gallery { display: none; }

  .intro { grid-template-columns: 1fr; min-height: auto; }
  .intro-photo-wrap { height: 360px; }
  .intro-content { padding: 2.75rem 1.5rem; }
  .intro-heading { font-size: 2rem; }

  .page-header { padding: 3rem 1.5rem; }
  .page-header h1 { font-size: 2.1rem; }

  .section { padding: 4rem 1.5rem; }
  .section-title { font-size: 1.95rem; }

  .feature-cards { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .recordings-split { grid-template-columns: 1fr; }
  .recordings-col--featured { border-right: none; border-bottom: 1px solid var(--border); }
  .recordings-col { padding: 2.5rem 1.5rem; }

  .app-stores { flex-direction: column; align-items: flex-start; }
  .store-btn { min-width: 0; width: 100%; max-width: 290px; }

  .btn-group { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .nav-brand-name { font-size: 0.9rem; }
  .hero h1 { font-size: 2rem; }
}


/* ===========================
   Shiurim Library
   =========================== */

.shiurim-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.shiurim-empty {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 2rem;
}

.shiur-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 2px 16px rgba(44, 20, 69, 0.07);
  position: relative;
}

.shiur-card-topic {
  display: inline-block;
  background-color: rgba(107, 63, 160, 0.1);
  color: var(--purple);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}

.shiur-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.shiur-card-date {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.9rem;
}

.shiur-card-audio {
  width: 100%;
  height: 36px;
  display: block;
}

.shiur-card-delete {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.65rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}

.shiur-card-delete:hover { color: #b94040; }

.upload-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}


/* ===========================
   Events List
   =========================== */

.events-list {
  margin-top: 3rem;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.event-row:first-child { border-top: 1px solid var(--border); }

.event-date {
  flex-shrink: 0;
  width: 58px;
  text-align: center;
  background-color: var(--purple);
  border-radius: 8px;
  padding: 0.5rem 0.25rem;
  color: var(--white);
}

.event-date-day {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-month {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 3px;
}

.event-meta { flex: 1; min-width: 0; }

.event-title {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.event-location {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light);
}

.event-time {
  display: block;
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-top: 0.15rem;
}
