/* style/faq.css */

/* Custom Colors from prompt */
:root {
  --kbet-primary: #2F6BFF;
  --kbet-secondary: #6FA3FF;
  --kbet-card-bg: #FFFFFF;
  --kbet-background: #F4F7FB;
  --kbet-text-main: #1F2D3D;
  --kbet-text-black: #000000;
  --kbet-border: #D6E2FF;
  --kbet-glow: #A5C4FF;
  --kbet-btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--kbet-text-main); /* Default text color, assumes light body background from shared.css */
  background-color: var(--kbet-background); /* Page specific background color */
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background: var(--kbet-background); /* Background to match body if possible */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-bottom: 30px;
  box-sizing: border-box;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-content {
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for responsive font size */
  color: var(--kbet-primary);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1em;
  color: var(--kbet-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on mobile */
  gap: 20px;
  justify-content: center;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Important for mobile */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-faq__btn-primary {
  background: var(--kbet-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-faq__btn-secondary {
  background: var(--kbet-card-bg);
  color: var(--kbet-primary);
  border: 2px solid var(--kbet-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-faq__btn-secondary:hover {
  background: var(--kbet-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 80px 0;
  background-color: var(--kbet-card-bg); /* Use card background for this section */
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--kbet-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__section-description {
  font-size: 1.1em;
  color: var(--kbet-text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-faq__faq-item {
  background-color: var(--kbet-background); /* Lighter background for items */
  border: 1px solid var(--kbet-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item.active {
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.1);
  border-color: var(--kbet-primary);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--kbet-text-main);
  cursor: pointer;
  background-color: var(--kbet-card-bg); /* White background for question header */
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-question {
  color: var(--kbet-primary);
  border-bottom-color: var(--kbet-border);
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--kbet-primary);
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(0deg); /* No rotation for plus/minus */
}

.page-faq__faq-answer {
  padding: 0 25px;
  font-size: 1em;
  color: var(--kbet-text-main);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 500px; /* Adjust based on expected content length */
  padding: 15px 25px 25px 25px;
}

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

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__text-link {
  color: var(--kbet-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-faq__text-link:hover {
  text-decoration: underline;
  color: var(--kbet-secondary);
}

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

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--kbet-primary); /* Use primary color for CTA background */
  color: #ffffff; /* White text for contrast */
}

.page-faq__cta-section .page-faq__section-title,
.page-faq__cta-section .page-faq__description {
  color: #ffffff;
}

.page-faq__cta-section .page-faq__btn-primary {
  background: var(--kbet-btn-gradient); /* Use gradient for CTA button */
  color: #ffffff;
  border: 2px solid #ffffff; /* White border for contrast */
  margin-top: 30px;
}

.page-faq__cta-section .page-faq__btn-primary:hover {
  background: #ffffff;
  color: var(--kbet-primary);
  border-color: var(--kbet-primary);
}

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

  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
  }

  .page-faq__main-title {
    font-size: 2em;
  }

  .page-faq__description {
    font-size: 1em;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-faq__faq-list-section,
  .page-faq__cta-section {
    padding: 50px 0;
  }

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

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

  .page-faq__faq-answer {
    padding: 0 20px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__faq-list-section,
  .page-faq__cta-section,
  .page-faq__container,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}