/* style/faq.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --accent-color-register: #C30808;
  --accent-color-login: #C30808;
  --text-color-register-login: #FFFF00;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --border-color-light: #e0e0e0;
  --background-light: #f9f9f9;
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--secondary-color); /* Body background is white */
}

.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: var(--header-offset, 120px); /* Ensure header offset for desktop */
  background: var(--primary-color);
  color: var(--text-color-light);
  overflow: hidden;
}

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

.page-faq__hero-image {
  width: 100%;
  max-width: 800px;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-faq__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
}

.page-faq__intro-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-register {
  background: var(--accent-color-register);
  color: var(--text-color-register-login);
}

.page-faq__btn-register:hover {
  background: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-faq__btn-download {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--text-color-light);
}

.page-faq__btn-download:hover {
  background: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-faq__container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-faq__section-description {
  font-size: 1.1em;
  margin-bottom: 50px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color-light);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: var(--background-light);
  border-color: #d0d0d0;
}

.page-faq__faq-question:active {
  background: #eeeeee;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-dark);
  pointer-events: none;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--secondary-color);
  background: var(--primary-color);
  transform: rotate(45deg); /* Change from + to X visually */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: var(--background-light);
  color: var(--text-color-dark);
  border-radius: 0 0 10px 10px;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
  font-size: 1em;
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 1em;
  padding: 0;
}

.page-faq__faq-answer li {
  margin-bottom: 0.5em;
  font-size: 1em;
}

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

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

.page-faq__cta-container {
  max-width: 800px;
}

.page-faq__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-faq__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.page-faq__btn-contact {
  background: var(--accent-color-register);
  color: var(--text-color-register-login);
  padding: 15px 50px;
  font-size: 1.2em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-faq__btn-contact:hover {
  background: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }
  .page-faq__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-faq__intro-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-faq__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 6px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-faq__content-area {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
    border-radius: 8px;
  }
  .page-faq__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 26px;
    height: 26px;
    font-size: 22px;
    border-width: 1px;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-faq__image-inline {
    border-radius: 6px;
  }

  .page-faq__cta-bottom {
    padding: 60px 15px;
  }
  .page-faq__cta-title {
    font-size: 2em;
  }
  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__btn-contact {
    padding: 12px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__faq-question h3 {
    font-size: 0.95em;
  }
  .page-faq__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
}