/* style/faq.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #0f1c2c; /* Assuming a dark background from shared.css for contrast */
  --login-button-color: #EA7C07;
}

/* Base styles for the page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default to dark text for light background */
  background-color: var(--bg-light); /* Default to light background */
}

.page-faq__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-faq__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  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 */
  overflow: hidden;
  box-sizing: border-box;
}

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

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

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

.page-faq__btn-primary:hover {
  background-color: darken(var(--login-button-color), 10%);
  border-color: darken(var(--login-button-color), 10%);
}

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

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

/* Content Area */
.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

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

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

.page-faq__faq-item {
  background-color: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.page-faq__faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-color);
  background-color: #f9f9f9;
  list-style: none;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

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

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

.page-faq__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-dark);
  border-top: 1px solid #e0e0e0;
  background-color: var(--bg-light);
}

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

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

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

.page-faq__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Call to Action Section */
.page-faq__call-to-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  gap: 40px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

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

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-faq__cta-image-wrapper {
  width: 100%;
  max-width: 600px;
}

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

/* Responsive Styles */
@media (min-width: 769px) {
  .page-faq__hero-section {
    flex-direction: row;
    text-align: left;
    gap: 40px;
    padding: 80px 40px;
  }

  .page-faq__hero-image-wrapper {
    width: 50%;
    margin-bottom: 0;
  }

  .page-faq__hero-content {
    width: 50%;
    text-align: left;
  }

  .page-faq__cta-buttons {
    justify-content: flex-start;
  }

  .page-faq__call-to-action {
    flex-direction: row;
    text-align: left;
    padding: 80px 40px;
  }

  .page-faq__cta-content {
    width: 60%;
  }

  .page-faq__cta-image-wrapper {
    width: 40%;
  }
}

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

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-left: 15px;
    padding-right: 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;
  }

  .page-faq__content-area {
    padding: 40px 15px;
  }

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

  .page-faq__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-faq__faq-answer {
    padding: 15px;
  }

  .page-faq__call-to-action {
    padding: 50px 15px;
  }

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

  .page-faq__cta-description {
    font-size: 1em;
  }

  /* Image responsive rules */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__hero-image-wrapper,
  .page-faq__cta-image-wrapper,
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__call-to-action,
  .page-faq__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}