.page-home-platform-features {
  padding-top: var(--header-offset, 120px);
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-home-platform-features__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  background-color: #003366; /* Main brand color for hero background */
  color: #ffffff;
}

.page-home-platform-features__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-home-platform-features__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-home-platform-features__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-home-platform-features__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle background effect */
}

.page-home-platform-features__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home-platform-features__section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eeeeee;
}

.page-home-platform-features__section:nth-of-type(even) {
  background-color: #ffffff;
}

.page-home-platform-features__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-home-platform-features__container--center {
    text-align: center;
}

.page-home-platform-features__section-title {
  font-size: 2.5em;
  color: #003366;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-home-platform-features__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

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

.page-home-platform-features__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-home-platform-features__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-home-platform-features__text-content {
  flex: 1;
}

.page-home-platform-features__text-content p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

.page-home-platform-features__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-home-platform-features__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: block; /* Ensure it's a block element */
  min-width: 200px;
  min-height: 200px;
}

.page-home-platform-features__game-grid, .page-home-platform-features__promo-grid, .page-home-platform-features__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-home-platform-features__game-card, .page-home-platform-features__promo-card, .page-home-platform-features__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home-platform-features__game-card:hover, .page-home-platform-features__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-home-platform-features__game-card img, .page-home-platform-features__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-home-platform-features__card-title, .page-home-platform-features__feature-title {
  font-size: 1.5em;
  color: #003366;
  margin-bottom: 15px;
}

.page-home-platform-features__card-description {
  color: #666666;
  margin-bottom: 20px;
}

.page-home-platform-features__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  font-size: 1.05em;
}

.page-home-platform-features__button--primary {
  background-color: #FFD700;
  color: #003366;
  border: 2px solid #FFD700;
}

.page-home-platform-features__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-home-platform-features__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-home-platform-features__button--secondary:hover {
  background-color: #FFD700;
  color: #003366;
}

.page-home-platform-features__button--small {
    padding: 8px 18px;
    font-size: 0.9em;
}

.page-home-platform-features__button--large {
    padding: 15px 35px;
    font-size: 1.2em;
}

.page-home-platform-features__link {
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-home-platform-features__link:hover {
  color: #FFD700;
  text-decoration: underline;
}

.page-home-platform-features__cta-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.page-home-platform-features__cta-bottom p {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #003366;
  font-weight: bold;
}

.page-home-platform-features__support-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-start;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-home-platform-features__hero-title {
    font-size: 3em;
  }
  .page-home-platform-features__hero-description {
    font-size: 1.1em;
  }
  .page-home-platform-features__section-title {
    font-size: 2em;
  }
  .page-home-platform-features__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-home-platform-features__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-home-platform-features__support-links {
      justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-home-platform-features__hero-title {
    font-size: 2.5em;
  }
  .page-home-platform-features__hero-description {
    font-size: 1em;
  }
  .page-home-platform-features__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-home-platform-features__button {
    width: 100%;
  }
  .page-home-platform-features__section {
    padding: 50px 15px;
  }
  .page-home-platform-features__section-title {
    font-size: 1.8em;
  }
  .page-home-platform-features__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-home-platform-features__game-grid, .page-home-platform-features__promo-grid, .page-home-platform-features__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  /* Ensure content area images do not overflow on mobile */
  .page-home-platform-features__image-wrapper img,
  .page-home-platform-features__game-card img,
  .page-home-platform-features__promo-card img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
  }
  .page-home-platform-features__support-links {
      flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-home-platform-features__hero-title {
    font-size: 2em;
  }
  .page-home-platform-features__hero-description {
    font-size: 0.9em;
  }
  .page-home-platform-features__hero-actions {
    gap: 10px;
  }
  .page-home-platform-features__section-title {
    font-size: 1.5em;
  }
  .page-home-platform-features__section-intro {
    font-size: 0.9em;
  }
}