/* ===== Base & Typography ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f8fa;
    color: #333;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===== Page Layout ===== */
.page-wrapper {
    display: flex;
    max-width: 1350px;
    margin: 0 auto;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #e8ecf0;
    padding: 48px 28px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px;
    border: 3px solid #e8ecf0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sidebar h1 {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.affiliation {
    text-align: center;
    font-size: 0.82rem;
    color: #777;
    line-height: 1.5;
    margin: 0 0 12px;
}

.research-tags {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2a7a7a;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

/* Contact links - stacked vertically */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 28px;
}

.contact-links a {
    display: block;
    text-align: center;
    color: #2a7a7a;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f0f7f7;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-links a:hover {
    background: #2a7a7a;
    color: #fff;
}

.contact-links a.cv-download {
    background: #2a7a7a;
    color: #fff;
    font-weight: 600;
}

.contact-links a.cv-download:hover {
    background: #1e5e5e;
}

/* Sidebar sections (Skills) */
.sidebar-section {
    border-top: 1px solid #e8ecf0;
    padding-top: 20px;
}

.sidebar-section h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section li {
    position: relative;
    padding: 5px 0 5px 14px;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
}

.sidebar-section li::before {
    content: "\2022";
    color: #2a7a7a;
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* ===== Main Content ===== */
.content {
    flex: 1;
    min-width: 0;
    padding: 48px 48px 60px;
    background: #ffffff;
}

.content section {
    margin-bottom: 40px;
}

.content section:last-child {
    margin-bottom: 0;
}

/* ===== Section Headings ===== */
h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: left;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8ecf0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ===== Bio Paragraphs ===== */
p {
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0 0 1em;
    color: #444;
}

p a {
    color: #2a7a7a;
    text-decoration: none;
    font-weight: 500;
}

p a:hover {
    text-decoration: underline;
}

p:last-child {
    margin-bottom: 0;
}

/* ===== News Section ===== */
.news-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.news-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
}

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

.news-date {
    display: inline-block;
    font-weight: 600;
    color: #2a7a7a;
    min-width: 90px;
    margin-right: 8px;
}

/* ===== Education ===== */
.education {
    margin-top: 8px;
    border-left: 3px solid #2a7a7a;
    padding-left: 18px;
}

.edu-item {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.edu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.edu-item .degree {
    font-weight: 600;
    display: block;
    font-size: 1rem;
    color: #1a1a2e;
}

.edu-item .field {
    display: block;
    font-style: italic;
    color: #777;
    font-size: 0.9rem;
    margin-top: 2px;
}

.edu-item .school {
    display: inline-block;
    margin-right: 8px;
    font-size: 0.9rem;
    color: #555;
}

.edu-item .date {
    display: inline-block;
    color: #999;
    font-size: 0.85rem;
}

.edu-item .details {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 0.88rem;
}

/* ===== Publications ===== */
.publications {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.pub-item {
    background: #fafbfc;
    border: 1px solid #eaedf0;
    border-left: 3px solid #2a7a7a;
    border-radius: 6px;
    padding: 14px 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pub-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.5;
}

.pub-authors {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 6px;
    font-style: italic;
    line-height: 1.5;
}

.pub-link {
    display: inline-block;
    font-size: 0.82rem;
    color: #2a7a7a;
    text-decoration: none;
    background: #eef6f6;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.pub-link:hover {
    background: #2a7a7a;
    color: #fff;
}

/* ===== Publication Badges ===== */
.pub-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.02em;
}

.pub-badge.zai {
    background: #e8f0fe;
    color: #1a56db;
    border: 1px solid #c3d9f8;
}

/* ===== Music Section ===== */
.music-section {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.music-category {
    background: #fafbfc;
    border: 1px solid #eaedf0;
    border-radius: 6px;
    padding: 12px 16px;
}

.music-category h3 {
    margin: 0 0 8px;
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid #eaedf0;
    padding-bottom: 6px;
}

.music-category ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.music-category li {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.music-category a {
    color: #2a7a7a;
    text-decoration: none;
}

.music-category a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e8ecf0;
        padding: 32px 24px;
    }

    .content {
        padding: 32px 24px 48px;
    }

    .profile-pic {
        width: 110px;
        height: 110px;
    }

    .sidebar h1 {
        font-size: 1.25rem;
    }

    .contact-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-links a {
        flex: 0 0 auto;
    }

    h2 {
        font-size: 1.05rem;
    }

    .pub-item {
        padding: 12px 14px;
    }
}
