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

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

.page-index__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-index__hero-cta-group {
  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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

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

.page-index__button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

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

.page-index__button--login:hover {
  background-color: #e0a538;
  transform: translateY(-2px);
}

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

.page-index__button--secondary:hover {
  background-color: #000000;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-index__button--play:hover, .page-index__button--bet:hover, .page-index__button--claim:hover, .page-index__button--download:hover {
  background-color: #e0a538;
  transform: translateY(-2px);
}

.page-index__button--view-all, .page-index__button--learn-more {
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #000000;
}

.page-index__button--view-all:hover, .page-index__button--learn-more:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

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

.page-index__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
}

.page-index__about-section, .page-index__games-section, .page-index__sports-section, .page-index__promotions-section, .page-index__security-section, .page-index__mobile-section, .page-index__support-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-index__about-section p, .page-index__security-section p, .page-index__mobile-section p, .page-index__support-section p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-index__about-content {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  justify-items: center;
}

.page-index__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  width: 100%;
}

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-index__game-card-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px;
  margin-bottom: 25px;
}

.page-index__sports-content, .page-index__mobile-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-index__sports-image, .page-index__mobile-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__sports-text, .page-index__mobile-text {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index__promotions-section {
  background-color: #f0f0f0;
}

.page-index__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  justify-items: center;
}

.page-index__promo-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: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  width: 100%;
}

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

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

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

.page-index__security-section, .page-index__support-section {
  text-align: center;
}

.page-index__security-content, .page-index__support-content {
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__sports-content, .page-index__mobile-content {
    flex-direction: column;
  }
  .page-index__sports-image, .page-index__mobile-image {
    max-width: 80%;
  }
  .page-index__sports-text, .page-index__mobile-text {
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 400px;
    padding: 60px 20px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    min-width: unset;
    width: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-index__about-section, .page-index__games-section, .page-index__sports-section, .page-index__promotions-section, .page-index__security-section, .page-index__mobile-section, .page-index__support-section {
    padding: 60px 0;
  }
  .page-index__game-categories, .page-index__promo-cards {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image, .page-index__promo-card-image {
    height: 200px; /* Adjust height for smaller screens */
  }
  .page-index__sports-image, .page-index__mobile-image {
    max-width: 90%;
  }
  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  /* Content area must not cause horizontal scrolling */
  .page-index {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__button {
    width: 90%;
  }
}