/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
}

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

.page-faq-hero {
  background: linear-gradient(135deg, #007BFF, #4da3ff); /* Primary color with a lighter variant */
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-faq-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-faq-subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.page-faq-hero-image-wrapper {
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 300px;
  height: auto;
  opacity: 0.7;
  z-index: 0;
  display: none; /* Hide on small screens */
}

.page-faq-hero-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.3));
}

.page-faq-content {
  padding: 60px 0;
}

.page-faq-section-title {
  font-size: 2.2em;
  color: #007BFF; /* Primary color */
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-faq-section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Auxiliary color */
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-faq-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.page-faq-category-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #333;
  width: 180px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-faq-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #007BFF;
  color: #007BFF;
}

.page-faq-category-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

.page-faq-category-card h3 {
  font-size: 1.1em;
  margin: 0;
  color: #007BFF; /* Primary color for category titles */
}

.page-faq-accordion {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-faq-accordion-category-title {
  font-size: 1.8em;
  color: #0056b3; /* Darker variant of primary for better contrast on white background */
  padding: 25px 30px 15px;
  margin-top: 40px;
  margin-bottom: 0;
  background-color: #f0f8ff; /* Lighter background for category headers */
  border-bottom: 1px solid #e0e0e0;
}

.page-faq-accordion-category-title:first-of-type {
  margin-top: 0;
}

.page-faq-accordion-item {
  border-bottom: 1px solid #eee;
}

.page-faq-accordion-item:last-child {
  border-bottom: none;
}

.page-faq-accordion-header {
  background-color: #fff;
  padding: 20px 30px;
  font-size: 1.15em;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.page-faq-accordion-header:hover {
  background-color: #f5f5f5;
}

.page-faq-accordion-header::after {
  content: '+';
  font-size: 1.5em;
  font-weight: bold;
  color: #007BFF; /* Primary color */
  transition: transform 0.3s ease;
}

.page-faq-accordion-header.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-faq-accordion-content {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background-color: #fcfcfc;
}

.page-faq-accordion-content.active {
  max-height: 500px; /* Adjust based on expected content length */
  padding: 20px 30px;
}

.page-faq-accordion-content p {
  margin-bottom: 15px;
  color: #555;
}

.page-faq-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 15px;
  margin-right: 10px;
  white-space: nowrap;
}

.page-faq-btn-primary {
  background-color: #007BFF; /* Primary color */
  color: #fff;
  border: 2px solid #007BFF;
}

.page-faq-btn-primary:hover {
  background-color: #0056b3; /* Darker primary */
  border-color: #0056b3;
  transform: translateY(-2px);
}

.page-faq-btn-secondary {
  background-color: #FFD700; /* Auxiliary color */
  color: #333;
  border: 2px solid #FFD700;
}

.page-faq-btn-secondary:hover {
  background-color: #e6c200; /* Darker auxiliary */
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-faq-cta {
  background: linear-gradient(135deg, #007BFF, #0056b3); /* Primary color gradient */
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.page-faq-cta-image {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 150px;
  height: auto;
  opacity: 0.3;
  display: none; /* Hide on small screens */
}

.page-faq-cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #fff;
}

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

/* Responsive Design */
@media (min-width: 768px) {
  .page-faq-hero-image-wrapper {
    display: block;
    width: 400px;
    bottom: -30px;
  }
  .page-faq-cta-image {
    display: block;
  }
}

@media (max-width: 768px) {
  .page-faq-title {
    font-size: 2.5em;
  }
  .page-faq-subtitle {
    font-size: 1em;
  }
  .page-faq-categories {
    flex-direction: column;
    align-items: center;
  }
  .page-faq-category-card {
    width: 90%;
  }
  .page-faq-section-title {
    font-size: 1.8em;
  }
  .page-faq-accordion-header {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-faq-accordion-content.active {
    padding: 15px 20px;
  }
  .page-faq-cta-title {
    font-size: 2em;
  }
  .page-faq-cta-description {
    font-size: 0.95em;
  }
  .page-faq-btn {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .page-faq-hero {
    padding: 60px 0;
  }
  .page-faq-title {
    font-size: 2em;
  }
  .page-faq-subtitle {
    font-size: 0.9em;
  }
  .page-faq-content {
    padding: 40px 0;
  }
  .page-faq-section-title {
    font-size: 1.5em;
  }
  .page-faq-accordion-header {
    font-size: 0.95em;
    padding: 12px 15px;
  }
  .page-faq-accordion-content.active {
    padding: 12px 15px;
  }
  .page-faq-btn {
    display: block;
    width: fit-content;
    margin: 10px auto;
  }
}