.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Assuming body background is light */
}

.page-index__ticker {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #017439, #005a2e);
  color: #FFFFFF;
  padding: 10px 0;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-index__ticker-icon {
  margin-right: 10px;
  vertical-align: middle;
}

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

.page-index__ticker-text {
  display: inline-block;
  padding-right: 50px; /* Space between repeating text */
  font-size: 14px;
  vertical-align: middle;
}

@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .page-index__ticker-track {
    animation: none;
  }
}

.page-index__hero-jackpot {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  background: #100224; /* Deep purple-black base for hero */
  box-sizing: border-box;
  overflow-x: hidden;
  padding-top: 10px; /* Small top padding, relying on body padding-top */
  position: relative;
}

.page-index__hero-visual {
  order: 1;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.page-index__hero-image,
.page-index__hero-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 850px) {
  .page-index__hero-image,
  .page-index__hero-visual img {
    aspect-ratio: 16/5;
    object-fit: cover;
  }
}

.page-index__hero-copy {
  order: 2;
  position: static;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 20px 15px 40px;
  text-align: center;
  color: #FFFFFF;
}

.page-index__hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-index__jackpot-counter {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 20px auto;
  padding: 15px 20px;
  border: 3px solid;
  border-image: linear-gradient(to right, #ffb347, #ff8c00) 1;
  border-radius: 15px;
  max-width: 400px;
}

.page-index__jackpot-label {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffb347;
}

.page-index__jackpot-amount {
  display: block;
  font-size: clamp(1.25rem, 6.5vw, 2.5rem);
  font-weight: 900;
  color: #FFFFFF;
  word-break: break-all;
  line-height: 1.2;
}

.page-index__jackpot-currency {
  display: block;
  font-size: 0.875rem;
  margin-top: 4px;
  color: #f0f0f0;
}

.page-index__hero-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  margin-top: 15px;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-index__btn-cta {
  display: inline-block;
  background: #83a1f2; /* Blue pill button */
  color: #FFFFFF;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-cta:hover {
  background: #6a8cd7;
}

.page-index__intro {
  text-align: center;
  padding: 40px 15px;
  background-color: #FFFFFF;
}

.page-index__main-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* H1 title with clamp */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__text-gradient {
  background: linear-gradient(90deg, #017439, #005a2e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.page-index__lead-text {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 800px;
  margin: 0 auto;
  color: #555555;
}

.page-index__section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-index__section-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #666666;
}

.page-index__text-light {
  color: #FFFFFF;
}

.page-index__games-popular {
  padding: 60px 15px;
  background-color: #f9f9f9;
}

.page-index__game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__game-tile {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  width: 250px; /* Desktop fixed square */
  height: 250px; /* Desktop fixed square */
  transition: transform 0.2s ease;
}

.page-index__game-tile:hover {
  transform: scale(1.03);
}

.page-index__game-tile img {
  width: 250px;
  height: 250px;
  display: block;
  object-fit: cover;
  aspect-ratio: 1/1;
  border-radius: 8px;
}

.page-index__cta-buttons {
  text-align: center;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__btn-primary {
  display: inline-block;
  background: #017439;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover {
  background: #005a2e;
}

.page-index__btn-secondary {
  display: inline-block;
  background: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background: #017439;
  color: #FFFFFF;
}

.page-index__dark-section {
  background-color: #017439;
  color: #FFFFFF;
  padding: 60px 15px;
}

.page-index__dark-section .page-index__section-title {
  color: #FFFFFF;
}

.page-index__dark-section .page-index__section-lead {
  color: #e0e0e0;
}

.page-index__category-slots {
  padding: 60px 15px;
}

.page-index__category-fishing {
  padding: 60px 15px;
  background-color: #f0f0f0;
}

.page-index__category-table {
  padding: 60px 15px;
}

.page-index__category-lottery {
  padding: 60px 15px;
  background-color: #f0f0f0;
}

.page-index__category-sports {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 60px 15px;
}

.page-index__sports-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-index__sports-visual {
  flex: 1;
  max-width: 600px;
  margin: 0;
}

.page-index__sports-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-index__promo-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 60px 15px;
  background-color: #f9f9f9;
}

.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #017439;
}

.page-index__promo-visual {
  margin: 20px 0;
  width: 100%;
  max-width: 400px;
}

.page-index__promo-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-index__promo-description {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 25px;
}

.page-index__winners-hot,
.page-index__winners-top {
  padding: 60px 15px;
}

.page-index__winners-hot {
  background-color: #100224; /* Deep purple background */
}

.page-index__winners-top {
  background-color: #f9f9f9;
}

.page-index__winner-title {
  text-align: center;
  line-height: 1.1;
  margin-bottom: 40px;
}

.page-index__winner-title-line {
  display: block;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  background: linear-gradient(180deg, #ffb347, #ff8c00);
  -webkit-background-clip: text;
  color: transparent;
  text-transform: uppercase;
}

.page-index__winner-title-big {
  display: block;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  color: rgba(255, 210, 0, .45);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.page-index__winner-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__winner-row {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  width: 100%;
  background-color: #FFFFFF;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__winners-hot .page-index__winner-row {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  box-shadow: none;
}

.page-index__winners-hot .page-index__winner-game {
  color: #FFFFFF;
}

.page-index__winners-hot .page-index__winner-user,
.page-index__winners-hot .page-index__winner-date {
  color: #e0e0e0;
}

.page-index__winner-thumb {
  position: relative;
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
}

.page-index__winner-thumb img {
  
  
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.page-index__winner-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #7b2cbf; /* Purple badge */
  color: #fff;
  text-align: center;
  line-height: 1.1;
  clip-path: polygon(50% 0%,61% 10%,75% 6%,80% 20%,95% 22%,90% 36%,100% 50%,90% 64%,95% 78%,80% 80%,75% 94%,61% 90%,50% 100%,39% 90%,25% 94%,20% 80%,5% 78%,10% 64%,0% 50%,10% 36%,5% 22%,20% 20%,25% 6%,39% 10%);
}

.page-index__winner-badge em {
  font-style: normal;
  font-size: .65rem;
}

.page-index__winner-badge strong {
  font-size: .75rem;
  font-weight: bold;
}

.page-index__winner-badge--overlay {
  display: none; /* Hidden by default on desktop */
  position: absolute;
  top: -6px;
  right: -6px;
  width: 52px;
  height: 52px;
}

.page-index__winner-badge--side {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  margin-left: auto;
  display: flex; /* Visible by default on desktop */
}

.page-index__winner-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.page-index__winner-game {
  font-weight: 700;
  color: #111;
}

.page-index__winner-user,
.page-index__winner-date {
  font-size: .875rem;
  color: #666;
}

.page-index__blog-section {
  padding: 60px 15px;
  background-color: #FFFFFF;
}

.page-index__blog-section .page-index__section-title {
  color: #017439;
}

.page-index__blog-section .page-index__section-lead {
  color: #666666;
}

.page-index__post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-index__post-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-index__post-thumbnail {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
  margin: 0;
}

.page-index__post-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__post-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__post-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #017439;
}

.page-index__post-title a {
  color: #017439;
  text-decoration: none;
}

.page-index__post-title a:hover {
  text-decoration: underline;
}

.page-index__post-excerpt {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__btn-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
}

.page-index__btn-link:hover {
  text-decoration: underline;
}

.page-index__faq-section {
  padding: 60px 15px;
}

.page-index__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}

details.page-index__faq-item summary.page-index__faq-question:hover {
  background: #f5f5f5;
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

.page-index__faq-answer p {
  margin-bottom: 10px;
}

.page-index__brand-bar {
  text-align: center;
  padding: 30px 15px;
  background-color: #017439;
  color: #FFFFFF;
}

.page-index__brand-logo-link {
  display: inline-block;
  margin-bottom: 15px;
}

.page-index__brand-logo-link img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.page-index__copyright {
  font-size: 0.9rem;
  color: #e0e0e0;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-index__game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__game-tile,
  .page-index__game-tile img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
  .page-index__category-sports {
    flex-direction: column;
    gap: 20px;
  }
  .page-index__sports-content,
  .page-index__sports-visual {
    max-width: 100%;
    text-align: center;
  }
  .page-index__promo-dual {
    grid-template-columns: 1fr;
  }
  .page-index__winner-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .page-index__post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 849px) {
  .page-index__hero-image,
  .page-index__hero-visual img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: unset !important; /* Important for mobile to prevent cropping */
    object-fit: contain !important; /* Important for mobile to prevent cropping */
    max-height: none !important; /* Important for mobile to prevent cropping */
    display: block !important;
  }
  .page-index__hero-copy {
    position: static !important;
    inset: auto !important;
    transform: none !important;
  }
  .page-index__winner-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .page-index__winner-badge--side {
    display: none;
  }
  .page-index__winner-badge--overlay {
    display: flex;
  }
  .page-index__winners-hot,
  .page-index__winners-top {
    padding: 0 12px; /* Adjust padding for mobile */
    overflow-x: hidden;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-index {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-index__ticker {
    padding: 8px 0;
  }
  .page-index__ticker-text {
    font-size: 13px;
  }

  .page-index__hero-jackpot {
    padding-top: 10px !important; /* Small top padding */
  }

  /* Hero image specific for 768px breakpoint */
  .page-index__hero-image,
  .page-index__hero-visual img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: none !important;
  }

  .page-index__intro,
  .page-index__games-popular,
  .page-index__category-slots,
  .page-index__category-fishing,
  .page-index__category-table,
  .page-index__category-lottery,
  .page-index__category-sports,
  .page-index__promo-dual,
  .page-index__blog-section,
  .page-index__faq-section,
  .page-index__brand-bar {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__main-title {
    font-size: 1.8rem; /* Adjusted for mobile */
  }

  .page-index__section-title {
    font-size: 1.4rem;
  }

  .page-index__section-lead {
    font-size: 0.9rem;
  }

  /* Game grid for 768px */
  .page-index__game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-index__game-tile,
  .page-index__game-tile img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
  }

  /* Buttons for 768px */
  .page-index__btn-cta,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Winners list for 768px */
  .page-index__winner-list {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .page-index__winner-row {
    padding: 10px;
    gap: 10px;
  }
  .page-index__winner-thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
  }
  .page-index__winner-thumb img {
    
    
  }
  .page-index__winner-badge--side {
    display: none !important;
  }
  .page-index__winner-badge--overlay {
    display: flex !important;
    width: 48px;
    height: 48px;
    top: -4px;
    right: -4px;
  }
  .page-index__winner-game {
    font-size: 0.95rem;
  }
  .page-index__winner-user,
  .page-index__winner-date {
    font-size: 0.8rem;
  }

  /* Blog grid for 768px */
  .page-index__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* FAQ for 768px */
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-qtext {
    font-size: 15px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
}