/* Global Styles */
:root {
    --primary-color: #116e11;
    --text-color: #333;
    --container-width: 800px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background-color: #fff;
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.header-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
    margin-top: 0;
}

.subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: normal;
    margin-top: 0;
}

.contact-info {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.contact-info a,
.contact-info span {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 0.5rem;
    display: inline-block;
}

.contact-info span {
    color: var(--text-color);
    /* Keep span text color standard */
}

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

.summary {
    margin-top: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(17, 110, 17, 0.05);
    padding: 1rem;
    border-radius: 4px;
    text-align: justify;
}

.summary p {
    margin: 0;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

h2 {
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Work Experience & Education Items */
.item {
    margin-bottom: 2rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.item-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #222;
}

.item-date {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

.item-subtitle {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
    display: block;
}

ul {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.3rem;
}

/* Skills */
.skill-category {
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: bold;
    color: #444;
}

/* Publications */
.publication {
    margin-bottom: 1.5rem;
}

.pub-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.pub-title {
    font-weight: bold;
}

.pub-venue {
    font-style: italic;
    color: #666;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: #888;
}

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

a:hover {
    text-decoration: underline;
}

/* Print specific styles */
@media print {
    body {
        background-color: #fff;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
        padding: 0;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    header {
        border-bottom: 1px solid #000;
    }
}