.page-index {
  font-family: 'Arial', sans-serif;
  background-color: #0D0E12;
  color: #FFF3E6;
  line-height: 1.6;
  padding-bottom: 30px;
}

.page-index__ticker {
  background-color: #17191F;
  color: #FFF3E6;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid #A84F0C;
}

.page-index__ticker-icon {
  font-size: 1.2rem;
  margin-left: 15px;
  margin-right: 10px;
  flex-shrink: 0;
}

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

.page-index__ticker-text {
  display: inline-block;
  padding-right: 50px; /* Space between repeating texts */
  font-size: 0.9rem;
}

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

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

.page-index__hero-jackpot {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  background-color: #100224; /* Darker background for hero */
  box-sizing: border-box;
  overflow-x: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  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 30px;
  text-align: center;
  background-color: #100224; /* Ensure copy section has a solid background */
}

.page-index__hero-tagline {
  font-size: 1.2rem;
  font-weight: 500;
  color: #FFB04D;
  margin-bottom: 10px;
}

.page-index__jackpot-counter {
  width: 100%;
  max-width: 500px;
  margin: 15px auto;
  padding: 15px 20px;
  border: 3px solid transparent;
  border-image: linear-gradient(45deg, #FFA53A, #D96800) 1;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 140, 26, 0.1);
}

.page-index__jackpot-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFF3E6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-index__jackpot-amount {
  display: block;
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 900;
  color: #FFB04D;
  word-break: break-all;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 176, 77, 0.7);
}

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

.page-index__hero-sub {
  font-size: 1rem;
  color: #FFF3E6;
  margin-top: 15px;
  margin-bottom: 25px;
}

.page-index__btn-cta {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 165, 58, 0.6);
}

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

.page-index__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFF3E6; /* Default for titles */
}

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

.page-index__section-lead {
  font-size: 1.1rem;
  color: #FFF3E6;
  max-width: 900px;
  margin: 0 auto 30px;
}

.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__winners-hot,
.page-index__winners-top,
.page-index__blog-section,
.page-index__faq-section {
  padding: 40px 15px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index__dark-section {
  background-color: #17191F;
  padding: 40px 15px;
  margin: 0;
  width: 100%;
  max-width: none;
}

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

.page-index__game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.page-index__game-tile {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  background-color: #17191F;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C;
  width: 250px;
  height: 250px; /* Desktop fixed square */
  margin: 0 auto; /* Center tiles if grid item is larger */
}

.page-index__game-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.page-index__game-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.3);
}

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

.page-index__category-sports .page-index__sports-text {
  flex: 1;
}

.page-index__category-sports .page-index__sports-visual {
  flex: 0 0 400px;
  max-width: 400px;
  border-radius: 10px;
  overflow: hidden;
}

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

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

.page-index__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
}

.page-index__btn-primary:hover {
  opacity: 0.9;
}

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

.page-index__btn-secondary:hover {
  background-color: #FFA53A;
  color: #17191F;
}

.page-index__promo-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.page-index__promo-card {
  background-color: #17191F;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  border: 1px solid #A84F0C;
}

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

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

.page-index__promo-visual {
  margin: 20px auto;
  max-width: 250px;
}

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

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

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

.page-index__winner-title-big {
  display: block;
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  font-weight: 800;
  color: rgba(255, 210, 0, 0.45);
  letter-spacing: 0.02em;
}

.page-index__winner-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-index__winner-row {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  width: 100%;
  background-color: #17191F;
  border-radius: 10px;
  padding: 10px 15px;
  border: 1px solid #A84F0C;
}

.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-color: #7b2cbf; /* Purple */
  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: 0.65rem;
}

.page-index__winner-badge strong {
  font-size: 0.75rem;
  font-weight: 700;
}

.page-index__winner-badge--overlay {
  display: none; /* Hidden on desktop, shown on mobile */
  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;
}

.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: #FFB04D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-index__winner-user,
.page-index__winner-date {
  font-size: 0.875rem;
  color: #FFF3E6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-index__blog-section {
  margin-top: 50px;
}

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

.page-index__post-card {
  background-color: #17191F;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #A84F0C;
}

.page-index__post-thumbnail {
  margin: 0;
  height: 180px;
  overflow: hidden;
}

.page-index__post-thumbnail img {
  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.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

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

.page-index__btn-readmore {
  display: inline-block;
  background-color: #D96800;
  color: #FFF3E6;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-readmore:hover {
  background-color: #FFA53A;
}

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

.page-index__faq-section {
  margin-top: 50px;
}

.page-index__faq-list {
  margin-top: 30px;
}

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

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;
  color: #FFB04D;
}

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

.page-index__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-index__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #FFB04D;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  line-height: 1;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background-color: #0D0E12;
  border-radius: 0 0 10px 10px;
  color: #FFF3E6;
}

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

.page-index__faq-answer a {
  color: #FFA53A;
  text-decoration: underline;
}

.page-index__brand-bar {
  text-align: center;
  padding: 30px 15px;
  background-color: #17191F;
  margin-top: 50px;
  border-top: 1px solid #A84F0C;
}

.page-index__brand-bar img {
  
  height: auto;
  display: inline-block;
}

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

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

@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__jackpot-amount {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .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;
  }
  .page-index__promo-dual {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index__ticker {
    padding: 8px 0;
  }
  .page-index__ticker-icon {
    font-size: 1rem;
  }
  .page-index__ticker-text {
    font-size: 0.85rem;
  }
  .page-index__hero-jackpot {
    padding-top: 10px !important;
  }
  .page-index__hero-copy {
    padding: 15px;
  }
  .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__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__winners-hot,
  .page-index__winners-top,
  .page-index__blog-section,
  .page-index__faq-section {
    padding: 25px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    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-visual {
    flex: 0 0 auto;
  }
  .page-index__promo-dual {
    flex-direction: column;
    gap: 20px;
  }
  .page-index__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-qtext {
    font-size: 1rem;
  }
  .page-index__faq-toggle {
    font-size: 1.5rem;
    width: 24px;
    height: 24px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
  .page-index__winner-title-big {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .page-index__winner-row {
    padding: 8px 10px;
    gap: 10px;
  }
  .page-index__winner-thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
  }
  .page-index__winner-thumb img {
    
    
  }
  .page-index__winner-badge--overlay {
    width: 45px;
    height: 45px;
    top: -4px;
    right: -4px;
  }
  .page-index__winner-badge em {
    font-size: 0.6rem;
  }
  .page-index__winner-badge strong {
    font-size: 0.7rem;
  }
  .page-index__winner-info {
    font-size: 0.8rem;
  }
  .page-index__brand-bar img {
    
  }
}