.page-resources-platform-features {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff);
}

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

.page-resources-platform-features__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

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

.page-resources-platform-features__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-resources-platform-features__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-platform-features__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-platform-features__btn-primary {
  display: inline-block;
  background-color: #017439; /* Main color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-resources-platform-features__btn-primary:hover {
  background-color: #005f2e;
}

.page-resources-platform-features__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
  font-size: 1.1em;
}

.page-resources-platform-features__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-resources-platform-features__intro-section,
.page-resources-platform-features__product-showcase,
.page-resources-platform-features__support-section,
.page-resources-platform-features__conclusion-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-resources-platform-features__features-section,
.page-resources-platform-features__tech-security-section,
.page-resources-platform-features__mobile-app-section,
.page-resources-platform-features__faq-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background - Main color */
  color: #ffffff;
}

.page-resources-platform-features__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-resources-platform-features__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources-platform-features__feature-grid,
.page-resources-platform-features__product-grid,
.page-resources-platform-features__tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-platform-features__feature-card,
.page-resources-platform-features__product-card,
.page-resources-platform-features__tech-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
}

.page-resources-platform-features__feature-card:hover,
.page-resources-platform-features__product-card:hover,
.page-resources-platform-features__tech-item:hover {
  transform: translateY(-5px);
}

.page-resources-platform-features__feature-image,
.page-resources-platform-features__product-image,
.page-resources-platform-features__tech-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.page-resources-platform-features__card-title,
.page-resources-platform-features__tech-title {
  font-size: 1.5em;
  margin: 20px 20px 10px 20px;
  color: #017439;
}

.page-resources-platform-features__card-title a,
.page-resources-platform-features__tech-title a {
  color: #017439;
  text-decoration: none;
}

.page-resources-platform-features__card-title a:hover,
.page-resources-platform-features__tech-title a:hover {
  text-decoration: underline;
}

.page-resources-platform-features__card-description,
.page-resources-platform-features__tech-description {
  font-size: 1em;
  padding: 0 20px 20px 20px;
  color: #555555;
  flex-grow: 1; /* Allow description to take available space */
}

.page-resources-platform-features__support-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-platform-features__mobile-app-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-resources-platform-features__mobile-app-text {
  flex: 1;
  text-align: left;
}

.page-resources-platform-features__mobile-app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-resources-platform-features__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-resources-platform-features__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-platform-features__faq-item {
  background-color: #005f2e; /* Darker green for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.page-resources-platform-features__faq-question:hover {
  background-color: #005f2e;
}

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

.page-resources-platform-features__faq-item.active .page-resources-platform-features__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-resources-platform-features__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #005f2e; /* Darker green for answer background */
  color: #f0f0f0;
}

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

.page-resources-platform-features__faq-answer p {
  margin-bottom: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-resources-platform-features__hero-title {
    font-size: 2.8em;
  }
  .page-resources-platform-features__section-title {
    font-size: 2em;
  }
  .page-resources-platform-features__mobile-app-flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources-platform-features__mobile-app-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-resources-platform-features__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources-platform-features__hero-title {
    font-size: 2.2em;
  }
  .page-resources-platform-features__hero-description {
    font-size: 1em;
  }
  .page-resources-platform-features__section-title {
    font-size: 1.8em;
  }
  .page-resources-platform-features__paragraph,
  .page-resources-platform-features__card-description,
  .page-resources-platform-features__tech-description {
    font-size: 0.95em;
  }
  .page-resources-platform-features__feature-grid,
  .page-resources-platform-features__product-grid,
  .page-resources-platform-features__tech-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-platform-features__feature-image,
  .page-resources-platform-features__product-image,
  .page-resources-platform-features__tech-image {
    height: 200px;
  }
  .page-resources-platform-features__feature-card,
  .page-resources-platform-features__product-card,
  .page-resources-platform-features__tech-item {
    margin: 0 15px;
  }
  .page-resources-platform-features__container {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-resources-platform-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-platform-features__feature-image,
  .page-resources-platform-features__product-image,
  .page-resources-platform-features__tech-image,
  .page-resources-platform-features__mobile-app-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  /* Mobile button responsiveness */
  .page-resources-platform-features__btn-primary,
  .page-resources-platform-features__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }
  .page-resources-platform-features__hero-content .page-resources-platform-features__btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* Ensure content containers are also responsive */
  .page-resources-platform-features__intro-section,
  .page-resources-platform-features__features-section,
  .page-resources-platform-features__product-showcase,
  .page-resources-platform-features__tech-security-section,
  .page-resources-platform-features__support-section,
  .page-resources-platform-features__mobile-app-section,
  .page-resources-platform-features__conclusion-section,
  .page-resources-platform-features__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-resources-platform-features__mobile-app-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}