/* ── NYW Glass Accordion ───────────────────────────────── */

.nyw-acc-wrap {
    position: relative;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    box-sizing: border-box;
}

/* Gradient border via pseudo-element */
.nyw-acc-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        180deg,
        var(--nyw-acc-bt, rgba(255,255,255,0.1)) 0%,
        var(--nyw-acc-bb, rgba(0,0,0,0))         100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── Items ─────────────────────────────────────────────── */

.nyw-acc-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nyw-acc-divider {
    height: 1px;
    background: rgba(217,217,217,0.3);
    margin: 0;
}

.nyw-acc-item {
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.25s ease;
}

/* ── Header ────────────────────────────────────────────── */

.nyw-acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.nyw-acc-question {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    flex: 1;
}

/* ── Icon ──────────────────────────────────────────────── */

.nyw-acc-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nyw-acc-icon svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255,255,255,0.8);
    /* Desktop default: chevron points down */
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    display: block;
}

/* Desktop open: rotate up */
.nyw-acc-item.is-open .nyw-acc-icon svg {
    transform: rotate(180deg);
}

/* Remove old dual-icon classes */
.nyw-acc-icon-right,
.nyw-acc-icon-down { display: block; }

/* ── Body ──────────────────────────────────────────────── */

.nyw-acc-body {
    overflow: hidden;
}

.nyw-acc-body[hidden] {
    display: block !important;
    height: 0;
    visibility: hidden;
}

.nyw-acc-answer {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    line-height: 1.5;
    padding: 0 16px 16px;
}

.nyw-acc-answer p {
    margin: 0;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 767px) {
    .nyw-acc-wrap {
        padding: 16px;
        border-radius: 16px;
    }

    .nyw-acc-header {
        padding: 16px;
        align-items: flex-start; /* icon aligns to top of multi-line question */
    }

    .nyw-acc-question {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
    }

    /* Mobile: rotate chevron -90deg so ∨ becomes › */
    .nyw-acc-icon svg {
        width: 16px;
        height: 16px;
        margin-top: 4px;
        transform: rotate(-90deg);
    }

    /* Mobile open: back to pointing down (0deg) */
    .nyw-acc-item.is-open .nyw-acc-icon svg {
        transform: rotate(0deg);
    }

    .nyw-acc-answer {
        font-size: 14px;
        line-height: 1.5;
    }
}
