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

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

.page-index__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-index__button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

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

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

.page-index__button--secondary {
  background-color: #8B0000;
  color: #FFD700;
  border: 2px solid #8B0000;
  margin-left: 15px;
}

.page-index__button--secondary:hover {
  background-color: #a30000;
  transform: translateY(-2px);
}

.page-index__button--learn-more {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  margin-top: 20px;
}

.page-index__button--learn-more:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-2px);
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  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;
  opacity: 0.7;
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-index__hero-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 30px 40px;
  border-radius: 10px;
  max-width: 800px;
}

.page-index__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

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

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

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #222;
  line-height: 1.8;
}

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

.page-index__about-content h3 {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index__about-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* 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(300px, 1fr));
  gap: 30px;
}

.page-index__game-card {
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

.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: 0.95em;
  color: #ccc;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-index__promo-card {
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

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

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

.page-index__promo-description {
  font-size: 0.95em;
  color: #ccc;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-index__download-container {
  display: flex;
  align-items: center;
  gap: 50px;
  background-color: #333;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-index__download-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__download-content {
  flex: 1;
  text-align: left;
}

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

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

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

.page-index__resource-card {
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__resource-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__resource-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

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

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

.page-index__resource-description {
  font-size: 0.95em;
  color: #ccc;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* CTA Section */
.page-index__cta-section {
  background-color: #8B0000;
  padding: 80px 0;
  text-align: center;
}

.page-index__cta-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

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

  .page-index__download-container {
    flex-direction: column;
    text-align: center;
  }

  .page-index__download-image {
    max-width: 80%;
    margin-bottom: 30px;
  }

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

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding: 40px 0;
  }

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

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

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

  .page-index__button--secondary {
    margin-left: 0;
  }

  .page-index__about-section, .page-index__games-section, .page-index__promo-section, .page-index__download-section, .page-index__resources-section, .page-index__cta-section {
    padding: 60px 0;
  }

  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-index__about-content p, .page-index__download-description, .page-index__cta-description {
    font-size: 1em;
  }

  .page-index__about-content h3 {
    font-size: 1.5em;
  }

  /* Ensure images do not overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

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

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

  .page-index__hero-content {
    padding: 20px;
  }

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

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