.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 is not hidden by fixed header */
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px; /* Minimum height for hero section */
}

.page-index__hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 600px; /* Ensure image covers the section height */
}

.page-index__hero-overlay {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay for text readability */
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 900px;
  margin: 0 20px;
}

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Gold accent for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

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

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

.page-index__btn--register {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-index__btn--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__btn--login:hover {
  background-color: #e0a538;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FCBC45;
  color: #000000;
}

.page-index__btn--small:hover {
  background-color: #e0a538;
}

.page-index__btn--large {
  padding: 18px 35px;
  font-size: 1.2em;
  background-color: #FCBC45;
  color: #000000;
  margin-top: 30px;
}

.page-index__btn--large:hover {
  background-color: #e0a538;
}

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

.page-index__btn--download:hover {
  background-color: #e0a538;
}

.page-index__btn--outline {
  background-color: transparent;
  border: 2px solid #FCBC45;
  color: #FCBC45;
  padding: 12px 25px;
}

.page-index__btn--outline:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__btn--join-now {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 35px;
  font-size: 1.3em;
  margin-top: 30px;
}

.page-index__btn--join-now:hover {
  background-color: #e0a538;
}

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

.page-index__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__mobile-section,
.page-index__responsible-gaming-section,
.page-index__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-index__about-item {
  text-align: center;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.page-index__about-icon {
  width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-index__about-text {
  color: #555555;
}

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

.page-index__game-card,
.page-index__promo-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-index__game-image,
.page-index__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__game-title,
.page-index__promo-subtitle {
  font-size: 1.4em;
  color: #000000;
  margin: 20px 15px 10px 15px;
}

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

.page-index__game-title a:hover,
.page-index__promo-subtitle a:hover {
  color: #FCBC45;
}

.page-index__game-text,
.page-index__promo-text {
  color: #555555;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__game-card .page-index__btn--small {
  margin: 20px 15px;
}

.page-index__mobile-section {
  text-align: center;
}

.page-index__mobile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index__mobile-image {
  width: 300px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-index__mobile-text-content {
  max-width: 600px;
}

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

.page-index__responsible-gaming-section {
  text-align: center;
}

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 40px;
}

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

.page-index__cta-section .page-index__section-description {
  color: #f0f0f0;
}

/* Media Queries for Responsiveness */
@media (min-width: 769px) {
  .page-index__mobile-content {
    flex-direction: row;
    justify-content: center;
  }
  .page-index__mobile-image {
    width: 400px;
  }
}

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

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

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

  .page-index__btn {
    width: 100%;
    max-width: 280px;
  }

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

  .page-index__section-description {
    font-size: 0.9em;
  }

  .page-index__about-grid,
  .page-index__games-grid,
  .page-index__promo-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure images do not overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__hero-image {
    min-height: 400px;
  }

  .page-index__hero-section {
    min-height: 400px;
  }

  .page-index__game-image, .page-index__promo-image {
    height: 200px; /* Adjust height for smaller screens */
  }
}

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

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

  .page-index__hero-overlay {
    padding: 20px;
  }

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