.page-index {
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px);
  background-color: #FFFFFF;
}

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

.page-index__hero-section {
  position: relative;
  background-color: #000000; /* Dark background for hero text overlay */
  color: #FFFFFF;
  padding: 80px 20px 40px;
  text-align: center;
  overflow: hidden;
  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;
  opacity: 0.4;
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

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

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-index__cta-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;
  white-space: nowrap;
}

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

.page-index__cta-button--register:hover, .page-index__floating-button--register:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

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

.page-index__cta-button--login:hover, .page-index__floating-button--login:hover {
  background-color: #e6a73a;
  transform: translateY(-2px);
}

.page-index__cta-button--promo, .page-index__cta-button--vip, .page-index__cta-button--register-large, .page-index__cta-button--download-app {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__cta-button--promo:hover, .page-index__cta-button--vip:hover, .page-index__cta-button--register-large:hover, .page-index__cta-button--download-app:hover {
  background-color: #e6a73a;
  transform: translateY(-2px);
}

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

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

.page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__security-section, .page-index__vip-section, .page-index__cta-section {
  padding: 60px 0;
}

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

.page-index__read-more-button {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  padding: 12px 25px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-index__read-more-button:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-index__games-section {
  background-color: #FFFFFF;
}

.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: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease;
}

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

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.page-index__game-card-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
  padding: 0 15px;
  font-weight: bold;
}

.page-index__game-card-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-index__play-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-index__play-button:hover {
  background-color: #e6a73a;
}

.page-index__promotions-section {
  background-color: #f8f8f8;
}

.page-index__security-section {
  background-color: #FFFFFF;
}

.page-index__vip-section {
  background-color: #f8f8f8;
}

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

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

.page-index__cta-section .page-index__section-text {
  color: #f0f0f0;
}

.page-index__cta-section .page-index__cta-group {
  margin-top: 40px;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__game-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-text {
    font-size: 0.95em;
  }
  .page-index__game-categories {
    grid-template-columns: 1fr;
  }
  .page-index__game-image {
    height: 200px;
  }
  .page-index__floating-buttons {
    bottom: 15px;
    right: 15px;
  }
  .page-index__floating-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-index__hero-section {
    min-height: 450px;
    padding: 60px 15px 30px;
  }
  .page-index__game-card {
    margin-bottom: 20px;
  }
  .page-index__hero-image, .page-index__game-image, .page-index__about-section img, .page-index__promotions-section img, .page-index__security-section img, .page-index__vip-section img, .page-index__cta-section img {
    max-width: 100%;
    height: auto;
  }
  .page-index__container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__cta-group {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__cta-button {
    width: 100%;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__floating-buttons {
    right: 10px;
    bottom: 10px;
  }
  .page-index__hero-section {
    min-height: 400px;
    padding: 40px 10px 20px;
  }
}