.page-index-core-advantages {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Body background from shared.css */
}

.page-index-core-advantages__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  overflow: hidden;
}

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

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

.page-index-core-advantages__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-index-core-advantages__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-index-core-advantages__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-index-core-advantages__section {
  padding: 60px 0;
  text-align: center;
}

.page-index-core-advantages__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #ffffff;
  line-height: 1.3;
}

.page-index-core-advantages__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #017439;
}

.page-index-core-advantages__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #e0e0e0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-core-advantages__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.page-index-core-advantages__btn-primary,
.page-index-core-advantages__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-core-advantages__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  margin: 10px;
}

.page-index-core-advantages__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-index-core-advantages__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  margin: 10px;
}

.page-index-core-advantages__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

/* Specific colors for Register/Login if needed, overriding general button styles */
.page-index-core-advantages__cta-button.page-index-core-advantages__btn-primary {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-index-core-advantages__cta-button.page-index-core-advantages__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-index-core-advantages__cta-button.page-index-core-advantages__btn-secondary {
  background-color: #1a1a2e; /* Dark background for contrast */
  border-color: #C30808;
  color: #FFFF00;
}

.page-index-core-advantages__cta-button.page-index-core-advantages__btn-secondary:hover {
  background-color: #0d0d1a;
  border-color: #a30606;
}

/* Section backgrounds and text colors */
.page-index-core-advantages__introduction,
.page-index-core-advantages__products,
.page-index-core-advantages__promotions,
.page-index-core-advantages__faq {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-index-core-advantages__security,
.page-index-core-advantages__user-experience,
.page-index-core-advantages__support,
.page-index-core-advantages__cta-final {
  background-color: #017439;
  color: #ffffff;
}

.page-index-core-advantages__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

/* Grid layouts */
.page-index-core-advantages__security-grid,
.page-index-core-advantages__ux-grid,
.page-index-core-advantages__support-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
  flex-wrap: wrap;
}

.page-index-core-advantages__security-grid .page-index-core-advantages__security-text,
.page-index-core-advantages__ux-grid .page-index-core-advantages__ux-text,
.page-index-core-advantages__support-grid .page-index-core-advantages__support-text {
  flex: 1;
  min-width: 300px;
}

.page-index-core-advantages__security-image-wrapper,
.page-index-core-advantages__ux-image-wrapper,
.page-index-core-advantages__support-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-core-advantages__security-grid .page-index-core-advantages__security-image,
.page-index-core-advantages__ux-grid .page-index-core-advantages__ux-image,
.page-index-core-advantages__support-grid .page-index-core-advantages__support-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

.page-index-core-advantages__card {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for dark body */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
}

.page-index-core-advantages__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-index-core-advantages__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-index-core-advantages__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #e0e0e0;
  flex-grow: 1;
}

/* FAQ styles */
.page-index-core-advantages__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-index-core-advantages__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index-core-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-index-core-advantages__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index-core-advantages__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-index-core-advantages__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-index-core-advantages__faq-item.active .page-index-core-advantages__faq-toggle {
  transform: rotate(45deg);
  color: #C30808; /* Red for active toggle */
}

.page-index-core-advantages__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-index-core-advantages__faq-item.active .page-index-core-advantages__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px;
}

.page-index-core-advantages__faq-text {
  margin-bottom: 0;
  font-size: 1em;
  line-height: 1.7;
}

/* CTA Final Section */
.page-index-core-advantages__cta-final {
  padding: 80px 0;
  background-color: #017439;
}

.page-index-core-advantages__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-index-core-advantages__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  gap: 20px;
}

.page-index-core-advantages__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-core-advantages__hero-title {
    font-size: 3em;
  }
  .page-index-core-advantages__section-title {
    font-size: 2em;
  }
  .page-index-core-advantages__security-grid,
  .page-index-core-advantages__ux-grid,
  .page-index-core-advantages__support-grid {
    flex-direction: column;
    text-align: center;
  }
  .page-index-core-advantages__security-grid .page-index-core-advantages__security-text,
  .page-index-core-advantages__ux-grid .page-index-core-advantages__ux-text,
  .page-index-core-advantages__support-grid .page-index-core-advantages__support-text {
    order: 2;
  }
  .page-index-core-advantages__security-image-wrapper,
  .page-index-core-advantages__ux-image-wrapper,
  .page-index-core-advantages__support-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }
}

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

  .page-index-core-advantages__hero-section {
    min-height: 400px;
  }

  .page-index-core-advantages__hero-title {
    font-size: 2em;
  }

  .page-index-core-advantages__hero-description {
    font-size: 1em;
  }

  .page-index-core-advantages__section {
    padding: 40px 0;
  }

  .page-index-core-advantages__section-title {
    font-size: 1.8em;
  }

  .page-index-core-advantages__sub-title {
    font-size: 1.5em;
  }

  .page-index-core-advantages__content-area,
  .page-index-core-advantages__faq-list {
    padding: 0 15px;
  }

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

  /* Ensure content containers are responsive */
  .page-index-core-advantages__section,
  .page-index-core-advantages__card,
  .page-index-core-advantages__container,
  .page-index-core-advantages__security-grid,
  .page-index-core-advantages__ux-grid,
  .page-index-core-advantages__support-grid,
  .page-index-core-advantages__product-grid,
  .page-index-core-advantages__promo-grid,
  .page-index-core-advantages__faq-list,
  .page-index-core-advantages__cta-content,
  .page-index-core-advantages__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-index-core-advantages__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile video section */
  }

  /* Mobile button responsiveness */
  .page-index-core-advantages__btn-primary,
  .page-index-core-advantages__btn-secondary,
  .page-index-core-advantages a[class*="button"],
  .page-index-core-advantages a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important; /* Stack buttons vertically */
  }

  .page-index-core-advantages__cta-buttons {
    flex-direction: column; /* Stack buttons in CTA section */
    gap: 15px; /* Adjust gap for stacked buttons */
  }

  .page-index-core-advantages__card {
    padding: 20px;
  }

  .page-index-core-advantages__faq-question {
    padding: 15px;
  }

  .page-index-core-advantages__faq-answer {
    padding: 0 15px;
  }

  .page-index-core-advantages__faq-item.active .page-index-core-advantages__faq-answer {
    padding: 15px !important;
  }

  .page-index-core-advantages__cta-final {
    padding: 60px 0;
  }
}