/* style/blog-hm88-faq.css */

/* Variables from custom palette */
:root {
  --page-blog-hm88-faq-primary-color: #11A84E;
  --page-blog-hm88-faq-secondary-color: #22C768;
  --page-blog-hm88-faq-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-blog-hm88-faq-card-bg: #11271B;
  --page-blog-hm88-faq-background: #08160F;
  --page-blog-hm88-faq-text-main: #F2FFF6;
  --page-blog-hm88-faq-text-secondary: #A7D9B8;
  --page-blog-hm88-faq-border-color: #2E7A4E;
  --page-blog-hm88-faq-glow-color: #57E38D;
  --page-blog-hm88-faq-gold-color: #F2C14E;
  --page-blog-hm88-faq-divider-color: #1E3A2A;
  --page-blog-hm88-faq-deep-green: #0A4B2C;
}

.page-blog-hm88-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-blog-hm88-faq-text-main); /* Ensure contrast with body background */
  background-color: var(--page-blog-hm88-faq-background);
  min-height: 100vh;
}

.page-blog-hm88-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding for content */
  background: var(--page-blog-hm88-faq-deep-green);
  overflow: hidden;
}

.page-blog-hm88-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog-hm88-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability if text were overlaid, but here it's below */
}

.page-blog-hm88-faq__hero-content {
  text-align: center;
  max-width: 900px;
  margin-top: 40px;
  z-index: 2;
}

.page-blog-hm88-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: bold;
  color: var(--page-blog-hm88-faq-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-blog-hm88-faq__description {
  font-size: 1.1em;
  color: var(--page-blog-hm88-faq-text-secondary);
  margin-bottom: 30px;
}

.page-blog-hm88-faq__description a {
  color: var(--page-blog-hm88-faq-gold-color);
  text-decoration: underline;
}

.page-blog-hm88-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog-hm88-faq__btn-primary,
.page-blog-hm88-faq__btn-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button adapts to screen width */
  box-sizing: border-box;
  text-align: center;
}

.page-blog-hm88-faq__btn-primary {
  background: var(--page-blog-hm88-faq-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-hm88-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog-hm88-faq__btn-secondary {
  background: transparent;
  color: var(--page-blog-hm88-faq-gold-color);
  border: 2px solid var(--page-blog-hm88-faq-gold-color);
}

.page-blog-hm88-faq__btn-secondary:hover {
  background: rgba(var(--page-blog-hm88-faq-gold-color-rgb), 0.1);
  color: var(--page-blog-hm88-faq-gold-color);
}

.page-blog-hm88-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--page-blog-hm88-faq-card-bg);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  margin-top: -40px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 3;
}

.page-blog-hm88-faq__section-wrapper {
  padding: 20px;
}

.page-blog-hm88-faq__section-title {
  font-size: 2.2em;
  color: var(--page-blog-hm88-faq-gold-color);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-blog-hm88-faq__sub-title {
  font-size: 1.6em;
  color: var(--page-blog-hm88-faq-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog-hm88-faq p {
  margin-bottom: 15px;
  color: var(--page-blog-hm88-faq-text-main);
}

.page-blog-hm88-faq a {
  color: var(--page-blog-hm88-faq-secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog-hm88-faq a:hover {
  color: var(--page-blog-hm88-faq-glow-color);
  text-decoration: underline;
}

.page-blog-hm88-faq__highlight {
  color: var(--page-blog-hm88-faq-gold-color);
  font-weight: bold;
}

.page-blog-hm88-faq__ordered-list,
.page-blog-hm88-faq__unordered-list {
  margin-bottom: 20px;
  padding-left: 25px;
}

.page-blog-hm88-faq__ordered-list li,
.page-blog-hm88-faq__unordered-list li {
  margin-bottom: 10px;
  color: var(--page-blog-hm88-faq-text-main);
}

.page-blog-hm88-faq__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px 0;
  object-fit: cover;
}

.page-blog-hm88-faq__faq-list {
  margin-top: 30px;
}

.page-blog-hm88-faq__faq-item {
  background-color: var(--page-blog-hm88-faq-background);
  border: 1px solid var(--page-blog-hm88-faq-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-blog-hm88-faq-text-main);
}

.page-blog-hm88-faq__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--page-blog-hm88-faq-text-main);
  background-color: var(--page-blog-hm88-faq-deep-green);
  transition: background-color 0.3s ease;
}

.page-blog-hm88-faq__faq-item summary:hover {
  background-color: var(--page-blog-hm88-faq-primary-color);
}

.page-blog-hm88-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog-hm88-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
}

.page-blog-hm88-faq__faq-qtext {
  flex-grow: 1;
  color: var(--page-blog-hm88-faq-text-main);
}

.page-blog-hm88-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-blog-hm88-faq-gold-color);
}

.page-blog-hm88-faq__faq-answer {
  padding: 15px 25px 20px;
  border-top: 1px solid var(--page-blog-hm88-faq-divider-color);
  color: var(--page-blog-hm88-faq-text-secondary);
}

.page-blog-hm88-faq__faq-answer p {
  margin-bottom: 0;
  color: var(--page-blog-hm88-faq-text-secondary);
}

.page-blog-hm88-faq__cta-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--page-blog-hm88-faq-divider-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-hm88-faq__content-area {
    margin-top: -20px;
  }

  .page-blog-hm88-faq__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

  .page-blog-hm88-faq__section-title {
    font-size: 1.8em;
  }

  .page-blog-hm88-faq__sub-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-blog-hm88-faq__hero-section {
    padding: 10px 15px 40px;
  }

  .page-blog-hm88-faq__hero-content {
    margin-top: 20px;
  }

  .page-blog-hm88-faq__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-blog-hm88-faq__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-blog-hm88-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog-hm88-faq__btn-primary,
  .page-blog-hm88-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog-hm88-faq__content-area {
    padding: 20px 15px;
    margin-top: -30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-hm88-faq__section-wrapper {
    padding: 10px;
  }

  .page-blog-hm88-faq__section-title {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-blog-hm88-faq__sub-title {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-blog-hm88-faq p,
  .page-blog-hm88-faq li {
    font-size: 0.95em;
  }

  .page-blog-hm88-faq__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-blog-hm88-faq__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-blog-hm88-faq__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px 0;
    box-sizing: border-box !important;
  }

  .page-blog-hm88-faq__hero-image,
  .page-blog-hm88-faq__hero-image-wrapper,
  .page-blog-hm88-faq__content-area,
  .page-blog-hm88-faq__section-wrapper,
  .page-blog-hm88-faq__faq-list,
  .page-blog-hm88-faq__cta-buttons,
  .page-blog-hm88-faq__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-blog-hm88-faq__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Ensure images don't have CSS filters */
.page-blog-hm88-faq img {
  filter: none; /* No CSS filters to change image color */
}