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

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

/* Hero Section */
.page-index__hero-section {
  background-color: #0A192F; /* Main brand color for hero background */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
}

.page-index__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.page-index__hero-content {
  color: #ffffff;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-index__hero-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for title */
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0.9;
}

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

.page-index__btn {
  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;
  white-space: nowrap;
}

.page-index__btn--primary {
  background-color: #FFD700; /* Gold accent */
  color: #0A192F; /* Dark blue text */
  border: 2px solid #FFD700;
}

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

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

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

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
}

/* General Section Styling */
.page-index__about-section, .page-index__features-section, .page-index__games-section, .page-index__promotions-section, .page-index__mobile-app-section, .page-index__support-section, .page-index__cta-section, .page-index__faq-section {
  padding: 80px 0;
  text-align: center;
}

.page-index__about-section, .page-index__promotions-section, .page-index__cta-section {
  background-color: #f0f0f0; /* Light background for contrast */
}

.page-index__section-title {
  font-size: 2.8em;
  color: #0A192F;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

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

.page-index__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-index__feature-icon {
  width: 100%; /* Ensure images are not small */
  max-width: 200px; /* Example size, ensuring >200px */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__feature-title {
  font-size: 1.5em;
  color: #0A192F;
  margin-bottom: 15px;
  font-weight: 600;
}

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

/* Games Grid */
.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__game-card {
  background-color: #0A192F;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

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

.page-index__game-title {
  font-size: 1.6em;
  margin: 20px 20px 10px 20px;
  font-weight: 600;
}

.page-index__game-title a {
  color: #FFD700; /* Gold for game titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-title a:hover {
  color: #ffffff;
}

.page-index__game-text {
  font-size: 0.95em;
  line-height: 1.6;
  padding: 0 20px 20px 20px;
  color: #cccccc;
}

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-index__promo-image {
  width: 100%;
  max-width: 300px; /* Example size, ensuring >200px */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__promo-title {
  font-size: 1.5em;
  color: #0A192F;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__promo-title a {
  color: #0A192F; /* Dark blue for promo titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-title a:hover {
  color: #FFD700;
}

.page-index__promo-text {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 6px;
}

.page-index__cta-full-width {
  margin-top: 50px;
}

.page-index__btn--full {
  width: auto;
  min-width: 250px;
  padding: 15px 30px;
  background-color: #0A192F;
  color: #FFD700;
  border: 2px solid #0A192F;
}

.page-index__btn--full:hover {
  background-color: #1a2c4a;
  transform: translateY(-2px);
}

/* Mobile App Section */
.page-index__mobile-app-section {
  background-color: #0A192F;
  color: #ffffff;
  text-align: left;
}

.page-index__mobile-app-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

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

.page-index__mobile-app-content .page-index__section-title {
  color: #FFD700;
}

.page-index__mobile-app-content .page-index__section-description {
  color: #cccccc;
  margin-bottom: 30px;
  max-width: none;
}

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

.page-index__mobile-app-image {
  width: 100%;
  max-width: 400px; /* Example size, ensuring >200px */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Support Section */
.page-index__support-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* CTA Section */
.page-index__cta-section .page-index__section-title {
  color: #0A192F;
}

.page-index__cta-section .page-index__section-description {
  color: #555555;
}

.page-index__cta-content {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 60px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-index__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-index__faq-list {
  text-align: left;
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-index__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index__faq-question {
  font-size: 1.2em;
  font-weight: 600;
  color: #0A192F;
  padding: 20px 25px;
  cursor: pointer;
  display: block;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-index__faq-question:hover {
  background-color: #f8f8f8;
}

.page-index__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-index__faq-item[open] .page-index__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-index__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  border-top: 1px solid #e0e0e0;
}

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

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

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

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

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

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

  .page-index__hero-buttons, .page-index__support-links, .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__btn--full, .page-index__btn--primary, .page-index__btn--secondary {
    width: 100%;
  }

  .page-index__about-section, .page-index__features-section, .page-index__games-section, .page-index__promotions-section, .page-index__mobile-app-section, .page-index__support-section, .page-index__cta-section, .page-index__faq-section {
    padding: 60px 0;
  }

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

  .page-index__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index__features-grid, .page-index__games-grid, .page-index__promotions-grid {
    grid-template-columns: 1fr;
  }

  .page-index__game-image {
    height: 200px;
  }

  .page-index__mobile-app-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-index__mobile-app-content, .page-index__mobile-app-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-index__mobile-app-image {
    max-width: 300px;
  }

  /* Enforce image responsiveness for all content images */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__feature-icon, .page-index__promo-image {
    max-width: 100%;
    height: auto;
    width: auto; /* Allow auto width to scale with max-width */
  }

  .page-index__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-index__faq-question::after {
    right: 20px;
  }

  .page-index__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  /* Ensure no content overflow */
  .page-index {
    overflow-x: hidden;
  }
}

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

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

  .page-index__hero-buttons {
    gap: 10px;
  }
}