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

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  background-color: #000000; /* Fallback background if image fails */
  padding: 80px 0;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

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

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

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

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

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

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

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

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-index__button--small:hover {
  background-color: #E6A73A;
}

.page-index__button--large {
  padding: 18px 35px;
  font-size: 1.1em;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-index__button--large:hover {
  background-color: #E6A73A;
}

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

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

/* General Section Styling */
.page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__mobile-section, .page-index__guide-section, .page-index__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  text-align: center;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 20px;
}

.page-index__section-description {
  font-size: 1.1em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Features Grid */
.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__feature-card {
  background-color: #F8F8F8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__feature-card:hover {
  transform: translateY(-5px);
}

.page-index__feature-icon {
  width: 100%; /* Ensure images are not tiny */
  max-width: 250px; /* Example max-width, adjust as needed */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

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

.page-index__card-text {
  color: #666666;
  font-size: 0.95em;
}

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

.page-index__game-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index__game-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__game-content .page-index__card-title {
  margin-top: 0;
}

.page-index__game-content .page-index__card-text {
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-index__promo-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__promo-card .page-index__card-title {
  margin-top: 20px;
}

.page-index__promo-card .page-index__card-text {
  padding: 0 25px 20px;
  flex-grow: 1;
}

.page-index__call-to-action {
  margin-top: 60px;
}

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

.page-index__mobile-content {
  flex: 1;
  max-width: 500px;
}

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

.page-index__mobile-content .page-index__section-description {
  text-align: left;
  margin-left: 0;
}

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

.page-index__mobile-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FCBC45" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-8.83"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-index__mobile-image-wrapper {
  flex: 1;
  max-width: 400px;
  text-align: center;
}

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

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

.page-index__guide-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-index__guide-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__guide-card .page-index__card-title {
  margin-top: 20px;
  padding: 0 25px;
}

.page-index__guide-card .page-index__card-text {
  padding: 0 25px 20px;
  flex-grow: 1;
}

.page-index__guide-card .page-index__button--small {
  margin: 0 25px 25px;
}

/* CTA Section */
.page-index__cta-section {
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  padding: 100px 0;
}

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

.page-index__cta-section .page-index__button--cta {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }

  .page-index__hero-description {
    font-size: 1.1em;
  }

  .page-index__section-title {
    font-size: 2em;
  }

  .page-index__mobile-container {
    flex-direction: column;
    text-align: center;
  }

  .page-index__mobile-content {
    max-width: 100%;
  }

  .page-index__mobile-content .page-index__section-title,
  .page-index__mobile-content .page-index__section-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .page-index__mobile-features li {
    justify-content: center;
    background-position: center left;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 400px;
    padding: 60px 0;
  }

  .page-index__hero-title {
    font-size: 2.2em;
  }

  .page-index__hero-description {
    font-size: 1em;
  }

  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }

  .page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__mobile-section, .page-index__guide-section, .page-index__cta-section {
    padding: 60px 0;
  }

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-index__feature-card, .page-index__game-card, .page-index__promo-card, .page-index__guide-card {
    margin-bottom: 20px;
  }

  /* Ensure all content area images are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto; /* Ensures aspect ratio is maintained */
  }

  /* Specific overrides for images to ensure they are not tiny in content areas */
  .page-index__feature-icon, .page-index__game-image, .page-index__promo-image, .page-index__mobile-image, .page-index__guide-image {
    min-width: 200px; /* Minimum width for content images */
    min-height: 150px; /* Minimum height for content images */
    width: 100%;
    height: auto;
  }

  .page-index__mobile-features li {
    text-align: center;
    background-position: center left; /* Adjust background position */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align text to left within list item */
    padding-left: 30px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }

  .page-index__hero-description {
    font-size: 0.9em;
  }

  .page-index__button {
    padding: 12px 25px;
    font-size: 0.9em;
  }

  .page-index__section-title {
    font-size: 1.5em;
  }

  .page-index__feature-card, .page-index__game-card, .page-index__promo-card, .page-index__guide-card {
    padding: 20px;
  }

  .page-index__card-title {
    font-size: 1.3em;
  }
}