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

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

.page-index__section-padding {
  padding: 80px 0;
}

.page-index__bg-dark {
  background-color: #000000;
  color: #FFFFFF;
}

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

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

.page-index__section-title--overlay {
  color: #FFFFFF;
  position: relative;
  z-index: 2;
}

.page-index__text-content {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-index__text-content--light {
  color: #E0E0E0;
}

.page-index__text-content--overlay {
  color: #FFFFFF;
  position: relative;
  z-index: 2;
}

.page-index__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-index__btn--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
  margin-right: 20px;
}

.page-index__btn--register:hover {
  background-color: #E0E0E0;
  color: #000000;
}

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

.page-index__btn--login:hover {
  background-color: #E0A030;
  color: #000000;
}

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

.page-index__btn--primary:hover {
  background-color: #E0A030;
  color: #000000;
}

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

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

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 1em;
}

.page-index__btn--large {
  padding: 20px 40px;
  font-size: 1.3em;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero section */
  padding: 0;
  text-align: center;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #E0E0E0;
}

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

/* Games Section */
.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.08); /* Slightly visible cards on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__game-card-image {
  width: 100%;
  max-width: 400px; /* Constrain image width within card */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-index__game-card-title {
  font-size: 1.8em;
  color: #FCBC45;
  margin-bottom: 15px;
}

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

.page-index__explore-more {
  margin-top: 50px;
  font-size: 1.2em;
  color: #E0E0E0;
}

/* Promotions Section */
.page-index__promo-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

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

.page-index__promo-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__promo-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-index__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: left;
}

.page-index__promo-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-index__promo-item::before {
  content: '⚡'; /* Unicode lightning bolt for bullet point */
  position: absolute;
  left: 0;
  color: #FCBC45;
  font-size: 1.2em;
}

/* Security Section */
.page-index__security-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
  flex-direction: row-reverse; /* Image on left, text on right */
}

.page-index__security-content {
  flex: 1;
}

.page-index__security-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Section */
.page-index__mobile-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-index__mobile-content {
  flex: 1;
}

.page-index__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__mobile-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Why Choose Section */
.page-index__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__benefit-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible cards on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__benefit-title {
  font-size: 1.6em;
  color: #FCBC45;
  margin-bottom: 15px;
}

.page-index__benefit-description {
  font-size: 1em;
  color: #E0E0E0;
}

/* CTA Section */
.page-index__cta-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  padding: 0;
}

.page-index__cta-layout {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-index__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.7); /* Darker overlay for strong contrast */
  border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__promo-layout, .page-index__security-layout, .page-index__mobile-layout {
    flex-direction: column;
    text-align: center;
  }
  .page-index__promo-list {
    text-align: center;
  }
  .page-index__promo-item::before {
    left: 50%;
    transform: translateX(-50%);
    top: -5px;
  }
  .page-index__promo-item {
    padding-left: 0;
    padding-top: 25px;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn--register {
    margin-right: 0;
  }
  .page-index__section-padding {
    padding: 60px 0;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__text-content {
    font-size: 0.95em;
  }
  .page-index__game-card, .page-index__benefit-card {
    padding: 20px;
  }
  .page-index__game-card-title, .page-index__benefit-title {
    font-size: 1.5em;
  }
  .page-index__cta-section {
    min-height: 300px;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__btn--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
  /* Mobile content area image constraint */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-section .page-index__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__promo-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__security-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__mobile-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__cta-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__hero-content, .page-index__cta-content {
    padding: 20px;
  }
  .page-index__btn {
    font-size: 1em;
    padding: 12px 25px;
  }
}