/* style/index-platform-features.css */

/* Base styles and container */
.page-index-platform-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#1c1c1c) */
}

.page-index-platform-features__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-index-platform-features__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index-platform-features__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-index-platform-features__btn-primary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-index-platform-features__btn-primary:hover {
  background-color: #005a2c;
  border-color: #005a2c;
}

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

.page-index-platform-features__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-index-platform-features__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Hero Section */
.page-index-platform-features__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

.page-index-platform-features__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-index-platform-features__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: -1;
}

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

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

.page-index-platform-features__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-index-platform-features__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Video Section */
.page-index-platform-features__video-section {
  padding: 80px 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.page-index-platform-features__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
}

.page-index-platform-features__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-index-platform-features__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Features Grid */
.page-index-platform-features__features-grid {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color for dark background */
}

.page-index-platform-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-platform-features__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-index-platform-features__feature-icon {
  width: 100%;
  max-width: 250px; /* Example size, adjust as needed */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum image size */
  min-width: 200px;
}

.page-index-platform-features__feature-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-platform-features__feature-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Game Showcase */
.page-index-platform-features__game-showcase {
  padding: 80px 0;
  background-color: #1c1c1c; /* Body background color */
}

.page-index-platform-features__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index-platform-features__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index-platform-features__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Enforce minimum image size */
  min-width: 200px;
}

.page-index-platform-features__game-title {
  font-size: 1.5em;
  color: #ffffff;
  padding: 15px 20px 5px;
  font-weight: bold;
}

.page-index-platform-features__game-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-platform-features__game-title a:hover {
  color: #017439;
}

.page-index-platform-features__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* Security and Fairness */
.page-index-platform-features__security-fairness {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color for dark background */
}

.page-index-platform-features__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-index-platform-features__security-text {
  flex: 1;
  min-width: 300px;
}

.page-index-platform-features__security-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-index-platform-features__security-image {
  flex: 1;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum image size */
  min-width: 200px;
}

/* Promotions */
.page-index-platform-features__promotions {
  padding: 80px 0;
  background-color: #1c1c1c; /* Body background color */
}

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

.page-index-platform-features__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index-platform-features__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Enforce minimum image size */
  min-width: 200px;
}

.page-index-platform-features__promo-title {
  font-size: 1.5em;
  color: #ffffff;
  padding: 15px 20px 5px;
  font-weight: bold;
}

.page-index-platform-features__promo-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-platform-features__promo-title a:hover {
  color: #017439;
}

.page-index-platform-features__promo-text {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index-platform-features__cta-center {
  text-align: center;
}

/* User Experience */
.page-index-platform-features__user-experience {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color for dark background */
}

.page-index-platform-features__experience-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap-reverse; /* Image on right, text on left for desktop */
}

.page-index-platform-features__experience-image {
  flex: 1;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum image size */
  min-width: 200px;
}

.page-index-platform-features__experience-text {
  flex: 1;
  min-width: 300px;
}

.page-index-platform-features__experience-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-index-platform-features__faq {
  padding: 80px 0;
  background-color: #1c1c1c; /* Body background color */
}

.page-index-platform-features__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-index-platform-features__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-index-platform-features__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-index-platform-features__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-index-platform-features__faq-item.active .page-index-platform-features__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

.page-index-platform-features__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-index-platform-features__faq-item.active .page-index-platform-features__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-index-platform-features__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}