@use '../utils' as *;
/*----------------------------------------*/
/* 2.12 Accordion
/*----------------------------------------*/
.mt-custom-accordion {
& .accordion-items {
margin-bottom: 20px;
background-color: rgb(255, 255, 255);
box-shadow: 2px 3.464px 20px 0px rgba(16, 23, 40, 0.06);
}
& .accordion-buttons {
position: relative;
width: 100%;
font-weight: 700;
font-size: 18px;
text-align: left;
padding: 21px 30px;
padding-left: 75px;
transition: .3s;
color: var(--mt-common-white);
background-color: var(--mt-common-white);
@media #{$lg} {
font-size: 17px;
}
@media #{$md} {
font-size: 16px;
}
@media #{$xs} {
font-size: 15px;
padding: 21px 20px;
padding-left: 63px;
}
@media #{$sm} {
font-size: 14px;
}
&:hover {
background-color: var(--mt-theme-1);
color: var(--mt-common-white);
&::after {
background-color: var(--mt-common-white);
color: var(--mt-common-white);
}
}
&::after {
position: absolute;
content: "\f068";
font-family: 'Font Awesome 5 Pro';
top: 19px;
left: 30px;
font-weight: 700;
font-size: 12px;
opacity: 1;
width: 25px;
height: 25px;
line-height: 25px;
text-align: center;
border-radius: 50%;
background-color: var(--mt-theme-1);
color: var(--mt-common-white);
transition: .3s;
@media #{$xs} {
left: 20px;
}
}
&.collapsed {
&::after {
content: '\f067';
}
}
&:not(.collapsed) {
border-bottom: 1px solid #ececed;
background-color: var(--mt-theme-1);
color: var(--mt-common-white);
&::after {
background-color: var(--mt-common-white);
color: var(--mt-theme-1);
}
}
}
& .collapsed {
position: relative;
z-index: 8;
}
& .accordion-body {
padding: 15px 30px;
padding-bottom: 25px;
padding-right: 50px;
position: relative;
z-index: 1;
font-weight: 400;
font-size: 16px;
line-height: 30px;
background-color: var(--mt-common-white);
@media #{$xl} {
font-size: 15px;
}
@media #{$lg} {
font-size: 14px;
}
@media #{$md} {
font-size: 14px;
}
@media #{$xs} {
padding: 15px 20px;
padding-bottom: 25px;
padding-right: 20px;
font-size: 14px;
}
@media #{$sm} {
font-size: 15px;
}
}
}
.mt-custom-accordion-2 {
& .accordion-items {
margin-bottom: 20px;
border: 1px solid var(--mt-border-1);
border-radius: 10px;
}
& .accordion-buttons {
position: relative;
width: 100%;
font-weight: 700;
font-size: 18px;
text-align: left;
padding: 21px 30px;
padding-left: 60px;
transition: .3s;
color: var(--mt-common-white);
border-radius: 10px;
// border: 1px solid var(--mt-border-1);
@media #{$lg} {
font-size: 17px;
}
@media #{$md} {
font-size: 16px;
margin-bottom: 14px;
}
@media #{$xs} {
font-size: 15px;
margin-bottom: 14px;
}
@media #{$sm} {
font-size: 17px;
margin-bottom: 14px;
}
&::after {
position: absolute;
content: "\f068";
font-family: 'Font Awesome 5 Pro';
top: 15px;
left: 10px;
font-weight: 700;
font-size: 12px;
opacity: 1;
color: var(--mt-common-white);
border-radius: 30px;
border: 1px solid var(--mt-theme-2);
padding: 10px 12px;
transition: .3s;
@media #{$md,$xs} {
top: 8px;
padding: 18px 12px;
}
@media #{$xs} {
right: 20px;
}
}
&.collapsed {
&::after {
content: '\f067';
border: 1px solid var(--mt-common-white);
}
}
}
& .collapsed {
position: relative;
z-index: 1;
}
& .accordion-body {
position: relative;
z-index: 1;
font-weight: 400;
font-size: 16px;
line-height: 30px;
border-radius: 10px;
// border: 1px solid var(--mt-border-1);
padding: 21px 30px;
margin-top: -1px;
@media #{$xl} {
font-size: 15px;
}
@media #{$lg} {
font-size: 14px;
}
@media #{$md} {
font-size: 14px;
}
@media #{$xs} {
font-size: 13px;
padding-right: 0;
line-height: 26px;
}
@media #{$sm} {
font-size: 15px;
}
}
}