.page-index {
  color: #333333; /* Dark text for light body background */
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000; /* Main color for hero background */
}

.page-index__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 500px;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF; /* Light text for dark hero background */
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #FFFFFF;
}

.page-index__hero-actions {
  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, transform 0.2s ease;
  border: 2px solid transparent;
}

.page-index__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text for login button */
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #FFFFFF; /* White text for secondary button */
  border-color: #FCBC45;
}

.page-index__button--secondary:hover {
  background-color: rgba(252, 188, 69, 0.2);
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #FCBC45;
  color: #000000;
}

.page-index__button--small:hover {
  background-color: #e0a53b;
  transform: translateY(-1px);
}

.page-index__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #000000; /* Dark text for light background */
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: #333333;
}

.page-index__features-section,
.page-index__game-categories-section,
.page-index__promotions-section,
.page-index__about-section,
.page-index__download-app-section,
.page-index__contact-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

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

.page-index__feature-card,
.page-index__category-card,
.page-index__promo-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333333;
}

.page-index__feature-card:hover,
.page-index__category-card:hover,
.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__feature-icon,
.page-index__category-image,
.page-index__promo-image {
  width: 100%; /* Ensure images fill card width */
  height: auto;
  min-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__feature-title,
.page-index__category-title,
.page-index__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

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

.page-index__category-card .page-index__category-title {
  color: #000000;
}

.page-index__category-card:hover .page-index__category-title {
  color: #FCBC45;
}

.page-index__call-to-action-promo {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #000000; /* Main color */
  border-radius: 10px;
  color: #FFFFFF;
}

.page-index__call-to-action-text {
  font-size: 1.8em;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-index__about-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

.page-index__about-image {
  flex: 1;
  min-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  min-height: 200px;
}

.page-index__about-text {
  flex: 2;
  line-height: 1.8;
  font-size: 1.05em;
  color: #333333;
}

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

.page-index__download-app-section {
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  padding: 80px 20px;
  margin: 80px auto;
  border-radius: 15px;
  max-width: 1200px;
}

.page-index__download-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-index__download-text-area {
  flex: 1;
  max-width: 600px;
}

.page-index__download-text-area .page-index__section-title {
  color: #FFFFFF;
  text-align: left;
  font-size: 2.8em;
}

.page-index__download-text-area .page-index__section-description {
  color: #f0f0f0;
  text-align: left;
  margin: 0 0 30px 0;
}

.page-index__download-image {
  flex: 0 0 auto;
  max-width: 450px;
  width: 100%;
  height: auto;
  object-fit: contain;
  min-height: 200px;
}

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

/* 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__download-text-area .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__about-image {
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 80px);
  }
  .page-index__hero-container {
    padding: 30px 15px;
    min-height: 400px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
  }
  .page-index__features-grid,
  .page-index__categories-grid,
  .page-index__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-index__feature-card,
  .page-index__category-card,
  .page-index__promo-card {
    padding: 20px;
  }
  .page-index__about-content {
    flex-direction: column;
    align-items: center;
  }
  .page-index__about-image {
    min-width: 200px;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .page-index__download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__download-text-area .page-index__section-title {
    text-align: center;
  }
  .page-index__download-text-area .page-index__section-description {
    text-align: center;
  }
  .page-index__download-image {
    max-width: 80%;
  }
  .page-index__contact-actions {
    flex-direction: column;
    gap: 15px;
  }

  /* Critical: Ensure all content images are responsive and do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* Added for better image fitting in cards */
  }
  /* Specific override to ensure image sizes are not too small */
  .page-index__feature-icon, 
  .page-index__category-image, 
  .page-index__promo-image, 
  .page-index__about-image, 
  .page-index__download-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__download-text-area .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-index__call-to-action-text {
    font-size: 1.4em;
  }
}