/* EfectiFAQs Styles */
.rnz-faqs-container {
    display: flex;
    flex-direction: column;
    /* Gap is controlled dynamically by Elementor settings, default 12px */
}

/* FAQ Item Block */
.rnz-faq-item {
    background-color: #f2f2f2;
    border-radius: 8px;
    overflow: hidden;
    /* Optional: subtle shadow if needed
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    */
}

/* Header / Button */
.rnz-faq-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.rnz-faq-header:is(:focus, :hover) {
    background-color: transparent !important;
}

.rnz-faq-header:focus-visible {
    outline: 2px solid #000;
    outline-offset: -2px;
}

/* Title */
.rnz-faq-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    padding-right: 20px;
    flex: 1 1 auto;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
}

/* Icon */
.rnz-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #000000;
}

/* Icon Animation - rotate to become an 'X' */
.rnz-faq-item.is-active .rnz-faq-icon {
    transform: rotate(135deg);
}

/* Content Area - CSS Grid Animation Technique */
.rnz-faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rnz-faq-item.is-active .rnz-faq-content {
    grid-template-rows: 1fr;
}

.rnz-faq-content-inner {
    overflow: hidden;
    padding: 0 24px;
    color: #333333;
    font-size: 1rem;
    line-height: 1.6;
}

/* Add padding to the top of the content only when it's open, or just use padding bottom */
.rnz-faq-content-inner>*:first-child {
    margin-top: 0;
}

.rnz-faq-content-inner>*:last-child {
    margin-bottom: 24px;
}

@media screen and (max-width:767px) {
    .rnz-faq-title {
        font-size: 1rem;
    }
}