.program-page {
  padding: 5rem 0 6rem;
}

.program-section .container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.program-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.program-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.85rem;
  border: 1px solid var(--color-navy);
  color: var(--color-navy);
  font-weight: 600;
}

.program-download:hover {
  background: var(--color-navy);
  color: #fff;
  text-decoration: none;
}

.day-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.day-switcher a {
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: #f3f4f6;
  color: var(--color-body);
  font-weight: 600;
}

.day-switcher a.--active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.program-day {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.program-item {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 2.5rem;
}

.program-item::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0.65rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px #fff;
}

.program-item::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  bottom: -1.25rem;
  width: 2px;
  background: var(--color-border);
}

.program-item:last-child::after {
  display: none;
}

.program-time {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
}

.program-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.75rem;
}

.program-card h3 {
  margin: 0;
  font-size: 1.18rem;
  color: var(--color-navy);
}

.program-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
  color: #fff;
  width: fit-content;
  height: fit-content;
}

.program-badge--keynote {
  background: var(--color-primary);
}

.program-badge--plenary {
  background: var(--color-navy);
}

.program-badge--technical {
  background: var(--color-navy);
}

.program-badge--poster {
  background: var(--color-accent);
}

.program-badge--break {
  background: #9ca3af;
}

.program-badge--invited {
  background: #0f766e;
}

.program-badge--organized {
  background: #b45309;
}

.program-badge--meal {
  background: #15803d;
}

.program-badge--wrapup {
  background: #475569;
}

.program-badge--social {
  background: #1d4ed8;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.program-text,
.program-session-chair,
.program-session-track,
.program-detail-title,
.program-detail-speakers {
  margin: 0;
}

.program-text {
  color: var(--color-body);
}

.program-session-chair {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-primary);
}

.program-session-track {
  font-weight: 600;
  color: var(--color-body);
}

.program-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.program-detail-list li + li {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.program-detail-title {
  font-weight: 600;
  color: var(--color-body);
  line-height: 1.55;
}

.program-detail-code {
  display: inline-block;
  min-width: 3.75rem;
  margin-right: 0.35rem;
  color: var(--color-primary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
}

.program-detail-speakers {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.program-subsection + .program-subsection {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.program-subsection h4 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: var(--color-navy);
}

.program-card--end {
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  padding: 1rem 1.5rem;
}

.program-card--end .program-text {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.program-header .section-heading {
  flex: 1;
  margin-bottom: 0;
}

.program-actions {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tabs {
  margin-top: 2rem;
}

.tabs-list {
  display: flex;
  gap: 0.5rem;
  background: #f3f4f6;
  padding: 0.25rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.tab-trigger {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: #6b7280;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-trigger:hover {
  background: rgba(255, 255, 255, 0.5);
}

.tab-trigger.active {
  background: #fff;
  color: #007bff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.tab-panel {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .program-header {
    flex-direction: column;
    gap: 1.5rem;
  }

  .program-actions {
    width: 100%;
    justify-content: center;
  }

  .program-item {
    padding-left: 0;
  }

  .program-item::before,
  .program-item::after {
    display: none;
  }

  .program-detail-code {
    display: block;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 768px) {
  .program-actions {
    justify-content: center;
  }

  .tabs-list {
    flex-direction: column;
  }
}
