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

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

.page-index__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__btn--primary {
  background-color: #FFD700; /* Main color */
  color: #8B0000; /* Auxiliary color for text */
  border: 2px solid #FFD700;
}

.page-index__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-index__btn--secondary:hover {
  background-color: #8B0000;
  color: #FFD700;
  transform: translateY(-2px);
}

.page-index__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-index__btn--large {
  padding: 15px 30px;
  font-size: 1.2em;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  text-align: center;
  background-color: #1a1a1a; /* Dark background for hero */
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
}

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

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

.page-index__hero-buttons .page-index__btn {
  margin: 0 10px;
}

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

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

.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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__game-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-index__cta-buttons {
  text-align: center;
  margin-top: 20px;
}

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

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

.page-index__promo-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__promo-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Security & Responsible Gaming Section */
.page-index__security-rg-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

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

.page-index__info-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding: 30px 20px;
}

.page-index__info-image {
  width: 200px; /* Minimum 200px */
  height: 200px; /* Minimum 200px */
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
}

.page-index__info-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-index__info-text {
  font-size: 1em;
  color: #555555;
}

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

.page-index__app-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index__app-image {
  width: 400px; /* Display width for the image */
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

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

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

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

.page-index__testimonial-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
}

.page-index__testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  color: #555555;
}

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

/* CTA Banner */
.page-index__cta-banner {
  background-color: #8B0000; /* Auxiliary color for banner */
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

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

.page-index__cta-title {
  font-size: 2.8em;
  color: #FFD700; /* Main color for CTA title */
  margin-bottom: 20px;
}

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

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px);
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons .page-index__btn {
    margin: 10px 0;
    display: block;
    width: 100%;
  }
  .page-index__game-grid,
  .page-index__promo-cards,
  .page-index__info-cards,
  .page-index__testimonial-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-image,
  .page-index__promo-image {
    height: 200px;
  }
  .page-index__app-download {
    flex-direction: column;
  }
  .page-index__app-image {
    width: 100%;
    max-width: 300px;
  }
  .page-index__app-buttons {
    flex-direction: column;
    width: 100%;
  }
  .page-index__app-buttons .page-index__btn {
    width: 100%;
  }
  .page-index__info-image {
    width: 200px; /* Ensure min 200px */
    height: 200px; /* Ensure min 200px */
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  /* Mobile content area images must be responsive */
  .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__cta-title {
    font-size: 1.8em;
  }
}