/* =====  ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #d9d5b6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 11rem;
    margin-bottom: 3rem;
}

.faq-title {
    color: #3f0009;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: #d9d5b6; 
   border: 1px solid #555;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active{
    border: 2px solid #f04d4d;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question h3 {
    color: #3f0009; 
    font-size: 1.3rem;
    font-weight: bold;
}

.faq-icon {
    color: #3f0009;  
    font-size: 0.9rem;
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer p {
    color: #3f0009;  
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;  
    padding: 0 25px 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* .faq-item.active .faq-question {
    border-bottom: 1px solid #b5b090; 
} */

@media (max-width: 768px) {
    .faq-title {
        font-size: 2rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faq-container {
        padding: 15px;
    }
    
    .faq-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 15px 25px
    }
}




/* this part in file indexx.html */

.section-7 {
    background-color: #780016;
}
.section-7 .faq-item {
    background-color: #51000f;
    
}
.section-7 .faq-item h3{
   color: #e9c0e9;
    
}
.section-7 .faq-icon {
    color: #e9c0e9;  
    font-size: 0.9rem;
    transition: transform 0.4s ease;
}
.section-7 .faq-answer p {
    color: #e9c0e9;  
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}
.section-7 .faq-title {
    color: #e9c0e9;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
} 
.section-7 .faq-container  {
    margin-top: 3rem;
}