.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 */
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Primary color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-index__button--primary {
  background-color: #FFD700; /* Primary color */
  color: #8B0000; /* Auxiliary color for text */
  border: 2px solid #FFD700;
}

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

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

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

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

.page-index__button--cta {
  background-color: #8B0000; /* Auxiliary color for CTA */
  color: #FFD700; /* Primary color for text */
  border: 2px solid #8B0000;
  padding: 18px 40px;
  font-size: 1.3em;
}

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

/* Hero Section */
.page-index__hero-section {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.7) 0%, rgba(255, 215, 0, 0.2) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-index__hero-container {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__hero-content {
  flex: 1;
  text-align: left;
}

.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;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.5;
  text-align: left;
}

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

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

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

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

/* 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;
}

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent card background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-index__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 400px; /* Explicit width for layout slot */
  height: 300px; /* Explicit height for layout slot */
  object-fit: cover;
}

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

.page-index__card-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__card-title a:hover {
  color: #fff;
}

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

/* Promotions Section */
.page-index__promo-section {
  padding: 80px 0;
  background-color: rgba(139, 0, 0, 0.1); /* Auxiliary color subtle background */
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-index__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 400px; /* Explicit width for layout slot */
  height: 300px; /* Explicit height for layout slot */
  object-fit: cover;
}

.page-index__full-promo-link {
  text-align: center;
}

/* Security Section */
.page-index__security-section {
  padding: 80px 0;
}

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

.page-index__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.page-index__feature-icon {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  width: 200px; /* Explicit width for layout slot */
  height: 150px; /* Explicit height for layout slot */
  object-fit: contain;
}

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

.page-index__feature-description {
  font-size: 0.95em;
  color: #e0e0e0;
}

.page-index__security-links {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Download App Section */
.page-index__download-app-section {
  padding: 80px 0;
  background-color: rgba(139, 0, 0, 0.15);
}

.page-index__download-app-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-index__app-content {
  flex: 1;
  text-align: left;
}

.page-index__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-index__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 400px; /* Explicit width for layout slot */
  height: 500px; /* Explicit height for layout slot */
  object-fit: contain;
}

/* Why Choose Section */
.page-index__why-choose-section {
  padding: 80px 0;
}

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

.page-index__feature-box {
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__box-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* CTA Section */
.page-index__cta-section {
  padding: 100px 0;
  background: linear-gradient(45deg, #8B0000, #FFD700);
  text-align: center;
  border-radius: 15px;
  margin: 60px auto;
  max-width: 1000px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.page-index__cta-section .page-index__section-title {
  color: #ffffff;
  font-size: 3.2em;
}

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

/* Responsive adjustments */
@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__game-grid,
  .page-index__promo-cards,
  .page-index__security-features,
  .page-index__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-index__download-app-container {
    flex-direction: column;
    text-align: center;
  }

  .page-index__app-content {
    text-align: center;
  }

  .page-index__app-image-wrapper {
    margin-top: 40px;
  }
}

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

  .page-index__hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-index__hero-content {
    text-align: center;
  }

  .page-index__hero-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }

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

  .page-index__hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

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

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

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

  .page-index__button--cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  .page-index__game-grid,
  .page-index__promo-cards,
  .page-index__security-features,
  .page-index__features-grid {
    grid-template-columns: 1fr;
  }

  .page-index__security-links {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__cta-section {
    padding: 60px 20px;
    margin: 40px 20px;
  }

  .page-index__cta-section .page-index__section-title {
    font-size: 2.5em;
  }

  /* Ensure images do not overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__container {
    overflow-x: hidden;
  }

  .page-index__hero-image,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__feature-icon,
  .page-index__app-image {
    width: auto; /* Allow auto width for mobile responsiveness */
    height: auto; /* Allow auto height for mobile responsiveness */
    max-width: 100%;
  }

  .page-index__hero-image-wrapper,
  .page-index__app-image-wrapper {
    width: 100%;
  }
}