/* ==============================
   Single FAQ Page Styles
============================== */
.faq-single-wrapper {
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
    min-height: 80vh;
    padding: 40px 0 80px;
}

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

/* Breadcrumb */
.faq-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-medium);
}

.faq-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.faq-breadcrumb a:hover {
    color: var(--primary-dark);
}

.faq-breadcrumb .separator {
    color: var(--text-light);
}

/* Content Layout */
.faq-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Main Content */
.faq-single-main {
    background: var(--background-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.faq-single-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 40px;
    color: white;
}

.faq-single-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    margin-bottom: 20px;
    text-decoration: none;
    color: white;
    transition: background 0.2s;
}

.faq-single-category:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.faq-single-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.faq-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.faq-single-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Content Body */
.faq-single-body {
    padding: 40px;
}

.faq-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.faq-content p {
    margin-bottom: 1.5em;
}

.faq-content h2,
.faq-content h3 {
    color: var(--text-dark);
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.faq-content h2 {
    font-size: 1.5rem;
}

.faq-content h3 {
    font-size: 1.25rem;
}

.faq-content ul,
.faq-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.faq-content li {
    margin-bottom: 0.8em;
}

.faq-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s;
}

.faq-content a:hover {
    color: var(--primary-dark);
}

.faq-content blockquote {
    margin: 2em 0;
    padding: 20px 30px;
    background: var(--background-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-medium);
}

.faq-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

.faq-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.faq-content th,
.faq-content td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.faq-content th {
    background: var(--background-light);
    font-weight: 600;
}

/* Share Section */
.faq-share {
    padding: 30px 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.faq-share-label {
    font-weight: 600;
    color: var(--text-dark);
}

.faq-share-buttons {
    display: flex;
    gap: 10px;
}

.faq-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.faq-share-btn.facebook { background: #1877f2; }
.faq-share-btn.twitter { background: #1da1f2; }
.faq-share-btn.linkedin { background: #0a66c2; }
.faq-share-btn.whatsapp { background: #25d366; }
.faq-share-btn.copy {
    background: var(--secondary-color);
}

/* Helpful Section */
.faq-helpful {
    padding: 30px 40px;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.faq-helpful-text {
    font-weight: 500;
    color: var(--text-dark);
}

.faq-helpful-buttons {
    display: flex;
    gap: 10px;
}

.faq-helpful-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.faq-helpful-btn.yes {
    background: var(--success-color);
    color: white;
}

.faq-helpful-btn.yes:hover {
    background: #059669;
}

.faq-helpful-btn.no {
    background: var(--background-white);
    color: var(--text-medium);
    border: 1px solid var(--border-color);
}

.faq-helpful-btn.no:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

/* Sidebar */
.faq-single-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.faq-sidebar-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
}

.faq-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Categories Nav */
.faq-nav-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-nav-categories li {
    margin-bottom: 8px;
}

.faq-nav-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    color: var(--text-medium);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.faq-nav-categories a:hover,
.faq-nav-categories a.active {
    background: var(--background-light);
    color: var(--primary-dark);
}

.faq-nav-categories .count {
    background: var(--border-color);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* Related FAQs */
.faq-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-related-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.faq-related-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-related-list a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s;
}

.faq-related-list a:hover {
    color: var(--primary-color);
}

.faq-related-list .faq-related-icon {
    color: var(--primary-color);
    margin-right: 8px;
}

/* CTA Card */
.faq-cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.faq-cta-card .faq-sidebar-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.2);
}

.faq-cta-text {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: white;
    color: var(--primary-dark);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Back to Category */
.faq-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 25px;
    background: var(--background-white);
    color: var(--text-medium);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.faq-back-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .faq-single-layout {
        grid-template-columns: 1fr;
    }
    
    .faq-single-sidebar {
        position: relative;
        top: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .faq-sidebar-card {
        flex: 1;
        min-width: 280px;
    }
    
    .faq-single-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .faq-single-header {
        padding: 30px 25px;
    }
    
    .faq-single-body {
        padding: 25px;
    }
    
    .faq-single-title {
        font-size: 1.4rem;
    }
    
    .faq-content {
        font-size: 1rem;
    }
    
    .faq-share,
    .faq-helpful {
        padding: 25px;
    }
    
    .faq-single-sidebar {
        flex-direction: column;
    }
    
    .faq-sidebar-card {
        min-width: 100%;
    }
}
