.page-index {
  color: #333333; /* Dark text for default white body background */
}

.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  padding-bottom: 60px;
  text-align: center;
  background-color: #0A2463; /* Dark blue background for hero */
  color: #ffffff;
  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.3;
}

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

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-index__btn {
  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.3s ease;
  white-space: nowrap;
}

.page-index__btn--primary {
  background-color: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-index__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-index__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__btn--secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
  transform: translateY(-3px);
}

.page-index__btn--cta {
  background-color: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
  font-size: 1.4em;
  padding: 18px 35px;
}

.page-index__btn--cta:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

.page-index__section-intro {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

.page-index__features-section,
.page-index__games-overview,
.page-index__promotions-section,
.page-index__about-us-section,
.page-index__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-index__feature-card,
.page-index__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__feature-card:hover,
.page-index__game-card:hover {
  transform: translateY(-10px);
}

.page-index__feature-icon,
.page-index__game-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-index__feature-title,
.page-index__game-title {
  font-size: 1.8em;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-index__feature-title a,
.page-index__game-title a {
  color: #0A2463;
  text-decoration: none;
}

.page-index__feature-title a:hover,
.page-index__game-title a:hover {
  color: #FFD700;
}

.page-index__feature-description,
.page-index__game-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.5;
  flex-grow: 1;
}

.page-index__game-card .page-index__btn {
  margin-top: 20px;
}

.page-index__promotions-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

.page-index__promo-item {
  display: flex;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-index__promo-image {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.page-index__promo-content {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-index__promo-title {
  font-size: 2.2em;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-index__promo-title a {
  color: #0A2463;
  text-decoration: none;
}

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

.page-index__promo-description {
  font-size: 1.1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-index__about-text {
  font-size: 1.1em;
  color: #444444;
  line-height: 1.8;
  text-align: justify;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-index__cta-section {
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  border-radius: 10px;
  margin-bottom: 40px;
}

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

.page-index__cta-section .page-index__section-intro {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-index__floating-button {
    background-color: #FFD700;
    color: #0A2463;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.page-index__floating-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2.4em;
  }
  .page-index__promo-item {
    flex-direction: column;
  }
  .page-index__promo-image,
  .page-index__promo-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px);
    padding-bottom: 40px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn {
    width: 100%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-intro {
    font-size: 1em;
  }
  .page-index__features-grid,
  .page-index__games-grid {
    grid-template-columns: 1fr;
  }
  .page-index__promo-image,
  .page-index__promo-content {
    max-width: 100%;
  }
  .page-index__promo-title {
    font-size: 1.8em;
  }
  .page-index__about-text {
    font-size: 0.95em;
  }
  .page-index__cta-section {
    padding: 60px 20px;
  }
  /* Mobile content area image constraint */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__floating-buttons {
      bottom: 20px;
      right: 20px;
      gap: 10px;
  }
  .page-index__floating-button {
      padding: 12px 20px;
      font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__btn--cta {
    font-size: 1.2em;
    padding: 15px 25px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__floating-buttons {
      right: 15px;
      bottom: 15px;
  }
}