:root {
  --agenda-bg: #00131b;
  --agenda-bg-light: #052631;

  --agenda-white: #ffffff;
  --agenda-text: #d8e2e6;
  --agenda-muted: #96aab2;

  --agenda-red: #ff3621;
  --agenda-red-light: #ff5643;

  --agenda-border: rgba(86, 161, 187, 0.18);
  --agenda-card: rgba(5, 41, 53, 0.88);
}

.event-agenda {
  position: relative;
  padding: 105px 0 115px;
  overflow: hidden;
  isolation: isolate;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(5, 91, 119, 0.21),
      transparent 31%
    ),
    radial-gradient(
      circle at 90% 75%,
      rgba(12, 78, 101, 0.2),
      transparent 32%
    ),
    linear-gradient(
      140deg,
      #00131b 0%,
      #03202a 52%,
      #001019 100%
    );
}

.agenda-container {
  position: relative;
  z-index: 4;
  width: min(90%, 1500px);
  margin: 0 auto;
}

.agenda-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  opacity: 0.13;

  background-image:
    linear-gradient(
      rgba(61, 139, 165, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(61, 139, 165, 0.08) 1px,
      transparent 1px
    );

  background-size: 58px 58px;

  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.agenda-glow {
  position: absolute;
  z-index: -3;
  border-radius: 50%;
  filter: blur(105px);
  pointer-events: none;
}

.agenda-glow-left {
  top: 6%;
  left: -130px;
  width: 430px;
  height: 430px;
  background: rgba(0, 113, 146, 0.15);
}

.agenda-glow-right {
  right: -130px;
  bottom: 3%;
  width: 500px;
  height: 500px;
  background: rgba(18, 94, 119, 0.16);
}


.agenda-header {
  margin-bottom: 58px;
}

.agenda-label {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 25px;

  color: var(--agenda-red);
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.agenda-label-line {
  width: 250px;
  height: 2px;

  background: linear-gradient(
    90deg,
    rgba(255, 54, 33, 0.75),
    rgba(63, 142, 169, 0.08)
  );
}

.agenda-heading-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.agenda-heading {
  color: var(--agenda-white);
  font-size: clamp(38px, 4vw, 50px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -3px;
}

.agenda-heading span {
  color: var(--agenda-red);
}

.agenda-subtitle {
  max-width: 750px;
  margin-top: 22px;

  color: var(--agenda-text);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.7;
}

.agenda-summary {
  flex: 0 0 auto;
  min-width: 290px;
  padding: 16px 20px;

  display: flex;
  align-items: center;
  gap: 17px;

  border: 1px solid rgba(255, 54, 33, 0.3);
  border-radius: 8px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 54, 33, 0.09),
      rgba(4, 38, 49, 0.86)
    );

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.agenda-summary-icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: var(--agenda-red);
  color: var(--agenda-white);
  font-size: 21px;
}

.agenda-summary span,
.agenda-summary strong {
  display: block;
}

.agenda-summary span {
  margin-bottom: 5px;
  color: var(--agenda-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.agenda-summary strong {
  color: var(--agenda-white);
  font-size: 18px;
}


.agenda-board {
  overflow: hidden;
  border: 1px solid var(--agenda-border);
  border-radius: 14px;

  background: rgba(2, 28, 38, 0.72);

  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.agenda-table-head {
  min-height: 50px;
  display: grid;
  grid-template-columns: 235px 1fr;
  align-items: center;

  border-bottom: 1px solid var(--agenda-border);

  background:
    linear-gradient(
      90deg,
      rgba(255, 54, 33, 0.13),
      rgba(7, 54, 68, 0.84)
    );

  color: var(--agenda-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.agenda-head-time {
  padding-left: 38px;
}

.agenda-head-session {
  padding-left: 88px;
}



.agenda-item {
  position: relative;
  display: grid;
  grid-template-columns: 235px 80px 1fr;
  min-height: 145px;

  border-bottom: 1px solid rgba(88, 158, 183, 0.13);

  background:
    linear-gradient(
      90deg,
      rgba(4, 38, 50, 0.92),
      rgba(2, 29, 39, 0.8)
    );

  transition:
    transform 0.35s ease,
    background 0.35s ease;
}

.agenda-item:last-child {
  border-bottom: none;
}

.agenda-item:hover {
  z-index: 2;
  transform: translateX(6px);

  background:
    linear-gradient(
      90deg,
      rgba(8, 53, 67, 0.98),
      rgba(3, 34, 45, 0.92)
    );
}

.agenda-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 4px;
  height: 0;
  background: var(--agenda-red);

  transition: height 0.4s ease;
}

.agenda-item:hover::before {
  height: 100%;
}


/* Featured keynote */

.agenda-item-featured {
  background:
    linear-gradient(
      90deg,
      rgba(255, 54, 33, 0.1),
      rgba(7, 48, 61, 0.95)
    );
}

.agenda-item-featured .agenda-session {
  position: relative;
}

.agenda-item-featured .agenda-session::after {
  content: "Featured Session";
  position: absolute;
  top: 25px;
  right: 30px;

  padding: 7px 12px;

  border: 1px solid rgba(255, 54, 33, 0.32);
  border-radius: 30px;

  color: var(--agenda-red);
  background: rgba(255, 54, 33, 0.07);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}


/* Closing row */

.agenda-item-closing {
  background:
    linear-gradient(
      90deg,
      rgba(7, 51, 64, 0.98),
      rgba(3, 35, 46, 0.9)
    );
}


/* =====================================================
   TIME
===================================================== */

.agenda-time {
  padding: 38px 25px 38px 38px;

  display: flex;
  align-items: center;
  gap: 10px;

  border-right: 1px solid rgba(87, 160, 184, 0.13);
}

.agenda-start-time,
.agenda-end-time {
  color: var(--agenda-white);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.agenda-end-time {
  color: var(--agenda-muted);
  font-weight: 500;
}

.agenda-time-line {
  width: 18px;
  height: 1px;
  background: var(--agenda-red);
}

.agenda-time-onwards {
  padding: 5px 9px;
  border-radius: 20px;

  color: var(--agenda-red);
  background: rgba(255, 54, 33, 0.08);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}


/* =====================================================
   TIMELINE MARKER
===================================================== */

.agenda-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agenda-marker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;

  width: 1px;
  transform: translateX(-50%);

  background: rgba(101, 173, 197, 0.2);
}

.agenda-dot {
  position: relative;
  z-index: 2;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 54, 33, 0.48);
  border-radius: 50%;

  background: #042530;
  color: var(--agenda-red);
  font-size: 17px;

  box-shadow:
    0 0 0 8px rgba(3, 35, 46, 0.95),
    0 8px 25px rgba(0, 0, 0, 0.25);

  transition:
    color 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease;
}

.agenda-item:hover .agenda-dot {
  color: var(--agenda-white);
  background: var(--agenda-red);
  transform: scale(1.08);
}


/* =====================================================
   SESSION CONTENT
===================================================== */

.agenda-session {
  position: relative;
  padding: 34px 100px 34px 30px;

  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.agenda-number {
  flex: 0 0 auto;

  color: rgba(255, 255, 255, 0.09);
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.agenda-session-tag {
  display: block;
  margin-bottom: 8px;

  color: var(--agenda-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.agenda-session h3 {
  margin-bottom: 9px;

  color: var(--agenda-white);
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.25;
  font-weight: 700;
}

.agenda-session p {
  max-width: 780px;

  color: var(--agenda-muted);
  font-size: 14px;
  line-height: 1.65;
}


/* =====================================================
   LAPTOP
===================================================== */

@media (max-width: 1200px) {

  .event-agenda {
    padding: 90px 0 95px;
  }

  .agenda-table-head {
    grid-template-columns: 205px 1fr;
  }

  .agenda-head-session {
    padding-left: 77px;
  }

  .agenda-item {
    grid-template-columns: 205px 68px 1fr;
  }

  .agenda-time {
    padding-left: 25px;
  }

  .agenda-start-time,
  .agenda-end-time {
    font-size: 14px;
  }

  .agenda-session {
    padding-right: 60px;
    gap: 20px;
  }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

  .agenda-heading-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .agenda-summary {
    min-width: 280px;
  }

  .agenda-table-head {
    display: none;
  }

  .agenda-item {
    grid-template-columns: 175px 65px 1fr;
    min-height: 185px;
  }

  .agenda-time {
    padding: 30px 20px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }

  .agenda-time-line {
    width: 30px;
  }

  .agenda-session {
    padding: 30px 35px 30px 20px;
  }

  .agenda-item-featured .agenda-session::after {
    display: none;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 680px) {

  .event-agenda {
    padding: 68px 0 72px;
  }

  .agenda-container {
    width: min(90%, 600px);
  }

  .agenda-header {
    margin-bottom: 42px;
  }

  .agenda-label {
    gap: 14px;
    margin-bottom: 20px;
    font-size: 13px;
    letter-spacing: 1.7px;
  }

  .agenda-label-line {
    flex: 1;
    width: auto;
  }

  .agenda-heading {
    font-size: clamp(40px, 12vw, 58px);
    letter-spacing: -2px;
  }

  .agenda-subtitle {
    font-size: 15px;
  }

  .agenda-summary {
    width: 100%;
    min-width: 0;
  }

  .agenda-board {
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .agenda-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    min-height: auto;
    margin-bottom: 16px;
    overflow: hidden;

    border: 1px solid var(--agenda-border);
    border-radius: 10px;

    background:
      linear-gradient(
        145deg,
        rgba(7, 48, 62, 0.96),
        rgba(2, 29, 39, 0.96)
      );
  }

  .agenda-item:hover {
    transform: translateY(-4px);
  }

  .agenda-time {
    grid-column: 1 / -1;
    padding: 18px 20px;

    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;

    border-right: none;
    border-bottom: 1px solid rgba(86, 159, 184, 0.14);

    background: rgba(255, 54, 33, 0.05);
  }

  .agenda-start-time,
  .agenda-end-time {
    font-size: 14px;
  }

  .agenda-marker {
    grid-column: 1;
    padding: 25px 0;
    align-items: flex-start;
  }

  .agenda-marker::after {
    top: 0;
    bottom: 0;
  }

  .agenda-dot {
    width: 40px;
    height: 40px;
    font-size: 14px;

    box-shadow:
      0 0 0 5px rgba(3, 35, 46, 0.95),
      0 8px 20px rgba(0, 0, 0, 0.2);
  }

  .agenda-session {
    grid-column: 2;
    padding: 23px 20px 25px 5px;
    display: block;
  }

  .agenda-number {
    position: absolute;
    top: 20px;
    right: 18px;

    font-size: 30px;
  }

  .agenda-session h3 {
    max-width: calc(100% - 35px);
    font-size: 20px;
  }

  .agenda-session p {
    font-size: 14px;
  }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {

  .event-agenda {
    padding: 58px 0 62px;
  }

  .agenda-heading {
    font-size: 38px;
  }

  .agenda-summary {
    padding: 17px;
  }

  .agenda-summary-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .agenda-time {
    flex-wrap: wrap;
  }

  .agenda-start-time,
  .agenda-end-time {
    font-size: 13px;
  }

  .agenda-session {
    padding-right: 16px;
  }

  .agenda-session h3 {
    font-size: 18px;
  }

}