.page-index-core-advantages {
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index-core-advantages__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #f5f5f5;
}

.page-index-core-advantages__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

.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: 20px;
  background-color: #ffffff;
  margin-top: -80px; /* Overlap with image slightly for visual effect */
  position: relative;
  z-index: 1;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-core-advantages__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #017439;
  margin-bottom: 15px;
  /* Clamp for responsive font-size, avoiding fixed large values */
  font-size: clamp(28px, 4vw, 48px);
}

.page-index-core-advantages__description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.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: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-core-advantages__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

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

.page-index-core-advantages__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #017439;
}

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

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

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

.page-index-core-advantages__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: bold;
  color: inherit;
  margin-bottom: 40px;
}

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

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

.page-index-core-advantages__text-block {
  flex: 1;
  padding: 20px 0;
}

.page-index-core-advantages__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: inherit;
}

.page-index-core-advantages__highlight {
  font-weight: bold;
  color: inherit; /* Inherit color from parent section */
}

.page-index-core-advantages__image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-index-core-advantages__promotions .page-index-core-advantages__cta-buttons,
.page-index-core-advantages__customer-support .page-index-core-advantages__cta-buttons,
.page-index-core-advantages__payment-methods .page-index-core-advantages__cta-buttons,
.page-index-core-advantages__responsible-gaming .page-index-core-advantages__cta-buttons {
  margin-top: 40px;
}

.page-index-core-advantages__faq-section {
  background-color: #f9f9f9;
}

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

.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-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  color: #017439;
}

.page-index-core-advantages__faq-item summary::-webkit-details-marker {
  display: none;
}

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

.page-index-core-advantages__faq-qtext {
  flex-grow: 1;
  margin-right: 10px;
}

.page-index-core-advantages__faq-toggle {
  font-size: 24px;
  line-height: 1;
  width: 24px;
  text-align: center;
}

.page-index-core-advantages__faq-item[open] .page-index-core-advantages__faq-toggle {
  content: '−';
}

.page-index-core-advantages__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

.page-index-core-advantages__cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-index-core-advantages__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
  z-index: 0;
}

.page-index-core-advantages__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.page-index-core-advantages__cta-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-index-core-advantages__cta-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index-core-advantages__content-wrapper {
    flex-direction: column;
  }

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

  .page-index-core-advantages__image {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page-index-core-advantages__hero-content {
    margin-top: -40px;
  }
}

@media (max-width: 768px) {
  .page-index-core-advantages__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-index-core-advantages__description {
    font-size: 16px;
  }

  .page-index-core-advantages__btn-primary,
  .page-index-core-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: 12px 20px;
    font-size: 16px;
  }

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

  .page-index-core-advantages__section-title {
    font-size: clamp(22px, 5vw, 32px);
  }

  .page-index-core-advantages__text-block p {
    font-size: 16px;
  }

  .page-index-core-advantages__faq-item summary {
    font-size: 16px;
    padding: 15px;
  }

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

  .page-index-core-advantages__cta-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-index-core-advantages__cta-text {
    font-size: 16px;
  }

  /* Ensure all images are responsive */
  .page-index-core-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-core-advantages__section,
  .page-index-core-advantages__card,
  .page-index-core-advantages__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index-core-advantages__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-index-core-advantages__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-core-advantages__cta-buttons.page-index-core-advantages__cta-buttons--center {
    padding-left: 15px;
    padding-right: 15px;
  }

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