.page-index {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-index__hero-section {
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.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; /* Highlight with login button color */
}

.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__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

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

.page-index__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

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

.page-index__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

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

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

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

.page-index__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-index__content-wrapper p {
  flex: 1;
  font-size: 1.1em;
}

.page-index__image {
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  max-width: 50%; /* Ensure images don't stretch too much */
  height: auto;
}

.page-index__image--left {
  order: -1;
}

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

.page-index__game-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-index__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #000000;
  padding: 0 15px;
}

.page-index__card-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

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

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

.page-index__promotions-section {
  background-color: #F8F8F8;
}

.page-index__promo-text {
  flex: 1;
}

.page-index__promo-text .page-index__button {
  margin-top: 20px;
  margin-right: 15px;
}

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

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

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

.page-index__button--secondary:hover {
  background-color: #FFD700; /* Slightly brighter yellow */
  border-color: #FFD700;
}

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

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-index__feature-card {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

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

.page-index__feature-card p {
  font-size: 1em;
  color: #555555;
}

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

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

.page-index__app-text {
  flex: 1;
}

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

.page-index__button--download:hover {
  background-color: #FFD700;
  border-color: #FFD700;
}

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

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

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

.page-index__content-text {
  font-size: 1.1em;
  color: #333333;
  margin-top: 20px;
}

/* 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: 2em;
  }

  .page-index__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-index__content-wrapper--reverse {
    flex-direction: column-reverse;
  }

  .page-index__image {
    max-width: 80%;
    margin-bottom: 30px;
  }

  .page-index__image--left {
    order: unset;
  }

  .page-index__game-categories {
    grid-template-columns: 1fr;
  }

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

  .page-index__promo-text .page-index__button {
    margin-right: 10px;
  }
}

@media (max-width: 768px) {
  .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__button {
    width: 100%;
    padding: 12px 20px;
  }

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

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

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

  .page-index__content-wrapper p,
  .page-index__content-text {
    font-size: 1em;
  }

  .page-index__image {
    max-width: 100% !important;
    height: auto !important; /* Ensure images don't overflow */
  }

  .page-index__game-card .page-index__card-image {
    height: 180px;
  }
}

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

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

  .page-index__button {
    padding: 10px 15px;
  }

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

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

  .page-index__game-card .page-index__card-image {
    height: 150px;
  }
}