@import "constants.css";

.faq-container {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(173, 173, 173, 0.555);
    padding: 20px;
    background: #ffffffc5;
}

.faq-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../brinquedos/background_faq.jpeg');
    background-size: cover;
    z-index: -1;
    filter: blur(4px);
    border-radius: 8px; /* Mantém o arredondamento igual ao da caixa */
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.faq-question {
    font-weight: bold;
    cursor: pointer;
    color: #007bff;
    transition: color 0.3s ease;
    font-size: 1.2em;
}

.faq-question:hover {
    color: #0056b3;
}

.faq-answer {
    display: none;
    margin-top: 10px;
    color: #181818;
    font-size: 1em;
}

/* Responsividade para tablets (768px a 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .faq-container {
        max-width: 90%; /* Aumenta a largura da FAQ para tablets */
    }

    .faq-question {
        font-size: 1.1em; /* Leve ajuste no tamanho da pergunta para tablets */
    }

    .faq-answer {
        font-size: 1em;
    }
}

/* Responsividade para dispositivos móveis (até 767px) */
@media (max-width: 767px) {
    .faq-container {
        max-width: 95%; /* Expande o container para quase a largura total da tela em mobile */
        padding: 15px; /* Reduz o padding em dispositivos menores */
    }

    .faq-question {
        font-size: 1.1em; /* Reduz um pouco o tamanho da pergunta em dispositivos móveis */
    }

    .faq-answer {
        font-size: 0.95em; /* Leve ajuste no tamanho da resposta em dispositivos móveis */
    }
}
