/* Custom Post Accordion for Elementor — Structural Styles */

.wcpafe-item {
    overflow: clip;
}

.wcpafe-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    transition: background-color 0.3s, border-color 0.3s;
}

.wcpafe-summary::-webkit-details-marker {
    display: none;
}

.wcpafe-title {
    font-size: 28px;
    font-weight: 500;
}

.wcpafe-info {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.wcpafe-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wcpafe-toggle-closed {
    display: flex;
}

.wcpafe-toggle-open {
    display: none;
}

details[open] .wcpafe-toggle-closed {
    display: none;
}

details[open] .wcpafe-toggle-open {
    display: flex;
}

.wcpafe-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.wcpafe-content ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

details[open] .wcpafe-content {
    grid-template-rows: 1fr;
}

.wcpafe-content > div {
    overflow: hidden;
}

@media (max-width: 480px) {
    .wcpafe-title {
        font-size: 20px;
    }

    .wcpafe-item {
        margin-bottom: 20px;
    }
}
