.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 not hidden by fixed header */
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: rgba(255, 255, 255, 0.8);
}

.page-index__sub-title {
  font-size: 2em;
  color: #FFD700; /* Gold for sub-titles */
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-index__btn--primary {
  background-color: #FFD700; /* Gold button */
  color: #1A1A1A; /* Dark text for gold button */
}

.page-index__btn--primary:hover {
  background-color: #e6c200;
}

.page-index__btn--secondary {
  background-color: #DC143C; /* Deep red button */
  color: #ffffff;
  border: 2px solid #DC143C;
}

.page-index__btn--secondary:hover {
  background-color: #c00c32;
  border-color: #c00c32;
}

.page-index__btn--text {
  background: none;
  border: none;
  color: #FFD700;
  padding: 0;
  margin-top: 20px;
  display: inline-block;
  text-decoration: underline;
}

.page-index__btn--text:hover {
  color: #e6c200;
}

.page-index__btn--small {
  padding: 8px 20px;
  font-size: 0.9em;
  background-color: #DC143C;
  color: #ffffff;
}

.page-index__btn--small:hover {
  background-color: #c00c32;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding-bottom: 80px;
}

.page-index__hero-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4; /* Slightly dim the background image */
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

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

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

.page-index__hero-actions .page-index__btn {
  margin: 0 15px;
}

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

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

.page-index__about-content {
  flex: 1;
}

.page-index__about-content p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.page-index__about-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Game Highlights Section */
.page-index__game-highlights-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.page-index__game-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index__game-card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__game-card-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* Why Choose Section */
.page-index__why-choose-section {
  padding: 80px 0;
  background-color: #1A1A1A;
}

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

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.page-index__feature-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-index__feature-card-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-index__feature-card-description {
  color: rgba(255, 255, 255, 0.7);
}

.page-index__discover-more {
  text-align: center;
  margin-top: 60px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.page-index__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index__promo-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__promo-card-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__view-all-promos {
  text-align: center;
  margin-top: 60px;
}

/* Download Section */
.page-index__download-section {
  padding: 80px 0;
  background-color: #1A1A1A;
}

.page-index__download-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-index__download-text {
  flex: 1;
}

.page-index__download-text p {
  margin-bottom: 30px;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.9);
}

.page-index__download-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Deep Content Section */
.page-index__deep-content-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-index__deep-content-section p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05em;
}

.page-index__read-blog {
  text-align: center;
  margin-top: 60px;
}

/* Detail Pages Section */
.page-index__detail-pages {
  padding: 80px 0;
  background-color: #1A1A1A;
}

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

.page-index__detail-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__detail-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__detail-card-title a {
  color: #FFD700; /* Gold for detail card titles */
  text-decoration: none;
}

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

.page-index__detail-card-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-bottom: 40px;
  }
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions .page-index__btn {
    margin: 10px 8px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index__game-grid, .page-index__features-grid, .page-index__promo-grid, .page-index__detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__about-section, .page-index__game-highlights-section, .page-index__why-choose-section, .page-index__promotions-section, .page-index__download-section, .page-index__deep-content-section, .page-index__detail-pages {
    padding: 40px 0;
  }
  .page-index__container {
    padding: 0 15px;
  }
  /* Ensure images do not overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-actions .page-index__btn {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
}