.page-index {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-index__hero-section {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.9), rgba(10, 25, 47, 0.9));
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

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

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

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

.page-index__hero-btn {
  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.2s ease;
}

.page-index__hero-btn--primary {
  background-color: #FFD700;
  color: #1E90FF;
}

.page-index__hero-btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__hero-btn--secondary {
  background-color: #1E90FF;
  color: #ffffff;
  border: 2px solid #FFD700;
}

.page-index__hero-btn--secondary:hover {
  background-color: #1565c0;
  transform: translateY(-2px);
}

.page-index__hero-image-wrapper {
  margin-top: 40px;
}

.page-index__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 60px;
  margin-top: 80px;
  line-height: 1.3;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-index__about-section,
.page-index__features-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__gcash-section,
.page-index__cta-section,
.page-index__responsible-gaming-section {
  padding: 60px 0;
}

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

.page-index__about-text,
.page-index__promo-text,
.page-index__gcash-text {
  flex: 1;
  min-width: 300px;
  font-size: 1.1em;
}

.page-index__about-text p,
.page-index__promo-text p,
.page-index__gcash-text p,
.page-index__responsible-gaming-description {
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-index__about-image-wrapper,
.page-index__promo-image-wrapper,
.page-index__gcash-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index__about-image,
.page-index__promo-image,
.page-index__gcash-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FFD700;
  color: #1E90FF;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
}

.page-index__btn:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__btn--secondary {
  background-color: #1E90FF;
  color: #ffffff;
  border: 2px solid #FFD700;
}

.page-index__btn--secondary:hover {
  background-color: #1565c0;
  transform: translateY(-2px);
}

.page-index__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

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

.page-index__feature-card,
.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__feature-card:hover,
.page-index__game-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index__feature-title,
.page-index__game-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

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

.page-index__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index__cta-section {
  background: linear-gradient(90deg, #1E90FF, #0A192F);
  text-align: center;
  padding: 80px 20px;
}

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

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

.page-index__btn--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Responsible Gaming section specific styles */
.page-index__responsible-gaming-section {
  background-color: rgba(10, 25, 47, 0.7);
}

.page-index__responsible-gaming-description {
  max-width: 900px;
  margin: 0 auto 25px auto;
  text-align: center;
  color: #c0c0c0;
  font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__about-content,
  .page-index__promo-content,
  .page-index__gcash-content {
    flex-direction: column;
  }
  .page-index__about-image-wrapper,
  .page-index__promo-image-wrapper,
  .page-index__gcash-image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-btn,
  .page-index__btn--large {
    width: 80%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
    margin-top: 60px;
  }
  .page-index__features-grid,
  .page-index__games-grid {
    grid-template-columns: 1fr;
  }
  .page-index__about-text p,
  .page-index__promo-text p,
  .page-index__gcash-text p,
  .page-index__responsible-gaming-description {
    font-size: 1em;
  }
  .page-index__about-image,
  .page-index__promo-image,
  .page-index__gcash-image,
  .page-index__game-image,
  .page-index__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__cta-actions {
    flex-direction: column;
  }
  /* Ensure all content area images are responsive and do not cause 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: 1em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__feature-card,
  .page-index__game-card {
    padding: 20px;
  }
  .page-index__feature-title,
  .page-index__game-title {
    font-size: 1.5em;
  }
  .page-index__hero-section,
  .page-index__about-section,
  .page-index__features-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__gcash-section,
  .page-index__cta-section,
  .page-index__responsible-gaming-section {
    padding: 40px 0;
  }
  .page-index__container {
    padding: 0 15px;
  }
}