/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  color: #333333;
  background: #F5F7FA;
  line-height: 1.6;
  overflow-x: hidden;
}

.page-index__ticker {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 10px 0;
  font-size: 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.page-index__ticker-icon {
  margin: 0 15px;
  flex-shrink: 0;
}

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

.page-index__ticker-text {
  padding-right: 50px;
}

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

.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; /* Minimal top padding, rely on body for 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 30px;
  text-align: center;
  color: #ffffff;
}

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

.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 #FF5A4F;
  border-radius: 10px;
  padding: 15px 10px;
  background: rgba(255, 255, 255, 0.05);
}

.page-index__jackpot-label {
  font-size: 1rem;
  font-weight: 500;
  color: #FFD700;
}

.page-index__jackpot-amount {
  display: block;
  font-size: clamp(1.25rem, 6.5vw, 2.8rem);
  font-weight: 800;
  color: #FFD700;
  word-break: break-all;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

.page-index__hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin-bottom: 25px;
  opacity: 0.8;
}

.page-index__btn-cta {
  display: inline-block;
  background: linear-gradient(180deg, #83a1f2 0%, #607fd8 100%);
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__main-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__text-gradient {
  background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

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

.page-index__section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: #333333;
}

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

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

.page-index__bg-dark {
  background: #100224;
  color: #ffffff;
  padding-top: 50px;
  padding-bottom: 50px;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
  max-width: unset;
}

.page-index__bg-dark .page-index__section-title,
.page-index__bg-dark .page-index__section-lead {
  color: #ffffff;
}

.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: 8px;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

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

.page-index__game-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

@media (min-width: 850px) {
  .page-index__game-tile {
    width: 250px; /* Fixed width for desktop */
    height: 250px; /* Fixed height for desktop */
  }
  .page-index__game-tile img {
    width: 250px;
    height: 250px;
  }
}

.page-index__promo-dual {
  display: flex;
  gap: 30px;
  margin-top: 50px;
}

.page-index__promo-dual.page-index__category-sports {
  align-items: center;
  background: #100224;
  color: #ffffff;
  padding: 50px 20px;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
  max-width: unset;
}

.page-index__promo-content {
  flex: 1;
}

.page-index__promo-image-wrapper {
  flex: 1;
  margin: 0;
  text-align: right;
}

.page-index__promo-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index__promo-card {
  flex: 1;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-index__card-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #333333;
}

.page-index__card-text {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 25px;
}

.page-index__card-figure {
  margin: 0 auto 20px;
  max-width: 100%;
  overflow: hidden;
}

.page-index__card-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-index__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.page-index__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #E53935;
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid #E53935;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-index__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.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, #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, 0.45);
  letter-spacing: 0.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: #ffffff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-index__winners-top .page-index__winner-row {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.page-index__winners-top .page-index__winner-game,
.page-index__winners-top .page-index__winner-user,
.page-index__winners-top .page-index__winner-date {
  color: #ffffff;
}

.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: 0.65rem;
}

.page-index__winner-badge strong {
  font-size: 0.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;
}

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

.page-index__winner-game {
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

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

.page-index__post-figure {
  margin: 0;
  line-height: 0;
}

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

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

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

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

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

.page-index__btn-link {
  display: inline-block;
  color: #E53935;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.page-index__btn-link:hover {
  color: #FF5A4F;
}

.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: #fff;
}

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 5px 5px;
  color: #333333;
}

.page-index__brand-bar {
  background: #100224;
  color: #ffffff;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
  max-width: unset;
}

.page-index__brand-logo-wrapper {
  margin-bottom: 20px;
}

.page-index__brand-logo-wrapper img {
  
  height: auto;
}

.page-index__brand-tagline {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.page-index__copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* --- 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__winner-list {
    gap: 15px 20px;
  }
  .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;
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-index__ticker {
    font-size: 13px;
    padding: 8px 0;
  }

  .page-index__ticker-icon {
    margin: 0 10px;
  }

  .page-index__ticker-track {
    animation-duration: 10s; /* Faster scroll on mobile */
  }

  .page-index__hero-jackpot {
    padding-top: 10px !important;
    overflow-x: hidden !important;
  }

  .page-index__hero-visual {
    overflow-x: hidden !important;
  }

  .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-featured,
  .page-index__winners-hot,
  .page-index__winners-top,
  .page-index__blog-section,
  .page-index__faq-section,
  .page-index__brand-bar {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .page-index__bg-dark {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
  }

  .page-index__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .page-index__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .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%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
  }

  .page-index__promo-dual {
    flex-direction: column;
    gap: 20px;
  }

  .page-index__promo-image-wrapper {
    text-align: center;
  }

  .page-index__promo-image-wrapper img {
    max-width: 90%;
  }

  .page-index__promo-card {
    padding: 20px;
  }

  .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__winner-list {
    grid-template-columns: 1fr;
    gap: 12px;
    overflow-x: hidden;
  }

  .page-index__winner-row {
    flex-wrap: nowrap;
    padding: 10px;
  }

  .page-index__winner-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
  }

  .page-index__winner-thumb img {
    
    
  }

  .page-index__winner-badge--side {
    display: none;
  }

  .page-index__winner-badge--overlay {
    display: flex;
    width: 48px;
    height: 48px;
    top: -4px;
    right: -4px;
  }

  .page-index__winner-info {
    flex: 1;
    min-width: 0;
  }

  .page-index__winner-game,
  .page-index__winner-user,
  .page-index__winner-date {
    font-size: 0.8rem;
  }

  .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: 15px;
  }

  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
}