body {
    background: rgb(250, 250, 250);
    color: black;
}

h2{
    color:  rgb(0, 47, 167);
}

h3{
    color: #292929;
}

section {
    width: 80%;
    margin: 0 auto;
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 3rem;
    margin: 2rem 0rem;
}

.faq{
    max-width: 700px;
    margin-top: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid black ;
    cursor: pointer;
}

.question {
    display: flex;
    justify-content: space-between;
    align-items: left;
}

.question h3{
    font-size: 1.7em;
}

.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1.4s ease;
}

.answer p {
    padding-top: 1rem;
    line-height: 1.6;
    font-size: 1.4rem;
}

.faq.active .answer {
    max-height: 300px;
    animation: fade 1s ease-in-out;
}

.faq.active svg{
    transform: rotate(180deg); 
}

svg {
    transition: transform 0.5s ease-in;
}



@keyframes fade{
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* Responsive styles for faq.css */
@media (max-width: 768px) {
    section {
        width: 95%;
        margin-top: 120px;
        padding: 0 20px;
    }
    
    .title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .faq {
        max-width: 100%;
        margin-top: 1.5rem;
        padding: 15px 0;
    }
    
    .question h3 {
        font-size: 1.4em;
        line-height: 1.3;
    }
    
    .answer p {
        font-size: 1.2rem;
        line-height: 1.5;
    }
    
    svg {
        width: 12px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
        margin: 1.5rem 0;
    }
    
    .question h3 {
        font-size: 1.2em;
        padding-right: 30px;
    }
    
    .answer p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 0 15px;
    }
}