/* --- PAGE LAYOUT (Desktop) --- */
.page-layout {
  display: flex;
  width: 100%;
  height: auto;
  justify-content: space-around;
}

/* --- SWIPER CONTAINER --- */
.hero-img {
  flex: 0 0 75%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  list-style: none;
  z-index: 1;
}

.swiper {
  position: relative;
}

/* --- HEADER OVERLAY --- */
.swiper-header-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease; /* Smooth transition for layout changes */
}

/* --- LOGO STYLING & TOGGLE --- */
.brand-logo, .swiper-controls {
  padding: 0;
  width: 50%;
}
.brand-logo {
  opacity: 1;
  transition: opacity 0.3s ease;
}
.brand-logo img {
  width: 160px;
  max-width: 100%;
}

/* --- CONTROLS ALIGNMENT FIX --- */
.swiper-pagination {
  font-size: 0.9rem;
  color: var(--theme-ui-colors-white);
}
.swiper-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding-right: 2em;
}
.swiper-button-prev, .swiper-button-next {
  border: 1px solid var(--theme-ui-colors-grey);
  background-color: var(--theme-ui-colors-white);
  box-shadow: none !important;
}

/* VOTE AND WIN */
.vote-section {
  flex: 0 0 20%;
  border: 1px solid var(--theme-ui-colors-grey);
}
.vote-section p {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 10px 0;
}
.win-prizes img {
  width: 100%;
}
.voting-widget {
  position: relative;
}
.scrollbar-indicator {
  position: absolute;
  top: 15%;
  right: 0;
  width: 5px;
  height: 30px;
  background-color: var(--theme-ui-colors-secondary);
  border-radius: 20px;
  animation: scroll 3s infinite;
  margin: 0 5px;
  z-index: 1;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(2em);
  }
}

/* --- SLIDE INTERNALS --- */
.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
}
.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  background: var(--theme-ui-colors-white);
}

.slide-inner {
  display: flex;
  width: 100%;
  height: 550px;
  max-height: 100%;
}

/* 1. FULL VIDEO SLIDE (Slide 1 - 100% Desktop) */
.slide-video, .video-js {
  width: 100%;
  height: 550px;
}

/* 2. SPLIT CONTENT SLIDES (Slides 2, 3, etc. - 50/50 Desktop) */
.slide-image {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
}
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-text-area {
  width: 50%;
  height: 100%;
  position: relative;
  background: var(--theme-ui-colors-secondary);
  display: flex;
  justify-content: center;
}

.scrollable-text {
  width: 80%;
  position: absolute;
  top: 120px;
}
.scrollable-text p {
  font-size: 1.0875em;
  color: var(--theme-ui-colors-white);
}
.scrollable-text a button {
  background-color: var(--theme-ui-colors-main);
  border: none;
  border-radius: 2em !important;
  color: var(--theme-ui-colors-white);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px;
  width: 90px;
  cursor: pointer;
}
.scrollable-text a button:hover {
  background-color: var(--theme-ui-colors-white);
  border: 1px solid var(--theme-ui-colors-main);
  color: var(--theme-ui-colors-main);
}

.sponsored-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2em;
}

.logos {
  display: flex;
  gap: 10px;
}

.logos img {
  width: 120px;
}


@media (min-width: 769px) and (max-width: 1110px) {
  .wrapper {
    width: 90%;
  }
  .page-layout {
    width: 100%;
    margin: 0;
    gap: 0;
    flex-direction: column-reverse;
  }
  .slide-image {
    width: 50%;
    height: auto;
  }
}
/* --- MOBILE LAYOUT --- */
@media (max-width: 768px) {
  .wrapper {
    width: 90%;
  }
  .page-layout {
    width: 100%;
    margin: 0;
    gap: 0;
    flex-direction: column-reverse;
  }
  .hero-img{
    display: flex;
    flex-direction: column-reverse;
  }
  .voting-widget, .swiper {
    border-radius: 0;
    border: none;
    width: 100%;
    height: auto;
  }
  .slide-video {
    height: auto;
  }
  .video-js{
    height: 300px;
    max-height: 100%;
  }
  .swiper-wrapper {
    min-height: 80vh;
    height: 100%;
  }
  .slide-text-area {
    display: block !important;
    width: 100%;
    height: 440px;
    max-height: 100%;
    padding: 1em 0;
  }
  .slide-inner {
    flex-direction: column;
    height: auto;
  }

  /* Mobile Square Image */
  .slide-image {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
  }
  /* Mobile Header Positioning (Always under the square image) */
  .swiper-header-overlay {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    border-left: none;
    background: var(--theme-ui-colors-muted);
    padding: 1em;
  }

  .scrollable-text {
    position: static;
    margin: auto;
  }

  .scrollable-text p {
    font-size: 1em;
  }

  .widget-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .win-prizes {
    width: 100%;
  }
  .scrollbar-indicator {
    display: none;
  }
  .swiper-pagination {
    color: var(--theme-ui-colors-black);
    width: auto;
  }
  .swiper-controls {
    padding-right: 0;
  }
}

@media (max-width: 500px) {
  .vote-win {
    flex-direction: column;
  }
  .voting-widget {
    width: 100%;
    height: auto;
  }
}