/* 아코디언 섹션 래퍼 */
.solution-intro { max-width: 1200px; margin: 20px auto 60px; padding: 0 20px; }

/* 상단 헤더 */
.intro-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.intro-header h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -1px; }
.more-link { color: #0066cc; text-decoration: none; font-size: 17px; }

/* 메인 컨테이너(카드) */
.intro-container { display: flex; height: auto; min-height: 520px; background-color: #f5f5f7; border-radius: 30px; padding: 60px; gap: 40px; align-items: flex-start; }

/* 좌측 아코디언 */
.accordion-side { flex: 1; min-width: 0; list-style: none; padding: 0; margin: 0; }
.accordion-item { border-bottom: 1px solid #d2d2d7; }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 30px 0; background: none; border: none; cursor: pointer; font-size: clamp(18px, 2vw, 28px); font-weight: 600; color: #1d1d1f; text-align: left; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; font-size: 16px; line-height: 1.6; color: #1d1d1f; padding-bottom: 0; }

/* 활성화 상태 */
.accordion-item.active .accordion-panel { max-height: 360px; padding-bottom: 30px; }
.accordion-item.active .accordion-btn { color: #1d1d1f; }
.accordion-item:not(.active) .accordion-btn { color: #86868b; }

/* 우측 이미지 */
.image-side { flex: 1.5; min-width: 0; display: flex; justify-content: center; overflow: visible; }
.img-wrapper { width: 100%; overflow: visible; }
.img-wrapper img { max-width: 100%; height: auto; display: block; transition: opacity 0.3s ease; border-radius: 22px; }

/* modal */
/* body 스크롤 방지 */
body.modal-open { overflow: hidden; }

.image-modal { position: fixed; inset: 0; z-index: 9999; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; }
.image-modal.show { opacity: 1; visibility: visible; }
.image-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.image-modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.92); opacity: 0; transition: all 0.35s cubic-bezier(.25,.8,.25,1); width: calc(100% - 80px); height: calc(100% - 80px); display: flex; align-items: center; justify-content: center; }
.image-modal.show .image-modal-content { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.image-modal-content img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

.image-modal-close { position: absolute; top: -10px; right: -10px; width: 44px; height: 44px; border-radius: 50%; border: none; font-size: 26px; background: white; cursor: pointer; transition: all 0.2s ease; }
.image-modal-close:hover { transform: rotate(90deg); }
.img-wrapper img { cursor: zoom-in; transition: transform 0.25s ease; }
.img-wrapper img:hover { transform: scale(1.03); }


@media (min-width: 1025px){
    .accordion-side { flex: 1 1 48%; }
    .image-side { flex: 0 0 50%; position: sticky; top: calc(180px + 50px); align-self: flex-start; display: block; }
    .img-wrapper img { width: 100%; max-height: calc(100vh - 120px - 48px); object-fit: cover; }
}

@media (max-width: 1024px){
    .solution-intro { padding: 0 16px; margin: 16px auto 70px; }
    .intro-header { margin-bottom: 18px; }
    .intro-container { padding: 32px; gap: 24px; border-radius: 26px; min-height: 0; }
    .accordion-btn { padding: 22px 0; }
    .image-side { position: static; top: auto; display: flex; justify-content: center; }
    .img-wrapper img { max-height: none; object-fit: contain; border-radius: 18px; max-height: 360px; }
}

@media (max-width: 768px){
    .solution-intro { padding: 0 12px; margin: 12px auto 60px; }
    .intro-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
    .more-link { font-size: 14px; }
    .intro-container { flex-direction: column; align-items: stretch; padding: 18px; gap: 16px; border-radius: 22px; }
    .image-side { order: -1; position: static; display: block; }
    .img-wrapper img { width: 100%; max-height: none; border-radius: 16px; }
    .accordion-btn { font-size: clamp(16px, 4.6vw, 20px); padding: 18px 0; }
    .accordion-panel { font-size: 14px; }
    .accordion-item.active .accordion-panel { max-height: 520px; padding-bottom: 18px; }

    /*modal*/
    .image-modal-content { width: calc(100% - 24px); height: calc(100% - 24px); }
    .image-modal-close { top: 8px; right: 8px; }
}

@media (max-width: 480px){
    .solution-intro { padding: 0 12px; }
    .intro-container { padding: 14px; border-radius: 18px; }
    .accordion-btn { padding: 16px 0; }
}
