.accordion {
margin: 0em auto;
max-width: 100%;
}
.toggle {
display: none;
}
.option {
position: relative;
margin-bottom: 7px;
}
.title,
.content {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
transform: translateZ(0);
transition: all 0.3s;
}
.title {
border: solid 1px #ccc;
background: #7CB7C9;
padding: 0.4em 0.4em 0.4em 0.6em;
display: block;
font-weight: normal;
}
.title::after,
.title::before {
content: "";
position: absolute;
right: 1.25em;
top: 0.9em;
width: 2px;
height: 0.75em;
background-color: #ffffff;
transition: all 0.3s;
}
.title::after {
transform: rotate(90deg);
}
.content {
max-height: 0;
overflow: hidden;
}
.content p {
margin: 0;
padding: 0.5em 0.3em 0em;
font-size: clamp(0.813rem, 0.744rem + 0.34vw, 1rem); /*13px 16px */
line-height: 1.5;
}
.toggle:checked + .title + .content {
max-height: 800px;
transition: all 1.5s;
}
.toggle:checked + .title::before {
transform: rotate(90deg) !important;
}