.page-index {
  color: #333333; /* Default text color for light body background */
}

.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 60px;
  background-color: #f0f0f0;
  overflow: hidden;
}

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image container */
  margin-top: 20px;
}

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

.page-index__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.5em;
  color: #8B0000; /* Auxiliary color for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

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

.page-index__btn--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-index__btn--dark {
  background-color: #333333;
  color: #FFD700;
  border-color: #333333;
}

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

.page-index__btn--transparent {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-index__btn--transparent:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #8B0000;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

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

.page-index__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: center;
}

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

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

.page-index__games-section {
  background-color: #1a1a1a; /* Dark background for game section */
  color: #f0f0f0;
}

.page-index__bg-dark {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-index__bg-primary {
  background-color: #FFD700;
  color: #8B0000;
}

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

.page-index__game-card {
  background-color: #333333;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-index__game-card-title a:hover {
  text-decoration: underline;
}

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

.page-index__promo-section {
  background-color: #ffffff;
}

.page-index__promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.page-index__promo-image {
  flex: 1 1 500px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-index__promo-details {
  flex: 1 1 400px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 15px;
}

.page-index__promo-text {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #444444;
}

.page-index__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.page-index__feature-card {
  background-color: #333333;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-index__feature-card-image {
  width: 250px; /* Display width */
  height: 187px; /* Display height, maintaining aspect ratio for 400x300 */
  object-fit: cover;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 10px;
}

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

.page-index__feature-card-description {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.6;
}

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

.page-index__why-choose-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.page-index__why-choose-us-item {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__why-choose-us-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__why-choose-us-item-title {
  font-size: 1.6em;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-index__why-choose-us-item-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

.page-index__cta-section {
  text-align: center;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }

  .page-index__section-title {
    font-size: 2.2em;
  }

  .page-index__game-card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .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__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-index__section-padding {
    padding: 60px 15px;
  }

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__section-text {
    font-size: 1em;
  }

  .page-index__game-categories, .page-index__security-features, .page-index__why-choose-us-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__promo-content {
    flex-direction: column;
  }

  .page-index__promo-image {
    max-width: 100%;
  }

  .page-index__promo-details {
    padding: 15px;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure images in content area are responsive and not smaller than 200px */
  .page-index img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }

  .page-index__game-card-image, .page-index__feature-card-image {
    height: auto; /* Allow height to adjust for responsiveness */
    min-height: 200px; /* Enforce minimum height */
    max-height: 300px; /* Prevent excessive height on small screens */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }

  .page-index__section-title {
    font-size: 1.6em;
  }

  .page-index__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
}