/*

 Theme Name:   GeneratePress Child

 Theme URI:    https://generatepress.com

 Description:  Default GeneratePress child theme

 Author:       Tom Usborne

 Author URI:   https://tomusborne.com

 Template:     generatepress

 Version:      0.1

*/


.custom-faq-accordion .jet-listing-dynamic-repeater__items  {
    flex-direction: column;
}

/* Accordion container styles */
.custom-faq-accordion .jet-listing-dynamic-repeater {
  max-width: 800px;
  margin: 0 auto;
}

/* Individual accordion item */
.custom-faq-accordion .jet-listing-dynamic-repeater__item {
  background-color: #FEF7DE;
  margin-bottom: 10px;
  border: 1px solid transparent;
  transition: background-color 0.3s ease, border 0.3s ease;
}

/* Hover state */
.custom-faq-accordion .jet-listing-dynamic-repeater__item:hover {
  background-color: #fdc601;
}


/* Active state */
.custom-faq-accordion .jet-listing-dynamic-repeater__item.active {
    background-color: white;
  border: 1px solid #fdc601;
}

.custom-faq-accordion .jet-listing-dynamic-repeater__item.active .accordion-header::after{
  transform: rotate(180deg);
  transform-origin: center center;
}

/* Accordion header */
.custom-faq-accordion .accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 25px;
  cursor: pointer;
  position: relative;
}

.custom-faq-accordion .accordion-header::after {
     content: "";
  position: absolute;
  right: 30px;
  top: 50%;
  width: 15px;
  height: 9px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-size: 15px 9px;
  background-image: url("data:image/svg+xml;utf8,<svg width='15' height='9' viewBox='0 0 15 9' xmlns='http://www.w3.org/2000/svg'><path d='M7.5984 9L-3.41193e-07 1.95139L2.04685 3.57882e-07L7.56925 5.1219L12.924 0.0137155L15 1.93905' fill='%231D1D1B'/></svg>");
  transition: all 150ms ease-in-out;
}

/* FAQ heading */
.custom-faq-accordion .accordion-header span:first-child {
  font-weight: bold;
  font-size: 1.1em;
}

/* Accordion content */
.custom-faq-accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Active content state */
.custom-faq-accordion .jet-listing-dynamic-repeater__item.active .accordion-content {
  max-height: 200px; /* Adjust if needed */
  padding: 0px 25px 28px 25px;
}

/* Answer text */
.custom-faq-accordion .accordion-content span {
  display: block;
  font-size: 1em;
  line-height: 1.5;
}