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

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

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
  font-weight: bold;
}

.page-index__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-index__button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-size: 1.05em;
  text-align: center;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #000000; /* Black text on gold */
  border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-index__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #000000;
}

.page-index__button--small {
  padding: 8px 20px;
  font-size: 0.9em;
}

.page-index__button--text-link {
  background: none;
  border: none;
  color: #FFD700;
  text-decoration: underline;
  display: block;
  margin-top: 20px;
}

.page-index__button-group {
  text-align: center;
  margin-top: 40px;
}

.page-index__button-group .page-index__button:not(:last-child) {
  margin-right: 20px;
}

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #000000; /* Dark background for hero */
  position: relative;
  overflow: hidden;
}

.page-index__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  overflow: hidden;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

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

.page-index__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-buttons .page-index__button:not(:last-child) {
  margin-right: 20px;
}

/* About Section */
.page-index__about-section {
  background-color: #1a1a1a;
  padding: 80px 0;
}

/* Features Section */
.page-index__features-section {
  background-color: #000000;
  padding: 80px 0;
}

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

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__feature-icon {
  width: 100%; /* Ensure images are large and fill card space */
  height: auto;
  max-width: 300px; /* Constrain max width for icon-like images */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Games Section */
.page-index__games-section {
  background-color: #1a1a1a;
  padding: 80px 0;
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.page-index__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit will ensure aspect ratio */
  object-fit: cover;
  display: block;
}

.page-index__game-title {
  font-size: 1.5em;
  color: #FFD700;
  padding: 15px 20px 5px;
}

.page-index__game-link {
  color: #FFD700;
  text-decoration: none;
}

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

.page-index__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promotions-section {
  background-color: #000000;
  padding: 80px 0;
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-index__promo-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__promo-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Mobile Section */
.page-index__mobile-section {
  background-color: #1a1a1a;
  padding: 80px 0;
}

.page-index__mobile-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.page-index__mobile-image {
  max-width: 600px; /* Max width for mobile app image */
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
}

.page-index__mobile-buttons .page-index__button:not(:last-child) {
  margin-right: 20px;
}

/* Security Info Section */
.page-index__security-info-section {
  background-color: #000000;
  padding: 80px 0;
}

/* Testimonials Section */
.page-index__testimonials-section {
  background-color: #1a1a1a;
  padding: 80px 0;
}

.page-index__testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid #FFD700;
}

.page-index__testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #FFD700;
}

/* CTA Section */
.page-index__cta-section {
  background-color: #000000;
  padding: 80px 0;
  text-align: center;
}

.page-index__cta-section .page-index__button:not(:last-child) {
  margin-right: 20px;
}

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

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

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

  .page-index__features-grid, .page-index__games-grid, .page-index__promotions-grid, .page-index__testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 20px;
  }

  .page-index__hero-title {
    font-size: 2.8em;
  }

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

  .page-index__hero-buttons .page-index__button:not(:last-child) {
    margin-right: 10px;
  }

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

  .page-index__section-text {
    font-size: 1em;
  }

  .page-index__button {
    padding: 10px 25px;
    font-size: 1em;
  }

  .page-index__button-group .page-index__button:not(:last-child) {
    margin-right: 10px;
  }

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

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

  .page-index__game-title {
    font-size: 1.3em;
  }

  .page-index__promo-title {
    font-size: 1.4em;
  }

  .page-index__mobile-buttons {
    flex-direction: column;
  }

  .page-index__mobile-buttons .page-index__button:not(:last-child) {
    margin-right: 0;
    margin-bottom: 15px;
  }

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

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

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

  .page-index__hero-buttons {
    flex-direction: column;
  }

  .page-index__hero-buttons .page-index__button {
    width: 100%;
    margin-bottom: 15px;
  }

  .page-index__hero-buttons .page-index__button:not(:last-child) {
    margin-right: 0;
  }

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

  .page-index__button-group {
    flex-direction: column;
  }

  .page-index__button-group .page-index__button {
    width: 100%;
    margin-bottom: 15px;
  }

  .page-index__button-group .page-index__button:not(:last-child) {
    margin-right: 0;
  }

  .page-index__game-image, .page-index__promo-image {
    height: 150px;
  }

  .page-index__mobile-image {
    max-width: 90%;
  }
}