.page-index {
  color: #333333; /* Dark text for light body background */
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-index__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: 2;
}

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

.page-index__hero-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

.page-index__button--primary {
  background-color: #CC0000; /* Primary Red */
  color: #ffffff;
}

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

.page-index__button--secondary {
  background-color: #FFD700; /* Auxiliary Gold */
  color: #333333;
}

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

.page-index__button--text {
  color: #CC0000;
  background: none;
  padding: 0;
  font-size: 1em;
  font-weight: 500;
  text-decoration: underline;
}

.page-index__button--text:hover {
  color: #990000;
  transform: none;
}

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

.page-index__button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-index__section {
  padding: 80px 0;
  text-align: center;
}

.page-index__section--dark {
  background-color: #1a1a1a; /* Dark background for contrast */
  color: #ffffff;
}

.page-index__section--alt {
  background-color: #f9f9f9; /* Slightly off-white for visual break */
}

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

.page-index__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #CC0000; /* Primary red for section titles */
  font-weight: 700;
}

.page-index__section--dark .page-index__section-title {
  color: #FFD700; /* Gold for titles on dark background */
}

.page-index__section-subtitle {
  font-size: 1.3em;
  color: #555555;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section--dark .page-index__section-subtitle {
  color: #cccccc;
}

.page-index__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
  align-items: center;
}

.page-index__about-content p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.page-index__about-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

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

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

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

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

.page-index__benefit-description {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

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

.page-index__game-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-index__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

.page-index__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-index__game-title a {
  color: #CC0000;
  text-decoration: none;
}

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

.page-index__game-description {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
}

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

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

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

.page-index__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

.page-index__promo-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-index__promo-title a {
  color: #CC0000;
  text-decoration: none;
}

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

.page-index__promo-description {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-index__mobile-app-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-index__mobile-app-content {
  flex: 1;
}

.page-index__mobile-app-content .page-index__section-title {
  text-align: left;
}

.page-index__mobile-app-content .page-index__section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__mobile-app-content p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.page-index__mobile-app-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

.page-index__security-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
  margin-bottom: 50px;
}

.page-index__security-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index__security-description {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

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

.page-index__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

.page-index__cta-section {
  background-color: #CC0000; /* Primary Red CTA background */
  color: #ffffff;
  padding: 100px 0;
}

.page-index__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 25px;
}

.page-index__cta-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__about-grid,
  .page-index__mobile-app-flex {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .page-index__mobile-app-content .page-index__section-title,
  .page-index__mobile-app-content .page-index__section-subtitle {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    height: 80vh;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index__section {
    padding: 60px 0;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-index__about-grid,
  .page-index__mobile-app-flex {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .page-index__about-content,
  .page-index__mobile-app-content {
    text-align: center;
  }
  .page-index__mobile-app-content .page-index__section-title,
  .page-index__mobile-app-content .page-index__section-subtitle {
    text-align: center;
  }
  .page-index__mobile-app-content .page-index__button {
    margin: 20px auto 0;
  }
  .page-index__benefits-grid,
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__security-support-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-image, .page-index__promo-image, .page-index__about-image, .page-index__mobile-app-image, .page-index__security-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-index__cta-title {
    font-size: 2.2em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
  .page-index__cta-section {
    padding: 60px 0;
  }
  /* Content area images must not cause horizontal scroll */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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