/* ═══════════════════════════════════════════════
   KL FAQ Page – Frontend Styles
   ═══════════════════════════════════════════════ */

.kl-faq-page {
    font-family: 'Outfit', sans-serif;
    color: #333;
    line-height: 1.6;
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.kl-faq-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ── */
.kl-faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.kl-faq-title {
    font-size: 36px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 12px;
    line-height: 1.2;
}

.kl-faq-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 28px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Search ── */
.kl-faq-search-wrapper {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.kl-faq-page .kl-faq-search {
    width: 100%;
    padding: 14px 20px 14px 48px !important;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    color: #333;
    background: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.kl-faq-page .kl-faq-search::placeholder {
    color: #aaa;
}

.kl-faq-page .kl-faq-search:focus {
    border-color: #0a0a0a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.kl-faq-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.3s;
}

.kl-faq-search:focus ~ .kl-faq-search-icon {
    color: #0a0a0a;
}

/* ── Category Navigation ── */
.kl-faq-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.kl-faq-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #e8e8e8;
    border-radius: 100px;
    background: #fff;
    color: #444;
    font-size: 13.5px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.kl-faq-nav-btn:hover {
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    color: #0a0a0a;
}

.kl-faq-nav-btn.kl-active {
    background: #0a0a0a;
    color: #fff;
    border-color: #0a0a0a;
}

.kl-faq-nav-btn i {
    font-size: 14px;
}

.kl-faq-nav-btn.kl-active i {
    color: var(--kl-accent, #00d4aa);
}

/* ── FAQ Sections ── */
.kl-faq-section {
    display: none;
}

.kl-faq-section.kl-active {
    display: block;
    animation: klFaqFadeIn 0.3s ease;
}

/* Show all sections during search */
.kl-faq-page.kl-searching .kl-faq-section {
    display: block;
}
.kl-faq-page.kl-searching .kl-faq-nav {
    display: none;
}
.kl-faq-page.kl-searching .kl-faq-section-header {
    display: flex;
}

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

.kl-faq-section-header {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
}

.kl-faq-section-header i {
    font-size: 20px;
    color: var(--kl-accent, #00d4aa);
}

.kl-faq-section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #0a0a0a;
    margin: 0;
}

/* ── FAQ Items ── */
.kl-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.kl-faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.kl-faq-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.kl-faq-item.kl-open {
    border-color: #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.kl-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0a0a0a;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: color 0.2s;
}

.kl-faq-question:hover {
    color: var(--kl-accent, #00d4aa);
}

.kl-faq-chevron {
    font-size: 13px;
    color: #999;
    transition: transform 0.3s ease, color 0.3s;
    flex-shrink: 0;
}

.kl-faq-item.kl-open .kl-faq-chevron {
    transform: rotate(180deg);
    color: var(--kl-accent, #00d4aa);
}

.kl-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.kl-faq-answer-inner {
    padding: 4px 24px 20px;
    border-top: 1px solid #f0f0f0;
    margin: 0 24px;
    padding: 16px 0 20px;
    font-size: 14.5px;
    color: #555;
    line-height: 1.7;
}

.kl-faq-answer-inner strong {
    color: #0a0a0a;
}

/* Search highlight */
.kl-faq-highlight {
    background: rgba(0, 212, 170, 0.2);
    padding: 1px 3px;
    border-radius: 3px;
}

/* Hidden during search */
.kl-faq-item.kl-hidden {
    display: none;
}

/* ── CTA Block ── */
.kl-faq-cta {
    text-align: center;
    margin-top: 48px;
    padding: 40px 32px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
}

.kl-faq-cta-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 16px;
    font-size: 24px;
    color: var(--kl-accent, #00d4aa);
}

.kl-faq-cta h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 8px;
}

.kl-faq-cta p {
    font-size: 15px;
    color: #6c757d;
    margin: 0 0 24px;
}

.kl-faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #0a0a0a;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.kl-faq-cta-btn:hover {
    background: #222;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── No Results ── */
.kl-faq-no-results {
    text-align: center;
    padding: 48px 20px;
    color: #999;
}

.kl-faq-no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: #ddd;
}

.kl-faq-no-results p {
    font-size: 16px;
    color: #6c757d;
}

.kl-faq-no-results a {
    color: var(--kl-accent, #00d4aa);
    text-decoration: none;
    font-weight: 600;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .kl-faq-page {
        padding: 40px 0;
    }

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

    .kl-faq-nav {
        gap: 8px;
    }

    .kl-faq-nav-btn {
        padding: 8px 14px;
        font-size: 12.5px;
    }

    .kl-faq-nav-btn span {
        display: none;
    }

    .kl-faq-nav-btn i {
        font-size: 16px;
    }

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

    .kl-faq-answer-inner {
        padding: 0 18px 16px;
        font-size: 13.5px;
    }
}
