/* style/resources-platform-advantages.css */
.page-resources-platform-advantages {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

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

.page-resources-platform-advantages__hero-section {
  position: relative;
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0 60px;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

.page-resources-platform-advantages__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for H1 as per brand rules */
  line-height: 1.2;
}

.page-resources-platform-advantages__intro-text {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-platform-advantages__btn-primary {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00; /* Custom color for primary button text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources-platform-advantages__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-resources-platform-advantages__advantages-grid,
.page-resources-platform-advantages__faq-section {
  background-color: #000000; /* Using body background for consistency */
  color: #ffffff;
  padding: 60px 0;
}

.page-resources-platform-advantages__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-resources-platform-advantages__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #cccccc;
}

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

.page-resources-platform-advantages__grid-item {
  display: flex;
  flex-direction: column;
}

.page-resources-platform-advantages__card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-resources-platform-advantages__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-platform-advantages__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

.page-resources-platform-advantages__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

.page-resources-platform-advantages__card-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
  color: #cccccc;
}

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

.page-resources-platform-advantages__btn-secondary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-resources-platform-advantages__video-section {
  background-color: #000000; /* Using body background for consistency */
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-resources-platform-advantages__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.page-resources-platform-advantages__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
}

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

.page-resources-platform-advantages__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources-platform-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-resources-platform-advantages__faq-question:hover {
  background-color: #005a2e;
}

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

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

.page-resources-platform-advantages__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  color: #cccccc;
}

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

.page-resources-platform-advantages__cta-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-resources-platform-advantages__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-platform-advantages__main-title {
    font-size: 2.8em;
  }
  .page-resources-platform-advantages__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-platform-advantages__hero-section {
    padding: 60px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-resources-platform-advantages__main-title {
    font-size: 2em;
  }
  .page-resources-platform-advantages__intro-text {
    font-size: 1.1em;
  }
  .page-resources-platform-advantages__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources-platform-advantages__advantages-grid,
  .page-resources-platform-advantages__video-section,
  .page-resources-platform-advantages__faq-section,
  .page-resources-platform-advantages__cta-section {
    padding: 40px 0;
  }
  .page-resources-platform-advantages__section-title {
    font-size: 1.8em;
  }
  .page-resources-platform-advantages__section-description {
    font-size: 1em;
  }
  .page-resources-platform-advantages__grid-items {
    grid-template-columns: 1fr;
  }
  .page-resources-platform-advantages__card {
    padding: 20px;
  }
  .page-resources-platform-advantages__card-title {
    font-size: 1.5em;
  }
  .page-resources-platform-advantages__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-resources-platform-advantages__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-resources-platform-advantages__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-platform-advantages__btn-primary,
  .page-resources-platform-advantages__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;
    padding-right: 15px;
  }
  .page-resources-platform-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-platform-advantages__section,
  .page-resources-platform-advantages__card,
  .page-resources-platform-advantages__container,
  .page-resources-platform-advantages__video-section,
  .page-resources-platform-advantages__video-container,
  .page-resources-platform-advantages__video-wrapper,
  .page-resources-platform-advantages__cta-buttons,
  .page-resources-platform-advantages__button-group,
  .page-resources-platform-advantages__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources-platform-advantages video,
  .page-resources-platform-advantages__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-platform-advantages__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
  }
}