/* FAQ Toggle Styles for ht-info-img component */
.faq-item {
    transition: all 0.3s ease-in-out;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    margin: 0;
    padding: 0;
}

.faq-content.faq-open {
    max-height: 200px; /* Adjust this value based on your content needs */
    opacity: 1;
    padding: 12px 0 28px; /* Add some padding when open */
}

.faq-content.faq-closed {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

/* Optional: Add a visual indicator for the toggle state */
.faq-item dt {
    position: relative;
    transition: all 0.3s ease-in-out;
}

.faq-item dt > svg {
    position: absolute;
    right: 0;
    top: 16px;
    width: 20px;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease-in-out;
}

.faq-item.faq-active dt > svg {
    transform: translateY(-50%) rotate(-45deg);
}

/* Ensure dt elements are clickable and have proper spacing */
.faq-item dt {
    padding: 0px 32px 12px 0;
    margin: 0;
    font-weight: 400 !important;
}

.faq-item dd {
    margin: 0;
    line-height: 1.5;
    border-top: 2px solid #F0F6F6;
}

@media only screen and (max-width: 640px) {
    .faq-item dt {
        padding: 0px 32px 0 0;
    }

    .faq-content.faq-open {
        padding: 10px 0 10px;
    }
}
