.page-index {
  color: #ffffff; /* Light text on dark body background */
  padding-top: var(--header-offset, 120px);
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

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

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

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

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

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  text-align: 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);
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly transparent overlay for readability */
  border-radius: 15px;
}

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

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

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

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

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

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-index__feature-icon {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-index__feature-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

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

.page-index__game-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.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index__game-title {
  font-size: 1.6em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-index__game-text {
  font-size: 0.95em;
  color: #f0f0f0;
  line-height: 1.5;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__game-card .page-index__button {
  margin: 20px auto;
}

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

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  text-align: center;
}

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

.page-index__promo-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.page-index__promo-title {
  font-size: 1.8em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-index__promo-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
  padding: 0 15px;
  margin-bottom: 25px;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  background-color: #0A192F;
  padding: 80px 0;
}

.page-index__responsible-gaming-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-index__responsible-gaming-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__responsible-gaming-text {
  width: 50%;
  text-align: left;
}

.page-index__responsible-gaming-text p {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* App Download Section */
.page-index__app-download-section {
  background-color: #0A192F;
  padding: 80px 0;
}

.page-index__app-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-index__app-image {
  width: 40%;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-index__app-details {
  width: 60%;
  text-align: left;
}

.page-index__app-subtitle {
  font-size: 2.2em;
  color: #FFD700;
  margin-bottom: 20px;
}

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

.page-index__app-features li {
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #f0f0f0;
}

.page-index__app-features li::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

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

.page-index__testimonial-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

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

.page-index__testimonial-text {
  font-size: 1.1em;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-index__testimonial-author {
  font-weight: 600;
  color: #FFD700;
  font-size: 1em;
}

/* Affiliate Section */
.page-index__affiliate-section {
  background-color: #0A192F;
  padding: 80px 0;
  text-align: center;
}

/* Call to Action Section */
.page-index__cta-section {
  background-color: #0A192F;
  padding: 80px 0;
  text-align: center;
}

.page-index__cta-section .page-index__button {
  margin: 0 10px;
}

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

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 600px;
    padding: 100px 20px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 1em;
  }
  .page-index__features-grid,
  .page-index__game-grid,
  .page-index__promo-grid,
  .page-index__testimonial-grid {
    grid-template-columns: 1fr;
  }
  .page-index__responsible-gaming-content,
  .page-index__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__responsible-gaming-image,
  .page-index__responsible-gaming-text,
  .page-index__app-image,
  .page-index__app-details {
    width: 100%;
  }
  .page-index__app-image {
    max-width: 400px;
  }
  .page-index__app-features li {
    text-align: left;
  }
  /* Ensure all images within .page-index are responsive and not smaller than 200px */
  .page-index img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
  }
  .page-index__feature-icon, .page-index__testimonial-avatar {
    min-width: 100px; /* Allow smaller for avatars, but still > 32x32 */
    min-height: 100px;
  }
  .page-index__hero-image, .page-index__game-image, .page-index__promo-image, .page-index__responsible-gaming-image, .page-index__app-image {
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__cta-section .page-index__button {
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.95em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__promo-image {
    height: 200px;
  }
  .page-index__feature-icon {
    width: 150px;
  }
}