.page-index {
  color: #ffffff; /* Light text for dark 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;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(139, 0, 0, 0.5) 0%, rgba(255, 215, 0, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

.page-index__btn--primary {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

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

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

.page-index__btn--secondary:hover {
  background-color: #FFD700;
  color: #1a1a1a;
  transform: translateY(-2px);
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-index__hero-image-wrapper {
  margin-top: 40px;
  max-width: 100%;
  overflow: hidden;
}

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

.page-index__section-title {
  font-size: 2.8rem;
  color: #FFD700;
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index__features-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__app-download-section,
.page-index__about-section,
.page-index__contact-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.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, 215, 0, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

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

.page-index__feature-text {
  font-size: 1.05rem;
  color: #e0e0e0;
}

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

.page-index__game-card {
  background-color: rgba(139, 0, 0, 0.2);
  border: 1px solid rgba(139, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

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

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

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

.page-index__game-description {
  font-size: 1.05rem;
  color: #e0e0e0;
  padding: 0 20px 20px;
}

.page-index__promotions-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  background-color: rgba(255, 215, 0, 0.05);
  border-radius: 15px;
  padding: 60px 40px;
  border: 1px solid rgba(255, 215, 0, 0.15);
}

.page-index__promotions-content {
  max-width: 800px;
}

.page-index__promotions-description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-index__promotions-image-wrapper {
  max-width: 600px;
  width: 100%;
}

.page-index__promotions-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__app-download-section {
  text-align: center;
  background-color: rgba(139, 0, 0, 0.1);
  border-radius: 15px;
  padding: 60px 40px;
  border: 1px solid rgba(139, 0, 0, 0.2);
}

.page-index__app-description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-index__about-section,
.page-index__contact-section {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__about-text,
.page-index__contact-text {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Media Queries for Responsiveness */
@media (min-width: 769px) {
  .page-index__hero-section {
    flex-direction: row;
    text-align: left;
    gap: 40px;
  }

  .page-index__hero-content {
    margin-bottom: 0;
    text-align: left;
  }

  .page-index__hero-cta {
    justify-content: flex-start;
  }

  .page-index__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
  }

  .page-index__promotions-section {
    flex-direction: row;
    text-align: left;
    gap: 60px;
  }

  .page-index__promotions-content {
    flex: 1;
  }

  .page-index__promotions-image-wrapper {
    flex: 1;
  }
}

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

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

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

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

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

  .page-index__btn {
    width: 100%;
    padding: 12px 20px;
  }

  /* Mobile content image constraint */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__game-image {
    height: 250px;
  }

  .page-index__promotions-section {
    flex-direction: column;
  }
}

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

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

  .page-index__hero-section,
  .page-index__features-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__app-download-section,
  .page-index__about-section,
  .page-index__contact-section {
    padding: 40px 15px;
    margin: 60px auto;
  }
}