.page-index {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF;
  color: #000000;
  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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0;
  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;
  opacity: 0.4;
}

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

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

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

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

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

.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, transform 0.2s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

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

.page-index__button--register:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

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

.page-index__button--login:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Section Titles & Descriptions */
.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

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

.page-index__section-description--light {
  color: #f0f0f0;
}

.page-index__text-content {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-index__text-content--center {
  text-align: center;
}

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

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

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

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

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

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

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

.page-index__game-card-title a {
  color: #FCBC45;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index__game-card-text {
  font-size: 0.95em;
  padding: 0 20px;
  margin-bottom: 25px;
  line-height: 1.7;
  text-align: justify;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  min-width: 150px;
  background-color: #FCBC45;
  color: #000000;
}

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

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

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

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

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

.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
}

.page-index__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

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

.page-index__promo-card-text {
  font-size: 0.95em;
  padding: 0 20px;
  margin-bottom: 25px;
  line-height: 1.7;
  color: #333333;
  text-align: justify;
}

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

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

/* Security Section */
.page-index__security-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-index__feature-item {
  background-color: #F8F8F8;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-index__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-index__feature-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index__feature-text {
  font-size: 0.95em;
  color: #333333;
  line-height: 1.7;
  text-align: justify;
}

/* Call to Action Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #000000;
  text-align: center;
  color: #FFFFFF;
}

.page-index__cta-content {
  max-width: 800px;
}

.page-index__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
  min-width: 250px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-index__link--login {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-index__link--login:hover {
  text-decoration: underline;
}

/* Floating Buttons */
.page-index__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-index__floating-button {
  display: block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.page-index__floating-button:hover {
  transform: scale(1.05);
}

.page-index__floating-button--register {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__floating-button--login {
  background-color: #FFFFFF;
  color: #000000;
  border: 1px solid #FCBC45;
}

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

  .page-index__section-title {
    font-size: 2em;
  }

  .page-index__game-card-image {
    height: 200px;
  }

  .page-index__promo-card-image {
    height: 180px;
  }

  .page-index__floating-buttons {
    flex-direction: row;
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    bottom: 15px;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 10px;
  }

  .page-index__floating-button {
    flex: 1;
    margin: 0 5px;
    padding: 10px 15px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }

  .page-index__hero-description {
    font-size: 1.1em;
  }

  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__button {
    width: 100%;
    max-width: 300px;
  }

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__section-description {
    font-size: 1em;
  }

  .page-index__game-categories, .page-index__promo-cards, .page-index__security-features {
    grid-template-columns: 1fr;
  }

  .page-index__game-card, .page-index__promo-card, .page-index__feature-item {
    margin-bottom: 20px;
  }

  .page-index__button--large {
    max-width: 300px;
    width: 100%;
  }

  /* Ensure images do not overflow on mobile */
  .page-index__hero-image,
  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__feature-icon {
    max-width: 100%;
    height: auto;
  }

  .page-index {
    overflow-x: hidden;
  }

  .page-index__floating-buttons {
    flex-direction: row;
    width: calc(100% - 30px);
    left: 15px;
    right: 15px;
    bottom: 10px;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 8px;
    border-radius: 8px;
  }

  .page-index__floating-button {
    flex: 1;
    margin: 0 3px;
    padding: 8px 10px;
    font-size: 0.9em;
  }
}

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

  .page-index__hero-description {
    font-size: 0.9em;
  }

  .page-index__section-title {
    font-size: 1.5em;
  }

  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-index__game-card-title, .page-index__promo-card-title {
    font-size: 1.5em;
  }

  .page-index__floating-buttons {
    bottom: 5px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    padding: 5px;
  }
  .page-index__floating-button {
    padding: 6px 8px;
    font-size: 0.85em;
  }
}