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

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

.page-index__section-title {
  font-size: 2.8rem;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-top: 40px;
}

.page-index__section-title--hidden {
  display: none;
}

.page-index__section-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #1a1a1a; /* Dark text for gold button */
}

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

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

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

.page-index__button--text {
  background-color: transparent;
  color: #FFD700;
  padding: 8px 0;
  border-radius: 0;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-index__button--text:hover {
  color: #e6c200;
  text-decoration: underline;
  background-color: transparent;
  transform: none;
}

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

.page-index__button--large {
  padding: 15px 40px;
  font-size: 1.2rem;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 60px 0;
  overflow: hidden;
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-index__hero-title {
  font-size: 3.8rem;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.page-index__hero-description {
  font-size: 1.3rem;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* About Section */
.page-index__about-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  padding: 80px 0;
}

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

.page-index__about-card {
  background-color: rgba(0, 0, 0, 0.4); /* Darker card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-top: 3px solid #FFD700;
}

.page-index__about-card-icon {
  width: 200px; /* Min size */
  height: 200px; /* Min size */
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-index__about-card-title {
  font-size: 1.8rem;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__about-card-text {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 20px;
}

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

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

.page-index__game-card {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

.page-index__game-card-title {
  font-size: 1.6rem;
  color: #FFD700;
  padding: 15px 20px 5px;
  font-weight: 600;
}

.page-index__game-card-text {
  font-size: 0.95rem;
  color: #cccccc;
  padding: 0 20px 15px;
}

.page-index__game-card .page-index__button {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-index__view-all-games {
  text-align: center;
}

/* Promotions Section */
.page-index__promotions-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 80px 0;
}

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

.page-index__promotion-card {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
}

.page-index__promotion-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__promotion-card-title {
  font-size: 1.6rem;
  color: #FFD700;
  padding: 15px 20px 5px;
  font-weight: 600;
}

.page-index__promotion-card-text {
  font-size: 0.95rem;
  color: #cccccc;
  padding: 0 20px 15px;
}

.page-index__promotion-card .page-index__button {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  background-color: #8B0000; /* Red button for promotions */
  color: #ffffff;
}

.page-index__promotion-card .page-index__button:hover {
  background-color: #a00000;
}

.page-index__view-all-promos {
  text-align: center;
}

/* Mobile Section */
.page-index__mobile-section {
  padding: 80px 0;
}

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

.page-index__mobile-content {
  flex: 1;
  min-width: 300px;
}

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

.page-index__mobile-image {
  width: 400px; /* specific size for mobile image */
  height: 300px; /* specific size for mobile image */
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-index__app-features li {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.page-index__icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
  background-color: #FFD700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-index__icon--mobile::before { content: '📱'; }
.page-index__icon--games::before { content: '🎲'; }
.page-index__icon--secure::before { content: '🔒'; }
.page-index__icon--bonus::before { content: '🎁'; }

/* Guide Section */
.page-index__guide-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 80px 0;
}

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

.page-index__guide-step {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border-bottom: 3px solid #FFD700;
}

.page-index__guide-step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background-color: #FFD700;
  color: #1a1a1a;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-index__guide-step-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__guide-step-text {
  font-size: 0.95rem;
  color: #cccccc;
}

.page-index__guide-actions {
  text-align: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

.page-index__testimonial-card {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-left: 3px solid #8B0000;
}

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

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

/* Call to Action Section */
.page-index__cta-section {
  background-color: #8B0000; /* Red background for strong CTA */
  padding: 60px 0;
  text-align: center;
}

.page-index__cta-container {
  padding: 0 20px;
}

.page-index__cta-title {
  font-size: 3rem;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 800;
}

.page-index__cta-description {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 40px;
}

/* Details List Section */
.page-index__details-list-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-index__details-card {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border-right: 3px solid #FFD700;
}

.page-index__details-card-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.page-index__details-card-title a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
}

.page-index__details-card-title a:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-index__details-card-description {
  font-size: 0.95rem;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Legal Links Section */
.page-index__legal-links {
  padding: 40px 0;
  background-color: #1a1a1a;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-index__legal-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 40px;
}

.page-index__legal-link {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.page-index__legal-link:hover {
  color: #FFD700;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3rem;
  }
  .page-index__hero-description {
    font-size: 1.1rem;
  }
  .page-index__section-title {
    font-size: 2.4rem;
  }
  .page-index__cta-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 60vh;
  }
  .page-index__hero-title {
    font-size: 2.5rem;
  }
  .page-index__hero-description {
    font-size: 1rem;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 280px;
  }
  .page-index__section-title {
    font-size: 2rem;
  }
  .page-index__section-description {
    font-size: 0.95rem;
  }
  .page-index__about-card-icon, .page-index__mobile-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__mobile-container {
    flex-direction: column;
  }
  .page-index__guide-actions {
    flex-direction: column;
  }
  .page-index__cta-title {
    font-size: 2rem;
  }

  /* 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: 2rem;
  }
  .page-index__section-title {
    font-size: 1.8rem;
  }
  .page-index__cta-title {
    font-size: 1.8rem;
  }
  .page-index__hero-description, .page-index__section-description, .page-index__app-features li, .page-index__guide-step-text, .page-index__testimonial-text, .page-index__cta-description, .page-index__details-card-description, .page-index__legal-link {
    font-size: 0.9rem;
  }
  .page-index__button--large {
    font-size: 1rem;
    padding: 12px 25px;
  }
  .page-index__game-card-title, .page-index__promotion-card-title, .page-index__about-card-title, .page-index__guide-step-title, .page-index__details-card-title {
    font-size: 1.4rem;
  }
}