/* style/index-platform-features.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #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;
  background-color: var(--background-color);
  color: var(--text-main-color);
  line-height: 1.6;
}

.page-index-platform-features__dark-section {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

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

.page-index-platform-features__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0;
  overflow: hidden;
}

.page-index-platform-features__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-index-platform-features__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image slightly */
  z-index: 1;
}

.page-index-platform-features__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-index-platform-features__hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

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

.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary,
.page-index-platform-features__btn-tertiary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal;
}

.page-index-platform-features__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-index-platform-features__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-index-platform-features__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--background-color);
  transform: translateY(-3px);
}

.page-index-platform-features__section {
  padding: 80px 0;
  text-align: center;
}

.page-index-platform-features__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main-color);
  margin-bottom: 20px;
  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(--primary-color);
  border-radius: 2px;
}

.page-index-platform-features__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

.page-index-platform-features__feature-card,
.page-index-platform-features__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-index-platform-features__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

.page-index-platform-features__card-title {
  font-size: 1.5rem;
  color: var(--text-main-color);
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-index-platform-features__features-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-index-platform-features__highlight-item {
  text-align: center;
  overflow: hidden;
}

.page-index-platform-features__highlight-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}

.page-index-platform-features__highlight-title {
  font-size: 1.8rem;
  color: var(--text-main-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index-platform-features__highlight-text {
  font-size: 1.05rem;
  color: var(--text-secondary-color);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index-platform-features__btn-tertiary {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
}

.page-index-platform-features__btn-tertiary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-index-platform-features__transaction-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-platform-features__faq-list {
  margin-top: 50px;
  text-align: left;
}

.page-index-platform-features__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-index-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-index-platform-features__faq-question::-webkit-details-marker {
  display: none;
}

.page-index-platform-features__faq-question:hover {
  background-color: var(--primary-color);
}

.page-index-platform-features__faq-qtext {
  flex-grow: 1;
}

.page-index-platform-features__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  width: 20px;
  text-align: center;
}

.page-index-platform-features__faq-answer {
  padding: 20px 25px;
  background-color: var(--card-bg);
  color: var(--text-secondary-color);
  font-size: 1rem;
  line-height: 1.7;
}

.page-index-platform-features__cta-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

.page-index-platform-features__cta-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index-platform-features__cta-description {
  font-size: 1.2rem;
  color: var(--text-main-color);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-index-platform-features__hero-content {
    margin-top: -80px;
    padding: 20px;
  }

  .page-index-platform-features__hero-title {
    font-size: 2.2rem;
  }

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

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

  .page-index-platform-features__btn-primary,
  .page-index-platform-features__btn-secondary,
  .page-index-platform-features__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index-platform-features__cta-buttons,
  .page-index-platform-features__button-group,
  .page-index-platform-features__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-index-platform-features__hero-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-index-platform-features__section {
    padding: 40px 0;
  }

  .page-index-platform-features__section-title {
    font-size: 1.8rem;
  }

  .page-index-platform-features__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-index-platform-features__features-grid,
  .page-index-platform-features__features-highlight-grid,
  .page-index-platform-features__transaction-info {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index-platform-features__highlight-image {
    height: 200px;
  }

  .page-index-platform-features__card-title,
  .page-index-platform-features__highlight-title {
    font-size: 1.3rem;
  }

  .page-index-platform-features__card-text,
  .page-index-platform-features__highlight-text {
    font-size: 0.9rem;
  }

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

  .page-index-platform-features__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }

  .page-index-platform-features__cta-title {
    font-size: 2rem;
  }

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

  .page-index-platform-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index-platform-features__section,
  .page-index-platform-features__card,
  .page-index-platform-features__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-platform-features__hero-section {
    padding-top: 10px !important; /* body đã承担 --header-offset */
  }
}