/* ===========
   Base + Reset
   =========== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Lato", system-ui, -apple-system, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.7;
    font-size: 16px;
}

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

a:hover {
    color: #f09228;
}

img {
    max-width: 100%;
    display: block;
}

strong {
    font-weight: 700;
}

/* ===========
   Navbar
   =========== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-weight: 900;
    font-size: 1.1rem;
    color: #222;
}

.nav-brand:hover {
    color: #1772d0;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.nav-links a {
    color: #555;
    font-weight: 400;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: #1772d0;
}

/* ===========
   Page Wrapper
   =========== */

.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px 20px;
}

.section-block {
    scroll-margin-top: 60px;
}

.header-section {
    scroll-margin-top: 60px;
}

/* ===========
   Header / Bio
   =========== */

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

.header-text {
    flex: 1;
}

.header-text h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 14px;
    color: #222222;
}

.header-text p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #333;
}

.header-text ul {
    margin: 4px 0 12px 22px;
    font-size: 0.93rem;
    color: #333;
}

.header-text ul li {
    margin-bottom: 4px;
}

.header-image {
    flex: 0 0 200px;
    padding-top: 10px;
}

.header-image img {
    width: 200px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
}

/* Links row */
.links-row {
    margin-top: 14px !important;
    font-size: 0.95rem !important;
}

.links-row a {
    font-weight: 400;
}

.links-row i {
    margin-right: 2px;
}

/* ===========
   Section Blocks
   =========== */

.section-block {
    margin-bottom: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.section-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

/* ===========
   News
   =========== */

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
}

.news-list li {
    padding: 5px 0;
    font-size: 0.93rem;
    line-height: 1.55;
    border-bottom: 1px solid #f0f0f0;
}

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

.news-date {
    font-weight: 700;
    color: #555;
    margin-right: 4px;
    white-space: nowrap;
}

.news-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1px 7px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
    background: #e8f0fe;
    color: #1a56db;
}

/* Scrollbar styling */
.news-list::-webkit-scrollbar {
    width: 5px;
}

.news-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* ===========
   Publications
   =========== */

.pub-entry {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1772d0;
    display: block;
    margin-bottom: 2px;
    line-height: 1.4;
}

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

.pub-title-nolink {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    display: block;
    margin-bottom: 2px;
    line-height: 1.4;
}

.pub-authors {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 1px;
}

.pub-venue {
    font-size: 0.88rem;
    color: #888;
    font-style: italic;
    margin-bottom: 4px;
}

.pub-links-row {
    font-size: 0.85rem;
}

.pub-links-row a {
    margin-right: 10px;
    color: #1772d0;
    font-weight: 400;
}

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

.subsection-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #444;
    margin: 24px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

/* ===========
   Experience
   =========== */

.exp-entry {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.exp-content {
    flex: 1;
}

.exp-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
}

.exp-title a {
    font-weight: 700;
}

.exp-detail {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 2px;
}

.exp-date {
    font-size: 0.82rem;
    color: #999;
}

/* ===========
   Footer
   =========== */

.footer {
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
    padding: 16px 0;
    text-align: center;
    font-size: 0.82rem;
    color: #999;
}

.footer a {
    color: #1772d0;
}

/* ===========
   Responsive
   =========== */

@media (max-width: 680px) {
    .header-section {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .header-image {
        flex: none;
    }

    .header-image img {
        width: 160px;
    }

    .header-text ul {
        text-align: left;
    }

    .page-wrapper {
        padding: 24px 16px 16px;
    }

    .news-list {
        max-height: none;
    }
}
