/* Classical Academic CSS for Guanyang Wang's website */

/* Base styles */
body {
    background: #ffffff;
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    margin: 0;
    padding: 20px;
    font-size: 18px;
}

/* Page container */
.page-container {
    border: 1px solid #cccccc;
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Sidebar navigation */
#layout-menu {
    background: #f5f5f5;
    border-bottom: 1px solid #cccccc;
    padding: 15px 20px;
    text-align: center;
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto;
}

#layout-menu td {
    background: transparent;
    vertical-align: top;
}

/* Navigation links */
div.menu-item {
    display: inline-block;
    margin: 0 15px;
    padding: 0;
}

div.menu-item a {
    display: inline-block;
    padding: 8px 16px;
    color: #0066cc;
    text-decoration: none;
    font-weight: normal;
    border: 1px solid transparent;
    border-radius: 4px;
}

div.menu-item a:hover {
    background: #e6f2ff;
    text-decoration: underline;
}

div.menu-item a.current {
    background: #d9d9d9;
    color: #000000;
    font-weight: bold;
    border: 1px solid #aaaaaa;
}

/* Main content area */
#layout-content {
    padding: 30px 40px;
    background: #ffffff;
    text-align: left;
    border: none;
    max-width: 900px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3 {
    color: #000000;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: 24px;
    margin-bottom: 0.5em;
    text-align: center;
}

h2 {
    font-size: 18px;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 3px;
    margin-top: 2em;
}

h3 {
    font-size: 16px;
    margin-top: 1.5em;
}

h4 {
    font-size: 14px;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

/* Title section */
div#toptitle {
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #000000;
    text-align: center;
}

div#toptitle h1 {
    margin: 0;
    padding: 0;
    font-size: 26px;
}

/* Paragraphs */
p {
    margin-bottom: 1em;
    line-height: 1.5;
    color: #333333;
    text-align: justify;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #800080;
}

/* Image and profile section */
table.imgtable {
    border: none;
    margin: 20px 0;
    width: 100%;
}

table.imgtable td {
    border: none;
    text-align: left;
    vertical-align: top;
    padding: 10px;
}

table.imgtable img {
    border: 1px solid #cccccc;
    padding: 2px;
    margin-top: 30px;
}

/* Lists */
ul, ol {
    margin: 1em 0;
    padding-left: 30px;
}

li {
    margin-bottom: 0.5em;
    line-height: 1.4;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

/* Remove special styling from sections */
section {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.about-section, .people-section, .funding-info {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.funding-info {
    margin-top: 1em;
    padding-left: 20px;
    border-left: 3px solid #cccccc;
}

.funding-info h4 {
    margin: 0 0 0.5em 0;
    color: #000000;
    font-size: 14px;
    font-weight: bold;
}

.funding-info p {
    margin: 0;
}

/* Contact section */
h3 + p {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #dddddd;
    margin: 1em 0;
}

/* Paper and publication lists */
ul li p {
    margin-bottom: 0.3em;
    text-align: left;
}

/* Bold for author names */
b, strong {
    font-weight: bold;
}

/* Superscript styling */
sup {
    font-size: smaller;
    vertical-align: super;
}

/* Code and monospace text */
tt, code, pre {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    background: #f5f5f5;
    padding: 1px 3px;
}

/* Tables */
table {
    border-collapse: collapse;
    margin: 1em 0;
}

td {
    padding: 5px;
    border: none;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    #layout-menu {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #cccccc;
        padding: 15px;
    }
    
    div.menu-item {
        display: inline-block;
        margin-right: 10px;
    }
    
    #layout-content {
        padding: 20px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 16px;
    }
    
    table.imgtable td {
        display: block;
        padding: 5px 0;
    }
}

/* Research interests section */
.research-interests {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #dddddd;
    margin: 20px 0;
}

.research-interests h4 {
    color: #0066cc;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: bold;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 5px;
}

.research-interests h4:first-child {
    margin-top: 0;
}

.research-interests ul {
    margin-top: 10px;
    margin-bottom: 15px;
}

.research-interests li {
    margin-bottom: 8px;
}

.research-interests em {
    color: #666666;
    font-style: italic;
}

/* Print styles */
@media print {
    #layout-menu { 
        display: none; 
    }
    
    body {
        font-size: 11pt;
        padding: 0;
    }
    
    #layout-content {
        padding: 0;
    }
    
    a {
        color: #000000;
        text-decoration: none;
    }
    
    .research-interests {
        background: none;
        border: 1px solid #000000;
    }
}