/* ===================================
   Category FAQ Section Styles
   =================================== */

.category-faqs-section {
    margin: 60px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-faqs-section .faqs-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.category-faqs-section .faqs-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d73f15, #a83210);
    border-radius: 2px;
}

/* FAQ Items */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    box-shadow: 0 6px 16px rgba(215, 63, 21, 0.15);
    border-color: #d73f15;
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: #d73f15;
    box-shadow: 0 8px 24px rgba(215, 63, 21, 0.2);
}

/* FAQ Question */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(to right, #fef5f3, #fce8e3);
}

.faq-item.active .faq-question {
    background: linear-gradient(to right, #fce8e3, #fef5f3);
    border-bottom: 1px solid #e0e0e0;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding-right: 20px;
    line-height: 1.5;
    flex: 1;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question h3 {
    color: #d73f15;
}

.faq-item.active .faq-question h3 {
    color: #a83210;
}

/* FAQ Toggle Icon */
.faq-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d73f15;
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(215, 63, 21, 0.3);
}

.faq-toggle i {
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover .faq-toggle {
    background: #a83210;
    box-shadow: 0 4px 12px rgba(168, 50, 16, 0.4);
    transform: scale(1.1);
}

.faq-item.active .faq-toggle {
    background: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.answer-content {
    padding: 24px 28px;
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    background: #ffffff;
}

.answer-content p {
    margin: 0 0 16px 0;
}

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

/* Rich Content Formatting */
.answer-content strong,
.answer-content .fw-bold {
    color: #2c3e50;
    font-weight: 600;
}

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

.answer-content li {
    margin-bottom: 8px;
}

.answer-content .alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid;
}

.answer-content .alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.answer-content .alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.answer-content .alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.answer-content .list-group {
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.answer-content .list-group-item {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.answer-content .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin: 0 4px;
}

.answer-content .badge.bg-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.answer-content .badge.bg-info {
    background-color: #17a2b8;
    color: #ffffff;
}

.answer-content .badge.bg-success {
    background-color: #28a745;
    color: #ffffff;
}

.answer-content .badge.bg-primary {
    background-color: #d73f15;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-faqs-section {
        padding: 30px 20px;
        margin: 40px 0;
    }

    .category-faqs-section .faqs-title {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-question h3 {
        font-size: 16px;
    }

    .answer-content {
        padding: 18px 20px;
        font-size: 15px;
    }

    .faq-toggle {
        width: 32px;
        height: 32px;
    }

    .faq-toggle i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-faqs-section {
        padding: 24px 16px;
        margin: 30px 0;
        border-radius: 12px;
    }

    .category-faqs-section .faqs-title {
        font-size: 22px;
    }

    .faq-question {
        padding: 16px 16px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    .answer-content {
        padding: 16px 16px;
        font-size: 14px;
    }
}

/* Animation for content reveal */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active .answer-content {
    animation: fadeInDown 0.4s ease;
}

/* Print styles */
@media print {
    .faq-item {
        page-break-inside: avoid;
    }

    .faq-toggle {
        display: none;
    }

    .faq-answer {
        max-height: none !important;
    }
}