/* Stylesheet voor Socranext componenten */

/* Container & section titles */
.socranext-frontend-block {
max-width: 1170px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.socranext-qalist h2 {
  font-size: 2rem;
  margin-bottom: 0;
}

/* FAQ list */
.socranext-qa-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.socranext-qa:first-child {
  border-top: 1px solid #eee;
  padding-top: 30px;
  margin-top: 30px;
}

.socranext-qa {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

/* Question styling */
.socranext-q {
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 1.5rem;
  position: relative;
}

.socranext-q strong {
  font-weight: 600;
  flex: 1;
}

/* Plus/Minus icon */
.socranext-icon-collapsed, 
.socranext-icon-expanded {
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.socranext-qa.open .socranext-icon-collapsed {
  display: none;
}

.socranext-qa .socranext-icon-expanded {
  display: none;
}

.socranext-qa.open .socranext-icon-expanded {
  display: block;
}

/* Answer styling and animation */
.socranext-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.socranext-qa.open .socranext-a {
  max-height: 500px; /* ensures enough space */
}

/* Small screens */
@media (max-width: 600px) {
  .socranext-frontend-block {
    padding: 1rem;
  }

  .socranext-qalist h2 {
    font-size: 1.5rem;
  }

  .socranext-q {
    font-size: 1rem;
  }
}
