.page-index {
  padding-top: var(--header-offset, 120px); /* Ensure content starts below fixed header */
  background-color: var(--color-background-light, #FFFFFF);
  color: var(--color-text-dark, #333333);
  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;
  width: 100%;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  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.7);
}

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

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

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

.page-index__button--register {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Register button color specified as #FFFFFF text */
  border: 2px solid #FFFFFF;
}

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

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

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

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

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

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

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

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

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

/* General Section Styles */
.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__app-section,
.page-index__responsible-gaming-section,
.page-index__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

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

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

.page-index__text-content {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #333333;
}

.page-index__text-content--light {
  color: #F0F0F0;
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__game-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FCBC45;
}

.page-index__game-card-link {
  color: #FCBC45;
  text-decoration: none;
}

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

.page-index__game-card-description {
  font-size: 0.95em;
  color: #F0F0F0;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promotions-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  margin: 40px auto;
  display: block;
}

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

/* App Section */
.page-index__app-container,
.page-index__responsible-gaming-container {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-index__app-content,
.page-index__responsible-gaming-content {
  flex: 1;
}

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

.page-index__app-image,
.page-index__responsible-gaming-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Responsible Gaming Section - specific for image alignment */
.page-index__responsible-gaming-container {
  flex-direction: row-reverse; /* Image on right */
}

/* Call to Action Section */
.page-index__cta-section {
  padding: 100px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__app-container,
  .page-index__responsible-gaming-container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-image-wrapper,
  .page-index__responsible-gaming-image-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset-mobile, 80px); /* Adjust for potential mobile header height */
  }
  .page-index__hero-section {
    min-height: 450px;
  }
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons,
  .page-index__promotions-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__text-content {
    font-size: 1em;
  }
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__app-section,
  .page-index__responsible-gaming-section,
  .page-index__cta-section {
    padding: 60px 0;
  }
  /* Mobile content area images must be constrained */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__game-card-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__game-categories {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image {
    height: 150px;
  }
}