.page-index {
  color: #ffffff; /* Must use light text for dark body background */
  background-color: #000000; /* Ensuring main content area matches body background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

.page-index__hero-section {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-index__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-index__hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.page-index__btn {
  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, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__btn--register {
  background-color: #FFFFFF; /* Custom color */
  color: #000000; /* Dark text for light background */
}

.page-index__btn--register:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.page-index__btn--login {
  background-color: #FCBC45; /* Custom color */
  color: #000000; /* Dark text for light background */
}

.page-index__btn--login:hover {
  background-color: #e6a836;
  transform: translateY(-2px);
}

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

.page-index__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 60px;
  color: #FFFFFF;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__security-section,
.page-index__access-support-section,
.page-index__faq-section,
.page-index__cta-section {
  padding: 80px 0;
}

.page-index__about-grid,
.page-index__games-grid,
.page-index__promotions-grid,
.page-index__access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__about-card,
.page-index__game-card,
.page-index__promo-card,
.page-index__access-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-index__about-card:hover,
.page-index__game-card:hover,
.page-index__promo-card:hover,
.page-index__access-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-index__about-icon,
.page-index__game-image,
.page-index__promo-image,
.page-index__access-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px; /* Ensure minimum image size */
}

.page-index__card-title,
.page-index__game-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #FCBC45; /* Highlight with accent color */
}

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

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

.page-index__card-description,
.page-index__game-description,
.page-index__paragraph {
  font-size: 1em;
  line-height: 1.7;
  color: #e0e0e0;
  flex-grow: 1; /* Allow description to take available space */
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 20px;
  background-color: #FCBC45;
  color: #000000;
}

.page-index__btn--small:hover {
  background-color: #e6a836;
}

.page-index__all-promos-action {
  text-align: center;
  margin-top: 60px;
}

.page-index__all-promos-text {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

.page-index__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-index__security-image {
  flex: 1 1 45%;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px; /* Ensure minimum image size */
}

.page-index__security-text-block {
  flex: 1 1 50%;
}

.page-index__sub-title {
  font-size: 2em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FCBC45;
}

.page-index__paragraph {
  margin-bottom: 20px;
}

.page-index__faq-list {
  display: grid;
  gap: 20px;
}

.page-index__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  color: #ffffff;
}

.page-index__faq-question {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FCBC45;
}

.page-index__faq-answer {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-index__cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.9));
  padding: 100px 0;
  border-radius: 15px;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index__cta-description {
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
  color: #f0f0f0;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__security-content {
    flex-direction: column;
  }
  .page-index__security-image,
  .page-index__security-text-block {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust offset for mobile header */
    padding: 40px 15px;
  }
  .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__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__security-section,
  .page-index__access-support-section,
  .page-index__faq-section,
  .page-index__cta-section {
    padding: 60px 0;
  }
  .page-index__about-grid,
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__access-grid {
    grid-template-columns: 1fr;
  }
  .page-index__card-title,
  .page-index__game-title {
    font-size: 1.4em;
  }
  .page-index__sub-title {
    font-size: 1.6em;
  }
  .page-index__faq-question {
    font-size: 1.2em;
  }
  .page-index__cta-description {
    font-size: 1.1em;
    padding: 0 15px;
  }
  .page-index__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__container img,
  .page-index__about-card img,
  .page-index__game-card img,
  .page-index__promo-card img,
  .page-index__access-card img,
  .page-index__security-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum image size for mobile */
    min-height: 200px; /* Ensure minimum image size for mobile */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__card-title,
  .page-index__game-title {
    font-size: 1.2em;
  }
  .page-index__sub-title {
    font-size: 1.4em;
  }
  .page-index__faq-question {
    font-size: 1.1em;
  }
}