.page-index {
  padding-top: var(--header-offset, 120px);
  background-color: #FFFFFF;
  color: #000000;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

.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;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  max-width: 900px;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #FFFFFF;
}

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

.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;
  white-space: nowrap;
}

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

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

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

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

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

.page-index__button--download:hover {
  background-color: #333333;
  border-color: #FFFFFF;
}

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

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__why-choose-section,
.page-index__detail-pages-section,
.page-index__download-app-section,
.page-index__deep-content-section {
  padding: 60px 0;
  border-bottom: 1px solid #e0e0e0;
}

.page-index__about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-index__about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%; /* Ensure image fills its flex container */
  height: auto;
}

.page-index__about-text {
  flex: 2;
  min-width: 300px;
}

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

.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__game-cards,
.page-index__promo-cards,
.page-index__detail-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

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

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

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

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

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

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

.page-index__button--play-now:hover,
.page-index__button--claim-now:hover,
.page-index__button--view-details:hover {
  background-color: #e0a53b;
  border-color: #000000;
}

.page-index__why-choose-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap-reverse;
}

.page-index__feature-list {
  flex: 2;
  list-style: none;
  padding: 0;
  min-width: 300px;
}

.page-index__feature-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

.page-index__why-choose-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
}

.page-index__download-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  background-color: #000000;
  color: #FFFFFF;
  padding: 50px;
  border-radius: 10px;
}

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

.page-index__download-text .page-index__section-title {
  color: #FFFFFF;
  text-align: left;
}

.page-index__download-text .page-index__section-description {
  color: #f0f0f0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

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

.page-index__button--download-app:hover {
  background-color: #e0a53b;
  border-color: #FFFFFF;
}

.page-index__download-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  width: 100%;
  height: auto;
}

.page-index__deep-content-section h3 {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-index__deep-content-section h4 {
  font-size: 1.7em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 10px;
}

.page-index__deep-content-section p {
  margin-bottom: 15px;
  color: #333333;
}

.page-index__deep-content-section ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #333333;
}

.page-index__deep-content-section ul li {
  margin-bottom: 5px;
}

@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__about-content,
  .page-index__why-choose-content,
  .page-index__download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__about-text,
  .page-index__feature-list,
  .page-index__download-text {
    text-align: center;
  }
  .page-index__download-text .page-index__section-title,
  .page-index__download-text .page-index__section-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 120px);
  }
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__hero-actions {
    flex-direction: column;
  }
  .page-index__button {
    width: 100%;
  }
  .page-index__container {
    padding: 15px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.9em;
  }
  .page-index__game-image,
  .page-index__promo-image {
    height: 200px;
  }
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__detail-card {
    padding: 15px;
  }
  .page-index__deep-content-section img,
  .page-index__about-image,
  .page-index__why-choose-image,
  .page-index__download-image,
  .page-index__game-card img,
  .page-index__promo-card img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__deep-content-section h3 {
    font-size: 1.5em;
  }
  .page-index__deep-content-section h4 {
    font-size: 1.3em;
  }
  .page-index__download-content {
    padding: 30px;
  }
}