/* =========================================================
   GLOBAL VARIABLES
========================================================= */
:root {
    --tfaq-blue: #002b5c;
    --tfaq-blue-light: #0073e6;
    --tfaq-border: #e1e4ea;
    --tfaq-bg-soft: #f8f9fb;
    --tfaq-shadow-soft: 0 3px 10px rgba(0,0,0,.06);
    --tfaq-shadow-hover: 0 6px 16px rgba(0,0,0,.08);
}

/* =========================================================
   WRAPPER
========================================================= */
.tfaq-wrapper {
    max-width: 1320px;
    margin: 40px auto;
    padding: 0 16px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* =========================================================
   SIDEBAR
========================================================= */
.tfaq-sidebar {
    flex: 0 0 28%;
    background: var(--tfaq-bg-soft);
    padding: 22px;
    border-radius: 14px;
    position: sticky;
    top: 90px;
    box-shadow: var(--tfaq-shadow-soft);
}

.tfaq-side-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--tfaq-blue);
    margin-bottom: 18px;
}

.tfaq-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Parent */
.tfaq-parent-title {
    margin-top: 18px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #0672ca;
    border-radius: 8px;
}

/* Item */
.tfaq-sidebar-item {
    margin-top: 10px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--tfaq-border);
    cursor: pointer;
    transition: all .2s ease;
}

.tfaq-cat-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--tfaq-blue);
}

.tfaq-sidebar-item:hover {
    background: #eef5ff;
}

.tfaq-sidebar-item.active {
    border-color: var(--tfaq-blue-light);
    box-shadow: 0 3px 10px rgba(0,115,230,.2);
}

/* =========================================================
   CONTENT
========================================================= */
.tfaq-content {
    flex: 1;
    padding-top: 18px;
}

/* =========================================================
   HEADER
========================================================= */
.tfaq-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.tfaq-title,.tfaq-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    color: var(--tfaq-blue);
}

.tfaq-result-count {
    font-size: 14px;
    color: var(--tfaq-blue-light);
}

/* =========================================================
   SEARCH
========================================================= */
.tfaq-search-wrap {
    width: 100%;
    max-width: 520px;
    background: #fff;
    padding: 14px 18px;
    border: 2px solid #002b5c30;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    position: relative;
}

#tfaq-search {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-clear {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: none;
}

/* =========================================================
   RESULTS GRID
========================================================= */
#tfaq-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.tfaq-section[data-section="general"] {
    grid-column: 1 / -1;
}

/* =========================================================
   QUESTIONS
========================================================= */
.tfaq-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.tfaq-question-item {
    background: #fff;
    border: 1px solid var(--tfaq-border);
    transition: .2s ease;
}

.tfaq-question-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    font-size: 16px;
    color: #0f172a;
    text-decoration: none;
}

.tfaq-q-icon svg {
    width: 28px;
    height: 28px;
    color: #002b5c;
}

.tfaq-question-item:hover {
    box-shadow: var(--tfaq-shadow-hover);
}

.tfaq-question-item:hover .tfaq-q-icon {
    transform: translateX(4px);
    color: var(--tfaq-blue-light);
}

/* =========================================================
   SINGLE FAQ
========================================================= */
.tfaq-single-layout {
    max-width: 980px;
    margin: 140px auto 0;
    padding: 0 16px;
}

.tfaq-single-container {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--tfaq-border);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.tfaq-question-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--tfaq-blue);
}

.tfaq-answer-content {
    font-size: 16px;
    line-height: 1.8;
    margin-top: 18px;
}

/* =========================================================
   PDF
========================================================= */
.tfaq-pdf-link-wrap {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--tfaq-border);
}

.tfaq-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid var(--tfaq-border);
    background: #f8f9fb;
    text-decoration: none;
    font-weight: 600;
    color: var(--tfaq-blue);
}

/* =========================================================
   FOOTER FIX
========================================================= */
.page-template-faq-frontend footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    .tfaq-wrapper {
        flex-direction: column;
    }

    .tfaq-sidebar {
        position: static;
        width: 100%;
    }

    #tfaq-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tfaq-single-container {
        padding: 26px 20px;
    }

    .tfaq-question-title {
        font-size: 22px;
    }

    .tfaq-pdf-link {
        width: 100%;
        justify-content: center;
    }
}
/* =========================================================
   SINGLE FAQ – ENHANCED UI
========================================================= */

.tfaq-single-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.tfaq-answer-section {
    margin-top: 36px;
}

.tfaq-answer-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--tfaq-blue);
    margin-bottom: 18px;
}

.tfaq-answer-content {
    font-size: 17px;
    line-height: 1.85;
    color: #334155;
}

/* Highlight important blocks inside content */
.tfaq-answer-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--tfaq-blue-light);
    background: #f8fafc;
    font-style: italic;
}

/* =========================================================
   PDF CARD – PREMIUM LOOK
========================================================= */
.tfaq-pdf-card {
    margin-top: 48px;
    padding: 28px;
    background: linear-gradient(135deg, #f8f9fb, #eef5ff);
    border-radius: 16px;
    border: 1px solid var(--tfaq-border);
    text-align: center;
}

.tfaq-pdf-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tfaq-blue);
}

.tfaq-pdf-card p {
    margin: 10px 0 18px;
    color: #475569;
}

.tfaq-pdf-btn {
    display: inline-block;
    padding: 14px 24px;
    background: var(--tfaq-blue-light);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: .2s ease;
}

.tfaq-pdf-btn:hover {
    background: #005bb5;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 640px) {
    .tfaq-answer-heading {
        font-size: 18px;
    }

    .tfaq-pdf-card {
        padding: 22px;
    }

    .tfaq-pdf-btn {
        width: 100%;
    }
}
/* =========================================================
   RELATED FAQS
========================================================= */

.tfaq-related-section {
    margin: 56px 50px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.tfaq-related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tfaq-blue);
    margin:20px 50px;
    margin-bottom: 22px;
}

.tfaq-related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tfaq-related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #f8f9fb;
    border: 1px solid var(--tfaq-border);
    text-decoration: none;
    color: #0f172a;
    font-size: 15px;
    font-weight: 500;
    transition: all .25s ease;
}

.tfaq-related-icon {
    font-size: 18px;
    color: var(--tfaq-blue-light);
    transition: transform .25s ease;
}

.tfaq-related-item:hover {
    background: #eef5ff;
    border-color: var(--tfaq-blue-light);
    color: var(--tfaq-blue-light);
}

.tfaq-related-item:hover .tfaq-related-icon {
    transform: translateX(4px);
}

/* MOBILE */
@media (max-width: 640px) {
    .tfaq-related-item {
        padding: 14px 16px;
        font-size: 14px;
    }
}
