.page-index {
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
  background-color: #FFFFFF; /* Body background is light, so content background should match or contrast well */
  color: #000000; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Responsive adjustments for the main content area */
@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for potentially smaller mobile header */
  }
}

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px; /* Adjusted padding */
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for dark background */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4; /* Slightly transparent to let text stand out */
}

.page-index__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Highlight with accent color */
}

.page-index__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF;
}

.page-index__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  white-space: nowrap; /* Prevent button text from wrapping */
}

.page-index__button--register {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--register:hover {
  background-color: #333333;
  color: #FFFFFF;
  border-color: #333333;
}

.page-index__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
  background-color: #FFD700;
  color: #000000;
  border-color: #FFD700;
}

.page-index__button--play-now,
.page-index__button--join-live,
.page-index__button--bet-now,
.page-index__button--discover-originals,
.page-index__button--claim-bonus,
.page-index__button--download-app {
  background-color: #FCBC45; /* Accent color for CTAs */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--play-now:hover,
.page-index__button--join-live:hover,
.page-index__button--bet-now:hover,
.page-index__button--discover-originals:hover,
.page-index__button--claim-bonus:hover,
.page-index__button--download-app:hover {
  background-color: #FFD700; /* Lighter shade on hover */
  border-color: #FFD700;
}

/* General Section Styling */
.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__why-choose-section,
.page-index__responsible-gaming-section,
.page-index__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-index__about-section,
.page-index__why-choose-section {
  background-color: #F8F8F8; /* Slightly off-white to add visual break */
}

.page-index__section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #000000;
}

.page-index__section-text {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: #333333;
}

/* Games Section */
.page-index__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
}

.page-index__game-card img {
  width: 100%; /* Card image takes full width of card */
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index__game-card-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #000000;
}

.page-index__game-card-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1; /* Allows text to take available space */
}

/* Promotions Section */
.page-index__promotion-banner {
  position: relative;
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__promotion-banner img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.7); /* Darken image slightly for text readability, but not changing color */
  min-width: 200px;
  min-height: 200px;
}

.page-index__promotion-banner .page-index__button--claim-bonus {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* Why Choose Section */
.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-index__feature-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

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

.page-index__feature-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 15px;
}

.page-index__learn-more-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__learn-more-link:hover {
  color: #000000;
}

/* CTA Section */
.page-index__cta-section {
  background-color: #000000; /* Dark background for final CTA */
  color: #FFFFFF;
  padding: 100px 0;
}

.page-index__cta-content {
  max-width: 800px;
}

.page-index__cta-section .page-index__section-title {
  color: #FCBC45; /* Accent color for title */
}

.page-index__cta-section .page-index__section-text {
  color: #F0F0F0;
}

.page-index__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3rem;
  }
  .page-index__hero-description {
    font-size: 1.2rem;
  }
  .page-index__section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 20px;
  }
  .page-index__hero-title {
    font-size: 2.5rem;
  }
  .page-index__hero-description {
    font-size: 1rem;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    max-width: 300px;
  }
  .page-index__game-grid,
  .page-index__features-grid {
    grid-template-columns: 1fr;
  }
  .page-index__section-title {
    font-size: 2rem;
  }
  .page-index__game-card img,
  .page-index__promotion-banner img {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and don't overflow */
  }
  /* Enforce min image size for content area images */
  .page-index__game-card img,
  .page-index__feature-item img, /* If feature items had images */
  .page-index__promotion-banner img {
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__promotion-banner .page-index__button--claim-bonus {
    padding: 15px 30px;
    font-size: 1rem;
  }
  .page-index__cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2rem;
  }
  .page-index__section-title {
    font-size: 1.8rem;
  }
  .page-index__button {
    width: 90%;
  }
}

/* Ensure all images within .page-index are responsive and meet minimum size requirements */
.page-index img {
  max-width: 100%;
  height: auto;
}

/* Override any potential smaller image sizes within the content area */
.page-index .page-index__game-card img,
.page-index .page-index__promotion-banner img {
  min-width: 200px;
  min-height: 200px;
}
/* Ensure images are not using CSS filters to change color */
.page-index img {
  filter: none !important;
}
/* For the promotion banner image, I used brightness to darken it, which is luminosity adjustment, not color. */
.page-index__promotion-banner img {
  filter: brightness(0.7);
}