:root {
  --primary: #c947e0;
  --secondary: #1ba098;
  --accent: #5db75c;
  --dark: #3d2f7a;
  --light-bg: #e8ddf5;
  --white: #ffffff;
  --text-dark: #2a2a2a;
  --text-muted: #666666;
  --border: #c9a0d6;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--light-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #1ba098;
  transition: color 0.2s ease;
}

a:hover {
  color: #5db75c;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  color: var(--primary);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.container.narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid #1ba098;
  position: relative;
}

.hebrew-blessing {
  position: absolute;
  top: 0.75rem;
  right: 2rem;
  font-size: 0.85rem;
  color: #a89fa0;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.logo {
  width: 156px;
  height: 156px;
  border-radius: 8px;
}

.brand h1 {
  font-family: 'Lora', serif;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}

.byline {
  margin: 0.25rem 0 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
}

nav a:hover {
  color: #1ba098;
  border-bottom-color: #1ba098;
}

.hero {
  background: linear-gradient(135deg, rgba(201, 71, 224, 0.15), rgba(27, 160, 152, 0.15));
  padding: 4rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(61, 47, 122, 0.15);
  border: 3px solid #3d2f7a;
  text-align: center;
  margin-bottom: 3rem;
}

.intro-header {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.intro-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.intro-logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(61, 47, 122, 0.15));
  margin: 0 auto;
}

.about-headshot {
  width: 320px;
  height: 320px;
  border-radius: 0;
  object-fit: cover;
  background: #3d2f7a;
  border: 3px solid #3d2f7a;
  box-shadow: 0 8px 24px rgba(201, 71, 224, 0.4);
  display: block;
  float: right;
  margin: 0 0 2rem 2rem;
}


.hero-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #c947e0;
  box-shadow: 0 8px 24px rgba(201, 71, 224, 0.4);
  margin-bottom: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero h2 {
  font-family: 'Lora', serif;
  margin: 0 0 1rem;
  font-size: 2.4rem;
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
}

.lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.cta-row {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.95rem 2.5rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Nunito', sans-serif;
}

.btn.primary {
  background: #c947e0;
  color: var(--white);
}

.btn.primary:hover {
  background: #b02ad0;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(201, 71, 224, 0.4);
}

.btn.secondary {
  background: #1ba098;
  color: var(--white);
  border-color: #1ba098;
}

.btn.secondary:hover {
  background: #158076;
  border-color: #158076;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(27, 160, 152, 0.4);
}

.btn.dark {
  background: #3d2f7a;
  color: var(--white);
  border-color: #3d2f7a;
}

.btn.dark:hover {
  background: #2a1f52;
  border-color: #2a1f52;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(61, 47, 122, 0.4);
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.intro-cards article {
  background: linear-gradient(135deg, rgba(201, 71, 224, 0.1), rgba(27, 160, 152, 0.1));
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(61, 47, 122, 0.08);
  border: 2px solid #3d2f7a;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.intro-cards article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #5db75c, #1ba098);
}

.intro-cards article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 160, 152, 0.2);
  border-color: #1ba098;
}

.intro-cards h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: #3d2f7a;
}

.intro-cards p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.program {
  background: linear-gradient(135deg, rgba(139, 119, 214, 0.08), rgba(108, 201, 191, 0.08));
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(61, 47, 122, 0.1);
  border: 3px solid #3d2f7a;
  text-align: center;
}

.program-title {
  font-size: 2.8rem;
  font-style: italic;
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.program-subtitle {
  font-size: 1.3rem;
  color: #1ba098;
  margin: 0 0 2rem;
  font-weight: 600;
}

.program-intro {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
}

.program-intro p {
  margin: 0 0 1rem;
  color: #333333;
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 500;
}

.program-intro p:last-child {
  margin-bottom: 0;
}

.highlight {
  color: #5db75c;
  font-style: italic;
  font-weight: 700;
}

.program-structure {
  background: linear-gradient(135deg, rgba(201, 71, 224, 0.12), rgba(27, 160, 152, 0.12));
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 2px solid #3d2f7a;
}

.program-structure h3 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: #5db75c;
  font-style: italic;
  font-weight: 700;
}

.program-structure p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
}

.program-topics {
  text-align: left;
  max-width: 500px;
  margin: 2rem auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
}

.program-topics h3 {
  text-align: center;
  margin-top: 0;
  font-size: 1.3rem;
  color: #5db75c;
  font-style: italic;
  font-weight: 700;
}

.program-topics ul {
  padding-left: 2rem;
  margin: 0;
  list-style: none;
}

.program-topics li {
  margin-bottom: 0.75rem;
  color: #3d2f7a;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  position: relative;
  padding-left: 1.5rem;
}

.program-topics li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #5db75c;
  font-weight: bold;
  font-size: 1.1rem;
}

.program-details {
  background: linear-gradient(135deg, rgba(201, 71, 224, 0.1), rgba(27, 160, 152, 0.1));
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  border: 2px solid #3d2f7a;
  border-left: 5px solid #1ba098;
}

.program-details h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--primary);
  font-style: italic;
}

.program-details p {
  margin: 0.75rem 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.about ul,
.program ul {
  padding-left: 1.5rem;
  line-height: 1.8;
}

.about li,
.program li {
  margin-bottom: 0.5rem;
  color: #333333;
  font-weight: 500;
}

.about p,
.program p {
  color: #333333;
  line-height: 1.8;
  font-weight: 500;
}

.about a {
  color: #1ba098;
  text-decoration: none;
  border-bottom: 2px solid #1ba098;
  font-weight: 600;
}

.about a:hover {
  color: #5db75c;
  border-bottom-color: #5db75c;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: #666666;
  background: var(--white);
  border-top: 3px solid #1ba098;
  font-size: 0.9rem;
  margin-top: 3rem;
}

.note {
  font-size: 0.9rem;
  color: #5db75c;
  font-style: italic;
  margin-top: 1rem;
  font-weight: 600;
}
  padding: 1rem;
  background: rgba(27, 160, 152, 0.12);
  border-left: 3px solid var(--secondary);
  border-radius: 4px;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 58, 58, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s;
  z-index: 1000;
}

.modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 12px 40px rgba(61, 47, 122, 0.2);
  border: 2px solid #3d2f7a;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  cursor: pointer;
  color: #3d2f7a;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #c947e0;
}

.modal h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
  color: #3d2f7a;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.modal input,
.modal textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: #3d2f7a;
  box-shadow: 0 0 0 3px rgba(61, 47, 122, 0.15);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.modal-message {
  padding: 1rem;
  background: rgba(27, 160, 152, 0.15);
  border-left: 3px solid var(--secondary);
  border-radius: 6px;
  margin-top: 1rem;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.contact-list li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-list strong {
  color: var(--primary);
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(201, 71, 224, 0.1), rgba(27, 160, 152, 0.1));
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3d2f7a;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 2px solid #3d2f7a;
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hebrew-blessing {
    position: static;
    right: auto;
    top: auto;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
  }

  nav {
    gap: 1rem;
    justify-content: center;
  }

  .intro-logo {
    width: 180px;
    height: 180px;
  }

  .logo {
    width: 78px;
    height: 78px;
  }

  .about-headshot {
    width: 100%;
    height: auto;
    float: none;
    margin: 0 0 2rem 0;
  }

  .intro-header-content {
    gap: 1.5rem;
  }

  .hero {
    padding: 2.5rem 1.5rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Recordings Page */
.password-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem;
}

.password-gate-content {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(61, 47, 122, 0.1);
  border: 2px solid #3d2f7a;
  width: 100%;
  max-width: 450px;
  text-align: center;
}

.password-gate h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  color: #3d2f7a;
}

.password-gate-subtitle {
  margin: 0 0 2rem;
  color: #1ba098;
  font-size: 1.05rem;
  font-weight: 600;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.password-instructions {
  margin: 0;
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

.password-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.password-input-group input {
  padding: 0.85rem;
  border: 2px solid #3d2f7a;
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.password-input-group input:focus {
  outline: none;
  border-color: #1ba098;
  box-shadow: 0 0 0 3px rgba(27, 160, 152, 0.15);
}

.password-error {
  color: #d32f2f;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem;
  background: rgba(211, 47, 47, 0.08);
  border-radius: 6px;
}

.password-note {
  margin: 0;
  font-size: 0.85rem;
  color: #666666;
  font-style: italic;
  line-height: 1.5;
}

.recordings-content {
  padding: 2rem 0;
}

.recordings-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.recordings-header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.recordings-header h1 {
  margin: 0;
  font-size: 2.2rem;
  color: #3d2f7a;
}

.recordings-note {
  margin: 0 0 1.5rem;
  color: #666666;
  font-size: 1rem;
  line-height: 1.6;
}

.recordings-header .btn {
  margin-top: 1rem;
}

.recordings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.recording-card {
  background: linear-gradient(135deg, rgba(201, 71, 224, 0.1), rgba(27, 160, 152, 0.1));
  padding: 2rem;
  border-radius: 10px;
  border: 2px solid #3d2f7a;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.recording-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #5db75c, #1ba098);
  border-radius: 10px 10px 0 0;
}

.recording-card {
  position: relative;
  overflow: hidden;
}

.recording-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #5db75c;
  font-weight: 700;
}

.session-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: #3d2f7a;
  font-weight: 600;
  line-height: 1.4;
}

.session-date {
  margin: 0 0 1.5rem;
  color: #1ba098;
  font-size: 0.9rem;
  font-weight: 500;
}

.session-description {
  margin: 0 0 1rem;
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

.watch-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.85rem 1.5rem;
}

.recording-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 160, 152, 0.2);
  border-color: #1ba098;
}

.recordings-updated {
  text-align: center;
  margin: 2rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: #999999;
  font-size: 0.85rem;
  font-style: italic;
}

.btn.small {
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .password-gate-content {
    padding: 2rem 1.5rem;
  }

  .password-gate h2 {
    font-size: 1.6rem;
  }

  .recordings-header h1 {
    font-size: 1.6rem;
  }

  .recordings-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .password-input-group {
    flex-direction: column;
  }

  .password-input-group .btn {
    width: 100%;
  }
}
