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

:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --body-bg: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-index-platform-features {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--body-bg);
  line-height: 1.6;
}

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

/* Hero Section */
.page-index-platform-features__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles --header-offset, so small top padding here */
  overflow: hidden;
}

.page-index-platform-features__hero-image-wrapper {
  width: 100%;
  position: relative;
  /* Ensure image is not covered by text */
}

.page-index-platform-features__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-index-platform-features__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over the image, but not *on* it */
  background: linear-gradient(to top, var(--body-bg) 70%, transparent 100%);
  border-radius: 10px;
}

.page-index-platform-features__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-platform-features__description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary,
.page-index-platform-features__faq-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-index-platform-features__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-index-platform-features__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--primary-color), 0.4);
}

.page-index-platform-features__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index-platform-features__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(var(--primary-color), 0.2);
}

/* Section Titles */
.page-index-platform-features__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-index-platform-features__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--gold-color);
  border-radius: 2px;
}

.page-index-platform-features__paragraph {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

/* Intro Section */
.page-index-platform-features__intro-section {
  padding: 60px 0;
  background-color: var(--deep-green-color);
}

/* Features Grid */
.page-index-platform-features__features-grid {
  padding: 80px 0;
}

.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: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-platform-features__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(var(--glow-color), 0.3);
}

.page-index-platform-features__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-index-platform-features__feature-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-index-platform-features__feature-description {
  font-size: 1rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Promotions Section */
.page-index-platform-features__promotions-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

.page-index-platform-features__promotions-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index-platform-features__promotion-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-index-platform-features__promotion-text {
  flex: 1;
}

/* Support Section */
.page-index-platform-features__support-section {
  padding: 80px 0;
}

.page-index-platform-features__support-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index-platform-features__support-text {
  flex: 1;
}

.page-index-platform-features__support-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* FAQ Section */
.page-index-platform-features__faq-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

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

.page-index-platform-features__faq-item {
  background-color: var(--card-bg);
  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: 20px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--border-color);
  border-bottom: 1px solid var(--divider-color);
  list-style: none; /* For details/summary */
}

.page-index-platform-features__faq-item[open] .page-index-platform-features__faq-question {
  border-bottom: 1px solid var(--divider-color);
}

.page-index-platform-features__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-index-platform-features__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-color);
  margin-left: 15px;
}

.page-index-platform-features__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-index-platform-features__faq-link {
  color: var(--gold-color);
  text-decoration: underline;
  margin-top: 10px;
  display: inline-block;
}

.page-index-platform-features__faq-link:hover {
  color: var(--glow-color);
}

/* Bottom CTA */
.page-index-platform-features__cta-bottom {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color);
}

.page-index-platform-features__cta-bottom .page-index-platform-features__section-title {
  color: #ffffff;
}

.page-index-platform-features__cta-bottom .page-index-platform-features__section-title::after {
  background-color: #ffffff;
}

.page-index-platform-features__cta-bottom .page-index-platform-features__paragraph {
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-index-platform-features__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* --- Responsive Styles --- */

/* All images basic responsive */
.page-index-platform-features img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All video basic responsive */
.page-index-platform-features video,
.page-index-platform-features__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* All video containers basic responsive */
.page-index-platform-features__video-section,
.page-index-platform-features__video-container,
.page-index-platform-features__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* All buttons basic responsive */
.page-index-platform-features__cta-button,
.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary,
.page-index-platform-features a[class*="button"],
.page-index-platform-features a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button containers basic responsive */
.page-index-platform-features__cta-buttons,
.page-index-platform-features__button-group,
.page-index-platform-features__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 992px) {
  .page-index-platform-features__hero-content {
    margin-top: -50px;
    padding: 30px 15px;
  }

  .page-index-platform-features__promotions-content,
  .page-index-platform-features__support-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index-platform-features__promotion-image,
  .page-index-platform-features__support-image {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page-index-platform-features__support-content .page-index-platform-features__support-image {
    order: -1; /* Image above text for support section */
  }
}

@media (max-width: 768px) {
  .page-index-platform-features {
    font-size: 15px;
  }

  .page-index-platform-features__hero-section {
    padding-bottom: 40px;
  }

  .page-index-platform-features__hero-content {
    margin-top: -30px;
    padding: 20px 10px;
  }

  .page-index-platform-features__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .page-index-platform-features__description {
    font-size: 1rem;
  }

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

  .page-index-platform-features__btn-primary,
  .page-index-platform-features__btn-secondary,
  .page-index-platform-features a[class*="button"],
  .page-index-platform-features a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-index-platform-features__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-index-platform-features__intro-section,
  .page-index-platform-features__features-grid,
  .page-index-platform-features__promotions-section,
  .page-index-platform-features__support-section,
  .page-index-platform-features__faq-section,
  .page-index-platform-features__cta-bottom {
    padding: 40px 0;
  }

  .page-index-platform-features__container {
    padding: 0 15px;
  }

  .page-index-platform-features__feature-card {
    padding: 20px;
  }

  .page-index-platform-features__feature-icon {
    max-width: 200px;
  }

  .page-index-platform-features__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-index-platform-features__faq-answer {
    padding: 0 15px 15px 15px;
  }

  /* Mobile image forced adaptation */
  .page-index-platform-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile video forced adaptation */
  .page-index-platform-features video,
  .page-index-platform-features__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index-platform-features__video-section,
  .page-index-platform-features__video-container,
  .page-index-platform-features__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-platform-features__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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

@media (max-width: 480px) {
  .page-index-platform-features__hero-content {
    margin-top: -10px;
  }
}