/* FAQ Page Specific Styles */

.faq-categories {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
}

.category-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    list-style: none;
    margin-top: 20px;
}

.category-links li {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-links li:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-links a {
    display: block;
    padding: 15px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.faq-section {
    margin: 60px 0;
    padding-top: 60px;
    border-top: 2px solid #e0e0e0;
}

.faq-section:first-of-type {
    border-top: none;
}

.faq-section h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.faq-item {
    margin-bottom: 25px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 20px 25px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    position: relative;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.faq-answer ul,
.faq-answer ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.faq-answer a:hover {
    color: var(--secondary-color);
}

.faq-contact {
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-top: 60px;
}

.faq-contact h2 {
    margin-bottom: 20px;
}

.faq-contact p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 17px;
}

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

.contact-options .btn {
    min-width: 180px;
}

/* Search highlight */
.highlight {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Anchor link offset for fixed header */
.faq-section {
    scroll-margin-top: 100px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .category-links {
        grid-template-columns: 1fr;
    }

    .faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }

    .faq-question::after {
        right: 20px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
    }

    .contact-options .btn {
        width: 100%;
        max-width: 300px;
    }
}