.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-padding {
  padding: 80px 0;
}

.page-index__bg-dark {
  background-color: #0A0A0A;
}

.page-index__bg-primary {
  background-color: #FFD700;
}

.page-index__bg-secondary {
  background-color: #1E90FF;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__section-title--light {
  color: #ffffff;
}

.page-index__section-title--dark {
  color: #0A0A0A;
}

.page-index__section-intro {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-index__section-intro--light {
  color: #ffffff;
}

.page-index__section-intro--dark {
  color: #0A0A0A;
}

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-index__button--primary {
  background-color: #DC143C; /* Action color */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

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

.page-index__button--secondary {
  background-color: #1E90FF; /* Auxiliary color */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

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

.page-index__button--small {
  padding: 10px 20px;
  font-size: 1em;
  min-width: 150px;
}

.page-index__button--large {
  padding: 18px 35px;
  font-size: 1.2em;
  min-width: 250px;
}

.page-index__button--dark-text {
  background-color: #0A0A0A; /* Dark background for buttons on primary colored sections */
  color: #FFD700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-index__button--dark-text:hover {
  background-color: #222222;
  transform: translateY(-2px);
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
}

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

.page-index__hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
}

.page-index__hero-title {
  font-size: 4.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Golden title */
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

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

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-index__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-index__feature-icon {
  width: 250px; /* Minimum size for content images */
  height: 187px;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  border: 2px solid #FFD700;
}

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

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

/* Game Categories Section */
.page-index__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__category-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-index__category-image {
  width: 100%;
  height: 250px; /* Consistent height for category images */
  object-fit: cover;
  border-bottom: 3px solid #FFD700;
}

.page-index__category-title {
  font-size: 1.8em;
  color: #FFD700;
  padding: 20px 20px 10px 20px;
  font-weight: 700;
}

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

.page-index__category-card .page-index__button {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

/* Promotions Section */
.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-index__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid #1E90FF;
}

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

.page-index__promo-title {
  font-size: 1.9em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 700;
}

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

.page-index__all-promos-cta {
  text-align: center;
  margin-top: 50px;
}

/* Download App Section */
.page-index__download-app-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.page-index__download-app-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-index__download-app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index__download-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 250px; /* Enforce minimum size */
  min-height: 250px;
  object-fit: contain;
}

.page-index__download-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-index__app-note {
  font-size: 0.9em;
  margin-top: 20px;
  color: #0A0A0A;
}

/* About Us Section */
.page-index__about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 50px;
}

.page-index__about-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-height: 250px;
}

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

.page-index__about-subtitle {
  font-size: 2em;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index__about-paragraph {
  font-size: 1.05em;
  color: #cccccc;
  margin-bottom: 20px;
}

/* CTA Section */
.page-index__cta-section {
  text-align: center;
}

.page-index__cta-container {
  padding: 60px 20px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.page-index__cta-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Resources Section */
.page-index__resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-index__resource-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%;
}

.page-index__resource-card:hover {
  transform: translateY(-3px);
}

.page-index__resource-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-index__resource-title a {
  color: #1E90FF; /* Auxiliary color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-index__resource-title a:hover {
  text-decoration: underline;
  color: #62b1ff;
}

.page-index__resource-description {
  font-size: 0.95em;
  color: #cccccc;
}

.page-index__all-resources-cta {
  text-align: center;
  margin-top: 50px;
}

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

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

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

  .page-index__button--large {
    min-width: 200px;
  }

  .page-index__about-image {
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-index__hero-section {
    min-height: 500px;
    padding: 30px 15px;
  }

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

  .page-index__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

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

  .page-index__button {
    width: 100%;
    min-width: unset;
  }

  .page-index__section-padding {
    padding: 50px 0;
  }

  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-index__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-index__feature-icon, .page-index__category-image, .page-index__promo-image, .page-index__download-app-image, .page-index__about-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and do not overflow */
    min-width: 200px;
    min-height: 150px;
    object-fit: cover;
  }

  .page-index__download-app-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-index__download-app-content {
    text-align: center;
  }

  .page-index__download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-index__about-content {
    flex-direction: column;
  }

  .page-index__about-image {
    max-width: 100%;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure no content overflow */
  .page-index {
    overflow-x: hidden;
  }
  .page-index__container {
    padding: 0 15px;
  }
}

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

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

  .page-index__button--large {
    padding: 15px 25px;
    font-size: 1.1em;
  }

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