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

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

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF; /* White text over dark/rich image */
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for readability */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

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

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

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

.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__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FCBC45;
  color: #000000;
  border: 1px solid #FCBC45;
}

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

.page-index__button--large {
  padding: 18px 35px;
  font-size: 1.2em;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

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

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

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

.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: 40px;
  color: #000000;
}

.page-index__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__games-section,
.page-index__promotions-section,
.page-index__why-choose-section,
.page-index__download-section,
.page-index__cta-section,
.page-index__responsible-gaming-section {
  padding: 60px 0;
}

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

.page-index__game-card,
.page-index__promo-card,
.page-index__feature-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__game-title,
.page-index__promo-title,
.page-index__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #000000;
  padding: 0 15px;
}

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

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

.page-index__game-description,
.page-index__promo-description,
.page-index__feature-description {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__button-center {
  text-align: center;
  margin-top: 40px;
}

.page-index__download-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-index__download-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-index__download-content .page-index__section-title,
.page-index__download-content .page-index__paragraph {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__download-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.page-index__download-image {
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 80px); /* Adjust for smaller mobile header */
  }
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons,
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index__button--large {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__paragraph {
    font-size: 1em;
  }
  .page-index__game-image,
  .page-index__promo-image {
    height: 200px;
  }
  .page-index__download-flex {
    flex-direction: column;
  }
  .page-index__download-content,
  .page-index__download-image-wrapper {
    text-align: center;
    min-width: unset;
  }
  .page-index__download-content .page-index__section-title,
  .page-index__download-content .page-index__paragraph {
    text-align: center;
  }
  /* Mobile content area image constraint */
  .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__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__paragraph {
    font-size: 0.9em;
  }
}