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

.page-index__section-padding {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index__dark-section {
  background: #100224;
  color: #ffffff;
}

.page-index__dark-section .page-index__section-title,
.page-index__dark-section .page-index__section-lead {
  color: #ffffff;
}

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

.page-index__section-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Module 1: Ticker */
.page-index__ticker {
  width: 100%;
  overflow: hidden;
  background-color: #017439;
  color: #FFFF00;
  padding: 10px 0;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.page-index__ticker-icon {
  font-size: 1.2em;
  margin: 0 15px;
  flex-shrink: 0;
}

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

.page-index__ticker-track span {
  margin-right: 30px;
}

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

/* Module 2: Hero Jackpot */
.page-index__hero-jackpot {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  background: #100224;
  box-sizing: border-box;
  overflow-x: hidden;
  padding-top: 10px; /* Small top padding, not --header-offset */
}

.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: 16px 12px 40px;
  text-align: center;
  color: #ffffff;
}

.page-index__hero-tagline {
  font-size: clamp(1rem, 2.5vw, 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-bottom: 20px;
  border: 2px solid;
  border-image: linear-gradient(to right, #ff8c00, #ffb347) 1;
  padding: 15px 20px;
  border-radius: 10px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.page-index__btn-cta {
  display: inline-block;
  background: #83a1f2;
  color: #FFFFFF;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  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: #6a8ce0;
}

/* Module 3: Brand H1 & Intro */
.page-index__intro {
  text-align: center;
  background: #FFFFFF;
  color: #333333;
}

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

.page-index__text-gradient {
  background: linear-gradient(90deg, #017439, #00562b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback for non-webkit */
}

.page-index__intro-text {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__intro-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid transparent;
}

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

.page-index__btn-secondary {
  background: #FFFFFF;
  color: #C30808;
  border: 2px solid #C30808;
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  color: #a30606;
}

/* Module 4 & 5: Game Grids & Categories */
.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;
  position: relative;
  width: 250px; /* Desktop fixed square */
  height: 250px; /* Desktop fixed square */
  transition: transform 0.3s ease;
}

.page-index__game-tile:hover {
  transform: translateY(-5px) scale(1.02);
}

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

.page-index__category-sports .page-index__sports-content {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.page-index__category-sports .page-index__sports-text {
  flex: 1;
  min-width: 300px;
}

.page-index__category-sports .page-index__sports-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index__category-sports .page-index__sports-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

/* Module 6: Featured Promotions */
.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-index__promo-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
}

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

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

.page-index__promo-desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #555;
}

/* Module 7 & 8: Winner Lists */
.page-index__winner-title {
  text-align: center;
  line-height: 1.1;
  margin-bottom: 20px;
}

.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;
}

.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;
}

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

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

.page-index__winners-hot .page-index__winner-row { background: #1a0834; color: #fff; }
.page-index__winners-hot .page-index__winner-game, .page-index__winners-hot .page-index__winner-user, .page-index__winners-hot .page-index__winner-date { color: #fff; }

.page-index__winner-thumb {
  position: relative;
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
}

.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;
  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;
}

.page-index__winner-badge--overlay {
  display: none; /* Hidden 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; /* Shown 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;
}

/* Module 9: Blog Article Grid */
.page-index__blog-section .page-index__section-title,
.page-index__blog-section .page-index__section-lead {
  color: #017439;
}

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

.page-index__post-card {
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__post-card:hover {
  transform: translateY(-5px);
}

.page-index__post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.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.25rem;
  font-weight: 700;
  padding: 15px 20px 0;
  line-height: 1.4;
  color: #017439;
}

.page-index__post-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-index__read-more {
  display: inline-block;
  color: #C30808;
  text-decoration: none;
  font-weight: 600;
  padding: 0 20px 20px;
  transition: color 0.3s ease;
}

.page-index__read-more:hover {
  color: #a30606;
}

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

/* Module 10: FAQ */
.page-index__faq-section .page-index__section-title,
.page-index__faq-section .page-index__section-lead {
  color: #ffffff;
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #1a0834;
  color: #ffffff;
}

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: #2a0f4a;
}

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

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFF00;
  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: #2a0f4a;
  border-radius: 0 0 5px 5px;
  color: #e0e0e0;
}

.page-index__faq-answer p {
  color: #e0e0e0;
}

/* Module 11: Footer Brand Bar */
.page-index__brand-bar {
  text-align: center;
  background: #017439;
  color: #FFFFFF;
  padding: 30px 20px;
}

.page-index__brand-bar img {
  max-width: 200px;
  height: auto;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-
}

.page-index__brand-text {
  font-size: 1rem;
  color: #f0f0f0;
}

/* 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__post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__category-sports .page-index__sports-content {
    flex-direction: column;
  }
  .page-index__category-sports .page-index__sports-text,
  .page-index__category-sports .page-index__sports-image {
    min-width: unset;
    width: 100%;
  }
  .page-index__winners-hot .page-index__winner-row,
  .page-index__winners-top .page-index__winner-row {
    padding: 10px;
  }
}

@media (max-width: 849px) {
  .page-index__hero-jackpot {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .page-index__hero-image,
  .page-index__hero-visual img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: unset !important;
    object-fit: contain !important;
    max-height: none !important;
    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;
    overflow-x: hidden;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index__ticker {
    font-size: 0.8rem;
    padding: 8px 0;
  }
  .page-index__hero-jackpot {
    padding-top: 10px !important;
  }
  .page-index__hero-image,
  .page-index__hero-visual img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: none !important;
  }
  .page-index__section-padding {
    padding: 30px 15px;
  }
  .page-index__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .page-index__section-lead {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }
  .page-index__main-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }
  .page-index__intro-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index__btn-cta,
  .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__intro-buttons,
  .page-index__load-more-container,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index__game-grid {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
  }
  .page-index__game-tile,
  .page-index__game-tile img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
  }
  .page-index__category-sports .page-index__sports-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__promo-card img,
  .page-index__post-card img,
  .page-index__brand-bar img,
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__post-grid {
    grid-template-columns: 1fr;
  }
  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;
  }
  .page-index__brand-bar {
    padding: 20px 15px;
  }
}