/* style/faq.css */
:root {
  --kc88-primary-color: #26A9E0;
  --kc88-secondary-color: #FFFFFF;
  --kc88-login-color: #EA7C07;
  --kc88-text-dark: #333333;
  --kc88-text-light: #ffffff;
  --kc88-black: #000000;
}

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--kc88-text-dark); /* Default text color for light body background */
}

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

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-faq__dark-bg {
  background-color: var(--kc88-primary-color);
  color: var(--kc88-text-light);
}

.page-faq__light-bg {
  background-color: var(--kc88-secondary-color);
  color: var(--kc88-text-dark);
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-faq__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: inherit;
}

.page-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-faq__btn-primary {
  display: inline-block;
  background-color: var(--kc88-login-color);
  color: var(--kc88-text-light);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary:hover {
  background-color: darken(var(--kc88-login-color), 10%);
}

.page-faq__faq-section {
  padding: 60px 0;
}

.page-faq__section-title {
  text-align: center;
  margin-bottom: 20px;
  color: var(--kc88-primary-color);
  font-weight: 700;
}

.page-faq__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.05em;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: var(--kc88-secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-faq__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--kc88-primary-color);
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  padding: 20px 25px;
  color: var(--kc88-text-dark);
  font-size: 1em;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
}

.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
}

.page-faq__faq-answer a {
  color: var(--kc88-primary-color);
  text-decoration: underline;
}

.page-faq__link-button {
  display: inline-block;
  background-color: var(--kc88-primary-color);
  color: var(--kc88-text-light);
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: normal;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.page-faq__link-button:hover {
  background-color: darken(var(--kc88-primary-color), 10%);
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--kc88-primary-color);
  color: var(--kc88-text-light);
}

.page-faq__cta-title {
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

.page-faq__cta-description {
  font-size: 1.15em;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-faq__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__btn-primary {
    padding: 10px 20px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__section-title {
    font-size: 1.6em;
  }

  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-faq__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  .page-faq__link-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__cta-section {
    padding: 50px 15px;
  }

  .page-faq__cta-title {
    font-size: 1.8em;
  }

  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
}