@font-face {
  font-family: 'HomeVideo';
  src: url('fonts/homevideo.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'HomeVideoBold';
  src: url('fonts/homevideobold.ttf') format('truetype');
  font-weight: bold;
  font-display: swap;
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: Arial, sans-serif; background: #f4f4ec; color: #111; }
img { max-width: 100%; display: block; border-radius: 0.75rem; }
body { padding-bottom: 88px; }

/* Header */
.header {
  max-width: 650px;
  margin: 0 auto;
  padding: 3mm 1rem 0;
}

.header-img { 
  width: 100%; 
  height: auto; 
  border-bottom: none;
  margin-bottom: 0;
  border-radius: 0.75rem 0.75rem 0 0;
}

/* Hero Block */
.hero { 
  max-width: 650px; 
  margin: 0 auto; 
  padding: 0 1rem; 
  text-align: center; 
}

.hero-block {
  position: relative;
  background: #000;
  color: #fff;
  font-family: 'HomeVideo', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.2rem 1rem;
  margin-top: 0;
  border-radius: 0 0 0.75rem 0.75rem;
  overflow: hidden;
  isolation: isolate; 
  z-index: 1;
}

.hero-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  z-index: -1 !important; 
}

.hero-line {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #fff;
  background: none !important;
  border: none;
  box-shadow: none;
}

.hero-line:last-child {
  display: block !important;
  width: 100%;
  text-align: center;
  font-family: 'HomeVideoBold', Arial, sans-serif;
  font-size: 1.6rem;              
  line-height: 1.25;
  margin-top: 0.4rem;
  color: #fff !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #fff !important;
  mix-blend-mode: normal !important;
}

.hero-line:last-child * {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.hero-icon { color: #fff; }

.hero-meta {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  margin-top: 0.6rem;
  opacity: 0.9;
}
.hero-meta i { font-style: italic; }
.hero-meta strong { font-weight: bold; }

/* Live Banner */
.live-banner { max-width: 650px; margin: 0.5rem auto 0; padding: 0 1rem; }
.live-banner .box {
  font-family: 'HomeVideo', Arial, sans-serif;
  background: #000;
  color: #fff;
  text-align: left;
  padding: 1rem;
  font-size: 0.95rem;
  border-radius: 1rem;
  line-height: 1.4;
}
.live-banner .box span.upnext { color: #fff !important; }

/* Schedule */
.schedule {
  max-width: 650px;
  margin: 0.5rem auto 2.25rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.session {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 1rem;
  padding: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
}
.session:hover { background: #f9f9f9; }
.session.current { border-color: #000; }
.session h3 { font-family: 'HomeVideoBold', Arial, sans-serif; font-size: 1rem; margin: 0; }
.session small { font-size: 0.75rem; color: #666; display: block; }
.session .desc { margin-top: 0.5rem; font-size: 0.85rem; color: #333; text-align: justify; }

/* LIVE tag */
.live-tag {
  background: #000;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.15rem 0.35rem;
  border-radius: 0.5rem;
  margin-left: 0.4rem;
}

/* Arrow toggle */
.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* keep arrows top-aligned with text */
  margin-bottom: 0.3rem;
  gap: 0.5rem; /* keep spacing consistent */
}

.toggle-arrow {
  flex-shrink: 0; /* prevent resizing */
  background: none;
  border: 1px solid #000;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  margin-left: 0.15rem; /* small horizontal offset */
}

.toggle-arrow:hover {
  background: #000;
  color: #fff;
}
.session.expanded .toggle-arrow {
  transform: rotate(180deg);
}

/* Collapsible body */
.session-body { display: none; margin-top: 0.5rem; }
.session.expanded .session-body { display: block; }

/* Past sessions */
.session.past {
  background: #f1f1f1;
  color: #777;
  opacity: 0.8;
  border-color: #ccc;
  overflow: hidden;
  max-height: 4.5rem;
  transition: all 0.4s ease;
  cursor: pointer;
}
.session.past:hover { background: #eaeaea; }
.session.past h3, .session.past small { color: #666; }
.session.past:not(.expanded) .desc,
.session.past:not(.expanded) .speaker-pic { display: none; }
.session.past.expanded {
  max-height: 1000px;
  background: #f1f1f1;
  color: #666;
  opacity: 0.9;
}
.session.past.expanded .desc { display: block; color: #555; }
.session.past.expanded .speaker-pic { display: block; filter: grayscale(100%) brightness(0.9); opacity: 0.85; }

/* Speaker Image */
.speaker-pic {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.75rem;
  margin: 0.75rem auto;
  display: block;
  border: 1px solid #ccc;
}
#arrival .speaker-pic,
#lunch .speaker-pic,
#break1 .speaker-pic,
#break2 .speaker-pic,
#afterparty .speaker-pic {
  aspect-ratio: 16 / 9;
  width: 90%;
  max-width: none;
  margin: 0.75rem auto;
  border-radius: 0.75rem;
}
@media (max-width: 480px) {
  #lunch .speaker-pic,
  #break1 .speaker-pic,
  #break2 .speaker-pic,
  #afterparty .speaker-pic { width: 95%; }
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  width: min(650px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  z-index: 50;
}
.bottom-nav button {
  padding: 0.7rem 0.6rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-main { background: #000; color: #fff; border: none; }
.btn-alt { border: 1px solid #ccc; background: #fff; color: #000; }

/* Responsive */
@media (max-width: 600px) {
  .hero-line { font-size: 0.85rem; flex-wrap: wrap; }
  .hero-line:last-child { font-size: 1.25rem; }
}
