.page-index {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden behind fixed header */
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  background-color: #003366; /* Primary color background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

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

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFCC00; /* Auxiliary color for emphasis */
  line-height: 1.2;
}

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

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

.page-index__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-index__hero-button--primary {
  background-color: #FFCC00; /* Gold for primary action */
  color: #003366;
  border: 2px solid #FFCC00;
}

.page-index__hero-button--primary:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

.page-index__hero-button--secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-index__hero-button--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
  transform: translateY(-2px);
}

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Limit image width */
  margin-top: 40px;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-index__content-block {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #003366;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFCC00;
  border-radius: 2px;
}

.page-index__section-text {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-index__about-section .page-index__section-text {
  text-align: justify;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

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

.page-index__button--outline {
  background-color: transparent;
  color: #003366;
  border: 2px solid #003366;
}

.page-index__button--outline:hover {
  background-color: #003366;
  color: #ffffff;
}

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

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

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__game-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.page-index__promotions-section .page-index__promotion-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index__mobile-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  background-color: #f8f8f8;
  padding: 60px 20px;
  border-radius: 10px;
}

.page-index__mobile-content {
  flex: 1;
  text-align: left;
}

.page-index__mobile-content .page-index__section-title {
  text-align: left;
}

.page-index__mobile-content .page-index__section-title::after {
  left: 0;
  transform: translateX(0);
}

.page-index__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__mobile-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-index__detail-card {
  background-color: #003366;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__detail-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
}

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

.page-index__detail-card-title a:hover {
  color: #e6b800;
  text-decoration: underline;
}

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

.page-index__cta-section {
  background-color: #FFCC00;
  color: #003366;
  padding: 80px 20px;
  border-radius: 10px;
  margin-bottom: 60px;
}

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

.page-index__cta-section .page-index__section-title::after {
  background-color: #003366;
}

.page-index__cta-section .page-index__section-text {
  color: #333333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-section .page-index__button--primary {
  background-color: #003366;
  color: #FFCC00;
  border-color: #003366;
}

.page-index__cta-section .page-index__button--primary:hover {
  background-color: #002244;
  border-color: #002244;
}

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

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

  .page-index__mobile-section {
    flex-direction: column;
  }

  .page-index__mobile-content,
  .page-index__mobile-image-wrapper {
    text-align: center;
  }

  .page-index__mobile-content .page-index__section-title {
    text-align: center;
  }

  .page-index__mobile-content .page-index__section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .page-index__mobile-image {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 20px;
  }

  .page-index__hero-title {
    font-size: 2.2em;
  }

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

  .page-index__hero-actions {
    flex-direction: column;
  }

  .page-index__hero-button {
    width: 80%;
    max-width: 300px;
  }

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

  .page-index__section-text {
    font-size: 1em;
    text-align: left;
  }

  .page-index__games-grid,
  .page-index__detail-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-index__mobile-section {
    padding: 40px 20px;
  }

  /* Ensure all content area images are responsive and do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__game-image, .page-index__promotion-image, .page-index__mobile-image {
    max-width: 100%;
    height: auto;
  }
  /* Specific rule for images that might be selected by generic selectors */
  .page-index__content-block img, .page-index__games-grid img, .page-index__promotions-section img, .page-index__mobile-section img, .page-index__detail-cards-grid img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

  .page-index__hero-button {
    width: 90%;
  }
}