/* ================= SECTION ================= */
.faq-section {
    padding: 150px 0;
    background: #ebf5ff;
}

/* HEADER */
.faq-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0b2a4a;
}

.faq-header p {
    color: #5b6b7a;
    margin-top: 10px;
}

/* ================= SIDEBAR ================= */
.faq-sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.faq-sidebar-title {
    margin-bottom: 14px;
    color: #0b2a4a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.faq-category {
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    margin-bottom: 10px;

    border: 1px solid transparent;
    background: transparent;
    border-radius: 11px;

    font-weight: 600;
    color: #476074;

    transition: 0.3s ease;
}

.faq-category:hover,
.faq-category.active {
    border-color: rgba(16, 145, 174, .18) !important;
    background: #e9f9fc !important;
    color: #087d99 !important;
}

/* ================= CONTENT ================= */
.faq-content {
    display: none;
}

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

/* TITLE */
.faq-content h3 {
    margin-bottom: 20px;
    color: #0b2a4a;
    font-weight: 600;
}

/* ================= FAQ ITEM ================= */
.faq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* QUESTION */
.faq-question {
    padding: 16px 20px;
    font-weight: 600;
    color: #0b2a4a;
    cursor: pointer;
    position: relative;
}

.faq-icon {
    position: absolute;
    right: 20px;
    top: 16px;
    font-size: 18px;
}

/* ANSWER */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: #4a5a6a;
    line-height: 1.6;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 260px;
    overflow-y: auto;
    padding: 15px 20px;
}

.faq-item.active .faq-answer::-webkit-scrollbar {
    width: 6px;
}

.faq-item.active .faq-answer::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #9bcddd;
}

.faq-item.active .faq-icon {
    content: "-";
}

/* ================= HOVER ================= */
.faq-item:hover {
    transform: translateY(-3px);
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){

    .faq-section {
        padding: 110px 0 55px;
    }

    .faq-header {
        margin-bottom: 28px;
        padding: 0 8px;
    }

    .faq-header h2 {
        font-size: clamp(25px, 7vw, 32px);
        line-height: 1.25;
    }

    .faq-header p {
        font-size: 14px;
        line-height: 1.6;
    }

    .faq-sidebar {
        margin-bottom: 24px;
        padding: 10px;
        border-radius: 13px;
        box-shadow: 0 7px 18px rgba(11, 42, 74, .06);
    }

    .faq-sidebar-title {
        position: relative;
        margin-bottom: 10px;
        padding-bottom: 8px;
        text-align: center;
    }

    .faq-sidebar-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 42px;
        height: 2px;
        border-radius: 4px;
        background: #1091ae;
        transform: translateX(-50%);
    }

    .faq-sidebar {
        display: block;
        overflow: visible;
    }

    .faq-sidebar-title {
        display: block;
        width: 100%;
    }

    .faq-category-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: thin;
    }

    .faq-category {
        flex: 0 0 auto;
        width: max-content;
        margin: 0;
        padding: 9px 12px;
        border-radius: 0;
        white-space: nowrap;
    }

    .faq-category + .faq-category {
        margin-left: 6px;
        padding-left: 17px;
        border-left: 1px solid #b9dce8;
    }

    .faq-content h3 {
        margin-bottom: 16px;
        font-size: 21px;
    }

    .faq-item {
        margin-bottom: 12px;
        border-radius: 9px;
    }

    .faq-question {
        padding: 14px 42px 14px 15px;
        font-size: 15px;
        line-height: 1.5;
    }

    .faq-icon {
        top: 14px;
        right: 15px;
    }

    .faq-item.active .faq-answer {
        max-height: 230px;
        padding: 13px 15px;
        font-size: 14px;
        line-height: 1.65;
    }

}
