/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for default light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #e0f7fa, #bbdefb);
  gap: 40px;
}

.page-faq__hero-content {
  max-width: 800px;
}

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

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

.page-faq__hero-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color */
  color: #333333;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 10px 15px;
  border: none;
  cursor: pointer;
}

.page-faq__hero-button:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

.page-faq__hero-image-container {
  width: 100%;
  max-width: 1000px; /* Limit hero image width */
  margin-top: 40px;
}

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

/* Accordion Section */
.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-faq__section-title {
  text-align: center;
  font-size: 2.5em;
  color: #007bff;
  margin-bottom: 50px;
}

.page-faq__accordion-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-faq__accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 25px;
  background-color: #f0f8ff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.3em;
  color: #333333;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-faq__accordion-header h3 {
  margin: 0;
  font-size: 1.3em;
  color: #333333;
}

.page-faq__accordion-header:hover {
  background-color: #e6f7ff;
}

.page-faq__accordion-icon {
  font-size: 1.5em;
  color: #007bff;
  transition: transform 0.3s ease;
}

.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon {
  transform: rotate(45deg);
}

.page-faq__accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
}

.page-faq__accordion-content p {
  padding: 20px 0;
  margin: 0;
  color: #555;
  font-size: 1.1em;
}

.page-faq__accordion-content a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__accordion-content a:hover {
  text-decoration: underline;
}

.page-faq__keyword {
  font-weight: bold;
  color: #007bff;
}

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

/* Call to Action Section */
.page-faq__cta-section {
  background-color: #007bff; /* Main color */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-faq__cta-content {
  position: relative;
  z-index: 1;
}

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

.page-faq__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color */
  color: #333333;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq__cta-button:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

.page-faq__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq__hero-title {
    font-size: 2.5em;
  }
  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 2em;
  }
  .page-faq__accordion-header h3 {
    font-size: 1.2em;
  }
  .page-faq__hero-section {
    padding: 60px 20px;
  }
  .page-faq__cta-section {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    flex-direction: column;
    padding: 40px 15px;
  }
  .page-faq__hero-title {
    font-size: 2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__hero-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 0 5px 10px;
  }
  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__accordion-header {
    padding: 15px 20px;
  }
  .page-faq__accordion-header h3 {
    font-size: 1.1em;
  }
  .page-faq__accordion-content p {
    font-size: 1em;
    padding: 15px 0;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  /* Mobile content image constraint */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__hero-button {
    display: block;
    margin: 10px auto;
  }
  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.5em;
  }
  .page-faq__accordion-header h3 {
    font-size: 1em;
  }
  .page-faq__accordion-icon {
    font-size: 1.2em;
  }
}