/* ===================================
   LEVEL 00: BASE LOADOUT
===================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif; /* Default typeface: clean, readable, and ready for the quest. */
  color: #fff;
  background-color: #f9f9f9;
  line-height: 1.5;
  padding-top: 70px; /* Navbar clearance: keeps the first scene from hiding under the map. */
}

/* ===================================
   LEVEL 01: NAVIGATION CHECKPOINT
===================================== */
/* Fixed map bar: anchors stay visible while visitors explore the page. */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 1000;
  /* Starting stance: visible, steady, and ready to slide when the scroll quest begins. */
  top: 0;
  opacity: 1;
  transition:
    top 1s ease-in-out,
    opacity 1s ease-in-out;
}

/* Stealth mode: .hidden lets the navbar step off-screen after the hero. */
.navbar.hidden {
  top: -100px; /* Exit route: match this to the navbar height if the map grows taller. */
  opacity: 0;
}

.navbar .logo img {
  max-height: 50px;
}

/* Map links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #073854;
  transition: color 0.2s;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
}

.nav-links li a:hover {
  color: #73b6aa;
}

/* Primary action button */
.btn-ticket {
  background-color: #073854;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.btn-ticket:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-signup {
  border: none;
  cursor: pointer;
}

/* Menu toggle: hidden on desktop because the full map already fits. */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
/* Mobile checkpoint: compact navigation for smaller screens. */
@media (max-width: 500px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; /* Dropdown spawn point: adjust if the navbar height changes. */
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0.5rem 0;
    text-align: center;
  }

  /* Small-screen shortcut: hide the extra action so the map has breathing room. */
  .navbar .btn-ticket {
    display: none;
  }

  .nav-actions {
    display: none;
  }
}

/* ===================================
   SPAWN POINT: HERO SECTION
===================================== */
.hero-section {
  height: 90vh;
  background: url("../img/hero.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #073854;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 2%,
    /* Edge fade: reveal the hero once visitors enter the scene. */ rgba(0, 0, 0, 1) 12%,
    /* Clear path: keep the center fully readable. */ rgba(0, 0, 0, 1) 88%,
    /* Exit fade: soften the handoff to the next section. */ rgba(0, 0, 0, 0) 98%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 2%,
    rgba(0, 0, 0, 1) 12%,
    rgba(0, 0, 0, 1) 88%,
    rgba(0, 0, 0, 0) 98%
  );

  /* Compatibility checkpoint: keeps the mask effect aligned in Firefox and WebKit. */
  mask-composite: exclude;
  -webkit-mask-composite: exclude;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.5rem;
}
.hero-section p {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #073854;
}

.hero-logo {
  max-width: 700px;
  margin-bottom: 1rem;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   CHECKPOINT DIVIDER
===================================== */
.section-divider {
  width: 100%;
  height: 100px;
  background-image: url("../img/divider.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    0px 15px 30px rgba(0, 0, 0, 0.1),
    0px -15px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: -50px;
  padding: 1rem 0;
  position: relative;
  z-index: 10;
}

/* ===================================
   HERO CONTENT AND CALLS TO ACTION
===================================== */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Shared button kit: one reusable action style across the page. */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-highlight {
  background-color: #fff;
  color: #000;
}

.btn-highlight:hover {
  background-color: #f4f4f4;
}

/* ===================================
   MAIN CONTENT AND CONTAINERS
===================================== */
.main-content {
  padding: 4rem 2rem;
  background-color: #1f1f1f;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===================================
   INFO AND SPEAKER ARENAS
===================================== */
.info-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.info-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.speakers-section {
  position: relative;
  padding: 4rem 2rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.speaker-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/g_prev.png") center center / cover no-repeat;
  opacity: 0.3;
  z-index: -1;
  background-color: #ffffff;
}

.speakers-heading {
  font-size: 4rem;
  margin-bottom: 20px;
  font-weight: 400;
}

.speakers-description {
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.6;
  font-size: 1.5rem;
  color: #073e5e;
}

.carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
  cursor: grab;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-out;
  gap: 24px;
}

.speaker-card {
  flex: 0 0 300px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.speaker-card:hover {
  transform: translateY(-10px);
}

.speaker-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
}

.speaker-info {
  padding: 16px 0;
  text-align: left;
}

.speaker-info p {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0;
}

.speaker-info h3 {
  color: #003b73;
}

.speaker-name {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.speaker-title {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}

/* Carousel map dots */
.carousel-nav .carousel-dot {
  background-color: rgba(0, 0, 0, 0.6); /* Idle checkpoint marker. */
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-nav .carousel-dot.active {
  background-color: rgba(0, 0, 0, 0.9); /* Current checkpoint marker. */
}

.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s;
  text-transform: uppercase;
  font-weight: 500;
}

.filter-btn.active {
  color: #00ffcc;
}

.filter-btn:hover {
  color: #00ffcc;
}

/* Carousel arrow controls */
.carousel-controls {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0 20px;
}

.control-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
}

@media (max-width: 768px) {
  .speakers-heading {
    font-size: 3rem;
  }

  .speaker-card {
    flex: 0 0 240px;
  }
}

.banners,
.banners-about,
.banners-speaker {
  display: block;
  max-width: 100%;
  max-height: 50px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  animation: fadeIn 2s ease-in-out;
}

.card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
  text-align: left;
}

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #003b73;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 1rem;
  color: #666;
  margin: 0.3rem 0;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.card-link:hover {
  text-decoration: underline;
}

.card-footer {
  background-color: #f9f9f9;
  padding: 0.5rem 1rem;
  border-top: 1px solid #eaeaea;
  margin-top: auto;
}

.social-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  justify-content: flex-start;
  margin: 0;
}

.social-link {
  font-size: 1.5rem;
  color: #666;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #73b6aa;
}

/* Lore panel: About Section */
.about {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/bg_prev.png") center center / cover no-repeat;
  opacity: 0.3;
  z-index: -1;
  background-color: #ffffff;
}

.about .section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #003b73;
  margin-bottom: 1rem;
}

.about .section-description {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.about-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
}

.about-details[hidden] {
  display: none;
}

.about-text {
  flex: 1 1 100%;
  max-width: 1080px;
  text-align: center;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

.about-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 0.25rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid #073854;
  border-radius: 6px;
  background: #073854;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.about-toggle-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.conference-info {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-icon {
  font-size: 1.5rem;
  color: #003b73;
}

.info-item p {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
}

.info-item p strong {
  color: #003b73;
}

/* ===================================
   FOOTER CHECKPOINT
===================================== */
.footer {
  text-align: center;
  padding: 1rem 2rem;
  background-color: #1f1f1f;
  color: #ccc;
  font-size: 0.9rem;
}

/* ===================================
   BONUS ARCHIVE: PREVIOUS CONVENTIONS
===================================== */
.previous-conventions {
  position: relative;
  padding: 4rem 2rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.previous-conventions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/bg_prev.png") center center / cover no-repeat;
  opacity: 0.3;
  z-index: -1;
  background-color: #ffffff;
}

.convention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.video-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  width: 100%;
  max-width: 400px;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.video-card iframe {
  width: 100%;
  height: 200px;
  border: none;
}

.video-info {
  padding: 1rem;
}

.video-info h3 {
  font-size: 1.3rem;
  color: #003b73;
  margin-bottom: 0.5rem;
}

.video-info p {
  font-size: 1rem;
  color: #666;
}

.video-link {
  display: inline-block;
  margin-top: 1rem;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.video-link:hover {
  text-decoration: underline;
}

/* ===================================
   CHALLENGE BOARD: COMPETITIONS SECTION
===================================== */
.competitions {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.competitions .section-title {
  font-size: 2.5rem;
  color: #003b73;
  margin-bottom: 1rem;
  font-weight: bold;
}

.competitions .section-subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

.text-link {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.text-link:hover {
  color: #0056b3;
}

.modal-open {
  overflow: hidden;
}

.signup-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  color: #333;
}

.signup-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.signup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.signup-modal__dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 2rem;
  z-index: 1;
}

.signup-modal__dialog h2 {
  color: #073854;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  text-align: center;
}

.signup-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.signup-modal__close:hover {
  color: #073854;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.signup-form__control {
  width: 100%;
  border: 1px solid #d6dde3;
  border-radius: 6px;
  color: #333;
  font: inherit;
  padding: 0.75rem 0.9rem;
}

.signup-form__control:focus {
  border-color: #073854;
  outline: none;
  box-shadow: 0 0 0 3px rgba(7, 56, 84, 0.12);
}

.signup-form__submit {
  width: 100%;
  border: none;
  border-radius: 6px;
  background-color: #073854;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.signup-form__submit:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.competition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.competition-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 380px;
}

.competition-card:hover {
  transform: translateY(-3px);
}

.competition-card .icon {
  font-size: 3rem;
  color: #073854;
  margin-bottom: 1rem;
}

.competition-card h3 {
  font-size: 1.5rem;
  color: #003b73;
  margin-bottom: 0.5rem;
}

.competition-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.competition-meta {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  text-align: left;
}

.competition-meta li {
  color: #4b5563;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.competition-guidelines {
  margin-top: auto;
  text-align: left;
}

.competition-guidelines summary {
  background-color: #73b6aa;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: center;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.competition-guidelines summary::-webkit-details-marker {
  display: none;
}

.competition-guidelines summary:hover {
  background-color: #55b3a1;
  transform: translateY(-2px);
}

.competition-guidelines[open] summary {
  margin-bottom: 1rem;
}

.competition-guidelines__body {
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.55;
  padding-top: 1rem;
}

.competition-guidelines__body p {
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.competition-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: auto;
}

/* Action stack: keeps challenge buttons tidy and easy to tap. */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.register-btn,
.guidelines-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.register-btn {
  background-color: #073854;
  color: #fff;
}

.register-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.guidelines-btn {
  background-color: #73b6aa;
  color: #fff;
}

.competition-card > .guidelines-btn {
  margin-top: auto;
}

.guidelines-btn:hover {
  background-color: #55b3a1;
  transform: translateY(-2px);
}

@media (max-width: 420px) {
  .competition-actions {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   MISSION MAP: SCHEDULE SECTION
===================================== */
.schedule-section {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  background: url("../img/bg_prev.png") center center / cover no-repeat;
}

.schedule-section .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.schedule-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.schedule-tabs .tabs {
  margin-bottom: 0;
}

.tab {
  background-color: #eaf3ff;
  border: 1px solid #007bff;
  padding: 0.5rem 1.5rem;
  margin: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.tab.active {
  background-color: #007bff;
  color: #fff;
}

.schedule-track-tabs {
  gap: 0.5rem;
}

.schedule-track-tab {
  background-color: #fff;
  border-color: #55b3a1;
  color: #073854;
  font-size: 0.95rem;
  padding: 0.45rem 1rem;
}

.schedule-track-tab.active {
  background-color: #55b3a1;
  border-color: #55b3a1;
  color: #fff;
}

.schedule-track-tabs[hidden] {
  display: none;
}

.schedule-container {
  max-height: 500px; /* Scroll window: keeps long schedules inside the mission log. */
  overflow-y: auto; /* Vertical route unlocked when the schedule gets long. */
  padding: 10px;

  /* Edge fade: softens the scroll area without hiding the main route. */
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 2%,
    /* Entry fade: reveal schedule cards after the first few pixels. */ rgba(0, 0, 0, 1) 12%,
    /* Clear route: keep the readable middle untouched. */ rgba(0, 0, 0, 1) 88%,
    /* Exit fade: taper the scroll area before the edge. */ rgba(0, 0, 0, 0) 98%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 2%,
    rgba(0, 0, 0, 1) 12%,
    rgba(0, 0, 0, 1) 88%,
    rgba(0, 0, 0, 0) 98%
  );

  /* Compatibility checkpoint: keeps the scroll mask aligned in Firefox and WebKit. */
  mask-composite: exclude;
  -webkit-mask-composite: exclude;
}

.schedule-item {
  transition: opacity 0.3s ease-in-out;
}
.schedule-container::-webkit-scrollbar {
  width: 8px; /* Slim path marker for the scroll route. */
}

/* WebKit route: Chrome, Safari, and Edge scrollbar styling. */
.schedule-container::-webkit-scrollbar {
  width: 8px; /* Keep the scroll marker slim. */
}

.schedule-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3); /* Soft marker: visible without stealing the scene. */
  border-radius: 10px; /* Rounded trail for a cleaner route. */
  border: 2px solid transparent; /* Soft edge so the marker blends into the track. */
}

.schedule-container::-webkit-scrollbar-track {
  background: transparent; /* Invisible track: only the marker needs attention. */
}

/* Firefox route: matching slim scrollbar styling. */
.schedule-container {
  scrollbar-width: thin; /* Keep the Firefox marker compact. */
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent; /* Marker color | hidden track. */
}

.schedule-content {
  display: none;
}

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

.schedule-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-left: 4px solid #007bff;
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.schedule-item:hover {
  transform: translateY(-2px);
}

.schedule-item .time {
  font-size: 0.9rem;
  font-weight: bold;
  color: #073854;
  flex: 0 0 250px;
  margin-right: 1rem;
}

.schedule-item .details {
  flex: 1;
}

.schedule-item .details h3 {
  font-size: 1.1rem;
  color: #003b73;
  margin-bottom: 0.5rem;
}

.schedule-item .details p {
  font-size: 0.9rem;
  color: #666;
  margin: 0.25rem 0;
}

.speaker-img img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 1rem;
}

/* ===================================
   RESPONSIVE SIDE QUESTS
===================================== */
/* Tablet route: reshuffle the map without changing the destination. */
@media (max-width: 768px) {
  body {
    padding-top: 58px;
  }

  .navbar {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
    min-height: 58px;
    padding: 0.5rem 0.75rem;
  }

  .nav-links {
    display: flex;
    position: static;
    top: auto;
    left: auto;
    width: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.3rem;
    max-width: 100%;
    margin-top: 0;
    padding: 0;
    overflow-x: auto;
    background: transparent;
    box-shadow: none;
    z-index: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex: 0 0 auto;
  }

  .nav-links li a {
    font-size: 0.95rem;
    padding: 0.35rem 0.55rem;
  }

  .navbar .logo {
    display: none;
  }

  .hero-section {
    height: 320px;
    min-height: 0;
    padding: 1.4rem 1rem 1.25rem;
    background-position: center top;
  }

  .hero-content {
    max-width: 620px;
    padding: 0 1rem;
  }

  .hero-logo {
    max-width: min(66vw, 230px);
    margin-bottom: 0.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p,
  .hero-section p {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
  }

  .hero-copy-extra {
    display: none;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }

  .container {
    padding: 0 1rem;
  }

  .speakers-grid,
  .competition-grid {
    grid-template-columns: 1fr;
  }

  .competition-card {
    max-width: 100%;
  }

  .banners-about,
  .banners-speaker {
    width: auto;
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
  }

  .schedule-section {
    padding: 3rem 1rem;
  }

  .schedule-tabs {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
  }

  .schedule-day-tabs,
  .schedule-track-tabs {
    display: grid;
    width: 100%;
    gap: 0.5rem;
  }

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

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

  .schedule-track-tabs[hidden] {
    display: none;
  }

  .schedule-tabs .tab {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    white-space: nowrap;
  }

  .schedule-track-tab {
    font-size: 0.9rem;
    padding: 0.5rem 0.55rem;
  }

  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-item .time {
    flex: 0 0 auto;
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* Pocket route: phones in portrait mode get the compact layout. */
@media (max-width: 480px) {
  body {
    padding-top: 52px;
  }

  .navbar {
    min-height: 52px;
    padding: 0.45rem 0.5rem;
  }

  .hero-section {
    height: 280px;
    min-height: 0;
    padding: 1.2rem 1rem 1rem;
  }

  .hero-logo {
    max-width: min(68vw, 190px);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p,
  .hero-section p {
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
  }

  .hero-buttons .btn {
    max-width: 280px;
    width: 100%;
    padding: 0.6rem 0.9rem;
  }

  .nav-links li {
    margin: 0.25rem 0;
  }

  .nav-links {
    gap: 0.2rem;
  }

  .nav-links li a {
    font-size: 0.78rem;
    padding: 0.25rem 0.35rem;
  }

  .schedule-section {
    padding: 2.5rem 0.75rem;
  }

  .schedule-tabs {
    max-width: 100%;
    gap: 0.55rem;
  }

  .schedule-tabs .tab {
    min-height: 42px;
    padding: 0.5rem 0.45rem;
    font-size: 0.9rem;
  }

  .schedule-track-tab {
    font-size: 0.82rem;
  }

  .signup-modal__dialog {
    padding: 1.5rem;
  }
}

/* ===================================
   FOOTER CHECKPOINT DETAILS
===================================== */
.footer {
  background-color: #1f1f1f;
  color: #ccc;
  padding: 2rem;
  margin-top: auto;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left {
  flex: 1;
  min-width: 250px;
}

.footer-logos {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logos img {
  max-height: 50px;
}

.uni-info {
  margin-top: 1rem;
}

.uni-info p {
  margin: 0.25rem 0;
  line-height: 1.4;
}

.footer-right {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #ccc;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-social a:hover,
.footer-links a:hover {
  color: #73b6aa;
}

.dev-note {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
  font-size: 0.75rem;
  color: #888;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    align-items: center;
  }

  .footer-logos {
    justify-content: center;
  }
}
