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

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section {
  padding: 60px 0;
  text-align: center;
}

.page-index__section--dark {
  background-color: #0A192F; /* Main brand dark blue */
  color: #f0f0f0;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #0A192F;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-index__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  color: #f0f0f0;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(10, 25, 47, 0.7); /* Semi-transparent dark blue overlay */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.8em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.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, transform 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-index__btn--primary {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

.page-index__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-index__btn--secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-3px);
}

.page-index__btn--tertiary {
  background-color: #0A192F;
  color: #FFD700;
  border: 2px solid #0A192F;
}

.page-index__btn--tertiary:hover {
  background-color: #1a2a47;
  transform: translateY(-3px);
}

.page-index__btn--light {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

.page-index__btn--light:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

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

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

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

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

.page-index__about-image-wrapper {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__about-image {
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-index__game-card, .page-index__promo-card, .page-index__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card-image, .page-index__promo-card-image, .page-index__feature-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index__game-card-title, .page-index__promo-card-title, .page-index__feature-card-title {
  font-size: 1.8em;
  color: #0A192F;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__game-card-title a, .page-index__promo-card-title a, .page-index__feature-card-title a {
  color: #0A192F;
  text-decoration: none;
}

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

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

.page-index__promo-cta {
  margin-top: 60px;
}

.page-index__responsible-gaming-section .page-index__section-description {
  color: #e0e0e0;
}

.page-index__cta-section {
  background-color: #FFD700;
  color: #0A192F;
}

.page-index__cta-section .page-index__section-title {
  color: #0A192F;
}

.page-index__cta-section .page-index__section-description {
  color: #333333;
}

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

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

  .page-index__about-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__about-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

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

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

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

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

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

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

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

  .page-index__games-grid, .page-index__promo-grid, .page-index__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__about-text, .page-index__about-image-wrapper {
    min-width: unset;
  }

  /* Ensure images do not overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__game-card-image, .page-index__promo-card-image, .page-index__feature-card-image {
    height: auto; /* Allow height to adjust for responsiveness */
  }
}

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

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

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

  .page-index__btn {
    padding: 12px 20px;
    font-size: 1em;
  }
}