.page-index {
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #FFFFFF; /* Light background as per theme */
  color: #333333; /* Dark text for contrast on light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  font-weight: bold;
}

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

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

.page-index__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-index__button--secondary {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Register button color */
  border: 2px solid #000000;
}

.page-index__button--secondary:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-index__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  z-index: 1;
}

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

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Gold for emphasis */
  line-height: 1.1;
}

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

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

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

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

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

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

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

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

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

.page-index__game-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__game-image {
  width: 100%;
  height: 250px; /* Ensure images are not too small */
  object-fit: cover;
}

.page-index__game-card h3 {
  margin-top: 15px;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-index__game-card h3 a {
  font-size: 1.5em;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

.page-index__game-card h3 a:hover {
  color: #FCBC45;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-index__game-card .page-index__button {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

/* Getting Started Section */
.page-index__getting-started-section {
  padding: 80px 0;
  background-color: #F8F8F8;
}

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

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

.page-index__step-card:hover {
  transform: translateY(-10px);
}

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

.page-index__step-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

/* Promo CTA Section */
.page-index__promo-cta {
  background-color: #000000; /* Main color as background */
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.page-index__promo-cta--secondary {
  background-color: #333333; /* Slightly different dark background */
}

.page-index__promo-cta-content {
  max-width: 900px;
}

.page-index__promo-title {
  font-size: 3em;
  color: #FCBC45;
  margin-bottom: 20px;
}

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

/* Details Section */
.page-index__details-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index__details-list {
  display: grid;
  grid-template-columns: 1fr; /* Single column for now, can expand if more details pages */
  gap: 30px;
  margin-top: 50px;
}

.page-index__detail-card {
  background-color: #F8F8F8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.page-index__detail-title {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.page-index__detail-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__detail-title a:hover {
  color: #FCBC45;
}

.page-index__detail-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

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

.page-index__app-download-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-index__app-image {
  width: 400px; /* Ensure min size */
  height: 300px; /* Ensure min size */
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.page-index__app-text {
  flex-grow: 1;
  max-width: 600px;
}

.page-index__app-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 20px;
}

.page-index__app-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

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

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

/* Copyright Section */
.page-index__copyright-section {
  padding: 30px 0;
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  font-size: 0.9em;
}

.page-index__copyright-text {
  margin: 0;
}

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

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

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

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

  .page-index__app-title {
    font-size: 2.2em;
  }
}

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

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

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

  .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-intro {
    font-size: 1em;
  }

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

  .page-index__app-download-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index__app-image {
    width: 100%;
    max-width: 400px; /* Constrain max width for mobile */
    height: auto;
  }

  /* Ensure all content area images are responsive and not too small */
  .page-index img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min- /* Enforce minimum size for content images, adjusted for aspect ratio */
    object-fit: cover;
  }
  
  /* Specific overrides for smaller images if necessary, ensuring min-size */
  .page-index__feature-icon, .page-index__game-image {
    min-width: 200px;
    min-height: 150px;
    width: 100%; /* Allow to scale up to 100% of parent, but not smaller than min-width */
    height: auto;
  }
  
  .page-index__promo-title {
    font-size: 2em;
  }

  .page-index__app-title {
    font-size: 1.8em;
  }
}

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

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

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

  .page-index__promo-title {
    font-size: 1.8em;
  }

  .page-index__app-title {
    font-size: 1.6em;
  }
}