/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #003366; /* Main brand color for hero background */
  color: #ffffff;
  padding: 0;
  text-align: center;
}

.page-index__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly transparent to allow text readability */
  z-index: 0;
}

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

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFCC00; /* Auxiliary color for emphasis */
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-index__hero-button {
  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, color 0.3s ease, transform 0.3s ease;
}

.page-index__hero-button--primary {
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

.page-index__hero-button--primary:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

.page-index__hero-button--secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-index__hero-button--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
  transform: translateY(-2px);
}

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

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

.page-index__features-section,
.page-index__games-overview-section,
.page-index__download-guide-section,
.page-index__promotions-section,
.page-index__trust-section,
.page-index__detail-pages-section,
.page-index__faq-section,
.page-index__contact-cta-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__features-grid,
.page-index__games-grid,
.page-index__promotions-grid,
.page-index__trust-points,
.page-index__detail-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__feature-card,
.page-index__game-card,
.page-index__promo-card,
.page-index__trust-item,
.page-index__detail-page-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333333;
  border: 1px solid #eee;
}

.page-index__feature-card:hover,
.page-index__game-card:hover,
.page-index__promo-card:hover,
.page-index__trust-item:hover,
.page-index__detail-page-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.page-index__feature-icon,
.page-index__game-image,
.page-index__promo-image,
.page-index__trust-icon,
.page-index__guide-image {
  width: 100%; /* Ensure images take full width of card */
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__feature-title,
.page-index__game-title,
.page-index__promo-title,
.page-index__trust-title,
.page-index__detail-page-title {
  font-size: 1.6em;
  color: #003366;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__detail-page-title a {
  color: #003366;
  text-decoration: none;
}

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

.page-index__feature-text,
.page-index__game-text,
.page-index__promo-text,
.page-index__trust-text,
.page-index__detail-page-description,
.page-index__faq-answer {
  font-size: 1em;
  color: #666666;
  flex-grow: 1; /* Allows text to take available space */
}

.page-index__cta-buttons {
  text-align: center;
  margin-top: 60px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  font-size: 1em;
}

.page-index__button--primary {
  background-color: #003366;
  color: #ffffff;
  border: 2px solid #003366;
}

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

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

.page-index__button--secondary:hover {
  background-color: #003366;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
  margin-top: 20px;
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

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

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

.page-index__guide-step {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-index__guide-step-title {
  font-size: 1.4em;
  color: #003366;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-index__guide-step-text {
  font-size: 1em;
  color: #666666;
}

.page-index__download-cta {
  text-align: center;
  margin-top: 60px;
}

.page-index__faq-list {
  margin-top: 40px;
}

.page-index__faq-item {
  background-color: #f0f8ff; /* Light blue background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px 25px;
  border-left: 5px solid #003366;
}

.page-index__faq-question {
  font-size: 1.3em;
  color: #003366;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-index__faq-question::after {
  content: '+';
  font-size: 1.2em;
  font-weight: bold;
  color: #FFCC00;
  margin-left: 10px;
}

.page-index__faq-question.active::after {
  content: '-';
}

.page-index__faq-answer {
  display: none;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  margin-top: 10px;
}

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

.page-index__contact-cta-section {
  background-color: #003366;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  border-radius: 12px;
}

.page-index__contact-cta-section .page-index__section-title {
  color: #FFCC00;
}

.page-index__contact-cta-section .page-index__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-index__contact-cta-section .page-index__button--primary {
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

.page-index__contact-cta-section .page-index__button--primary:hover {
  background-color: #e6b800;
  color: #003366;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__feature-title,
  .page-index__game-title,
  .page-index__promo-title,
  .page-index__trust-title,
  .page-index__detail-page-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 120px);
  }
  .page-index__hero-container {
    padding: 60px 15px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-button {
    width: 100%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-index__features-section,
  .page-index__games-overview-section,
  .page-index__download-guide-section,
  .page-index__promotions-section,
  .page-index__trust-section,
  .page-index__detail-pages-section,
  .page-index__faq-section,
  .page-index__contact-cta-section {
    padding: 60px 15px;
  }
  .page-index__features-grid,
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__trust-points,
  .page-index__guide-steps,
  .page-index__detail-pages-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__trust-icon,
  .page-index__guide-image {
    max-width: 100%;
    height: auto;
    min-height: 200px; /* Ensure minimum size */
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-buttons .page-index__button {
    width: 100%;
    max-width: 300px;
  }
  .page-index__faq-question {
    font-size: 1.1em;
  }
  /* Ensure content area images are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__feature-card img, .page-index__game-card img, .page-index__promo-card img, .page-index__trust-item img, .page-index__guide-step img {
    max-width: 100%;
    height: auto;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__hero-button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-index__feature-title,
  .page-index__game-title,
  .page-index__promo-title,
  .page-index__trust-title,
  .page-index__detail-page-title {
    font-size: 1.2em;
  }
  .page-index__faq-question {
    font-size: 1em;
  }
}