.page-index {
  color: #333333; /* Dark text for light 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__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #000000; /* Main dark background for hero */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
  min-height: 700px; /* Ensure hero section has a decent height */
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.page-index__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  line-height: 1.2;
}

.page-index__tagline {
  font-size: 1.3em;
  margin-bottom: 40px;
}

.page-index__cta-buttons {
  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;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-index__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

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

.page-index__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-index__text-content {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__resources-section,
.page-index__why-choose-section,
.page-index__contact-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

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

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

.page-index__feature-icon,
.page-index__game-image,
.page-index__promo-image,
.page-index__resource-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-index__feature-title,
.page-index__game-title,
.page-index__promo-title,
.page-index__resource-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index__feature-title a,
.page-index__game-title a,
.page-index__promo-title a,
.page-index__resource-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-index__feature-title a:hover,
.page-index__game-title a:hover,
.page-index__promo-title a:hover,
.page-index__resource-title a:hover {
  color: #FCBC45;
}

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

.page-index__button--learn-more,
.page-index__button--all-promos,
.page-index__button--all-resources,
.page-index__button--join-today {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 20px;
}

.page-index__button--learn-more:hover,
.page-index__button--all-promos:hover,
.page-index__button--all-resources:hover,
.page-index__button--join-today:hover {
  background-color: #333333;
  border-color: #333333;
  transform: translateY(-2px);
}

.page-index__button--play-now,
.page-index__button--view-promo,
.page-index__button--read-more {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  font-size: 0.95em;
  padding: 10px 20px;
  min-width: unset;
  width: fit-content;
  margin: 0 auto;
}

.page-index__button--play-now:hover,
.page-index__button--view-promo:hover,
.page-index__button--read-more:hover {
  background-color: #e0a538;
  border-color: #e0a538;
  transform: translateY(-2px);
}

.page-index__cta-download-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 0;
}

.page-index__cta-download-container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

.page-index__cta-content .page-index__section-title {
  color: #FCBC45;
  text-align: left;
}

.page-index__cta-content .page-index__section-title::after {
  left: 0;
  transform: translateX(0);
}

.page-index__cta-content .page-index__text-content {
  text-align: left;
  color: #e0e0e0;
  margin-left: 0;
  margin-right: 0;
}

.page-index__button--download-app {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
  margin-top: 20px;
}

.page-index__button--download-app:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-index__advantages-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-index__advantage-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #444444;
}

.page-index__advantage-item::before {
  content: '✔';
  color: #FCBC45;
  font-weight: bold;
  position: absolute;
  left: 0;
}

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

.page-index__button--contact,
.page-index__button--faq {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--contact:hover,
.page-index__button--faq:hover {
  background-color: #333333;
  border-color: #333333;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 2.8em;
  }

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

  .page-index__hero-content {
    padding: 40px 20px;
  }

  .page-index__cta-download-container {
    flex-direction: column;
    text-align: center;
  }

  .page-index__cta-content {
    text-align: center;
  }

  .page-index__cta-content .page-index__section-title {
    text-align: center;
  }

  .page-index__cta-content .page-index__section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .page-index__cta-content .page-index__text-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px); /* Mobile header offset */
    padding: 30px 15px;
    min-height: 500px; /* Adjust min-height for mobile hero */
  }

  .page-index__hero-content {
    padding: 30px 15px;
  }

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

  .page-index__tagline {
    font-size: 1.1em;
  }

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

  .page-index__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

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

  .page-index__text-content {
    font-size: 1em;
    margin-left: 0;
    margin-right: 0;
  }

  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__resources-section,
  .page-index__why-choose-section,
  .page-index__contact-section {
    padding: 50px 0;
  }

  .page-index__feature-grid,
  .page-index__game-grid,
  .page-index__promo-grid,
  .page-index__resource-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__feature-card,
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__resource-card {
    padding: 20px;
  }

  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__resource-image {
    max-height: 200px;
  }

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

  .page-index__advantages-list {
    margin-left: 0;
    margin-right: 0;
  }

  .page-index__contact-options {
    flex-direction: column;
    gap: 15px;
  }

  /* IMPORTANT: Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  /* Content area images must not be smaller than 200px (this rule is for desktop, ensuring it doesn't get smaller than 200px. Mobile uses max-width:100% and height:auto) */
  /* This is a general rule for all images within the content area on mobile */
  .page-index__feature-icon, 
  .page-index__game-image, 
  .page-index__promo-image, 
  .page-index__resource-image, 
  .page-index__cta-image {
    min-width: 200px; /* Enforce minimum size if not already scaled by max-width: 100% */
    min-height: 200px; /* Enforce minimum size */
    object-fit: contain; /* Adjust object-fit for smaller screens if needed */
  }
}

/* Ensure no image filter is applied */
.page-index img {
  filter: none; 
}

/* Ensure content area images are not explicitly set to small fixed sizes */
.page-index__feature-icon,
.page-index__game-image,
.page-index__promo-image,
.page-index__resource-image,
.page-index__cta-image {
  /* These rules are for general content images, ensuring they meet the min 200px requirement */
  width: auto; /* Allow natural width or flex container to dictate */
  height: auto; /* Allow natural height or flex container to dictate */
  max-width: 100%; /* Ensure responsiveness */
  min-width: 200px; /* Minimum width for content images */
  min-height: 200px; /* Minimum height for content images */
  object-fit: cover; /* Maintain aspect ratio and cover area */
}

/* Specific overrides for card images to ensure they are not too small */
.page-index__feature-card .page-index__feature-icon,
.page-index__game-card .page-index__game-image,
.page-index__promo-card .page-index__promo-image,
.page-index__resource-card .page-index__resource-image {
  width: 100%; /* Occupy full card width */
  max-height: 250px; /* Limit height for aesthetic balance */
  min-height: 200px; /* Ensure minimum height */
}