/*
 * Trooworths FAQ Page Styles
 * File: trooworths-faq.css
 */

/* ============================================
   FAQ SEARCH SECTION
   ============================================ */
.faq-search-section 
{
    padding: 50px 0 30px;
    background: #f8f9fa;
}

.search-wrapper 
{
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.search-wrapper .input-group 
{
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-wrapper .input-group:focus-within 
{
    border-color: #ffc107;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.15);
}

.search-wrapper .input-group-text 
{
    background: transparent;
    border: none;
    padding-left: 20px;
    color: #888888;
}

.search-wrapper .form-control 
{
    border: none;
    font-size: 1.1rem;
    padding: 15px 10px;
}

.search-wrapper .form-control:focus 
{
    box-shadow: none;
}

.search-wrapper .form-control::placeholder 
{
    color: #aaaaaa;
}

.search-wrapper .btn-clear 
{
    background: transparent;
    border: none;
    color: #888888;
    padding-right: 20px;
}

.search-wrapper .btn-clear:hover 
{
    color: #1a1a2e;
}

.search-hint 
{
    text-align: center;
    color: #888888;
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: 0;
}


/* ============================================
   QUICK LINKS SECTION
   ============================================ */
.faq-quick-links 
{
    padding: 30px 0 50px;
    background: #f8f9fa;
}

.quick-link-btn 
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #1a1a2e;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-link-btn:hover 
{
    background: #ffc107;
    color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.25);
}

.quick-link-btn i 
{
    font-size: 1.1rem;
    color: #ffc107;
    transition: color 0.3s ease;
}

.quick-link-btn:hover i 
{
    color: #1a1a2e;
}


/* ============================================
   FAQ CONTENT SECTION
   ============================================ */
.faq-content-section 
{
    padding: 60px 0 80px;
    background: #ffffff;
}

/* No Results Message */
.no-results 
{
    text-align: center;
    padding: 60px 30px;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 40px;
}

.no-results i 
{
    font-size: 64px;
    color: #cccccc;
    margin-bottom: 20px;
}

.no-results h3 
{
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 10px;
}

.no-results p 
{
    color: #666666;
    max-width: 400px;
    margin: 0 auto;
}


/* ============================================
   FAQ CATEGORY
   ============================================ */
.faq-category 
{
    margin-bottom: 50px;
}

.faq-category:last-child 
{
    margin-bottom: 0;
}

.category-header 
{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.category-icon 
{
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffc107 0%, #ffcd39 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.25);
    flex-shrink: 0;
}

.category-icon i 
{
    font-size: 26px;
    color: #1a1a2e;
}

.category-title 
{
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}


/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-content-section .accordion-item 
{
    border: none;
    margin-bottom: 12px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-content-section .accordion-item:hover 
{
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.faq-content-section .accordion-item.highlight 
{
    border: 2px solid #ffc107;
    box-shadow: 0 5px 25px rgba(255, 193, 7, 0.2);
}

.faq-content-section .accordion-button 
{
    padding: 20px 25px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    background: #ffffff;
    border: none;
    box-shadow: none;
    line-height: 1.5;
}

.faq-content-section .accordion-button:not(.collapsed) 
{
    background: #fffcf0;
    color: #1a1a2e;
    box-shadow: none;
}

.faq-content-section .accordion-button:focus 
{
    box-shadow: none;
    border-color: transparent;
}

.faq-content-section .accordion-button::after 
{
    width: 24px;
    height: 24px;
    background-size: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffc107'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.faq-content-section .accordion-button:not(.collapsed)::after 
{
    transform: rotate(-180deg);
}

.faq-content-section .accordion-body 
{
    padding: 0 25px 25px;
    color: #555555;
    line-height: 1.8;
    background: #fffcf0;
}

.faq-content-section .accordion-body p 
{
    margin-bottom: 15px;
}

.faq-content-section .accordion-body p:last-child 
{
    margin-bottom: 0;
}

.faq-content-section .accordion-body ul,
.faq-content-section .accordion-body ol 
{
    margin-bottom: 15px;
    padding-left: 20px;
}

.faq-content-section .accordion-body li 
{
    margin-bottom: 8px;
}

.faq-content-section .accordion-body a 
{
    color: #0f3460;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-content-section .accordion-body a:hover 
{
    color: #ffc107;
    text-decoration: underline;
}

.faq-content-section .accordion-body strong 
{
    color: #1a1a2e;
}

/* Table in FAQ */
.faq-content-section .accordion-body .table 
{
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: 15px;
}

.faq-content-section .accordion-body .table th 
{
    background: #1a1a2e;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 15px;
}

.faq-content-section .accordion-body .table td 
{
    padding: 12px 15px;
    vertical-align: middle;
}

.faq-content-section .accordion-body .table tbody tr:nth-child(even) 
{
    background: rgba(255, 193, 7, 0.05);
}


/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991.98px) 
{
    .faq-search-section 
	{
        padding: 40px 0 20px;
    }
    
    .search-wrapper 
	{
        padding: 25px;
    }
    
    .faq-quick-links 
	{
        padding: 20px 0 40px;
    }
    
    .faq-content-section 
	{
        padding: 50px 0 60px;
    }
    
    .category-title 
	{
        font-size: 1.5rem;
    }
    
    .category-icon 
	{
        width: 50px;
        height: 50px;
    }
    
    .category-icon i 
	{
        font-size: 22px;
    }
}

@media (max-width: 767.98px) 
{
    .faq-search-section 
	{
        padding: 30px 0 15px;
    }
    
    .search-wrapper 
	{
        padding: 20px;
    }
    
    .search-wrapper .form-control 
	{
        font-size: 1rem;
        padding: 12px 10px;
    }
    
    .faq-quick-links 
	{
        padding: 15px 0 30px;
    }
    
    .quick-link-btn 
	{
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .quick-link-btn span 
	{
        display: none;
    }
    
    .quick-link-btn i 
	{
        font-size: 1.2rem;
    }
    
    .faq-content-section 
	{
        padding: 40px 0 50px;
    }
    
    .faq-category 
	{
        margin-bottom: 40px;
    }
    
    .category-header 
	{
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .category-icon 
	{
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }
    
    .category-icon i 
	{
        font-size: 20px;
    }
    
    .category-title 
	{
        font-size: 1.3rem;
    }
    
    .faq-content-section .accordion-item 
	{
        margin-bottom: 10px;
    }
    
    .faq-content-section .accordion-button 
	{
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    .faq-content-section .accordion-body 
	{
        padding: 0 20px 20px;
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .no-results 
	{
        padding: 40px 20px;
    }
    
    .no-results i 
	{
        font-size: 48px;
    }
    
    .no-results h3 
	{
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) 
{
    .search-wrapper 
	{
        padding: 15px;
    }
    
    .search-wrapper .input-group-text 
	{
        padding-left: 15px;
    }
    
    .search-wrapper .btn-clear 
	{
        padding-right: 15px;
    }
    
    .search-hint 
	{
        font-size: 0.8rem;
    }
    
    .quick-link-btn 
	{
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .category-header 
	{
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .faq-content-section .accordion-button 
	{
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .faq-content-section .accordion-button::after 
	{
        width: 20px;
        height: 20px;
        background-size: 20px;
    }
    
    .faq-content-section .accordion-body 
	{
        padding: 0 16px 16px;
        font-size: 0.85rem;
    }
    
    .faq-content-section .accordion-body .table 
	{
        font-size: 0.8rem;
    }
    
    .faq-content-section .accordion-body .table th,
    .faq-content-section .accordion-body .table td 
	{
        padding: 8px 10px;
    }
}


/* ============================================
   PRINT STYLES
   ============================================ */
@media print 
{
    .faq-search-section,
    .faq-quick-links,
    .cta-section 
	{
        display: none;
    }
    
    .faq-content-section 
	{
        padding: 20px 0;
    }
    
    .faq-category 
	{
        page-break-inside: avoid;
    }
    
    .accordion-collapse 
	{
        display: block !important;
    }
    
    .accordion-button::after 
	{
        display: none;
    }
    
    .accordion-item 
	{
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 10px;
    }
    
    .accordion-body 
	{
        background: #ffffff !important;
    }
}


/* ============================================
   ACCESSIBILITY
   ============================================ */
.search-wrapper .form-control:focus 
{
    outline: none;
}

.quick-link-btn:focus 
{
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

.faq-content-section .accordion-button:focus 
{
    outline: 2px solid #ffc107;
    outline-offset: -2px;
}

.faq-content-section .accordion-body a:focus 
{
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}


/* ============================================
   ANIMATION
   ============================================ */
@keyframes highlightPulse 
{
    0% 
	{
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    70% 
	{
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% 
	{
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.faq-content-section .accordion-item.highlight 
{
    animation: highlightPulse 1s ease-out;
}