.page-index {
  color: #333333; /* Dark text for light body background */
  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__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #1A202C; /* Dark background for hero section */
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  z-index: 1;
  padding: 20px;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

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

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

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

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

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

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

.page-index__button--tertiary {
  background-color: #DC143C;
  color: #ffffff;
  border: 2px solid #DC143C;
}

.page-index__button--tertiary:hover {
  background-color: #b01030;
  border-color: #b01030;
}

.page-index__button--play {
  background-color: #FFD700;
  color: #1A202C;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
}

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

.page-index__button--link {
  background-color: transparent;
  color: #DC143C;
  border: 1px solid #DC143C;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-index__button--link:hover {
  background-color: #DC143C;
  color: #ffffff;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #1A202C;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-index__sub-title {
  font-size: 2em;
  color: #1A202C;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-index__mini-title {
  font-size: 1.5em;
  color: #1A202C;
  margin-top: 30px;
  margin-bottom: 10px;
}

.page-index__paragraph {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

/* Features Section */
.page-index__features-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__responsible-gaming-section,
.page-index__deep-content-section,
.page-index__cta-section {
  padding: 80px 0;
}

.page-index__features-section {
  background-color: #f9f9f9;
}

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

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

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

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

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

.page-index__feature-card-text {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
}

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

.page-index__detail-card {
    background-color: #1A202C;
    border-radius: 10px;
    padding: 30px;
    color: #f0f0f0;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-index__detail-card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

.page-index__detail-card-description {
    font-size: 1em;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 25px;
}

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

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

.page-index__game-card {
  background-color: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__game-image {
  width: 100%;
  height: 220px; /* Fixed height for game images */
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-index__game-card-title {
  font-size: 1.6em;
  color: #1A202C;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-index__game-card-text {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 20px;
  line-height: 1.5;
  flex-grow: 1;
}

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

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

.page-index__promotions-section .page-index__section-title {
  color: #FFD700;
}

.page-index__promotions-section .page-index__section-description {
  color: #cccccc;
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

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

.page-index__promo-card-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.5;
}

.page-index__promotions-button {
  margin-top: 20px;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  background-color: #f9f9f9;
  text-align: center;
}

/* Deep Content Section */
.page-index__deep-content-section {
  background-color: #ffffff;
  text-align: left;
}

/* CTA Section */
.page-index__cta-section {
  background-color: #DC143C;
  color: #ffffff;
  text-align: center;
  padding: 60px 0;
}

.page-index__cta-section .page-index__section-title {
  color: #ffffff;
}

.page-index__cta-section .page-index__section-description {
  color: #f0f0f0;
}

.page-index__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

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

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

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 0;
  }

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

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

  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__button {
    width: 100%;
    max-width: 300px;
  }

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

  .page-index__section-description {
    font-size: 0.95em;
  }

  .page-index__features-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__responsible-gaming-section,
  .page-index__deep-content-section,
  .page-index__cta-section {
    padding: 60px 0;
  }

  .page-index__feature-grid, .page-index__game-grid, .page-index__promo-grid, .page-index__detail-pages {
    grid-template-columns: 1fr;
  }

  /* Enforce min image size for mobile, prevent overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

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

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

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

  .page-index__mini-title {
    font-size: 1.2em;
  }

  .page-index__button {
    font-size: 1em;
    padding: 12px 25px;
  }
}