/**
 * Frontend CSS for FAQ Plugin
 */

/*FAQ*/
.faq-section-container {
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

@media only screen and (max-width: 768px) {
  .faq-section-container {
    padding: 1rem;
  }
}

.bek-n-accordion .bek-n-accordion-item {
  border-bottom: 1px solid #e5e5e5;
}

.bek-n-accordion .bek-n-accordion-item[open] {
  border-bottom: 1px solid #FAAF40;
}

.bek-n-accordion summary {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  width: -moz-fit-content;
  justify-content: space-between;
  text-align: left;
  width: 100%;
  padding: 1em 0;
  color: #161d26;
  font-size: 1.15rem;
  font-weight: 600;
  border: none;
  background: none;
  outline: none;
}

.bek-n-accordion summary:hover,
.bek-n-accordion summary:focus {
  cursor: pointer;
  color: #FAAF40;
}

.faq-content {
  padding: 10px;
}

.bek-n-accordion-item[open] summary {
  color: #FAAF40;
}

.bek-n-accordion-item[open] .faq-content {
  max-height: 100%;
  opacity: 1;
  transition: max-height 200ms ease-in-out, opacity 200ms ease-in-out;
  text-align: left;
}

.bek-n-accordion .faq-content {
  max-height: 0;
  opacity: 0; 
  overflow: hidden;
  transition: max-height 200ms ease-in-out, opacity 200ms ease-in-out;
  text-align: left;
}

.bek-n-accordion-item[open] summary {
  color: #FAAF40;
}

.bek-n-accordion .faq-content p {
  font-size: 1rem;
  font-weight: 400;
}

.bek-n-accordion-item-title-icon {
  display: flex;
}

.bek-e-closed {
  display: flex;
  width: 15px;
  height: 15px;
}

.bek-e-opened {
  display: none;
  width: 15px;
  height: 15px;
}

.bek-e-closed svg {
  fill: #FAAF40; 
}

.bek-e-opened svg {
  fill: #1f2124; 
}

.bek-n-accordion-item-title::-webkit-details-marker {
  display: none;
}

.bek-n-accordion-item-title-header {
  flex-grow: 1;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.bek-n-accordion-item-title-text {
  margin-right: 20px;
}

/* Learn more button styles */
.faq-learn-more-link {
  margin-top: 15px;
}

.learn-more-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #FAAF40;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.learn-more-button:hover {
  background-color: #e79c2b;
  text-decoration: none;
  color: #fff;
} 