/* Base Styles & Typography */
:root {
    --text-color: #333333;
    --link-color: #555555;
    --hover-color: #000000;
    --bg-color: #ffffff;
    --border-color: #eaeaea;
}

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

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

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

/* Header */
header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-bottom: 3rem;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: baseline;
    gap: 2rem;
}

.header-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #555;
}

nav a {
    margin-right: 1.5rem;
    font-size: 1rem;
    color: #666;
}

/* Main Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 4rem;
}

/* Sidebar */
.sidebar {
    flex: 0 0 250px;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.sidebar-name {
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
}

.sidebar-title {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.sidebar-links li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    color: #555;
}

.sidebar-links i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    color: #666;
}

/* Content Area */
.content {
    flex: 1;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #444;
}

.content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.interests-list {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    font-size: 1.05rem;
}

.interests-list li {
    margin-bottom: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .sidebar {
        flex: auto;
        text-align: center;
    }

    .sidebar-links li {
        justify-content: center;
    }
}

/* Container holding the image and text */
.publication {
    display: flex;             /* This is the magic command that puts them side-by-side */
    align-items: flex-start;   /* Aligns both the image and text to the top */
    gap: 1.5rem;               /* Adds a nice gap between the image and the text */
    margin-bottom: 2.5rem;     /* Adds space below the entire publication entry */
}

/* The image itself */
.pub-thumb {
    width: 220px;              /* Shrinks the image down to a reasonable width */
    height: auto;              /* Keeps the image proportions from stretching */
    flex-shrink: 0;            /* Prevents the text from squishing the image too small */
    
    /* Optional: matches the clean style from your screenshot */
    border: 1px solid #e0e0e0; 
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* The text area */
.pub-details {
    flex: 1;                   /* Tells the text to take up all remaining horizontal space */
}

/* Mobile Responsiveness (Stacks them on small screens like phones) */
@media (max-width: 768px) {
    .publication {
        flex-direction: column; 
    }
    .pub-thumb {
        width: 100%;
        max-width: 300px;
    }
}

.date-badge {
    /* Makes it act like the thumbnail image */
    width: 200px;
    flex-shrink: 0;
    
    /* Recreates the visual styling from your screenshot */
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    
    /* Aligns the text inside the box to the center */
    text-align: center;
    
    /* Nudges the badge down perfectly level with the h3 title */
    margin-top: 15px; 
}

/* Mobile adjustment so it stacks cleanly on phones */
@media (max-width: 768px) {
    .date-badge {
        width: fit-content;
        margin-bottom: 1rem;
    }
}
