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

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Desktop padding-top for fixed header */
  background-color: #0A2463; /* Main brand color for hero background if image not fully covering */
}

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

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

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

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

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

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

.page-index__section-title {
  font-size: 2.5em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-index__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #E0B342;
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-index__about-section, .page-index__responsible-gaming-section, .page-index__trust-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-index__games-section, .page-index__promotions-section, .page-index__cta-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

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

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

.page-index__game-image, .page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eeeeee;
}

.page-index__game-title, .page-index__promo-title {
  font-size: 1.6em;
  color: #0A2463;
  margin: 20px 15px 10px;
  line-height: 1.3;
}

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

.page-index__game-title a:hover, .page-index__promo-title a:hover {
  color: #E0B342;
}

.page-index__game-description, .page-index__promo-description {
  font-size: 1em;
  color: #666666;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

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

.page-index__button--primary:hover {
  background-color: #0A2463;
  color: #E0B342;
  transform: translateY(-2px);
}

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

.page-index__button--secondary:hover {
  background-color: #E0B342;
  color: #0A2463;
  transform: translateY(-2px);
}

.page-index__button--link {
  color: #0A2463;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  margin-top: 20px;
}

.page-index__button--link:hover {
  color: #E0B342;
  text-decoration: none;
}

.page-index__button--small {
  font-size: 0.9em;
  padding: 8px 18px;
  margin-top: auto;
  margin-bottom: 20px;
  align-self: center;
}

.page-index__button--large {
  padding: 15px 35px;
  font-size: 1.2em;
}

.page-index__button--centered {
  display: block;
  margin: 40px auto 0;
}

.page-index__mobile-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

.page-index__mobile-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.page-index__mobile-section .page-index__section-title {
  color: #E0B342;
  text-align: left;
}

.page-index__mobile-section .page-index__section-title::after {
  margin: 15px 0 0 0;
}

.page-index__mobile-section .page-index__section-text {
  text-align: left;
  color: #f0f0f0;
  margin: 0 0 40px 0;
}

.page-index__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

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

.page-index__trust-image {
  display: block;
  max-width: 800px;
  height: auto;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-index__cta-section {
  background: linear-gradient(135deg, #0A2463, #1f4cbd);
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
}

.page-index__cta-content .page-index__section-title {
  color: #E0B342;
}

.page-index__cta-content .page-index__section-title::after {
  background-color: #E0B342;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-text {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Mobile padding-top for fixed header */
  }
  .page-index__hero-content {
    padding: 30px 15px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__games-grid, .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__mobile-flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-index__mobile-content, .page-index__mobile-image-wrapper {
    text-align: center;
  }
  .page-index__mobile-section .page-index__section-title,
  .page-index__mobile-section .page-index__section-title::after,
  .page-index__mobile-section .page-index__section-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .page-index__trust-image {
    width: 100%;
  }
  /* Ensure content images are responsive and do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__game-image, .page-index__promo-image {
    height: auto; /* Allow height to adjust for responsiveness */
  }
  .page-index__mobile-image {
    width: 80%; /* Adjust mobile image size */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-text {
    font-size: 0.9em;
  }
  .page-index__button--large {
    font-size: 1em;
    padding: 12px 25px;
  }
}