/* ========================= */
/* SCHEDULE SECTION */
/* ========================= */
.schedule-section {
  position: relative;
  min-height: calc(100vh - 62px);
  overflow: hidden;
  padding: 142px max(24px, calc((100% - 1180px) / 2)) 96px;
  background:
    linear-gradient(
      90deg,
      rgba(5, 7, 11, 0.94),
      rgba(5, 7, 11, 0.76) 48%,
      rgba(5, 7, 11, 0.9)
    ),
    url("http://mmacasbahfight.com/wp-content/uploads/2025/06/110809.jpg")
      center / cover no-repeat;
}

.schedule-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 68px
      68px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0
      0 / 68px 68px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 80%);
  mask-image: linear-gradient(90deg, #000, transparent 80%);
  pointer-events: none;
}

.schedule-intro,
/* ========================= */
/* SCHEDULE BOARD */
/* ========================= */
.schedule-board {
  position: relative;
  z-index: 1;
}

.schedule-intro {
  max-width: 680px;
  margin-bottom: 54px;
}

.schedule-kicker {
  margin: 0 0 14px;
  color: #ff989e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.schedule-section h1 {
  margin: 0;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(4.2rem, 10vw, 8.4rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 0.8;
}

.schedule-section .subtitle {
  max-width: 560px;
  margin: 26px 0 22px;
  color: #d3dae4;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.schedule-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #bac3ce;
  font-size: 0.84rem;
  font-weight: 700;
}

.schedule-note span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef1a23;
  box-shadow: 0 0 0 6px rgba(239, 26, 35, 0.18);
}

.schedule-board {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 13, 18, 0.88);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.36);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.board-heading p,
.board-heading span {
  margin: 0;
}

.board-heading p {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.board-heading span {
  color: #aeb9c7;
  font-size: 0.77rem;
}

.table-container {
  overflow-x: auto;
}

/* ========================= */
/* TIMETABLE */
/* ========================= */
.timetable {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
}

.timetable caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.timetable th,
.timetable td {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

.timetable th:last-child,
.timetable td:last-child {
  border-right: 0;
}

.timetable tbody tr:last-child td {
  border-bottom: 0;
}

.timetable th {
  position: relative;
  padding: 16px 18px;
  background: linear-gradient(135deg, #2b313b, #171b22);
  color: #edf1f6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timetable th::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: #ef1a23;
}

.timetable td {
  height: 144px;
  padding: 20px 18px;
  background: rgba(16, 20, 27, 0.8);
  color: #aeb8c5;
  font-size: 0.8rem;
  line-height: 1.5;
  transition:
    background 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}

.timetable td strong {
  display: block;
  margin: 16px 0 6px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.session-time,
.session-level {
  display: block;
}

.session-time {
  color: #ffadb1;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
}

.session-level {
  color: #adb8c7;
  font-size: 0.76rem;
  line-height: 1.4;
}

.timetable tbody tr:hover td {
  background: rgba(16, 20, 27, 0.8);
}

.timetable .session:hover {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    145deg,
    rgba(72, 27, 33, 0.92),
    rgba(27, 22, 29, 0.96)
  );
  box-shadow:
    inset 4px 0 #ef1a23,
    inset 0 0 0 1px rgba(255, 104, 112, 0.52),
    0 10px 22px rgba(0, 0, 0, 0.26);
  transform: translateY(-3px);
}

.timetable .session:hover .session-time {
  color: #fff;
}

.timetable .empty {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.012) 0 7px,
      transparent 7px 14px
    ),
    rgba(9, 12, 17, 0.7);
}

/* ========================= */
/* RESPONSIVE OVERRIDES */
/* ========================= */
@media (max-width: 1024px) {
  .schedule-section {
    padding: 124px 24px 80px;
  }
}

@media (max-width: 768px) {
  .schedule-section {
    padding: 112px 16px 64px;
  }

  .schedule-intro {
    margin-bottom: 38px;
  }

  .board-heading {
    padding: 16px;
  }

  .board-heading span {
    display: none;
  }

  .timetable th {
    padding: 14px 16px;
  }
}

/* ========================= */
/* PLANNING FOOTER */
/* ========================= */
.planning-footer {
  background-color: #111;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.planning-footer a {
  color: #e50914;
  text-decoration: none;
}
