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

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000000; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  padding: 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 40px 20px;
}

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

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

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

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #FFFFFF;
}

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

/* Buttons */
.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;
  border: none;
  cursor: pointer;
  text-align: center;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-index__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
}

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

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

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

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

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

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

.page-index__button--secondary:hover {
  background-color: #333333;
  border-color: #FCBC45;
}

.page-index__button--text {
  background: none;
  color: #FCBC45;
  padding: 0;
  min-width: unset;
  border-bottom: 2px solid #FCBC45;
  border-radius: 0;
}

.page-index__button--text:hover {
  color: #e0a53b;
  border-color: #e0a53b;
}

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

.page-index__about-content p {
  margin-bottom: 20px;
  font-size: 1.1em;
  text-align: justify;
}

.page-index__about-content .page-index__button {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

/* Games Section */
.page-index__games-section {
  padding: 60px 0;
}

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

.page-index__game-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-index__game-card-title {
  font-size: 1.8em;
  margin: 20px 0 10px 0;
  color: #000000;
  flex-grow: 1;
}

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

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

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

.page-index__game-card .page-index__button--text {
  margin-bottom: 20px;
  align-self: center;
}

.page-index__view-all-games {
  text-align: center;
  margin-top: 40px;
}

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

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-description {
  color: #FFFFFF;
}

.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: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-index__promo-card-title {
  font-size: 1.6em;
  margin: 20px 0 10px 0;
  color: #FCBC45;
  flex-grow: 1;
}

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

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

.page-index__promo-card-text {
  font-size: 1em;
  padding: 0 20px 20px 20px;
  color: #cccccc;
  flex-grow: 1;
}

.page-index__promo-card .page-index__button--primary {
  margin-bottom: 20px;
  align-self: center;
}

.page-index__view-all-promos {
  text-align: center;
  margin-top: 40px;
}

/* Why Choose Us Section */
.page-index__why-choose-us-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

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

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

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

.page-index__feature-icon {
  width: 250px; /* Ensure minimum size */
  height: 200px; /* Ensure minimum size */
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-index__feature-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

/* Getting Started Section */
.page-index__getting-started-section {
  padding: 60px 0;
}

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

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

.page-index__step-number {
  font-size: 3em;
  color: #FCBC45;
  font-weight: bold;
  margin-bottom: 15px;
}

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

.page-index__step-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

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

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

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

.page-index__cta-section .page-index__button--register {
  min-width: 250px;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-index__responsible-gaming-section p {
  text-align: justify;
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-index__responsible-gaming-section .page-index__button {
  display: block;
  margin: 0 auto;
  max-width: 400px;
}

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

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    min-width: unset;
    width: 100%;
  }
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__features-grid,
  .page-index__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image,
  .page-index__promo-card-image {
    height: 180px;
  }
  .page-index__feature-icon {
    width: 200px; /* Minimum size for mobile */
    height: 150px; /* Minimum size for mobile */
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__cta-description {
    font-size: 1.1em;
  }
  .page-index__container {
    padding: 15px;
  }
  /* Ensure all images in content area are responsive and not smaller than 200px display width */
  .page-index img {
    max-width: 100%;
    height: auto;
    /* Enforce min display size for content images if they are not already large */
    min-width: 200px; 
    min-height: 200px;
  }
  /* Specific overrides for smaller images that are still content images */
  .page-index__feature-icon, .page-index__game-card-image, .page-index__promo-card-image {
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Override fixed width for responsiveness */
    height: auto; /* Override fixed height for responsiveness */
  }
  .page-index__about-content p, .page-index__responsible-gaming-section p {
    text-align: left;
  }
}

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