@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ══════════════════════════════════════
   TOP BAR
══════════════════════════════════════ */
.top_bar_info {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100vw;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  height: 60px;
  background: #1E2235;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top_bar_insides {
    margin-right: 0;
    margin-left: auto;
    white-space: nowrap;
}

.top_bar_info .top_bar_normal {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #A0A8C8;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.top_bar_bonus {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #A0A8C8;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.top_bar_info a:hover {
  color: #FFFFFF;
  background: rgba(108, 122, 224, 0.18);
}

/* ══════════════════════════════════════
   MAIN PAGE — full-viewport hero
══════════════════════════════════════ */
.main_page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6.9rem 1.5rem 3rem;
  overflow: hidden;
}

/* ── Slideshow ── */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  animation: slide-drift 10s ease both, slide-fade 10s ease both;
  z-index: -1;
  pointer-events: none;
  background-position-y: top;
}

@keyframes slide-drift {
  from { background-position-x: left 80%; }
  to   { background-position-x: left 20%; }
}

@keyframes slide-fade {
  0%   { opacity: 0.65; }
  12%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Dim overlay so text stays readable */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 24, 0.52);
}

/* ── Logo ── */
.logo {
  position: absolute;
  top: 80px; /* 64px bar + 16px gap */
  left: 2.5rem;
}

.logo img {
  height: 6rem;
  width: auto;
  display: block;
}

/* ── Countdown ── */
.countdown {
  text-align: center;
  z-index: 1;
}

/* Date label */
.countdown > h3 {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6C7AE0;
  margin-bottom: 0.5rem;
}

/* "COUNTDOWN TO THE EVENT" subtitle */
.countdown > p {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8B90A8;
  margin-bottom: 3.5rem;
}

/* Horizontal units row */
.countdown_insides_horizontal {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

/* Each unit block — these are also .countdown divs */
.countdown_insides_horizontal .countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.5rem;
  min-width: 160px;
}

/* Divider lines between units */
.countdown_insides_horizontal .countdown + .countdown {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* The number */
.countdown_insides_horizontal .countdown .countdown_num{
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0.26rem 0.26rem 0.26rem #1E2235;
}

/* The label (Days / Hours / Minutes) */
.countdown_insides_horizontal .countdown {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8B90A8;
  margin-top: 0.75rem;
}

/* ── Register Now button ── */
.buttons {
  flex-direction: column;
  display: flex;
  margin-top: 6rem;
  align-items: center;
  text-align: center;
}

.buttons > a {
  width: 100%;
  text-decoration: none;
  margin-top: 0.3rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.4rem;
  background: #6C7AE0;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
   transition:
    background 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease;
}

.buttons > a:hover {
  background: #5A67D8;
  box-shadow: 0 6px 20px rgba(108, 122, 224, 0.4);
}

.buttons > a:active {
  transform: translateY(1px);
  box-shadow: none;
}

.sub_title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1E2235;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

/* ══════════════════════════════════════
   INFORMATION SECTION
══════════════════════════════════════ */
.information {
  background: #FFFFFF;
  padding: 5rem 2rem;
  text-align: center;
}

.horizontal_info_panel {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

.info_block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2.5rem;
}

.info_block + .info_block {
  border-left: 1px solid #E5E7EB;
}

.info_title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6C7AE0;
  margin-bottom: 0.5rem;
}

.info_block > span:not(.info_title) {
  font-size: 0.95rem;
  color: #4B5563;
  font-weight: 500;
}

/* Team fee sub-panel */
.info_block_sub_panel {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.info_block_sub_block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.info_block_sub_block span:first-child {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9CA3AF;
}

.info_block_sub_block span:last-child {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1E2235;
}

/* ══════════════════════════════════════
   BOTTOM CONTENT BLOCKS
══════════════════════════════════════ */

.bottom_block {
  padding: 5rem 10rem;
  text-align: center;
}

/* Alternating backgrounds */
.about,
.registration_process,
.faq_section,
.race_format,
.open_division,
.masters_division,
.venue_info,
.team_reg,
.timing,
.safety {
  background: #F0F2F5;
}

.rules,
.event_scheduling,
.divisions,
.mixed_division,
.awards
.relay_leg_rules {
  background: #FFFFFF;
}

.bottommost_block {
  text-align: center;
  background: #1E2235;
  padding: 3rem 10rem;
}

.bottommost_block .sub_title,
.bottommost_block .inner_text,
.bottommost_block .inside_list li {
  color: #A0A8C8;
}

.bottommost_block .sub_title {
  color: #FFFFFF;
}

.bottom_label {
  margin-top: 2rem !important;
  font-size: 0.78rem !important;
  color: #6b7280 !important;
}

/* ── Shared text styles ── */
.inner_text {
  font-size: 0.95rem;
  color: #4B5563;
  line-height: 1.7;
  text-align: left;
  max-width: 680px;
  margin: 0 auto 1rem;
}

.inner_bonus_text {
  font-size: 0.88rem;
  color: #9CA3AF;
  line-height: 1.65;
  text-align: left;
  max-width: 680px;
  margin: 0 auto 1rem;
  font-style: italic;
}

/* ── Lists ── */
.inside_list {
  list-style: none;
  max-width: 680px;
  margin: 0 auto 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
}

.inside_list li {
  font-size: 0.92rem;
  color: #4B5563;
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}

.inside_list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #6C7AE0;
  font-weight: 600;
}

/* ── Divisions horizontal panel ── */
.divisions .horizontal_info_panel {
  text-align: left;
}

.divisions .info_block {
  align-items: flex-start;
  gap: 0.75rem;
}

.divisions .info_block > span:first-child {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6C7AE0;
  margin-bottom: 0.25rem;
}

.divisions .info_block .inside_list {
  margin: 0;
}

/* ── FAQ ── */
.faq_section .inner_text {
  font-weight: 600;
  color: #1E2235;
  margin-bottom: 0.25rem;
}

.faq_section .inner_bonus_text {
  margin-bottom: 1.25rem;
}

/* IMAGES */
.images_display_grid_awesomely {
  width: 100%;
  display: grid;
  grid-template-columns: 420px 420px 420px;
  justify-items: center;
}

.images_display_grid_awesomely img {
  max-width: 360px;
  margin-top: 1rem;
}


.flashes {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 5rem;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.flashes p {
  background: #FFF5F5;
  color: #C53030;
  border: 1px solid #FEB2B2;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1420px) {
  .images_display_grid_awesomely {
    grid-template-columns: 420px 420px;
  }
}

@media (max-width: 1000px) {
  .images_display_grid_awesomely {
    grid-template-columns: 420px;
  }
}

@media (max-width: 640px) {

  .images_display_grid_awesomely img {
    max-width: 240px;
  }

  .images_display_grid_awesomely {
    grid-template-columns: 240px;
  }

  .countdown > h3 {
    font-size: 2.3rem;
  }
  
  .countdown_insides_horizontal {
    gap: 0;
  }

  .countdown_insides_horizontal .countdown {
    padding: 0 0.6rem;
    min-width: unset;
  }

  .countdown_insides_horizontal .countdown .countdown_num {
    font-size: 3rem;
  }

  .horizontal_info_panel {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .info_block + .info_block {
    border-left: none;
    border-top: 1px solid #E5E7EB;
    padding-top: 2rem;
  }

  .top_bar_info {
    padding: 0 1.25rem;
    gap: 1.25rem;
  }

  .logo {
    left: 1.25rem;
  }

  .logo img {
    height: 5.2rem;
  }

  .bottom_block {
    padding: 4rem 2rem;
  }

  .bottommost_block {
    padding: 3rem 2rem;
    overflow-wrap: anywhere;
  }

  .divisions .horizontal_info_panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1rem;
  }

  .divisions .info_block + .info_block {
    border-left: none;
    border-top: 1px solid #E5E7EB;
    padding-top: 1.5rem;
  }

  .top_bar_bonus {
    display: none;
  }

}