
/* Qa links */

:root {
    --gray-border: #E3E8F0;
}

.qa-links {
    background: var(--white);
}

.qa-item {
    padding: 0;
}

.qa-link {
    text-decoration: none;
    padding: 29px 0 18px;
    position: relative;
    height: 100%;
}

.qa-link .icon {
    width: 74px;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: .4s all ease-in-out;
}

.qa-link .icon svg path {
    fill: var(--main-red);
}

.qa-link .title {
    font-size: 1.25rem;
    color: var(--active-links);
    position: relative;
}

@media screen and (max-width: 991px) {
    .qa-item:first-child .qa-link:before,
    .qa-item:nth-child(2) .qa-link:before,
    .qa-item:nth-child(4) .qa-link:before,
    .qa-item:nth-child(5) .qa-link:before {
        content: '';
        position: absolute;
        border-left: dashed 1px var(--gray-shadow-light);
        right: -.5px;
        top: 20px;
        height: calc(100% - 40px);

    }
    .qa-item:nth-child(2) .qa-link:after,
    .qa-item:nth-child(1) .qa-link:after,
    .qa-item:nth-child(3) .qa-link:after {
        content: '';
        position: absolute;
        border-bottom: dashed 1px var(--gray-shadow-light);
        bottom: -.5px;
        left: 20px;
        width: calc(100% - 40px);
    }

    .qa-link.active {
        background: var(--main-red);
        color: var(--white);
    }

    .qa-link.active .title {
        color: var(--white);
    }

    .qa-link.active svg path {
        fill: var(--white);
    }

    .qa-link .title {
        font-size: 1rem;
    }
}

@media screen and (min-width: 992px) {
    .qa-links {
        box-shadow: 0 3px 24px var(--gray-shadow-light);
    }

    .qa-link {
        padding: 58px 0 30px;
        position: relative;
    }

    .qa-link:before {
        content: '';
        position: absolute;
        right: -.5px;
        top: 22px;
        height: calc(100% - 44px);
        width: 1px;
        background: var(--gray-border);
    }

    .qa-link:hover .icon,
    .qa-link.active .icon {
        bottom: 0;
        width: 100%;
        background: var(--main-red);
        border-radius: 4px 4px 0 0;
        box-shadow: 4px 12px 24px var(--gray-box-shadow);
    }

    .qa-link:hover .icon svg path,
    .qa-link.active .icon svg path {
        fill: var(--white);
    }

    .qa-link:hover .title,
    .qa-link.active .title {
        color: var(--white);
    }

    .qa-item:last-child .qa-link:before {
        content: none;
    }
    
    .qa-link .icon {
        position: absolute;
        margin-bottom: 0;
        background: var(--white);
        top: -25px;
        bottom: 61px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Content */

.qa-content-wrapper .title_underlined {
    letter-spacing: 0;
}

.tab-header-wrapper a {
    font-size: .875rem;
    color: var(--hover-links);
    text-decoration: none;
}

.tabs-wrapper {
    /* margin-bottom: 60px; */
}

.tab-content-wrapper {
    background: var(--white);
    padding: 40px 16px;
}

.tab-content-wrapper h3,
.tab-content-wrapper .page-content.bold {
    font-family: var(--custom-font-family);
}

.bold {
    font-weight: 600;
    font-size: 1rem;
    /* margin-bottom: 30px; */
}

.tab-content {
    display: none;
    position: relative;
    transform: translateY(-160px);
}

.tab-content:before {
    content: '';
    width: 100%;
    height: 160px;
    display: block;
    pointer-events: none;
}

.tab-content.active {
    display: block;
}

.video-wrapper video {
    max-width: 100%;
    width: 100%;
}

.tab-content h4 {
    color: var(--active-links);
    font-size: 1.25rem;
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    max-width: 100%;
}

.image-wrapper span {
    position: absolute;
    font-size: 2.75rem;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mr-gray-100);
    color: var(--main-red);
    border-radius: 4px 4px 0 0;
    padding: 0 20px;
    font-family: var(--custom-font-family);
    font-weight: 700;
}

.text-box {
    padding: 32px 29px 36px;
    border: solid 12px var(--mr-gray-100);
    background: var(--white);
    height: 100%;
}

.text-box h3 {
    font-size: 1.125rem;
    margin-bottom: 24px;

}

.text-box h3:before {
    content: '';
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: var(--light-red) 3px solid;
    border-radius: 50%;
    margin-right: 12px;
}

.text-box .page-text {
    padding: 0;
}

.text-box img {
    max-width: 50%;
}

.quote {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--hover-links);
    padding-left: 10px;
    border-left: var(--beige-color) 7px solid;
}

ol {
    list-style: none;
    counter-reset: my-awesome-counter;
    padding-left: 0;
}

ol li {
    counter-increment: my-awesome-counter;
}

ol li::before {
    content: counter(my-awesome-counter) " ";
    color: var(--white);
    background: var(--beige-color);
    display: inline-block;
    width: 24px;
    vertical-align: middle;
    margin-right: 5px;
    text-align: center;
    height: 24px;
    border-radius: 50%;
    font-size: .8125rem;
    padding-top: 3px;
    font-weight: bold;
}

ol li h4 {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0;
    font-size: 1rem !important;
    color: var(--hover-links);
}

ol li p {
    margin-top: 16px;
}

.image-row__item {
    background: var(--mr-gray-100);
    -webkit-background-clip: content-box;
    background-clip: content-box;
    margin-bottom: 24px;
}

.image-row__item h4 {
    padding: 0 16px;
    font-size: 1.125rem;
    color: var(--dark-color);
}

.image-row__item p {
    font-size: .875rem;
    color: var(--active-links);
    padding: 0 16px 21px;
}

.text-box h4 {
    padding-left: 0;
}

.dropdown-wrapper {
    font-family: var(--custom-font-family);
}

@media screen and (max-width: 991px) {
    .tab-header-wrapper {
        position: relative;
        padding: 20px 0 16px;
        z-index: 1;
    }

    .tab-header-wrapper ul {
        max-height: 0;
        flex-direction: column;
        border-radius: 4px;
        position: absolute;
        z-index: 1;
        top: 0;
        display: flex;
        left: 0;
        width: 100%;
        transition: .5s all ease-in-out;
        box-shadow: 0 4px 12px #6C73811F;
        overflow: hidden;
    }

    .qa-content .dropdown-wrapper {
        position: relative;
        margin: 0 16px;
    }

    .qa-content .dropdown-icon {
        position: absolute;
        right: 33px;
        transition: .5s all ease-in-out;
        top: 20px;
        z-index: 2;
    }

    .qa-content .open .dropdown-icon {
        transform: rotate(90deg);
        transform-origin: 50% 50%;
    }

    .qa-content .dropdown {
        background: var(--white);
        max-height: 0;
    }

    .qa-content .open .dropdown {
        max-height: 800px;
    }

    .qa-content .active-content {
        color: var(--active-links);
        font-weight: 600;
        font-size: .875rem;
        padding: 16px 40px 16px 16px;
        box-shadow: 0 4px 12px #6C73811F;
        background: var(--white);
        width: 100%;
    }

    .qa-content .open .active-content {
        opacity: 0;
    }

    .tab-header-wrapper li {
        order: 2;
        padding: 16px 40px 16px 16px;
    }

    .tab-header-wrapper li.active {
        order: 1;
    }

    .tab-header-wrapper .active a {
        color: var(--active-links);
        font-weight: 600;
    }

    .tab-content-wrapper {
        border-top: 4px solid var(--main-red);
    }

    .image-wrapper > img {
        width: 100%;
    }
}

@media screen and (min-width: 992px) {
    .qa-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 50px;
    }   

    .tabs-wrapper {
        font-size: 0;
    }

    .tab-header-wrapper {
        width: 215px;
        vertical-align: top;
        position: -webkit-sticky;
        position: sticky;
        top: 100px;
    }

    .tab-header-wrapper li {
        margin-bottom: 12px;
    }

    .tab-header-wrapper a {
        padding: 12px 6px 12px 24px;
        margin-right: 2px;
        background: var(--white);
        border-radius: 4px 0 0 4px;
        position: relative;
    }

    .tab-header-wrapper .active a {
        background: var(--main-red);
        color: var(--white);
        margin-right: 0;
    }

    .tab-header-wrapper .active a:before {
        content: '';
        position: absolute;
        bottom: 50%;
        left: 100%;
        transform: rotate(180deg);
        border-top: 2px solid var(--main-red);
        border-right: 3px solid var(--main-red);
        border-bottom: 2px solid transparent;
        border-left: 3px solid transparent;
    }

    .tab-header-wrapper .active a:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 100%;
        border-top: 2px solid var(--main-red);
        border-right: 3px solid transparent;
        border-bottom: 2px solid transparent;
        border-left: 3px solid var(--main-red);
    }

    .tab-content-wrapper {
        vertical-align: top;
        width: calc(100% - 217px);
        padding: 60px;
    }

    .image-wrapper img {
        height: 100%;
        -o-object-fit: cover;
           object-fit: cover;
    }

    .video-wrapper {
        max-width: 700px;
    }

    .video-wrapper {
        margin: 0 auto;
    }

    .text-box {
        padding: 30px 30px 0;
    }

    .quote {
        font-size: 1.5rem;
    }

    .images-row {
        margin: 0 -24px;
    }

    .image-row__item {
        padding: 0 24px;
        margin-bottom: 32px;
    }

    .image-row__item h4,
    .image-row__item p {
        padding: 0 24px;
    }

    .image-row__item p {
        font-size: 1rem;
        padding-bottom: 32px;
    }    

    .text-box h4 {
        padding-left: 0;
    }
    
}
