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

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    background: #fff;
}

/* ── Navigation ── */
header {
    background-color: #1a3a5c;
}

nav {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

nav .site-name {
    color: #fff;
    font-size: 1.05em;
    font-weight: bold;
    padding: 15px 0;
    text-decoration: none;
    margin-right: auto;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li a {
    display: block;
    color: #cdd8e3;
    text-decoration: none;
    padding: 15px 13px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.3px;
    transition: color 0.15s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ── Page container ── */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 45px 24px 60px;
}

/* ── Section headings ── */
h2.section-heading {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a3a5c;
    border-bottom: 2px solid #1a3a5c;
    padding-bottom: 5px;
    margin: 32px 0 16px;
}

/* ── Home page ── */
.home-center {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.home-photo {
    margin-bottom: 22px;
}

.home-photo img {
    width: 510px;
    height: auto;
    display: inline-block;
    border: 1px solid #ddd;
}

.home-center h1 {
    font-size: 2em;
    color: #1a3a5c;
    font-weight: normal;
    margin-bottom: 8px;
}

.home-center .title {
    font-size: 1em;
    color: #444;
    margin-bottom: 3px;
}

.home-center .institution {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.cv-button {
    display: inline-block;
    background: #1a3a5c;
    color: #fff;
    text-decoration: none;
    padding: 9px 28px;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95em;
    letter-spacing: 0.3px;
    margin: 8px 0 28px;
    transition: background 0.15s;
}

.cv-button:hover {
    background: #2a5a8c;
}

.home-sections {
    text-align: left;
    max-width: 680px;
    margin: 0 auto;
}

.editorial-list {
    list-style: none;
}

.editorial-list li {
    padding: 3px 0;
    font-size: 0.95em;
}

.contact-info {
    font-size: 0.95em;
    line-height: 1.9;
}

.contact-info a {
    color: #1a3a5c;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ── Research page ── */
.papers-section {
    margin-bottom: 40px;
}

.paper {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid #eaeaea;
}

.paper:last-child {
    border-bottom: none;
}

.paper-header {
    margin-bottom: 6px;
}

.paper-num {
    color: #999;
    font-size: 0.9em;
    margin-right: 3px;
}

.paper-title {
    font-weight: bold;
    color: #1a3a5c;
}

.paper-title a {
    color: #1a3a5c;
    text-decoration: none;
}

.paper-title a:hover {
    text-decoration: underline;
}

.paper-links {
    display: block;
    margin-top: 7px;
    margin-bottom: 4px;
}

.paper-links a {
    display: inline-block;
    background: #1a3a5c;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 3px;
    text-decoration: none;
    margin-right: 3px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

.paper-links a:hover {
    background: #2a5a8c;
}

.paper-links a.ia-link {
    background: #4a7a5c;
}

.paper-links a.ia-link:hover {
    background: #3a6a4c;
}

.paper-authors {
    color: #555;
    font-size: 0.93em;
    margin-top: 3px;
}

.paper-venue {
    font-style: italic;
    color: #555;
    font-size: 0.93em;
}

.paper-status {
    font-style: italic;
    color: #777;
    font-size: 0.9em;
}

.paper-award {
    color: #666;
    font-size: 0.88em;
}

.paper-note {
    color: #777;
    font-size: 0.88em;
}

/* ── Abstract toggle ── */
.abstract-toggle {
    background: none;
    border: none;
    color: #1a3a5c;
    font-size: 0.78em;
    cursor: pointer;
    padding: 5px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: underline;
    letter-spacing: 0.2px;
    display: inline-block;
    margin-top: 4px;
}

.abstract-toggle:hover {
    color: #2a5a8c;
}

.abstract-content {
    display: none;
    font-size: 0.9em;
    color: #444;
    line-height: 1.65;
    margin-top: 8px;
    padding: 10px 14px;
    background: #f5f7fa;
    border-left: 3px solid #c5d0dc;
}

/* ── Teaching page ── */
.teaching-item {
    margin-bottom: 22px;
}

.teaching-item .course-title {
    font-weight: bold;
    color: #1a3a5c;
}

.teaching-item .course-detail {
    font-size: 0.95em;
    color: #555;
}

/* ── Presentations page ── */
.pres-year {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #1a3a5c;
    margin: 24px 0 6px;
    font-size: 1em;
}

.pres-block {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #444;
}

.bullet-list {
    list-style: disc;
    margin-left: 22px;
}

.bullet-list li {
    margin-bottom: 6px;
    font-size: 0.95em;
}

/* ── Conference page ── */
.conf-item {
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid #eaeaea;
}

.conf-item:last-child {
    border-bottom: none;
}

.conf-title {
    font-weight: bold;
    color: #1a3a5c;
    font-size: 1.05em;
    margin-bottom: 4px;
}

.conf-detail {
    font-size: 0.93em;
    color: #555;
}

/* ── Footer ── */
footer {
    background: #f5f7f9;
    border-top: 1px solid #dde3ea;
    text-align: center;
    padding: 18px;
    font-size: 0.82em;
    color: #999;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 40px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .home-photo img {
        width: 240px;
    }

    nav ul li a {
        padding: 12px 9px;
        font-size: 0.78em;
    }
}
