.page-index-core-games {
  background-color: #100224; /* Deep purple-black background */
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for the first section, body handles --header-offset */
}

.page-index-core-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #017439, #004d2e);
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-index-core-games__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 20px;
}

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

.page-index-core-games__hero-content {
  max-width: 900px;
  padding: 0 15px;
}

.page-index-core-games__hero-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF; /* White for H1 */
  letter-spacing: 0.5px;
}

.page-index-core-games__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: #E0E0E0;
}

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

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

.page-index-core-games__button--register {
  background-color: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register font color */
  border: 2px solid #C30808;
}

.page-index-core-games__button--register:hover {
  background-color: #e00a0a;
  transform: translateY(-2px);
}

.page-index-core-games__button--login {
  background-color: #C30808; /* Custom Login color */
  color: #FFFF00; /* Custom Login font color */
  border: 2px solid #C30808;
}

.page-index-core-games__button--login:hover {
  background-color: #e00a0a;
  transform: translateY(-2px);
}

.page-index-core-games__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #FFFFFF; /* White for H2 */
  position: relative;
  padding-bottom: 10px;
}

.page-index-core-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439; /* Primary color as underline */
  border-radius: 2px;
}

.page-index-core-games__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: #E0E0E0;
}

.page-index-core-games__intro-section,
.page-index-core-games__game-categories,
.page-index-core-games__why-choose,
.page-index-core-games__promotions-section,
.page-index-core-games__cta-section {
  padding: 60px 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
}

.page-index-core-games__game-categories {
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
}

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

.page-index-core-games__category-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-core-games__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-index-core-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  object-fit: cover;
  border-bottom: 1px solid #3a3a3a;
  margin-bottom: 15px;
}

.page-index-core-games__card-title {
  font-size: 1.5em;
  color: #FFFFFF;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index-core-games__card-description {
  font-size: 0.95em;
  color: #B0B0B0;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-index-core-games__button--view-detail {
  background-color: #017439; /* Primary color */
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9em;
  margin-top: auto; /* Push button to bottom */
}

.page-index-core-games__button--view-detail:hover {
  background-color: #005f2b;
  transform: translateY(-2px);
}

.page-index-core-games__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.page-index-core-games__advantage-item {
  background-color: #2a2a2a;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.page-index-core-games__advantage-item:hover {
  transform: translateY(-5px);
}

.page-index-core-games__advantage-icon {
  width: 100px; /* Ensure min 200px display width */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index-core-games__advantage-title {
  font-size: 1.4em;
  color: #017439; /* Primary color for advantage titles */
  margin-bottom: 10px;
}

.page-index-core-games__advantage-description {
  font-size: 0.95em;
  color: #B0B0B0;
}

.page-index-core-games__button--promotions {
  background-color: #017439; /* Primary color */
  color: #FFFFFF;
  border: none;
  display: block;
  margin: 40px auto 0 auto;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.1em;
}

.page-index-core-games__button--promotions:hover {
  background-color: #005f2b;
  transform: translateY(-2px);
}

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

.page-index-core-games__button--register-cta,
.page-index-core-games__button--download-cta {
  background-color: #C30808; /* Custom Register/Login color */
  color: #FFFF00; /* Custom Register/Login font color */
  border: 2px solid #C30808;
  padding: 15px 35px;
  font-size: 1.1em;
}

.page-index-core-games__button--register-cta:hover,
.page-index-core-games__button--download-cta:hover {
  background-color: #e00a0a;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-index-core-games__hero-section {
    padding: 30px 15px;
  }

  .page-index-core-games__hero-title {
    font-size: clamp(2em, 7vw, 2.5em);
  }

  .page-index-core-games__hero-description {
    font-size: clamp(0.9em, 3vw, 1em);
  }

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

  .page-index-core-games__button {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-index-core-games__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

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

  .page-index-core-games__intro-section,
  .page-index-core-games__game-categories,
  .page-index-core-games__why-choose,
  .page-index-core-games__promotions-section,
  .page-index-core-games__cta-section {
    padding: 40px 15px;
  }

  .page-index-core-games__category-grid {
    grid-template-columns: 1fr;
  }

  .page-index-core-games__card-image {
    height: 180px;
  }

  .page-index-core-games__advantages-grid {
    grid-template-columns: 1fr;
  }

  .page-index-core-games__advantage-icon {
    width: 150px; /* Ensure min 200px display width for content images */
    height: 150px;
  }

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

  .page-index-core-games__button--register-cta,
  .page-index-core-games__button--download-cta {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Ensure all content images within .page-index-core-games are responsive and not too small */
  .page-index-core-games img {
    max-width: 100%;
    height: auto;
  }

  .page-index-core-games__advantage-item img {
    min-width: 200px; /* Explicitly ensure min-width for mobile */
    min- /* Adjust height to maintain aspect ratio */
    width: 100%;
    height: auto;
  }
}