.page-index-core-advantages-services {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F3F8FF); /* Default text color for dark background */
  background-color: var(--deep-navy, #08162B); /* Use a dark background for the page content, consistent with custom colors */
}

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

/* Hero Section */
.page-index-core-advantages-services__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 50px; /* Spacing below the content */
  padding-top: 10px; /* Small top spacing, relying on body padding for header offset */
}

.page-index-core-advantages-services__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background-color: var(--deep-navy, #08162B); /* Fallback background */
}

.page-index-core-advantages-services__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index-core-advantages-services__hero-content-wrapper {
  position: relative; /* Ensure content is above the image but not overlaying it */
  text-align: center;
  padding: 40px 0;
}

.page-index-core-advantages-services__main-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--text-main, #F3F8FF);
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-core-advantages-services__description {
  font-size: 18px;
  color: var(--text-secondary, #AFC4E8);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-core-advantages-services__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-index-core-advantages-services__btn-primary,
.page-index-core-advantages-services__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-index-core-advantages-services__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-core-advantages-services__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index-core-advantages-services__btn-secondary {
  background: transparent;
  color: var(--gold, #F2C14E);
  border: 2px solid var(--gold, #F2C14E);
}

.page-index-core-advantages-services__btn-secondary:hover {
  background: var(--gold, #F2C14E);
  color: var(--deep-navy, #08162B);
  transform: translateY(-2px);
}

/* Section Titles */
.page-index-core-advantages-services__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-main, #F3F8FF);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-index-core-advantages-services__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gold, #F2C14E);
  border-radius: 2px;
}

/* Features Section */
.page-index-core-advantages-services__features-section {
  padding: 80px 0;
  background-color: var(--deep-navy, #08162B);
}

.page-index-core-advantages-services__features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-index-core-advantages-services__feature-card {
  background: var(--card-bg, #10233F);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border, #244D84);
  color: var(--text-main, #F3F8FF);
}

.page-index-core-advantages-services__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-index-core-advantages-services__feature-icon {
  width: 100%;
  max-width: 250px; /* Adjust size for feature icons, min 200px */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block; /* Ensure it respects max-width */
}

.page-index-core-advantages-services__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
}

.page-index-core-advantages-services__feature-text {
  font-size: 16px;
  color: var(--text-secondary, #AFC4E8);
  line-height: 1.6;
}

/* Services Section */
.page-index-core-advantages-services__services-section {
  padding: 80px 0;
  background-color: var(--deep-navy, #08162B);
}

.page-index-core-advantages-services__services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-index-core-advantages-services__service-card {
  background: var(--card-bg, #10233F);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, #244D84);
}

.page-index-core-advantages-services__service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-index-core-advantages-services__service-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index-core-advantages-services__service-card h3,
.page-index-core-advantages-services__service-card p {
  padding: 0 25px; /* Add padding to text inside card */
}

.page-index-core-advantages-services__service-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-index-core-advantages-services__service-description {
  font-size: 15px;
  color: var(--text-secondary, #AFC4E8);
  line-height: 1.6;
  margin-bottom: 25px;
}

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

.page-index-core-advantages-services__dark-section {
  background-color: var(--deep-navy, #08162B);
  color: var(--text-main, #F3F8FF);
}

/* FAQ Section */
.page-index-core-advantages-services__faq-section {
  padding: 80px 0;
  background-color: var(--deep-navy, #08162B);
}

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

details.page-index-core-advantages-services__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border, #244D84);
  overflow: hidden;
  background: var(--card-bg, #10233F);
  color: var(--text-main, #F3F8FF);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
details.page-index-core-advantages-services__faq-item summary.page-index-core-advantages-services__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #F3F8FF);
  font-weight: bold;
}
details.page-index-core-advantages-services__faq-item summary.page-index-core-advantages-services__faq-question::-webkit-details-marker {
  display: none;
}
details.page-index-core-advantages-services__faq-item summary.page-index-core-advantages-services__faq-question:hover {
  background: var(--deep-navy, #08162B); /* Slightly darker hover */
}
.page-index-core-advantages-services__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #F3F8FF);
}
.page-index-core-advantages-services__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-index-core-advantages-services__faq-item .page-index-core-advantages-services__faq-answer {
  padding: 0 25px 20px;
  background: var(--deep-navy, #08162B);
  border-radius: 0 0 12px 12px;
  color: var(--text-secondary, #AFC4E8);
}
.page-index-core-advantages-services__faq-answer p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: var(--text-secondary, #AFC4E8);
}

/* General image styling for responsiveness */
.page-index-core-advantages-services img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index-core-advantages-services__main-title {
    font-size: 40px;
  }
  .page-index-core-advantages-services__section-title {
    font-size: 32px;
  }
  .page-index-core-advantages-services__features-grid,
  .page-index-core-advantages-services__services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-index-core-advantages-services__hero-section {
    padding-bottom: 40px;
  }
  .page-index-core-advantages-services__features-section,
  .page-index-core-advantages-services__services-section,
  .page-index-core-advantages-services__cta-section,
  .page-index-core-advantages-services__faq-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-index-core-advantages-services__hero-section {
    padding-top: 10px !important; /* Specific mobile top padding */
    padding-bottom: 30px;
  }
  .page-index-core-advantages-services__hero-content-wrapper {
    padding: 20px 0;
  }
  .page-index-core-advantages-services__main-title {
    font-size: 32px;
    margin-bottom: 15px;
    padding: 0 15px;
  }
  .page-index-core-advantages-services__description {
    font-size: 16px;
    margin-bottom: 25px;
    padding: 0 15px;
  }
  .page-index-core-advantages-services__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-index-core-advantages-services__btn-primary,
  .page-index-core-advantages-services__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index-core-advantages-services__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 15px;
  }

  /* Section Titles */
  .page-index-core-advantages-services__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding: 0 15px 15px;
  }

  /* Features Section */
  .page-index-core-advantages-services__features-section {
    padding: 40px 0;
  }
  .page-index-core-advantages-services__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-core-advantages-services__feature-card {
    padding: 25px;
  }
  .page-index-core-advantages-services__feature-icon {
    max-width: 200px; /* Ensure min 200px, but smaller on mobile */
  }
  .page-index-core-advantages-services__feature-title {
    font-size: 20px;
  }
  .page-index-core-advantages-services__feature-text {
    font-size: 15px;
  }

  /* Services Section */
  .page-index-core-advantages-services__services-section {
    padding: 40px 0;
  }
  .page-index-core-advantages-services__services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-core-advantages-services__service-image {
    height: 200px; /* Adjust height for mobile */
  }
  .page-index-core-advantages-services__service-title {
    font-size: 20px;
    margin-top: 20px;
  }
  .page-index-core-advantages-services__service-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* CTA Section */
  .page-index-core-advantages-services__cta-section {
    padding: 40px 0;
  }

  /* FAQ Section */
  .page-index-core-advantages-services__faq-section {
    padding: 40px 0;
  }
  details.page-index-core-advantages-services__faq-item {
    border-radius: 8px;
  }
  details.page-index-core-advantages-services__faq-item summary.page-index-core-advantages-services__faq-question {
    padding: 15px 20px;
  }
  .page-index-core-advantages-services__faq-qtext {
    font-size: 16px;
  }
  .page-index-core-advantages-services__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-index-core-advantages-services__faq-item .page-index-core-advantages-services__faq-answer {
    padding: 0 20px 15px;
    border-radius: 0 0 8px 8px;
  }
  .page-index-core-advantages-services__faq-answer p {
    font-size: 15px;
  }

  /* General image and container responsiveness */
  .page-index-core-advantages-services img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-index-core-advantages-services__container,
  .page-index-core-advantages-services__features-section,
  .page-index-core-advantages-services__services-section,
  .page-index-core-advantages-services__cta-section,
  .page-index-core-advantages-services__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific override for hero-image-wrapper to ensure it stays full width */
  .page-index-core-advantages-services__hero-image-wrapper {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
}