.page-index {
  background-color: #100224;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
}

.page-index__ticker-section {
  background-color: #017439;
  padding: 12px 20px;
  overflow: hidden;
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.page-index__ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: page-index__marquee 20s linear infinite;
}

.page-index__ticker-icon {
  margin-right: 10px;
  font-size: 1.2em;
  color: #FFFF00; /* Register/Login font color for contrast */
}

.page-index__ticker-text {
  margin: 0;
  color: #FFFFFF;
  font-size: 0.95em;
}

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

.page-index__hero-section {
  position: relative;
  background-color: #017439;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-index__hero-slider {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 50vw, 800px);
}

.page-index__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

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

.page-index__hero-image--desktop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__hero-overlay-content {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly transparent background for text readability */
  border-radius: 10px;
}

.page-index__hero-tagline {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-index__jackpot-counter {
  background: linear-gradient(to right, #ff9500, #ff5e3a);
  border-radius: 8px;
  padding: 10px 20px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 15px 0;
}

.page-index__jackpot-label {
  font-size: 0.9em;
  font-weight: bold;
  color: #FFFFFF;
  text-transform: uppercase;
}

.page-index__jackpot-amount {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: bold;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-index__hero-subtext {
  font-size: clamp(1rem, 1.5vw, 1.2em);
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-index__btn-cta {
  background-color: #83a1f2;
  color: #FFFFFF;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.page-index__btn-cta:hover {
  background-color: #688cec;
}

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

.page-index__intro-section {
  padding: 40px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__main-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.page-index__description {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: #E0E0E0;
  max-width: 900px;
  margin: 0 auto;
}

.page-index__popular-games-section,
.page-index__category-section,
.page-index__features-section,
.page-index__hot-winners-section,
.page-index__top-winners-section,
.page-index__blog-section,
.page-index__faq-section,
.page-index__brand-strip-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-index__popular-games-section,
.page-index__category-section--slots,
.page-index__category-section--table-poker,
.page-index__hot-winners-section,
.page-index__blog-section {
  background-color: #0a1128; /* Slightly lighter dark background */
}

.page-index__category-section--fishing,
.page-index__category-section--lottery,
.page-index__category-section--sports,
.page-index__features-section,
.page-index__top-winners-section,
.page-index__faq-section {
  background-color: #1a2035; /* Even lighter dark background */
}

.page-index__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #FFFFFF;
}

.page-index__section-description {
  text-align: center;
  font-size: 1.1em;
  color: #E0E0E0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.page-index__game-tile {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.page-index__game-tile img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index__category-section--sports {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-index__sports-content .page-index__section-title,
.page-index__sports-content .page-index__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__sports-image {
  flex: 1;
  min-width: 400px; /* Minimum width for the image container */
}

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

.page-index__btn-sports {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register/Login font color */
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-index__btn-sports:hover {
  background-color: #a00606;
}

.page-index__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-index__feature-card {
  background-color: #017439;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__feature-card--app-download {
  background-color: #1a2035;
}

.page-index__feature-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-index__feature-description {
  font-size: 1em;
  line-height: 1.5;
  color: #E0E0E0;
  margin-bottom: 20px;
}

.page-index__app-mockup {
  width: 200px;
  height: auto;
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-index__btn-feature {
  background-color: #83a1f2;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-index__btn-feature:hover {
  background-color: #688cec;
}

.page-index__winner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-index__winner-card {
  background-color: #0a1128;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.page-index__winner-game-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff9500;
  min-width: 70px;
  min-height: 70px;
}

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

.page-index__winner-game-name {
  font-weight: bold;
  font-size: 1.1em;
  color: #FFFFFF;
}

.page-index__winner-user,
.page-index__winner-date {
  font-size: 0.9em;
  color: #B0B0B0;
}

.page-index__winner-amount-badge {
  background: linear-gradient(45deg, #ff9500, #ff5e3a);
  color: #FFFFFF;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  text-align: center;
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(10px, 10px) rotate(45deg); /* Rotate for badge effect */
  transform-origin: bottom right;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  min-width: 100px; /* Ensure badge is readable */
}

.page-index__winner-status {
  display: block;
  font-size: 0.7em;
  margin-bottom: 2px;
}

.page-index__winner-amount {
  display: block;
  font-size: 1.2em;
  white-space: nowrap;
}

.page-index__post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__post-card {
  background-color: #1a2035;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.page-index__post-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

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

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

.page-index__post-excerpt {
  font-size: 0.95em;
  color: #B0B0B0;
  margin: 0 20px 15px;
  flex-grow: 1;
}

.page-index__btn-read-more {
  background-color: #017439;
  color: #FFFFFF;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin: 0 20px 20px;
}

.page-index__btn-read-more:hover {
  background-color: #005a2d;
}

.page-index__load-more {
  text-align: center;
  margin-top: 40px;
}

.page-index__btn-load-more {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register/Login font color */
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.page-index__btn-load-more:hover {
  background-color: #a00606;
}

.page-index__accordion {
  margin-top: 30px;
}

.page-index__accordion-item {
  background-color: #0a1128;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__accordion-summary {
  display: block;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  position: relative;
  list-style: none; /* Remove default marker */
}

.page-index__accordion-summary::marker,
.page-index__accordion-summary::-webkit-details-marker {
  display: none;
}

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

.page-index__accordion-item[open] .page-index__accordion-summary::after {
  content: '-';
  transform: translateY(-50%) rotate(0deg);
}

.page-index__accordion-content {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #E0E0E0;
}

.page-index__brand-strip-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #017439;
}

.page-index__brand-logo {
  max-width: 200px;
  height: auto;
  display: inline-block;
  min-width: 200px;
  min-height: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .page-index__category-section--sports {
    flex-direction: column;
    text-align: center;
  }
  .page-index__sports-content .page-index__section-title,
  .page-index__sports-content .page-index__section-description {
    text-align: center;
  }
  .page-index__sports-image {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 849px) {
  .page-index__hero-slide--desktop {
    display: none;
  }
  .page-index__hero-slide--mobile {
    display: flex;
    flex-direction: column;
    min-height: auto; /* Allow content to define height */
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    opacity: 1;
  }
  .page-index__hero-visual {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .page-index__hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__hero-copy {
    background-color: #100224;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-index__hero-overlay-content {
    display: none; /* Hide desktop overlay content on mobile */
  }
  .page-index__jackpot-counter--mobile {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(to right, #ff9500, #ff5e3a);
    border-radius: 8px;
    margin: 15px auto;
  }
  .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__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .page-index__winner-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-index__post-grid {
    grid-template-columns: 1fr;
  }
  .page-index__post-card img {
    min-width: 200px;
    min- /* 16:9 aspect ratio for min 200px width */
  }
}

@media (max-width: 768px) {
  .page-index__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  .page-index__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-index__winner-grid {
    grid-template-columns: 1fr;
  }
  /* Ensure all images in content area are responsive and not too small */
  .page-index__popular-games-section img,
  .page-index__category-section img,
  .page-index__features-section img,
  .page-index__hot-winners-section img,
  .page-index__top-winners-section img,
  .page-index__blog-section img {
    max-width: 100%;
    height: auto;
  }
  .page-index__game-tile img {
    min- /* Adjust min-width for very small screens if necessary, but keep >= 200px for imageRequirements */
    min-
  }
  .page-index__app-mockup {
    width: 150px;
    height: auto;
  }
  .page-index__winner-game-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
  }
  .page-index__winner-amount-badge {
    font-size: 0.9em;
    padding: 6px 10px;
    min-width: 80px;
  }
}

@media (max-width: 549px) {
  .page-index__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* 2 columns for smaller mobiles */
  }
  .page-index__winner-grid {
    grid-template-columns: 1fr;
  }
  .page-index__ticker-text {
    font-size: 0.85em;
  }
  .page-index__main-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }
  .page-index__section-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }
  .page-index__hero-tagline {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }
  .page-index__hero-subtext {
    font-size: 0.9em;
  }
  .page-index__jackpot-amount {
    font-size: clamp(1.2rem, 8vw, 2.2rem);
  }
  .page-index__post-title {
    font-size: 1.2em;
  }
  .page-index__accordion-summary {
    font-size: 1.1em;
  }
}

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