/* FAQ Page Specific Styles */

/* FAQ Layout - Sidebar + Content */
.faq-layout {
    display: flex;
    gap: 60px;
    max-width: 1400px;
}

/* Sidebar Navigation */
.faq-nav {
    width: 240px;
    flex-shrink: 0;
}

.faq-nav-sticky {
    position: sticky;
    top: 100px;
}

.faq-nav-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    padding-left: 12px;
}

.faq-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-nav-list li {
    margin-bottom: 4px;
}

.faq-nav-link {
    display: block;
    padding: 10px 12px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.faq-nav-link:hover {
    color: #5B7BFF;
    background-color: #f8f9ff;
}

.faq-nav-link.active {
    color: #5B7BFF;
    background-color: #f0f4ff;
    border-left-color: #5B7BFF;
}

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

.faq-content .integrations-header {
    margin-bottom: 48px;
}

.faq-content .integrations-description a {
    color: #5B7BFF;
    text-decoration: none;
}

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

/* FAQ Section */
.faq-section {
    margin-bottom: 56px;
    scroll-margin-top: 100px;
}

.faq-section-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.faq-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* FAQ List Container */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* FAQ Item - Using native details/summary for SEO */
.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* FAQ Question - Summary element */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: white;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    transition: background-color 0.2s ease;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
    content: '';
}

.faq-question:hover {
    background-color: #f8f9ff;
}

.faq-question span {
    flex: 1;
    padding-right: 16px;
    line-height: 1.5;
}

.faq-icon {
    color: #5B7BFF;
    font-size: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    background-color: #f8f9ff;
    padding: 4px 24px 20px;
}

.faq-answer p {
    margin: 0 0 12px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

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

.faq-answer ul {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin: 8px 0 0 20px;
    padding: 0;
}

.faq-answer ul li {
    margin-bottom: 4px;
}

.faq-answer a {
    color: #5B7BFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-answer a:hover {
    color: #4A6AEE;
    text-decoration: underline;
}

/* Responsive Styles */

/* Large screens */
@media (min-width: 1866px) {
    .faq-layout {
        gap: 80px;
    }

    .faq-nav {
        width: 280px;
    }

    .faq-nav-link {
        font-size: 16px;
        padding: 12px 14px;
    }

    .faq-section-title {
        font-size: 28px;
    }

    .faq-question {
        font-size: 17px;
        padding: 22px 28px;
    }

    .faq-answer {
        padding: 4px 28px 22px;
    }

    .faq-answer p {
        font-size: 16px;
    }
}

/* Desktop Medium */
@media (min-width: 1025px) and (max-width: 1399px) {
    .faq-layout {
        gap: 48px;
    }

    .faq-nav {
        width: 220px;
    }

    .faq-section-title {
        font-size: 22px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .faq-layout {
        gap: 40px;
    }

    .faq-nav {
        width: 200px;
    }

    .faq-nav-link {
        font-size: 14px;
        padding: 8px 10px;
    }

    .faq-section-title {
        font-size: 20px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 4px 20px 16px;
    }

    .faq-answer p {
        font-size: 14px;
    }
}

/* Mobile - Stack layout */
@media (max-width: 767px) {
    .faq-layout {
        flex-direction: column;
        gap: 32px;
    }

    .faq-nav {
        width: 100%;
        position: relative;
    }

    .faq-nav-sticky {
        position: relative;
        top: 0;
        background: #f8f9ff;
        border-radius: 12px;
        padding: 16px;
    }

    .faq-nav-title {
        margin-bottom: 12px;
        padding-left: 0;
    }

    .faq-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .faq-nav-list li {
        margin-bottom: 0;
    }

    .faq-nav-link {
        padding: 8px 14px;
        font-size: 13px;
        border-left: none;
        border-radius: 20px;
        background: white;
        border: 1px solid #e5e7eb;
    }

    .faq-nav-link:hover,
    .faq-nav-link.active {
        border-color: #5B7BFF;
        background: #f0f4ff;
    }

    .faq-content .integrations-header {
        margin-bottom: 32px;
    }

    .faq-section {
        margin-bottom: 40px;
        scroll-margin-top: 20px;
    }

    .faq-section-title {
        font-size: 20px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 4px 20px 16px;
    }

    .faq-answer p {
        font-size: 14px;
    }

    .faq-list {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .faq-nav-sticky {
        padding: 12px;
    }

    .faq-nav-link {
        padding: 6px 12px;
        font-size: 12px;
    }

    .faq-section-title {
        font-size: 18px;
    }

    .faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 4px 16px 14px;
    }

    .faq-answer p {
        font-size: 13px;
    }

    .faq-icon {
        font-size: 12px;
    }
}
