/* publications.css */

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
}

.publication-card {
    background: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid #eee;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.publication-card:hover {
    border-left-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pub-card-link {
    display: block;
    text-decoration: none;
    color: inherit; /* Keeps your original text color */
    height: 100%;
    transition: background-color 0.2s ease;
}

.pub-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #111;
}

.pub-authors {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.3rem;
}

.pub-venue {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-style: italic;
}

.year-group-title {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #bb1616;
    color: #333;
    font-size: 1.8rem;
    clear: both; /* Ensures headings don't wrap around floated cards */
}

.external-links {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.ext-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f4f4f4;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.ext-link:hover {
    background-color: #9d2235; /* Temple University Red */
    color: white;
    border-color: #9d2235;
}

.ext-link .icon {
    margin-right: 8px;
}

/* Ensure year headers have space below the new links */
.year-group-title {
    margin-top: 30px;
    border-bottom: 2px solid #9d2235;
    padding-bottom: 5px;
}