/* LinkSquare 1 Nested Tabs Styles */
.nested-tabs {
    margin-top: 1rem;
}

.nested-tab-container {
    display: flex;
    background-color: #fff;
    padding: 2px;
    margin-bottom: 2rem;
    gap: -1px;
}

.nested-tab-button {
    background: transparent;
    border: solid 1px #dedede;
    padding: 12px 24px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #999999;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex: 1;
    text-align: center;
}

.nested-tab-button:hover {
    color: #666666;
    background-color: rgba(255, 255, 255, 0.5);
}

.nested-tab-button.active {
    color: #DB1B23;
    background-color: #f8f8f8;
    font-weight: 600;
}

.nested-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

/* FAQ Accordion Styles */
.faq-accordion {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-item {
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0 10px 25px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333333;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    position: relative;
    line-height: 1.4;
}

.faq-question:hover {
    color: #DB1B23;
}

.faq-question::before {
    content: '';
    width: 8px;
    height: 30px;
    background-image: url('/images/tri.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: absolute;
    left: 8px;
    top: 8px;
}

.faq-question.active::before {
    background-image: url('/images/tri_d.svg');
    width: 13px;
    height: 24px;
}

.faq-answer {
    padding: 0 0 20px 40px;
    display: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    animation: slideDown 0.2s ease-in-out;
    position: relative;
    margin-left: 0;
}

.faq-answer::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 20px;
    width: 2px;
    background-color: #e0e0e0;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

.faq-answer p {
    margin: 0 0 1rem 0;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .nested-tab-container {
        gap: 2px;
    }
    
    .nested-tab-button {
        padding: 10px 16px;
        font-size: 13px;
        text-align: center;
    }
    
    .faq-question {
        padding: 16px 0 16px 24px;
    }
    
    .faq-question::before {
        width: 6px;
        height: 24px;
        left: 6px;
    }
    
    .faq-question.active::before {
        width: 10px;
        height: 18px;
    }
    
    .faq-answer {
        font-size: 13px;
        padding: 0 0 16px 24px;
    }
    
    .faq-answer::before {
        left: 9px;
        bottom: 16px;
    }
}
