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

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #000000; /* Main color as hero background */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

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

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

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

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

.page-index__button--register {
  background-color: #FFFFFF; /* Custom color for register */
  color: #000000;
}

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

.page-index__button--login {
  background-color: #FCBC45; /* Custom color for login */
  color: #000000;
}

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

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: brightness(0.5); /* Allowed for background effect, not changing original image color */
}

.page-index__section-padding {
  padding: 80px 20px;
}

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

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

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

.page-index__dark-background {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__dark-background .page-index__section-title,
.page-index__dark-background .page-index__section-text,
.page-index__dark-background .page-index__feature-title,
.page-index__dark-background .page-index__feature-description,
.page-index__dark-background .page-index__faq-question,
.page-index__dark-background .page-index__faq-answer {
  color: #FFFFFF;
}

/* About Section */
.page-index__about-section .page-index__section-text {
  margin-bottom: 40px;
}

.page-index__about-image {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.page-index__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-card-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index__game-card-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.page-index__game-card-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 25px;
  min-height: 80px;
}

.page-index__button--play {
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 25px;
  font-size: 1em;
}

.page-index__button--play:hover {
  background-color: #e0a030;
}

/* Promotions Section */
.page-index__promo-image {
  display: block;
  margin: 40px auto;
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-index__button--view-all {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 30px;
}

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

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

.page-index__feature-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-index__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-index__feature-description {
  font-size: 0.95em;
  color: #666666;
}

/* Mobile App Section */
.page-index__mobile-app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-direction: row;
}

.page-index__mobile-app-text {
  flex: 1;
  text-align: left;
}

.page-index__mobile-app-text .page-index__section-title,
.page-index__mobile-app-text .page-index__section-text {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__app-download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.page-index__button--download {
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  font-size: 1em;
}

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

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

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

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

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

.page-index__testimonial-text {
  font-style: italic;
  color: #555555;
  margin-bottom: 20px;
  font-size: 1.05em;
}

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

/* FAQ Section */
.page-index__faq-accordion {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__faq-question {
  font-size: 1.3em;
  padding: 20px 25px;
  cursor: pointer;
  position: relative;
  color: #FFFFFF;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page-index__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-index__faq-answer {
  font-size: 1em;
  padding: 0 25px 20px 25px;
  color: #e0e0e0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-index__faq-answer.active {
  max-height: 200px; /* Adjust based on expected content length */
  padding-top: 10px;
}

/* Call to Action Section */
.page-index__cta-section {
  text-align: center;
}

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

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

.page-index__button--register-cta:hover {
  background-color: #e0a030;
}

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

.page-index__button--login-cta:hover {
  background-color: #f0f0f0;
  border-color: #FCBC45;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__mobile-app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__mobile-app-text .page-index__section-title,
  .page-index__mobile-app-text .page-index__section-text {
    text-align: center;
  }
  .page-index__app-download-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px); /* Mobile ensures content is below fixed header */
  }
  .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__button {
    width: 100%;
    max-width: 300px;
  }
  .page-index__section-padding {
    padding: 50px 15px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-index__game-categories,
  .page-index__features-grid,
  .page-index__testimonials-grid {
    grid-template-columns: 1fr;
  }
  .page-index__mobile-app-content {
    gap: 30px;
  }
  .page-index__app-download-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  /* Mobile content area images must be responsive */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-image {
    filter: brightness(0.3); /* Slightly darker for mobile readability */
  }
  .page-index__game-card-image {
    height: 200px; /* Adjust height for smaller screens */
  }
  .page-index__feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-index__about-image,
  .page-index__promo-image,
  .page-index__mobile-app-image {
    width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images meet minimum size requirement */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-index__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-index__faq-answer {
    padding: 0 20px 15px 20px;
  }
}