.bib-item {
    display: flex;
    align-items: flex-start; /* Ensure thumbnail stays aligned to top */
    margin-bottom: 2rem;
    background-color: #fffbe9; /* Shallow background color for each bib-item */
    padding: 1rem; /* Add some padding for visual spacing */
    border-radius: 8px; /* Optional: rounded corners for each item */
}

.thumbnail {
    width: 100px;
    height: 100px;
    margin-top: 0.5rem;
    margin-right: 1.5rem;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0; /* Prevent shrinking to keep it a fixed size */
}

.bib-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.title {
    font-size: 1.2rem;
    font-weight: bold;
}

.authors, .source-year {
    font-size: 0.9rem;
    color: #555;
}

.buttons {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

/* Controls pdf & code buttons */
.button, .collapsible {
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
    border: none;
    background-color: #E3CAA5;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

/* Controls abstract button */
.collapsible {
    background-color: #A9907E;
}

.collapsible:focus, .button:focus {
    outline: none;
}

.abstract-content {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #333;
}

.abstract-content.active {
    display: block;
}

/* Responsive Styling */
@media (max-width: 768px) {
    /* Bibliography items */
    .bib-item {
        flex-direction: column; /* Stack thumbnail and content */
        padding: 0.5rem;
    }

    .thumbnail {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem; /* Centers and spaces thumbnail */
    }
}