/* ===== Base Schedule Section ===== */
#schedule {
  padding: 60px 0;
  background-color: #f8f9fa;
}

/* ===== Tab Navigation ===== */
#schedule .nav-tabs {
  text-align: center;
  border-bottom: 0;
  margin-bottom: 30px;
  justify-content: center;
}

#schedule .nav-tabs .nav-link {
  border: none;
  border-radius: 50px;
  font-weight: 600;
  background-color: #d9d9d9;
  color: #767575;
  padding: 10px 24px;
  margin: 0 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}

#schedule .nav-tabs .nav-link.active,
#schedule .nav-tabs .nav-link:hover {
  background: linear-gradient(135deg, #4a90e2, #6c5ce7);
  color: #fff;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* ===== Schedule Items ===== */
.schedule-item {
  border-bottom: 1px solid #cad4f6;
  padding: 15px 0;
  display: flex;
  align-items: flex-start;
  transition: background-color 0.2s ease;
}

.schedule-item:hover {
  background-color: #f1f5ff;
}

.schedule-item time {
  padding-bottom: 5px;
  display: inline-block;
  font-weight: 600;
  color: #2c3e50;
  min-width: 130px;
  font-size: 15px;
}

.schedule-item h4.title {
  font-size: 18px;
  font-weight: 600;
  margin: 6px 0;
  color: #2c3e50;
  line-height: 1.4;
}

.schedule-item h5.subtitle {
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 6px;
  color: #5a6b8c;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.schedule-item p.italic-subtitle {
  font-size: 14px;
  margin: 0 0 10px;
  font-style: italic;
  color: #6c757d;
  border-left: 3px solid #e9ecef;
  padding-left: 10px;
}

.schedule-item p.info {
  margin-bottom: 4px;
  color: #5a6b8c;
  line-height: 1.5;
  font-size: 14px;
}

/* ===== Session Type Badges (Capsule Labels) ===== */
.session-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 10px 0;
  color: #fff;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.session-badge::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 7px;
  opacity: 0.95;
}

/* Plenary Talk - Deep Purple */
.badge-plenary {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

/* Keynote - Emerald Green */
.badge-keynote {
  background: linear-gradient(135deg, #00b894, #55efc4);
}

/* Panel Discussion - Amber Orange */
.badge-panel {
  background: linear-gradient(135deg, #f39c12, #fab1a0);
}

/* Vendor Talk - Soft Blue */
.badge-vendor {
  background: linear-gradient(135deg, #74b9ff, #a5d8ff);
  color: #1a2530;
}

/* Oral Presentation - Neutral Gray */
.badge-oral {
  background: linear-gradient(135deg, #636e72, #b2bec3);
}

/* Hover effect */
.schedule-item:hover .session-badge {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

/* ===== Speaker Card ===== */
.speaker {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 50%;
  float: left;
  margin: 0 12px 12px 0;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.speaker img {
  height: 100%;
  width: auto;
  transform: translateX(-50%);
  margin-left: 50%;
  transition: transform 0.3s ease;
  object-fit: cover;
}

.speaker:hover img {
  transform: translateX(-50%) scale(1.08);
}

/* ===== Panel Discussion Layout ===== */
.panelist {
  margin: 18px 0 0 0;
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed #e0e6ef;
}

.panelist:last-child {
  border-bottom: none;
}

.panelist .speaker {
  margin: 0 12px 12px 0;
}

.panelist p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

.panelist strong {
  color: #2c3e50;
  display: block;
  margin-bottom: 2px;
}

/* ===== Lists in Schedule ===== */
.schedule-item ul {
  margin: 8px 0 0 0;
  padding-left: 22px;
}

.schedule-item ul li {
  font-size: 16px;
  font-weight: 500;
  color: #34495e;
  margin-bottom: 5px;
  line-height: 1.4;
}

/* ===== Footer Update Info ===== */
.schedule-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #e0e6ef;
}

.schedule-footer h2 {
  color: #6c757d;
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 500;
}

.schedule-footer a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.schedule-footer a:hover {
  color: #6c5ce7;
  text-decoration: underline;
}

.schedule-footer a::after {
  content: "↓";
  font-size: 14px;
}

/* ===== Session Legend ===== */
.session-legend {
  text-align: center;
  margin: 15px 0 25px 0;
  padding: 12px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.session-legend .session-badge {
  margin: 3px 5px;
  cursor: default;
}

.session-legend small {
  color: #6c757d;
  margin-left: 15px;
}

.session-legend .divider {
  color: #dee2e6;
  margin: 0 12px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991px) {
  .schedule-item {
    flex-direction: column;
    padding: 18px 0;
  }
  
  .schedule-item time {
    margin-bottom: 10px;
    font-size: 16px;
  }
  
  .speaker {
    float: none;
    margin: 0 0 12px 0;
  }
  
  #schedule .nav-tabs .nav-link {
    margin: 4px 2px;
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  #schedule {
    padding: 40px 0;
  }
  
  .schedule-item h4.title {
    font-size: 17px;
  }
  
  .session-badge {
    font-size: 10px;
    padding: 3px 11px;
  }
  
  .speaker {
    width: 52px;
    height: 52px;
  }
}

/* ===== Print Styles ===== */
@media print {
  #schedule .nav-tabs { display: none; }
  .tab-pane { display: block !important; opacity: 1 !important; }
  .schedule-item { page-break-inside: avoid; }
  .session-badge { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}