/* FAQ PAGE CONTAINER */

.faq-container{
    max-width: 900px;
    margin: 80px auto;
    padding: 20px;
}

/* PAGE TITLE */

.faq-title{
    text-align:center;
    margin-bottom:40px;
}

.faq-title h2{
    font-size:32px;
    margin-bottom:10px;
}

.faq-title p{
    color:#666;
    font-size:16px;
}

/* SEARCH BAR */

.faq-search{
    text-align:center;
    margin-bottom:35px;
}

.faq-search input{
    width:100%;
    max-width:500px;
    padding:12px 15px;
    border-radius:8px;
    border:1px solid #ddd;
    font-size:15px;
}

.faq-search input:focus{
    outline:none;
    border-color:#007bff;
}

/* CATEGORY BUTTONS */

.faq-categories{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:35px;
}

.faq-categories button{
    padding:8px 18px;
    border:none;
    background:#f1f1f1;
    border-radius:20px;
    cursor:pointer;
    font-size:14px;
    transition:0.2s;
}

.faq-categories button:hover{
    background:#007bff;
    color:#fff;
}

/* FAQ CARD */

.faq-item{
    background:#fff;
    border-radius:10px;
    margin-bottom:15px;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
    overflow:hidden;
}

/* QUESTION */

.faq-question{
    padding:18px 20px;
    cursor:pointer;
    font-weight:600;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.faq-question:hover{
    background:#f9f9f9;
}

/* ARROW ICON */

.faq-question span{
    font-size:18px;
    transition:0.3s;
}

/* ANSWER */

.faq-answer{
    padding:0 20px;
    max-height:0;
    overflow:hidden;
    transition:max-height 0.3s ease;
}

.faq-answer p{
    padding-bottom:18px;
    color:#555;
    line-height:1.6;
}

/* ACTIVE STATE */

.faq-item.active .faq-answer{
    max-height:200px;
}

.faq-item.active .faq-question span{
    transform:rotate(180deg);
}

/* NO RESULTS */

.no-results{
    text-align:center;
    padding:30px;
    color:#777;
}

/* RESPONSIVE */

@media(max-width:768px){

.faq-container{
    margin:40px 15px;
}

.faq-title h2{
    font-size:26px;
}

}