@import url('https://fonts.googleapis.com/css2?family=Georgia:wght@400;700&display=swap');

:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --accent: #1e40af;
    --accent-soft: #e6edff;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #2d3748;
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Top Navigation */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

.top-nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-nav-brand {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #222;
}

.top-nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.top-nav-links a {
    color: #2346a0;
    font-weight: 500;
    font-size: 0.93rem;
    padding: 6px 8px;
    border-radius: 6px;
}

.top-nav-links a:hover {
    color: var(--text);
    background: var(--accent-soft);
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    transition: transform 0.2s ease;
}

/* Layout */
.main-container {
    max-width: 1120px;
    margin: 28px auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.main-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 36px;
    box-shadow: var(--shadow);
}

.sidebar {
    position: sticky;
    top: 80px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.sidebar-profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    margin-bottom: 14px;
}

.sidebar-name {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.sidebar-tagline {
    color: #6b7280;
    font-size: 0.87rem;
    margin-bottom: 20px;
}

.sidebar-contact {
    text-align: left;
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    color: #6b7280;
    flex: 0 0 20px;
    display: block;
}

.sidebar-visitors {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

/* Sections */
.section {
    padding: 18px 0 26px;
    border-bottom: 1px solid var(--border);
}

.section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.08rem;
    margin-bottom: 14px;
    color: #222;
    position: relative;
    font-weight: 600;
}

.section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.section h3 {
    font-size: 0.97rem;
    margin: 18px 0 10px;
    color: #2346a0;
    font-weight: 500;
}

.section p {
    color: #2d3748;
    font-size: 1.01rem;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}
.section#about p {
    color: #222;
    font-size: 1.04rem;
    font-weight: 400;
    line-height: 1.7;
}
.section#about a {
    color: #2346a0;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s;
    font-size: 1.01rem;
}
.section#about a:hover {
    color: #1e40af;
}
.section#about strong {
    color: #222;
    font-weight: 600;
    font-size: 1.01rem;
}
.section#about em {
    color: #6b7280;
    font-style: italic;
    font-size: 0.98rem;
}

.about-highlight {
    margin-top: 4px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 22px;
}

.about-corner-logo {
    position: absolute;
    left: -2px;
    top: 4px;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.about-corner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* News */

/* Education */
.education-timeline {
    display: grid;
    gap: 14px;
}

.education-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    background: #ffffff;
}

.education-card-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.education-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    font-size: 14px;
}

.education-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.education-degree {
    font-size: 0.97rem;
    font-weight: 500;
    color: #2346a0;
}

.education-school {
    font-size: 0.91rem;
    color: #6b7280;
    font-weight: 500;
}

.education-time {
    font-size: 0.87rem;
    color: #6b7280;
}

/* Publications */
.publication {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    background: #ffffff;
    margin-bottom: 16px;
}

.publication-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    align-items: center;
}

.publication-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
    font-size: 1.01rem;
}

.publication-authors {
    color: #6b7280;
    font-size: 0.89rem;
    margin-bottom: 10px;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 0.88rem;
    color: #6b7280;
}

.publication-venue {
    display: inline-block;
    background: var(--accent-soft);
    color: #2346a0;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.84rem;
    line-height: 1.2;
}

.publication-sep {
    color: #cbd5f5;
}

.pub-link {
    color: #2346a0;
    font-weight: 500;
    font-size: 0.98rem;
}

.publication-image img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.image-placeholder {
    height: 120px;
    border-radius: 10px;
    border: 1px dashed var(--border);
    color: var(--muted);
    display: grid;
    place-items: center;
    background: #fafafa;
}

/* Internships */
.internship-list {
    display: grid;
    gap: 16px;
}

.internship-card {
    padding: 12px 0;
    background: transparent;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 14px;
    align-items: center;
}

.internship-content {
    min-width: 0;
}

.internship-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.internship-org {
    color: #222;
    font-size: 1rem;
}

.internship-time {
    color: #6b7280;
    font-size: 0.88rem;
    white-space: nowrap;
}

.internship-role {
    color: #2346a0;
    font-size: 0.97rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.internship-meta {
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.6;
}

.internship-logo-frame {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.internship-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.internship-logo-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #9ca3af;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.skill-category {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    background: #ffffff;
}

.skill-category h4 {
    font-size: 0.93rem;
    margin-bottom: 10px;
    color: #2346a0;
    font-weight: 500;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: #f3f4f6;
    color: #2d3748;
    font-size: 0.84rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 400;
}

/* Lists */
ul {
    padding-left: 20px;
    color: #6b7280;
    font-size: 0.97rem;
    font-weight: 400;
}

li {
    margin-bottom: 6px;
    font-size: 0.97rem;
    color: #2d3748;
}

/* Footer */
.site-footer {
    max-width: 1120px;
    margin: 0 auto 40px;
    padding: 0 20px;
    color: #6b7280;
    font-size: 0.85rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .publication-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .top-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 12px 0 4px;
    }

    .top-nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .news-item {
        grid-template-columns: 1fr;
    }

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

    .internship-card {
        grid-template-columns: 1fr;
    }

    .internship-header {
        flex-direction: column;
        gap: 4px;
    }

    .internship-logo-frame {
        width: 64px;
        height: 64px;
    }

    .main-content {
        padding: 24px;
    }
}
