* {
    box-sizing: border-box;
}

body {
    font-family: 'Lora', Georgia, serif;
    font-size: 16px;
    background-color: #fdfcf9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 30px;
}

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

a:hover {
    color: #f09228;
    text-decoration: underline;
}

header {
    margin-bottom: 30px;
}

.site-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.profile-section {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.profile-img {
    flex-shrink: 0;
}

.profile-img img {
    width: 240px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.about-container {
    flex: 1;
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.95rem;
}

.links-list li {
    display: flex;
    align-items: center;
}

.links-list li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #999;
}

.links-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.links-list li a i {
    font-size: 1.1em;
    width: 18px;
    text-align: center;
}

.bio {
    text-align: justify;
}

.bio p {
    margin-bottom: 12px;
}

.research-tag {
    background-color: #e8f4f8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 5px 0;
    color: #222;
}

/* News Section */
.news-container {
    margin-bottom: 30px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.news-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-date {
    color: #888;
    font-size: 0.9rem;
    min-width: 90px;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
}

/* Research Section */
.research-container {
    margin-bottom: 30px;
}

.research-interests {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.research-item {
    background-color: #f5f5f5;
    padding: 10px 16px;
    border-radius: 8px;
    border-left: 3px solid #1772d0;
}

/* Publications Section */
.pub-container {
    margin-bottom: 30px;
}

/* Quote Section */
.quote-container {
    margin: 40px auto;
    padding: 20px 30px;
    background-color: #f9f6f0;
    border-left: 3px solid #b8956a;
    border-radius: 4px;
    max-width: 700px;
}

.quote-text {
    font-style: italic;
    color: #6b5d4f;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.quote-attribution {
    text-align: right;
    font-size: 0.85rem;
    color: #8b7d6b;
    margin-top: 10px;
}

.quote-attribution a {
    color: #9b8468;
    text-decoration: none;
}

.quote-attribution a:hover {
    color: #6b5d4f;
    text-decoration: underline;
}

.pub-note {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin: 15px 0 20px 0;
}

.pubs {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.pub {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.pub-visual {
    flex-shrink: 0;
    width: 220px;
}

.pub-visual img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pub-info {
    flex: 1;
}

.pub-title {
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.pub-title a {
    color: #1772d0;
}

.pub-title a:hover {
    color: #f09228;
}

.pub-authors {
    font-size: 0.93rem;
    color: #444;
    margin-bottom: 7px;
    line-height: 1.4;
}

.pub-venue {
    margin: 7px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.venue-highlight {
    background-color: #f0f8ff;
    padding: 4px 10px;
    border-radius: 4px;
    border-left: 3px solid #2081f0;
    font-size: 0.9em;
    display: inline-block;
}

.venue-highlight-secondary {
    background-color: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    border-left: 3px solid #999;
    font-size: 0.9em;
    display: inline-block;
}

.award-highlight {
    color: hsl(19, 100%, 50%);
    font-weight: bold;
    margin-left: 5px;
}

.award-highlight-medium {
    color: #cd7f32;
    font-weight: bold;
    margin-left: 5px;
}

.pub-links {
    margin-top: 9px;
    font-size: 0.89rem;
}

.pub-links a {
    margin-right: 5px;
}

footer {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

footer a {
    color: #888;
}

footer a:hover {
    color: #1772d0;
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    .site-name {
        font-size: 1.8rem;
    }

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

    .profile-img img {
        width: 160px;
        height: auto;
    }

    .bio {
        text-align: left;
    }

    .site-name {
        text-align: center;
    }

    .links-list {
        justify-content: center;
        font-size: 0.9rem;
    }

    /* News section mobile */
    .news-list li {
        flex-direction: column;
        gap: 5px;
        padding: 12px 0;
    }

    .news-date {
        min-width: auto;
        font-weight: 600;
        color: #666;
    }

    /* Publications mobile */
    .pub {
        flex-direction: column;
        gap: 15px;
    }

    .pub-visual {
        width: 100%;
        max-width: 100%;
    }

    .pub-visual img {
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    .pub-title {
        font-size: 1rem;
    }

    .pub-authors,
    .pub-links {
        font-size: 0.88rem;
    }

    /* Touch-friendly links */
    a {
        padding: 2px 0;
    }

    .pub-links a {
        padding: 4px 2px;
    }

    .venue-highlight,
    .venue-highlight-secondary {
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .site-name {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .profile-img img {
        width: 140px;
    }

    .pub-visual img {
        max-width: 100%;
    }
}