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

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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Fallback for hero section background */
  color: #FFFFFF;
  text-align: center;
  padding: 0;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for better text readability */
}

.page-index__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
}

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

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

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px; /* Ensure buttons are large enough */
  text-align: center;
  font-size: 1.1em;
}

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

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

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

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  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-description {
  text-align: center;
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__app-section,
.page-index__responsible-gaming-section,
.page-index__support-section,
.page-index__seo-content-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index__about-section {
  background-color: #f8f8f8;
}

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

.page-index__about-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index__about-text {
  flex: 1;
  max-width: 50%;
}

.page-index__about-text p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

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

.page-index__button--learn-more:hover {
  background-color: #333333;
}

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

.page-index__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

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

.page-index__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

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

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

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

.page-index__game-text {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px;
  margin-bottom: 20px;
}

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

.page-index__button--play:hover {
  background-color: #e6a73c;
}

.page-index__promo-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-index__button--claim-bonus {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin: 0 auto;
  display: block;
  width: fit-content;
}

.page-index__button--claim-bonus:hover {
  background-color: #333333;
}

.page-index__app-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row-reverse; /* Image on right, text on left */
}

.page-index__app-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index__app-text {
  flex: 1;
  max-width: 50%;
}

.page-index__app-text p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

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

.page-index__button--download-app:hover {
  background-color: #e6a73c;
}

.page-index__button--contact {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin: 0 auto;
  display: block;
  width: fit-content;
}

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

.page-index__button--join-now {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

.page-index__button--join-now:hover {
  background-color: #e6a73c;
}

.page-index__seo-content-section h3 {
    font-size: 1.8em;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-index__seo-content-section h4 {
    font-size: 1.5em;
    color: #000000;
    margin-top: 25px;
    margin-bottom: 10px;
}

.page-index__seo-content-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-index__seo-content-section ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-index__seo-content-section ul li {
    margin-bottom: 8px;
}

/* 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__about-content,
  .page-index__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__about-image,
  .page-index__app-image {
    max-width: 80%;
  }
  .page-index__about-text,
  .page-index__app-text {
    max-width: 100%;
  }
  .page-index__button {
    min-width: 180px;
    padding: 12px 25px;
  }
}

@media (max-width: 768px) {
  .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: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__game-grid {
    grid-template-columns: 1fr;
  }
  .page-index__about-image, .page-index__app-image, .page-index__promo-image, .page-index__game-image, .page-index__seo-content-section img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Use contain for mobile to prevent cropping */
  }
  /* Mobile content area images must not cause overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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