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

/* Base styles for the page content */
.page-index-platform-features {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #FFFFFF; /* Ensure page background is white */
}

/* Section spacing and general layout */
.page-index-platform-features__section {
  padding: 60px 20px;
  text-align: center;
}

.page-index-platform-features__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-index-platform-features__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-index-platform-features__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add some padding for content */
}

.page-index-platform-features__section-title,
.page-index-platform-features__card-title,
.page-index-platform-features__cta-title,
.page-index-platform-features__faq-question span:first-child {
  color: inherit; /* Inherit color from parent section */
  font-weight: bold;
  margin-bottom: 20px;
}

.page-index-platform-features__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
}

.page-index-platform-features__section-paragraph {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-index-platform-features__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.page-index-platform-features__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

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

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

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

/* Call to Action Buttons */
.page-index-platform-features__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-index-platform-features__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-index-platform-features__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

/* Content Images */
.page-index-platform-features__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Features Grid */
.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 {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.page-index-platform-features__feature-card:hover {
  transform: translateY(-5px);
}

.page-index-platform-features__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-index-platform-features__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-index-platform-features__card-description {
  font-size: 1em;
  line-height: 1.7;
}

/* FAQ Section */
.page-index-platform-features__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-index-platform-features__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-index-platform-features__faq-question:hover {
  background-color: #f0f0f0;
}

.page-index-platform-features__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-index-platform-features__faq-item.active .page-index-platform-features__faq-toggle {
  transform: rotate(45deg);
}

.page-index-platform-features__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  font-size: 1em;
  line-height: 1.7;
}

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

/* Final CTA Section */
.page-index-platform-features__cta-section {
  position: relative;
  padding: 80px 20px;
  color: #ffffff;
}

.page-index-platform-features__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-index-platform-features__cta-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-index-platform-features__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
}

.page-index-platform-features__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-platform-features__hero-title {
    font-size: 3em;
  }
  .page-index-platform-features__hero-description {
    font-size: 1.2em;
  }
  .page-index-platform-features__section-title {
    font-size: 2em;
  }
  .page-index-platform-features__cta-title {
    font-size: 2.5em;
  }
}

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

  .page-index-platform-features__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-index-platform-features__hero-title {
    font-size: 2.5em;
  }

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

  .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 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-index-platform-features__features-grid {
    grid-template-columns: 1fr;
  }

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

  .page-index-platform-features__card-title {
    font-size: 1.4em;
  }

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

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

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

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

  .page-index-platform-features__faq-item.active .page-index-platform-features__faq-answer {
    padding: 10px 20px 20px;
  }

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

  /* Mobile container responsiveness */
  .page-index-platform-features__section,
  .page-index-platform-features__feature-card,
  .page-index-platform-features__cta-section,
  .page-index-platform-features__content-area,
  .page-index-platform-features__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  
  .page-index-platform-features__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Specific padding adjustments for sections */
  .page-index-platform-features__section {
    padding: 40px 0; /* Adjust section padding */
  }
  .page-index-platform-features__cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .page-index-platform-features__hero-title {
    font-size: 2em;
  }
  .page-index-platform-features__hero-description {
    font-size: 0.9em;
  }
  .page-index-platform-features__section-title {
    font-size: 1.6em;
  }
  .page-index-platform-features__cta-title {
    font-size: 1.8em;
  }
}