/* =====================================================
   Haneol Download Box - 하이픈디자인 download_box 완전 복제
   ===================================================== */

.haneol-download-content {
    width: 100%;
    background: #f5f5f5;
    overflow: hidden;
}

.haneol-download-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

/* 슬라이드 래퍼 — 현재 슬라이드 1개만 보임 */
.haneol-download-slides {
    position: relative;
    overflow: hidden;
}

/* download_box: 좌(텍스트) + 우(이미지) 레이아웃 */
.haneol-download-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 340px;
    padding: 60px 0;
    /* 기본: 첫 번째만 보임 */
    display: none;
}

.haneol-download-box:first-of-type {
    display: flex;
}

.haneol-download-box.active {
    display: flex;
}

/* 좌측: 텍스트 헤더 */
.haneol-download-header {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

.haneol-download-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.haneol-download-title span {
    /* 하이픈디자인: 마지막 줄 강조 — 따옴표 스타일 */
    color: #1a1a1a;
    font-style: normal;
}

/* 버튼 — 하이픈디자인: 밑줄 텍스트 스타일 */
.haneol-btn-group {
    display: flex;
}

.haneol-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 4px 0;
    background: transparent;
    color: #555;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px solid #aaa;
    transition: all 0.2s ease;
    letter-spacing: 0;
}

.haneol-download-btn::after {
    content: '↗';
    font-size: 13px;
}

.haneol-download-btn:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

/* 우측: 이미지 */
.haneol-download-figure {
    flex: 0 0 55%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.haneol-download-figure img {
    /* 하이픈디자인: 책이 오른쪽으로 기울어져 평평하게 놓인 느낌 */
    width: auto;
    height: 260px;
    max-height: 300px;
    object-fit: contain;
    transform: perspective(900px) rotateX(22deg) rotateZ(-6deg) translateY(20px);
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.13));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.haneol-download-content:hover .haneol-download-figure img {
    transform: perspective(900px) rotateX(14deg) rotateZ(-3deg) translateY(10px) scale(1.02);
}

/* 이전/다음 버튼 */
.haneol-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 36px;
    color: #999;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.haneol-swiper-btn:hover {
    color: #1a1a1a;
}

.haneol-swiper-btn._prev {
    left: -40px;
}

.haneol-swiper-btn._next {
    right: -40px;
}

/* 프로그레스 바 */
.haneol-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
}

.haneol-progress-bar span {
    display: block;
    height: 100%;
    background: #1a1a1a;
    width: 50%;
    /* 2슬라이드 기준 */
    transition: width 0.4s ease;
}

/* ─── 모바일 ─── */
@media (max-width: 834px) {
    .haneol-download-inner {
        padding: 0 28px;
    }

    .haneol-download-box {
        flex-direction: column;
        min-height: auto;
        padding: 48px 0 32px;
        gap: 24px;
    }

    .haneol-download-header {
        flex: none;
        width: 100%;
        gap: 20px;
    }

    .haneol-download-title {
        font-size: 24px;
    }

    .haneol-download-figure {
        flex: none;
        width: 100%;
        justify-content: center;
    }

    .haneol-download-figure img {
        height: 180px;
        transform: perspective(600px) rotateX(16deg) rotateZ(-4deg) translateY(12px);
    }

    .haneol-swiper-btn._prev {
        left: -8px;
    }

    .haneol-swiper-btn._next {
        right: -8px;
    }
}

@media (max-width: 480px) {
    .haneol-download-title {
        font-size: 20px;
    }

    .haneol-download-figure img {
        height: 140px;
    }
}