.page-index {
  color: #ffffff; /* Text color 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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-index__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #e0e0e0;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  cursor: pointer;
  font-size: 1.05em;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold for primary actions */
  color: #1A202C;
  border: none;
}

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

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

.page-index__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #1A202C;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}

.page-index__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

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

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

.page-index__hero-actions .page-index__button {
  margin: 0 15px;
  min-width: 180px;
}

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

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

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-index__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-index__feature-icon {
  width: 200px; /* Min size */
  height: 200px; /* Min size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

.page-index__feature-description {
  font-size: 1em;
  color: #cccccc;
}

.page-index__read-more {
  text-align: center;
  margin-top: 50px;
}

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

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.15);
}

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

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index__game-title {
  font-size: 1.6em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 15px;
}

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

.page-index__game-title a:hover {
  color: #e6c200;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 15px 20px;
}

.page-index__game-card .page-index__button {
  margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #1A202C;
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

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

.page-index__promo-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.page-index__promo-title {
  font-size: 1.7em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-index__promo-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 15px 20px;
}

.page-index__promo-card .page-index__button {
  margin-bottom: 20px;
}

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

.page-index__app-download-section .page-index__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-index__app-content {
  flex: 1;
  min-width: 300px;
}

.page-index__app-content .page-index__section-title,
.page-index__app-content .page-index__section-intro {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__app-actions {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__app-actions .page-index__button {
  min-width: 180px;
}

.page-index__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 350px;
}

.page-index__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Min size */
  min-height: 200px; /* Min size */
}

/* News Section */
.page-index__news-section {
  padding: 80px 0;
  background-color: #1A202C;
}

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

.page-index__news-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-index__news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-index__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__news-title {
  font-size: 1.5em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-index__news-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__news-title a:hover {
  color: #e6c200;
}

.page-index__news-description {
  font-size: 0.9em;
  color: #cccccc;
  padding: 0 15px 20px;
}

.page-index__news-card .page-index__button {
  margin-left: 15px;
  margin-bottom: 20px;
}

/* CTA Section */
.page-index__cta-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #1A202C, #2c3e50);
  text-align: center;
}

.page-index__cta-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.page-index__cta-description {
  font-size: 1.3em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3.5em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__cta-title {
    font-size: 3em;
  }
  .page-index__app-download-section .page-index__container {
    flex-direction: column;
  }
  .page-index__app-content, .page-index__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-index__app-content .page-index__section-title,
  .page-index__app-content .page-index__section-intro {
    text-align: center;
  }
  .page-index__app-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-actions .page-index__button {
    min-width: 250px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index__features-grid, .page-index__game-categories, .page-index__promo-grid, .page-index__news-grid {
    grid-template-columns: 1fr;
  }
  .page-index__feature-card, .page-index__game-card, .page-index__promo-card, .page-index__news-card {
    padding: 20px;
  }
  .page-index__cta-title {
    font-size: 2.2em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
  .page-index__game-image, .page-index__promo-image, .page-index__news-image {
    height: 200px;
  }
  /* Mobile content area image constraint */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.95em;
  }
  .page-index__hero-actions .page-index__button {
    min-width: 90%;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__app-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__app-actions .page-index__button {
    width: 100%;
  }
}