/* =============================================
   ACADEMIC WEBSITE - CLEAN, MINIMAL STYLESHEET
   Easy to customize - just change colors below
   ============================================= */

:root {
    /* Main colors - change these to customize */
    --primary-color: #1a365d;      /* Dark blue - headers, links */
    --accent-color: #2b6cb0;       /* Lighter blue - hover states */
    --text-color: #2d3748;         /* Dark gray - body text */
    --light-text: #718096;         /* Gray - secondary text */
    --background: #ffffff;         /* White background */
    --section-bg: #f7fafc;         /* Light gray - alternating sections */
    --border-color: #e2e8f0;       /* Light border */
    --award-color: #c53030;        /* Red for awards */
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--background);
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =============================================
   HEADER / PROFILE
   ============================================= */
header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center 20%;
    border: 3px solid var(--border-color);
}

.profile-info h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.profile-info .title {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 5px;
}

.profile-info .affiliation {
    margin-bottom: 5px;
}

.profile-info .affiliation-secondary {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.profile-info .email {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

/* Quick Links (GitHub, Scholar, CV) */
.quick-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-links a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.quick-links a:hover {
    background: var(--accent-color);
    text-decoration: none;
}

/* =============================================
   SECTIONS
   ============================================= */
section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

section h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 12px;
}

section p {
    margin-bottom: 12px;
}

section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

section li {
    margin-bottom: 8px;
}

/* =============================================
   NEWS BOX
   ============================================= */
.news-box {
    background: var(--section-bg);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
}

.news-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.news-box ul {
    margin-bottom: 0;
}

.news-box li {
    margin-bottom: 8px;
}

/* =============================================
   INTERESTS LIST
   ============================================= */
.interests-list {
    list-style: none;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.interests-list li {
    background: var(--section-bg);
    padding: 10px 18px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

/* =============================================
   PUBLICATIONS
   ============================================= */
.pub {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--section-bg);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.pub-title {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.pub-authors {
    display: block;
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.pub-venue {
    display: block;
    color: var(--light-text);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.pub-award {
    display: inline-block;
    color: var(--award-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.pub-links a {
    display: inline-block;
    font-size: 0.85rem;
    margin-right: 10px;
    color: var(--accent-color);
}

/* Collapsible year sections */
details.year-section {
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

details.year-section summary {
    padding: 12px 15px;
    background: var(--section-bg);
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none;
}

details.year-section summary::-webkit-details-marker {
    display: none;
}

details.year-section summary::before {
    content: "▶ ";
    font-size: 0.8rem;
    margin-right: 5px;
}

details.year-section[open] summary::before {
    content: "▼ ";
}

details.year-section summary:hover {
    background: var(--border-color);
}

details.year-section .year-content {
    padding: 10px 15px;
}

details.year-section .pub {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--background);
}

details.year-section .pub:last-child {
    margin-bottom: 0;
}

/* =============================================
   PROJECTS
   ============================================= */
.project {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--section-bg);
    border-radius: 8px;
}

.project h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.project p {
    margin-bottom: 0;
    color: var(--light-text);
}

/* =============================================
   ALUMNI LIST
   ============================================= */
.alumni-list {
    column-count: 2;
    column-gap: 30px;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    text-align: center;
    padding-top: 30px;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 650px) {
    .profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .quick-links {
        justify-content: center;
    }
    
    .alumni-list {
        column-count: 1;
    }
    
    .interests-list {
        flex-direction: column;
    }
}
