.page-index {
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly setting page background to match body */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  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__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

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

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

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

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

.page-index__button--promotions, .page-index__button--learn-more, .page-index__button--play-now, .page-index__button--bet-now, .page-index__button--claim, .page-index__button--invite, .page-index__button--download, .page-index__button--responsible, .page-index__button--privacy, .page-index__button--contact, .page-index__button--read-more, .page-index__button--view-all, .page-index__button--view-all-blog {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--promotions:hover, .page-index__button--learn-more:hover, .page-index__button--play-now:hover, .page-index__button--bet-now:hover, .page-index__button--claim:hover, .page-index__button--invite:hover, .page-index__button--download:hover, .page-index__button--responsible:hover, .page-index__button--privacy:hover, .page-index__button--contact:hover, .page-index__button--read-more:hover, .page-index__button--view-all:hover, .page-index__button--view-all-blog:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-index__button--register-large {
  font-size: 1.2em;
  padding: 15px 35px;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--register-large:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

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

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-index__hero-buttons .page-index__button {
  margin: 0 10px;
}

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-index__about-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index__about-text {
  flex: 1;
  text-align: left;
}

.page-index__about-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #555555;
}

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

.page-index__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index__games-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__game-card {
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 280px; /* Ensure images are not too small */
  min-height: 200px;
  object-fit: cover;
}

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

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

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

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

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-index__promotions-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 300px; /* Ensure images are not too small */
  min-height: 200px;
  object-fit: cover;
}

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

.page-index__promo-card-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__all-promotions-cta {
  text-align: center;
  margin-top: 50px;
}

/* Mobile Section */
.page-index__mobile-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__mobile-text {
  flex: 1;
  text-align: left;
}

.page-index__mobile-description {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #555555;
}

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

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

/* Security Section */
.page-index__security-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

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

.page-index__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-index__security-text {
  flex: 1;
  text-align: left;
}

.page-index__security-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #555555;
}

.page-index__security-buttons {
  margin-top: 20px;
}

.page-index__security-buttons .page-index__button {
  margin-right: 15px;
}

/* Support Section */
.page-index__support-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  text-align: center;
}

.page-index__support-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-index__blog-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.page-index__blog-card-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-index__blog-card-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__all-blog-cta {
  text-align: center;
  margin-top: 50px;
}

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__about-grid, .page-index__mobile-content-wrapper, .page-index__security-grid {
    flex-direction: column;
  }
  .page-index__about-image-wrapper, .page-index__mobile-image-wrapper, .page-index__security-image-wrapper {
    order: -1; /* Image first on mobile */
    margin-bottom: 30px;
  }
  .page-index__mobile-image {
    width: 100%;
    max-width: 350px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons .page-index__button {
    margin: 10px 5px;
    display: block;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__game-categories, .page-index__promotions-grid, .page-index__blog-articles {
    grid-template-columns: 1fr;
  }
  .page-index__about-text, .page-index__security-text, .page-index__mobile-text {
    text-align: center;
  }
  .page-index__about-text .page-index__button, .page-index__security-buttons .page-index__button, .page-index__mobile-text .page-index__button {
    margin: 10px auto;
    display: block;
  }
  /* Content area images must be responsive and not cause overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__game-card-image, .page-index__promo-card-image {
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
    object-fit: cover;
  }
  .page-index__hero-content {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__hero-buttons .page-index__button {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}