/* --- THE FIX IS HERE --- */
.pub-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers the children flex items */
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 800px; /* Constraints the width */
    margin-left: auto;  /* Auto margins center the block */
    margin-right: auto;
}
/* ----------------------- */

/* Card Style */
.pub-card {
    scroll-margin-top: 80px;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-left: 5px solid #A1D044;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.pub-summary { color: #58687a; font-size: .95rem; line-height: 1.6; margin: 0 0 14px; }

/* Header & Meta */
.pub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.pub-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.pub-badge.conference { background-color: #e3f2fd; color: #1565c0; }
.pub-badge.workshop { background-color: #fff3e0; color: #ef6c00; }

.pub-venue {
    color: #666;
    font-weight: 600;
}

/* Typography */
.pub-title {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
}

.pub-authors {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
}

/* Add this to ensure the bold name stands out nicely */
.pub-authors strong {
    color: #000; /* Makes your name slightly darker than the others */
    font-weight: 700;
}

/* Buttons */
.pub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
}

.btn {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-paper {
    background-color: #f6f8fa;
    color: #24292e;
    border: 1px solid #d1d5da;
}
.btn-paper:hover { background-color: #e1e4e8; color: #24292e; }

.btn-audio {
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
    color: #c2185b;
    border: 1px solid #f8bbd0;
}
.btn-audio:hover {
    background: linear-gradient(135deg, #f8bbd0 0%, #e1bee7 100%);
}

.audio-note {
    font-weight: normal;
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.9;
}

/* Abstract Toggle */
details.pub-abstract {
    border-top: 1px dashed #eee;
    padding-top: 15px;
    margin-top: 10px;
}

details.pub-abstract summary {
    cursor: pointer;
    font-size: 0.9rem;
    color: #0366d6;
    font-weight: 600;
    list-style: none;
    outline: none;
}

details.pub-abstract summary::-webkit-details-marker {
    display: none;
}

details.pub-abstract summary::after {
    content: " +";
}

details.pub-abstract[open] summary::after {
    content: " -";
}

details.pub-abstract p {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    background-color: #fafbfc;
    padding: 15px;
    border-radius: 6px;
}

.scholar-link {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
