/* GLOBAL VARIABLES & RESET */
:root {
    --primary-color: #2c3e50;
    --accent-color: #1f618d;
    --text-color: #333333;
    --bg-color: #fdfdfd;
    --max-width: 900px;
}

body {
    font-family: sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    margin: 0 auto;
    padding: 2rem;
    max-width: var(--max-width);
    font-size: 20px;
}


/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: sans-serif;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.6rem; border-bottom: 4px solid #ccc; padding-bottom: 0.5rem; }
h2 { font-size: 2.2rem; border-bottom: 3px solid #ccc; padding-bottom: 0.3rem; color: var(--primary-color);
    margin-top: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-top: 1px solid #eee;
    padding-top: 2rem; }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* HEADER PROFILE SECTION */
/* Pandoc converts the LaTeX tabularx environment into a standard HTML table. 
   We style this to look like a modern profile header. */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
    border: none;
}

/* Make the profile responsive: stack on small screens */
@media (max-width: 600px) {
    body {
        font-size: 18px;
        padding: 1rem;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    table, tbody, tr, td {
        display: block;
        width: 100%;
        text-align: center;
    }
    td { padding: 10px 0; }
}

td {
    vertical-align: middle;
    padding: 1rem;
    border: none; /* Remove default table borders */
}

/* Profile Image Styling */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Softens the corners of your photo */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Subtle depth */
}

/* Profile Text Styling */
/* We target the strong text in the header to make your name stand out */
td p strong {
    font-family: sans-serif;
    font-size: 2.2rem;
    color: var(--primary-color);
}

/* LISTS & PUBLICATIONS */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.8rem;
}

/* Specifically for publication lists */
ol li {
    padding-left: 0.5rem;
    transition: background-color 0.3s ease;
}

ol li:hover {
    background-color: #f2f2f2;
    border-radius: 4px;
    color: #000;
}

ol li:hover a {
    color: var(--accent-color);
}

ol li::marker {
    color: var(--accent-color);
}

/* Highlighting specific keywords if needed (optional) */
strong {
    color: #000;
}

/* Style the specific list */
p + ul {
    padding-left: 3.5rem;
}

p + ul li {
    color: var(--accent-color);
}
