/* === FAQ BLOCK CSS (assets/css/faq-block.css) === */
.faq-item {
    margin-bottom: 8px;
    border: 1px solid var(--bg-700); /* Added a subtle border for separation */
    border-radius: 8px; /* Rounded corners for items */
    overflow: hidden; /* Ensures content stays within border-radius */
}

.faq-question {
    background-color: unset; /* Transparent background */
    color: var(--primary-700, #4A90E2); /* Use primary color for both open and closed, fallback color */
    padding: 15px 25px 15px 20px; /* Increased vertical padding for better touch targets */
    border: none;
    width: 100%;
    text-align: right; /* Align text to the right */
    cursor: pointer;
    border-radius: 3px; /* Slightly rounded corners for the button */
    position: relative;
    font-weight: 900 !important; /* Bold font weight */
    font-size: 1.2em; /* Slightly smaller font size for better readability */
    opacity: 0.8; /* Default opacity for closed state */
    transition: opacity 0.3s ease, background-color 0.3s ease;
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Space out question and arrow */
    align-items: center; /* Vertically align items */
    box-sizing: border-box; /* Include padding in the width */
}

.faq-question:hover {
    background-color: var(--bg-700, #f8f8f8); /* Light background on hover */
    opacity: 1; /* Full opacity on hover */
}

.faq-answer {
    padding: 10px 20px;
    background-color: var(--bg-1000, #fdfdfd); /* Light background for answer */
    border-top: 1px solid var(--bg-700); /* Separator line for answer */
    display: none; /* Hidden by default */
    color: var(--neutral-50, #333333); /* Darker text color for answers */
    font-size: 1em;
    line-height: 1.6;
    box-sizing: border-box; /* Include padding in the width */
}

.faq-arrow {
    font-family: "Font Awesome 5 Free"; /* Ensure the font icons are loaded */
    font-weight: 900; /* Font Awesome solid */
    margin-left: 10px; /* Space between text and arrow */
    transition: transform 0.3s ease; /* Smooth transition for arrow rotation */
    color: var(--primary-700, #4A90E2); /* Match arrow color to question */
}

.faq-arrow.e-fas-chevron-down::before {
    content: "\f078"; /* Font Awesome down arrow */
}

.faq-arrow.e-fas-chevron-up::before {
    content: "\f077"; /* Font Awesome up arrow */
    transform: rotate(180deg); /* Rotate arrow up */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-question {
        font-size: 1.1em; /* Slightly smaller font on tablets */
        padding: 12px 20px 12px 15px;
    }
    .faq-answer {
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 1em; /* Even smaller font on mobile */
        padding: 10px 15px 10px 10px;
    }
    .faq-arrow {
        margin-left: 5px;
    }
    .faq-answer {
        padding: 5px 10px;
    }
}
