/* Publication Card Styles */
.pub-card {
    border: none;
    border-radius: 5px !important;
    overflow: hidden;
    background: #fff;
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 140px;
    transition: box-shadow 0.25s, transform 0.25s, background 0.25s;
    position: relative;
}

.pub-card:hover {
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.18), 0 2px 8px rgba(31, 41, 55, 0.10);
    background: #f9fafb;
    transform: translateY(-4px) scale(1.015);
}

.pub-card-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    margin: 1.25rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.07);
    background: #f3f4f6;
}

.pub-card-body {
    padding: 1.25rem 1.25rem 1.25rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pub-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.4rem;
    font-family: var(--font-main);
    line-height: 1.3;
}

.pub-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.pub-card-title a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

/* Ensure clickable card title (span or a) changes color on card hover */
.pub-card:hover .pub-card-title,
.pub-card:hover .pub-card-title span,
.pub-card:hover .pub-card-title a {
    color: #f59e0b;
    text-decoration: underline;
}

.pub-card-authors {
    font-size: 0.93rem;
    color: #6b7280;
    margin-bottom: 0.2rem;
    font-family: var(--font-heading);
}

.pub-card-authors a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s;
}

.pub-card-authors a:hover {
    color: #f59e0b;
}

.pub-card-journal {
    font-size: 0.9rem;
    color: #9ca3af;
    font-style: italic;
    margin-bottom: 0.2rem;
}

.pub-card-category {
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 600;
    color: #316E8C;
    margin-top: 0.2rem;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .pub-card {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding: 0.9rem;
    }

    .pub-card-img {
        width: 110px !important;
        height: 110px !important;
        min-height: unset;
        max-height: unset;
        margin: 0 !important;
        border-radius: 0.25rem !important;
        object-fit: cover;
        display: block;
    }

    .pub-card-body {
        padding: 1rem;
    }
}
/* Publication Filter Tabs (nav-tabs) Enhancement */
.publication-filter-tabs {
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
}

.publication-filter-tabs .nav-link {
}

.publication-filter-tabs .nav-link {
    color: #6b7280;
    /* muted gray, matches the muted text color in the theme */
    font-weight: 600;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    margin-right: 0.25rem;
    margin-left: 0.25rem;
    padding: 0.6rem 1.3rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(31, 41, 55, 0.04);
    position: relative;
    z-index: 1;
}

.publication-filter-tabs .nav-link.active {
    color: #1f2937;
    background: #fff;
    border-bottom: 2px solid #f59e0b;
    font-weight: 700;
    z-index: 2;
}

.publication-filter-tabs .nav-link:hover,
.publication-filter-tabs .nav-link:focus {
    background: #e0e7ef;
    color: #f59e0b;
}

@media (max-width: 768px) {
    .publication-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100vw;
        max-width: 100vw;
        padding-bottom: 0.5rem;
    }

    .publication-filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .publication-filter-tabs .nav-link {
        white-space: nowrap;
        padding: 0.5rem 0.9rem;
        font-size: 0.97rem;
        margin-left: 0.1rem;
        margin-right: 0.1rem;
    }
}

