/* style/faq.css */

/* --- General Styles for page-faq scope --- */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background, so light text */
  background-color: transparent; /* Body background from shared.css */
}

/* --- Hero Section --- */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  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: 40px;
  border-radius: 10px;
  background: rgba(1, 116, 57, 0.85); /* Brand color with transparency */
  color: #ffffff;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* --- Content Area --- */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #1a1a2e; /* Match body background for consistency */
  color: #ffffff;
}

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

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

/* --- FAQ List --- */
.page-faq__faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-faq__faq-group {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for groups */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center; /* Center image and title */
}

.page-faq__faq-group-title {
  font-size: 2em;
  color: #017439; /* Brand color for group titles */
  margin-bottom: 25px;
  text-align: center;
}

.page-faq__group-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure image is block level */
}

.page-faq__faq-item {
  background: rgba(255, 255, 255, 0.05); /* Even lighter background for individual items */
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;
  width: 100%; /* Take full width of its parent */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(1, 116, 57, 0.7); /* Darker brand color for question */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #017439; /* Solid brand color on hover */
}

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

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: rgba(255, 255, 255, 0.03); /* Very light background for answer */
  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; /* Sufficiently large to reveal content */
  padding: 15px 25px;
}

.page-faq__faq-answer p {
  margin: 0 0 10px 0;
  color: #f0f0f0;
}

/* --- Call to Action Section --- */
.page-faq__cta-section {
  text-align: center;
  background: rgba(1, 116, 57, 0.7); /* Brand color with transparency */
  padding: 50px 30px;
  border-radius: 8px;
  margin-top: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-faq__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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