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

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  background-color: #000000; /* Fallback for image loading */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7; /* Slightly darken image for text readability */
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  color: #FFFFFF;
}

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

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index__hero-actions {
  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, transform 0.2s ease;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
}

.page-index__button--primary {
  background-color: #FCBC45; /* Login color for primary CTA */
  color: #000000;
}

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

.page-index__button--secondary {
  background-color: #FFFFFF; /* Register color for secondary CTA */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-index__button--tertiary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FCBC45;
}

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

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FCBC45;
  color: #000000;
}

.page-index__button--small:hover {
  background-color: #e0a53a;
  transform: translateY(-1px);
}

.page-index__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
  background-color: #FCBC45;
  color: #000000;
}

.page-index__button--large:hover {
  background-color: #e0a53a;
  transform: translateY(-3px);
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-index__section-text {
  font-size: 1.1em;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-index__about-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

.page-index__games-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-index__game-card {
  background-color: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.page-index__game-text {
  font-size: 1em;
  color: #666666;
  padding: 0 20px 20px 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.page-index__promotions-section {
  background-color: #f0f0f0;
  padding: 60px 0;
}

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

.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.page-index__promo-text {
  font-size: 1em;
  color: #666666;
  padding: 0 20px 20px 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.page-index__why-choose-us-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-index__features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.page-index__feature-item {
  background-color: #fdfdfd;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

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

.page-index__feature-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 15px;
}

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-index__cta-section .page-index__section-title {
  color: #FFFFFF;
}

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

.page-index__testimonials-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-index__testimonial-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-index__testimonial-text {
  font-style: italic;
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #000000;
  font-size: 1em;
}

.page-index__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-index__faq-item {
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px 25px;
  transition: box-shadow 0.3s ease;
}

.page-index__faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
}

.page-index__faq-answer {
  font-size: 1.1em;
  color: #555555;
  line-height: 1.6;
}

.page-index__download-app-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-index__download-app-section .page-index__section-title {
  color: #FFFFFF;
}

.page-index__download-app-section .page-index__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-index__app-note {
  font-size: 0.9em;
  color: #cccccc;
  margin-top: 20px;
}

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

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px);
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-description {
    font-size: 1em;
  }
  /* Enforce minimum image size for content images */
  .page-index img {
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__game-image, .page-index__promo-image, .page-index__feature-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none; /* Allow height to adjust */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__button {
    width: 90%;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.9em;
  }
  .page-index__game-title {
    font-size: 1.4em;
  }
  .page-index__promo-title {
    font-size: 1.5em;
  }
  .page-index__feature-title {
    font-size: 1.5em;
  }
  .page-index__faq-question {
    font-size: 1.2em;
  }
  .page-index__faq-answer {
    font-size: 0.9em;
  }
}