/* style/faq.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --text-color: #333333;
  --heading-color: #222222;
  --background-light: #f8f9fa;
  --background-dark: #e9ecef;
  --border-color: #dee2e6;
  --white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-light);
}

.page-faq a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq a:hover {
  color: var(--secondary-color);
}

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

.page-faq-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 15px var(--shadow-light);
}

.page-faq-hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: bold;
  line-height: 1.2;
}

.page-faq-hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-faq-cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq-cta-button:hover {
  background-color: #218838; /* Darker secondary color */
  transform: translateY(-3px);
}

.page-faq-section {
  padding: 60px 0;
  background-color: var(--white);
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.page-faq-section:nth-of-type(odd) {
  background-color: var(--background-light);
}

.page-faq-section-title {
  font-size: 2.5em;
  color: var(--heading-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-faq-section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-color);
}

.faq-list {
  margin-top: 30px;
  display: grid;
  gap: 15px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--background-dark);
}

.faq-question h3 {
  font-size: 1.25em;
  color: var(--heading-color);
  margin: 0;
  font-weight: 600;
  flex-grow: 1;
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background-color: var(--background-light);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin: 0;
  color: var(--text-color);
  font-size: 1.05em;
}

.page-faq-image-wrapper {
  text-align: center;
  margin-top: 50px;
  padding: 0 20px;
}

.page-faq-content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-light);
  object-fit: cover;
}

.page-faq-cta-final {
  background: linear-gradient(45deg, var(--secondary-color) 0%, #1e7e34 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  border-radius: 15px;
  margin-top: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.page-faq-cta-final-content {
  max-width: 900px;
}

.page-faq-cta-final-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: bold;
}

.page-faq-cta-final-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq-hero-title {
    font-size: 2.8em;
  }
  .page-faq-hero-description {
    font-size: 1.1em;
  }
  .page-faq-section-title {
    font-size: 2em;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .page-faq-cta-final-title {
    font-size: 2.2em;
  }
  .page-faq-cta-final-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-faq-hero {
    padding: 60px 0;
  }
  .page-faq-hero-title {
    font-size: 2.2em;
  }
  .page-faq-hero-description {
    font-size: 1em;
  }
  .page-faq-section {
    padding: 40px 0;
  }
  .page-faq-section-title {
    font-size: 1.8em;
  }
  .page-faq-section-intro {
    font-size: 0.95em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-faq-cta-final {
    padding: 60px 0;
  }
  .page-faq-cta-final-title {
    font-size: 1.8em;
  }
  .page-faq-cta-final-description {
    font-size: 1em;
  }
  .page-faq-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-faq-hero-title {
    font-size: 1.8em;
  }
  .page-faq-hero-description {
    font-size: 0.9em;
  }
  .page-faq-section-title {
    font-size: 1.5em;
  }
  .faq-question h3 {
    font-size: 0.95em;
  }
  .faq-toggle {
    font-size: 1.3em;
  }
  .page-faq-cta-final-title {
    font-size: 1.6em;
  }
}