.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); /* Fixed header offset for desktop */
}

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

.page-index__hero-container {
  max-width: 900px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Highlight with login button color */
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-buttons {
  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, color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

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

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

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

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

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

.page-index__features-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__gcash-guide-section,
.page-index__security-section,
.page-index__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-index__features-grid,
.page-index__games-grid,
.page-index__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-index__feature-card,
.page-index__game-card,
.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__feature-card:hover,
.page-index__game-card:hover,
.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-icon {
  width: 200px;
  height: 200px; /* Adjusted to 200px minimum */
  object-fit: contain;
  margin: 0 auto 20px auto;
}

.page-index__feature-title,
.page-index__game-title,
.page-index__promo-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #000000;
  font-weight: bold;
}

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

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

.page-index__feature-description,
.page-index__game-description,
.page-index__promo-description {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

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

.page-index__button--play,
.page-index__button--claim {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  margin-top: 20px;
  align-self: center;
}

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

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

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

.page-index__view-all-games,
.page-index__view-all-promotions {
  text-align: center;
  margin-top: 20px;
}

.page-index__gcash-guide-section,
.page-index__security-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.page-index__gcash-guide-section {
  flex-direction: row;
}

.page-index__security-section {
  flex-direction: row-reverse;
}

.page-index__gcash-content,
.page-index__security-content {
  flex: 1;
}

.page-index__gcash-description,
.page-index__security-description {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #555555;
}

.page-index__gcash-benefits,
.page-index__security-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__gcash-benefits li,
.page-index__security-features li {
  font-size: 1.05em;
  margin-bottom: 10px;
  color: #333333;
  display: flex;
  align-items: center;
}

.page-index__icon {
  margin-right: 10px;
  font-size: 1.2em;
  color: #FCBC45; /* Use highlight color for icons */
}

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

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

.page-index__gcash-image-wrapper,
.page-index__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__gcash-image,
.page-index__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  border-radius: 12px;
  margin-top: 80px;
  margin-bottom: 80px;
}

.page-index__cta-section .page-index__section-title {
  color: #FCBC45;
}

.page-index__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive Design */
@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;
  }
  .page-index__gcash-guide-section,
  .page-index__security-section {
    flex-direction: column;
    text-align: center;
  }
  .page-index__security-section {
    flex-direction: column-reverse;
  }
  .page-index__gcash-content,
  .page-index__security-content {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 15px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .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%;
  }
  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-index__features-grid,
  .page-index__games-grid,
  .page-index__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-index__features-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__gcash-guide-section,
  .page-index__security-section,
  .page-index__cta-section {
    margin: 40px auto;
    padding: 0 15px;
  }
  /* Ensure content images are responsive and don't overflow, and meet minimum size */
  .page-index img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-index__hero-image {
    max-width: 100%; /* Override potential fixed width from desktop */
    height: auto;
  }
  .page-index__feature-icon {
    width: 200px; /* Keep minimum size for icons */
    height: 200px; /* Adjusted to 200px minimum */
    object-fit: contain;
  }
  .page-index__game-image,
  .page-index__promo-image {
    height: 200px; /* Set fixed height for mobile cards, width adjusts */
  }
  .page-index__gcash-image,
  .page-index__security-image {
    height: 300px; /* Set fixed height for mobile content images, width adjusts */
  }
}

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