/* style/index.css */
.page-index {
  color: #e5e5e5; /* Light text for contrast against dark sections, adjusting for default body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #1A1A1A; /* Main dark background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent for title */
  line-height: 1.2;
  font-weight: bold;
}

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

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

.page-index__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;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold accent */
  color: #1A1A1A; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-3px);
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  display: block;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold accent */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-intro {
  font-size: 1.2em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  color: #f0f0f0;
}

.page-index__features-section, .page-index__games-section, .page-index__promo-section, .page-index__mobile-section, .page-index__responsible-gaming-section, .page-index__support-section, .page-index__faq-section, .page-index__cta-section, .page-index__detail-pages-section {
  padding: 80px 20px;
  background-color: #1A1A1A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__features-grid, .page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__feature-card, .page-index__game-card, .page-index__detail-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__feature-card:hover, .page-index__game-card:hover, .page-index__detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-index__feature-icon, .page-index__game-image {
  width: 100%;
  height: 250px; /* Minimum height for content images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block; /* Ensure images are block-level for sizing */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index__feature-title, .page-index__game-title, .page-index__promo-subtitle, .page-index__detail-card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__feature-description, .page-index__game-description, .page-index__promo-description, .page-index__responsible-gaming-text, .page-index__support-text, .page-index__faq-answer, .page-index__detail-card-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-index__game-card .page-index__button--small {
  margin-top: auto; /* Push button to bottom */
  padding: 10px 20px;
  font-size: 1em;
  min-width: unset;
  width: auto;
}

.page-index__promo-section .page-index__section-intro {
  margin-bottom: 40px;
}

.page-index__promo-content, .page-index__mobile-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__promo-content {
  flex-direction: row;
}

.page-index__mobile-content {
  flex-direction: row-reverse; /* Image on right for mobile section */
}

.page-index__promo-text, .page-index__mobile-text {
  flex: 1;
}

.page-index__promo-image-container, .page-index__mobile-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__promo-image, .page-index__mobile-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-subtitle {
  font-size: 2em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__promo-text .page-index__button {
  margin-top: 30px;
  margin-right: 15px;
}

.page-index__mobile-text .page-index__button {
  margin-top: 30px;
}

.page-index__responsible-gaming-text, .page-index__support-text {
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: center;
}

.page-index__support-content {
  text-align: center;
}

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

.page-index__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-index__faq-question {
  font-size: 1.3em;
  color: #FFD700;
  margin: 0;
  padding-right: 30px;
  position: relative;
}

.page-index__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FFD700;
}

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

.page-index__faq-answer {
  display: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #cccccc;
}

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

.page-index__cta-section {
  text-align: center;
  padding: 100px 20px;
  background-color: #0d0d0d; /* Slightly darker for final CTA */
}

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

.page-index__detail-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__detail-card-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__detail-card-title a:hover {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.5em;
  }
  .page-index__promo-content, .page-index__mobile-content {
    flex-direction: column;
    gap: 40px;
  }
  .page-index__promo-image-container, .page-index__mobile-image-container {
    order: -1; /* Image above text for mobile on promo section */
  }
  .page-index__mobile-content .page-index__mobile-image-container {
    order: -1; /* Image above text for mobile on mobile app section */
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 15px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-index__features-grid, .page-index__games-grid, .page-index__detail-cards-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-index__feature-card, .page-index__game-card, .page-index__detail-card {
    padding: 25px;
  }
  .page-index__feature-icon, .page-index__game-image, .page-index__promo-image, .page-index__mobile-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and don't overflow */
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__feature-title, .page-index__game-title, .page-index__promo-subtitle, .page-index__detail-card-title {
    font-size: 1.5em;
  }
  .page-index__feature-description, .page-index__game-description, .page-index__promo-description, .page-index__responsible-gaming-text, .page-index__support-text, .page-index__faq-answer, .page-index__detail-card-description {
    font-size: 0.95em;
  }
  .page-index__promo-text .page-index__button, .page-index__mobile-text .page-index__button {
    margin-right: 0;
    margin-left: 0;
    max-width: 300px;
    width: 100%;
  }
  .page-index__faq-question {
    font-size: 1.1em;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* Content area image constraints for mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__promo-subtitle {
    font-size: 1.5em;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
  }
}