.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 not hidden by fixed header */
  background-color: #1A1A1A; /* Auxiliary dark background for the page content */
}

.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  text-align: center;
  padding: 40px 20px;
  overflow: hidden;
  background-color: #1A1A1A;
}

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

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

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

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

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  min-width: 200px;
  text-align: center;
}

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

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

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

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

.page-index__button--text {
  background: none;
  border: none;
  color: #FFD700;
  padding: 0;
  font-weight: bold;
  text-decoration: underline;
  min-width: unset;
}

.page-index__button--text:hover {
  color: #e6c200;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
}

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

.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__security-section,
.page-index__mobile-section,
.page-index__why-choose-section,
.page-index__testimonials-section,
.page-index__faq-section,
.page-index__detail-pages-section,
.page-index__contact-cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-index__about-content p {
  flex: 1;
  min-width: 300px;
  font-size: 1.1em;
  color: #cccccc;
}

.page-index__about-image {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border-left: 5px solid #FFD700;
}

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

.page-index__feature-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 20px;
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-index__game-card .page-index__button--primary {
  margin: 0 15px 20px;
}

.page-index__cta-banner {
  position: relative;
  background-color: #1A1A1A;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 30px;
}

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

.page-index__cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.page-index__cta-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

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

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__promo-description {
  font-size: 1.1em;
  color: #cccccc;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-index__promo-card .page-index__button--primary {
  margin: 0 15px 20px;
}

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

.page-index__security-image,
.page-index__mobile-image {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-index__security-text,
.page-index__mobile-text {
  flex: 1;
  min-width: 300px;
}

.page-index__security-text p,
.page-index__mobile-text p {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 20px;
}

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

.page-index__reason-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  border-bottom: 5px solid #FFD700;
}

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

.page-index__reason-description {
  font-size: 1.1em;
  color: #cccccc;
}

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

.page-index__testimonial-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  font-style: italic;
  position: relative;
}

.page-index__testimonial-card::before {
  content: '"';
  font-size: 4em;
  color: #FFD700;
  position: absolute;
  top: 10px;
  left: 15px;
  opacity: 0.3;
}

.page-index__testimonial-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 15px;
  padding-top: 20px;
}

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

.page-index__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__faq-question {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__faq-answer {
  font-size: 1.1em;
  color: #cccccc;
}

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

.page-index__detail-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

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

.page-index__detail-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-index__detail-title a:hover {
  text-decoration: underline;
}

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

.page-index__contact-cta-section {
  text-align: center;
  padding-bottom: 80px;
}

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

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

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

  .page-index__about-image,
  .page-index__security-image,
  .page-index__mobile-image {
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 600px;
  }

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

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

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

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

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

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

  .page-index__about-content,
  .page-index__security-content,
  .page-index__mobile-content {
    flex-direction: column;
  }

  .page-index__about-image,
  .page-index__security-image,
  .page-index__mobile-image {
    width: 100%;
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
    max-height: auto; /* Ensure images are responsive */
  }

  .page-index__about-content p,
  .page-index__security-text p,
  .page-index__mobile-text p {
    min-width: unset;
  }

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

  .page-index__cta-title {
    font-size: 2em;
  }

  .page-index__cta-description {
    font-size: 1em;
  }

  .page-index__faq-question {
    font-size: 1.3em;
  }

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

  /* Critical: Prevent content overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index {
    overflow-x: hidden;
  }
}

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

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

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

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