/* style/index-core-advantages.css */

/* Base styles for the page content */
.page-index-core-advantages {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text on light body background #f0f2f5 */
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-index-core-advantages__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-index-core-advantages__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and text */
}

.page-index-core-advantages__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index-core-advantages__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-index-core-advantages__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive H1 font size */
  font-weight: 700;
  color: #26A9E0; /* Brand primary color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-core-advantages__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #333333;
}

/* CTA Buttons */
.page-index-core-advantages__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index-core-advantages__btn-primary,
.page-index-core-advantages__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-index-core-advantages__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-index-core-advantages__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color for text */
  border: 2px solid #26A9E0;
}

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

/* Generic Section Styles */
.page-index-core-advantages__section {
  padding: 60px 0;
}

.page-index-core-advantages__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #26A9E0; /* Primary brand color */
}

.page-index-core-advantages__dark-bg {
  background-color: #26A9E0; /* Primary brand color as background */
  color: #ffffff; /* White text on dark background */
}

.page-index-core-advantages__dark-bg .page-index-core-advantages__section-title {
  color: #ffffff;
}

.page-index-core-advantages__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text on light background */
}

.page-index-core-advantages__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.page-index-core-advantages__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-index-core-advantages__text-block {
  flex: 1;
}

.page-index-core-advantages__text-block p {
  margin-bottom: 15px;
}

.page-index-core-advantages__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-core-advantages__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px; /* Minimum size for content images */
}

.page-index-core-advantages__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-index-core-advantages__feature-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.page-index-core-advantages__feature-item::before {
  content: '✅'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: #72D572; /* A green checkmark */
  font-size: 1.1em;
}

.page-index-core-advantages__btn-text-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: color 0.3s ease;
}

.page-index-core-advantages__btn-text-link:hover {
  color: #1e87c0;
  text-decoration: underline;
}

/* Features Grid (for Support & Payment section) */
.page-index-core-advantages__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-core-advantages__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 250px; /* Ensure cards have some height */
}

.page-index-core-advantages__feature-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-index-core-advantages__feature-card p {
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-index-core-advantages__faq-section {
  background-color: #f9f9f9; /* Light grey background for FAQ */
  padding: 60px 0;
}

.page-index-core-advantages__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

.page-index-core-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-index-core-advantages__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-index-core-advantages__faq-question:hover {
  background-color: #f0f0f0;
}

.page-index-core-advantages__faq-toggle {
  font-size: 1.5rem;
  font-weight: normal;
  color: #26A9E0;
  margin-left: 15px;
}

.page-index-core-advantages__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #555555;
}

.page-index-core-advantages__faq-answer p {
  margin-bottom: 10px;
}

/* Final CTA Section */
.page-index-core-advantages__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

.page-index-core-advantages__cta-final-content {
  max-width: 900px;
}

.page-index-core-advantages__cta-final-content .page-index-core-advantages__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-index-core-advantages__cta-final-content .page-index-core-advantages__description {
  font-size: 1.15rem;
  margin-bottom: 40px;
  color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .page-index-core-advantages__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-index-core-advantages__content-wrapper--reverse {
    flex-direction: column; /* Revert for mobile */
  }

  .page-index-core-advantages__image-block {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-index-core-advantages__hero-section {
    padding-bottom: 40px;
  }

  .page-index-core-advantages__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

  .page-index-core-advantages__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-index-core-advantages__btn-primary,
  .page-index-core-advantages__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  .page-index-core-advantages__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 30px;
    padding: 0 15px; /* Add padding for titles */
  }

  .page-index-core-advantages__container {
    padding: 0 15px; /* Add padding to main container */
  }

  .page-index-core-advantages__text-block {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-index-core-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    min-width: 200px !important; /* Ensure min size is maintained */
    min-height: 200px !important; /* Ensure min size is maintained */
  }

  .page-index-core-advantages__hero-image-wrapper,
  .page-index-core-advantages__image-block,
  .page-index-core-advantages__section,
  .page-index-core-advantages__container,
  .page-index-core-advantages__content-wrapper,
  .page-index-core-advantages__feature-card,
  .page-index-core-advantages__faq-list,
  .page-index-core-advantages__faq-item,
  .page-index-core-advantages__cta-final-section,
  .page-index-core-advantages__cta-final-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-index-core-advantages__faq-answer {
    padding: 0 20px 15px 20px;
  }
  
  .page-index-core-advantages__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-index-core-advantages__features-grid {
    grid-template-columns: 1fr;
  }
}