* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #ededed;
    color: #363437;
    line-height: 1.6;
}

.container {
    width: 70%; /* 15% margin on each side = 70% content width */
    margin: 0 auto;
    padding-left: 15%;
    padding-right: 15%;
}

.content-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Desktop styles (default) */
.main-content {
    padding-top: 200px;
}

.logo {
    text-align: left;
    margin-bottom: 20px;
}

.logo img {
    max-height: 180px;
    width: auto;
}

.lab-title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.lab-subtitle {
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.nav-item {
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Individual menu item colors */
.nav-item:nth-child(1) { /* Publications */
    background-color: #2d3748;
}

.nav-item:nth-child(1):hover {
    background-color: #1a202c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:nth-child(2) { /* News */
    background-color: #2b6cb0;
}

.nav-item:nth-child(2):hover {
    background-color: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:nth-child(3) { /* Team */
    background-color: #38a169;
}

.nav-item:nth-child(3):hover {
    background-color: #2f855a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:nth-child(4) { /* PI */
    background-color: #d69e2e;
}

.nav-item:nth-child(4):hover {
    background-color: #b7791f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:nth-child(5) { /* Blogs */
    background-color: #9f7aea;
}

.nav-item:nth-child(5):hover {
    background-color: #805ad5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:nth-child(6) { /* Downloads */
    background-color: #e53e3e;
}

.nav-item:nth-child(6):hover {
    background-color: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:nth-child(7) { /* Downloads */
    background-color: #3a5a40;
}

.nav-item:nth-child(7):hover {
    background-color: #3a5a40;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:nth-child(8) { /* Contact */
    background-color: #d53f8c;
}

.nav-item:nth-child(8):hover {
    background-color: #b83280;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:nth-child(9) { /* Resources */
    background-color: #319795;
}

.nav-item:nth-child(9):hover {
    background-color: #2c7a7b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:nth-child(10) { /* Gallery */
    background-color: #dd6b20;
}

.nav-item:nth-child(10):hover {
    background-color: #c05621;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:nth-child(11) { /* Events */
    background-color: #4299e1;
}

.nav-item:nth-child(11):hover {
    background-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:nth-child(12) { /* About */
    background-color: #48bb78;
}

.nav-item:nth-child(12):hover {
    background-color: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:active,
.nav-item.active {
    transform: translateY(0);
    filter: brightness(0.8);
}

.nav-item:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.research-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.research-content {
    flex: 1;
}

.research-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: left;
}

.research-description {
    font-size: 1rem;
    text-align: left;
    line-height: 1.7;
}

.research-figure {
    flex: 0 0 300px;
    align-self: flex-start;
    max-width: 300px;
    overflow: hidden;
}

.figure-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #666;
    border-radius: 4px;
    margin-left: auto;
}

.research-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    margin-left: auto;
    display: block;
}

/* Principal Investigator Section */
.pi-title {
    text-align: left;
    font-size: 2.3rem; /* 2pt smaller than lab-title (2.5rem) */
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #363437;
}

.pi-section {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.pi-photo {
    flex: 0 0 auto;
}

.pi-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dc143c; /* Thin faint crimson border */
    opacity: 0.8;
}

.pi-info {
    flex: 1;
    text-align: right;
    align-self: center;
}

.pi-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #363437;
    margin: 0;
}

/* News Section */
.news-title {
    text-align: left;
    font-size: 2.3rem; /* Same size as pi-title */
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #363437;
}

.news-timeline {
    position: relative;
    margin-bottom: 30px;
}

.news-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ccc;
}

.news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    position: relative;
}

.news-date {
    flex: 0 0 90px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
    text-align: right;
    margin-right: 20px;
    padding-top: 2px;
}

.news-content {
    flex: 1;
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-left: 10px;
}

.news-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 15px;
    width: 8px;
    height: 8px;
    background-color: #2d3748;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.news-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #363437;
}

.news-content em {
    color: #2b6cb0;
    font-style: italic;
}

/* Tablet styles (iPad) */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .main-content {
        padding-top: 100px;
    }

    .lab-title {
        font-size: 2.2rem;
    }

    .lab-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .nav-menu {
        justify-content: center;
        gap: 12px;
        margin-bottom: 35px;
    }

    .nav-item {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .pi-title,
    .news-title {
        font-size: 2.0rem;
    }

    .news-timeline::before {
        left: 80px;
    }

    .news-date {
        flex: 0 0 70px;
        font-size: 0.85rem;
        margin-right: 15px;
    }

    .news-content {
        padding: 12px 16px;
        margin-left: 8px;
    }

    .news-content p {
        font-size: 0.9rem;
    }

    .pi-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .pi-info {
        text-align: center;
    }

    .pi-image {
        width: 130px;
        height: 130px;
    }

    .research-box {
        flex-direction: column;
        gap: 20px;
    }

    .research-figure {
        flex: none;
        text-align: center;
        max-width: 100%;
    }

    .research-image {
        max-width: 400px;
        max-height: 180px;
        margin: 0 auto;
    }

    .figure-placeholder {
        height: 180px;
    }
}

/* Mobile styles */
@media screen and (max-width: 767px) {
    .container {
        width: 90%;
        padding-left: 5%;
        padding-right: 5%;
    }

    .main-content {
        padding-top: 20px;
    }

    .logo img {
        max-height: 50px;
    }

    .lab-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .lab-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
        align-items: stretch;
    }

    .nav-item {
        padding: 12px 16px;
        text-align: center;
        font-size: 0.9rem;
    }

    .pi-title,
    .news-title {
        font-size: 1.6rem;
        margin: 30px 0 15px 0;
    }

    .news-timeline::before {
        display: none;
    }

    .news-item {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .news-date {
        flex: none;
        text-align: left;
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 0.8rem;
        color: #666;
    }

    .news-content {
        margin-left: 0;
        padding: 12px 15px;
    }

    .news-content::before {
        display: none;
    }

    .news-content p {
        font-size: 0.85rem;
    }

    .pi-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .pi-info {
        text-align: center;
    }

    .pi-image {
        width: 120px;
        height: 120px;
    }

    .pi-text {
        font-size: 0.9rem;
    }

    .research-box {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .research-title {
        font-size: 1.3rem;
    }

    .research-description {
        font-size: 0.9rem;
    }

    .research-figure {
        flex: none;
        text-align: center;
        max-width: 100%;
    }

    .research-image {
        max-width: 100%;
        max-height: 150px;
        margin: 0 auto;
    }

    .figure-placeholder {
        height: 150px;
        font-size: 0.9rem;
    }
}

/* Very small screens */
@media screen and (max-width: 480px) {
    .research-box {
        padding: 15px;
    }

    .lab-title {
        font-size: 1.6rem;
    }

    .lab-subtitle {
        font-size: 0.8rem;
    }

    .nav-item {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .pi-title,
    .news-title {
        font-size: 1.4rem;
        margin: 25px 0 15px 0;
    }

    .news-date {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .news-content {
        padding: 10px 12px;
    }

    .news-content p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .pi-image {
        width: 100px;
        height: 100px;
    }

    .pi-text {
        font-size: 0.8rem;
    }

    .research-title {
        font-size: 1.2rem;
    }
}

/* Footer Styles */
.footer {
    background-color: #ededed;
    border-top: 1px solid #d0d0d0;
    margin-top: 60px;
    padding: 25px 0;
}

.footer-container {
    width: 70%;
    margin: 0 auto;
    padding-left: 15%;
    padding-right: 15%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
}

.footer-left {
    justify-self: start;
}

.footer-logo {
    max-height: 35px;
    width: auto;
}

.footer-center {
    justify-self: center;
}

.footer-center p {
    font-size: 0.9rem;
    font-weight: 500;
    color: #363437;
    margin: 0;
}

.footer-right {
    justify-self: start;
}

.contact-info {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #363437;
    text-align: left;
}

.contact-label {
    font-weight: 500;
}

.phone {
    font-weight: 700;
}

/* Footer responsive styles */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        justify-items: center;
        gap: 10px;
    }
    
    .footer-left, .footer-center, .footer-right {
        justify-self: center;
    }
    
    .footer-right .contact-info {
        text-align: center;
    }
    
    .footer-logo {
        max-height: 30px;
    }
    
    .footer-center p {
        font-size: 0.85rem;
    }
    
    .contact-info {
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 767px) {
    .footer {
        margin-top: 40px;
        padding: 20px 0;
    }
    
    .footer-container {
        width: 90%;
        padding-left: 5%;
        padding-right: 5%;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        justify-items: center;
        gap: 10px;
    }
    
    .footer-left, .footer-center, .footer-right {
        justify-self: center;
    }
    
    .footer-right .contact-info {
        text-align: center;
    }
    
    .footer-logo {
        max-height: 28px;
    }
    
    .footer-center p {
        font-size: 0.8rem;
    }
    
    .contact-info {
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        padding: 15px 0;
    }
    
    .footer-logo {
        max-height: 25px;
    }
    
    .footer-center p {
        font-size: 0.75rem;
    }
    
    .contact-info {
        font-size: 0.65rem;
        line-height: 1.2;
    }
}
/* Additional CSS styles for news.html*/

/* Page Header Styles */
.page-header {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #363437;
    margin-bottom: 10px;
    text-align: left;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Enhanced News Item Styles for News Page */
.news-headline {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.news-content p {
    margin-top: 10px;
}

/* Active Navigation Item */
.nav-item.active {
    background-color: #1a202c;
    transform: translateY(-1px);
}

/* Back to Top */
.back-to-top {
    text-align: center;
    margin: 40px 0 20px 0;
}

.back-to-top .nav-item {
    background-color: #4a5568;
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.back-to-top .nav-item:hover {
    background-color: #2d3748;
}

/* Responsive adjustments for news page */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .page-header {
        padding: 25px;
        margin-bottom: 35px;
    }
    
    .page-title {
        font-size: 2.0rem;
    }
    
    .page-description {
        font-size: 1.0rem;
    }
    
    .news-headline {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 767px) {
    .page-header {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-description {
        font-size: 0.95rem;
    }
    
    .news-headline {
        font-size: 1.0rem;
        margin-bottom: 8px;
    }
    
    .back-to-top {
        margin: 30px 0 15px 0;
    }
}

@media screen and (max-width: 480px) {
    .page-header {
        padding: 15px;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .page-description {
        font-size: 0.9rem;
    }
    
    .news-headline {
        font-size: 0.95rem;
    }
}
/* Additional CSS styles for team.html*/

/* Team Section Styles */
.team-section {
    margin-bottom: 50px;
}

.team-section-title {
    font-size: 2.0rem;
    font-weight: 600;
    color: #363437;
    margin-bottom: 30px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.pi-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
}

.team-member {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pi-grid .team-member {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 25px;
}

.member-photo {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.pi-grid .member-photo {
    margin-bottom: 0;
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.pi-grid .member-image {
    border-color: #dc143c;
    opacity: 0.9;
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.member-title {
    font-size: 1.0rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 5px;
}

.member-department,
.member-university {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3px;
}

.member-research {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2b6cb0;
    margin-bottom: 8px;
    font-style: italic;
}

.member-bio {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 12px;
}

.member-contact {
    margin-top: 10px;
}

.contact-email {
    font-size: 0.9rem;
    color: #2b6cb0;
    font-weight: 500;
}

/* Responsive adjustments for team page */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .team-section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .pi-grid .team-member {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .pi-grid .member-photo {
        margin-bottom: 20px;
    }
    
    .member-image {
        width: 130px;
        height: 130px;
    }
    
    .member-name {
        font-size: 1.2rem;
    }
    
    .member-bio {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 767px) {
    .team-section {
        margin-bottom: 40px;
    }
    
    .team-section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-member {
        padding: 20px;
    }
    
    .pi-grid .team-member {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .pi-grid .member-photo {
        margin-bottom: 15px;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    .member-title {
        font-size: 0.95rem;
    }
    
    .member-department,
    .member-university {
        font-size: 0.85rem;
    }
    
    .member-research {
        font-size: 0.9rem;
    }
    
    .member-bio {
        font-size: 0.85rem;
    }
    
    .contact-email {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .team-section-title {
        font-size: 1.4rem;
    }
    
    .team-member {
        padding: 15px;
    }
    
    .member-image {
        width: 100px;
        height: 100px;
    }
    
    .member-name {
        font-size: 1.0rem;
    }
    
    .member-title,
    .member-research {
        font-size: 0.85rem;
    }
    
    .member-department,
    .member-university,
    .member-bio,
    .contact-email {
        font-size: 0.8rem;
    }
}

/* Additional CSS styles for publications.html*/

/* Additional CSS styles for publications.html - Add these to your existing styles.css */

/* Publications Timeline Styles */
.publications-timeline {
    position: relative;
    margin-bottom: 40px;
}

.publications-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #4a5568, #2d3748);
}

.pub-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.pub-year {
    flex: 0 0 50px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2d3748;
    text-align: right;
    margin-right: 20px;
    padding-top: 8px;
    position: sticky;
    top: 120px;
}

.pub-content {
    flex: 1;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    position: relative;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.pub-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.pub-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20px;
    width: 12px;
    height: 12px;
    background-color: #4a5568;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #e2e8f0;
}

/* Publication Type Icons */
.pub-type-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.pub-type-icon.journal {
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
}

.pub-type-icon.conference {
    background: linear-gradient(135deg, #38a169, #48bb78);
}

.pub-type-icon.preprint {
    background: linear-gradient(135deg, #d69e2e, #ecc94b);
}

.pub-type-icon.book {
    background: linear-gradient(135deg, #9f7aea, #b794f6);
}

.pub-type-icon.poster {
    background: linear-gradient(135deg, #e53e3e, #f56565);
}

.pub-type-icon.presentation {
    background: linear-gradient(135deg, #ed8936, #f6ad55);
}

.pub-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s ease;
    padding-right: 45px; /* Make room for the icon */
}

.pub-title:hover {
    color: #2b6cb0;
}

.pub-authors {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.5;
}

.pub-authors strong {
    color: #2d3748;
    font-weight: 600;
}

.pub-venue {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.4;
}

.pub-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-status.published {
    background-color: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.pub-status.preprint {
    background-color: #feebc8;
    color: #d69e2e;
    border: 1px solid #f6e05e;
}

.pub-status:not(.published):not(.preprint) {
    background-color: #e2e8f0;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.pub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f7fafc;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
}

.pub-link:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.pub-link.pdf {
    background-color: #fed7d7;
    color: #c53030;
    border-color: #feb2b2;
}

.pub-link.pdf:hover {
    background-color: #fbb6ce;
    border-color: #f687b3;
}

.pub-link.doi {
    background-color: #bee3f8;
    color: #2b6cb0;
    border-color: #90cdf4;
}

.pub-link.doi:hover {
    background-color: #90cdf4;
    border-color: #63b3ed;
}

.pub-link.scholar {
    background-color: #d6f5d6;
    color: #38a169;
    border-color: #9ae6b4;
}

.pub-link.scholar:hover {
    background-color: #c6f6d5;
    border-color: #68d391;
}

/* Add icons using pseudo-elements */
.pub-link.pdf::before {
    content: "📄 ";
    margin-right: 4px;
}

.pub-link.doi::before {
    content: "🔗 ";
    margin-right: 4px;
}

.pub-link.scholar::before {
    content: "🎓 ";
    margin-right: 4px;
}

/* Publication type legend */
.pub-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 500;
}

.legend-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legend-icon.journal {
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
}

.legend-icon.conference {
    background: linear-gradient(135deg, #38a169, #48bb78);
}

.legend-icon.preprint {
    background: linear-gradient(135deg, #d69e2e, #ecc94b);
}

.legend-icon.book {
    background: linear-gradient(135deg, #9f7aea, #b794f6);
}

.legend-icon.poster {
    background: linear-gradient(135deg, #e53e3e, #f56565);
}

.legend-icon.presentation {
    background: linear-gradient(135deg, #ed8936, #f6ad55);
}

/* Year grouping visual separator */
.pub-item:first-child .pub-content::before,
.pub-item:not(:first-child) .pub-year:not(:nth-child(n)) + .pub-content::before {
    background-color: #e53e3e;
    width: 16px;
    height: 16px;
    left: -14px;
    top: 18px;
}

/* Responsive adjustments for publications page */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .publications-timeline::before {
        left: 45px;
    }
    
    .pub-year {
        flex: 0 0 40px;
        font-size: 1.0rem;
        margin-right: 15px;
    }
    
    .pub-content {
        padding: 20px;
        margin-left: 10px;
    }
    
    .pub-content::before {
        left: -10px;
        width: 10px;
        height: 10px;
    }
    
    .pub-type-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: 12px;
        right: 12px;
    }
    
    .pub-title {
        font-size: 1.1rem;
        padding-right: 40px;
    }
    
    .pub-links {
        gap: 8px;
    }
    
    .pub-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 767px) {
    .publications-timeline::before {
        display: none;
    }
    
    .pub-item {
        flex-direction: column;
        margin-bottom: 25px;
    }
    
    .pub-year {
        flex: none;
        text-align: left;
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 0.9rem;
        color: #666;
        position: static;
    }
    
    .pub-content {
        margin-left: 0;
        padding: 18px;
    }
    
    .pub-content::before {
        display: none;
    }
    
    .pub-type-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
        top: 10px;
        right: 10px;
    }
    
    .pub-title {
        font-size: 1.0rem;
        margin-bottom: 10px;
        padding-right: 35px;
    }
    
    .pub-authors {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .pub-venue {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .pub-status {
        font-size: 0.75rem;
        padding: 3px 10px;
        margin-bottom: 12px;
    }
    
    .pub-links {
        gap: 6px;
    }
    
    .pub-link {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .pub-legend {
        padding: 15px;
        gap: 10px;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .pub-content {
        padding: 15px;
    }
    
    .pub-type-icon {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .pub-title {
        font-size: 0.95rem;
        padding-right: 30px;
    }
    
    .pub-authors,
    .pub-venue {
        font-size: 0.8rem;
    }
    
    .pub-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .pub-link {
        text-align: center;
        padding: 8px 12px;
    }

    .pub-legend {
        flex-direction: column;
        gap: 8px;
    }
}