.faqs_title-wrapper { cursor: pointer; } .faqs_title-wrapper.faqs_title-top { display: flex; justify-content: space-between; } .faqs_title-wrapper h4 { padding: 10px ; margin-bottom: 10px; border-radius: 5px; } .faqs_title-wrapper h4 { background: unset; color: unset; transition: all .3s ease; } .faqs_title-wrapper h4.active, .faqs_title-wrapper h4:hover { background: #216185; color: #FFF; transition: all .3s ease; } .faqs-list-inner { display: none; } .faqs-list-inner.faqs_type-0 { display: block; } .faqs_title-left .faqs_question:first-child { margin-top: 0; } .faqs_question { position: relative; display: inline-block; width: 100%; padding: 10px 40px 10px 20px; background: #c8ceac; color: #212529; margin-top: 20px; border-radius: 5px; transition: all .3s ease; } .faqs_question.active, .faqs_question:hover { background: #216185; color: #FFF; transition: all .3s ease; } .faqs_answer { display: none; padding: 20px 15px; background: rgb(200 206 172 / 30%); color: #212529; margin-top: -5px; border-radius: 0 0 15px 15px; } .faqs_question, .faqs_title-wrapper h4 { cursor: pointer; } .toggle_icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(0); max-width:21px; max-height: 21px; transition: all .3s ease; } .faqs_question.active .toggle_icon{ transform: translateY(-50%) rotate(180deg); transition: all .3s ease; } .toggle_icon img { vertical-align: top; } .faqs_question.active .icon_first { opacity: 0; transition: all .3s ease; } .icon_hover { position: absolute; top: 0; left: 0; opacity: 0; top: 50%; transform: translateY(-50%); transition: all .3s ease; } .faqs_question.active .icon_hover, .icon_first { opacity: 1; transition: all .3s ease; } @media screen and (max-width: 767px) { .faqs_title-wrapper.faqs_title-top { white-space: nowrap; overflow-x: auto; } .faqs_title-wrapper { display: inline-flex; overflow-x: auto; white-space: nowrap; width: 100%; } .faqs_title-wrapper h4 { margin-right: 1rem; } .faqs_title-wrapper h4:last-child { margin-right: 0; } .faqs_title-left .faqs_question:first-child { margin-top: 20px; } }