/* style/faq.css */

/* Base Styles for FAQ Page */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: calc(var(--header-offset, 120px) + 60px);
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-faq__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF;
}

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

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

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-faq__btn-primary:hover {
  background-color: #d46f06;
  border-color: #d46f06;
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-faq__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-faq__inline-btn {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 15px;
}

.page-faq__inline-btn:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
}

/* Content Area */
.page-faq__content-area {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-faq__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #26A9E0;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

/* FAQ List */
.page-faq__faq-list {
  margin-top: 30px;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-item details {
  width: 100%;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  user-select: none;
}

.page-faq__faq-item details > summary {
  list-style: none;
}

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

.page-faq__faq-question:hover {
  background-color: #e5e5e5;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  color: #555555;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

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

.page-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
}

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

.page-faq__image--full-width {
  width: 100%;
}

/* CTA Section at bottom */
.page-faq__cta-section {
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 50px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 60px;
}

.page-faq__cta-title {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #e0f2f7;
}

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

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    min-height: 300px;
  }
  .page-faq__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__inline-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;
  }
  .page-faq__content-area {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__sub-title {
    font-size: 1.4em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-faq__faq-answer {
    font-size: 1em;
    padding: 15px;
  }
  .page-faq__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 15px auto !important;
  }
  .page-faq__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq__cta-section {
    padding: 40px 15px;
    margin-top: 40px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__cta-title {
    font-size: 1.6em;
  }
}