/* style/faq.css */

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-color: #F5F7FA;
  --border-color: #E0E0E0;
}

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

.page-faq__hero-section {
  padding-top: 10px; /* Assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
}

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

.page-faq__hero-section .page-faq__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-faq__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-faq__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #ffffff;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-faq__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-faq__btn-link {
  background: none;
  color: var(--primary-color);
  border: 1px solid transparent;
  padding: 8px 15px;
  font-size: 0.95em;
  text-decoration: underline;
}

.page-faq__btn-link:hover {
  color: var(--secondary-color);
}

.page-faq__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

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

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

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

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

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

.page-faq__faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  list-style: none; /* Remove default marker for details summary */
  position: relative;
}

.page-faq__faq-question::-webkit-details-marker, /* Hide default marker for Webkit */
.page-faq__faq-question::marker { 
  display: none;
  content: "";
}

.page-faq__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

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

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

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  border-top: 1px solid var(--border-color);
  margin-top: -1px; /* Overlap border */
}

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

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

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

.page-faq__faq-answer a:hover {
  color: var(--secondary-color);
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

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

.page-faq__cta-bottom-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-faq__cta-bottom-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--text-main-color);
}

.page-faq__cta-bottom-section .page-faq__cta-buttons {
  justify-content: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__cta-bottom-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-faq__hero-section .page-faq__container {
    flex-direction: column;
    gap: 30px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .page-faq__hero-content,
  .page-faq__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }
  .page-faq__main-title {
    font-size: 2em;
    text-align: center;
  }
  .page-faq__hero-description {
    font-size: 1em;
    text-align: center;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General content sections */
  .page-faq__faq-section,
  .page-faq__cta-bottom-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    padding: 0 15px;
  }

  /* FAQ List */
  .page-faq__faq-question {
    padding: 18px 20px;
    font-size: 1.05em;
  }
  .page-faq__faq-answer {
    padding: 0 20px 18px;
    font-size: 0.95em;
  }

  /* Images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__container,
  .page-faq__faq-list,
  .page-faq__cta-bottom-section .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* CTA Bottom Section */
  .page-faq__cta-bottom-title {
    font-size: 1.6em;
  }
  .page-faq__cta-bottom-description {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-faq__cta-bottom-section .page-faq__cta-buttons {
    flex-direction: column;
  }
}