.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 {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #FFFFFF; /* White text for hero content over image */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
  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;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for text */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login color for emphasis */
}

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

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

.page-index__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px; /* Ensure buttons are large enough */
}

.page-index__btn--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__btn--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

.page-index__btn--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__btn--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-index__btn--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 12px 25px;
}

.page-index__btn--primary:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-index__btn--secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  padding: 12px 25px;
}

.page-index__btn--secondary:hover {
  background-color: transparent;
  color: #000000;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  min-width: unset;
}

.page-index__btn--app-download {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FCBC45;
}

.page-index__btn--app-download:hover {
  background-color: #FCBC45;
  color: #000000;
}

/* General Section Styling */
.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

/* Features Section */
.page-index__features-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-index__feature-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 450px; /* Ensure cards have consistent height */
}

.page-index__feature-icon {
  width: 200px; /* Minimum image size */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-index__feature-text {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__feature-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
}

.page-index__feature-link:hover {
  text-decoration: underline;
}

/* Games Overview Section */
.page-index__games-overview {
  padding: 60px 0;
}

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

.page-index__game-card {
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 550px; /* Consistent card height */
}

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

.page-index__game-card h3, .page-index__game-card p, .page-index__game-card a {
  padding: 0 25px;
}

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

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

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

.page-index__game-text {
  font-size: 0.95em;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__game-card .page-index__btn {
  margin: 0 25px 25px;
  align-self: flex-start;
}

/* Promotion CTA Section */
.page-index__promo-cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-index__promo-cta-section .page-index__section-title {
  color: #FCBC45;
}

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

/* App Download Section */
.page-index__app-download-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-index__app-download-section .page-index__container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

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

.page-index__app-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Latest News Section */
.page-index__latest-news-section {
  padding: 60px 0;
}

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

.page-index__news-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 450px; /* Consistent card height */
}

.page-index__news-image {
  width: 100%;
  height: 200px; /* Minimum image size */
  object-fit: cover;
}

.page-index__news-card h3, .page-index__news-card p, .page-index__news-card a {
  padding: 0 25px;
}

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

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

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

.page-index__news-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__news-read-more {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  margin: 0 25px 25px;
  align-self: flex-start;
}

.page-index__news-read-more:hover {
  text-decoration: underline;
}

.page-index__all-news-cta {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-index__faq-list {
  margin-top: 40px;
}

.page-index__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

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

.page-index__faq-cta {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* About Us Section */
.page-index__about-us-section {
  padding: 80px 0;
  text-align: center;
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__about-us-section .page-index__section-title {
  color: #FCBC45;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__app-download-section .page-index__container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-image {
    order: -1; /* Image above text on smaller screens */
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.95em;
  }
  .page-index__features-grid, .page-index__games-grid, .page-index__news-grid {
    grid-template-columns: 1fr;
  }
  /* Mobile specific image sizing */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__feature-icon, .page-index__game-image, .page-index__news-image {
    width: 100%;
    height: auto; /* Allow auto height for responsive scaling */
    min-height: 200px; /* Ensure minimum height */
    object-fit: cover;
  }
  .page-index__app-image {
    min-height: 200px;
  }
  .page-index__feature-card, .page-index__game-card, .page-index__news-card {
    min-height: auto; /* Allow height to adjust based on content */
  }
  .page-index__faq-cta {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__btn {
    padding: 12px 20px;
    font-size: 1em;
  }
}