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

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Ensure hero has a minimum height */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
  background-color: #000000; /* Dark background for hero section */
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
}

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

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-index__button {
  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;
  font-size: 1.1em;
}

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

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

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

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

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

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

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

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

.page-index__about-item {
  background-color: #F8F8F8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-index__about-item-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index__about-item-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

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

.page-index__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-index__game-card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
  line-height: 1.5;
}

.page-index__button--play {
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 25px;
  margin-bottom: 20px;
  border: 2px solid #FCBC45;
}

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

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

.page-index__promo-section .page-index__section-title {
  color: #FCBC45;
}

.page-index__promo-intro {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-index__promo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__button--view-all:hover {
  background-color: transparent;
  color: #FCBC45;
}

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

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

.page-index__details-card {
  background-color: #F8F8F8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__details-card-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index__details-card-description {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__button--view-details {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 25px;
  border: 2px solid #000000;
}

.page-index__button--view-details:hover {
  background-color: transparent;
  color: #000000;
}

.page-index__app-section {
  background-color: #F0F0F0;
  padding: 60px 0;
}

.page-index__app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-index__app-text {
  max-width: 500px;
  text-align: left;
}

.page-index__app-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333333;
}

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

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

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

.page-index__responsible-gaming-section .page-index__section-title {
  color: #FCBC45;
}

.page-index__responsible-gaming-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }

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

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

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

  .page-index__button {
    width: 100%;
    max-width: 250px;
  }

  .page-index__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

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

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

  .page-index__app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-index__app-text {
    text-align: center;
  }

  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

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