/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from shared, but for clarity */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-faq__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

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

.page-faq__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* General Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #ffffff; /* Ensure text is light on dark background */
}

.page-faq__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-intro {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark body */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker on hover */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question h3 {
  font-size: 1.3em;
  color: #FFFFFF;
  margin: 0;
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.8em;
  color: #FFFF00; /* Yellow for toggle icon */
  margin-left: 20px;
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 25px 25px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1.05em;
}

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 15px;
  list-style-type: disc;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.page-faq__image-inline {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
  width: 100%; /* Ensure it takes full width of its container */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Call to Action Section */
.page-faq__cta-section {
  background-color: #017439; /* Brand color background */
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
}

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

.page-faq__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
  margin-top: 15px;
  margin-left: 15px;
}

.page-faq__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    height: 500px;
  }

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

  .page-faq__hero-description {
    font-size: 1.1em;
  }

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

  .page-faq__faq-question h3 {
    font-size: 1.1em;
  }

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

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

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

  .page-faq__faq-question h3 {
    font-size: 1em;
  }

  .page-faq__faq-toggle {
    font-size: 1.5em;
  }

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

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

  .page-faq__faq-answer p,
  .page-faq__faq-answer li {
    font-size: 0.95em;
  }

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 10px !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  
  .page-faq__image-inline {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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 {
    height: 350px;
  }

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

  .page-faq__hero-description {
    font-size: 0.9em;
  }

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

  .page-faq__faq-question h3 {
    font-size: 0.9em;
  }

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