/* Rawcut FAQ Styles */

.rawcut-faq-wrapper {

}

.faq-main-title {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 60px;
}

.faq-container {
    display: flex;
    gap: 60px;
    margin: 0 auto;
}

/* Layout: Tabs on Left (default) */
.faq-container.layout-left {
    flex-direction: row;
}

.faq-container.layout-left .faq-tabs {
    min-width: 280px;
    max-width: 280px;
}

/* Layout: Tabs on Right */
.faq-container.layout-right {
    flex-direction: row-reverse;
}

.faq-container.layout-right .faq-tabs {
    min-width: 280px;
    max-width: 280px;
}

/* Layout: Tabs on Top */
.faq-container.layout-top {
    flex-direction: column;
}

.faq-container.layout-top .faq-tabs {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
}

.faq-container.layout-top .faq-tab {
    flex: 0 0 auto;
    min-width: auto;
    padding: 12px 24px;
}

/* Tabs Styling */
.faq-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-tab {
    font-size: 18px;
    font-weight: 300;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.faq-container.layout-top .faq-tab {
    border-left: none;
    border-bottom: 3px solid transparent;
    text-align: center;
}

.faq-tab:hover {
    transform: translateX(5px);
}

.faq-container.layout-top .faq-tab:hover {
    transform: translateX(0) translateY(-2px);
}

.faq-tab.active {
    font-weight: 600;
}

/* Content Area */
.faq-content {
    flex: 1;
    min-width: 0;
}

.faq-category-content {
    display: none;
}

.faq-category-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.faq-category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    opacity: 0;
    animation: fadeInTitle 0.5s ease 0.1s forwards;
}

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

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accordion Styling */
.faq-accordion {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid #443a35;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:first-child {
    border-top: 1px solid #443a35;
}

.faq-item-question {
    padding: 25px 24px 25px 0;
    font-size: 18px;
    font-weight: 400;
    color: #443A35;
    cursor: pointer;
    position: relative;
    padding-right: 50px;
    user-select: none;
    transition: background-color 0.3s ease;
}

.faq-item.active .faq-item-question {
    font-weight: 500;
}

.faq-item-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-item-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-item-answer {
    display: none;
    padding: 0 24px 24px 0;
    font-size: 16px;
    line-height: 1.4;
}

.faq-item-answer p {
    margin: 0 0 16px 0;
}

.faq-item-answer p:last-child {
    margin-bottom: 0;
}

.faq-item-answer a {
    text-decoration: underline !important;
}

.faq-item-answer ul,
.faq-item-answer ol {
    margin: 16px 0;
    padding-left: 24px;
}

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

.no-faqs {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .rawcut-faq-wrapper {
        padding: 0;
    }
    
    .faq-main-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .faq-container.layout-left,
    .faq-container.layout-right {
        flex-direction: column;
    }
    
    .faq-container.layout-left .faq-tabs,
    .faq-container.layout-right .faq-tabs {
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .faq-tab {
        flex: 0 0 auto;
        min-width: auto;
        padding: 5px 20px 5px 0;
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: 16px;
        width: 100%;

    }
    
    .faq-tab:hover {
        transform: translateX(0) translateY(-2px);
    }
    
    .faq-item-question {
        font-size: 16px;
        padding: 10px 0;
        padding-right: 45px;
    }
    
    .faq-item-question::after {
        right: 0;
        font-size: 24px;
    }
    
    .faq-item-answer {
        padding: 0 20px 20px 0;
        font-size: 14px;
        line-height: 1.6;
    }
    
    .faq-category-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}
