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

.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Text color for dark background */
  text-align: center;
  padding-bottom: 60px;
}

.page-index__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF;
}

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  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; /* Custom color for Register */
  color: #000000;
  border: 2px solid #FFFFFF;
}

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

.page-index__button--download {
  background-color: #FCBC45; /* Custom color for Login/Download */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-index__hero-image-wrapper {
  max-width: 1000px;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__download-section,
.page-index__why-choose-section,
.page-index__details-list-section,
.page-index__testimonials-section,
.page-index__faq-section,
.page-index__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #FFFFFF; /* Background color for sections */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

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

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

.page-index__feature-card,
.page-index__game-category-card,
.page-index__detail-card {
  background-color: #F8F8F8;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-card:hover,
.page-index__game-category-card:hover,
.page-index__detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__feature-icon,
.page-index__game-category-image {
  width: 100%; /* Ensure images take full width of card */
  height: auto;
  max-height: 250px; /* Limit height for aesthetic consistency */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

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

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

.page-index__feature-description,
.page-index__game-category-description,
.page-index__detail-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-index__button--play,
.page-index__button--details {
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  font-size: 0.9em;
  border: 2px solid #FCBC45;
}

.page-index__button--play:hover,
.page-index__button--details:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-index__button--view-promo,
.page-index__button--learn-more,
.page-index__button--sign-up {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  font-size: 1.1em;
  border: 2px solid #FCBC45;
  margin-top: 20px;
}

.page-index__button--view-promo:hover,
.page-index__button--learn-more:hover,
.page-index__button--sign-up:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-index__download-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index__download-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-index__download-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.page-index__button--download-android,
.page-index__button--download-ios {
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  font-size: 1em;
  border: 2px solid #FCBC45;
}

.page-index__button--download-android:hover,
.page-index__button--download-ios:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-index__download-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-index__why-choose-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
  text-align: left;
}

.page-index__why-choose-item {
  background-color: #F8F8F8;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid #FCBC45;
  border-radius: 4px;
  font-size: 1.1em;
  color: #333333;
}

.page-index__why-choose-item strong {
  color: #000000;
}

.page-index__testimonial-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 20px;
  margin-top: 40px;
}

.page-index__testimonial-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
  background-color: #F8F8F8;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  text-align: left;
}

.page-index__testimonial-quote {
  font-style: italic;
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #555555;
}

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

.page-index__faq-accordion {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__faq-item {
  background-color: #F8F8F8;
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
}

.page-index__faq-question {
  padding: 15px 20px;
  font-size: 1.2em;
  color: #000000;
  cursor: pointer;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #EFEFEF;
}

.page-index__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-index__faq-item.active .page-index__faq-question::after {
  transform: rotate(45deg);
}

.page-index__faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: #555555;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 200px; /* Adjust based on content */
  padding: 15px 20px;
}

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

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

  .page-index__download-content {
    flex-direction: column;
  }

  .page-index__download-text,
  .page-index__download-image-wrapper {
    text-align: center;
  }

  .page-index__download-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    padding-bottom: 40px;
  }

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

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

  .page-index__hero-cta-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-text {
    font-size: 0.95em;
  }

  .page-index__features-grid,
  .page-index__game-categories-grid,
  .page-index__details-grid {
    grid-template-columns: 1fr;
  }

  .page-index__testimonial-carousel {
    padding-bottom: 10px;
  }

  .page-index__testimonial-card {
    flex: 0 0 90%;
  }

  .page-index__faq-question {
    font-size: 1.1em;
  }

  /* Mobile content area image prevention overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  /* Content area images must not be smaller than 200px in CSS */
  .page-index__feature-icon,
  .page-index__game-category-image,
  .page-index__download-image {
    width: 100%; /* Ensure they scale down */
    height: auto;
    max-width: 100%;
    min-width: 200px; /* Enforce minimum size if not scaling */
    min-height: 200px;
  }
}

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

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

  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-index__download-buttons {
    flex-direction: column;
  }
}