.page-index {
  color: #333333; /* Dark text for default light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-index__section-padding {
  padding: 80px 0;
}

.page-index__background-dark {
  background-color: #1E90FF; /* Deep blue background */
  color: #ffffff; /* Light text for dark background */
}

.page-index__background-gold {
  background-color: #FFD700; /* Gold background */
  color: #333333; /* Dark text for gold background */
}

.page-index__section-title {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #1E90FF; /* Deep blue for titles on light backgrounds */
}

.page-index__section-title--light {
  color: #ffffff; /* White for titles on dark backgrounds */
}

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

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

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1E90FF 0%, #FFD700 100%); /* Blue to Gold gradient */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.page-index__hero-title {
  font-size: 3.8em;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-index__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Limit hero image width */
  margin-top: 40px;
  z-index: 5;
}

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

/* Buttons */
.page-index__button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1em;
  text-align: center;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold */
  color: #1E90FF; /* Deep Blue */
  border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
  background-color: #1E90FF;
  color: #FFD700;
  border-color: #FFD700;
}

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

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #1E90FF;
}

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

.page-index__button--outline:hover {
  background-color: #FFD700;
  color: #1E90FF;
}

.page-index__button--dark {
  background-color: #1E90FF;
  color: #FFD700;
  border: 2px solid #1E90FF;
}

.page-index__button--dark:hover {
  background-color: #FFD700;
  color: #1E90FF;
  border-color: #1E90FF;
}

.page-index__button--text {
  background: none;
  border: none;
  color: #1E90FF;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
}

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

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

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

.page-index__about-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index__about-content {
  flex: 1;
  text-align: left;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-index__about-content p {
  margin-bottom: 20px;
}

/* Games Section */
.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.page-index__game-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Enforce minimum size for content images */
  object-fit: cover;
}

.page-index__game-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #FFD700; /* Gold title on dark card */
}

.page-index__game-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-index__promo-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Enforce minimum size for content images */
  object-fit: cover;
}

.page-index__promo-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #1E90FF;
}

.page-index__promo-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security Section */
.page-index__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-index__security-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-index__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 100px; /* Ensure icon is not too small, but still within 200px rule as it's an exception via shared */
  min-height: 100px;
  object-fit: contain;
}

.page-index__security-item-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__security-item-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0f0f0;
}

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

/* App Download Section */
.page-index__app-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index__app-image-wrapper {
  flex: 1;
}

.page-index__app-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index__app-features {
  flex: 1;
  text-align: left;
}

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

.page-index__app-features li {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-index__app-features li::before {
  content: '✔️'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: #FFD700;
  font-size: 1.2em;
}

/* Testimonials Section */
.page-index__testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-style: italic;
}

.page-index__testimonial-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-index__testimonial-author {
  font-weight: 600;
  color: #FFD700;
  font-size: 0.95em;
}

/* Blog Section */
.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.page-index__blog-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Enforce minimum size for content images */
  object-fit: cover;
}

.page-index__blog-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #1E90FF;
}

.page-index__blog-title a {
  color: #1E90FF;
  text-decoration: none;
}

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

.page-index__blog-description {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__blog-cta {
  text-align: center;
  margin-top: 50px;
}

/* CTA Banner */
.page-index__cta-banner {
  text-align: center;
  padding: 60px 20px;
  border-radius: 15px;
  margin: 80px auto 0 auto; /* Margin top from previous section */
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-index__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1E90FF;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__about-grid,
  .page-index__app-content {
    flex-direction: column;
  }
  .page-index__about-content,
  .page-index__app-features {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 40px 15px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    padding: 12px 25px;
  }
  .page-index__section-padding {
    padding: 60px 0;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-subtitle {
    font-size: 1em;
  }
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__security-grid,
  .page-index__testimonials-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index__cta-title {
    font-size: 1.6em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
  /* Mobile image overflow prevention */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index {
    overflow-x: hidden;
  }
}

@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__cta-title {
    font-size: 1.4em;
  }
  .page-index__cta-description {
    font-size: 0.9em;
  }
  .page-index__button {
    font-size: 1em;
  }
  .page-index__security-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
  }
}