.page-index__ticker-section {
  background-color: var(--deep-red);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
}

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

.page-index__ticker-text {
  color: var(--text-main);
  font-size: 1rem;
  margin: 0;
  padding: 0 20px;
}

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

.page-index__hero-section {
  position: relative;
  background-color: var(--bg-color);
  min-height: clamp(420px, 50vw, 800px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-index__hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-index__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__hero-slide--active {
  opacity: 1;
  position: relative; /* Ensure active slide is not absolutely positioned out of flow */
}

.page-index__hero-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.page-index__hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-index__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--text-main);
  max-width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Subtle overlay for text readability */
  border-radius: 8px;
}

.page-index__hero-tagline {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.page-index__jackpot-counter {
  background: linear-gradient(180deg, #ff9500 0%, #ff5e3a 100%);
  border-radius: 10px;
  padding: 15px 25px;
  margin: 20px auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  max-width: 350px;
}

.page-index__jackpot-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
}

.page-index__jackpot-amount {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.page-index__hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 25px;
}

.page-index__btn-cta {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--text-main);
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  min-width: 150px;
  text-align: center;
}

.page-index__btn-cta:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
}

.page-index__hero-nav {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.page-index__hero-arrow {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  margin: 0 10px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-index__hero-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.page-index__hero-arrow--prev::before {
  content: '‹';
}

.page-index__hero-arrow--next::before {
  content: '›';
}

.page-index__hero-dots {
  display: flex;
  gap: 8px;
}

.page-index__hero-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index__hero-dot--active {
  background: var(--gold);
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-index__brand-intro-section {
  background-color: var(--bg-color);
  padding: 50px 0;
  text-align: center;
}

.page-index__main-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-main);
}

.text-gradient {
  background: linear-gradient(90deg, var(--gold) 0%, var(--btn-color-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.page-index__intro-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto;
}

.page-index__popular-games-section,
.page-index__category-section,
.page-index__featured-promo-section,
.page-index__winners-section,
.page-index__blog-section,
.page-index__faq-section {
  padding: 50px 0;
  background-color: var(--bg-color);
}

.page-index__category-section:nth-of-type(odd) {
  background-color: var(--card-bg);
}

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

.page-index__section-description {
  font-size: 1rem;
  color: var(--text-main);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

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

.page-index__game-tile {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

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

.page-index__game-tile img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

.page-index__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index__container--flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-index__sports-content {
  flex: 1;
  text-align: left;
}

.page-index__sports-content .page-index__section-title,
.page-index__sports-content .page-index__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__sports-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__sports-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

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

.page-index__promo-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-index__promo-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-index__promo-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__promo-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

.page-index__btn-secondary {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-main);
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  min-width: 120px;
  text-align: center;
}

.page-index__btn-secondary:hover {
  background-color: var(--main-color);
}

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

.page-index__winner-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  position: relative;
}

.page-index__winner-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  min-width: 70px; /* Specific icon size, but still > 200px rule is for content images */
  min-height: 70px;
}

.page-index__winner-info {
  flex-grow: 1;
  text-align: left;
}

.page-index__winner-game {
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
}

.page-index__winner-user {
  font-size: 0.95rem;
  margin-bottom: 3px;
  color: var(--text-main);
}

.page-index__winner-card time {
  font-size: 0.85rem;
  color: rgba(255, 241, 232, 0.7);
}

.page-index__winner-amount-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: linear-gradient(90deg, var(--gold) 0%, #FFB04A 100%);
  border-radius: 20px;
  padding: 5px 12px;
  color: var(--deep-red);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1.2;
}

.page-index__won-text {
  font-size: 0.75rem;
}

.page-index__winner-amount {
  font-size: 1.1rem;
  color: var(--deep-red);
}

.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: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-index__post-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

.page-index__post-card h4 {
  padding: 15px 20px 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.page-index__post-card h4 a {
  color: inherit;
  text-decoration: none;
}

.page-index__post-card h4 a:hover {
  color: var(--gold);
}

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

.page-index__btn-link {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px 20px;
  transition: color 0.3s ease;
}

.page-index__btn-link:hover {
  color: var(--btn-color-end);
}

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

.page-index__faq-section {
  padding-bottom: 80px;
}

.page-index__faq-accordion {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-index__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-index__faq-question {
  display: block;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: var(--text-main);
}

.page-index__faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.page-index__faq-item[open] .page-index__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(0deg);
}

.page-index__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 241, 232, 0.8);
}

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

.page-index__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-index__brand-logo-footer {
  background-color: var(--bg-color);
  padding: 40px 0;
  text-align: center;
}

.page-index__footer-logo {
  max-width: 200px;
  height: auto;
  display: inline-block;
  min-width: 200px; /* Ensure logo meets minimum size requirement */
  min-height: 100px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-index__game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-index__winner-grid,
  .page-index__post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__container--flex {
    flex-direction: column;
  }
  .page-index__sports-content {
    text-align: center;
  }
  .page-index__sports-content .page-index__section-title,
  .page-index__sports-content .page-index__section-description {
    text-align: center;
  }
}

@media (max-width: 849px) {
  .page-index__hero-slide {
    flex-direction: column;
    justify-content: flex-start; /* Align content to top for mobile */
    padding-top: 0;
  }

  .page-index__hero-visual {
    position: relative; /* Make visual relative for flow */
    height: auto;
    aspect-ratio: 4/3;
    width: 100%;
  }

  .page-index__hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .page-index__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: var(--bg-color); /* Dark background for text section */
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
  }

  .page-index__jackpot-counter {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
  }

  .page-index__jackpot-amount {
    font-size: clamp(1.5rem, 7vw, 2.5rem); /* Adjusted clamp for mobile */
    line-height: 1.2;
  }

  .page-index__btn-cta {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    min-height: 44px;
  }

  .page-index__hero-nav {
    bottom: 10px;
  }
}

@media (max-width: 768px) {
  .page-index__ticker-section {
    height: 40px;
  }
  .page-index__ticker-text {
    font-size: 0.9rem;
  }
  .page-index__game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__winner-grid,
  .page-index__post-grid {
    grid-template-columns: 1fr;
  }
  .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__container {
    padding: 15px;
  }
  .page-index__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .page-index__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-index__intro-description {
    font-size: 1rem;
  }
  /* Constraint for all images in content area on mobile */
  .page-index__container img,
  .page-index__game-tile img,
  .page-index__promo-img,
  .page-index__winner-icon,
  .page-index__post-img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 549px) {
  .page-index__game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__winner-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }
  .page-index__winner-info {
    text-align: left;
    width: 100%;
  }
  .page-index__winner-amount-badge {
    position: static;
    margin-top: 10px;
    align-self: flex-end;
  }
  .page-index__promo-card {
    padding: 20px;
  }
  .page-index__post-card h4 {
    font-size: 1.15rem;
  }
  .page-index__faq-question {
    font-size: 1rem;
  }
}