.page-index {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  line-height: 1.6;
}

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

.page-index__section-title {
  font-size: 2.5rem;
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-index__section-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 150px;
  cursor: pointer;
}

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

.page-index__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
}

.page-index__button--text {
  background-color: transparent;
  color: #FFD700;
  border: none;
  padding: 0;
  min-width: unset;
  font-size: 1rem;
  text-decoration: underline;
}

.page-index__button--text:hover {
  color: #e6c200;
}

.page-index__button--small {
  padding: 8px 15px;
  font-size: 0.9rem;
  min-width: 100px;
  border-radius: 5px;
  background-color: #FFD700;
  color: #0A192F;
  border: 1px solid #FFD700;
}

.page-index__button--small:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 60px 0;
}

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

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

.page-index__hero-content {
  color: #ffffff;
}

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

.page-index__hero-description {
  font-size: 1.4rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #0A192F; /* Primary color background */
}

.page-index__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__text-content p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-index__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-index__game-card-title {
  font-size: 1.6rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__game-card-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-index__game-card-text {
  color: #cccccc;
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promo Section */
.page-index__promo-section {
  padding: 80px 0;
  background-color: #0A192F;
  text-align: center;
}

/* Why Choose Section */
.page-index__why-choose-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-icon {
  width: 250px; /* Minimum size for content images */
  height: 187px; /* Maintain aspect ratio */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__feature-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__feature-description {
  color: #cccccc;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Download App Section */
.page-index__download-section {
  padding: 80px 0;
  background-color: #0A192F;
}

/* Resources Section */
.page-index__resources-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-index__resource-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__resource-card-title {
  font-size: 1.4rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__resource-card-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-index__resource-card-description {
  color: #cccccc;
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Call to Action Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #0A192F;
  text-align: center;
}

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

/* Responsive Design */
@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 {
    min-height: 60vh;
    padding: 40px 0;
  }

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

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

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

  .page-index__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-index__content-grid {
    grid-template-columns: 1fr;
  }

  .page-index__image {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

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

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

  .page-index__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

  .page-index__hero-image,
  .page-index__about-section .page-index__image,
  .page-index__game-card-image,
  .page-index__feature-icon,
  .page-index__download-section .page-index__image {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-index__cta-actions {
    flex-direction: column;
  }
}

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

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

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

  .page-index__button {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .page-index__game-card-title, .page-index__feature-title, .page-index__resource-card-title {
    font-size: 1.3rem;
  }
}