.page-index {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Primary gold color */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  position: relative;
}

.page-index__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #1E90FF; /* Secondary blue color */
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Hero Section */
.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px;
}

.page-index__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure a minimum height for the hero */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Slightly darken image for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__button--primary {
  background-color: #FFD700; /* Primary gold button */
  color: #121212; /* Dark text on gold */
  border: 2px solid #FFD700;
}

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

.page-index__button--secondary {
  background-color: #1E90FF; /* Secondary blue button */
  color: #ffffff;
  border: 2px solid #1E90FF;
}

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

.page-index__button--text {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-index__button--text:hover {
  text-decoration: underline;
}

/* About Section */
.page-index__about-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-index__about-content {
  font-size: 1.1em;
  color: #cccccc;
  text-align: justify;
}

.page-index__about-content p {
  margin-bottom: 20px;
}

/* Features Section */
.page-index__features-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

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

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-index__feature-icon {
  width: 200px; /* Minimum size */
  height: 150px; /* Adjust height proportionally */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-index__feature-description {
  font-size: 1em;
  color: #cccccc;
}

/* Game Categories Section */
.page-index__game-categories {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-index__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding-top: 20px;
}

.page-index__category-card {
  display: block;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(30, 144, 255, 0.2);
}

.page-index__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-index__category-image {
  width: 100%;
  height: 250px; /* Fixed height for category images */
  object-fit: cover;
  display: block;
}

.page-index__category-title {
  font-size: 1.4em;
  color: #FFD700;
  padding: 15px 20px 5px;
}

.page-index__category-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 20px 20px;
}

/* Promotions Section */
.page-index__promo-section {
  padding: 60px 0;
  background-color: #0d0d0d;
  text-align: center;
}

.page-index__promo-description {
  font-size: 1.1em;
  color: #cccccc;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Details Section */
.page-index__details-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-index__details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding-top: 20px;
}

.page-index__detail-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-index__detail-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-index__detail-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

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

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

.page-index__detail-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #1E90FF; /* Secondary blue for strong CTA */
  text-align: center;
  color: #ffffff;
}

.page-index__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-index__cta-description {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 40px;
}

.page-index__cta-section .page-index__button--primary {
  background-color: #FFD700;
  color: #121212;
  border: 2px solid #FFD700;
}

.page-index__cta-section .page-index__button--primary:hover {
  background-color: #e6c200;
}

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

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

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

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

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

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

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

  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }

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

  .page-index__features-grid, .page-index__categories-grid, .page-index__details-grid {
    grid-template-columns: 1fr;
  }

  .page-index__feature-icon, .page-index__category-image {
    max-width: 100%;
    height: auto;
  }

  .page-index__cta-title {
    font-size: 2em;
  }

  /* Ensure content area images 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.9em;
  }

  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-index__feature-icon {
    width: 150px;
    height: 100px;
  }

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