/* Modernized Homepage - Preserving all content */

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

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #2d3748;
    line-height: 1.6;
}

/* Container */

.bod {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Menu - Modern sticky navigation */

.menu {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.menu li {
    margin: 0 8px;
}

.menu a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.menu a:hover {
    color: #3182ce;
    background: rgba(49, 130, 206, 0.1);
}

.menu a.act {
    color: #3182ce;
    font-weight: 600;
    background: rgba(49, 130, 206, 0.15);
}

/* Main content area */

.main {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 40px 50px;
    margin-top: 20px;
}

/* Photo layout - side-by-side with info */

.photo {
    display: inline-block;
    margin-right: 40px;
    margin-bottom: 15px;
    vertical-align: top;
}

.photo img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Information section - side-by-side with photo */

.info {
    display: inline-block;
    vertical-align: top;
    font-size: 0.95em;
    max-width: 700px;
}

/* Headings - Modern hierarchy */

h2 {
    color: #2c5282;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

h2:first-child {
    margin-top: 0;
}

/* Links */

a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

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

/* Button-style links in publications */
.buttons a {
    display: inline-block;
    background: #ebf8ff;
    color: #3182ce;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.buttons a:hover {
    background: #bee3f8;
    color: #2b6cb0;
}

/* Research roles section */

.research {
    font-size: 0.95em;
    padding-top: 10px;
}

.research ul {
    list-style-type: square;
    padding-left: 25px;
    margin-top: 8px;
}

/* Publication layout - Numbers on the left */

.jp,
.tr {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.nbr {
    display: inline-block;
    min-width: 30px;
    text-align: right;
    font-weight: bold;
    font-size: 1.1em;
    color: #2c5282;
    margin-right: 8px;
}

.jp .title,
.tr .title {
    display: block;
    font-size: 1.05em;
    color: #2c5282;
    line-height: 1.6;
    padding-left: 5px;
}

.jp .publisher,
.tr .publisher {
    font-style: italic;
    color: #4a5568;
}

.jp .footnote,
.tr .footnote {
    font-size: 0.9em;
}

.buttons {
    padding-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.jp .indent,
.tr .indent {
    padding-left: 48px;
}

.jp ul,
.tr ul {
    padding-left: 40px;
}

.jp li,
.tr li {
    list-style-type: square;
}


.personal, 
.research {
    padding-top: 10px;
    font-size: 0.95em;
}

.info {
    font-size: 0.95em;
    max-width: 700px;
}

.load {
    font-size: 0.85em;
    color: #718096;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Responsive design for mobile */

@media (max-width: 768px) {
    .menu ul {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .main {
        padding: 30px 25px;
    }
    
    .photo {
        float: none;
        display: block;
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .photo {
        display: block;
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .info {
        display: block;
        font-size: 1em;
    }

    /* Stack publication numbers on mobile */
    .nbr {
        display: block;
        min-width: auto;
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .jp .title,
    .tr .title {
        display: block;
        padding-left: 0;
    }
}

/* Print styles */

@media print {
    body {
        background: white;
    }
    
    .menu, .main {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
