/* style/index.css */
.page-index {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensures content clears fixed header */
}

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

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

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

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.page-index__btn--primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-index__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-index__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-index__btn--text {
  color: #FFD700;
  text-decoration: none;
  font-weight: 500;
  display: block;
  text-align: center;
  margin-top: 30px;
}

.page-index__btn--text:hover {
  text-decoration: underline;
}

.page-index__btn--full-width {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  min-width: 250px;
}

.page-index__btn--large {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  overflow: hidden;
  padding: 80px 20px; /* Add padding for content spacing */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-index__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-index__hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  z-index: 1;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

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

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #1A202C;
}

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

.page-index__about-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-index__about-card-icon {
  width: 250px; /* Minimum 200px */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-index__about-card-description {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Games Showcase Section */
.page-index__games-showcase-section {
  padding: 80px 0;
  background-color: #0F131C;
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-index__game-card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 15px;
}

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

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

.page-index__game-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  line-height: 1.5;
  padding: 0 15px 20px;
}

.page-index__game-card .page-index__btn--link {
  margin-bottom: 20px;
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.9em;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #1A202C;
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-index__promo-card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-index__promo-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  line-height: 1.5;
  padding: 0 15px 20px;
}

.page-index__promo-card .page-index__btn--link {
  margin-bottom: 20px;
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.9em;
}

/* Download App Section */
.page-index__download-app-section {
  padding: 80px 0;
  background-color: #0F131C;
}

.page-index__download-app-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 50px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 50px;
}

.page-index__download-app-image {
  width: 300px; /* Minimum 200px */
  height: 300px; /* Minimum 200px */
  object-fit: contain;
  flex-shrink: 0;
}

.page-index__download-app-content {
  text-align: left;
  max-width: 600px;
}

.page-index__download-app-content .page-index__section-title {
  text-align: left;
}

.page-index__download-app-content .page-index__section-intro {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* Why Choose Section */
.page-index__why-choose-section {
  padding: 80px 0;
  background-color: #1A202C;
}

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

.page-index__why-choose-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
}

.page-index__why-choose-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__why-choose-description {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

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

.page-index__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
}

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

.page-index__faq-answer {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
  display: none; /* Hidden by default, toggled by JS */
}

.page-index__faq-question.active + .page-index__faq-answer {
  display: block;
}

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #1A202C;
  text-align: center;
}

.page-index__cta-container {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 60px;
}

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

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

  .page-index__download-app-container {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }

  .page-index__download-app-content .page-index__section-title,
  .page-index__download-app-content .page-index__section-intro {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .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__btn--large {
    width: 100%;
  }

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

  .page-index__section-intro {
    font-size: 1em;
  }

  .page-index__about-card-icon,
  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__download-app-image {
    max-width: 100%;
    height: auto; /* Ensures images are responsive and don't overflow */
  }

  .page-index__about-card-icon {
    width: 200px;
    height: auto;
  }

  .page-index__game-card-image {
    height: 200px;
  }

  .page-index__promo-card-image {
    height: 180px;
  }

  .page-index__download-app-image {
    width: 250px;
    height: 250px;
  }

  .page-index__cta-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__cta-container {
    padding: 40px 20px;
  }

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

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

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

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

  .page-index__section-intro {
    font-size: 0.9em;
  }

  .page-index__about-card,
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__why-choose-item,
  .page-index__faq-item {
    padding: 20px;
  }

  .page-index__about-card-title,
  .page-index__game-card-title,
  .page-index__promo-card-title,
  .page-index__why-choose-title {
    font-size: 1.4em;
  }
}