.page-index {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
  background-color: #0F0F0F; /* Ensure consistency with body background */
}

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

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

.page-index__section-subtitle {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-index__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #1A1A1A; /* Dark text for gold button */
  border: 2px solid #FFD700;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text for secondary button */
  border: 2px solid #FFD700;
  margin-left: 20px;
}

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-index__button--outline {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 10px 25px;
}

.page-index__button--outline:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 6px;
  background-color: #FFD700;
  color: #1A1A1A;
  border: 2px solid #FFD700;
}

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.page-index__hero-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__hero-content {
  flex: 1;
  text-align: left;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.8em;
  color: #FFD700;
  margin-bottom: 25px;
  line-height: 1.1;
  font-weight: 900;
}

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

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

.page-index__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

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

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

.page-index__about-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

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

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

.page-index__about-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-index__game-card {
  background-color: #1A1A1A;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-index__game-card-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

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

.page-index__promo-card {
  background-color: #0F0F0F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-index__promo-card-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

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

.page-index__feature-item {
  background-color: #1A1A1A;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

/* CTA Download Section */
.page-index__cta-download-section {
  padding: 80px 0;
  background-color: #1A1A1A;
}

.page-index__cta-download-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-index__cta-text {
  flex: 1;
}

.page-index__cta-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__cta-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0F0F0F;
}

/* Contact Section */
.page-index__contact-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1A1A1A;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__about-grid, .page-index__cta-download-content {
    flex-direction: column;
  }
  .page-index__about-content, .page-index__cta-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 0;
  }
  .page-index__hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .page-index__hero-content {
    text-align: center;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    justify-content: center;
  }
  .page-index__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index__games-grid, .page-index__promotions-grid, .page-index__features-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image, .page-index__promo-card-image {
    height: 200px;
  }
  .page-index__button--secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-index__about-content p {
    font-size: 1em;
  }
  /* Ensure all content area images are responsive and do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__feature-icon {
    width: 200px; /* Maintain minimum size */
    height: 200px; /* Maintain minimum size */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.95em;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__button--secondary {
    margin-top: 10px;
  }
  .page-index__hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .page-index__button--primary, .page-index__button--secondary {
    width: 100%;
    margin-left: 0;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__section-subtitle {
    font-size: 0.9em;
  }
  .page-index__game-card-title, .page-index__promo-card-title {
    font-size: 1.5em;
  }
  .page-index__feature-title {
    font-size: 1.4em;
  }
}