.page-index {
  background-color: #0D0E12;
  color: #FFF3E6;
  padding-top: 10px; /* Small top padding for first section */
}

.page-index__ticker-section {
  background-color: #17191F;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  border-bottom: 1px solid #A84F0C;
}

.page-index__ticker-content {
  display: inline-block;
  animation: page-index__marquee 20s linear infinite;
}

.page-index__ticker-text {
  margin: 0;
  padding: 0 16px;
  font-size: 0.9em;
  line-height: 1.5;
  color: #FFF3E6;
}

@keyframes page-index__marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.page-index__hero-slider {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 50vw, 800px);
  background-color: #100224;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.page-index__hero-slide--active {
  opacity: 1;
  position: relative;
}

.page-index__hero-visual--desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: none; /* Hidden by default, shown on desktop */
}

.page-index__hero-visual--desktop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-index__hero-character {
  position: absolute;
  bottom: 0;
  right: 10%; /* Adjust as needed */
  max-height: 80%;
  width: auto;
}

.page-index__hero-copy--desktop {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 20px;
  max-width: 600px;
  margin-right: auto; /* Push content to left */
  margin-left: 10%; /* Align with character */
  box-sizing: border-box;
  display: none; /* Hidden by default, shown on desktop */
}

.page-index__hero-tagline {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFF3E6;
}

.page-index__jackpot-counter {
  background: linear-gradient(#ff9500,#ff5e3a);
  border-radius: 10px;
  padding: 15px 25px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #FFF3E6;
}

.page-index__jackpot-label {
  font-size: 0.9em;
  text-transform: uppercase;
  opacity: 0.8;
}

.page-index__jackpot-amount {
  font-size: 2.8em;
  font-weight: bold;
  letter-spacing: 1px;
}

.page-index__hero-sub {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #FFF3E6;
}

.page-index__btn-cta {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__hero-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.page-index__hero-arrow {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #FFF3E6;
  font-size: 1.5em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__hero-arrow--prev::before { content: '‹'; }
.page-index__hero-arrow--next::before { content: '›'; }

.page-index__hero-dots {
  display: flex;
  gap: 8px;
}

.page-index__hero-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
}

.page-index__hero-dot--active {
  background: #FFF3E6;
}

.page-index__hero-visual--mobile, .page-index__hero-copy--mobile {
  display: none; /* Hidden by default, shown on mobile */
}

.page-index__brand-intro {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-index__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(90deg, #FFB04D, #FFA53A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.page-index__intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  color: #FFF3E6;
}

.page-index__popular-games, .page-index__category-section, .page-index__winner-section, .page-index__blog-section, .page-index__faq-section, .page-index__promo-section {
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 20px;
}

.page-index__category-section {
  background-color: #17191F;
  margin-bottom: 20px;
}

.page-index__category-section--slots, .page-index__category-section--lottery {
  background-color: #0D0E12;
}

.page-index__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFF3E6;
}

.page-index__section-description {
  font-size: 1em;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #FFF3E6;
}

.page-index__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__game-tile {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
  border: 1px solid #A84F0C;
}

.page-index__game-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-index__sports-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__sports-text {
  text-align: left;
  flex: 1;
}

.page-index__sports-image {
  flex: 1;
}

.page-index__sports-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__promo-card {
  background-color: #17191F;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFF3E6;
}

.page-index__promo-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__btn-link {
  display: inline-block;
  color: #FFA53A;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  padding: 8px 15px;
  border: 1px solid #FFA53A;
  border-radius: 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-index__btn-link:hover {
  background-color: #FFA53A;
  color: #0D0E12;
}

.page-index__winner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__winner-card {
  background-color: #17191F;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  position: relative;
  border: 1px solid #A84F0C;
}

.page-index__winner-card img {
  border-radius: 50%;
  flex-shrink: 0;
  
  
  object-fit: cover;
  min-
  min-
}

.page-index__winner-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-index__game-name {
  font-weight: bold;
  font-size: 1.1em;
  color: #FFF3E6;
}

.page-index__user-id, .page-index__winner-info time {
  font-size: 0.85em;
  color: #FFF3E6;
  opacity: 0.7;
}

.page-index__won-amount {
  position: absolute;
  bottom: 15px;
  right: 20px;
  text-align: right;
  color: #FFB04D;
}

.page-index__won-label {
  display: block;
  font-size: 0.8em;
  opacity: 0.8;
}

.page-index__won-amount strong {
  font-size: 1.4em;
  font-weight: bold;
}

.page-index__blog-section {
  background-color: #17191F;
}

.page-index__post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.page-index__post-card {
  background-color: #0D0E12;
  border-radius: 15px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C;
  display: flex;
  flex-direction: column;
}

.page-index__post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-index__post-title {
  font-size: 1.25em;
  font-weight: 600;
  margin: 20px 20px 10px;
  line-height: 1.4;
}

.page-index__post-title a {
  color: #FFF3E6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-index__post-title a:hover {
  color: #FFA53A;
}

.page-index__post-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  color: #FFF3E6;
  opacity: 0.8;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-index__load-more {
  margin-top: 30px;
}

.page-index__faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-index__faq-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index__faq-question {
  display: block;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: #FFF3E6;
  position: relative;
}

.page-index__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  transition: transform 0.2s ease;
}

.page-index__faq-item[open] .page-index__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-index__faq-answer {
  padding: 0 25px 18px;
  font-size: 0.95em;
  line-height: 1.6;
  color: #FFF3E6;
  opacity: 0.8;
}

.page-index__brand-strip {
  padding: 50px 20px;
  text-align: center;
}

.page-index__brand-strip img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  min-width: 200px;
  min-height: 200px;
}

/* Desktop specific styles */
@media (min-width: 850px) {
  .page-index__hero-visual--desktop {
    display: block;
  }
  .page-index__hero-copy--desktop {
    display: flex;
  }
  .page-index__hero-character {
    max-height: 90%;
  }
  .page-index__sports-content {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .page-index__sports-image {
    order: 2; /* Image on right */
  }
  .page-index__sports-text {
    order: 1;
    padding-right: 30px;
  }
}

/* Mobile specific styles */
@media (max-width: 849px) {
  .page-index__hero-slider {
    min-height: auto;
  }
  .page-index__hero-slide {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }
  .page-index__hero-visual--desktop, .page-index__hero-copy--desktop {
    display: none;
  }
  .page-index__hero-visual--mobile {
    display: block;
    aspect-ratio: 4/3;
    width: 100%;
    overflow: hidden;
  }
  .page-index__hero-visual--mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__hero-copy--mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #100224;
    width: 100%;
    box-sizing: border-box;
  }
  .page-index__hero-tagline {
    font-size: 1.8em;
  }
  .page-index__jackpot-counter {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .page-index__jackpot-amount {
    font-size: clamp(1.25rem, 6.5vw, 2.5rem);
    line-height: 1.2;
    word-break: break-all;
    overflow-wrap: anywhere;
  }
  .page-index__btn-cta {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    min-height: 44px;
  }
  .page-index__hero-nav {
    position: relative;
    bottom: auto;
    transform: none;
    margin-top: 20px;
    padding-bottom: 20px;
  }
  .page-index__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-index__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__winner-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-index__post-grid {
    grid-template-columns: 1fr;
  }
  .page-index__sports-content {
    flex-direction: column;
  }
  .page-index__sports-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 549px) {
  .page-index__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .page-index__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-index__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }
  .page-index__jackpot-amount {
    font-size: clamp(1rem, 7vw, 2em);
  }
  .page-index__hero-tagline {
    font-size: 1.5em;
  }
  .page-index__winner-grid {
    grid-template-columns: 1fr;
  }
  .page-index__ticker-text {
    font-size: 0.8em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-index__ticker-content {
    animation: none;
  }
  .page-index__hero-slider .page-index__hero-slide {
    transition: none;
  }
}