/* ========================================
   BILLVATE FAQ PAGE STYLES
   Clean, minimal FAQ design
   Body text: 18px
   @author Stackvate Inc.
   ======================================== */

/* =================================
   FAQ HERO SECTION
   ================================= */
.faq-hero {
    padding: 120px 0 80px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--border);
}

.faq-hero .container {
    padding: 0 24px;
}

.faq-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.faq-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.faq-hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =================================
   FAQ NAVIGATION (Mobile)
   ================================= */
.faq-nav {
    padding: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.faq-nav .container {
    padding: 0 24px;
}

.faq-nav-list {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.faq-nav-list::-webkit-scrollbar {
    display: none;
}

.faq-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition-base);
}

.faq-nav-item:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
}

.faq-nav-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* =================================
   FAQ CONTENT SECTION
   ================================= */
.faq-content {
    padding: 80px 0;
    background: var(--white);
}

.faq-content .container {
    padding: 0 24px;
}

.faq-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

/* =================================
   SIDEBAR NAVIGATION
   ================================= */
.faq-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.faq-sidebar-nav {
    padding: 0;
}

.faq-sidebar-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.faq-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-sidebar-link {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
    border-left: 3px solid transparent;
    padding-left: 16px;
    margin-left: -16px;
}

.faq-sidebar-link:hover {
    color: var(--primary);
}

.faq-sidebar-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
}

/* =================================
   MAIN FAQ CONTENT
   ================================= */
.faq-main {
    min-width: 0;
}

/* Category Section */
.faq-category {
    margin-bottom: 60px;
    scroll-margin-top: 140px;
}

.faq-category:last-of-type {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* =================================
   FAQ LIST (Clean Q&A)
   ================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.faq-item {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

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

.faq-question {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* =================================
   CTA SECTION
   ================================= */
.faq-cta {
    padding: 80px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--border);
}

.faq-cta .container {
    padding: 0 24px;
}

.faq-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.faq-cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.faq-cta-text {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.faq-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.faq-cta-btn.primary {
    background: var(--primary);
    color: #ffffff;
}

.faq-cta-btn.primary:hover {
    background: var(--primary-light);
}

.faq-cta-btn.secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.faq-cta-btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =================================
   RESPONSIVE STYLES
   ================================= */

/* Large Tablets / Small Desktops (1200px) */
@media (max-width: 1200px) {
    .faq-layout {
        gap: 48px;
    }
}

/* Tablets (992px) */
@media (max-width: 992px) {
    .faq-hero {
        padding: 100px 0 60px;
    }

    .faq-hero-title {
        font-size: 40px;
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-sidebar {
        display: none;
    }

    .faq-nav {
        display: block;
    }

    .faq-content,
    .faq-cta {
        padding: 60px 0;
    }

    .faq-category {
        scroll-margin-top: 130px;
    }
}

/* Small Tablets (768px) */
@media (max-width: 768px) {
    .faq-hero {
        padding: 90px 0 50px;
    }

    .faq-hero-title {
        font-size: 36px;
    }

    .faq-hero-subtitle {
        font-size: 18px;
    }

    .faq-content,
    .faq-cta {
        padding: 50px 0;
    }

    .faq-category {
        margin-bottom: 48px;
    }

    .faq-category-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .faq-list {
        gap: 28px;
    }

    .faq-item {
        padding-bottom: 28px;
    }

    .faq-question {
        font-size: 18px;
    }

    .faq-answer {
        font-size: 17px;
    }

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

    .faq-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .faq-cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Mobile Large (576px) */
@media (max-width: 576px) {
    .faq-hero {
        padding: 80px 0 40px;
    }

    .faq-hero .container,
    .faq-nav .container,
    .faq-content .container,
    .faq-cta .container {
        padding: 0 16px;
    }

    .faq-hero-title {
        font-size: 32px;
    }

    .faq-hero-subtitle {
        font-size: 17px;
    }

    .faq-content,
    .faq-cta {
        padding: 40px 0;
    }

    .faq-nav-list {
        gap: 6px;
        padding: 12px 0;
    }

    .faq-nav-item {
        padding: 8px 16px;
        font-size: 14px;
    }

    .faq-category {
        margin-bottom: 40px;
    }

    .faq-category-title {
        font-size: 22px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .faq-list {
        gap: 24px;
    }

    .faq-item {
        padding-bottom: 24px;
    }

    .faq-question {
        font-size: 17px;
        margin-bottom: 10px;
    }

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

    .faq-cta-title {
        font-size: 26px;
    }

    .faq-cta-text {
        font-size: 16px;
    }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
    .faq-hero {
        padding: 75px 0 35px;
    }

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

    .faq-hero-subtitle {
        font-size: 16px;
    }

    .faq-content,
    .faq-cta {
        padding: 36px 0;
    }

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

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

    .faq-answer {
        font-size: 15px;
    }

    .faq-cta-title {
        font-size: 24px;
    }

    .faq-cta-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Mobile Extra Small (360px) */
@media (max-width: 360px) {
    .faq-hero .container,
    .faq-nav .container,
    .faq-content .container,
    .faq-cta .container {
        padding: 0 12px;
    }

    .faq-hero {
        padding: 70px 0 30px;
    }

    .faq-hero-title {
        font-size: 26px;
    }

    .faq-hero-subtitle {
        font-size: 15px;
    }

    .faq-content,
    .faq-cta {
        padding: 32px 0;
    }

    .faq-category-title {
        font-size: 19px;
    }

    .faq-list {
        gap: 20px;
    }

    .faq-item {
        padding-bottom: 20px;
    }

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

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

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

    .faq-cta-text {
        font-size: 15px;
    }

    .faq-cta-btn {
        padding: 11px 20px;
        font-size: 14px;
    }
}

/* Desktop sidebar visible */
@media (min-width: 993px) {
    .faq-nav {
        display: none;
    }

    .faq-sidebar {
        display: block;
    }
}
