.page-index {
  padding-top: var(--header-offset, 120px);
  background-color: #FFFFFF;
  color: #333333; /* Dark text for 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__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 40px;
  background: linear-gradient(135deg, #000000 0%, #333333 100%); /* Dark gradient for hero section */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

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

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-index__btn--register {
  background-color: #FFFFFF;
  color: #000000; /* Text color for register button */
}

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

.page-index__btn--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

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

.page-index__hero-image-wrapper {
  margin-top: 40px;
  width: 100%;
  max-width: 1000px;
  position: relative;
  z-index: 0;
}

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

.page-index__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 40px;
  color: #000000;
  position: relative;
  padding-bottom: 10px;
}

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

.page-index__about-section,
.page-index__features-section,
.page-index__games-section,
.page-index__strategy-guide-section,
.page-index__cta-section,
.page-index__community-section {
  padding: 80px 0;
}

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

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

.page-index__text-content {
  flex: 1;
}

.page-index__text-content p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-index__image-wrapper {
  flex: 1;
  min-width: 400px; /* Ensure images are not too small */
}

.page-index__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index__btn--learn-more {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__btn--learn-more:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

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

.page-index__feature-card,
.page-index__game-card,
.page-index__guide-card,
.page-index__community-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #333333;
}

.page-index__feature-card:hover,
.page-index__game-card:hover,
.page-index__guide-card:hover,
.page-index__community-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-icon,
.page-index__game-image,
.page-index__guide-image {
  width: 100%; /* Ensure card images are large enough */
  max-width: 400px; /* Maximum width for card images */
  height: auto;
  margin: 0 auto 20px;
  border-radius: 8px;
  display: block;
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px; /* Enforce min size for content images */
  object-fit: cover;
}

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

.page-index__game-title a,
.page-index__guide-title a,
.page-index__community-card-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__game-title a:hover,
.page-index__guide-title a:hover,
.page-index__community-card-title a:hover {
  color: #FCBC45;
}

.page-index__feature-description,
.page-index__game-description,
.page-index__guide-description,
.page-index__community-card-description {
  font-size: 1em;
  color: #555555;
}

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

.page-index__view-all-games-action,
.page-index__view-all-guides-action {
  text-align: center;
  margin-top: 50px;
}

.page-index__btn--view-all {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__btn--view-all:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-index__cta-section {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 100px 20px;
}

.page-index__section-title--cta {
  color: #FCBC45;
}

.page-index__section-title--cta::after {
  background-color: #FFFFFF;
}

.page-index__cta-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__btn--cta-register {
  background-color: #FCBC45;
  color: #000000;
  margin-right: 20px;
}

.page-index__btn--cta-register:hover {
  background-color: #e0a538;
}

.page-index__btn--cta-download {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index__btn--cta-download:hover {
  background-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }

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

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

  .page-index__content-grid {
    flex-direction: column;
  }

  .page-index__image-wrapper {
    min-width: unset;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 120px); /* Ensure mobile padding also uses the variable */
  }

  .page-index__hero-section {
    padding: 60px 15px 30px;
  }

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

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

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

  .page-index__btn {
    width: 100%;
    max-width: 280px;
  }

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

  .page-index__about-section,
  .page-index__features-section,
  .page-index__games-section,
  .page-index__strategy-guide-section,
  .page-index__cta-section,
  .page-index__community-section {
    padding: 60px 0;
  }

  .page-index__container {
    padding: 0 15px;
  }

  .page-index__text-content p {
    font-size: 1em;
  }

  .page-index__feature-card,
  .page-index__game-card,
  .page-index__guide-card,
  .page-index__community-card {
    padding: 20px;
  }

  .page-index__feature-title,
  .page-index__game-title,
  .page-index__guide-title,
  .page-index__community-card-title {
    font-size: 1.5em;
  }

  .page-index__section-intro {
    font-size: 1em;
    margin: -10px auto 40px;
  }

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

  .page-index__btn--cta-register {
    margin-right: 0;
    margin-bottom: 15px;
  }

  /* Mobile image overflow prevention */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__image {
    max-width: 100%;
    height: auto;
  }
  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__guide-image {
    max-width: 100%;
    height: auto;
  }
}