.hero-section-faq {
  padding: 6rem 0;
  padding-bottom: 16rem;
  background-color: #f8f9fa;
  background: url("/public/img/faq-landing.webp") center bottom no-repeat;
  background-size: cover;
  height: 100%;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  color: white;
}

.hero-section-faq h1 {
  font-family: "Cormorant Infant", serif;
  font-size: 5rem;
  font-weight: 600;
}

.hero-section-faq p {
  font-family: "DM Sans", sans-serif;
  font-size: 1.5rem;
}

.hero-section-faq .btn {
  font-family: "DM Sans", sans-serif;
  padding: 1rem 2rem;
  background-color: #0d233f;
  border-color: #0d233f;
  font-size: 1.25rem;
  color: white;
}

.hero-section-content {
  padding-left: 1rem;
}

.faq-title {
  color: #495057;
}

.landing-gray {
  color: #cccccc;
}

.highlight-blue {
  color: #000 !important;
}

/* FAQ Section */
.faq-section {
  background-color: #ffffff;
}

.faq-categories p {
  margin-bottom: 0.5rem;
  color: #676766 !important;
}

.faq-category-link {
  text-decoration: none;
  color: #212529; /* Bootstrap's default dark text color */
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: "DM Sans", sans-serif;
}

.faq-category-link:hover {
  color: #0d6efd; /* Bootstrap's primary color */
}

/* Modern Accordion Styles */
.accordion-item {
  border: none;
  border-bottom: 1px solid #dee2e6; /* Light gray border */
  background-color: transparent;
}

.accordion-item:first-of-type,
.accordion-item:last-of-type {
  border-radius: 0;
}

.accordion-button {
  font-family: "Cormorant Infant", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  background-color: transparent;
  padding: 1.5rem 1.25rem;
  box-shadow: none;
  text-align: left;
}

.accordion-button:not(.collapsed) {
  color: #ffffff;
  background-color: #0d233f;
  box-shadow: none;
}

.accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3e%3c/svg%3e");
  transform: rotate(0deg); /* No rotation needed for minus sign */
}

.accordion-body {
  padding: 1.25rem 1.25rem 1.5rem 1.25rem;
  font-family: "DM Sans", sans-serif;
  color: #6c757d; /* Muted text color */
}

/* Impact Section */
.impact-section {
  background-color: #f8f9fa; /* Light grey background */
}

.impact-highlight {
  color: #b99753; /* Gold color from image */
}

.impact-section .text-muted {
  color: #555 !important;
}

.impact-section strong {
  color: #0d233f;
  font-weight: 600;
}

.impact-text {
  text-align: justify;
}

.impact-cards {
  padding-left: 1rem;
}

.impact-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
}

.impact-card-dot {
  width: 20px;
  height: 20px;
  background-color: #0d233f;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.impact-card h5 {
  margin-bottom: 1rem;
}

.impact-card p {
  text-align: justify;
}

.impact-section .btn-primary {
  background-color: #0d233f;
  border-color: #0d233f;
}

.impact-card-col-staggered {
  margin-top: 3rem;
}

@media (max-width: 767.98px) {
  .impact-card-col-staggered {
    margin-top: 0;
  }
}

/* FAQ Contact Section */
.contact-section-faq {
  background-color: #f8f9fa;
}

.contact-image-wrapper {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-image-wrapper img {
  object-fit: cover;
  height: 550px;
  aspect-ratio: 1/1;
}

.contact-form-wrapper {
  padding: 5rem;
  background-color: #ffffff;
  height: 100%;
}

.contact-form-wrapper .form-label {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #6c757d;
}

.contact-form-wrapper .form-control {
  border: none;
  border-bottom: 1px solid #dee2e6;
  border-radius: 0;
  padding-left: 0;
  background-color: transparent;
}

.contact-form-wrapper .form-control:focus {
  box-shadow: none;
  border-color: #0d233f;
}

.contact-form-wrapper .btn-gold {
  background-color: #b99753;
  color: white;
  padding: 1rem;
  border-radius: 50px;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

.contact-section-faq h2 em {
  font-style: italic;
  font-family: "Cormorant Infant", serif;
}

.contact-quote {
  font-style: italic;
  border-left: none;
  padding: 0;
  margin: 0 0 3rem 0;
}

#faq-contact-message {
  resize: none;
}

@media (min-width: 991.98px) {
  .impact-cards .col-md-6:nth-child(odd) {
    margin-top: -3rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section-faq {
    flex-direction: column;
    padding: 2rem 0.5rem;
    padding-right: 10rem;
    padding-bottom: 0.5rem;
    aspect-ratio: unset;
    min-height: unset;
    text-align: start;
    background-position: center center;
    color: #fff;
  }
  .hero-section-faq .landing-gray {
    color: #cccccc;
  }
  .hero-section-faq h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .hero-section-faq p {
    font-size: 1rem;
  }
  .hero-section-faq .btn {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    width: max-content;
    align-self: start;
  }
  .hero-section-content {
    display: flex !important;
    flex-direction: column;
    justify-content: start;
  }
  .faq-section,
  .impact-section,
  .contact-section-faq {
    padding: 1.5rem 0.5rem;
  }
  .accordion-button {
    font-size: 1rem;
    padding: 1rem 0.75rem;
  }
  .accordion-body {
    padding: 1rem 0.75rem 1.2rem 0.75rem;
    font-size: 0.98rem;
  }
  .impact-section .btn-primary {
    width: max-content;
  }
  .impact-text {
    text-align: center;
  }
  .impact-cards {
    padding-left: 0;
  }
  .impact-card {
    padding: 1.2rem;
  }
  .impact-card h5 {
    font-size: 1.1rem;
  }
  .impact-card-dot {
    width: 16px;
    height: 16px;
  }
  .contact-form-wrapper {
    padding: 1.75rem 2rem;
  }
  .contact-form-wrapper .form-label {
    font-size: 0.9rem;
  }
  .contact-form-wrapper .btn-gold {
    padding: 0.7rem;
    font-size: 1rem;
  }
}

@media (max-width: 991.98px) and (min-width: 575.98px) {
  .hero-section-faq {
    padding: 4rem 0.5rem;
    padding-bottom: 0rem;
    padding-right: 25rem;
    background-position: right top -2.5rem;
  }
  .hero-section-faq h1 {
    font-size: 3rem;
    line-height: 1.2;
  }
  .hero-section-faq p {
    font-size: 1rem;
  }
  .impact-section .btn-primary {
    margin-top: 3.5rem !important;
    text-align: center;
  }
}

@media (min-width: 1430px) {
  .hero-section-faq {
    background-position: right top -4rem;
  }

  .col-custom-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}
