:root {
    --primary-color: #00467f; /* UoA Blue style */
    --text-color: #333;
    --bg-light: #f4f7f6;
    --sidebar-width: 300px;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    display: flex;
    color: var(--text-color);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    color: white;
    height: 100vh;
    position: fixed;
    padding: 2rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}

.sidebar h1 { margin: 0; font-size: 1.8rem; }
.sidebar .title { opacity: 0.9; margin-top: 5px; }
.sidebar a { color: white; text-decoration: underline; }

.stats-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    background: rgba(0,0,0,0.1);
    padding: 1rem;
    border-radius: 8px;
}

.stat-box { text-align: center; flex: 1; }
.stat-box span { display: block; font-size: 1.5rem; font-weight: bold; }
.stat-box label { font-size: 0.8rem; opacity: 0.8; }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 3rem 4rem;
    width: 100%;
    max-width: 900px;
}

section { margin-bottom: 4rem; }
h2 { border-bottom: 2px solid #eee; padding-bottom: 0.5rem; color: var(--primary-color); }

/* Publications */
.pub-item {
    display: flex;
    margin-bottom: 1.5rem;
    gap: 1rem;
}
.pub-year { font-weight: bold; color: #888; min-width: 50px; }
.pub-title a { text-decoration: none; color: #000; font-weight: 600; }
.pub-title a:hover { color: var(--primary-color); }
.pub-tag { 
    font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 8px;
}
.tag-conf { background: #e3f2fd; color: #1565c0; }
.tag-journal { background: #e8f5e9; color: #2e7d32; }

/* Teaching */
.course-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.tag.undergraduate { background: #fff3e0; color: #e65100; padding: 2px 8px; font-size: 0.8rem; border-radius: 10px;}
.tag.postgraduate { background: #f3e5f5; color: #7b1fa2; padding: 2px 8px; font-size: 0.8rem; border-radius: 10px;}
.award { color: #d32f2f; font-weight: 500; }