.page-index {
  padding-top: var(--header-offset, 120px); /* Ensures content is below 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.8em;
  color: #8B0000; /* Deep Red for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  padding-top: 40px;
}

.page-index__section-subtitle {
  font-size: 1.3em;
  color: #555555;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Deep Red text for contrast */
  border: 2px solid #FFD700;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #8B0000; /* Deep Red */
  border: 2px solid #8B0000;
}

.page-index__button--secondary:hover {
  background-color: #8B0000;
  color: #FFD700;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border: 2px solid #FFD700;
  background-color: #FFD700;
  color: #8B0000;
}

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

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

.page-index__button--text {
  background: none;
  border: none;
  color: #8B0000;
  text-decoration: underline;
  padding: 0;
  font-size: 1em;
}

.page-index__button--text:hover {
  color: #FFD700;
}

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

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

.page-index__hero-title {
  font-size: 3.5em;
  color: #8B0000; /* Deep Red */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-index__hero-description {
  font-size: 1.4em;
  color: #555555;
  margin-bottom: 40px;
}

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

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

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

.page-index__about-content {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.page-index__about-text {
  flex: 2;
  min-width: 300px;
}

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

.page-index__about-image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.page-index__about-image {
  width: 100%;
  height: auto;
  display: block;
}

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

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.page-index__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__game-card-title {
  font-size: 1.6em;
  color: #8B0000;
  margin: 25px 15px 10px;
  font-weight: bold;
}

.page-index__game-card-title a {
  color: #8B0000;
  text-decoration: none;
}

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

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

.page-index__view-all-games {
  text-align: center;
}

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

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

.page-index__promo-card {
  background-color: #fdf5e6; /* Light gold background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid #FFD700;
}

.page-index__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index__promo-card-title {
  font-size: 1.6em;
  color: #8B0000;
  margin: 25px 15px 10px;
  font-weight: bold;
}

.page-index__promo-card-title a {
  color: #8B0000;
  text-decoration: none;
}

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

.page-index__promo-card-description {
  font-size: 1em;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index__view-all-promos {
  text-align: center;
}

/* VIP Program Section */
.page-index__vip-program-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-index__vip-content {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap-reverse;
}

.page-index__vip-text {
  flex: 2;
  min-width: 300px;
}

.page-index__vip-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #444444;
}

.page-index__vip-image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.page-index__vip-image {
  width: 100%;
  height: auto;
  display: block;
}

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

.page-index__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-index__feature-card {
  background-color: #fdf5e6;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 30px;
  border: 1px solid #FFD700;
}

.page-index__feature-card-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.page-index__feature-card-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__feature-card-title a {
  color: #8B0000;
  text-decoration: none;
}

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

.page-index__feature-card-description {
  font-size: 1em;
  color: #666666;
}

.page-index__security-cta {
  text-align: center;
}

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

.page-index__mobile-content {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.page-index__mobile-text {
  flex: 2;
  min-width: 300px;
}

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

.page-index__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.page-index__mobile-image {
  width: 100%;
  height: auto;
  display: block;
}

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

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

.page-index__testimonial-card {
  background-color: #fdf5e6;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  border: 1px solid #FFD700;
}

.page-index__testimonial-quote {
  font-size: 1.2em;
  font-style: italic;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #8B0000;
  font-size: 1.1em;
}

/* CTA Section */
.page-index__cta-section {
  background-color: #8B0000; /* Deep Red background */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-index__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFD700; /* Gold title */
}

.page-index__cta-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__section-subtitle {
    font-size: 1.1em;
  }
  .page-index__about-content, .page-index__vip-content, .page-index__mobile-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__about-image-wrapper, .page-index__vip-image-wrapper, .page-index__mobile-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-subtitle {
    font-size: 1em;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__game-card-image, .page-index__promo-card-image {
    height: 180px;
  }
  .page-index__game-card-title, .page-index__promo-card-title {
    font-size: 1.4em;
  }
  .page-index__feature-card-image {
    max-width: 200px;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-actions .page-index__button {
    width: 100%;
    max-width: 300px; /* Constrain button width on mobile */
  }
  .page-index__about-content, .page-index__vip-content, .page-index__mobile-content {
    gap: 30px;
  }
  .page-index__cta-title {
    font-size: 2.2em;
  }
  .page-index__cta-description {
    font-size: 1.1em;
  }
  /* Ensure all images within .page-index are responsive and don't 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.6em;
  }
  .page-index__section-subtitle {
    font-size: 0.9em;
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
}