/* style/index-game-features.css */
.page-index-game-features {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.page-index-game-features__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

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

.page-index-game-features__hero-container {
  position: relative;
  max-width: 1920px; /* Max width for hero content */
  margin: 0 auto;
}

.page-index-game-features__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
  border-radius: 10px;
  z-index: 10;
}

.page-index-game-features__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

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

.page-index-game-features__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

.page-index-game-features__button--primary {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

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

.page-index-game-features__button--secondary {
  background-color: #8B0000;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index-game-features__button--secondary:hover {
  background-color: #a30000;
  transform: translateY(-2px);
}

.page-index-game-features__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index-game-features__section {
  padding: 60px 20px;
  background-color: rgba(0, 0, 0, 0.2); /* Slightly lighter dark background for sections */
  margin-bottom: 20px;
}

.page-index-game-features__section:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.4);
}

.page-index-game-features__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-game-features__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-index-game-features__game-grid,
.page-index-game-features__tech-features,
.page-index-game-features__ux-features,
.page-index-game-features__promo-cards {
  display: grid;
  gap: 30px;
}

.page-index-game-features__game-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-index-game-features__game-card,
.page-index-game-features__tech-item,
.page-index-game-features__ux-item,
.page-index-game-features__promo-card {
  background-color: rgba(255, 255, 255, 0.08); /* Dark card background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-game-features__game-card:hover,
.page-index-game-features__tech-item:hover,
.page-index-game-features__ux-item:hover,
.page-index-game-features__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-index-game-features__game-card-image,
.page-index-game-features__tech-icon,
.page-index-game-features__ux-icon,
.page-index-game-features__promo-card-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  min-height: 200px; /* Minimum height for all content images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index-game-features__game-card-title,
.page-index-game-features__tech-item-title,
.page-index-game-features__ux-item-title,
.page-index-game-features__promo-card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index-game-features__game-card-description,
.page-index-game-features__tech-item-description,
.page-index-game-features__ux-item-description,
.page-index-game-features__promo-card-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-index-game-features__tech-features,
.page-index-game-features__ux-features {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index-game-features__promo-cards {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.page-index-game-features__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-game-features__hero-title {
    font-size: 3em;
  }
  .page-index-game-features__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-index-game-features__hero-section {
    padding: 40px 15px;
  }
  .page-index-game-features__hero-content {
    position: static;
    transform: none;
    padding: 20px 0;
    background: none; /* Remove background on small screens if hero image is full width */
    max-width: 100%;
  }
  .page-index-game-features__hero-image {
    display: none; /* Hide hero image on mobile to prioritize content */
  }
  .page-index-game-features__hero-title {
    font-size: 2.5em;
    margin-top: 0;
  }
  .page-index-game-features__hero-description {
    font-size: 1em;
  }
  .page-index-game-features__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-game-features__button {
    width: 100%;
    padding: 12px 25px;
  }
  .page-index-game-features__section {
    padding: 40px 15px;
  }
  .page-index-game-features__section-title {
    font-size: 1.8em;
  }
  .page-index-game-features__section-intro {
    font-size: 0.95em;
  }
  .page-index-game-features__game-grid,
  .page-index-game-features__tech-features,
  .page-index-game-features__ux-features,
  .page-index-game-features__promo-cards {
    grid-template-columns: 1fr;
  }
  .page-index-game-features__game-card-image,
  .page-index-game-features__tech-icon,
  .page-index-game-features__ux-icon,
  .page-index-game-features__promo-card-image {
    max-width: 100%;
    height: auto;
    min-height: 200px;
  }
  /* Ensure all content area images are responsive and do not cause overflow */
  .page-index-game-features img {
    max-width: 100%;
    height: auto;
  }
  .page-index-game-features {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-index-game-features__hero-title {
    font-size: 2em;
  }
  .page-index-game-features__section-title {
    font-size: 1.5em;
  }
  .page-index-game-features__game-card-title,
  .page-index-game-features__tech-item-title,
  .page-index-game-features__ux-item-title,
  .page-index-game-features__promo-card-title {
    font-size: 1.5em;
  }
}