var acc = document.getElementsByClassName("accordion");
var i;

for (i = 0; i < acc.length; i++) {
  acc[i].addEventListener("click", function() {
    this.classList.toggle("active");
    var panel = this.nextElementSibling;
    if (panel.style.display === "block") {
      panel.style.display = "none";
      this.style.borderBottomStyle = "solid"
      this.style.borderRadius = "0.75rem"
    } else {
      panel.style.display = "block";
      this.style.borderBottomStyle = "dashed";
      this.style.borderRadius = "0px"
    }
  });
}