.page-index {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero */
}

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

.page-index__hero-container {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Overlay for readability */
  border-radius: 10px;
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

.page-index__button--register:hover {
  background-color: #f0f0f0;
}

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

.page-index__button--login:hover {
  background-color: #e0a53b;
}

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

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

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

.page-index__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-index__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-index__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-index__game-link {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

.page-index__game-link:hover {
  color: #FCBC45;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__button--play {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__button--play:hover {
  background-color: #e0a53b;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-index__promo-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__button--claim {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__button--claim:hover {
  background-color: #e0a53b;
}

.page-index__button--view {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__button--view:hover {
  background-color: #333333;
}

/* Mobile App Section */
.page-index__mobile-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index__mobile-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

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

.page-index__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__button--download {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 20px;
}

.page-index__button--download:hover {
  background-color: #e0a53b;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.page-index__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  margin-top: 20px;
}

.page-index__button--learn-more:hover {
  background-color: #333333;
}

/* Call to Action Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #FCBC45;
  color: #000000;
}

.page-index__cta-section .page-index__section-title,
.page-index__cta-section .page-index__section-intro {
  color: #000000;
}

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

.page-index__cta-section .page-index__button--register {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__cta-section .page-index__button--register:hover {
  background-color: #333333;
}

.page-index__cta-section .page-index__button--login {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index__cta-section .page-index__button--login:hover {
  background-color: #f0f0f0;
}

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

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 0.95em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
  }
  .page-index__mobile-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__mobile-text {
    order: 2;
  }
  .page-index__mobile-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }
  /* Ensure all content images are responsive and do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__feature-image,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__mobile-image {
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__hero-section {
    min-height: 400px;
  }
  .page-index__hero-container {
    padding: 20px 15px;
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__mobile-section,
  .page-index__responsible-gaming-section,
  .page-index__cta-section {
    padding: 60px 0;
  }
}