/* Accordion Image Panel – frontend styles */

.aip-wrap {
    display: flex;
    align-items: stretch;
    gap: 48px;
    width: 100%;
    box-sizing: border-box;
}

/* Image on right (default) */
.aip-wrap.aip-pos-right { flex-direction: row; }

/* Image on left */
.aip-wrap.aip-pos-left  { flex-direction: row-reverse; }

/* ── Left: Accordion ───────────────────────────────── */
.aip-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aip-item {
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.aip-item--first {
    border-top: 1px solid rgba(255,255,255,0.12);
}

.aip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    cursor: pointer;
    user-select: none;
    gap: 16px;
    outline: none;
}

.aip-header:focus-visible {
    outline: 2px solid #4e9af1;
    outline-offset: 2px;
    border-radius: 3px;
}

.aip-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    transition: color 0.25s ease;
    line-height: 1.4;
}

.aip-label.active {
    color: #4e9af1;
}

.aip-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    line-height: 1;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.aip-icon.active {
    border-color: #4e9af1;
    color: #4e9af1;
}

.aip-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.38s ease, padding-bottom 0.38s ease;
}

.aip-body.open {
    max-height: 200px;
    padding-bottom: 24px;
}

.aip-body p {
    font-size: 26px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

/* ── Right: Image Panel ────────────────────────────── */
.aip-right {
    width: 38%;
    flex-shrink: 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 460px;
    background: #0d1117;
}

.aip-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: block;
}

.aip-img.active {
    opacity: 1;
}

.aip-badge {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.92);
    border-radius: 999px;
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    z-index: 3;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
    .aip-wrap,
    .aip-wrap.aip-pos-left,
    .aip-wrap.aip-pos-right {
        flex-direction: column;
    }

    .aip-right {
        width: 100% !important;
        min-height: 280px;
    }

    .aip-body p {
        font-size: 20px;
    }
}
