/* =========================================================
   EVENT SCHEDULE
   Clean version
   - Day 1–5 ด้านบนใช้แบบ card tabs
   - ด้านล่างคง timeline สำหรับรายการกิจกรรม
========================================================= */

.event-schedule {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(94,168,255,0.10), transparent 22%),
    radial-gradient(circle at bottom right, rgba(198,40,57,0.08), transparent 20%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}


/* =========================================================
   SECTION TITLE
========================================================= */
.event-schedule .section-title {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.event-schedule .section-title::before {
  content: "Event Program";
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(18,60,115,0.08);
  color: #123c73;
  font-size: .80rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(18,60,115,0.06);
}

.event-schedule .section-title h2 {
  margin: 0 0 14px;
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #0e2f5a;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.event-schedule .section-title h2::after {
  display: none;
}

.event-schedule .section-title p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.85;
  color: #5f6f87;
}

/* =========================================================
   DAY TABS - CARD STYLE
========================================================= */
.schedule-tabs-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 34px;
  padding: 0;
  list-style: none;
}

.schedule-tabs-cards .nav-item {
  margin: 0;
}

.schedule-tabs-cards .nav-link {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(11,42,82,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  color: #123c73;
  text-align: center;
  box-shadow:
    0 10px 24px rgba(11,42,82,0.05),
    0 4px 10px rgba(11,42,82,0.03);
  transition: all .28s ease;
}

.schedule-tabs-cards .nav-link:hover {
  transform: translateY(-3px);
  border-color: rgba(47,111,190,0.16);
  box-shadow:
    0 16px 28px rgba(47,111,190,0.10),
    0 6px 12px rgba(11,42,82,0.04);
}

.schedule-tabs-cards .nav-link.active,
.schedule-tabs-cards .nav-link.active:hover,
.schedule-tabs-cards .nav-link.active:focus {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #0b2a52 0%, #2f6fbe 100%);
  box-shadow:
    0 18px 34px rgba(11,42,82,0.22),
    0 8px 16px rgba(11,42,82,0.08);
}

.schedule-tabs-cards .nav-link::after,
.schedule-tabs-cards .nav-link::before {
  display: none !important;
}

.schedule-tab-day {
  display: block;
  margin-bottom: 3px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.schedule-tab-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .82;
}

/* =========================================================
   TAB CONTENT ANIMATION
========================================================= */
.schedule-content-wrap .tab-pane {
  animation: scheduleFade .35s ease;
}

@keyframes scheduleFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   DAY HEADER
========================================================= */
.schedule-day-header {
  position: relative;
  margin-bottom: 32px;
  padding: 26px 28px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.10), transparent 35%),
    linear-gradient(135deg, #0b2a52 0%, #123c73 60%, #2f6fbe 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 24px 46px rgba(11,42,82,0.28),
    0 8px 16px rgba(11,42,82,0.14);
}

.schedule-day-header::before {
  content: "";
  position: absolute;
  top: -55px;
  right: -45px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.05) 45%,
    transparent 70%
  );
}

.schedule-day-badge,
.schedule-day-header h3,
.schedule-day-header p {
  position: relative;
  z-index: 2;
}

.schedule-day-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
  font-size: .80rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.schedule-day-header h3 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.schedule-day-header p {
  margin: 0;
  font-size: .98rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
}

/* =========================================================
   SCHEDULE LIST / TIMELINE
========================================================= */
.schedule-list {
  position: relative;
}

.schedule-list::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 165px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(94,168,255,0.00) 0%,
    rgba(94,168,255,0.30) 10%,
    rgba(94,168,255,0.45) 50%,
    rgba(94,168,255,0.30) 90%,
    rgba(94,168,255,0.00) 100%
  );
}

.schedule-item {
  display: grid;
  grid-template-columns: 130px 24px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 22px;
}

.schedule-time {
  font-size: .95rem;
  font-weight: 800;
  color: #123c73;
  line-height: 1.5;
  text-align: right;
}

.schedule-dot {
  width: 24px;
  display: flex;
  justify-content: center;
}

.schedule-dot::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  background: #5ea8ff;
  border: 3px solid #ffffff;
  box-shadow:
    0 0 0 6px rgba(94,168,255,0.12),
    0 8px 18px rgba(18,60,115,0.12);
  transition: .28s;
}

.schedule-content {
  position: relative;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(11,42,82,0.08);
  backdrop-filter: blur(8px);
  box-shadow:
    0 12px 34px rgba(15,23,42,0.06),
    0 4px 10px rgba(15,23,42,0.03);
  transition: .28s;
}

.schedule-content:hover {
  transform: translateY(-3px);
  border-color: rgba(94,168,255,0.18);
  box-shadow:
    0 18px 42px rgba(94,168,255,0.12),
    0 8px 16px rgba(15,23,42,0.05);
}

.schedule-content::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 20px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-left: 1px solid rgba(11,42,82,0.08);
  border-bottom: 1px solid rgba(11,42,82,0.08);
  transform: rotate(45deg);
}

.schedule-content h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0b2a52;
}

.schedule-content p {
  margin: 0;
  font-size: .97rem;
  color: #5b687a;
  line-height: 1.7;
}

.schedule-item:hover .schedule-dot::before {
  transform: scale(1.08);
  box-shadow:
    0 0 0 8px rgba(94,168,255,0.16),
    0 12px 24px rgba(18,60,115,0.18);
}

.schedule-item:hover .schedule-time {
  color: #2f6fbe;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 991.98px) {
  .event-schedule {
    padding: 75px 0;
  }

  .schedule-tabs-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .schedule-list::before {
    left: 19px;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .schedule-time {
    padding-left: 48px;
    text-align: left;
  }

  .schedule-dot {
    position: absolute;
    left: 9px;
    top: 2px;
  }

  .schedule-content {
    margin-left: 48px;
  }

  .schedule-content::before {
    left: -8px;
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 767.98px) {
  .schedule-tabs-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 575.98px) {
  .event-schedule .section-title h2 {
    font-size: 2rem;
  }

  .event-schedule .section-title p {
    font-size: .94rem;
  }

  .schedule-tabs-cards {
    grid-template-columns: 1fr;
  }

  .schedule-tabs-cards .nav-link {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .schedule-day-header {
    padding: 22px 20px;
    border-radius: 22px;
  }

  .schedule-day-header h3 {
    font-size: 1.32rem;
  }

  .schedule-day-header p {
    font-size: .94rem;
  }

  .schedule-content {
    padding: 16px;
    border-radius: 16px;
  }

  .schedule-content h4 {
    font-size: 1rem;
  }

  .schedule-content p {
    font-size: .93rem;
    line-height: 1.65;
  }
}

/* =========================
   CLEAN BLUE THEME
========================= */
.schedule-tabs-cards .nav-link {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(47, 111, 190, 0.15);
  background: linear-gradient(180deg, #f5f9ff 0%, #e9f2ff 100%);
  color: #1f4f95;
  text-align: center;
  box-shadow:
    0 8px 18px rgba(47, 111, 190, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease;
}

.schedule-tabs-cards .nav-link:hover {
  background: linear-gradient(180deg, #edf5ff 0%, #dfeeff 100%);
  border-color: rgba(47, 111, 190, 0.28);
  box-shadow:
    0 12px 22px rgba(47, 111, 190, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.schedule-tabs-cards .nav-link.active,
.schedule-tabs-cards .nav-link.active:hover,
.schedule-tabs-cards .nav-link.active:focus {
  background: linear-gradient(135deg, #0b2a52 0%, #2f6fbe 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow:
    0 14px 28px rgba(11, 42, 82, 0.18),
    0 6px 12px rgba(11, 42, 82, 0.08);
  transform: none !important; /* ไม่ให้ยกสูง */
}

.schedule-tab-day {
  display: block;
  margin-bottom: 3px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.schedule-tab-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .82;
}

/* =========================
   FIX TAB CONTENT
   กันเคสที่ CSS ไปชนจนแสดงทุกวัน
========================= */
.schedule-content-wrap > .tab-pane {
  display: none;
}

.schedule-content-wrap > .active {
  display: block;
}

.schedule-content-wrap > .fade {
  opacity: 0;
  transition: opacity .2s linear;
}

.schedule-content-wrap > .fade.show {
  opacity: 1;
}

