.page-index {
  color: #333333; /* Dark text for default light body background */
}

.page-index__section-padding {
  padding: 80px 20px;
}

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

.page-index__bg-primary {
  background-color: #002060;
  color: #ffffff;
}

.page-index__bg-accent {
  background-color: #FFD700;
  color: #333333;
}

.page-index__bg-light-gray {
  background-color: #f5f5f5;
  color: #333333;
}

.page-index__section-title {
  font-size: 2.5rem;
  color: #002060;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-index__section-title--dark {
  color: #333333;
}

.page-index__section-subtitle {
  font-size: 1.2rem;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
}

.page-index__section-subtitle--light {
  color: #e0e0e0;
}

.page-index__section-subtitle--dark {
  color: #333333;
}

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #002060, #1a3a70);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

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

.page-index__hero-description {
  font-size: 1.4rem;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-index__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.page-index__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__hero-button--primary {
  background-color: #FFD700;
  color: #002060;
}

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

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

.page-index__hero-button--secondary:hover {
  background-color: #FFD700;
  color: #002060;
  transform: translateY(-3px);
}

.page-index__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.page-index__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* About Section */
.page-index__about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #444444;
}

.page-index__text-block {
  margin-bottom: 15px;
}

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

.page-index__game-card {
  background-color: #0a2d6b; /* Darker blue for cards on primary background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

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

.page-index__game-card-title {
  font-size: 1.8rem;
  margin: 20px 0 10px;
  color: #FFD700;
}

.page-index__game-card-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-card-link:hover {
  color: #ffffff;
}

.page-index__game-card-description {
  font-size: 0.95rem;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
}

.page-index__game-card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFD700;
  color: #002060;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-index__game-card-button:hover {
  background-color: #e6c200;
}

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

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

.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.page-index__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
}

.page-index__promo-card-title {
  font-size: 1.8rem;
  margin: 20px 0 10px;
  color: #002060;
}

.page-index__promo-card-link {
  color: #002060;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-card-link:hover {
  color: #FFD700;
}

.page-index__promo-card-description {
  font-size: 0.95rem;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
  color: #555555;
}

.page-index__promo-card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #002060;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-index__promo-card-button:hover {
  background-color: #001a4d;
}

/* Why Choose Us Section */
.page-index__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

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

.page-index__advantage-card:hover {
  transform: translateY(-5px);
}

.page-index__advantage-title {
  font-size: 1.5rem;
  color: #002060;
  margin-bottom: 15px;
}

.page-index__advantage-description {
  font-size: 1rem;
  color: #444444;
  line-height: 1.6;
}

/* Download Section */
.page-index__download-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.page-index__download-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-index__download-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #FFD700;
  color: #002060;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-index__download-image-container {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-index__resource-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__resource-card:hover {
  transform: translateY(-5px);
}

.page-index__resource-card-title {
  font-size: 1.6rem;
  color: #002060;
  margin-bottom: 15px;
}

.page-index__resource-card-link {
  color: #002060;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__resource-card-link:hover {
  color: #FFD700;
}

.page-index__resource-card-description {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__resource-card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFD700;
  color: #002060;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__resource-card-button:hover {
  background-color: #e6c200;
}

/* FAQ Section */
.page-index__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
  font-size: 1.3rem;
  color: #002060;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-index__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: #FFD700;
}

.page-index__faq-answer {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
  display: none; /* Hidden by default */
  padding-top: 10px;
}

.page-index__faq-answer a {
  color: #002060;
  text-decoration: underline;
}

.page-index__faq-answer a:hover {
  color: #FFD700;
}

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

  .page-index__hero-description {
    font-size: 1.2rem;
  }

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

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px);
    padding-bottom: 40px;
  }

  .page-index__hero-title {
    font-size: 2.5rem;
  }

  .page-index__hero-description {
    font-size: 1rem;
  }

  .page-index__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__hero-button {
    width: 100%;
    max-width: 300px;
  }

  .page-index__section-padding {
    padding: 60px 15px;
  }

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

  .page-index__section-subtitle {
    font-size: 1rem;
  }

  .page-index__game-grid, .page-index__promo-grid, .page-index__advantages-grid, .page-index__resource-grid {
    grid-template-columns: 1fr;
  }

  .page-index__download-content {
    flex-direction: column;
  }

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

  .page-index__download-button {
    width: 100%;
    max-width: 300px;
  }

  .page-index__faq-question {
    font-size: 1.1rem;
  }

  /* Critical: Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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

  .page-index__hero-description {
    font-size: 0.9rem;
  }

  .page-index__hero-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-index__section-title {
    font-size: 1.5rem;
  }

  .page-index__section-subtitle {
    font-size: 0.9rem;
  }

  .page-index__game-card-title, .page-index__promo-card-title, .page-index__advantage-title, .page-index__resource-card-title {
    font-size: 1.4rem;
  }

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

  .page-index__faq-question {
    font-size: 1rem;
  }
}

/* Ensure content area images are at least 200px where not explicitly smaller for mobile responsiveness */
.page-index__game-card-image, .page-index__promo-card-image, .page-index__download-image, .page-index__hero-image {
  min-width: 200px;
  min-height: 200px;
}

/* Override specific card image heights for smaller screens if needed, but maintain min-width/height */
@media (max-width: 480px) {
  .page-index__game-card-image {
    height: 180px; /* Example: can be smaller than 200px if aspect ratio is maintained and overall layout is good */
  }
}