

.hunza-downloads-lib {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0;
    color: #111;
    font-size: 15px;
    line-height: 1.6;
}

.hunza-downloads-lib *,
.hunza-downloads-lib *::before,
.hunza-downloads-lib *::after {
    box-sizing: border-box;
}

.hdl-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.hdl-search {
    flex: 1;
    min-width: 220px;
    height: 44px !important;
    padding: 0 1rem !important;
    border: 1.5px solid #ccc;
    border-radius: 2px;
    font-size: 15px;
    color: #111;
    font-family: inherit;
    line-height: 42px;
    margin: 0 !important;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hdl-search::placeholder {
    color: #999;
}

.hdl-search:focus {
    outline: none;
    border-color: #d4622a;
    box-shadow: 0 0 0 3px rgba(212, 98, 42, .12);
}

.hdl-tabs {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.hdl-tab {
    height: 44px !important;
    border: 1px solid #ccc;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 0 1.25rem !important;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    line-height: 42px !important;
    margin: 0 !important;
    transition: background .15s, color .15s, border-color .15s;
}

.hdl-tab:hover {
    border-color: #999;
}

.hdl-tab.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.hdl-status {
    font-size: 14px;
    color: #b00020;
    margin-bottom: 0.75rem;
}

.hdl-empty {
    font-size: 15px;
    color: #777;
    padding: 1.5rem 0;
    text-align: center;
}

.hdl-results {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hdl-item {
    display: block;
    width: 100%;
}

/* WPDM card overrides — tighter padding */
.hdl-item .card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 2px !important;
    border: 1px solid #eaeaea !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.04) !important;
    font-size: 15px;
    line-height: 1.6;
}

.hdl-item .card-body {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0.75rem !important;      /* reduced from 1rem */
    font-size: 15px;
    color: #333;
}

/* Titles inside cards */
.hdl-item .card-title,
.hdl-item .card-body h3,
.hdl-item .card-body h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: .02em !important;
    color: #111 !important;
    margin: 0 0 .35rem !important;
    line-height: 1.3 !important;
}

/* General text inside cards */
.hdl-item .card-body p,
.hdl-item .card-body div:not(.btn-group):not(.card-footer) {
    font-size: 14px !important;        /* slightly smaller */
    color: #555 !important;
    margin: 0 0 .5rem !important;
    line-height: 1.5 !important;       /* tighter line-height */
}

/* Buttons inside cards */
.hdl-item .card-body .btn,
.hdl-item .card-body a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 12px !important;      /* reduced */
    border: 1px solid #ccc !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    line-height: 1 !important;
    margin: 0 .25rem .25rem 0 !important;
    transition: background .15s, color .15s, border-color .15s;
}

.hdl-item .card-body .btn:hover,
.hdl-item .card-body a.btn:hover {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}

/* Space between cards */
.hdl-item + .hdl-item {
    margin-top: 0.75rem !important;
}

/* Load more button */
.hdl-loadmore-row {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.hdl-loadmore {
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .6rem 1.5rem;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s, border-color .15s;
}

.hdl-loadmore:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.hdl-spinner {
    font-size: 14px;
    color: #555;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .5rem 0;
}

/* Responsive */
@media (max-width: 900px) {
    .hunza-downloads-lib {
        padding: 0 1.5rem;
    }
}

@media (max-width: 600px) {
    .hdl-controls {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

    .hdl-search {
        width: 100%;
        height: 44px !important;
        line-height: 42px;
    }

    .hdl-tabs {
        width: 100%;
    }

    .hdl-tab {
        height: 40px !important;
        line-height: 38px !important;
        padding: 0 1rem !important;
        font-size: 12px;
    }

    .hdl-item .card-body {
        padding: 0.6rem !important;
    }

    .hdl-item .card-title,
    .hdl-item .card-body h3,
    .hdl-item .card-body h4 {
        font-size: 15px !important;
    }

    .hdl-item .card-body p,
    .hdl-item .card-body div:not(.btn-group):not(.card-footer) {
        font-size: 13px !important;
    }
}