.hd-lib {
    padding-top: 20px;
    padding-bottom: 45px;
    color: #2c2c2c
}

.hd-lib h1 {
    font-size: 30px;
    margin: 22px 0;
    font-weight: 700
}

.hd-lib-intro {
    margin-bottom: 24px;
    line-height: 1.65
}

.hd-lib section {
    margin-top: 32px
}

.hd-lib h2 {
    font-size: 23px;
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding: 0 0 12px;
    margin: 0 0 22px;
    position: relative
}

.hd-lib h2:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 75px;
    height: 2px;
    background: #f4b400
}

.hd-lib .hd-lib-group {
    font-size: 20px;
    font-weight: 700;
    margin: 26px 0 16px
}

.hd-lib-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px
}

.hd-lib-card {
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    background: #fff;
    text-align: center
}

.hd-lib-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3/4;
    background: #f7f7f7;
    color: #555;
    overflow: hidden;
    border-radius: 4px
}

.hd-lib-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.hd-lib-card h3 {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
    margin: 14px 0;
    flex: 1
}

.hd-lib-btn {
    display: block;
    background: #f4b400;
    color: #222 !important;
    padding: 11px 8px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none !important
}

.hd-lib-btn:hover {
    background: #e4a800
}

.hd-lib-extra {
    font-size: 13px;
    margin-top: 10px;
    color: #555;
    text-decoration: underline
}

.hd-lib-year {
    padding: 16px 20px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 12px
}

.hd-lib-year h3 {
    font-size: 20px;
    margin: 0 0 12px;
    font-weight: 700
}

.hd-lib-year ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
    columns: 3;
    column-gap: 30px
}

.hd-lib-year li {
    margin-bottom: 8px;
    break-inside: avoid
}

.hd-lib-year a {
    color: #333;
    overflow-wrap: anywhere
}

.hd-lib-year a:hover {
    color: #9c7200
}
.hd-lib-card {
    overflow: hidden;
}

.hd-lib-card img {
    transition: transform 0.4s ease;
    transform: scale(1);
}

.hd-lib-card:hover img {
    transform: scale(1.1);
}
@media(max-width:991px) {
    .hd-lib-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px
    }
}

@media(max-width:767px) {
    .hd-lib-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .hd-lib-card {
        padding: 9px
    }

    .hd-lib h1 {
        font-size: 25px
    }

    .hd-lib h2 {
        font-size: 20px
    }

    .hd-lib-card h3 {
        font-size: 14px
    }

    .hd-lib-btn {
        font-size: 12px
    }

    .hd-lib-year ul {
        columns: 1
    }
}