/**
 * Rigicon FAQ System - Single Page CSS
 * Version: 1.2.0
 */

/* Root variables matching the main FAQ system */
:root {
    --secondary-color: #232F58;
    --primary-bg: #CE0E2D;
    --danger-bg: #CF0E2E;
    --warning-bg: #E3DCB2;
    --link-color: #194F90;
    --link-hover: #2F3B8A;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --logo-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* General container styling */
.faq-single-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb styling - moved to back button area */
.faq-single-page-breadcrumb .uk-breadcrumb {
    margin-bottom: 15px;
}

.faq-single-page-breadcrumb .uk-breadcrumb > * > * {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}

.faq-single-page-breadcrumb .uk-breadcrumb > :last-child > * {
    color: #666;
}

/* Main article container */
.faq-single-page-article {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background-color: #fff;
}

/* Article header */
.faq-single-page-header {
    position: relative;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
}

.faq-single-page-title {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Wrapper ensures badges are aligned horizontally */
.faq-single-page-category {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px; /* spacing between badges */
    margin-bottom: 15px;
    margin-top: 10px;
}

#whitelink {
	
	color:white !important;
}

/* Section titles */
.faq-single-page-section-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    margin-bottom: 1rem;
}

.faq-single-page-section-title.uk-heading-bullet::before {
    background-color: var(--primary-bg);
}

/* Original question section */
.faq-single-page-original-section .uk-card-title {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.faq-single-page-original-content blockquote {
    border-left: 5px solid #f8f9fa;
    padding-left: 15px;
    margin: 15px 0;
    color: #666;
    font-weight: 500;
}

.faq-single-page-original-content blockquote footer {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

/* Detailed answer content */
.faq-single-page-detailed-content {
    background-color: #fff;
    line-height: 1.6;
    font-weight: 500;
}

.faq-single-page-detailed-content h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.faq-single-page-detailed-content p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.faq-single-page-detailed-content ul, 
.faq-single-page-detailed-content ol {
    margin-left: 20px;
    margin-bottom: 1rem;
}

/* Quote section */
.faq-single-page-quote-content blockquote {
    border-left: 5px solid var(--primary-bg);
    padding: 15px 15px 15px 20px;
    margin: 0;
    background-color: #f8f9fa;
    color: #444;
    font-weight: 500;
}

.faq-single-page-quote-content blockquote p {
    font-size: 1rem; /* Ensures font size doesn't exceed other content */
    font-weight: 500;
    font-style: italic;
}

.faq-single-page-quote-content blockquote footer {
    margin-top: 10px;
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Sidebar styling */
.faq-single-page-sidebar {
    position: sticky;
    top: 30px;
}

.faq-single-page-sidebar-block {
    border-radius: 12px;
    background-color: #fff;
    margin-bottom: 25px;
}

.faq-single-page-sidebar-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Reference block */
.faq-single-page-reference-item {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    font-weight: 500;
}

.faq-single-page-reference-item .uk-text-bold {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Related FAQs */
.faq-single-page-related-list {
    margin-top: 15px;
}

.faq-single-page-related-link {
    color: var(--link-color);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: color 0.2s ease;
    font-weight: 500;
}

.faq-single-page-related-link:hover {
    color: var(--primary-bg);
    text-decoration: none;
}

/* Back link - positioned at bottom */
.faq-single-page-back-link {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 15px;
    text-align: center !important;
}

.faq-single-page-btn-back {
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block !important;
}

.faq-single-page-btn-back:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 960px) {
    .faq-single-page-title {
        font-size: 1.8rem;
    }
    
    .faq-single-page-sidebar {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 640px) {
    .faq-single-page-title {
        font-size: 1.5rem;
    }
    
    .faq-single-page-section-title {
        font-size: 1.3rem;
    }
    
    .faq-single-page-sidebar-title {
        font-size: 1.1rem;
    }
    
    .faq-single-page-header,
    .faq-single-page-content {
        padding: 15px;
    }
}



/* === RTL Support (Arabic) === */
[dir="rtl"] .faq-single-page-container,
html[lang="ar"] .faq-single-page-container {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .faq-single-page-sidebar,
html[lang="ar"] .faq-single-page-sidebar {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .faq-single-page-breadcrumb .uk-breadcrumb,
html[lang="ar"] .faq-single-page-breadcrumb .uk-breadcrumb {
    direction: rtl;
}

[dir="rtl"] .faq-single-page-btn-back .uk-icon,
html[lang="ar"] .faq-single-page-btn-back .uk-icon {
    transform: scaleX(-1);
}

[dir="rtl"] .faq-single-page-reference-details,
html[lang="ar"] .faq-single-page-reference-details {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .faq-single-page-related-list,
html[lang="ar"] .faq-single-page-related-list {
    direction: rtl;
    text-align: right;
}