:root {
    --primary-color: #0056b3;
    --text-color: #333;
    --bg-color: #f8f5ec;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    line-height: 1.5;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

.main-content {
    background: #f8f6e7;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    grid-column: 1;
    grid-row: 1;
}

.sidebar {
    text-align: center;
    grid-column: 2;
    grid-row: 1;
}

.sidebar-sticky {
    position: sticky;
    top: 40px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.name {
    font-size: 1.6em;
    margin: 10px 0 5px;
    font-weight: 700;
}

.title {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.contact-info {
    font-size: 0.9em;
    line-height: 1.8;
    color: #555;
    text-align: left;
    margin-top: 20px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    margin: 0 5px;
    font-weight: bold;
}

/* --- General --- */
section {
    margin-bottom: 30px;
}

h2 {
    font-size: 1.4em;
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 15px;
    color: #222;
}

p {
    margin-bottom: 12px;
}

ul {
    padding-left: 20px;
    margin-top: 0;
}

li {
    margin-bottom: 4px;
}

/* --- News --- */
.news-list {
    padding-left: 15px;
    list-style-type: none;
}

.news-list li {
    margin-bottom: 8px;
    position: relative;
}

.news-list li::before {
    content: "➤";
    color: var(--primary-color);
    position: absolute;
    left: -18px;
    font-size: 0.8em;
    top: 3px;
}

.date {
    font-family: monospace;
    color: #c0392b;
    font-weight: bold;
    font-size: 0.9em;
    margin-right: 6px;
}

/* --- Experience & Projects --- */
.exp-item {
    margin-bottom: 20px;
}

.exp-role {
    font-weight: 700;
    font-size: 1.05em;
    color: #000;
    display: block;
}

.exp-place {
    color: #8cb204;
    font-weight: 500;
    font-size: 0.95em;
}

.exp-date {
    float: right;
    color: #666;
    font-size: 0.9em;
    font-weight: normal;
}

.exp-desc {
    margin-top: 3px;
    font-size: 0.95em;
    color: #444;
}

.tech-stack {
    font-size: 0.8em;
    color: #666;
    background: #eee;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* --- Education & Awards --- */
.edu-item,
.award-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.item-left {
    max-width: 82%;
}

.item-right {
    text-align: right;
    min-width: 120px;
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .sidebar {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 30px;
        order: -1;
    }

    .main-content {
        grid-column: 1;
        grid-row: 2;
    }

    .exp-date {
        float: none;
        display: block;
        margin-bottom: 2px;
    }
}