/* style/index.css */
.page-index {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 600px;
  color: #FFFFFF;
  text-align: center;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

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

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

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

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

.page-index__button--download:hover {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
}

.page-index__button--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-index__button--cta:hover {
  background-color: #FFD700;
  border-color: #FFD700;
}

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

.page-index__button--small:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-index__button--view-all {
  margin-top: 40px;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--view-all:hover {
  background-color: #333333;
  border-color: #333333;
}

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

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-index__features-section, .page-index__games-overview-section, .page-index__promo-section, .page-index__app-features-section, .page-index__getting-started-section, .page-index__detail-pages-section, .page-index__cta-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__features-section {
  background-color: #f9f9f9;
}

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

.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;
  transition: transform 0.3s ease;
}

.page-index__feature-card:hover {
  transform: translateY(-10px);
}

.page-index__feature-icon {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-index__feature-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

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

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

.page-index__why-choose-link {
  text-align: center;
  margin-top: 50px;
}

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

.page-index__game-category-card, .page-index__promo-card, .page-index__step-card, .page-index__detail-page-card {
  background-color: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__game-category-card:hover, .page-index__promo-card:hover, .page-index__step-card:hover, .page-index__detail-page-card:hover {
  transform: translateY(-10px);
}

.page-index__game-category-image, .page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-category-title, .page-index__promo-title, .page-index__app-feature-title, .page-index__step-title, .page-index__detail-page-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #000000;
  font-weight: bold;
}

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

.page-index__game-category-title a:hover, .page-index__detail-page-title a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-index__game-category-text, .page-index__promo-text, .page-index__app-feature-text, .page-index__step-text, .page-index__detail-page-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
}

.page-index__app-feature-item {
  text-align: center;
  padding: 20px;
}

.page-index__app-feature-icon {
  width: 250px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-index__app-features-details {
  text-align: center;
  margin-top: 50px;
}

.page-index__step-card {
  position: relative;
  padding-top: 50px;
}

.page-index__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FCBC45;
  color: #000000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  border: 2px solid #FCBC45;
}

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

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

.page-index__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #F0F0F0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@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: 2em;
  }
  .page-index__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 80px);
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-index__features-section, .page-index__games-overview-section, .page-index__promo-section, .page-index__app-features-section, .page-index__getting-started-section, .page-index__detail-pages-section, .page-index__cta-section {
    padding: 50px 15px;
  }
  .page-index__feature-grid, .page-index__game-category-grid, .page-index__promo-grid, .page-index__app-features-grid, .page-index__steps-grid, .page-index__detail-page-grid {
    grid-template-columns: 1fr;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
  .page-index__button--cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-index__hero-container img, .page-index__features-container img, .page-index__games-overview-container img, .page-index__promo-container img, .page-index__app-features-section img, .page-index__getting-started-section img, .page-index__detail-pages-section img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
}