.page-index {
  color: #ffffff; /* Default text color for dark background */
  background-color: #000000; /* Ensure main content has dark background */
}

.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 70vh;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Apply offset to the first visible section */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6; /* Slightly dim the image to make text pop */
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  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: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-index__button--register {
  background-color: #FFFFFF; /* Custom color for Register */
  color: #000000; /* Text color for Register button */
  border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
}

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

.page-index__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

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

.page-index__button--download:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-3px);
}

.page-index__section {
  padding: 80px 20px;
  background-color: #000000; /* Ensure dark background for sections */
  color: #ffffff;
}

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

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

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

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

.page-index__about-text {
  flex: 1;
  font-size: 1.05em;
  line-height: 1.8;
}

.page-index__about-text p {
  margin-bottom: 20px;
}

.page-index__about-image {
  flex: 1;
  width: 100%;
  min-width: 200px; /* Ensure image is not too small */
  min-height: 200px; /* Ensure image is not too small */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index__game-categories,
.page-index__promo-grid,
.page-index__features-grid,
.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index__card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-index__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px; /* Ensure images are not too small */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-index__card-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-index__game-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 25px 0;
  text-align: left;
  width: 100%;
}

.page-index__game-list li {
  margin-bottom: 10px;
  font-size: 0.95em;
  color: #e0e0e0;
}

.page-index__game-list li a {
  color: #FCBC45;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-list li a:hover {
  text-decoration: underline;
}

.page-index__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.page-index__view-all-promos,
.page-index__view-all-blog {
  text-align: center;
  margin-top: 50px;
}

.page-index__button--secondary {
  background-color: transparent;
  color: #FCBC45;
  border: 2px solid #FCBC45;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.page-index__button--secondary:hover {
  background-color: #FCBC45;
  color: #000000;
  transform: translateY(-2px);
}

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

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

.page-index__feature-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-index__feature-icon {
  width: 100%; /* Make it responsive within its container */
  max-width: 250px; /* Max width to keep it contained in a grid item */
  height: auto; /* Maintain aspect ratio */
  min-width: 200px; /* Enforce minimum display size */
  min-height: 200px; /* Enforce minimum display size */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-index__feature-text {
  font-size: 0.9em;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-index__link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__link:hover {
  text-decoration: underline;
  color: #e0a030;
}

.page-index__bg--dark {
  background-color: #0d0d0d; /* Slightly different dark for contrast in sections */
}

.page-index__blog-grid .page-index__card-image {
  height: 220px;
}

.page-index__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-index__cta-section {
  text-align: center;
  padding: 100px 20px;
}

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

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

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

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

  .page-index__about-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 15px;
    min-height: 60vh;
  }

  .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: 80%;
    max-width: 300px;
  }

  .page-index__section {
    padding: 60px 15px;
  }

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

  .page-index__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-index__about-image {
    max-width: 100%;
  }

  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__features-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index__card-image {
    height: 200px;
    min-width: 200px;
    min-height: 200px;
  }

  .page-index__feature-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  .page-index__cta-section {
    padding: 80px 15px;
  }

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

  .page-index__cta-buttons .page-index__button {
    width: 80%;
    max-width: 300px;
  }

  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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

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