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

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

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

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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Fallback for image loading */
  color: #FFFFFF;
  padding: 0;
  min-height: 600px; /* Ensure hero section has a minimum height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.page-index__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

.page-index__hero-description {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

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

.page-index__button--primary {
  background-color: #FCBC45; /* Login color for primary action */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-index__button--secondary {
  background-color: #000000; /* Main color for secondary action */
  color: #FFFFFF; /* Register color for text */
  border: 2px solid #FFFFFF;
}

.page-index__button--secondary:hover {
  background-color: #333333;
  border-color: #F0F0F0;
}

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

.page-index__button--tertiary:hover {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
}

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

.page-index__about-section, .page-index__games-section, .page-index__download-section, .page-index__promotions-section, .page-index__security-section, .page-index__why-choose-section, .page-index__testimonials-section, .page-index__faq-section, .page-index__cta-section {
  padding: 80px 0;
}

.page-index__about-section {
  background-color: #FFFFFF;
}

.page-index__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__about-text p {
  margin-bottom: 20px;
  color: #333333;
}

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

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

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

.page-index__game-card, .page-index__promo-card, .page-index__advantage-card, .page-index__testimonial-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-index__game-card-image, .page-index__promo-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-index__game-card-title, .page-index__promo-card-title, .page-index__advantage-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__game-card-description, .page-index__promo-card-description, .page-index__advantage-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__view-all-games, .page-index__view-all-promotions, .page-index__view-all-faq {
  text-align: center;
  margin-top: 40px;
}

.page-index__download-section {
  background-color: #F5F5F5;
}

.page-index__download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__download-text {
  text-align: left;
}

.page-index__download-text p {
  margin-bottom: 20px;
  color: #333333;
}

.page-index__download-subtitle {
  font-size: 1.3em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index__download-steps, .page-index__download-benefits {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-index__download-steps li {
  counter-increment: step-counter;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #333333;
}

.page-index__download-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FCBC45;
  color: #000000;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-index__download-benefits li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #333333;
}

.page-index__download-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #FCBC45;
  font-weight: bold;
}

.page-index__download-image-wrapper {
  text-align: center;
}

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

.page-index__security-section {
  background-color: #FFFFFF;
}

.page-index__security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.page-index__security-text p {
  margin-bottom: 20px;
  color: #333333;
}

.page-index__why-choose-section {
  background-color: #F8F8F8;
}

.page-index__advantage-card {
  text-align: left;
  padding: 20px;
  background-color: #FFFFFF;
  border: 1px solid #EEEEEE;
}

.page-index__advantage-title {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__advantage-description {
  color: #555555;
}

.page-index__testimonials-section {
  background-color: #FFFFFF;
}

.page-index__testimonial-card {
  text-align: left;
  font-style: italic;
  color: #333333;
  background-color: #F8F8F8;
  border: 1px solid #EEEEEE;
}

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

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

.page-index__faq-section {
  background-color: #F5F5F5;
}

.page-index__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-index__faq-question {
  font-size: 1.2em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__faq-answer {
  color: #555555;
}

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.3em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__about-grid, .page-index__download-content, .page-index__security-content {
    grid-template-columns: 1fr;
  }
  .page-index__about-image-wrapper, .page-index__download-image-wrapper, .page-index__security-image {
    order: -1; /* Image above text on mobile */
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    padding: 12px 20px;
  }
  .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__advantages-grid, .page-index__testimonials-grid {
    grid-template-columns: 1fr;
  }
  .page-index__about-section, .page-index__games-section, .page-index__download-section, .page-index__promotions-section, .page-index__security-section, .page-index__why-choose-section, .page-index__testimonials-section, .page-index__faq-section, .page-index__cta-section {
    padding: 40px 0;
  }
  /* Mobile content image constraint */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__about-image, .page-index__game-card-image, .page-index__promo-card-image, .page-index__download-image, .page-index__security-image {
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
    width: auto; /* Allow auto width while respecting max-width */
  }
  .page-index__hero-container {
    padding: 20px;
  }
}

/* Ensure all content images within .page-index are at least 200px wide/high */
.page-index img:not(.page-index__hero-image) {
  min-width: 200px; 
  min-height: 200px;
  object-fit: cover; /* Maintain aspect ratio and cover area */
}

/* Overriding any potential smaller image sizes for content area */
.page-index__game-card-image, .page-index__promo-card-image, .page-index__about-image, .page-index__download-image, .page-index__security-image {
  width: 100%; /* Make sure they fill their container */
  height: auto;
  max-width: none; /* Reset max-width if inherited from smaller value */
}