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

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

.page-index__section-title {
  font-size: 2.5rem;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-index__section-subtitle {
  font-size: 1.2rem;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.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;
  min-width: 150px;
  text-align: center;
}

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

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

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

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

.page-index__button--play, .page-index__button--bet, .page-index__button--join, .page-index__button--claim, .page-index__button--view, .page-index__button--download {
  background-color: #FCBC45;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.page-index__button--play:hover, .page-index__button--bet:hover, .page-index__button--join:hover, .page-index__button--claim:hover, .page-index__button--view:hover, .page-index__button--download:hover {
  background-color: #e0a53b;
}

.page-index__link-button {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #FCBC45;
  color: #FCBC45;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.page-index__link-button:hover {
  background-color: #FCBC45;
  color: #FFFFFF;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.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;
  z-index: 2;
  text-align: center;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.6); /* Overlay for readability */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-index__hero-description {
  font-size: 1.4rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-index__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__about-text p {
  margin-bottom: 15px;
  color: #333333;
}

.page-index__about-image-wrapper {
  text-align: center;
}

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

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

.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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__game-title {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 10px;
}

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

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

.page-index__game-description {
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-index__promo-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__promo-title {
  font-size: 1.6rem;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-index__promo-description {
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__view-all-promos {
  text-align: center;
  margin-top: 40px;
}

/* App Section */
.page-index__app-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.page-index__app-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__app-content p {
  margin-bottom: 20px;
  color: #333333;
}

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

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

/* Why Choose Section */
.page-index__why-choose-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

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

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

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

.page-index__benefit-description {
  color: #555555;
}

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

.page-index__responsible-gaming-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #333333;
}

.page-index__responsible-gaming-section .page-index__link-button {
  display: block;
  margin: 0 auto;
  width: fit-content;
}

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

.page-index__faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-index__faq-item {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
  font-size: 1.2rem;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__faq-answer {
  color: #555555;
}

.page-index__view-all-faq {
  text-align: center;
  margin-top: 40px;
}

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #000000;
  color: #FFFFFF;
  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__section-subtitle {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-index__cta-actions .page-index__button {
  min-width: 180px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8rem;
  }

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

  .page-index__about-grid, .page-index__app-container, .page-index__faq-grid {
    grid-template-columns: 1fr;
  }

  .page-index__about-image-wrapper, .page-index__app-image-wrapper {
    order: -1; /* Image first on mobile */
    margin-bottom: 30px;
  }

  .page-index__app-image {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
  }

  .page-index__hero-title {
    font-size: 2.2rem;
  }

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

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

  .page-index__hero-actions .page-index__button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

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

  .page-index__section-subtitle {
    font-size: 1rem;
  }

  .page-index__games-grid, .page-index__promotions-grid, .page-index__benefits-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .page-index__faq-grid {
    grid-template-columns: 1fr;
  }

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

  .page-index__cta-actions .page-index__button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-section {
    min-height: 450px;
  }

  .page-index__hero-title {
    font-size: 1.8rem;
  }

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

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

  .page-index__section-subtitle {
    font-size: 0.9rem;
  }

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

  .page-index__button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}