html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fbf7f0;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

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

.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fbf7f0;
    border-bottom: 1px solid #e0ded5;
}

.top-nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.top-nav a {
    color: #7a3f16;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
}

.top-nav a:hover {
    color: #5a2d10;
    text-decoration: none;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 50px;
}

.profile-section {
    flex: 0 0 250px;
    text-align: left;
}

.profile-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #e8e4dc;
}

.name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #111;
}

.affiliation {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.contact-links a {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.main-content {
    flex: 1;
}

section {
    margin-bottom: 50px;
    scroll-margin-top: 92px;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #e0ded5;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #111;
    font-weight: 700;
}

.about-text {
    margin-bottom: 15px;
}

.experience-item {
    margin-bottom: 30px;
}

.experience-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.experience-meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    font-style: italic;
}

.experience-desc {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 8px;
}

.tech-tag {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #e0ded5;
    color: #555;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
    margin-top: 5px;
    font-weight: 400;
}

.toggle-more {
    background: none;
    border: none;
    padding: 0;
    margin-top: 6px;
    color: #0066cc;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
}

.toggle-more:hover {
    color: #003399;
    text-decoration: underline;
}

.edu-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.edu-logo-link {
    display: inline-flex;
    flex: 0 0 auto;
    line-height: 0;
    border-radius: 10px;
}

.edu-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    background: #fbf7f0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 6px;
}

.edu-content {
    flex: 1;
    min-width: 0;
}

.edu-content ul {
    margin: 8px 0 0 0;
    padding-left: 0;
    list-style-position: inside;
}

.edu-school-link {
    color: #111;
    text-decoration: none;
}

.edu-school-link:hover {
    color: #003399;
    text-decoration: underline;
}

.edu-years {
    font-weight: 400;
    color: #555;
}

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

.news-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.news-date {
    font-weight: bold;
    color: #444;
    margin-right: 10px;
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 20px;
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.course-grid li {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .top-nav-inner {
        justify-content: center;
        gap: 10px 18px;
        padding: 11px 16px;
    }

    .top-nav a {
        font-size: 0.95rem;
    }

    .container {
        flex-direction: column;
        gap: 30px;
        padding-top: 34px;
    }

    .profile-section {
        text-align: center;
        border-bottom: 1px solid #e0ded5;
        padding-bottom: 20px;
    }

    .profile-img {
        margin: 0 auto 20px auto;
    }

    .contact-links a {
        display: inline-block;
        margin: 0 10px;
        padding: 5px;
    }

    .edu-logo {
        width: 62px;
        height: 62px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .top-nav a {
        font-size: 0.9rem;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}
