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

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

.page-index__section-title {
  font-size: 2.5rem;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  padding-top: 40px;
}

.page-index__text-content {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  font-size: 1.05rem;
}

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

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

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

.page-index__button--login:hover {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.page-index__button--learn-more,
.page-index__button--view-promo,
.page-index__button--play-now,
.page-index__button--final-register,
.page-index__button--details,
.page-index__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--learn-more:hover,
.page-index__button--view-promo:hover,
.page-index__button--play-now:hover,
.page-index__button--final-register:hover,
.page-index__button--details:hover,
.page-index__button--read-more:hover {
  background-color: #FCBC45;
  color: #FFFFFF;
  border-color: #FCBC45;
}

.page-index__hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000000; /* Fallback for hero section */
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  max-width: 800px;
  padding: 20px;
}

.page-index__hero-title {
  font-size: 3.8rem;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.4rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-index__hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__about-section,
.page-index__promo-section,
.page-index__advantages-section,
.page-index__testimonials-section,
.page-index__resources-section,
.page-index__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-index__games-section {
  padding: 80px 0;
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__games-section .page-index__section-title,
.page-index__games-section .page-index__text-content,
.page-index__games-section .page-index__game-title {
  color: #FFFFFF;
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-index__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__game-title a {
  color: #FCBC45;
  text-decoration: none;
}

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

.page-index__game-description {
  font-size: 1rem;
  color: #E0E0E0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index__app-section {
  background-color: #F8F8F8;
  padding: 80px 0;
}

.page-index__app-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  text-align: left;
}

.page-index__app-text {
  flex: 1;
  max-width: 600px;
}

.page-index__app-text .page-index__section-title {
  text-align: left;
}

.page-index__app-text .page-index__text-content {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__app-image-wrapper {
  flex-shrink: 0;
  width: 350px;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-index__app-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-index__button--download-app {
  margin-left: 0;
}

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

.page-index__advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: left;
}

.page-index__advantage-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__advantage-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter is applied */
}

.page-index__advantage-title {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__advantage-description {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.7;
}

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

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

.page-index__testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #FCBC45;
  filter: none; /* Ensure no CSS filter is applied */
}

.page-index__testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #E0E0E0;
  margin-bottom: 20px;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #FCBC45;
}

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

.page-index__resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__resource-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__resource-title {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
  flex-grow: 1;
}

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

.page-index__resource-title a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-index__resource-description {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-index__button--read-more {
  align-self: flex-start;
}

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

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

@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3rem;
  }
  .page-index__hero-description {
    font-size: 1.2rem;
  }
  .page-index__section-title {
    font-size: 2rem;
  }
  .page-index__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-text {
    max-width: 100%;
  }
  .page-index__app-text .page-index__section-title,
  .page-index__app-text .page-index__text-content {
    text-align: center;
  }
  .page-index__button--download-app {
    margin-left: auto;
    margin-right: auto;
  }
  .page-index__app-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }
  .page-index__hero-title {
    font-size: 2.2rem;
  }
  .page-index__hero-description {
    font-size: 1rem;
  }
  .page-index__section-title {
    font-size: 1.8rem;
  }
  .page-index__text-content {
    font-size: 1rem;
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  .page-index__hero-section,
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promo-section,
  .page-index__app-section,
  .page-index__advantages-section,
  .page-index__testimonials-section,
  .page-index__resources-section,
  .page-index__cta-section {
    padding: 50px 0;
  }
  /* Mobile content area images */
  .page-index__game-image,
  .page-index__app-image,
  .page-index__advantage-icon,
  .page-index__testimonial-avatar {
    max-width: 100%;
    height: auto;
  }
  .page-index__app-image-wrapper {
    width: 100%;
    height: auto;
    max-width: 300px; /* Constrain mobile app image width */
    margin-left: auto;
    margin-right: auto;
  }
  .page-index__app-image {
    height: auto; /* Ensure aspect ratio is maintained */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8rem;
  }
  .page-index__hero-description {
    font-size: 0.9rem;
  }
  .page-index__hero-actions {
    flex-direction: column;
  }
  .page-index__button {
    width: 80%;
    margin: 5px auto;
  }
  .page-index__game-categories,
  .page-index__advantage-grid,
  .page-index__testimonial-grid,
  .page-index__resource-cards {
    grid-template-columns: 1fr;
  }
  .page-index__app-image-wrapper {
    max-width: 250px;
  }
}