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

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Apply header offset to the main content area */
}

.page-index__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
  z-index: 1;
}

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

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

.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: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  min-width: 150px; /* Ensure button minimum width */
  text-align: center;
}

.page-index__button--register {
  background-color: #FCBC45;
  color: #000000; /* Dark text for FCBC45 background */
  border: 2px solid #FCBC45;
}

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

.page-index__button--login {
  background-color: #000000;
  color: #FFFFFF; /* Light text for black background */
  border: 2px solid #000000;
}

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

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

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

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

.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__features-section,
.page-index__games-overview,
.page-index__promotions-section,
.page-index__about-us-section,
.page-index__latest-news-section,
.page-index__cta-section {
  padding: 80px 20px;
  background-color: #F8F8F8;
  margin-bottom: 20px;
}

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

.page-index__features-grid,
.page-index__game-categories,
.page-index__promotions-grid,
.page-index__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__feature-card,
.page-index__game-card,
.page-index__promotion-card,
.page-index__news-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__feature-icon,
.page-index__game-image,
.page-index__promotion-image,
.page-index__news-image {
  width: 100%; /* Ensure images fill card width */
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index__card-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

.page-index__card-text {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.95em;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

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

.page-index__button--promo {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-index__all-promos-button-wrapper,
.page-index__all-news-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-index__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--large:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-index__mobile-app-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #F0F0F0;
}

.page-index__mobile-app-content {
  max-width: 700px;
  margin-bottom: 40px;
}

.page-index__button--download {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 30px;
}

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

.page-index__mobile-app-image-wrapper {
  width: 100%;
  max-width: 600px;
}

.page-index__mobile-app-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index__about-text {
  font-size: 1em;
  color: #666666;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: center;
}

.page-index__button--about {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 30px;
}

.page-index__button--about:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-index__button--read-more {
  padding: 10px 20px;
  font-size: 0.95em;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--read-more:hover {
  background-color: #E0A83A;
  color: #000000;
  border-color: #E0A83A;
}

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 100px 20px;
}

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

.page-index__cta-section .page-index__section-description {
  color: #E0E0E0;
  margin-bottom: 40px;
}

.page-index__button--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 20px 50px;
  font-size: 1.3em;
  margin-top: 30px;
}

.page-index__button--cta:hover {
  background-color: #E0A83A;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__hero-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 15px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 250px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-index__features-grid,
  .page-index__game-categories,
  .page-index__promotions-grid,
  .page-index__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-index__feature-card,
  .page-index__game-card,
  .page-index__promotion-card,
  .page-index__news-card {
    padding: 25px;
  }
  .page-index__card-title {
    font-size: 1.4em;
  }
  .page-index__card-text {
    font-size: 0.9em;
  }
  .page-index__mobile-app-section {
    flex-direction: column;
    padding: 60px 15px;
  }
  .page-index__mobile-app-content {
    margin-bottom: 30px;
  }
  .page-index__mobile-app-image-wrapper {
    max-width: 400px;
  }
  .page-index__about-text {
    font-size: 0.95em;
  }
  .page-index__cta-section {
    padding: 80px 15px;
  }
  .page-index__button--cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Ensure content images do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}