.page-index {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* Explicitly set background as per custom color */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

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

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

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

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Highlight with login color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  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: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
  min-width: 150px;
  text-align: center;
}

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

.page-index__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  border-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;
  border-color: #FCBC45;
}

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

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

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  min-width: 120px;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-index__button--small:hover {
  background-color: #e0a53b;
}

.page-index__section-title {
  font-size: 2.5em;
  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__promo-section,
.page-index__security-section,
.page-index__mobile-section,
.page-index__cta-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__about-content,
.page-index__promo-content,
.page-index__security-content,
.page-index__mobile-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index__about-content p,
.page-index__promo-text p,
.page-index__security-text p,
.page-index__mobile-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

.page-index__games-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
}

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-index__game-card-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.page-index__game-card-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index__promo-content,
.page-index__security-content,
.page-index__mobile-content {
  flex-direction: row;
}

.page-index__promo-content:nth-of-type(odd) {
  flex-direction: row-reverse;
}

.page-index__promo-image,
.page-index__security-image,
.page-index__mobile-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__promo-text,
.page-index__security-text,
.page-index__mobile-text {
  flex: 1;
  max-width: 50%;
}

.page-index__cta-section {
  text-align: center;
  background-color: #000000;
  color: #ffffff;
  padding: 100px 20px;
}

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

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

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

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

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

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

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 120px);
  }
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
  .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%;
    max-width: 300px;
  }

  .page-index__about-content,
  .page-index__promo-content,
  .page-index__security-content,
  .page-index__mobile-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index__promo-content:nth-of-type(odd) {
    flex-direction: column;
  }

  .page-index__promo-image,
  .page-index__security-image,
  .page-index__mobile-image {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page-index__promo-text,
  .page-index__security-text,
  .page-index__mobile-text {
    max-width: 100%;
  }

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

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

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