
.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-header {
    background: linear-gradient(140deg, #79604F 0%, #AE8D73 100%);
    color: white;
    padding: 2rem;
    margin-bottom: 0;
    box-sizing: border-box;
}

.faq-title {
    margin: 0 0 1.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    color:#fff;
    text-align: center;
}

.faq-search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.faq-search-box {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.faq-search-box::placeholder {
    color: rgba(255,255,255,0.7);
}

.faq-search-box:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.25);
}

.faq-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: rgba(255,255,255,0.7);
}

.faq-clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    display: none;
    transition: all 0.2s ease;
}

.faq-clear-search:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.faq-clear-search.show {
    display: block;
}

.faq-expand-all-container {
    text-align: center;
    margin-top: 1.5rem;
}

.faq-expand-all-btn {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.faq-expand-all-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

.faq-expand-all-btn:active {
    transform: translateY(0);
}

.faq-expand-all-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.faq-expand-all-btn.collapse-mode .faq-expand-all-icon {
    transform: rotate(180deg);
}

.faq-expand-all-text {
    font-size: 0.95rem;
}

/* Action Bar Styles */
.faq-action-bar {
    background: #fcfaf9;
    border-bottom: 1px solid #ede9e6;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question-count {
    color: #78716C;
    font-size: 0.9rem;
    font-weight: 500;
}

.faq-action-buttons {
    display: flex;
    gap: 0.75rem;
}

.faq-action-btn {
    background: #fff;
    border: 1px solid #e0dcda;
    border-radius: 6px;
    color: #57534E;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.faq-action-btn:hover {
    background: #fcfaf9;
    border-color: #D97706;
    color: #D97706;
}

.faq-action-btn:active {
    transform: translateY(1px);
}

.faq-action-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.faq-action-btn.expand-answers .faq-action-icon {
    transform: rotate(0deg);
}

.faq-secondary-btn {
    background: #fff;
    border-color: #e0dcda;
    color: #57534E;
}

.faq-secondary-btn:hover {
    background: #fcfaf9;
    border-color: #D97706;
    color: #D97706;
}

.faq-categories {
    background: #fcfaf9;
    overflow: hidden;
}

.faq-category {
    border-bottom: 1px solid #ede9e6;
    background: white;
    margin-bottom: 0;
}

.faq-category:last-child {
    border-bottom: none;
}

.faq-category-header {
    background: #fcfaf9;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-category-header:hover {
    background: #f5f3f1;
}

.faq-category-icon {
    width: 24px;
    height: 24px;
    fill: #8B6F47;
    flex-shrink: 0;
}

.faq-category-title {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.faq-category-count {
    background: #D97706;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.faq-expand-icon {
    width: 20px;
    height: 20px;
    fill: #8B6F47;
    transition: transform 0.3s ease;
}

.faq-category.expanded .faq-expand-icon {
    transform: rotate(180deg);
}

.faq-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-category.expanded .faq-category-content {
    max-height: 2000px;
}

.faq-questions {
    padding: 0;
}

.faq-question-item {
    border-bottom: 1px solid #f0ede9;
    background: white;
}

.faq-question-item:last-child {
    border-bottom: none;
}

.faq-question-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    text-align: left;
    background: none;
}

.faq-question-header:hover {
    background: #f5f3f1;
}

.faq-question-bullet {
    background: #D97706;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.faq-question-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.faq-question-expand {
    width: 16px;
    height: 16px;
    fill: #8B6F47;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.faq-question-item.expanded .faq-question-expand {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-question-item.expanded .faq-answer {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 1rem 2rem 1.75rem 3.25rem;
    color: #555;
    line-height: 1.7;
}

.faq-answer-content p {
    margin: 0 0 1rem 0;
}

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

.faq-answer-content a {
    color: #D97706;
    text-decoration: none;
    font-weight: 600;
}

.faq-answer-content a:hover {
    text-decoration: underline;
}

/* Image Styles */
.faq-answer-with-image {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.faq-answer-text {
    flex: 1;
}

.faq-answer-image {
    flex-shrink: 0;
}

.faq-answer-image img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.faq-answer-image a:hover img {
    transform: scale(1.05);
}

.faq-inline-image {
    text-align: center;
    margin: 1.5rem 0;
}

.faq-inline-image img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-answer-content img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #8B6F47;
    display: none;
}

.faq-no-results.show {
    display: block;
}

.faq-no-results-icon {
    width: 64px;
    height: 64px;
    fill: #D4C4B0;
    margin: 0 auto 1rem;
    display: block;
}

.faq-no-results h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.faq-no-results p {
    margin: 0;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .faq-header {
        padding: 1.5rem 1rem;
    }
    
    .faq-title {
        font-size: 2rem;
    }
    
    .faq-category-header {
        padding: 1rem;
    }
    
    .faq-category-title {
        font-size: 1.1rem;
    }
    
    .faq-question-header {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .faq-question-text {
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 0 1rem 1rem 2.25rem;
    }
    
    .faq-search-box {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        font-size: 0.95rem;
    }
    
    .faq-search-icon {
        left: 0.875rem;
        width: 18px;
        height: 18px;
    }
    
    .faq-clear-search {
        right: 0.875rem;
    }
    
    /* Mobile Image Styles */
    .faq-answer-with-image {
        flex-direction: column;
        gap: 1rem;
    }
    
    .faq-answer-image {
        align-self: center;
    }
    
    .faq-answer-image img {
        max-width: 250px;
    }
    
    .faq-inline-image img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .faq-header {
        padding: 1rem;
    }
    
    .faq-title {
        font-size: 1.75rem;
    }
    
    .faq-category-header {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .faq-category-title {
        font-size: 1rem;
    }
    
    .faq-question-header {
        padding: 0.875rem;
        gap: 0.5rem;
    }
    
    .faq-question-bullet {
        width: 10px;
        height: 10px;
        margin-top: 0.4rem;
    }
    
    .faq-question-text {
        font-size: 0.95rem;
    }
    
    .faq-answer-content {
        padding: 0 0.875rem 0.875rem 2rem;
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .faq-container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .faq-search-container,
    .faq-expand-icon,
    .faq-question-expand {
        display: none !important;
    }
    
    .faq-category-content,
    .faq-answer {
        max-height: none !important;
    }
    
    .faq-category,
    .faq-question-item {
        break-inside: avoid;
    }
    
    .faq-header {
        background: #8B6F47 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}
