.accordion {
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 10px;
}

.accordion section {
    border-bottom: 1px solid #ccc;
    margin: 5px;
    background-color: #fff;
    background-image: linear-gradient(top, #fff, #eee);
    border-radius: 5px;
}

.accordion h2 {
    margin: 0;
}

.accordion p {
    padding: 0 10px;
}

.accordion h2 a {
    display: block;
    position: relative;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px;
    color: #333;
    border-radius: 5px;
}

.accordion h2 a:hover {
    background: #fff;
}

.accordion h2 + div {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.accordion :target h2 a:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -3px;
    border-top: 5px solid #333;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.accordion :target h2 + div {
    max-height: 100px;
}
