.lib-ref-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.lib-ref-wrapper.mode-filter .lib-ref-filter {
    width: 100%;
    position: static;
}

.lib-ref-wrapper.mode-list .lib-ref-grid {
    width: 100%;
}

.lib-ref-filter {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.lib-ref-filter ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid #eee;
}

.lib-ref-filter li {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    border-left: 2px solid transparent;
    margin-left: -2px;
    color: #666;
}

.lib-ref-filter li:hover {
    color: #d30000;
}

.lib-ref-filter li.active {
    border-left-color: #d30000;
    color: #d30000;
}

.lib-ref-grid {
    display: grid;
    gap: 20px;
    flex-grow: 1;
}

.lib-ref-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lib-ref-image a {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
}

.lib-ref-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lib-ref-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lib-ref-info h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
}

.lib-ref-job {
    font-size: 14px;
    color: #d30000;
    font-weight: 500;
}

.lib-ref-address {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

.lib-ref-address i {
    color: #d30000;
    margin-right: 5px;
}

@media (max-width: 1200px) {
}

@media (max-width: 991px) {
    .lib-ref-wrapper:not(.mode-list) {
        flex-direction: column;
    }
    .lib-ref-filter {
        width: 100%;
        position: static;
    }
    .lib-ref-filter ul {
        display: flex;
        flex-wrap: wrap;
        border-left: none;
        border-bottom: 2px solid #eee;
    }
    .lib-ref-filter li {
        border-left: none;
        border-bottom: 2px solid transparent;
        margin-left: 0;
        margin-bottom: -2px;
    }
    .lib-ref-filter li.active {
        border-bottom-color: #d30000;
    }
}

@media (max-width: 575px) {
}
