/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@300;400;500;600;700&family=Lato:wght@300;400;500;600;700&family=Fira+Sans:wght@300;400;500;600;700&family=Georgia:wght@400;700&family=Playfair+Display:wght@400;500;600;700&family=Crimson+Text:wght@400;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scroll-padding-top: 60px;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

/* Full width sections with content centered */
.section-wrapper {
    width: 100%;
    padding: 40px 0;
    transition: background-color 0.3s ease;
}

.section-wrapper:nth-child(odd) {
    background-color: #f0f2f5;
}

.section-wrapper:nth-child(even) {
    background-color: #ffffff;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

section > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1A1A40;
    margin-top: 40px;
    margin-bottom: 30px;
}

.publication {
    padding-top: 20px;
    text-align: left;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
}

.publication a {
    text-decoration: none;
    color: #1772d0;
    margin-left: 6px; /* Add space before each link */
    margin-right: 8px; /* Add space after each link */
    font-size: 16px; /* Make link text slightly bigger */
}

h1 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: 42px;
    margin: 0 0 10px 0;
    color: #1A1A40;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(218, 165, 32, 0.08);
}

h1 a {
     color: inherit;
     text-decoration: none;
}

.profile-image {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto 15px auto;
    display: block;
}

.menu {
    margin-bottom: 30px;
    margin-top: 20px;
    font-size: 18px;
    font-family: 'Lato', sans-serif;
    text-align: center;
    padding: 10px 0;
}

.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu li {
    display: inline-block;
    margin: 0 8px;
    position: relative;
}

.menu a {
    margin: 0 4px;
    color: #23272f; /* dark gray */
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 8px 16px;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 20px;
    background: linear-gradient(145deg, #fafbfc, #e8eaed);
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/*Hover Effect: Much softer highlighting without shifting */
.menu a:hover {
    color: #fff;
    background: linear-gradient(145deg, #444a54, #23272f);
    border: 1px solid #23272f;
    box-shadow: 0 6px 15px rgba(44, 62, 80, 0.13), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.08);
}

/* Remove the old underline animation */
.menu a::after {
    display: none;
}

/* Hover Effect: Remove old orange underline */
.menu a:hover::after {
    display: none;
}

/* Active Page: Softer active styling without shifting */
.menu a.active {
    color: #23272f;
    background: linear-gradient(145deg, #fafbfc, #e8eaed);
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.menu a.active::after {
    display: none;
}

/* Add a subtle focus state for accessibility */
.menu a:focus {
    outline: none;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 3px rgba(107, 155, 217, 0.3);
}

.bio {
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    
    /* Glass shine effect */
    box-shadow: 
        0 4px 16px rgba(31, 38, 135, 0.22),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1.5px 0 rgba(255, 255, 255, 0.09);
    
    /* Subtle gradient overlay for more depth */
    position: relative;
    overflow: hidden;
    
    /* Smooth transitions */
    transition: all 0.3s ease;
    
    /* Modern typography */
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.bio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

/* Shine animation on hover */
.bio:hover::before {
    left: 100%;
}

/* Enhanced hover effect */
.bio:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 28px rgba(31, 38, 135, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.32),
        inset 0 -2px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bio p {
    position: relative;
    z-index: 1;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 1.2em;
}

.bio a {
    color: #1772d0;
    text-decoration: none;
}

.bio a:hover {
    color: #1E90FF;
}

.research-interests {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 40px;
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
}

.research-interests p {
    margin: 10px 0;
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
}

.emoji {
    font-size: 20px;
}


.social-icons {
    margin-top: 25px;
    text-align: center;
}

.social-icons a {
    margin: 0 12px;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.social-icons a img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.15);
}

.social-icons a:last-child {
    margin-right: 0;
}

.shake-icon:hover {
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 0); }
    60% { transform: translate(2px, 0); }
    70% { transform: translate(0, -2px); }
    80% { transform: translate(0, 2px); }
    90% { transform: translate(0, -2px); }
    100% { transform: translate(0, 0); }
}



.awards {
  text-align: left;
  margin-top: 20px;
}

.awards h2 {
  font-size: 24px;
  color: #00008B;
  margin-bottom: 10px;
}

.awards ul {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 500px;
  padding-left: 20px;
}

.awards li {
  margin-bottom: 10px;
}

.bar {
    font-size: 20px;
}

.year-section {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    background-color: #fafafa;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.year-header {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.year-divider {
    max-width: 100%;
    height: 1px;
    background-color: #333;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 1px 0 10px;
}

.experience-tile {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 
        0 4px 16px rgba(31, 38, 135, 0.22),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1.5px 0 rgba(255, 255, 255, 0.09);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-align: left;
}

.experience-tile:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 28px rgba(31, 38, 135, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.32),
        inset 0 -2px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.experience-tile img {
    flex-shrink: 0;
    width: 100px;
    border-radius: 8px;
}

.experience-content {
    margin-left: 15px;
    text-align: left;
    flex: 1;
}

.experience-content p {
    margin: 0;
    line-height: 1.4;
}

.education-tile {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 
        0 4px 16px rgba(31, 38, 135, 0.22),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1.5px 0 rgba(255, 255, 255, 0.09);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-align: left;
}

.education-tile:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 28px rgba(31, 38, 135, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.32),
        inset 0 -2px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.education-tile img {
    flex-shrink: 0;
    width: 100px;
    border-radius: 8px;
}

.education-content {
    margin-left: 15px;
    text-align: left;
    flex: 1;
}

.education-content p {
    margin: 0;
    line-height: 1.4;
}

.award-tile {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 
        0 4px 16px rgba(31, 38, 135, 0.22),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1.5px 0 rgba(255, 255, 255, 0.09);
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: normal;
}

.award-tile:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 28px rgba(31, 38, 135, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.32),
        inset 0 -2px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.awards-section .awards {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.award-tile b {
    font-weight: bold;
}

.footer {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #555;
    background-color: #f8f8f8;
    margin-top: 20px;
}

.latest-news {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 40px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.latest-news p {
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 18px;
    color: #2c3e50;
    letter-spacing: 0.02em;
}

.center-container {
    display: flex;
    justify-content: center;
}

.news-container {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 5px;
    text-align: left;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.news-content p {
    margin: 5px 0;
    padding: 0;
    display: flex;
    align-items: baseline;
    padding-left: 20px;
    font-weight: 400;
    color: #34495e;
}

.news-content a {
    text-decoration: none;
    font-weight: normal;
    color: #1772d0;
}

.news-content a:hover {
    text-decoration: underline;
}

.news-date {
    width: 90px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Mono', Monaco, 'Cascadia Code', monospace;
    align-self: baseline;
    color: #7f8c8d;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.news-content {
    flex: 1;
    white-space: normal;
    word-break: break-word;
    font-weight: 400;
    color: #2c3e50;
    font-size: 15px;
}

.highlight-btn {
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    color: black;
    border: 1px solid #ddd;
    padding: 5px 10px;
    margin-right: 6px;
    margin-top: 8px;
    margin-bottom: 8px;
    border-radius: 6px;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.highlight-btn:hover {
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0;
}

.highlight-btn.active {
    background-color: #1772d0;
    color: white;
    border: 1px solid #1772d0;
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
}

.highlight-buttons {
    margin-bottom: 20px;
    align-items: center;
}
  
.highlight-label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: larger;
}

.highlight-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Tooltip Style */
[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 9999;
}

/* Show More Button Style */
#show-more-btn {
    font-family: 'Poppins', 'Arial', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0;
    margin: 20px auto 0 auto;
    display: inline-block;
    transition: color 0.2s;
    letter-spacing: 0.04em;
    cursor: pointer;
}

#show-more-btn:hover {
    background: none;
    color: #1772d0;
    box-shadow: none;
    border: none;
}

/* Author Role in News */
.author-role {
    display: none;
}

/* General Link Style */
a:not(h1 a) {
    text-decoration: none;
    color: #1772d0;
}

/* Publication-specific Styles */
.publication-tile {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 
        0 4px 16px rgba(31, 38, 135, 0.22),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1.5px 0 rgba(255, 255, 255, 0.09);
    transition: all 0.3s ease;
}

.publication-tile:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 28px rgba(31, 38, 135, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.32),
        inset 0 -2px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.highlight {
    background-color: #fef9e7;
}

.summary {
    display: none;
    margin-top: 10px;
}

/* Specific styling for links in the summary/show summary row */
.summary a {
    margin-left: 3px; /* Add space before each link */
    margin-right: 4px; /* Add space after each link */
    font-size: 16px; /* Make link text slightly bigger */
}

/* Styling for links in the publication links row */
.publication-links a {
    margin-left: 3px; /* Add space before each link */
    margin-right: 4px; /* Add space after each link */
}

a.toggle-link {
    color: #1772d0;
    text-decoration: none;
    cursor: pointer;
    margin-top: 15px; /* Add vertical padding before show summary line */
    display: inline-block;
}

a.toggle-link:hover {
    text-decoration: underline;
}

.no-underline {
    text-decoration: none;
    color: inherit;
}

.publication-tile img {
    max-width: 100%;
    height: auto;
}

/* Responsive publication tile layout */
.publication-tile > div:first-child {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.publication-tile > div:first-child > div:first-child {
    flex: 1;
}
.publication-tile > div:first-child > div:nth-child(2) {
    flex: 2;
    padding-left: 20px;
    text-align: left;
}

@media (max-width: 768px) {
    /* Override the desktop flex layout for mobile */
    .publication-tile > div:first-child {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Center the image container */
    .publication-tile > div:first-child > div:first-child {
        width: 90%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    /* Left-align the text content */
    .publication-tile > div:first-child > div:nth-child(2) {
        width: 100%;
        padding-left: 0;
        text-align: left !important;
    }
    
    /* General publication tile text alignment */
    .publication-tile > div {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    /* Override inline text-align: justify for links row */
    .publication-tile > div[style*="text-align: justify"] {
        text-align: left !important;
        padding-left: 0 !important;
    }
    
    /* Remove default paragraph margins on mobile for perfect alignment */
    .publication-tile p {
        margin-left: 0 !important;
        padding-left: 0 !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Specific fix for the links paragraph in justify div */
    .publication-tile > div[style*="text-align: justify"] p {
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        text-indent: 0 !important;
    }
    
    /* Force all publication content to have same left edge */
    .publication-tile * {
        box-sizing: border-box !important;
    }
    
    /* Reduce padding for news section on mobile */
    .latest-news {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
    
    /* Reduce padding for news list items on mobile */
    .news-list li {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    /* Mobile byline layout - separate lines with separators */
    .byline {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important; /* Reduced gap from 4px to 2px */
        margin-bottom: 6px !important; /* Reduced margin from 12px to 6px */
        font-style: normal !important;
        color: #666666 !important;
    }
    
    .byline-separator {
        display: none !important; /* Hide empty separator spans */
    }
    
    .byline-item {
        display: block !important;
        text-align: center !important;
        margin: 0 !important; /* Remove any item margins */
        padding: 0 !important; /* Remove any item padding */
        font-size: 18px !important; /* Same font size as desktop */
        line-height: 1.3 !important;
        font-style: normal !important;
        color: #666666 !important;
    }
    
    /* Reduce section padding on mobile */
    .section-wrapper {
        padding: 20px 0 !important; /* Reduced from 40px to 20px */
    }
    
    /* Reduce profile image margin on mobile */
    .profile-image {
        margin: 10px auto !important; /* Keep horizontal centering with auto, reduce vertical margin */
    }
}

@media (max-width: 480px) {
    .menu {
        padding: 12px 0;
    }
    
    .menu a {
        margin: 3px 2px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .menu li {
        margin: 0 2px;
    }
    
    /* Ensure publication link spacing is maintained on mobile */
    .publication a {
        margin-left: 6px !important;
        margin-right: 8px !important;
        font-size: 16px !important;
    }
    
    /* Ensure summary link spacing is maintained on mobile */
    .summary a,
    .publication-links a {
        margin-left: 2px !important;
        margin-right: 3px !important;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }
    
    /* Remove persistent highlight/focus on all publication links on mobile */
    a.toggle-link:focus,
    a.toggle-link:active,
    a.toggle-link:visited,
    .publication-links a:focus,
    .publication-links a:active,
    .publication-links a:visited {
        outline: none !important;
        background: transparent !important;
        text-decoration: none !important;
        color: #1772d0 !important;
    }
    
    /* Remove tap highlight on mobile for all publication links */
    a.toggle-link,
    .publication-links a {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(145deg, #1772d0, #1269c7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(23, 114, 208, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(145deg, #1269c7, #0f5aa3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 114, 208, 0.4);
}

/* Byline styling with accent color */
.byline {
    font-family: 'Source Sans Pro', 'Open Sans', 'Segoe UI', system-ui, sans-serif;
    font-style: normal;
    font-size: 20px;
    color: #666666; /* Medium gray */
    margin-bottom: 20px;
    margin-top: -5px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: center;
    opacity: 0.96;
    display: inline-block;
    white-space: nowrap; /* Single line on desktop */
}

.byline-item {
    display: inline;
}

.byline-separator {
    display: inline;
}

/* Mobile responsive: Allow byline to wrap on smaller screens */
@media (max-width: 768px) {
    .byline {
        white-space: normal; /* Allow wrapping on mobile */
        line-height: 1.4; /* Better line spacing when wrapped */
        font-size: 18px; /* Same font size as desktop */
    }
}

/* Pill-style links for publication-links row */
.publication-links a {
    display: inline-block;
    background: linear-gradient(145deg, #f5f7fa, #e3e8ee);
    color: #1772d0;
    border-radius: 20px;
    padding: 4px 10px;
    margin: 1px 1px 1px 1px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(23, 114, 208, 0.07);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.publication-links a:hover {
    background: linear-gradient(145deg, #1772d0, #1269c7);
    color: #fff;
    box-shadow: 0 4px 12px rgba(23, 114, 208, 0.18);
    border: 1px solid #1772d0;
}

.publication-links {
    gap: 2px;
    flex-wrap: wrap;
    align-items: center;
}

/* Apply the same focus handling as menu links */
.publication-links a:focus {
    outline: none;
    background: linear-gradient(145deg, #f5f7fa, #e3e8ee);
    color: #1772d0;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(23, 114, 208, 0.07);
}

/* Remove any persistent active states */
.publication-links a:active {
    outline: none;
}

/* Ensure consistent styling on all platforms */
.publication-links a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
