/* Media query for mobile devices */
@media (max-width: 768px) {
    #faq {
        width: 100% !important; /* Set full width */
        padding: 10px; /* Adjust padding as needed */
        margin: 0 auto; /* Centering might still be desired */
        box-sizing: border-box; /* Ensures padding does not add to the width */
    }

    #faq h2 {
        width: 100% !important; /* Set full width */
        margin: 0; /* Remove margins if necessary */
        padding: 10px 0; /* Optional: Add some vertical padding */
        box-sizing: border-box; /* Ensures padding does not add to the width */
    }

    #faq p {
        width: 100% !important; /* Set full width */
        margin: 10px 0; /* Adjust margins as needed */
        padding: 0 15px; /* Add horizontal padding for better text alignment */
        box-sizing: border-box; /* Ensures padding does not add to the width */
    }

    .faq-container {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        margin: 0 auto; /* Center the FAQ container */
    }
}


#faq {
    text-align: center;
    padding: 20px;
    margin: auto;
    width: 80%;
}

#faq h2, #faq p {
    margin-bottom: 20px;
}

a {
    color: #ff7b00; /* Example color - adjust to match your site's theme */
    text-decoration: none; /* Removes underline - add it back on hover for clarity */
}
a:hover, a:focus {
    text-decoration: underline; /* Helps users recognize it as a clickable link */
    cursor: pointer;
}

.faq-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90%;
    margin: 0 auto; /* Center the FAQ container */
}

.faq-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: max-height 0.3s ease-out, border-color 0.3s ease-out; /* Add transition for border color */
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-item:hover {
    border-color: #ff7b00; /* Change border color on hover */
}

.faq-question {
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    position: relative;
    text-align: left; /* Align text to the left */
}

.faq-question::after {
    content: '\002B'; /* Plus sign */
    font-size: 24px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    transition: transform 0.3s ease-out;
}

.faq-item.active .faq-question::after {
    content: '\2212'; /* Minus sign */
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0px 20px 20px 20px; /* Add padding to match question */
    font-size: 16px;
    color: #666;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    text-align: left; /* Align text to the left */
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust according to your content length */
}
