/* style/blog-ke9o-official-homepage-advantages.css */

/* Base styles */
.page-blog-ke9o-official-homepage-advantages {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF);
}

.page-blog-ke9o-official-homepage-advantages__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
  color: #ffffff;
  background-color: #26A9E0;
}

.page-blog-ke9o-official-homepage-advantages__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog-ke9o-official-homepage-advantages__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-blog-ke9o-official-homepage-advantages__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  margin-top: -150px; /* Pull content up over the image slightly */
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-blog-ke9o-official-homepage-advantages__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-blog-ke9o-official-homepage-advantages__lead-paragraph {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-blog-ke9o-official-homepage-advantages__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.page-blog-ke9o-official-homepage-advantages__cta-buttons--centered {
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-blog-ke9o-official-homepage-advantages__cta-buttons--large .page-blog-ke9o-official-homepage-advantages__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.25rem;
}

.page-blog-ke9o-official-homepage-advantages__btn-primary,
.page-blog-ke9o-official-homepage-advantages__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog-ke9o-official-homepage-advantages__btn-primary {
  background-color: #EA7C07; /* Login/Register color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-blog-ke9o-official-homepage-advantages__btn-primary:hover {
  background-color: #d16b00;
  border-color: #d16b00;
}

.page-blog-ke9o-official-homepage-advantages__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-blog-ke9o-official-homepage-advantages__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog-ke9o-official-homepage-advantages__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-blog-ke9o-official-homepage-advantages__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 25px;
  margin-top: 40px;
  text-align: center;
}

.page-blog-ke9o-official-homepage-advantages__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #333333;
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-blog-ke9o-official-homepage-advantages__text-block {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #444444;
}

.page-blog-ke9o-official-homepage-advantages__image-container {
  margin: 30px 0;
  text-align: center;
}

.page-blog-ke9o-official-homepage-advantages__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-blog-ke9o-official-homepage-advantages__faq-list {
  margin-top: 40px;
}

.page-blog-ke9o-official-homepage-advantages__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog-ke9o-official-homepage-advantages__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  background-color: #26A9E0;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-blog-ke9o-official-homepage-advantages__faq-item summary:hover {
  background-color: #1e87bb;
}

.page-blog-ke9o-official-homepage-advantages__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog-ke9o-official-homepage-advantages__faq-qtext {
  flex-grow: 1;
}

.page-blog-ke9o-official-homepage-advantages__faq-toggle {
  margin-left: 15px;
  font-size: 1.5rem;
  line-height: 1;
}

.page-blog-ke9o-official-homepage-advantages__faq-answer {
  padding: 20px;
  background-color: #ffffff;
  color: #333333;
  border-top: 1px solid #e0e0e0;
}

.page-blog-ke9o-official-homepage-advantages__faq-answer p {
  margin: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-blog-ke9o-official-homepage-advantages__hero-section {
    padding-bottom: 40px;
  }

  .page-blog-ke9o-official-homepage-advantages__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 15px;
  }

  .page-blog-ke9o-official-homepage-advantages__main-title {
    font-size: 2rem;
  }

  .page-blog-ke9o-official-homepage-advantages__lead-paragraph {
    font-size: 1rem;
  }

  .page-blog-ke9o-official-homepage-advantages__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog-ke9o-official-homepage-advantages__btn-primary,
  .page-blog-ke9o-official-homepage-advantages__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog-ke9o-official-homepage-advantages__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-ke9o-official-homepage-advantages__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    margin-top: 30px;
  }

  .page-blog-ke9o-official-homepage-advantages__sub-title {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-blog-ke9o-official-homepage-advantages__text-block {
    font-size: 1rem;
  }

  .page-blog-ke9o-official-homepage-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog-ke9o-official-homepage-advantages__image-container,
  .page-blog-ke9o-official-homepage-advantages__faq-list,
  .page-blog-ke9o-official-homepage-advantages__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog-ke9o-official-homepage-advantages__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
}

/* Ensure no filter on images */
.page-blog-ke9o-official-homepage-advantages img:not(.page-blog-ke9o-official-homepage-advantages__hero-image) {
  filter: none; /* Ensure no filter on content images */
}

/* The hero image has a brightness filter for text readability, which is acceptable as per previous instructions. */