.page-index {
  background-color: var(--deep-navy-color);
  color: var(--text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-index__ticker {
  width: 100%;
  overflow: hidden;
  background-color: var(--card-bg);
  color: var(--text-secondary);
  padding: 10px 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  box-sizing: border-box;
  font-size: 0.9rem;
}

.page-index__ticker-icon {
  margin: 0 15px;
  color: var(--gold);
  flex-shrink: 0;
}

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

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

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

.page-index__hero-jackpot {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  background-color: var(--deep-navy-color);
  box-sizing: border-box;
  overflow-x: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  z-index: 1;
}

.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: 30px 20px;
  text-align: center;
  background-color: var(--deep-navy-color);
  position: relative;
  z-index: 2;
}

.page-index__hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.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 var(--gold);
  border-radius: 12px;
  padding: 15px 10px;
  background-color: rgba(0, 0, 0, 0.3);
}

.page-index__jackpot-label {
  display: block;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gold);
  text-transform: uppercase;
}

.page-index__jackpot-amount {
  display: block;
  font-size: clamp(1.85rem, 6.5vw, 3.2rem);
  font-weight: 900;
  color: var(--text-main);
  word-break: break-all;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-index__jackpot-currency {
  display: block;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  margin-top: 4px;
}

.page-index__hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-index__btn-cta {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  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(0, 0, 0, 0.4);
}

.page-index__intro,
.page-index__games-popular,
.page-index__category-slots,
.page-index__category-fishing,
.page-index__category-table-poker,
.page-index__category-sports,
.page-index__promo-dual,
.page-index__winners-hot,
.page-index__winners-top,
.page-index__blog-section,
.page-index__faq-section,
.page-index__brand-bar {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

.page-index__intro {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
}

.page-index__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-index__section-lead {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-index__game-tile {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--card-bg);
  width: 250px; /* Desktop fixed width */
  height: 250px; /* Desktop fixed height */
}

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

.page-index__game-tile img {
  width: 250px; /* Desktop fixed width */
  height: 250px; /* Desktop fixed height */
  display: block;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.page-index__category-slots,
.page-index__category-fishing,
.page-index__category-table-poker {
  background-color: var(--card-bg);
  border-radius: 15px;
  margin-bottom: 40px;
  padding: 50px 20px;
}

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

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

.page-index__category-sports .page-index__sports-text p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

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

.page-index__category-sports .page-index__sports-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

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

.page-index__promo-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__promo-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-index__promo-desc {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.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, #F2C14E, #FFD700);
  -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;
}

.page-index__winner-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 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: var(--card-bg);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.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;
  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;
  text-transform: uppercase;
}

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

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

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

.page-index__winner-game {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-index__winner-user,
.page-index__winner-date {
  font-size: .875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.page-index__post-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-index__post-content {
  padding: 20px;
}

.page-index__post-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__post-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__post-title a:hover {
  color: var(--glow);
}

.page-index__post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-index__btn-details {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__btn-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-index__btn-load-more {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--glow);
  color: var(--glow);
  background-color: transparent;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  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-load-more:hover {
  background-color: var(--glow);
  color: var(--deep-navy-color);
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

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: rgba(var(--border), 0.2);
}

.page-index__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details[open] .page-index__faq-toggle {
  transform: rotate(0deg);
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 20px;
  background: rgba(var(--deep-navy-color), 0.5);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.page-index__brand-bar {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--card-bg);
  border-top: 1px solid var(--divider);
}

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

.page-index__brand-logo-link img {
  
  height: auto;
  display: block;
}

.page-index__copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .page-index__game-tile,
  .page-index__game-tile img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
  .page-index__promo-dual {
    grid-template-columns: 1fr;
  }
  .page-index__post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@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;
    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__ticker {
    font-size: 0.8rem;
    padding: 8px 0;
  }
  .page-index__hero-jackpot {
    padding-top: 10px !important;
  }
  .page-index__hero-copy {
    padding: 20px 15px;
  }
  .page-index__btn-cta,
  .page-index__btn-details,
  .page-index__btn-load-more {
    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__btn-container {
    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;
  }
  .page-index__game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .page-index__game-tile,
  .page-index__game-tile img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__intro,
  .page-index__games-popular,
  .page-index__category-slots,
  .page-index__category-fishing,
  .page-index__category-table-poker,
  .page-index__category-sports,
  .page-index__promo-dual,
  .page-index__winners-hot,
  .page-index__winners-top,
  .page-index__blog-section,
  .page-index__faq-section,
  .page-index__brand-bar {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-index__category-sports .page-index__sports-content {
    flex-direction: column;
  }
  .page-index__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
    font-size: 15px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
}