.page-index {
  color: #333333; /* Dark text for light body background #f4f4f4 */
  padding-top: var(--header-offset, 120px);
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Constrain content width */
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.page-index__hero-content {
  background-color: rgba(10, 36, 106, 0.7); /* Primary color with transparency */
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  max-width: 800px;
}

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #F3C500; /* Secondary color for emphasis */
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-index__hero-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;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
}

.page-index__button--primary {
  background-color: #F3C500; /* Secondary color */
  color: #0A246A; /* Primary color */
  border: 2px solid #F3C500;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #F3C500;
  border: 2px solid #F3C500;
}

.page-index__button--secondary:hover {
  background-color: #F3C500;
  color: #0A246A;
  transform: translateY(-2px);
}

.page-index__section-title {
  font-size: 2.5em;
  color: #0A246A;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

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

.page-index__games-showcase, .page-index__promotions-section, .page-index__platform-advantages, .page-index__about-789taya, .page-index__cta-section, .page-index__details-list {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-index__game-categories, .page-index__promo-cards, .page-index__advantages-grid, .page-index__detail-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__game-card, .page-index__promo-card, .page-index__advantage-item, .page-index__detail-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card-image, .page-index__promo-card-image, .page-index__advantage-icon {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__game-card-title, .page-index__promo-card-title, .page-index__advantage-title, .page-index__detail-card-title {
  font-size: 1.5em;
  color: #0A246A;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-index__game-card-title a, .page-index__detail-card-title a {
  color: #0A246A;
  text-decoration: none;
}

.page-index__game-card-title a:hover, .page-index__detail-card-title a:hover {
  color: #F3C500;
}

.page-index__game-card-text, .page-index__promo-card-text, .page-index__advantage-text, .page-index__detail-card-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: auto; /* Push button to bottom */
}

.page-index__view-all-promos, .page-index__cta-buttons {
  text-align: center;
  margin-top: 50px;
}

.page-index__about-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.05em;
  color: #444444;
}

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

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.95em;
  }
  .page-index__game-categories, .page-index__promo-cards, .page-index__advantages-grid, .page-index__detail-cards {
    grid-template-columns: 1fr;
  }

  /* Ensure images do not overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-image {
    height: 400px; /* Adjust hero image height for mobile */
  }
  .page-index__game-card-image, .page-index__promo-card-image, .page-index__advantage-icon {
    height: 200px; /* Smaller fixed height for consistency on mobile */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__button {
    width: 90%;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__about-content p {
    font-size: 0.95em;
  }
}