
/* Remove default triangle */
details summary::-webkit-details-marker {
  display: none;
}
summary {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 20px;
  border-bottom: 1px solid var(--color-text-primary);
}

.section-title {
  font-weight: bold;
  margin-bottom: 8px;
}

/* The Centered Caret */
.caret {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-text-primary);
  border-bottom: 2px solid var(--color-text-primary);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-top: 5px;
}

/* Rotate caret when open */
details[open] .caret {
  transform: rotate(-135deg);
  margin-top: 12px; /* Adjusting for rotation offset */
}

/* Content Styling */
.content {
  padding: 8px;
   animation: fadeIn 0.4s ease;
  min-height: 140px;

}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}