﻿.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    margin-top: 72px;
    margin-bottom: 19px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faq-header {
    text-align: center;
    margin-bottom: 20px;
}

    .faq-header h1 {
        font-size: 2.5em;
        color: #2c3e50;
    }

.faq-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .faq-controls button {
        padding: 10px 20px;
        font-size: 1em;
        background: #3498db;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s;
    }

        .faq-controls button:hover {
            background: #2980b9;
        }

.search-bar input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

    .search-bar input:focus {
        border-color: #3498db;
    }

.faq-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    transition: background 0.3s;
}

    .faq-question:hover {
        background: #e0f7fa;
    }

    .faq-question .toggle-icon {
        font-size: 1.2em;
        transition: transform 0.3s;
    }

    .faq-question.active .toggle-icon {
        transform: rotate(45deg);
    }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    background: #fff;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

    .faq-answer.active {
        max-height: 300px;
        padding: 15px;
    }

    .faq-answer p {
        color: #555;
    }

@media (max-width: 600px) {
    .faq-container {
        padding: 15px;
        margin-top: 116px;
    }

    .faq-header h1 {
        font-size: 2em;
    }

    .faq-question {
        font-size: 1em;
    }

    .faq-controls {
        flex-direction: column;
        gap: 10px;
    }

        .faq-controls button {
            width: 100%;
        }
}

.collapsible {
    margin-bottom: 5px;
    background-color: #e6f3fa;
    color: #1a3c5e;
    cursor: pointer;
    padding: 10px;
    border: none;
    text-align: left;
    outline: none;
    width: 100%;
    font-size: 16px;
    position: relative;
}

    .collapsible::after {
        content: '+';
        position: absolute;
        right: 10px;
    }

.content {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-bottom: 0.3rem;
    border: 1px solid #e9d3d3;
    display: none;
    background-color: white;
    color: #1a3c5e;
}

.collapsible:hover {
    background-color: #d1e8f5;
}

.faq-list .active::after {
    content: '-';
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}
