.page-index-core-features {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

.page-index-core-features__hero-section {
  background-color: #007bff;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-index-core-features__hero-content {
  max-width: 900px;
}

.page-index-core-features__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-index-core-features__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

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

.page-index-core-features__hero-image-container {
  margin-top: 40px;
  width: 100%;
  max-width: 1200px;
}

.page-index-core-features__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index-core-features__button--primary {
  background-color: #28a745;
  color: #ffffff;
  border: 2px solid #28a745;
}

.page-index-core-features__button--primary:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.page-index-core-features__button--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-index-core-features__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-index-core-features__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 30px;
  background-color: #007bff;
  color: #ffffff;
  border: none;
}

.page-index-core-features__button--small:hover {
  background-color: #0056b3;
}

.page-index-core-features__section-title {
  font-size: 2.2em;
  color: #007bff;
  text-align: center;
  margin-bottom: 20px;
}

.page-index-core-features__section-intro {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 1.1em;
  color: #555555;
}

.page-index-core-features__features-overview,
.page-index-core-features__game-categories,
.page-index-core-features__why-choose-us {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-index-core-features__feature-grid,
.page-index-core-features__game-grid,
.page-index-core-features__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-core-features__feature-card,
.page-index-core-features__game-card,
.page-index-core-features__benefit-item {
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-core-features__feature-card:hover,
.page-index-core-features__game-card:hover,
.page-index-core-features__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-index-core-features__feature-card-image,
.page-index-core-features__game-card-image,
.page-index-core-features__benefit-icon {
  width: 100%;
  max-width: 400px; /* Ensure images are not smaller than 200px */
  height: auto;
  min-height: 200px; /* Enforce minimum height */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

.page-index-core-features__feature-card-title,
.page-index-core-features__game-card-title,
.page-index-core-features__benefit-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-index-core-features__feature-card-description,
.page-index-core-features__game-card-description,
.page-index-core-features__benefit-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-core-features__cta-section {
  background-color: #007bff;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  margin: 40px auto;
  border-radius: 10px;
  max-width: 1200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-core-features__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-index-core-features__hero-title {
    font-size: 2em;
  }

  .page-index-core-features__hero-description {
    font-size: 1em;
  }

  .page-index-core-features__section-title {
    font-size: 1.8em;
  }

  .page-index-core-features__section-intro {
    font-size: 0.95em;
  }

  .page-index-core-features__button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-index-core-features__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-core-features__feature-grid,
  .page-index-core-features__game-grid,
  .page-index-core-features__benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image overflow prevention */
  .page-index-core-features img {
    max-width: 100%;
    height: auto;
  }

  .page-index-core-features__feature-card-image,
  .page-index-core-features__game-card-image,
  .page-index-core-features__benefit-icon {
    max-width: 100%; /* Ensure images don't overflow */
    min-width: 200px; /* Maintain minimum size */
    min-height: 150px; /* Adjust min height for mobile if needed, but keep >= 200px if possible */
  }

  .page-index-core-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-index-core-features__hero-title {
    font-size: 1.6em;
  }

  .page-index-core-features__section-title {
    font-size: 1.5em;
  }

  .page-index-core-features__button {
    width: 100%;
    box-sizing: border-box;
  }
}