.page-index {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  background-color: #000000; /* Dark background for hero */
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  padding-bottom: 80px;
  color: #FFFFFF;
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
}

.page-index__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Default to column for mobile */
  align-items: center;
  gap: 40px;
  padding: 0 20px;
}

.page-index__hero-content {
  flex: 1;
  text-align: center;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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, color 0.3s ease;
  min-width: 150px; /* Ensure buttons are not too small */
  text-align: center;
}

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

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

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

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

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

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

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

.page-index__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.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__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__about-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-index__about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index__text-block {
  font-size: 1.1em;
  color: #333333;
  text-align: justify;
}

.page-index__games-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-index__game-card {
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

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

.page-index__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 5px solid #FCBC45;
}

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

.page-index__game-description {
  font-size: 1em;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-index__button--play {
  background-color: #000000;
  color: #FCBC45;
  border: 2px solid #000000;
  padding: 10px 20px;
  font-size: 1em;
  margin: 0 15px;
}

.page-index__button--play:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-index__promo-section {
  background-color: #000000;
  padding: 60px 0;
  color: #FFFFFF;
}

.page-index__promo-section .page-index__section-title, .page-index__promo-section .page-index__section-subtitle {
  color: #FFFFFF;
}

.page-index__promo-section .page-index__section-title::after {
  background-color: #FFFFFF;
}

.page-index__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(252, 188, 69, 0.3);
}

.page-index__promo-image {
  width: 100%;
  height: 300px; /* Consistent height */
  object-fit: cover;
  display: block;
}

.page-index__promo-title {
  font-size: 2em;
  color: #FCBC45;
  margin: 25px 20px 10px;
}

.page-index__promo-description {
  font-size: 1.1em;
  color: #f0f0f0;
  padding: 0 20px 25px;
  flex-grow: 1;
}

.page-index__button--claim, .page-index__button--view {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 12px 25px;
  font-size: 1.05em;
  margin: 0 20px 20px;
}

.page-index__button--claim:hover, .page-index__button--view:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-index__why-choose-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

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

.page-index__feature-item:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-index__feature-icon {
  width: 100%;
  height: 200px; /* Min height 200px */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

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

.page-index__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-index__cta-section {
  background-color: #FCBC45;
  padding: 80px 0;
  text-align: center;
  color: #000000;
}

.page-index__cta-content {
  max-width: 900px;
}

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

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

.page-index__button--cta {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-index__button--cta:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-index__testimonials-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-index__testimonial-card {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.page-index__testimonial-card::before {
  content: '"';
  font-size: 4em;
  color: #FCBC45;
  position: absolute;
  top: 10px;
  left: 20px;
  opacity: 0.7;
}

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

.page-index__testimonial-author {
  font-weight: bold;
  color: #000000;
  text-align: right;
  font-size: 1em;
}

.page-index__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-index__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__faq-answer {
  font-size: 1.05em;
  color: #555555;
}

.page-index__faq-answer a {
  color: #FCBC45;
  text-decoration: none;
}

.page-index__faq-answer a:hover {
  text-decoration: underline;
}

.page-index__responsible-gaming-section {
  padding: 60px 0;
  background-color: #000000;
  color: #FFFFFF;
}

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

.page-index__responsible-gaming-section .page-index__section-title::after {
  background-color: #FFFFFF;
}

.page-index__responsible-gaming-section .page-index__text-block {
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

.page-index__responsible-gaming-section .page-index__text-block a {
  color: #FCBC45;
  text-decoration: none;
}

.page-index__responsible-gaming-section .page-index__text-block a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-index__hero-container {
    flex-direction: row;
    text-align: left;
  }

  .page-index__hero-content {
    text-align: left;
  }

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

  .page-index__hero-description {
    font-size: 1.5em;
    margin-left: 0;
    margin-right: 0;
  }

  .page-index__hero-buttons {
    justify-content: flex-start;
  }
}

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

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

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

  .page-index__button {
    width: 100%;
  }

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

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

  .page-index__games-grid, .page-index__promo-cards, .page-index__why-choose-grid, .page-index__testimonials-grid {
    grid-template-columns: 1fr;
  }

  .page-index__game-image, .page-index__promo-image, .page-index__feature-icon {
    max-width: 100%;
    height: auto; /* Ensure images are not fixed height on mobile */
  }

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

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

  .page-index__button--cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }

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

  /* Specific overrides for feature icons to ensure minimum size is not violated in general CSS, but responsive on mobile */
  .page-index__feature-icon {
    width: 100%;
    min-width: 200px; /* Maintain minimum size */
    height: auto;
  }

  /* Override for game images */
  .page-index__game-image {
    width: 100%;
    min-width: 200px; /* Maintain minimum size */
    height: auto;
  }

  /* Override for promo images */
  .page-index__promo-image {
    width: 100%;
    min-width: 200px; /* Maintain minimum size */
    height: auto;
  }
}