/* FAQ Page Styles - Enhanced Visual Formatting */

/* Hero Section */
.faq-hero {
    background: linear-gradient(135deg, #f8fdf9 0%, #e8f5e9 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 124, 89, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.faq-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4a7c59 0%, #3d6649 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.faq-hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #2C3E2E;
    margin-bottom: 16px;
    line-height: 1.2;
}

.faq-hero p {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 40px;
}

/* Search Bar */
.faq-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

.faq-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.125rem;
}

.faq-search input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-search input:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 4px 20px rgba(74, 124, 89, 0.15);
}

/* Quick Links */
.faq-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.quick-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    color: #2C3E2E;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-link-btn:hover {
    background: #4a7c59;
    border-color: #4a7c59;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.2);
}

.quick-link-btn i {
    font-size: 1rem;
}

/* FAQ Content Section */
.faq-content {
    padding: 60px 0 100px;
    background: #fff;
}

/* Category Header */
.faq-category {
    margin-bottom: 60px;
    scroll-margin-top: 100px; /* For smooth scrolling with fixed header */
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e9ecef;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #2C3E2E;
    margin: 0;
}

.category-count {
    margin-left: auto;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item-accordion {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item-accordion:hover {
    border-color: #4a7c59;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.08);
}

.faq-item-accordion.active {
    border-color: #4a7c59;
    background: linear-gradient(135deg, #f8fdf9 0%, #ffffff 100%);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2C3E2E;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #4a7c59;
}

.faq-question span {
    flex: 1;
    line-height: 1.4;
}

.faq-question i {
    font-size: 1rem;
    color: #6c757d;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item-accordion.active .faq-question i {
    transform: rotate(180deg);
    color: #4a7c59;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item-accordion.active .faq-answer {
    max-height: 2000px;
    padding: 0 28px 28px;
}

.faq-answer p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #495057;
    font-size: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #2C3E2E;
    font-weight: 600;
}

.faq-answer ul, .faq-answer ol {
    margin: 16px 0;
    padding-left: 24px;
}

.faq-answer li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #495057;
}

.faq-answer li strong {
    color: #2C3E2E;
}

.faq-answer a {
    color: #4a7c59;
    text-decoration: underline;
    font-weight: 500;
}

.faq-answer a:hover {
    color: #3d6649;
}

/* Highlight Boxes */
.faq-answer .highlight-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.faq-answer .success-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.faq-answer .info-box {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

/* Tables in FAQ */
.faq-answer table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.faq-answer thead {
    background: linear-gradient(135deg, #4a7c59 0%, #3d6649 100%);
}

.faq-answer thead th {
    padding: 16px;
    text-align: left;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-answer tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s ease;
}

.faq-answer tbody tr:hover {
    background: #f8f9fa;
}

.faq-answer tbody tr:last-child {
    border-bottom: none;
}

.faq-answer tbody td {
    padding: 14px 16px;
    border: none;
    color: #495057;
    font-size: 0.9375rem;
}

.faq-answer tbody td strong {
    color: #2C3E2E;
}

/* Responsive table */
@media (max-width: 768px) {
    .faq-answer table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Contact Box */
.faq-contact-box {
    background: linear-gradient(135deg, #f8fdf9 0%, #e8f5e9 100%);
    border: 2px solid #4a7c59;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 60px 0 0;
}

.faq-contact-box h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    color: #2C3E2E;
    margin-bottom: 12px;
}

.faq-contact-box p {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 24px;
}

.faq-contact-box .contact-methods {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(74, 124, 89, 0.15);
}

.contact-method i {
    font-size: 2rem;
    color: #4a7c59;
}

.contact-method strong {
    font-size: 0.875rem;
    color: #2C3E2E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-method a {
    color: #4a7c59;
    font-weight: 600;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.no-results i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.no-results p {
    color: #6c757d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-hero {
        padding: 60px 0 40px;
    }
    
    .faq-hero h1 {
        font-size: 2.5rem;
    }
    
    .faq-hero p {
        font-size: 1.125rem;
    }
    
    .faq-quick-links {
        gap: 8px;
    }
    
    .quick-link-btn {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
    
    .category-header {
        flex-wrap: wrap;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .category-header h2 {
        font-size: 1.75rem;
        flex: 1 1 100%;
        margin-top: 12px;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    
    .faq-item-accordion.active .faq-answer {
        padding: 0 20px 20px;
    }
    
    .faq-contact-box {
        padding: 30px 20px;
    }
    
    .faq-contact-box h3 {
        font-size: 1.5rem;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Print Styles */
@media print {
    .faq-hero,
    .faq-search,
    .faq-quick-links,
    .breadcrumb-nav,
    nav {
        display: none;
    }
    
    .faq-item-accordion {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .faq-answer {
        max-height: none !important;
        padding: 20px !important;
    }
}
