/* style/blog-hl88-platform-advantages.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-blog-hl88-platform-advantages {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css #0a0a0a */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog-hl88-platform-advantages__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, not var(--header-offset) */
  background-color: #0a0a0a; /* Ensure a dark background for the hero section */
  color: #ffffff;
  overflow: hidden;
}

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

.page-blog-hl88-platform-advantages__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog-hl88-platform-advantages__hero-content {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: center;
  padding: 0 20px;
  z-index: 10;
}

.page-blog-hl88-platform-advantages__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* H1 font size constraint */
}

.page-blog-hl88-platform-advantages__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog-hl88-platform-advantages__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog-hl88-platform-advantages__btn-primary,
.page-blog-hl88-platform-advantages__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog-hl88-platform-advantages__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-blog-hl88-platform-advantages__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-blog-hl88-platform-advantages__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-blog-hl88-platform-advantages__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog-hl88-platform-advantages__section {
  padding: 60px 20px;
  text-align: center;
}

.page-blog-hl88-platform-advantages__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.page-blog-hl88-platform-advantages__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog-hl88-platform-advantages__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-blog-hl88-platform-advantages__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-blog-hl88-platform-advantages__text-block {
  font-size: 1.05em;
  margin-bottom: 25px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-hl88-platform-advantages__highlight {
  color: #26A9E0;
  font-weight: bold;
}

.page-blog-hl88-platform-advantages__advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-blog-hl88-platform-advantages__advantage-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark bg */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-blog-hl88-platform-advantages__light-bg .page-blog-hl88-platform-advantages__advantage-item {
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-blog-hl88-platform-advantages__advantage-title {
  font-size: 1.6em;
  margin-bottom: 20px;
  color: #26A9E0;
  font-weight: bold;
}

.page-blog-hl88-platform-advantages__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
  object-fit: cover;
}

.page-blog-hl88-platform-advantages__btn-block {
  width: calc(100% - 30px); /* Adjust for padding in item */
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
}

/* FAQ Section */
.page-blog-hl88-platform-advantages__faq-section {
  padding: 60px 20px;
}

.page-blog-hl88-platform-advantages__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-blog-hl88-platform-advantages__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-blog-hl88-platform-advantages__light-bg .page-blog-hl88-platform-advantages__faq-item {
  background-color: #f0f0f0;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-blog-hl88-platform-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-blog-hl88-platform-advantages__light-bg .page-blog-hl88-platform-advantages__faq-question {
  color: #333333;
  background-color: #e8e8e8;
}

.page-blog-hl88-platform-advantages__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-blog-hl88-platform-advantages__light-bg .page-blog-hl88-platform-advantages__faq-question:hover {
  background-color: #dcdcdc;
}

.page-blog-hl88-platform-advantages__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-blog-hl88-platform-advantages__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  user-select: none;
  width: 20px;
  text-align: center;
}

.page-blog-hl88-platform-advantages__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  text-align: left;
  line-height: 1.6;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-blog-hl88-platform-advantages__light-bg .page-blog-hl88-platform-advantages__faq-answer {
  color: #555555;
}

.page-blog-hl88-platform-advantages__faq-item[open] .page-blog-hl88-platform-advantages__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding-top: 10px;
}

.page-blog-hl88-platform-advantages__faq-item[open] .page-blog-hl88-platform-advantages__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-blog-hl88-platform-advantages__light-bg .page-blog-hl88-platform-advantages__faq-item[open] .page-blog-hl88-platform-advantages__faq-question {
  background-color: #dcdcdc;
}

/* Details element specific styles for toggle icon */
.page-blog-hl88-platform-advantages__faq-item summary {
  list-style: none;
}

.page-blog-hl88-platform-advantages__faq-item summary::-webkit-details-marker {
  display: none;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-hl88-platform-advantages__hero-content {
    max-width: 800px;
  }
  .page-blog-hl88-platform-advantages__content-area {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 768px) {
  .page-blog-hl88-platform-advantages__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-blog-hl88-platform-advantages__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-blog-hl88-platform-advantages__hero-description {
    font-size: 1em;
  }

  .page-blog-hl88-platform-advantages__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-blog-hl88-platform-advantages__btn-primary,
  .page-blog-hl88-platform-advantages__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .page-blog-hl88-platform-advantages__section {
    padding: 40px 15px;
  }

  .page-blog-hl88-platform-advantages__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-blog-hl88-platform-advantages__text-block {
    font-size: 0.95em;
  }

  .page-blog-hl88-platform-advantages__advantage-grid {
    gap: 30px;
  }

  .page-blog-hl88-platform-advantages__advantage-item {
    padding: 25px;
  }

  .page-blog-hl88-platform-advantages__advantage-title {
    font-size: 1.4em;
  }

  /* Mobile image responsiveness */
  .page-blog-hl88-platform-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog-hl88-platform-advantages__section,
  .page-blog-hl88-platform-advantages__card,
  .page-blog-hl88-platform-advantages__container,
  .page-blog-hl88-platform-advantages__advantage-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-blog-hl88-platform-advantages__hero-image-wrapper {
    max-height: 400px;
  }

  .page-blog-hl88-platform-advantages__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-blog-hl88-platform-advantages__faq-answer {
    font-size: 0.95em;
    padding: 0 20px 15px 20px;
  }
}