:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #26A9E0; /* Using primary color for dark sections */
  --border-color: #e0e0e0;
  --button-login-color: #EA7C07;
}

/* Base styles for FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light body background */
  background-color: var(--background-light); /* Assuming body background is light from shared.css */
}

/* Fixed Header Offset - applying to main content area */
.page-faq {
  padding-top: var(--header-offset, 120px);
}

.page-faq__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

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

.page-faq__section-title--light {
  color: var(--text-color-light);
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--background-light)); /* Gradient from primary to light background */
  color: var(--text-color-dark);
}

.page-faq__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-faq__main-title {
  font-size: 42px;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 18px;
  color: var(--text-color-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-login-color); /* Using custom login color for CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-button:hover {
  background: #d76e00; /* Darken on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-image {
  width: 100%;
  margin-top: 40px;
}

.page-faq__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-faq__general-questions {
  background-color: var(--background-light);
  padding: 80px 0;
}

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

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: var(--text-color-dark);
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Ensures it can expand to any content length */
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--secondary-color);
  border-radius: 0 0 10px 10px;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: #f0f0f0;
  border-color: #c0c0c0;
}

.page-faq__faq-question:active {
  background: #e0e0e0;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color); /* Using primary color for questions */
  pointer-events: none; /* Prevents h3 from blocking click event */
}

.page-faq__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.page-faq__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #1e87b7; /* Slightly darker primary color */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevents icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--button-login-color); /* Change color when active */
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}


/* CTA Section at the bottom */
.page-faq__cta-section {
  background: var(--background-dark); /* Using primary color for dark section */
  color: var(--text-color-light);
  text-align: center;
  padding: 80px 0;
  border-radius: 10px;
  margin-top: 40px;
}

.page-faq__cta-section .page-faq__section-title {
  color: var(--text-color-light);
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: var(--text-color-light);
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  margin-bottom: 40px;
}
}