/* FAQ Container */
.faq-container, .faq-container-upper, .faq-container-lower {
    padding: 20px;
    background-color: transparent;
    direction: rtl;
    text-align: right;
}

/* FAQ Item */
.faq-item {
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    /* Clean metallic gradient as per your design */
    background-image: linear-gradient(90deg, #bdc2c7, #bdc2c7, #9EA6B0, #e4ebf2, #B4BECB);
    overflow: hidden; /* Ensures the answer doesn't spill out before it's open */
}

/* FAQ Question */
.faq-question {
    padding: 15px 20px;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: bold;
    font-family: "Noto Sans", "Noto Sans Hebrew", sans-serif;
    line-height: 1.5;
    cursor: pointer;
    color: #333; /* Darker for better accessibility contrast */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0; /* JS will update this to scrollHeight */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 20px; /* Horizontal padding only while closed */
    text-align: right;
    box-sizing: border-box;
    color: #444;
    font-size: 17px; /* Slightly smaller than question for hierarchy */
    font-family: "Noto Sans", "Noto Sans Hebrew", sans-serif;
    background-color: rgba(255, 255, 255, 0.3); /* Slight overlay to make text readable over gradient */
}

/* When the FAQ is active */
.faq-item.active .faq-answer {
    /* JS handles the exact max-height, but we define the padding here */
    padding-top: 15px;
    padding-bottom: 20px;
}

/* Optional: Add an icon (Chevron) for better UX */
.faq-question::after {
    content: '\25BC'; /* Down arrow */
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-right: 10px;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}