.page-index {
  color: #333333; /* Default text color for light body background */
}

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 700px; /* Adjust as needed */
  overflow: hidden;
}

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

.page-index__hero-content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text readability */
  border-radius: 15px;
  color: #ffffff;
}

.page-index__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

.page-index__button--primary {
  background-color: #FFD700; /* Gold */
  color: #4B0082; /* Royal Purple */
  border: 2px solid #FFD700;
}

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

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

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

.page-index__button--tertiary {
  background-color: #4B0082; /* Royal Purple */
  color: #FFD700; /* Gold */
  border: 2px solid #4B0082;
}

.page-index__button--tertiary:hover {
  background-color: #3a0066;
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #4B0082;
  color: #FFD700;
  border: none;
}

.page-index__button--small:hover {
  background-color: #3a0066;
}

/* General Section Styling */
.page-index__section-title {
  font-size: 2.8em;
  color: #4B0082; /* Royal Purple */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold */
  border-radius: 2px;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

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

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

.page-index__about-text p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 25px;
}

.page-index__about-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-index__game-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  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(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

.page-index__game-title {
  font-size: 1.8em;
  color: #4B0082; /* Royal Purple */
  margin-bottom: 10px;
}

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

/* Features Section */
.page-index__features-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

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

.page-index__feature-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-index__feature-title {
  font-size: 1.6em;
  color: #4B0082;
  margin-bottom: 15px;
}

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

.page-index__view-details-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* App Download Section */
.page-index__app-download-section {
  padding: 80px 0;
  background-color: #4B0082; /* Royal Purple */
  color: #ffffff;
}

.page-index__app-download-section .page-index__section-title,
.page-index__app-download-section .page-index__section-description {
  color: #ffffff;
}

.page-index__app-download-section .page-index__section-title::after {
  background-color: #FFD700;
}

.page-index__app-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-index__app-text p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-index__app-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

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

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #FFD700; /* Gold */
  color: #4B0082;
  text-align: center;
}

.page-index__cta-section .page-index__section-title,
.page-index__cta-section .page-index__section-description {
  color: #4B0082;
}

.page-index__cta-section .page-index__section-title::after {
  background-color: #4B0082;
}

.page-index__cta-section .page-index__button--primary {
  background-color: #4B0082;
  color: #FFD700;
  border-color: #4B0082;
}

.page-index__cta-section .page-index__button--primary:hover {
  background-color: #3a0066;
  border-color: #3a0066;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__about-grid, .page-index__app-content-grid {
    grid-template-columns: 1fr;
  }
  .page-index__about-image, .page-index__app-image {
    order: -1; /* Image first on mobile */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-content-wrapper {
    padding: 25px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-index__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-index__games-grid, .page-index__features-grid {
    grid-template-columns: 1fr;
  }
  /* Mobile content area image constraint */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__feature-icon {
    width: 150px; /* Adjusted for smaller screens, but still > 200px if it's content */
    height: 150px;
    margin: 0 auto 20px auto;
  }
  .page-index__game-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-index__hero-section {
    padding-top: var(--header-offset-mobile, 80px);
  }
}