/**
 * Frontend styles for the Accordion Block
 */

.accordion-section {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-title {
  font-size: 1.1rem;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  color: #222;
  background: #eeeeee;
  position: relative;
  font-weight: 600;
  border-left: 4px solid #3649e2;
}

.accordion-title:hover {
  background-color: #e6e6e6;
}

.accordion-title::before {
  content: "+";
  font-family: monospace;
  margin-right: 10px;
  font-size: 18px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  display: inline-block;
  color: #3649e2;
  transition: all 0.2s ease-in-out;
}

.active-accordion-section > .accordion-title {
  background-color: #e6e6e6;
  color: #3649e2;
}

.active-accordion-section > .accordion-title::before {
  content: "-";
  color: #e2cf36;
}

.accordion-content {
  padding: 20px;
  border: 1px solid #eeeeee;
  background-color: #ffffff;
}

/* Ensure lists inside accordions use the main content styling */
.accordion-content ul,
.accordion-content ol {
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: 1rem;
}

.accordion-content li {
  font-size: 1rem;
  list-style-type: disc;
}

/* Add some spacing between paragraphs */
.accordion-content p {
  margin-bottom: 1rem;
}

/* Style for the last element to remove extra margin */
.accordion-content > *:last-child {
  margin-bottom: 0;
}

/* Card-like styling for paragraphs when needed */
.accordion-content .content-card {
  background-color: #eeeeee;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 3px solid #e2cf36;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .accordion-title {
    font-size: 1rem;
    padding: 12px 15px;
  }
  
  .accordion-content {
    padding: 15px;
  }
}