.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* White background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

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

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

.page-index__text-content {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 1em;
}

.page-index__button--register {
  background-color: #FFFFFF; /* White button */
  color: #000000; /* Black text */
  border: 2px solid #000000;
}

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

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

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

.page-index__button--download {
  background-color: #000000; /* Black button */
  color: #FFFFFF; /* White text */
}

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

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

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

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

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

.page-index__button--large {
  padding: 15px 35px;
  font-size: 1.2em;
}

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

.page-index__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FCBC45;
}

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

.page-index__hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-index__hero-image {
  flex: 1;
  min-width: 400px;
  max-width: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

/* General Section Styling */
.page-index__about-section, 
.page-index__advantages-section, 
.page-index__game-categories-section, 
.page-index__promotions-section, 
.page-index__responsible-gaming-section, 
.page-index__get-started-section, 
.page-index__discover-more-section, 
.page-index__cta-section {
  padding: 80px 0;
}

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

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

.page-index__advantage-card, 
.page-index__game-category-card, 
.page-index__step-card, 
.page-index__details-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-index__advantage-card img, 
.page-index__game-category-card img, 
.page-index__step-card img, 
.page-index__details-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
  object-fit: cover;
}

.page-index__card-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__card-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__card-title a:hover {
  text-decoration: underline;
  color: #FCBC45;
}

.page-index__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__game-category-card .page-index__button, 
.page-index__step-card .page-index__button, 
.page-index__details-card .page-index__button {
  margin-top: auto; /* Push button to bottom */
}

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

.page-index__cta-section .page-index__section-title {
  color: #FCBC45;
  font-size: 3em;
}

.page-index__cta-section .page-index__text-content {
  color: #f0f0f0;
  font-size: 1.2em;
  margin-bottom: 40px;
}

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

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: auto;
    padding: 60px 0;
  }
  .page-index__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__hero-content {
    max-width: 100%;
    text-align: center;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    justify-content: center;
  }
  .page-index__hero-image {
    order: -1; /* Image above text on mobile */
    max-width: 90%;
  }

  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__text-content {
    font-size: 1em;
  }
  
  /* Mobile image handling - ensure no overflow */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Still enforce minimum size */
    min-height: 200px;
  }
  .page-index__cta-section .page-index__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
  }
  .page-index__button {
    width: 100%;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__cta-section .page-index__section-title {
    font-size: 2em;
  }
}