/* style/faq.css */

/* Base styles for the page content */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 450px;
  background-color: #1a1a2e; /* Explicitly set for clarity if shared.css doesn't apply to specific sections */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

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

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 2;
  width: 100%; /* Ensure container takes full width on mobile */
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: 3.2em;
  color: #FFFF00; /* Custom color for register/login font, applied to H1 for prominence */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  line-height: 1.2;
}

.page-faq__intro-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* Main Content Area */
.page-faq__content-area {
  background-color: #ffffff; /* Light background for content area */
  color: #333333; /* Dark text for light background */
  padding: 60px 20px;
}

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

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

/* FAQ List */
.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #eaf7ed; /* Lighter shade of brand green */
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #017439; /* Brand color for questions */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #dbeedc; /* Slightly darker on hover */
}

.page-faq__faq-question h3 {
  margin: 0;
  color: inherit; /* Inherit color from parent */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

.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: #333333;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

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

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

.page-faq__faq-answer a {
  color: #017439; /* Brand color for links within answers */
  text-decoration: underline;
}

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

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

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

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

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-faq__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border-color: #C30808;
}

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

.page-faq__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand color */
  border-color: #017439;
}

.page-faq__btn-secondary:hover {
  background-color: #eaf7ed;
  color: #017439;
  border-color: #017439;
}