.page-index {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure main content clears fixed header */
}

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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #1A202C; /* Base dark background */
  min-height: 600px; /* Ensure hero section has a minimum height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  height: 100%; /* Take full height of section */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-index__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text contrast */
    z-index: 1;
}

.page-index__hero-content {
  position: relative;
  z-index: 2; /* Content above overlay */
  padding: 100px 20px;
  max-width: 800px;
  text-align: center;
}

.page-index__hero-title {
  font-size: 3.5rem;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-index__hero-description {
  font-size: 1.25rem;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.page-index__button--primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

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

.page-index__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-index__button--large {
    padding: 20px 40px;
    font-size: 1.3rem;
}

.page-index__section-title {
  font-size: 2.5rem;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index__section-subtitle {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__login-register-section,
.page-index__mobile-app-section,
.page-index__responsible-gaming-section,
.page-index__faq-section,
.page-index__final-cta-section {
  padding: 80px 0;
  background-color: #1A202C; /* Ensure dark background for sections */
}

.page-index__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-index__about-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 20px;
}

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

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

.page-index__about-image-wrapper {
  text-align: center;
}

.page-index__about-image,
.page-index__login-register-image,
.page-index__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit will crop */
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-card-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-card-description {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.6;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.page-index__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card-title {
  font-size: 1.8rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__promo-card-description {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__login-register-section .page-index__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-index__login-register-content {
  display: flex;
  flex-direction: column;
}

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

.page-index__step-card {
  background-color: rgba(255, 215, 0, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-index__step-title {
  font-size: 1.3rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__step-description {
  font-size: 0.9rem;
  color: #cccccc;
  line-height: 1.6;
}

.page-index__mobile-app-section .page-index__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-index__app-features {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-index__app-features li {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-index__app-features li::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-index__responsible-gaming-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 25px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__responsible-gaming-section .page-index__cta-center {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-index__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__faq-question {
  font-size: 1.3rem;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
  cursor: pointer;
}

.page-index__faq-question--active {
  color: #e6c200;
}

.page-index__faq-answer {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-index__final-cta-content {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3rem;
  }
  .page-index__section-title {
    font-size: 2.2rem;
  }
  .page-index__about-grid,
  .page-index__login-register-section .page-index__container,
  .page-index__mobile-app-section .page-index__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-index__about-image-wrapper,
  .page-index__login-register-image-wrapper,
  .page-index__mobile-app-image-wrapper {
    order: -1; /* Image first on mobile */
  }
  .page-index__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5rem;
  }
  .page-index__hero-description {
    font-size: 1.1rem;
  }
  .page-index__section-title {
    font-size: 1.8rem;
  }
  .page-index__section-subtitle {
    font-size: 1rem;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-index__button--large {
      padding: 15px 30px;
      font-size: 1.1rem;
  }
  .page-index__hero-content {
    padding: 80px 15px;
  }
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__login-register-section,
  .page-index__mobile-app-section,
  .page-index__responsible-gaming-section,
  .page-index__faq-section,
  .page-index__final-cta-section {
    padding: 60px 0;
  }
  .page-index__about-content p,
  .page-index__responsible-gaming-section p,
  .page-index__faq-answer,
  .page-index__game-card-description,
  .page-index__promo-card-description,
  .page-index__step-description,
  .page-index__app-features li {
    font-size: 0.9rem;
  }
  .page-index__game-card-image,
  .page-index__promo-card-image {
    height: 180px; /* Adjust height for smaller screens */
  }

  /* Force content images to be responsive and not overflow */
  .page-index__container img,
  .page-index__about-image,
  .page-index__login-register-image,
  .page-index__mobile-app-image,
  .page-index__game-card-image,
  .page-index__promo-card-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Still enforce min size for content images */
    min-height: 200px; /* Still enforce min size for content images */
  }

  .page-index__hero-image {
    min-width: unset;
    min-height: unset;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2rem;
  }
  .page-index__section-title {
    font-size: 1.6rem;
  }
  .page-index__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__promotions-grid {
    grid-template-columns: 1fr;
  }
}

/* Ensure all images within the page-index area adhere to the minimum size and no filters */
.page-index img {
  filter: none !important; /* Absolutely no CSS filters to change image colors */
}

/* Specific rule for content images to ensure min size if a selector could reach it */
.page-index__about-image,
.page-index__login-register-image,
.page-index__mobile-app-image,
.page-index__game-card-image,
.page-index__promo-card-image {
  min-width: 200px;
  min-height: 200px;
}