/* Modern FAQ - Integrated with Elementor Global Styles */
.vro-faq-product {
    max-width: 800px;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vro-faq-product .vro-faq-item {
    /* Menggunakan variabel global Elementor untuk border */
    border: 1px solid var(--e-global-color-border, #DDDDDD);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.vro-faq-product .vro-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.vro-faq-product .vro-faq-question {
    margin: 0;
}

.vro-faq-product .vro-faq-question button {
    /* Tombol sekarang menangani semua layout dan padding */
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    text-align: left;
    width: 100%;
    cursor: pointer;
    
    /* Properti yang dipindahkan dari h3 ke button */
    /* Reserve space on the right for the icon: left padding + icon width */
    /* Icon default size is 1.5em, so keep right padding = 1.25rem + 1.5em */
    padding: 1.25rem calc(1.25rem + 1.5em) 1.25rem 1.25rem;
    position: relative; /* position icon absolutely */
    display: block; /* let text wrap naturally */
    transition: background-color 0.2s ease;
}

.vro-faq-product .vro-faq-question button::after {
    content: '+';
    font-size: 1.5em;
    font-weight: 300;
    color: var(--e-global-color-primary, #111827);
    transition: transform 0.3s ease, color 0.3s ease;
    transform: translateY(-50%) rotate(0deg);
    position: absolute;
    right: 1.25rem; /* match left padding for symmetrical spacing */
    top: 50%;
}

/* Ensure question text wraps nicely */
.vro-faq-product .vro-faq-question .vro-faq-question-text {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere; /* modern wrapping for long words/URLs */
    word-break: break-word;  /* fallback */
}

.vro-faq-product .vro-faq-item.active {
    background-color: var(--e-global-color-bg_shape, #f9fafb);
}

.vro-faq-product .vro-faq-item.active .vro-faq-question button::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.vro-faq-product .vro-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.25rem;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.2s ease-in;
    line-height: 1.7;
    /* Menggunakan warna BG Shape dari Elementor */
    background-color: var(--e-global-color-bg_shape, #f9fafb);
}

.vro-faq-product .vro-faq-item.active .vro-faq-answer {
    max-height: 1000px;
    opacity: 1;
    padding: 0.5rem 1.25rem 1.25rem 1.25rem;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out, opacity 0.3s ease-in-out 0.1s;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .vro-faq-product .vro-faq-question button {
        /* On mobile, icon font-size is 1.25em. Reserve matching space */
        padding: 1rem calc(1rem + 1.25em) 1rem 1rem;
    }
    .vro-faq-product .vro-faq-question button::after {
        font-size: 1.25em;
        right: 1rem; /* keep same spacing as left padding */
    }
}