/**
 * NukeViet Content Management System
 * @version 4.x
 * @author VINADES.,JSC <contact@vinades.vn>
 * @copyright (C) 2009-2021 VINADES.,JSC. All rights reserved
 * @license GNU/GPL version 2 or any later version
 * @see https://github.com/nukeviet The NukeViet CMS GitHub project
 */

 #faq .flex-box {
    display: flex;
    flex-flow: row nowrap;
    margin-bottom: 20px;
}

#faq .flex-box > .main {
    flex: 1 100%;
}

#faq .flex-box > .aside {
    flex: 1 25%;
    background-image: url(../images/faq/faq-icon.svg);
    background-position: top center;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 10px;
    background-origin: content-box;
    min-height: 80px;
}

@media (max-width: 767.98px) {
    #faq .flex-box > .aside {
        flex: 1 150px;
    }
}

#faq .ptitle {
    font-size: 1.5em;
    margin-top: 10px;
    margin-bottom: 10px;
}

#faq .panel-default .panel-heading {
    background-image: none !important;
    background-color: #f5f5f5;
}

#faq .panel-heading {
    display: block;
    position: relative;
}

#faq .items {
    margin-bottom: 30px;
}

#faq .panel-heading:before,
#faq .panel-primary .panel-heading:before,
#faq .items .question:before,
#faq .items .answer:before,
#faq .ctitle:before,
#faq .questions-item > a:before,
#faq a.more:before {
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    font-size: inherit;
    margin-right: 4px;
}

#faq .panel-heading:before {
    content: "\f0d7";
}

#faq .panel-primary .panel-heading:before {
    content: "\f0d8";
}

#faq .items .iquestion {
    font-weight: bold;
}

#faq .items .question,
#faq .items .answer {
    display: inline-block;
    padding: 2px 4px;
    font-size: 80%;
    font-weight: normal;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

#faq .items .question:before {
    content: "\f128";
}

#faq .items .answer:before {
    content: "\f0a2";
}

#faq .subcats {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

#faq .subcats .item {
    flex: 0 calc((100% - 20px) / 2);
    margin-right: 20px;
    margin-bottom: 20px;
}

@media (max-width: 767.98px) {
    #faq .subcats .item {
        flex: 0 100%;
        margin-right: 0;
    }
}

#faq .subcats .item:nth-child(2n+0) {
    margin-right: 0;
}

#faq .ctitle {
    text-transform: uppercase;
    font-size: 14px;
    padding-bottom: 5px;
}

#faq .ctitle:before {
    content: "\f115"
}

#faq .questions-list {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
    margin-bottom: 0;
}

#faq .questions-item {
    position: relative;
    display: block;
}

#faq .questions-item > a.question {
    display: flex;
    padding: 6px;
    border-bottom: 1px dotted #ddd;
    color: #333;
}

#faq .questions-item > a.question:hover span {
    text-decoration: underline;
}

#faq .questions-item:nth-child(odd) > a.question {
    background-color: #f5f5f5;
}

#faq .questions-item > a.question:before {
    content: "\f105";
}

#faq a.more {
    display: inline-block;
    padding: 6px;
}

#faq a.more:before {
    content: "\f101"
}

#faq .pages {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.faq-cat {
    margin-bottom: 10px;
}

.faq-cat ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.faq-cat a {
    position: relative;
    display: block;
    padding: 10px 20px 10px 15px;
    margin-bottom: -1px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #555;
    background-color: #fff;
}

.faq-cat a:before,
.faq-cat a:after {
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    font-size: inherit;
}

.faq-cat a:hover {
    background-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.04) 100%);
}

.faq-cat .level-0 > li > a {
    color: #fff;
    background-color: #428bca;
    border-color: #397cb8;
    padding-left: 10px;
}

.faq-cat .level-0 > li.home > a {
    background-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.15) 100%);
}

.faq-cat .level-1 > li > a {
    color: #555;
    background-color: #eeeeee;
    border-color: #ddd;
    padding-left: 10px;
}

.faq-cat a:before {
    content: '\f105';
    margin-right: 4px;
}

.faq-cat .level-0 > li > a:before {
    content: '\f115';
    margin-right: 4px;
}

.faq-cat .level-0 > li.home > a:before {
    content: '\f015';
    margin-right: 4px;
}

.faq-cat li.active > a:after {
    float: right;
    margin-right: -15px;
    content: '\f006';
}

.faq-cat .level-0 > li:first-child > a {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.faq-cat .level-0 > li:last-child > a {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
