.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-index__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #000000; /* Main color for titles */
  font-weight: bold;
}

.page-index__section-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #555555;
}

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  padding: 80px 20px;
}

.page-index__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Highlight color for main title */
  font-weight: 900;
  line-height: 1.2;
}

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

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  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: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

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

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

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* About Section */
.page-index__about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  background-color: #F8F8F8;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-index__about-content {
  max-width: 800px;
  margin-bottom: 40px;
}

.page-index__about-content p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #444444;
}

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

.page-index__button--learn-more:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-index__about-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Games Section */
.page-index__games-section {
  background-color: #FFFFFF;
  text-align: center;
}

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

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

.page-index__game-image {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #000000;
  font-weight: bold;
}

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

.page-index__game-title a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__button--play {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 10px 20px;
  font-size: 1em;
}

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

/* Promotions Section */
.page-index__promotions-section {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-description {
  color: #FFFFFF;
}

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

.page-index__promo-card {
  background-color: #1A1A1A;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-image {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #FCBC45;
  font-weight: bold;
}

.page-index__promo-description {
  font-size: 0.95em;
  color: #E0E0E0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__button--view-promo {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 10px 20px;
  font-size: 1em;
}

.page-index__button--view-promo:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-index__button--all-promos {
  margin-top: 40px;
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__button--all-promos:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

/* Mobile Section */
.page-index__mobile-section {
  background-color: #F8F8F8;
}

.page-index__mobile-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-index__mobile-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  min-height: 200px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__mobile-text p {
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 20px;
}

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

.page-index__button--download-app:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

/* Security Section */
.page-index__security-section {
  background-color: #FFFFFF;
}

.page-index__security-content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-index__security-content p {
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 20px;
}

.page-index__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  min-height: 200px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Resources Section (Detail Pages) */
.page-index__resources-section {
  background-color: #F8F8F8;
}

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

.page-index__detail-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__detail-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #000000;
  font-weight: bold;
}

.page-index__detail-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__detail-title a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-index__detail-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__button--view-details {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 10px 20px;
  font-size: 1em;
}

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

/* CTA Section */
.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
}

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

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

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

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

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

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px);
  }

  .page-index__hero-section {
    padding: 60px 15px;
  }

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

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

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

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

  .page-index__section {
    padding: 40px 15px;
  }

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

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

  .page-index__about-content,
  .page-index__mobile-content,
  .page-index__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index__about-image,
  .page-index__mobile-image,
  .page-index__security-image {
    max-width: 100%;
    margin-top: 30px;
  }

  .page-index__game-categories,
  .page-index__promo-cards,
  .page-index__detail-pages {
    grid-template-columns: 1fr;
  }

  .page-index__game-card,
  .page-index__promo-card,
  .page-index__detail-card {
    padding: 20px;
  }

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

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

  /* Ensure all content area images are responsive and do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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