/* ACF FAQ Plugin - Split View Accordion Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.acf-faq-split-wrapper {
    display: flex;
    gap: 0;
}

/* LEFT SIDE - ACCORDION */
.faq-left-accordion {
    width: 40%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Accordion Items */
.faq-accordion-item {
    border-bottom: 1px solid #000;
}


/* Accordion Header */
.faq-accordion-header {
    padding: 20px 20px 20px 0px;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 10px;
    transition: all 0.3s ease;
    user-select: none;
}
.faq-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 16px;
    color: #4a90e2;
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-accordion-header.active .faq-accordion-icon {
    transform: rotate(90deg);
}

.faq-accordion-title {
    font-size: 25px;
    font-weight: 400;
    color: #000;
    line-height: 1.3;
    flex: 1;
    word-break: break-word;
}

/* Accordion Content */
.faq-accordion-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.faq-questions-list {
    padding: 0;
    background-color: #ffffff;
}

/* Question Items in Accordion */
.faq-question-item {
    padding: 15px 30px 15px 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
    position: relative;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    border-top: 1px solid #000;
}

.faq-question-item:last-child {
    border-bottom: none;
}

.faq-question-bullet {
    color: #4a90e2;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-question-text {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    line-height: 1.4;
    flex: 1;
    word-break: break-word;
}

.faq-question-item.active .faq-question-text {
    color: #000;
    font-weight: 700;
}

/* RIGHT SIDE - ANSWER DISPLAY */
.faq-right-answer {
    width: 60%;
    background-color: #f2f2f2;
    padding: 100px 100px 100px 100px;
    display: flex;
    align-items: flex-start;
    /*justify-content: flex-start;
    position: sticky;
    top: 30%;
    align-self: start;*/
}

.faq-answer-display {
    width: 100%;
}

.faq-no-selection {
    text-align: center;
    color: #000;
    padding: 60px 20px;
}

.faq-no-selection p {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
}

.faq-answer-item {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer-question {
    font-size: 20px;
    font-weight: 700 !important;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.3;
}

.faq-answer-content {
    font-size: 20px;
    color: #000;
    line-height: 1.5;
    font-weight: 400;
}

.faq-answer-content p {
     word-break: break-word;   
}

.faq-answer-content h1,
.faq-answer-content h2,
.faq-answer-content h3,
.faq-answer-content h4,
.faq-answer-content h5,
.faq-answer-content h6 {
    margin-top: 16px;
    margin-bottom: 12px;
    color: #222;
    font-weight: 600;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.faq-answer-content li {
    margin-bottom: 8px;
}

.faq-answer-content a {
    color: #4a90e2;
    text-decoration: none;
}

.faq-answer-content a:hover {
    text-decoration: underline;
}

.faq-answer-content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 4px;
}

.faq-answer-content blockquote {
    margin: 12px 0;
    padding-left: 16px;
    border-left: 4px solid #4a90e2;
    color: #666;
    font-style: italic;
}

/* Scrollbar Styling */
.faq-left-accordion::-webkit-scrollbar,
.faq-right-answer::-webkit-scrollbar {
    width: 6px;
}

.faq-left-accordion::-webkit-scrollbar-track,
.faq-right-answer::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.faq-left-accordion::-webkit-scrollbar-thumb,
.faq-right-answer::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.faq-left-accordion::-webkit-scrollbar-thumb:hover,
.faq-right-answer::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {

    .faq-right-answer {
        padding: 30px;
    }

    .faq-answer-question {
        font-size: 20px;
    }

    .faq-answer-content {
        font-size: 14px;
    }
    .faq-right-answer {
        position: unset;
        top: inherit;
        align-self: inherit;
    }
}

@media (max-width: 768px) {
    .acf-faq-split-wrapper {
        flex-direction: column;
    }

    .faq-left-accordion {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #000;
    }

    .faq-right-answer {
        width: 100%;
        padding: 20px;
    }

    .faq-accordion-header {
        padding: 20px 20px 20px 0;
    }

    .faq-question-item {
        padding: 20px 20px 20px 30px;
    }

    .faq-answer-question {
        font-size: 18px;
    }
    .faq-question-item.active {
        border-bottom: 1px solid rgba(107, 107, 107, .5);
    }
    .faq-questions-list .faq-inline-answer {
        padding: 10px 30px 15px;
    }
    .faq-right-answer {
        display: none !important;
    }
    .faq-accordion-item:last-child{
        border-bottom:none !important;
    }
}

@media (max-width: 767px) {

    .acf-faq-split-wrapper {
        border-radius: 0;
    }

    .faq-right-answer {
        padding: 16px;
    }

    .faq-accordion-header {
        padding: 15px 15px 15px 0px;
        font-size: 12px;
    }

    .faq-accordion-icon {
        width: 18px;
        height: 18px;
        font-size: 14px;
    }

    .faq-question-item {
        padding: 15px 15px 15px 30px;
        font-size: 12px;
        gap: 6px;
    }
    .faq-accordion-title{
        font-size: 22px;
    }
    .faq-answer-question {
        font-size: 16px;
        margin-bottom: 14px;
    }
}
