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

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

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

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 20px;
  background-color: #f8f8f8;
  text-align: center;
  max-width: none; /* Override max-width for full-width hero */
}

.page-index__hero-content-wrapper {
  max-width: 800px;
}

.page-index__hero-title {
  font-size: 3.5em;
  color: #000000;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
}

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

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

.page-index__button {
  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.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-index__button--register {
  background-color: #000000;
  color: #FFFFFF;
}

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

.page-index__button--login {
  background-color: #FCBC45;
  color: #000000;
}

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

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

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

.page-index__button--play-now, .page-index__button--guide, .page-index__button--view-promo {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 1em;
}

.page-index__button--play-now:hover, .page-index__button--guide:hover, .page-index__button--view-promo:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-index__hero-image-container {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Content Grid for About & Why Choose Sections */
.page-index__content-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 40px;
}

.page-index__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-index__text-block {
  flex: 1;
}

.page-index__text-block p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #444444;
}

.page-index__image-block {
  flex: 1;
  min-width: 400px; /* Ensure images are large enough */
}

.page-index__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-index__game-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.page-index__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

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

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

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

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

.page-index__game-card .page-index__button {
  margin: 0 20px 20px;
}

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

.page-index__promo-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.page-index__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-index__promo-card-title {
  font-size: 1.4em;
  color: #000000;
  margin: 20px 20px 10px;
}

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

.page-index__promo-card .page-index__button {
  margin: 0 20px 20px;
}

.page-index__center-button {
  text-align: center;
}

/* Why Choose Section */
.page-index__feature-list {
  list-style: none;
  padding: 0;
}

.page-index__feature-item {
  background-color: #f9f9f9;
  border-left: 5px solid #000000;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__feature-item h3 {
  color: #000000;
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-index__feature-item p {
  font-size: 1em;
  color: #555555;
  margin-bottom: 0;
}

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

.page-index__guide-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.page-index__guide-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.page-index__guide-card-title {
  font-size: 1.3em;
  color: #000000;
  margin: 20px 20px 10px;
}

.page-index__guide-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-index__guide-card-description {
  font-size: 0.9em;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-index__faq-link {
  margin-top: 20px;
}

/* Testimonials Section */
.page-index__testimonials-section {
  background-color: #f0f0f0;
}

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

.page-index__testimonial-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-index__testimonial-text {
  font-style: italic;
  color: #444444;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #000000;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  background-color: #FFFFFF;
}

/* Call to Action Section */
.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

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

.page-index__cta-section .page-index__section-subtitle {
  color: #CCCCCC;
}

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

.page-index__cta-buttons .page-index__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index__cta-buttons .page-index__button--register:hover {
  background-color: #e0e0e0;
}

.page-index__cta-buttons .page-index__button--login {
  background-color: #FCBC45;
  color: #000000;
}

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

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

  .page-index__content-grid {
    flex-direction: column;
    gap: 40px;
  }

  .page-index__content-grid--reverse {
    flex-direction: column-reverse;
  }

  .page-index__image-block {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 20px;
  }

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

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

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

  .page-index__section {
    padding: 40px 15px;
  }

  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-index__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index__game-categories-grid, .page-index__promo-grid, .page-index__guide-grid, .page-index__testimonial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__hero-image-container {
    margin-top: 20px;
  }

  .page-index__image-block {
    order: -1; /* For mobile, put image above text in content grids */
  }

  .page-index__content-grid--reverse .page-index__image-block {
    order: unset;
  }

  .page-index__feature-item {
    padding: 15px;
  }

  .page-index__feature-item h3 {
    font-size: 1.2em;
  }

  .page-index__cta-section {
    padding: 60px 20px;
  }

  .page-index__cta-buttons {
    flex-direction: column;
  }
}

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

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

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

  .page-index__section-subtitle {
    font-size: 0.9em;
  }

  .page-index__button {
    width: 100%;
  }

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