.page-index {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: var(--header-offset, 120px) 20px 60px; /* Ensure space for fixed header */
  background-color: #003366;
  overflow: hidden;
}

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

.page-index__hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: #ffffff;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-index__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 200px; /* Ensure button minimum size */
  text-align: center;
}

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

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

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

.page-index__btn--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

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

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

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

.page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__mobile-section, .page-index__security-gaming-section, .page-index__support-section, .page-index__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-index__about-section, .page-index__security-gaming-section, .page-index__support-section {
  background-color: #f9f9f9;
}

.page-index__games-section, .page-index__promotions-section, .page-index__cta-section {
  background-color: #ffffff;
}

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

.page-index__section-intro {
  font-size: 1.1em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-index__features-grid, .page-index__game-categories, .page-index__promo-cards, .page-index__security-gaming-grid, .page-index__support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__feature-card, .page-index__game-card, .page-index__promo-card, .page-index__sg-card, .page-index__support-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 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__sg-card:hover, .page-index__support-card:hover {
  transform: translateY(-5px);
}

.page-index__feature-icon, .page-index__game-image, .page-index__promo-image, .page-index__sg-icon {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images don't exceed a reasonable size in cards */
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 20px;
  display: block;
}

.page-index__feature-title, .page-index__game-title, .page-index__promo-title, .page-index__sg-title, .page-index__support-title {
  font-size: 1.8em;
  color: #003366;
  margin-bottom: 15px;
}

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

.page-index__full-game-cta, .page-index__full-promo-cta, .page-index__responsible-gaming-cta {
  margin-top: 60px;
}

.page-index__mobile-section {
  background: linear-gradient(135deg, #003366, #001a33);
  color: #ffffff;
}

.page-index__mobile-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 50px;
}

.page-index__mobile-text-content {
  flex: 1;
}

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

.page-index__mobile-section .page-index__section-intro {
  color: #f0f0f0;
}

.page-index__mobile-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-index__mobile-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FFD700" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-index__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index__support-options {
  margin-top: 40px;
}

.page-index__support-card {
  background-color: #eef4f8;
  border: 1px solid #dcdcdc;
}

.page-index__support-card:hover {
  background-color: #e0eaf2;
}

.page-index__support-closing {
  margin-top: 50px;
  font-size: 1.1em;
  color: #555555;
}

.page-index__cta-section {
  background-color: #003366;
  color: #ffffff;
  text-align: center;
}

.page-index__cta-section .page-index__section-title {
  color: #FFD700;
  margin-bottom: 25px;
}

.page-index__cta-section .page-index__section-intro {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive adjustments */
@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__mobile-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index__mobile-text-content {
    margin-bottom: 40px;
  }

  .page-index__mobile-features {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px);
  }

  .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__btn {
    width: 100%;
    max-width: 300px;
  }

  .page-index__btn--large {
    max-width: 300px;
  }

  .page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__mobile-section, .page-index__security-gaming-section, .page-index__support-section, .page-index__cta-section {
    padding: 60px 0;
  }

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

  .page-index__section-intro {
    font-size: 0.95em;
  }

  .page-index__features-grid, .page-index__game-categories, .page-index__promo-cards, .page-index__security-gaming-grid, .page-index__support-options {
    grid-template-columns: 1fr;
  }

  .page-index__mobile-features {
    padding-left: 0;
  }

  .page-index__mobile-features li {
    background-position: center left;
  }

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

  .page-index__feature-icon, .page-index__game-image, .page-index__promo-image, .page-index__sg-icon {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Adjust object-fit for smaller screens if needed */
  }

  .page-index__hero-section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-index__container {
    padding: 0 10px;
  }
}

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

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

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

  .page-index__btn--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}