.page-index {
  color: #333333; /* Default dark text for light body background */
}

.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000; /* Main dark background for hero */
  color: #ffffff; /* Light text for dark hero background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Add some bottom padding */
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #FCBC45; /* Highlight title with accent color */
}

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

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

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

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

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

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

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

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

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

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

.page-index__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

.page-index__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-index__about-text p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-index__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  padding: 12px 25px;
  font-size: 1em;
}

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

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

.page-index__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

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

.page-index__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index__game-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

.page-index__game-card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__button--view-games {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 10px 20px;
  font-size: 0.9em;
}

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

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

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

.page-index__promo-card {
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-index__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index__promo-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__promo-card-title a {
  color: #FCBC45;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-card-title a:hover {
  color: #FFFFFF;
}

.page-index__promo-card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__button--claim-bonus,
.page-index__button--view-all-promos,
.page-index__button--join-vip {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index__button--claim-bonus:hover,
.page-index__button--view-all-promos:hover,
.page-index__button--join-vip:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

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

.page-index__security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-index__security-text p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-index__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  padding: 12px 25px;
  font-size: 1em;
}

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

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

.page-index__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-index__app-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-index__app-text p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-index__button--download-app {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 15px 30px;
  font-size: 1.1em;
}

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

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

.page-index__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Testimonials Section */
.page-index__testimonials-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-index__testimonial-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #FCBC45;
  min-width: 200px; /* Enforce min size, this will be scaled down by width/height */
  min-height: 200px; /* Enforce min size */
}

.page-index__testimonial-quote {
  font-size: 1.1em;
  font-style: italic;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__testimonial-author {
  font-weight: 600;
  color: #000000;
  font-size: 1em;
}

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

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

.page-index__cta-section .page-index__section-description {
  color: #cccccc;
  margin-bottom: 50px;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__about-grid,
  .page-index__security-content,
  .page-index__app-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-index__about-image-wrapper,
  .page-index__security-image-wrapper,
  .page-index__app-image-wrapper {
    order: -1; /* Image first on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
  }
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px);
    padding: 40px 15px 50px;
  }
  .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__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__testimonials-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image,
  .page-index__promo-card-image {
    height: 220px;
  }
  .page-index__button--cta-register,
  .page-index__button--cta-login {
    margin-right: 0;
    margin-bottom: 15px;
    width: 80%;
  }
  .page-index__cta-section .page-index__button:last-child {
    margin-bottom: 0;
  }
  /* Mobile content area images must be constrained */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure content area itself doesn't cause horizontal scroll */
  .page-index__container {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-index__hero-actions {
    width: 100%;
  }
  .page-index__button--register, .page-index__button--login {
    width: 90%;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__button--cta-register, .page-index__button--cta-login {
    width: 90%;
  }
}