* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}



html {
  font-size: calc(14px + 0.390625vw);
  line-height: 120%;
  scroll-behavior: smooth;
  background-color: #ffffff;
}

:root {
  --accent-color: #e952a5;
}

main {
  width: 100%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
  padding-bottom: 0.8em;
  flex-wrap: wrap;
  position: fixed;
  top: -15px;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  transition: background-color 0.3s;
  pointer-events: auto;
}

/* Hide Links specifically when scrolling down */
.nav-hidden .nav-links {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

nav:hover {
  background-color: #ffffff;
}

nav.nav-scrolled {
  background-color: #ffffff;
}

nav.nav-scrolled .logo {
  width: 550px;
}

nav.nav-scrolled .logo img {
  height: 120px;
}

.logo {
  width: 350px; 
  padding-left: 1.5em; 
  margin-top: 15px; 
  transition: width 0.3s ease;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 100%;
  display: block; 
  object-fit: contain;
  object-position: left;
  transition: height 0.3s ease;
}

.nav-links {
  flex: 1;
  display: flex;
  margin-top: 25px;
  justify-content: center;
  vertical-align: middle;
  gap: 1.5em;
  font-size: 1em;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-language-toggle {
  display: none !important;
}
.nav-links:visited {
  color: #000000;
}

h2 {
  font-family: "inter", sans-serif;
  font-size: 1.5em;
  font-weight: 900;
  text-transform: uppercase;
color: #000;

}

h3 {
  font-family: "inter", sans-serif;
  font-size: 1em;
  font-weight: 900;
  text-transform: uppercase;
color: #000;

}

p {
  font-family: "inter", sans-serif;
  font-size: 1em;
  font-weight: 400;
  line-height: 125%;
  color: #000;
}
p a:link {
  text-decoration: none;
  color: #000;
}
p a:hover {
  color: var(--accent-color);
}
p a:active {
  color: var(--accent-color);
}
p a:visited {
  color: #000000;
}


.nav-links a {
  text-decoration: none;
  color: #000000;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  margin-left: 1em;
}

.nav-links a span {
  transition: color 0.3s;
}

nav .nav-links a:hover span,
nav .nav-links a:active span,
nav .nav-links a.active span {
  color: var(--accent-color);
}

.spinner-container {
  position: relative;
  margin-right: 2em;
  margin-top: 15px;
  z-index: 100;
  pointer-events: auto;
  cursor: pointer;
}

.spinner-text {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 10px;
  opacity: 0;
  transition: opacity 0.3s;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  color: var(--accent-color);
  background-color: transparent;
  padding: 0;
  border: none;
  letter-spacing: 0.2em;
  font-size: 0.8em;
}

.spinner-container:hover .spinner-text {
  opacity: 1;
}

.spinner {
  width: 70px;
  height: 70px;
  background-image: url('images/Cassette.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.hero {
  width: 100%;
  height: calc(100vh - 100px);
  background-image: url('images/bg1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
  margin-bottom: 0;
  margin-top: 100px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}


.banner-wrapper {
  width: 110%;
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding: 1em 0;
  z-index: 3;
  pointer-events: none;
  rotate: -5deg;
  mix-blend-mode: difference;
}

.banner {
  width: 110%;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  white-space: nowrap;
  box-sizing: border-box;
  color: #ffffff;
  font-size: 5em;
  align-items: center;
  margin: 1em;
}

.h1 a:hover {
  color: var(--accent-color);
}

h1 {
  color: rgb(0, 0, 0);
  font-size: 5em;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  flex-direction: row;
  line-height: 100%;
}
.bigtext {
  font-family: "Inter", sans-serif;
  min-height: 10vh;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  height: auto;
  padding: 1.5em;
  color: #000000;
  border-top: #000000 2px solid;
  border-bottom: #000000 2px solid;
  flex-wrap: wrap;
  gap: 2em;
  text-align: left;
}

.bigtext h1 {
  margin: 0;
  width: 100%;
  text-align: left;
}

.bigtext article {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 2em;
  line-height: 125%;
  width: 100%;
  margin: 0;
  text-align: left;
  border-left: 2px solid #000000;
  padding-left: 1em;
  margin-left: -1em;
}

.bigtext button {
  margin: 1em auto;
  margin-left: 0;
}
button {
padding: 0.5em 1em;
font-family: "Inter", sans-serif;
font-weight: 800;
font-size: 1em;
line-height: 125%;
color: #ffffff;
border: none;
cursor: pointer;
text-decoration: none;
transition: color 0.3s;
background-color: var(--accent-color);
}

button:hover {
  color: #000000;
  background-color: #ffffff;
  border: 2px solid #000000;
}

button a {
  text-decoration: none;
  color: inherit;
}



.sticky-parent {
  height: 800vh;
  width: 100%;
  position: relative;
  z-index: 2;
  background-color: #fff;
  margin-top: 100vh;
}

.sticky-scroll-view {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  scroll-behavior: auto;
}


.horizontal-track {
  display: flex;
  height: 100%;
  width: 500vw; /* 5 slides * 100vw */
  gap: 0;
}

.slide-container {
  display: flex;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 15vw;
}

.horizontal-track .bigtext,
.horizontal-track .image-row {
  height: auto;
  width: auto;
  min-width: auto;
  max-width: 100%;
  flex: 1;
}
.image-row figure img{
  height: 800px;
  width: 800px;
} 

.page-hero {
  width: 100%;
  height: 33vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  margin-top: 100px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/17.jpg') no-repeat center;
  background-size: cover;
  z-index: -1;
  transition: filter 0.3s ease;
}

.hero-join::before {
  background-image: url('images/21_b.jpg');
}

.hero-rules::before {
  background-image: url('images/21_b.jpg');
}

.hero-how::before {
  background-image: url('images/21_b.jpg');
}

.hero-where::before {
  background-image: url('images/21_b.jpg');
}

.hero-when::before {
  background-image: url('images/21_b.jpg');
}
.hero-what::before {
  background-image: url('images/21_b.jpg');
}

html.invert-colors .page-hero::before {
  filter: invert(1);
}

.content-wrapper {
  position: relative;
  z-index: 10;
  background-color: #fff;
  margin-top: calc(33vh + 100px);
  padding-top: 2em;
  min-height: 100vh;
}

.split-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  margin-left: 0;
  width: 100%;
  gap: 0;
}
.routes-table {
  margin-top: 2em;
  border-top: 1px solid #000;
}

.route-row {
  border-bottom: 1px solid #000;
}

.route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 0;
  padding-left: 0.5em;
  padding-right: 0.5em;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.route-header:hover {
  background-color: var(--accent-color);
}

.route-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1em;
  display: flex;
  flex-direction: column;
}

.route-details p {
  margin: 1em 0;
}

.route-row.active .route-details {
  max-height: 200px;
  padding-bottom: 1em;
}

.route-btn {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: var(--accent-color);
  color: #fff;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin-top: 0.5em;
  align-self: flex-end;
}

.route-btn:hover {
  background-color: #fff;
  color: #000;
  border: 2px solid #000000;
}
.split-left,
.split-right {
  flex: 1;
  width: 50%;
}

.split-left {
  text-align: left;
  padding: 2em;
  position: sticky;
  top: 150px;
  height: fit-content;
}

.split-left button {
  margin-top: 2em;
}

.split-left h2 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.split-left p {
  margin-bottom: 1em;
}

.split-right {
  display: flex;
  justify-content: center;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.hero-content h1 {
  font-size: 4em;
  margin: 0;
  text-transform: uppercase;
  font-family: "inter", sans-serif;
}

.page-marquee {
  width: 100%;
  overflow: hidden;
  background: transparent;
  color: #fff;
  padding: 0;
  white-space: nowrap;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.page-marquee-track {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.page-marquee h1 {
  font-family: "Inter", sans-serif;
  font-size: 5em;
  font-weight: 900;
  text-transform: uppercase;
  display: inline;
  margin: 0;
  color: #ffffff;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.horizontal-track .bigtext,
.horizontal-track .image-row {
  height: auto;
  width: auto;
  min-width: auto;
  max-width: 50%;
  border: none;
  justify-content: center;
  align-items: flex-start;
  padding: 1em;
  box-sizing: border-box;
  flex-direction: column;
  text-align: left;
}

.vertical-scroll-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 2em;
}

.scroll-image-container {
  width: 100%;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10vh;
  position: relative;
  overflow: hidden;
}

.scroll-image-container img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}



.image-row {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}

.image-row img {
  min-width: 25%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-row img:hover {
  transform: scale(1.05);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollText 45s linear infinite;
}

.marquee-content {
  flex-shrink: 0;
  padding-right: 0;
}

@keyframes scrollText {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

footer {
  background-color: #000;
  font-family: "inter";
  width: 100%;
  color: #eee;
  font-family: "Inter", sans-serif;
  z-index: 3;
  position: relative;
  overflow: hidden;
}





.calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  font-family: "Inter", sans-serif;
  text-align: left;
}

.calendar-table th {
  border-bottom: 2px solid #000;
  padding: 1em 0.5em;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1em;
}

.calendar-table td {
  border-bottom: 1px solid #000000;
  padding: 1em 0.5em;
  font-weight: 400;
}

.calendar-table tr:last-child td {
  border-bottom: none;
}

.calendar-table tr:hover {
  background-color: var(--accent-color);
}


/* Mobile Optimization */




.sponsors {
  padding-top: 3em;
  background-color: #ffffff;
  text-align: center;
  position: sticky;
  top: 100px;
  min-height: 45vh;
  z-index: 10;
  margin-bottom: -4em;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5em; /* Reduced gap between logos */
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.sponsors-grid a,
.sponsor-link,
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.sponsor-link img {
  width: 100%;
  max-width: 80%;
  height: 100%;
  max-height: 100px;
  object-fit: contain;
  padding: 0.5em; /* Reduced padding inside the image element to bring logos visually closer */
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.social-link img {
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sponsor-link .logo-hover,
.social-link .logo-hover {
  position: absolute;
  opacity: 0;
}

.sponsor-link:hover .logo-default,
.social-link:hover .logo-default {
  opacity: 0;
}

.sponsor-link:hover .logo-hover,
.social-link:hover .logo-hover {
  opacity: 1;
  transform: scale(1.08);
}



.instagram-feed {
 padding-top: 2em;
  padding-bottom: 5em; /* Increased bottom padding for breathing room */
  background-color: #ffffff;
  text-align: center;
  min-height: 85vh; /* Increased to allow padding space */
  max-height: 85vh; /* Increased to allow padding space */
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.instagram-feed h1 {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  margin-bottom: 1em;
  color: #000;
  padding-top: 1.5em;
}

.instagram-feed a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
}

.instagram-feed a:hover h1 {
  color: var(--accent-color);
}

.instagram-track {
  display: flex;
  width: max-content;
  animation: scrollFeed 60s linear infinite;
  gap: 1em;
}

.feed-item {
  width: 500px;
  aspect-ratio: 1/1;
  background-color: #f5f5f5;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.feed-item:hover {
  transform: scale(1.1);
}

.feed-item-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.feed-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-item-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.feed-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 1.5em 1em 1em;
  font-family: "Inter", sans-serif;
  font-size: 0.9em;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feed-item:hover .feed-item-caption {
  opacity: 1;
}

footer {
  background-color: #000;
  font-family: "inter";
  width: 100%;
  height: 28vh;
  color: #eee;
  font-family: "Inter", sans-serif;
  z-index: 3;
  position: relative;
  overflow: hidden;
}

.footer-logo {
  color: white;
  position: relative;
  bottom: -5em;
  padding-top: 1.5em;
  min-width: 100vw;
  margin-top: -8em;
  pointer-events: none;
}

footer-p {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  font-size: 1.5em;
  font-weight: 600;
  text-transform: uppercase;
  padding-left: 2em;
  padding-top: 1.5em;
  text-align: left;
}

footer-p a:link {
  color: #fff;
  text-decoration: none;
}
footer-p a:visited {
  color: #fff;
}
footer-p a:hover {
  color: var(--accent-color);
}
footer-p a:active {
  color: #fff;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 2em;
  margin: 1.5em 0;
  align-items: center;
  padding-right: 5em;
}

/* Base sizing for the crossfading icons */
.social-links .social-link {
  width: 50px;
  height: 50px;
}

.social-links .social-link img {
  width: 100%;
  height: 100%;
}



@keyframes scrollFeed {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

html {
  transition: filter 0.3s ease;
}

html.invert-colors {
  filter: invert(1);
  --accent-color: #16ad5a;
}
html.invert-colors img,
html.invert-colors video {
  filter: invert(1) !important;
}

html.invert-colors .logo img,
html.invert-colors .footer-logo img,
html.invert-colors .social-link .logo-default,
html.invert-colors .sponsor-link .logo-default { filter: none !important; }

.video-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  position: sticky;
  top: 100px;
  justify-content: center;
  background-color: #000;
  z-index: 1;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2em;
  left: 50%;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 0.7em;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  z-index: 1000;
  pointer-events: none;
  animation: bounce 2s infinite;
}

.scroll-indicator p {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.2em;
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
}

.scroll-indicator .arrow {
  font-size: 1.5em;
  margin-top: 0.2em;
  font-weight: bold;
  color: #ffffff;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (max-width: 1024px) {
  .sticky-parent {
    height: auto !important;
    margin-top: 0;
  }
  
  .sticky-scroll-view {
    position: static;
    height: auto;
    overflow: visible;
  }

  .horizontal-track {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: auto;
    gap: 0;
  }

  .slide-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: auto;
    padding: 3em 2em;
    align-items: center;
    border-bottom: 2px solid #000;
  }
  
  .bigtext {
    width: 100%;
    margin: 0;
    padding: 2em;
    border: none;
    text-align: center;
    align-items: center;
  }

  .bigtext h1 {
    font-size: 3.5em;
    padding: 0;
    text-align: center;
    width: 100%;
  }

  .bigtext article {
    width: 100%;
    margin: 1em 0;
    border-left: none;
    padding-left: 0;
    text-align: center;
  }

  .bigtext button {
    margin: 1em auto;
    display: block;
  }

  .image-row {
    flex-direction: column;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0;
    gap: 0;
  }

  .image-row img {
    width: 100vw;
    min-width: unset;
  }

  .horizontal-track .bigtext, 
  .horizontal-track .image-row {
    max-width: 100%;
  }

  .split-layout {
    flex-direction: column;
  }

  .split-left, .split-right {
    width: 100%;
    padding: 2em;
    position: static;
  }

  .sponsors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    padding: 0 1em;
  }
  
  .sponsors {
    height: auto;
  }

  .video-container {
    height: 60vh;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  /* Navigation & Logos */
  .burger-menu {
    position: absolute; /* Re-declare absolute positioning for mobile explicitly */
    right: 0.5em; /* Reset positioning since spinner is hidden on mobile AND moved further right */
    top: 50%; /* Center vertically to logo */
    transform: translateY(-50%); /* Adjust absolute top positioning so strictly middle */
  }

  nav {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5em;
    padding-bottom: 2em;
  }

  .nav-links {
    justify-content: center;
    width: 100%;
  }

  .nav-links a {
    margin-left: 0;
    font-size: 0.85em;
  }

  .logo {
    width: 80%;
    max-width: 80%; 
    padding-top: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  nav.nav-scrolled .logo {
    width: 90%;
    max-width: 90%; 
    padding-top: 0.5em;
    display: absolute;
    align-items: center;
    justify-content: center;
  }

  nav.nav-scrolled .logo img {
    height: 70px !important;
    max-height: 70px !important;
  }

  .footer-logo img {
    max-width: 100vw;
    height: auto;
  }
  
  .footer-logo {
    min-width: 100%;
    }

  /* Video */
  .video-container {
    height: 50vh;
  }
  
  .video-container video {
    height: 100%;
    object-fit: cover;
  }

  /* Horizontal and Slides */
  .sticky-parent {
    height: auto !important;
    margin-top: 0;
  }
  
  .sticky-scroll-view {
    position: static;
    height: auto;
    overflow: visible;
  }

  .horizontal-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 0;
  }

  .slide-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    height: auto;
    padding: 2em 0; /* Remove horizontal padding */
    align-items: center;
    border-bottom: 2px solid #000;
  }

  /* Typography & Sections */
  h1 {
    font-size: 3.5em;
    text-align: center;
    width: 100%;
  }

  .hero {
    height: 90vh;
    align-items: center;
    overflow: hidden;
    position: relative;
    justify-content: center;
  }

  .hero::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/4m.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: filter 0.3s ease;
  }

  .banner {
    width: 100%;
    transform: none;
    left: 0;
    top: 0;
    margin: 2em 0;
    font-size: 3.5em; /* Normalized to match standard h1 */
  }
  
  .bigtext {
    width: 100%;
    margin: 0;
    padding: 1.5em 0; /* Removing horizontal padding so 100vw calculations remain balanced */
    border: none;
    text-align: center;
    align-items: center;
  }

  .bigtext h1 {
    font-size: 3.5em; /* Normalized to match standard h1 */
    padding: 0;
    text-align: center;
    width: 100%;
  }

  .bigtext article {
    width: 100%;
    margin: 1em 0;
    border-left: none;
    padding-left: 0;
    text-align: center;
    font-size: 1.2em; /* slightly reduced */
  }

  .bigtext button {
    font-size: 0.7em; /* Reduced by 30% */
    width: 56%; /* Reduced from 80% to 56% (30% reduction) */
    margin: 1em auto;
    display: block; /* explicitly make block */
  }
  
  .bigtext hgroup {
    margin: 0;
    text-align: center;
    width: 100%;
  }

  .image-row {
    flex-direction: column;
    align-items: center; /* Center the images inside the flex column */
    width: 100%;
    padding: 0;
    gap: 0;
  }

  .image-row img,
  .image-row figure,
  .image-row figure img {
    width: 98vw; /* Slight margins on left and right */
    margin-left: -0.71em; 
    padding: 0;
    height: auto !important;
    max-height: none;
    min-width: unset;
    border: none;
    object-fit: cover;
  }
  
  .horizontal-track .bigtext, 
  .horizontal-track .image-row {
    max-width: 100%;
  }

  /* Internal Pages (When / Where) */
  .split-layout {
    flex-direction: column;
  }

  .split-left, .split-right {
    width: 100%;
    padding: 1em;
    position: static;
  }
  
  .split-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .scroll-image-container {
    width: 100%;
    max-width: 100%;
  }

  .scroll-image-container img {
    width: 100%;
    height: auto;
  }

  .page-hero {
    height: 25vh;
    margin-top: 100px;
  }
  
  .content-wrapper {
    margin-top: calc(25vh + 100px);
  }

  .page-marquee h1 {
    font-size: 3.5em; /* Normalized to match standard h1 */
  }

  /* Sponsors */
  .sponsors {
    height: auto;
    padding: 2em 1em;
    margin-bottom: 0;
  }

  .sponsors .sponsors-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1em;
    width: 100%;
    max-width: 100%;
  }

  .sponsor-link {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sponsor-link img {
    max-height: 50px; /* make them consistent and not huge */
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Instagram Feed */
  .feed-item {
    width: 60vw; /* Fix horizontal overflow */
  }
  
  .instagram-feed h1 {
    font-size: 3.5em; /* Normalized to match standard h1 */
  }

  /* Other */
  .spinner-container {
    display: none !important;
  }

  .calendar-table {
    display: block;
    overflow-x: auto;
  }

  /* Footer layout on mobile */
  footer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 28vh;
  }

  footer-p {
    position: static;
    padding-left: 0;
    padding-top: 1em;
    text-align: center;
    width: 100%;
  }

  .footer-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    bottom: auto;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 2em;
    min-width: 100%;
    pointer-events: none;
  }

  .social-links {
    position: absolute;
    bottom: 1em;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    padding-right: 0;
    gap: 1.5em;
    margin: 0;
  }

  .social-links .social-link {
    width: 37.5px;
    height: 37.5px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 3em; /* Base H1 normalized down for extra small screens */
  }
  
  .banner {
    font-size: 3em; /* Normalized */
  }
  
  .bigtext h1 {
    font-size: 3em; /* Normalized */
  }
  
  .bigtext article {
    font-size: 1.6em;
  }
  
  .bigtext button {
    font-size: 1.4em; /* Reduced by 30% */
  }
  
  .sponsors .sponsors-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .feed-item {
    width: 100vw;
  }
  
  .nav-links a {
    font-size: 2em;
    margin-left: 0;
    margin-right: 0;
  }
  
  .page-marquee h1 {
    font-size: 3em; /* Normalized */
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 120vh;
  }

  .banner-wrapper {
    top: 60%;
  }
  
  .slide-container {
    padding: 1em;
  }
  
  .page-hero {
    height: 40vh;
  }
  
  .content-wrapper {
    margin-top: calc(40vh + 80px);
  }
  
  .video-container {
    height: 80vh;
  }
  
  nav {
    padding-bottom: 0.5em;
  }
}

/* --- BURGER MENU STYLES --- */
.burger-menu {
  display: none;
  cursor: pointer;
  z-index: 1001; /* Above the nav links */
}

.burger-menu div {
  width: 45px;
  height: 6px;
  background-color: var(--accent-color);
  margin: 9px;
  transition: all 0.3s ease;
}

/* Hide Spinner when menu is active */
.spinner-container.hide-on-mobile-menu {
  display: none !important;
}

@media (max-width: 1366px) {
  .spinner-container {
    margin-right: 2em;
    margin-top: 15px;
  }

  /* Show Burger Icon */
  .burger-menu {
    display: block;
    position: absolute;
    right: 8em; /* Adjusted to fit to the left of the spinner */
    top: 50%; /* Center vertically to logo */
    transform: translateY(-50%); /* Adjust absolute top positioning so strictly middle */
  }

  /* Horizontal Section Downsizing */
  .slide-container {
    padding: 100px 5vw 0 5vw;
  }

  .image-row figure img {
    height: 50vh;
    width: auto;
    max-width: 100%;
  }

  /* Reduce Titles and Text by 20% */
  h1 {
    font-size: 4em; /* Original is 5em */
  }

  .bigtext article {
    font-size: 1.6em; /* Original is 2em */
  }

  /* Full Screen Overlay */
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: right 0.5s ease;
    z-index: 1000;
  }

  /* When Active */
  .nav-active {
    right: 0;
  }

  /* Larger Links for Mobile Nav */
  .nav-links a {
    font-size: 2em;
    margin: 0.5em 0;
  }

  .mobile-language-toggle {
    display: block !important;
    border-top: 2px solid #000;
    padding-top: 0.5em;
    margin-top: 0.5em !important;
    width: fit-content;
  }

  /* Burger Animation Classes */
  .toggle .line1 {
    transform: rotate(-45deg) translate(-10px, 10px);
  }
  .toggle .line2 {
    opacity: 0;
  }
  .toggle .line3 {
    transform: rotate(45deg) translate(-10px, -10px);
  }
}

@media (max-width: 768px) {
  .burger-menu {
    right: 0.5em; /* Guarantee the reset overrides the tablet breakpoint */
  }
}

/* Language Switch Styles */
html[lang="en"] .en { display: inline !important; }
html[lang="en"] .fr { display: none !important; }
html[lang="fr"] .en { display: none !important; }
html[lang="fr"] .fr { display: inline !important; }

/* Handle block elements */
html[lang="en"] .block-en { display: block !important; }
html[lang="en"] .block-fr { display: none !important; }
html[lang="fr"] .block-en { display: none !important; }
html[lang="fr"] .block-fr { display: block !important; }

/* Handle flex elements */
html[lang="en"] .flex-en { display: flex !important; }
html[lang="en"] .flex-fr { display: none !important; }
html[lang="fr"] .flex-en { display: none !important; }
html[lang="fr"] .flex-fr { display: flex !important; }
