/* ─── HS Books Section ─────────────────────────────────────────────────────── */

.hs-books {
    padding: 80px 0;
    background: #f9fafa;
}

.hs-books__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.hs-books__header {
    text-align: center;
    margin-bottom: 56px;
}

.hs-books__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hs-books__label-text {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #175955;
    text-transform: uppercase;
}

.hs-books__label-line {
    width: 40px;
    height: 1px;
    background: #175955;
    opacity: 0.4;
}

.hs-books__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
    line-height: 1.2;
}

.hs-books__subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Grid — 카드를 세로로 쌓음 */
.hs-books__grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Card */
.hs-books__card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(23, 89, 85, 0.08);
}

/* 상단: 이미지 왼쪽 + 텍스트 오른쪽 */
.hs-books__card-top {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
}

/* Book cover */
.hs-books__cover {
    flex: 0 0 150px;
    width: 150px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        4px 4px 0 rgba(23, 89, 85, 0.08),
        0 12px 32px rgba(23, 89, 85, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hs-books__cover:hover {
    transform: translateY(-4px);
    box-shadow:
        4px 8px 0 rgba(23, 89, 85, 0.10),
        0 20px 40px rgba(23, 89, 85, 0.22);
}

.hs-books__cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* Card body — 오른쪽 텍스트 영역 */
.hs-books__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* Title */
.hs-books__card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
}

/* Description */
.hs-books__card-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
    margin: 0;
    line-height: 1.8;
}

/* QR */
.hs-books__qr {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.hs-books__qr a {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.hs-books__qr img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #d0e8e6;
    border-radius: 6px;
    padding: 5px;
    background: #fff;
}

.hs-books__qr-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #fff;
    background: #175955;
    padding: 7px 18px;
    border-radius: 20px;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
}

.hs-books__qr a:hover .hs-books__qr-label {
    background: #0f3d3a;
    transform: translateY(-1px);
}

/* ─── 언어 전환 ─────────────────────────────────────────────────────────── */
.hs-en { display: none; }
html[lang="en"] .hs-ko { display: none; }
html[lang="en"] .hs-en { display: block; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .hs-books {
        padding: 60px 0;
    }

    .hs-books__header {
        margin-bottom: 36px;
    }

    .hs-books__card {
        padding: 24px;
        gap: 20px;
    }

    .hs-books__card-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hs-books__cover {
        flex: 0 0 auto;
        width: 130px;
    }

    .hs-books__card-body {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .hs-books__qr a {
        flex-direction: column;
        gap: 8px;
    }
}
