.page-index {
  color: #333333; /* Dark text on light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Minimum height for hero section */
}

.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;
  z-index: 2;
  max-width: 1200px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.page-index__hero-content {
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent black overlay for text readability */
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
}

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

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

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

.page-index__btn {
  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, color 0.3s ease;
  border: 2px solid transparent;
}

.page-index__btn--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Black text on FCBC45 background */
  border-color: #FCBC45;
}

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

.page-index__btn--secondary {
  background-color: transparent;
  color: #FFFFFF; /* White text on dark background */
  border-color: #FFFFFF;
}

.page-index__btn--secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.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__section-description {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-index__features-section, .page-index__games-section, .page-index__about-section, .page-index__promotions-section, .page-index__deep-content-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

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

.page-index__feature-card, .page-index__game-card, .page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-index__feature-card:hover, .page-index__game-card:hover, .page-index__promo-card:hover {
  transform: translateY(-10px);
}

.page-index__feature-icon, .page-index__game-thumbnail, .page-index__promo-thumbnail {
  width: 100%;
  height: 200px; /* Minimum height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__card-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index__card-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__card-title a:hover {
  color: #FCBC45;
}

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

.page-index__card-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Pushes the link to the bottom */
}

.page-index__card-link:hover {
  text-decoration: underline;
}

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

.page-index__about-image {
  flex: 1; /* Allow image to grow */
  min-width: 300px; /* Minimum width for image */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-index__about-text {
  flex: 2; /* Allow text to grow more */
  min-width: 300px;
}

.page-index__paragraph {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-index__games-section .page-index__btn--primary,
.page-index__all-games-action,
.page-index__all-promos-action {
  text-align: center;
  margin-top: 40px;
}

.page-index__call-to-action-section {
  background-color: #000000; /* Black background */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  margin: 80px auto;
}

.page-index__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__cta-title {
  font-size: 2.8em;
  color: #FCBC45;
  margin-bottom: 20px;
}

.page-index__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-index__deep-content-section {
  margin-top: 80px;
}

.page-index__sub-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}

.page-index__sub-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: #FCBC45;
  border-radius: 1.5px;
}

.page-index__deep-content-actions {
  text-align: center;
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

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

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
  }
  .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__btn {
    width: 80%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.95em;
  }
  .page-index__features-grid, .page-index__games-grid, .page-index__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-index__feature-icon, .page-index__game-thumbnail, .page-index__promo-thumbnail {
    max-width: 100%;
    height: auto; /* Ensures images are responsive and don't overflow */
    min-height: 200px; /* Maintain minimum size */
  }
  .page-index__about-content {
    flex-direction: column;
  }
  .page-index__about-image {
    width: 100%;
    max-width: 600px;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__sub-title {
    font-size: 1.6em;
  }
  .page-index__paragraph {
    font-size: 1em;
  }
  /* Ensure all content area images are responsive and do not cause overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@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.6em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__btn {
    width: 90%;
  }
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__features-section, .page-index__games-section, .page-index__about-section, .page-index__promotions-section, .page-index__deep-content-section {
    margin: 60px auto;
  }
}