/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #F8F8F8; /* Light text on dark background */
  background-color: #0A192F; /* Main dark blue background */
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Auxiliary gold for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-index__text-center {
  text-align: center;
}

.page-index__mt-large {
  margin-top: 60px;
}

.page-index__mt-small {
  margin-top: 20px;
}

.page-index__text-light {
  color: #F8F8F8;
}

/* Hero Section */
.page-index__hero {
  background: linear-gradient(135deg, #0A192F 0%, #1a2a47 100%);
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-title {
  font-size: 4em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.3em;
  color: #F8F8F8;
  text-align: center;
  max-width: 900px;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

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

.page-index__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-index__btn--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-3px);
}

.page-index__hero-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  opacity: 0.2;
  z-index: 0;
  filter: brightness(0.7); /* Allowed for background mood, not changing image color */
}

/* Features Section */
.page-index__features {
  padding: 80px 0;
  background-color: #0A192F;
}

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

.page-index__feature-item {
  background-color: #1A2940;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-index__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(1.2) saturate(1.5); /* Allowed to enhance icon visibility, not changing original color fundamentally */
}

.page-index__feature-heading {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__feature-text {
  font-size: 1em;
  color: #CCCCCC;
  line-height: 1.6;
}

/* Game Categories Section */
.page-index__game-categories {
  padding: 80px 0;
  background-color: #0A192F;
}

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

.page-index__category-item {
  background-color: #1A2940;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__category-item:hover {
  transform: translateY(-10px);
}

.page-index__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid #FFD700;
}

.page-index__category-heading {
  font-size: 1.8em;
  color: #FFD700;
  margin: 20px 0 10px 0;
  padding: 0 20px;
  font-weight: bold;
}

.page-index__category-text {
  font-size: 1em;
  color: #CCCCCC;
  padding: 0 20px 20px 20px;
  line-height: 1.6;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-bottom: 20px;
}

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

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

.page-index__promo-item {
  background-color: #1A2940;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-index__promo-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promo-heading {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__promo-text {
  font-size: 1em;
  color: #CCCCCC;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* App Download Section */
.page-index__app-download {
  padding: 80px 0;
  background: linear-gradient(90deg, #0A192F 0%, #1a2a47 100%);
  color: #F8F8F8;
}

.page-index__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-index__app-text-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

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

.page-index__app-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-index__btn--app {
  background-color: #FFD700;
  color: #0A192F;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  font-size: 1em;
}

.page-index__btn--app:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-index__app-icon {
  width: 24px;
  height: 24px;
}

.page-index__app-image-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  text-align: center;
}

.page-index__app-mockup {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-index__qr-code {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  background-color: #F8F8F8;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Guide Section */
.page-index__guide {
  padding: 80px 0;
  background-color: #0A192F;
}

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

.page-index__step-item {
  background-color: #1A2940;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__step-item:hover {
  transform: translateY(-10px);
}

.page-index__step-heading {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__step-text {
  font-size: 1em;
  color: #CCCCCC;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* CTA Section */
.page-index__cta {
  background: linear-gradient(45deg, #FFD700, #e6c200);
  padding: 80px 0;
  text-align: center;
  color: #0A192F;
}

.page-index__cta-title {
  font-size: 3em;
  color: #0A192F;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  color: #333;
}

.page-index__btn--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

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

.page-index__faq-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__faq-item {
  background-color: #1A2940;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-index__faq-answer {
  font-size: 1em;
  color: #CCCCCC;
  padding: 0 30px 20px 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  line-height: 1.6;
}

.page-index__faq-answer.open {
  max-height: 500px; /* Adjust based on expected content length */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3.5em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__cta-title {
    font-size: 2.5em;
  }
  .page-index__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-text-content {
    text-align: center;
  }
  .page-index__app-buttons {
    justify-content: center;
  }
  .page-index__qr-code {
    position: static;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__feature-grid, .page-index__category-grid, .page-index__promo-grid, .page-index__guide-steps {
    grid-template-columns: 1fr;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
  .page-index__btn--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-index__faq-question {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-index__hero {
    padding: 80px 0 200px 0;
  }
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__hero-image {
    width: 150%;
    bottom: -50px;
  }
  .page-index__section-title {
    font-size: 1.6em;
    padding-top: 40px;
  }
  .page-index__section-description {
    margin-bottom: 40px;
  }
  .page-index__app-buttons {
    flex-direction: column;
  }
  .page-index__btn--app {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__qr-code {
    width: 80px;
    height: 80px;
  }
}