.page-index {
  padding-top: var(--header-offset, 120px);
  color: #ffffff; /* Light text for dark body background */
  background-color: var(--primary-color); /* Inherit from shared.css */
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  padding: 0;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  flex-direction: column;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Darken image for text readability, not changing color */
}

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

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

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

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

.page-index__hero-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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index__hero-btn--primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

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

.page-index__hero-btn--secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid var(--secondary-color);
}

.page-index__hero-btn--secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__why-choose-section,
.page-index__app-download-section,
.page-index__faq-section,
.page-index__contact-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index__about-container,
.page-index__app-download-container {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-index__about-content,
.page-index__app-download-content {
  flex: 1;
}

.page-index__about-image-wrapper,
.page-index__app-download-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__about-image,
.page-index__app-download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

.page-index__about-title,
.page-index__games-title,
.page-index__promotions-title,
.page-index__why-choose-title,
.page-index__app-download-title,
.page-index__faq-title,
.page-index__contact-title {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index__about-text,
.page-index__games-description,
.page-index__promotions-description,
.page-index__why-choose-description,
.page-index__app-download-description,
.page-index__contact-description,
.page-index__feature-text,
.page-index__faq-answer {
  font-size: 1.1em;
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 20px;
}

.page-index__about-btn,
.page-index__games-btn,
.page-index__promotions-btn,
.page-index__contact-btn,
.page-index__game-card-btn,
.page-index__promo-card-btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 15px;
}

.page-index__about-btn:hover,
.page-index__games-btn:hover,
.page-index__promotions-btn:hover,
.page-index__contact-btn:hover,
.page-index__game-card-btn:hover,
.page-index__promo-card-btn:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-index__game-card,
.page-index__promo-card,
.page-index__feature-item {
  background-color: #2a303c; /* Slightly lighter dark background for cards */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-index__game-card-image,
.page-index__promo-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-card-title,
.page-index__promo-card-title,
.page-index__feature-title,
.page-index__faq-question {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-index__game-card-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

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

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

.page-index__feature-item {
  text-align: left;
}

.page-index__app-download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__app-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

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

.page-index__app-download-btn--apple::before {
  content: ''; /* Apple icon */
  font-size: 1.2em;
}

.page-index__app-download-btn--android::before {
  content: '▶'; /* Play icon */
  font-size: 1.2em;
}

.page-index__faq-item {
  background-color: #2a303c;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-index__faq-question {
  cursor: pointer;
  margin-bottom: 10px;
}

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

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

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__about-title,
  .page-index__games-title,
  .page-index__promotions-title,
  .page-index__why-choose-title,
  .page-index__app-download-title,
  .page-index__faq-title,
  .page-index__contact-title {
    font-size: 2.2em;
  }
  .page-index__about-container,
  .page-index__app-download-container {
    flex-direction: column;
  }
  .page-index__about-image-wrapper,
  .page-index__app-download-image-wrapper {
    order: -1; /* Image first on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding: 20px;
  }
  .page-index__hero-container {
    padding: 20px;
  }
  .page-index__hero-content {
    padding: 15px;
  }
  .page-index__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-index__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-btn {
    width: 100%;
    max-width: 280px;
  }
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__why-choose-section,
  .page-index__app-download-section,
  .page-index__faq-section,
  .page-index__contact-section {
    padding: 50px 15px;
  }
  .page-index__about-title,
  .page-index__games-title,
  .page-index__promotions-title,
  .page-index__why-choose-title,
  .page-index__app-download-title,
  .page-index__faq-title,
  .page-index__contact-title {
    font-size: 1.8em;
  }
  .page-index__about-text,
  .page-index__games-description,
  .page-index__promotions-description,
  .page-index__why-choose-description,
  .page-index__app-download-description,
  .page-index__contact-description,
  .page-index__feature-text,
  .page-index__faq-answer {
    font-size: 0.95em;
  }
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__about-image,
  .page-index__app-download-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
  .page-index__game-card-title,
  .page-index__promo-card-title,
  .page-index__feature-title,
  .page-index__faq-question {
    font-size: 1.4em;
  }
  .page-index__app-download-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-index__app-download-btn {
    width: 100%;
    max-width: 280px;
  }
  /* 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: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__about-title,
  .page-index__games-title,
  .page-index__promotions-title,
  .page-index__why-choose-title,
  .page-index__app-download-title,
  .page-index__faq-title,
  .page-index__contact-title {
    font-size: 1.5em;
  }
  .page-index__hero-btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__app-download-btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__game-card-title,
  .page-index__promo-card-title,
  .page-index__feature-title,
  .page-index__faq-question {
    font-size: 1.2em;
  }
}