.page-index-core-advantages {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff); /* Ensure body background is respected */
}

.page-index-core-advantages__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #26A9E0, #5ac3f1);
  color: #ffffff;
  overflow: hidden;
}

.page-index-core-advantages__hero-content {
  max-width: 900px;
  z-index: 1;
  margin-bottom: 30px;
}

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

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

.page-index-core-advantages__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-core-advantages__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-index-core-advantages__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-index-core-advantages__advantages-grid,
.page-index-core-advantages__commitment-section,
.page-index-core-advantages__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-index-core-advantages__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-index-core-advantages__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

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

.page-index-core-advantages__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-index-core-advantages__card-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Recommended size for content images */
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

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

.page-index-core-advantages__card-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index-core-advantages__card-link {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-core-advantages__card-link:hover {
  background-color: #1a7fb3;
}

.page-index-core-advantages__commitment-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 50px;
}

.page-index-core-advantages__commitment-content {
  flex: 1;
}

.page-index-core-advantages__commitment-content .page-index-core-advantages__section-title {
  text-align: left;
}

.page-index-core-advantages__commitment-content .page-index-core-advantages__section-description {
  text-align: left;
  margin-bottom: 30px;
}

.page-index-core-advantages__commitment-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index-core-advantages__commitment-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-index-core-advantages__cta-section {
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff; /* White text for contrast */
  text-align: center;
  border-radius: 10px;
  padding: 60px 40px;
  margin-bottom: 40px;
}

.page-index-core-advantages__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-index-core-advantages__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.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: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-core-advantages__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-index-core-advantages__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(234, 124, 7, 0.3);
}

.page-index-core-advantages__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index-core-advantages__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(38, 169, 224, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-index-core-advantages__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
  }

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

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

  .page-index-core-advantages__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-core-advantages__btn-primary,
  .page-index-core-advantages__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index-core-advantages__advantages-grid,
  .page-index-core-advantages__commitment-section,
  .page-index-core-advantages__cta-section {
    padding: 40px 15px;
  }

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

  .page-index-core-advantages__section-description {
    font-size: 0.95em;
  }

  .page-index-core-advantages__grid-container {
    grid-template-columns: 1fr;
  }

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

  .page-index-core-advantages__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index-core-advantages__commitment-section {
    flex-direction: column;
    padding: 40px 20px;
  }

  .page-index-core-advantages__commitment-content .page-index-core-advantages__section-title,
  .page-index-core-advantages__commitment-content .page-index-core-advantages__section-description {
    text-align: center;
  }

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

  .page-index-core-advantages__cta-buttons {
    flex-direction: column;
  }

  /* Image responsiveness for all images within main content */
  .page-index-core-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure containers do not overflow */
  .page-index-core-advantages__hero-section,
  .page-index-core-advantages__advantages-grid,
  .page-index-core-advantages__commitment-section,
  .page-index-core-advantages__cta-section,
  .page-index-core-advantages__grid-container,
  .page-index-core-advantages__card,
  .page-index-core-advantages__hero-buttons,
  .page-index-core-advantages__cta-buttons,
  .page-index-core-advantages__hero-image-wrapper,
  .page-index-core-advantages__commitment-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

/* Color Contrast Fixes */
.page-index-core-advantages__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

.page-index-core-advantages__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-index-core-advantages__medium-bg {
  background: #FFFFFF;
  color: #000000;
}