.page-index__ticker-section {
  background-color: #7A0E0E;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}

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

.page-index__ticker-text {
  color: #FFF5E1;
  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: #B71C1C;
  overflow: hidden;
  padding-top: 10px; /* Small padding to avoid header overlap, body handles main offset */
}

.page-index__hero-carousel {
  position: relative;
  width: 100%;
  height: 500px; /* Base height for desktop, adjusted for mobile */
  overflow: hidden;
}

.page-index__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Align content to the bottom */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.page-index__hero-slide--active {
  opacity: 1;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFF5E1;
  padding: 20px;
  max-width: 90%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); /* Subtle gradient at bottom for text readability */
  width: 100%;
  padding-bottom: 50px;
}

.page-index__hero-slogan {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFF5E1;
}

.page-index__jackpot-counter {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  border-radius: 50px;
  padding: 10px 25px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index__jackpot-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #7A0E0E;
  margin-right: 10px;
}

.page-index__jackpot-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #7A0E0E;
}

.page-index__hero-subtext {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #FFF5E1;
}

.page-index__hero-btn {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  padding: 12px 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 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
}

.page-index__carousel-arrow {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFF5E1;
  font-size: 1.5rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  margin: 0 10px;
  transition: background 0.3s ease;
}

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

.page-index__carousel-dots {
  display: flex;
}

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

.page-index__carousel-dot--active {
  background: #FFF5E1;
}

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

.page-index__intro-section {
  background-color: #B71C1C;
  padding: 40px 0;
  text-align: center;
}

.page-index__main-title {
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFF5E1; /* Fallback for gradient */
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.page-index__intro-description {
  font-size: 1.1rem;
  color: #FFF5E1;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

.text-gradient {
  background: linear-gradient(90deg, #F4D34D, #FFCC66);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #F4D34D; /* Fallback */
}

.page-index__games-overview-section,
.page-index__category-section,
.page-index__promo-section,
.page-index__winners-section,
.page-index__blog-section,
.page-index__faq-section,
.page-index__brand-bar {
  padding: 60px 0;
}

.page-index__games-overview-section,
.page-index__category-section--slots,
.page-index__category-section--table-poker,
.page-index__winners-section--top-casino,
.page-index__blog-section {
  background-color: #D32F2F;
}

.page-index__category-section--fishing,
.page-index__category-section--lottery,
.page-index__category-section--sports,
.page-index__promo-section,
.page-index__winners-section,
.page-index__faq-section,
.page-index__brand-bar {
  background-color: #B71C1C;
}

.page-index__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFF5E1;
  text-align: center;
  margin-bottom: 20px;
}

.page-index__subsection-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #FFF5E1;
  text-align: center;
  margin-bottom: 15px;
}

.page-index__section-description {
  font-size: 1.05rem;
  color: #FFF5E1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-index__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-content: center;
}

.page-index__game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #7A0E0E;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: #FFF5E1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding-bottom: 15px;
}

.page-index__game-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__game-card-image {
  width: 100%;
  height: 133px; /* Ensure images are not small */
  object-fit: cover;
  border-bottom: 2px solid #F2B544;
}

.page-index__game-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 15px;
  text-align: center;
  padding: 0 10px;
}

.page-index__game-card--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

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

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

.page-index__sports-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Ensure not too small */
  min-height: 200px;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-index__btn--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-index__btn--secondary {
  background-color: #E53935;
  color: #FFF5E1;
  border: 1px solid #F2B544;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-index__btn--text {
  color: #F4D34D;
  background: none;
  padding: 0;
  border-radius: 0;
  font-weight: 500;
}

.page-index__btn--text:hover {
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

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

.page-index__promo-card {
  background-color: #D32F2F;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  color: #FFF5E1;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-index__promo-card-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__winner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
}

.page-index__winner-card {
  background-color: #D32F2F;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #FFF5E1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544;
}

.page-index__winner-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #F4D34D;
}

.page-index__winner-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-index__winner-game {
  font-weight: 700;
  font-size: 1.1rem;
  color: #F4D34D;
}

.page-index__winner-user,
.page-index__winner-date {
  font-size: 0.9rem;
  color: #FFF5E1;
}

.page-index__winner-amount {
  font-weight: 800;
  font-size: 1.2rem;
  color: #FFCC66;
  background: #7A0E0E;
  padding: 8px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

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

.page-index__post-card {
  background-color: #7A0E0E;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #FFF5E1;
  display: flex;
  flex-direction: column;
}

.page-index__post-image {
  width: 100%;
  height: 225px; /* 16:9 aspect ratio for 400px width */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index__post-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
}

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

.page-index__post-title a:hover {
  text-decoration: underline;
}

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

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

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

.page-index__faq-item {
  background-color: #D32F2F;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544;
}

.page-index__faq-question {
  display: block;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F4D34D;
  cursor: pointer;
  position: relative;
}

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

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

.page-index__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #FFF5E1;
  line-height: 1.6;
}

.page-index__brand-bar {
  text-align: center;
  padding: 40px 0;
  background-color: #7A0E0E;
}

.page-index__brand-logo {
  max-width: 150px;
  height: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-carousel {
    height: 450px;
  }
  .page-index__hero-slogan {
    font-size: 1.8rem;
  }
  .page-index__jackpot-amount {
    font-size: 2rem;
  }
  .page-index__section-title {
    font-size: 2rem;
  }
  .page-index__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .page-index__sports-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__sports-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-carousel {
    height: 400px;
  }
  .page-index__hero-content {
    padding-bottom: 30px;
  }
  .page-index__hero-slogan {
    font-size: 1.5rem;
  }
  .page-index__jackpot-amount {
    font-size: 1.8rem;
  }
  .page-index__hero-subtext {
    font-size: 1rem;
  }
  .page-index__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-index__intro-description {
    font-size: 1rem;
  }
  .page-index__section-title {
    font-size: 1.8rem;
  }
  .page-index__subsection-title {
    font-size: 1.5rem;
  }
  .page-index__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .page-index__promo-grid,
  .page-index__winner-grid,
  .page-index__post-grid {
    grid-template-columns: 1fr;
  }
  .page-index__games-overview-section,
  .page-index__category-section,
  .page-index__promo-section,
  .page-index__winners-section,
  .page-index__blog-section,
  .page-index__faq-section {
    padding: 40px 0;
  }
  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__post-image {
    max-width: 100%;
    height: auto; /* Ensure aspect ratio is maintained */
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__winner-icon {
    width: 60px;
    height: 60px;
  }
  .page-index__winner-amount {
    font-size: 1.1rem;
  }
  .page-index__post-title {
    font-size: 1.2rem;
  }
  .page-index__post-excerpt {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-index__hero-carousel {
    height: 350px;
  }
  .page-index__hero-slogan {
    font-size: 1.3rem;
  }
  .page-index__jackpot-amount {
    font-size: 1.5rem;
  }
  .page-index__jackpot-counter {
    padding: 8px 15px;
  }
  .page-index__jackpot-label {
    font-size: 0.9rem;
  }
  .page-index__hero-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  .page-index__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .page-index__promo-card-title {
    font-size: 1.4rem;
  }
  .page-index__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }
  .page-index__faq-question::after {
    right: 15px;
  }
  .page-index__faq-answer {
    padding: 0 15px 15px 15px;
  }
  /* Mobile content area images must be constrained */
  .page-index__games-overview-section img,
  .page-index__category-section img,
  .page-index__promo-section img,
  .page-index__winners-section img,
  .page-index__blog-section img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure content images are not smaller than 200px in CSS */
.page-index__game-card-image,
.page-index__sports-image,
.page-index__promo-card-image,
.page-index__post-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for winner icons as they are functional icons and not content images */
.page-index__winner-icon {
  min-width: unset;
  min-height: unset;
}

/* Ensure no filter is used on images */
.page-index__hero-image,
.page-index__game-card-image,
.page-index__sports-image,
.page-index__promo-card-image,
.page-index__winner-icon,
.page-index__post-image {
  filter: none !important;
}