/* ============================================
   SPECIAL LECTURES PAGE STYLES
   ============================================ */

/* ============================================
   FEATURED LECTURE
   ============================================ */

.featured-lecture {
  background: var(--color-bg-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  /* Removed top padding — accent bar sits flush at top */
  padding: 0 0 var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
  overflow: hidden; /* keeps accent bar corners clean */
}

/* ── Accent bar ──────────────────────────────────── */
.card-accent-bar {
  height: 5px;
  background: var(--color-primary);
  margin-bottom: var(--spacing-3xl);
}

.featured-lecture-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-2xl);
  padding: 0 var(--spacing-3xl);
  /* Let content column set height; image fills via absolute positioning */
  align-items: stretch;
}

/* ── Image column ────────────────────────────────── */

/* New wrapper replaces the bare img — enables ribbon overlay */
.featured-photo-wrap {
  position: relative;
  overflow: hidden;
  background: #1c0d0d;
  border-radius: var(--radius-sm);
  min-height: 360px;
  /* Stretch to match info column height */
  align-self: stretch;
}

/* Keep old class for backward compat but override sizing */
.featured-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0; /* radius handled by wrapper now */
  object-fit: cover;
  object-position: center 15%; /* keeps face in frame */
  filter: sepia(10%) contrast(1.06);
  transition: transform 0.5s ease;
  flex-shrink: unset; /* was set on old layout */
}

.featured-photo-wrap:hover .featured-photo {
  transform: scale(1.02);
}

/* Placeholder — keep same dimensions as wrap */
.featured-photo-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(160deg, #2a0a12 0%, #7a1428 100%);
  flex-shrink: unset;
}

/* Credential ribbon over image bottom */
.image-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(20, 5, 5, 0.92) 0%, rgba(20, 5, 5, 0.45) 65%, transparent 100%);
  padding: 40px var(--spacing-lg) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.ribbon-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5c97a;
  line-height: 1;
}

.ribbon-badge::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f5c97a;
  flex-shrink: 0;
}

/* ── Info column ─────────────────────────────────── */

.featured-lecture-body {
  display: flex;
  flex-direction: column;
  /* Space top content (title/bio) from bottom content (meta/pricing/cta) */
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.featured-lecture-top {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.featured-lecture-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Eyebrow label above title */
.card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0;
}

.featured-lecture-body h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.1;
}

/* Pull quote */
.card-quote {
  margin: 0;
  padding: 0;
  border: none; /* remove any browser default blockquote styling */
}

.card-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0 0 0.35rem;
}

.quote-attr {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-style: normal;
}

/* Thin rule between quote and bio */
.card-divider {
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  margin: 0;
}

/* Bio paragraph */
.lecturer-bio {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ── Meta pills ──────────────────────────────────── */
/* Replaces .lecture-logistics for date/location display */

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.meta-pill svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.meta-pill strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.meta-pill-link {
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.meta-pill-link:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-cream);
}

/* ── Pricing row ─────────────────────────────────── */

.card-pricing {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.price-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.price-item {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.price-item strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.price-item span {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.member-note {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 1px;
}

.price-sep {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ── CTA row ─────────────────────────────────────── */

.featured-cta-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Keep existing .btn.primary — just remove the old max-width constraint */
.featured-lecture-body > .btn.primary {
  max-width: unset;
}

/* ── What You'll Learn ──────────────────────────── */

.lecture-topics {
  background: var(--color-white);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  /* Match horizontal padding of the grid above */
  padding: var(--spacing-xl) var(--spacing-3xl) var(--spacing-xl) var(--spacing-2xl);
  margin: 0 var(--spacing-3xl);
}

.lecture-topics h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-lg);
}

/* Two-column grid for topics */
.learn-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2.5rem;
}

.learn-grid li {
  padding: 0.5rem 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.6;
}

.learn-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ── Keep .lecture-logistics for any other uses ─────
   (it's no longer in the featured card but may exist elsewhere) */
.lecture-logistics {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-lg) var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 520px;
}

.logistics-info {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.logistics-info strong {
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.calendar-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* ============================================
   UPCOMING LECTURES GRID
   ============================================ */

.lectures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
}

.lecture-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lecture-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.lecture-card-header {
  display: flex;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  align-items: center;
}

.lecture-card-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.lecture-card-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.lecture-card-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.lecture-card-credential {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-style: italic;
}

.lecture-card-body {
  padding: 0 var(--spacing-xl) var(--spacing-xl);
}

.lecture-card-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
}

.lecture-card-location {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.lecture-card-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   PAST PERFORMERS
   ============================================ */

.past-performers {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
}

.past-performers-intro {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: var(--spacing-2xl);
}

.performers-strip {
  display: flex;
  justify-content: center;
  gap: var(--spacing-3xl);
  flex-wrap: wrap;
}

.performer-item {
  text-align: center;
  max-width: 180px;
}

.performer-photo, .performer-photo img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.performer-photo-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.performer-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.performer-credential {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-style: italic;
  line-height: 1.4;
}

/* ============================================
   RESPONSIVE DESIGN - TABLETS
   ============================================ */

@media (max-width: 1200px) {
  .lectures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .featured-lecture-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  /* On tablet, image becomes a wide banner — preserves face in frame */
  .featured-photo-wrap {
    min-height: unset;
    aspect-ratio: 16 / 7;
    width: 100%;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }

  .featured-photo {
    object-position: center 20%;
  }

  /* Ribbon goes horizontal on wide banner */
  .image-ribbon {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: linear-gradient(to top, rgba(20,5,5,0.88) 0%, transparent 100%);
    align-items: flex-end;
  }

  .featured-lecture-body {
    /* Remove centered alignment from old tablet styles */
    align-items: flex-start;
    text-align: left;
  }

  .lecture-topics {
    margin: 0 var(--spacing-xl);
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 768px) {
  .featured-lecture {
    padding-bottom: var(--spacing-xl);
  }

  .featured-lecture-grid {
    padding: 0 var(--spacing-xl);
  }

  .featured-lecture-body h2 {
    font-size: 2rem;
  }

  /* Tighter banner on small screens */
  .featured-photo-wrap {
    aspect-ratio: 4 / 3;
  }

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

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

  .card-pricing {
    flex-wrap: wrap;
  }

  .featured-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-cta-row .btn {
    width: 100%;
    text-align: center;
  }

  .lecture-topics {
    margin: 0 var(--spacing-lg);
    padding: var(--spacing-lg);
  }

  .performers-strip {
    gap: var(--spacing-xl);
  }

  /* Keep old logistics/calendar styles for mobile */
  .lecture-logistics,
  .featured-lecture-body > .btn.primary {
    max-width: 100%;
  }

  .calendar-actions {
    flex-direction: column;
  }

  .calendar-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .featured-lecture,
  .lecture-card,
  .past-performers {
    page-break-inside: avoid;
    box-shadow: none;
  }

  .hero-small,
  .sub-nav,
  .calendar-actions,
  .featured-cta-row .btn.secondary,
  .full-width-cta-light,
  .full-width-cta-dark {
    display: none;
  }
}