.page-index {
  color: #000000;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  display: block;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.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: 40px;
  color: #F0F0F0;
}

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

.page-index__hero-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;
  min-width: 200px; /* Ensure minimum button size */
  text-align: center;
}

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

.page-index__hero-button--register:hover {
  background-color: #E0E0E0;
}

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

.page-index__hero-button--login:hover {
  background-color: #E0A030;
}

/* General Section Styling */
.page-index__about-section,
.page-index__advantages-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__latest-news-section,
.page-index__detail-pages-section,
.page-index__responsible-gaming-section,
.page-index__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index__advantages-section,
.page-index__latest-news-section,
.page-index__responsible-gaming-section {
  background-color: #F5F5F5; /* Light grey for subtle contrast */
}

.page-index__section-title,
.page-index__sub-title,
.page-index__advantage-title,
.page-index__card-title,
.page-index__promo-title,
.page-index__news-title,
.page-index__detail-page-title,
.page-index__cta-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

.page-index__sub-title {
  font-size: 1.8em;
  text-align: left;
  margin-top: 40px;
}

.page-index__section-description {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
}

.page-index__button-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px; /* Ensure minimum button size */
  text-align: center;
}

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

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

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

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

/* About Section specific */
.page-index__content-columns {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-index__content-text {
  flex: 1;
}

.page-index__content-text p {
  margin-bottom: 20px;
  color: #333333;
}

.page-index__content-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 400px; /* Minimum display size */
  min-height: 300px; /* Minimum display size */
}

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

/* Advantages Section specific */
.page-index__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-index__advantage-text {
  color: #333333;
}

/* Games Section specific */
.page-index__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-index__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-index__card-title {
  font-size: 1.6em;
  margin: 20px 0 10px;
  color: #000000;
}

.page-index__card-description {
  padding: 0 20px 20px;
  color: #333333;
  flex-grow: 1;
}

.page-index__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0 0 10px 10px;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-index__card-button:hover {
  background-color: #E0A030;
}

/* Promotions Section specific */
.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-index__promo-text {
  color: #333333;
  margin-bottom: 20px;
}

.page-index__promo-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-index__promo-button:hover {
  background-color: #333333;
}

/* Latest News Section specific */
.page-index__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__news-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-index__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-index__news-title {
  font-size: 1.4em;
  margin: 20px 20px 10px;
  color: #000000;
  text-align: left;
}

.page-index__news-link {
  text-decoration: none;
  color: inherit;
}

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

.page-index__news-excerpt {
  padding: 0 20px 15px;
  color: #333333;
  flex-grow: 1;
}

.page-index__news-read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0 0 10px 10px;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-index__news-read-more:hover {
  background-color: #E0A030;
}

/* Detail Pages Section specific */
.page-index__detail-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__detail-page-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__detail-page-title a:hover {
  text-decoration: underline;
}

.page-index__detail-page-description {
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__detail-page-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.page-index__detail-page-button:hover {
  background-color: #333333;
}

/* Responsible Gaming Section specific */
.page-index__responsible-gaming-section .page-index__section-description {
  margin-bottom: 40px;
}

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

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

.page-index__cta-text {
  font-size: 1.2em;
  color: #F0F0F0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-index__cta-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;
  min-width: 200px; /* Ensure minimum button size */
  text-align: center;
}

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

.page-index__cta-button--register:hover {
  background-color: #E0E0E0;
}

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

.page-index__cta-button--download:hover {
  background-color: #E0A030;
}

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

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 40px 15px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons,
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-button,
  .page-index__cta-button,
  .page-index__button {
    width: 100%;
    max-width: 300px;
  }

  .page-index__about-section,
  .page-index__advantages-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__latest-news-section,
  .page-index__detail-pages-section,
  .page-index__responsible-gaming-section,
  .page-index__cta-section {
    padding: 50px 0;
  }

  .page-index__section-title,
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__section-description,
  .page-index__cta-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-index__content-columns {
    flex-direction: column;
    gap: 30px;
  }
  .page-index__content-image-wrapper {
    min-width: unset;
    min-height: unset;
  }
  .page-index__content-image,
  .page-index__advantages-grid img,
  .page-index__card-image,
  .page-index__news-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
  }

  .page-index__card-title,
  .page-index__promo-title,
  .page-index__news-title,
  .page-index__detail-page-title {
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__section-title,
  .page-index__cta-title {
    font-size: 1.5em;
  }
  .page-index__hero-button,
  .page-index__cta-button {
    padding: 12px 20px;
  }
}

/* Ensure all content images meet minimum display size */
.page-index img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Maintain aspect ratio and cover space */
}

/* Specific override for hero image to allow larger display */
.page-index__hero-image {
  min-width: unset;
  min-height: unset;
  width: 100%;
  height: 100%;
}