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

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0A192F; /* Fallback background */
}

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

.page-index__hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.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, transform 0.3s ease;
  white-space: nowrap;
}

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

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

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

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

/* General Section Styling */
.page-index__section-title {
  font-size: 2.5em;
  color: #0A192F;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.page-index__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 10px auto 0;
}

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

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__download-section,
.page-index__testimonials-section,
.page-index__faq-section {
  padding: 80px 0;
}

.page-index__about-section {
  background-color: #f9f9f9;
}

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

.page-index__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 5px solid #FFD700;
}

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

.page-index__feature-title {
  font-size: 1.5em;
  color: #0A192F;
  margin-bottom: 15px;
}

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

/* Games Section */
.page-index__games-section {
  background-color: #0A192F;
  color: #ffffff;
}

.page-index__games-section .page-index__section-title {
  color: #ffffff;
}

.page-index__games-section .page-index__section-title::after {
  background-color: #FFD700;
}

.page-index__games-section .page-index__section-intro {
  color: #f0f0f0;
}

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

.page-index__game-card {
  background-color: #1a2a44;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__game-title {
  font-size: 1.4em;
  padding: 15px 20px 5px;
  color: #FFD700;
}

.page-index__game-description {
  font-size: 0.9em;
  padding: 0 20px 20px;
  color: #cccccc;
}

.page-index__cta-buttons {
  text-align: center;
  margin-top: 50px;
}

.page-index__cta-buttons .page-index__button {
  margin: 0 10px;
}

/* Promotions Section */
.page-index__promo-section {
  background-color: #f9f9f9;
}

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-index__promo-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 20px;
}

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

.page-index__button--full-width {
  display: block;
  width: fit-content;
  margin: 50px auto 0 auto;
  text-align: center;
}

/* Download Section */
.page-index__download-section {
  background-color: #0A192F;
  color: #ffffff;
}

.page-index__download-section .page-index__section-title {
  color: #ffffff;
}

.page-index__download-section .page-index__section-title::after {
  background-color: #FFD700;
}

.page-index__download-section .page-index__section-intro {
  color: #f0f0f0;
}

.page-index__download-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
}

.page-index__download-image {
  width: 350px;
  height: 350px;
  object-fit: contain;
  flex-shrink: 0;
}

.page-index__download-text {
  max-width: 500px;
  text-align: left;
}

.page-index__download-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-index__download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

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

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

.page-index__button--android::before {
  content: '▶'; /* Android icon */
  font-size: 1.2em;
}

.page-index__button--ios::before {
  content: ''; /* Apple icon */
  font-size: 1.2em;
}

.page-index__qr-code {
  width: 180px;
  height: 180px;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  display: block;
  margin-top: 20px;
}

/* Testimonials Section */
.page-index__testimonials-section {
  background-color: #f9f9f9;
}

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

.page-index__testimonial-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  border-bottom: 5px solid #FFD700;
}

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

.page-index__testimonial-author {
  font-weight: bold;
  color: #0A192F;
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #ffffff;
}

.page-index__faq-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 20px;
  border-left: 5px solid #FFD700;
}

.page-index__faq-question {
  font-size: 1.3em;
  color: #0A192F;
  margin-bottom: 10px;
}

.page-index__faq-answer {
  color: #666666;
  font-size: 1em;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    height: 500px;
  }
  .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%;
    padding: 12px 20px;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-intro {
    font-size: 0.95em;
  }
  .page-index__download-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .page-index__download-text {
    text-align: center;
  }
  .page-index__download-buttons {
    justify-content: center;
  }
  .page-index__qr-code {
    margin-left: auto;
    margin-right: auto;
  }
  /* Ensure images do not overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__game-image, .page-index__promo-image, .page-index__download-image {
    width: 100%;
    height: auto; /* Allow height to adjust proportionally */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }
  .page-index__qr-code {
    min-width: 150px;
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-section {
    height: 400px;
  }
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__button {
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__promo-image {
    height: 150px;
  }
}

/* Ensure all content area images are not small icons */
.page-index img:not(.page-index__qr-code) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensures images fill their area without distortion */
}

/* Exception for QR code, which can be smaller */
.page-index__qr-code {
    min-width: 150px;
    min-height: 150px;
    object-fit: contain;
}