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

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

.page-index__section-title {
  font-size: 2.5em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.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;
  text-align: center;
}

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

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

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

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
}

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

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

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

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #0A2463;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Use accent color for title */
}

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

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

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

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

.page-index__about-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index__about-text {
  flex: 1;
}

.page-index__about-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

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

.page-index__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-index__game-card {
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  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; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__game-card-title {
  font-size: 1.5em;
  color: #0A2463;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-card-description {
  font-size: 1em;
  color: #666;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-index__game-card .page-index__button {
  background-color: #0A2463;
  color: #ffffff;
  border: 2px solid #0A2463;
}

.page-index__game-card .page-index__button:hover {
  background-color: #FFD700;
  color: #0A2463;
  border-color: #FFD700;
}

.page-index__games-footer-text {
  text-align: center;
  font-size: 1.1em;
  color: #555;
  max-width: 900px;
  margin: 0 auto;
}

/* Promotions Section */
.page-index__promo-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

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

.page-index__promo-section .page-index__section-subtitle {
  color: #f0f0f0;
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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: 280px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__promo-card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-card-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-index__promo-card .page-index__button {
  background-color: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-index__promo-card .page-index__button:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-index__promo-footer {
  text-align: center;
}

.page-index__promo-footer p {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile App Section */
.page-index__mobile-app-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-index__mobile-text {
  flex: 1;
}

.page-index__mobile-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-index__mobile-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__mobile-features li {
  font-size: 1.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: #333333;
}

.page-index__feature-icon {
  color: #FFD700;
  font-size: 1.3em;
  margin-right: 10px;
}

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

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

/* Why Choose Us Section */
.page-index__why-choose-us-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-index__advantage-card {
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

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

.page-index__advantage-description {
  font-size: 0.95em;
  color: #666;
}

.page-index__why-choose-us-footer-text {
  text-align: center;
  font-size: 1.1em;
  color: #555;
  max-width: 900px;
  margin: 0 auto;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

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

.page-index__responsible-gaming-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-index__responsible-gaming-content p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-index__responsible-gaming-content .page-index__button {
  background-color: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-index__responsible-gaming-content .page-index__button:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #FFD700;
  text-align: center;
}

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

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

.page-index__cta-section .page-index__button {
  background-color: #0A2463;
  color: #ffffff;
  border: 2px solid #0A2463;
}

.page-index__cta-section .page-index__button:hover {
  background-color: #223f81;
  border-color: #223f81;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__about-grid, .page-index__mobile-grid {
    flex-direction: column;
  }
  .page-index__about-image-wrapper, .page-index__mobile-image-wrapper {
    margin-top: 40px;
  }
  .page-index__about-text, .page-index__mobile-text {
    text-align: center;
  }
  .page-index__about-text .page-index__button, .page-index__mobile-text .page-index__button {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 20px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-button {
    width: 100%;
    max-width: 250px;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-subtitle {
    font-size: 1em;
  }
  .page-index__about-section, .page-index__games-section, .page-index__promo-section, .page-index__mobile-app-section, .page-index__why-choose-us-section, .page-index__responsible-gaming-section, .page-index__cta-section {
    padding: 60px 0;
  }
  .page-index__game-grid, .page-index__promo-grid, .page-index__advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image, .page-index__promo-card-image {
    height: 200px;
  }
  .page-index__about-image, .page-index__mobile-image, .page-index__game-card-image, .page-index__promo-card-image, .page-index__advantage-icon {
    max-width: 100%;
    height: auto;
  }
  /* Ensure all content images within .page-index do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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