/* ============================================
   SIDE EVENTS PAGE - Schedule Day Sections
   ============================================ */

/* Hero Section with Background Image */
.mission--with-bg {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) 0;
}

/* Fix: Account for fixed navbar - add extra top padding to balance visual spacing */
.mission--header-offset.mission--with-bg {
  padding-top: calc(var(--space-4xl) + 60px);
}

/* Mobile/Tablet: Increase top offset significantly for visual balance */
@media (max-width: 1024px) {
  .mission--header-offset.mission--with-bg {
    padding-top: calc(var(--space-4xl) + 120px); /* Much larger offset for mobile balance */
  }
}

.mission__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
}

/* Ensure content is above background */
.mission--with-bg .container {
  position: relative;
  z-index: 2;
}

/* Darken the background for better text readability */
.mission--with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.7) 0%, rgba(10, 10, 15, 0.85) 100%);
  z-index: 1;
}

.schedule-day {
  margin-bottom: var(--space-3xl);
}

.schedule-day:last-child {
  margin-bottom: 0;
}

.schedule-day__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-primary);
}

.schedule-day__content {
  /* Container for schedule cards */
}

.schedule__placeholder {
  text-align: center;
  color: var(--color-text-secondary);
  padding: var(--space-2xl) 0;
  font-size: var(--text-lg);
}

/* Schedule grid for event cards */
.schedule__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

/* ==========================================
   SPEAKER ALIGNMENT - Center photo vertically within speaker section
   Photo should be centered between name and role text
   MAXIMUM SPECIFICITY - Override schedule-custom.css
   ========================================== */

/* Main speaker container - center photo vertically with name+role */
#tonik-week-schedule .schedule-day .schedule__grid .schedule-card .schedule-speaker,
#tonik-week-schedule .schedule__grid .schedule-card .schedule-speaker,
.schedule-day .schedule-card .schedule-speaker {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: var(--space-md) !important;
  margin: 0 0 var(--space-md) 0 !important; /* Bottom margin for spacing */
  padding: 0 0 var(--space-md) 0 !important; /* Bottom padding */
  min-height: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; /* Subtle divider line */
}

/* Speaker photo container - center vertically, remove spacing */
#tonik-week-schedule .schedule-day .schedule__grid .schedule-card .schedule-speaker__photo,
#tonik-week-schedule .schedule__grid .schedule-card .schedule-speaker__photo,
.schedule-day .schedule-card .schedule-speaker__photo {
  align-self: center !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Speaker info container - left-aligned text, centered vertically, no extra spacing */
#tonik-week-schedule .schedule-day .schedule__grid .schedule-card .schedule-speaker__info,
#tonik-week-schedule .schedule__grid .schedule-card .schedule-speaker__info,
.schedule-day .schedule-card .schedule-speaker__info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* Remove any padding/margin from speaker name and role buttons */
#tonik-week-schedule .schedule-speaker__name.speaker-card-bem__button,
#tonik-week-schedule .schedule-speaker__role.speaker-card-bem__button,
.schedule-day .schedule-speaker__name.speaker-card-bem__button,
.schedule-day .schedule-speaker__role.speaker-card-bem__button {
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure role button has minimal top margin */
#tonik-week-schedule .schedule-speaker__role.speaker-card-bem__button,
.schedule-day .schedule-speaker__role.speaker-card-bem__button {
  margin-top: 4px !important;
}

/* Tablet: THREE columns on tablet for more compact layout */
@media (max-width: 1024px) and (min-width: 769px) {
  .schedule__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
  
  /* Center photo vertically on tablet - remove any padding/margin */
  #tonik-week-schedule .schedule-card .schedule-speaker,
  .schedule-day .schedule-card .schedule-speaker {
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #tonik-week-schedule .schedule-card .schedule-speaker__photo,
  .schedule-day .schedule-card .schedule-speaker__photo {
    align-self: center !important;
    margin: 0 !important;
  }
  
  #tonik-week-schedule .schedule-card .schedule-speaker__info,
  .schedule-day .schedule-card .schedule-speaker__info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Mobile: TWO columns with minimal gap for side events */
@media (max-width: 768px) {
  .schedule__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs); /* Smaller gap between cards */
  }
  
  /* Reduce container padding for 2 columns */
  #tonik-week-schedule .container {
    padding-inline: var(--space-xs) !important;
  }
  
  .schedule-day__title {
    font-size: var(--text-xl);
  }
  
  /* Speaker section: HORIZONTAL layout on mobile (photo left, text right) */
  #tonik-week-schedule .schedule-card .schedule-speaker,
  .schedule-day .schedule-card .schedule-speaker {
    flex-direction: row !important;
    align-items: center !important;
    gap: var(--space-sm) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Center photo vertically on mobile */
  #tonik-week-schedule .schedule-card .schedule-speaker__photo,
  .schedule-day .schedule-card .schedule-speaker__photo {
    flex-shrink: 0 !important;
    align-self: center !important;
    margin: 0 !important;
  }
  
  /* Speaker info stays left-aligned and vertically centered */
  #tonik-week-schedule .schedule-card .schedule-speaker__info,
  .schedule-day .schedule-card .schedule-speaker__info {
    text-align: left !important;
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Extra small phones - even more compact */
@media (max-width: 480px) {
  .schedule__grid {
    gap: var(--space-sm);
  }
}

/* Error states */
.schedule__error {
  text-align: center;
  padding: var(--space-2xl);
}

.schedule__error-details {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-md);
}
