.page-index {
  color: #333333; /* Default text color for light body background */
}

.page-index__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for hero */
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2; /* Ensure content is above image */
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

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

.page-index__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
}

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

.page-index__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

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

.page-index__button--download:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-3px);
}

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay for text readability */
  display: block;
}

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

.page-index__section-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-index__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-index__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

.page-index__text-content--center {
  text-align: center;
}

.page-index__text-content a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-index__text-content a:hover {
  text-decoration: underline;
}

.page-index__about-section {
  background-color: #FFFFFF;
  padding: 60px 0;
}

.page-index__games-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

.page-index__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-index__game-card-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__game-card-title a:hover {
  color: #FCBC45;
}

.page-index__game-card-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__button--play-now, .page-index__button--bet-now, .page-index__button--claim-bonus, .page-index__button--learn-more {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 12px 25px;
  font-size: 1em;
  margin-top: 15px;
}

.page-index__button--play-now:hover, .page-index__button--bet-now:hover, .page-index__button--claim-bonus:hover, .page-index__button--learn-more:hover {
  background-color: #000000;
  color: #FCBC45;
  border-color: #000000;
}

.page-index__promotions-section {
  background-color: #FFFFFF;
  padding: 60px 0;
}

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

.page-index__promo-card {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-index__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__promo-card-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-index__promo-card-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__promo-card-title a:hover {
  color: #FCBC45;
}

.page-index__promo-card-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__features-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

.page-index__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__feature-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-index__feature-icon {
  width: 200px; 
  height: 150px; /* Adjusted to be >= 200px in one dimension, or 4:3 ratio if width is 200px */
  object-fit: cover; 
  margin: 0 auto 20px auto; 
}

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

.page-index__feature-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
}

.page-index__app-section {
  background-color: #000000; /* Dark background for app section */
  color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
}

.page-index__app-section .page-index__section-title {
  color: #FFFFFF;
}

.page-index__app-section .page-index__section-title::after {
  background-color: #FCBC45;
}

.page-index__app-section .page-index__text-content {
  color: #f0f0f0;
}

.page-index__app-download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-index__button--download-ios, .page-index__button--download-android {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-index__button--download-ios:hover, .page-index__button--download-android:hover {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
}

.page-index__app-image-wrapper {
  margin-top: 40px;
}

.page-index__app-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(252, 188, 69, 0.4);
}

.page-index__responsible-gaming-section {
  background-color: #FFFFFF;
  padding: 60px 0;
}

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.page-index__cta-section .page-index__section-title {
  color: #FFFFFF;
}

.page-index__cta-section .page-index__section-title::after {
  background-color: #FCBC45;
}

.page-index__cta-section .page-index__text-content {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-index__button--register-large {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }

  .page-index__hero-description {
    font-size: 1.2em;
  }

  .page-index__section-title {
    font-size: 2.4em;
  }

  .page-index__game-card-title, .page-index__promo-card-title {
    font-size: 1.6em;
  }

  .page-index__feature-title {
    font-size: 1.4em;
  }

  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-index__button--register-large {
    padding: 15px 35px;
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 100px); /* Adjust for mobile header offset */
    padding-bottom: 40px;
  }

  .page-index__hero-title {
    font-size: 2.5em;
  }

  .page-index__hero-description {
    font-size: 1.1em;
  }

  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__section-title {
    font-size: 2em;
  }

  .page-index__container {
    padding: 30px 15px;
  }

  .page-index__game-categories, .page-index__promo-cards, .page-index__feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index__game-card-image, .page-index__promo-card-image {
    height: 200px;
  }

  .page-index__feature-icon {
    width: 180px;
    height: 135px;
  }

  .page-index__app-image {
    max-width: 100%;
  }

  .page-index__app-download-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Crucial for preventing horizontal overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }

  .page-index__hero-description {
    font-size: 1em;
  }

  .page-index__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .page-index__button--register-large {
    width: 100%;
    padding: 14px 25px;
    font-size: 1.1em;
  }

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__text-content {
    font-size: 0.95em;
  }

  .page-index__feature-icon {
    width: 150px;
    height: 112px;
  }
}