/* style/faq.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main-color: #1F2D3D;
  --card-bg-color: #FFFFFF;
  --page-bg-color: #F4F7FB;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--page-bg-color);
}

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

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--card-bg-color);
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.page-faq__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-faq__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-faq__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-faq__main-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.page-faq__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  text-align: center;
}

.page-faq__btn-primary {
  background: var(--button-gradient);
  color: var(--card-bg-color);
  border: none;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary {
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-faq__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--card-bg-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-section {
  padding: 40px 0;
  background-color: var(--page-bg-color);
}

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

.page-faq__section-title--white {
  color: var(--card-bg-color);
}

.page-faq__section-description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-main-color);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #f8f8f8;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: #fcfcfc;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

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

.page-faq__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
  background: var(--primary-color);
  margin-top: 40px;
}

.page-faq__dark-bg {
  background-color: var(--primary-color);
  color: var(--card-bg-color);
}

.page-faq__description--white {
  color: var(--card-bg-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(24px, 5vw, 38px);
  }
  .page-faq__description {
    font-size: 17px;
  }
  .page-faq__section-title {
    font-size: 28px;
  }
  .page-faq__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__hero-section,
  .page-faq__faq-section,
  .page-faq__cta-bottom-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* body padding-top handled by shared.css */
    padding-bottom: 40px;
  }

  .page-faq__hero-image {
    margin-bottom: 20px;
  }

  .page-faq__main-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 10px;
  }

  .page-faq__description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-faq__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-faq__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

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

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }

  .page-faq__faq-qtext {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  .page-faq__faq-list {
    padding: 0;
  }

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

  .page-faq__container {
    padding: 0 15px;
  }

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

@media (max-width: 480px) {
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: 22px;
  }

  .page-faq__description {
    font-size: 14px;
  }

  .page-faq__cta-button {
    font-size: 15px;
    padding: 10px 15px;
  }

  .page-faq__section-title {
    font-size: 24px;
  }

  .page-faq__faq-qtext {
    font-size: 15px;
  }

  .page-faq__faq-toggle {
    font-size: 22px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    font-size: 14px;
  }
}