@font-face {
    font-family: 'TeX Gyre Termes';
    src: url('/fonts/tex-gyre-termes/texgyretermes-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'TeX Gyre Termes';
    src: url('/fonts/tex-gyre-termes/texgyretermes-italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'TeX Gyre Termes';
    src: url('/fonts/tex-gyre-termes/texgyretermes-bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'TeX Gyre Termes';
    src: url('/fonts/tex-gyre-termes/texgyretermes-bolditalic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
  }
  
:root {
    --highlight-blue: #0000FF;
    --text-color: #333333;
    --background-color: #FFFFFF;
    --max-width: 1200px;
    --icon-green: #10B981;
}

body {
    /* font-family: 'TeX Gyre Termes', serif; */
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

header {
    grid-column: 1 / -1;
    margin-top: 40px;
    font-family: 'TeX Gyre Termes', serif;
    background-color: var(--highlight-color);
    color: var(--background-blue);
}

h1 {
    font-size: 3rem;
    color: var(--highlight-blue);
    margin-bottom: 10px;
}

h2 {
    color: var(--highlight-blue);
}

.thin-line {
    height: 1px;
    background-color: var(--highlight-blue);
    margin-bottom: 0px;
}

nav {
    grid-column: 1 / -1;
    margin-bottom: 0px;
    padding-left: 290px; /* 250px (sidebar width) + 40px (gap) */
    
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    
}

nav ul li {
    margin-right: 20px;
    text-transform: capitalize;
}

nav ul li:first-child {
    margin-left: 0px; /* Negates the nav padding for the first item */
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: larger;
}

nav ul li a:hover {
    color: var(--highlight-blue);
}

.thick-line {
    grid-column: 1 / -1;
    height: 4px;
    background-color: var(--highlight-blue);
    margin-bottom: 20px;
}

.content-wrapper {
    grid-column: 1 / -1;
    display: contents;
}

.sidebar {
    grid-column: 1 / 2;
    position: sticky;
    top: 0;
    left: 0;
    align-self: start;
}

.main-content {
    grid-column: 2 / 3;
}

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

.social-links a {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--highlight-blue);
}

section {
    margin-bottom: 60px;
}

.education-item{
    margin-bottom: 30px;
}

.publication-links a {
    color: var(--icon-green);
    text-decoration: none;
    margin-right: 10px;
}

.publication-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  
.publication-text {
    flex: 1;
    margin-right: 20px;
}
  
.publication-image img {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
}

.education-timeline {
    border-left: 2px solid var(--highlight-blue);
    padding-left: 20px;
    margin-left: 10px;
}

.education-item {
    position: relative;
}

.education-item::before {
    content: "";
    width: 12px;
    height: 12px;
    background-color: var(--highlight-blue);
    border-radius: 50%;
    position: absolute;
    left: -26px;
    top: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    nav {
        padding-left: 0;
    }

    nav ul li:first-child {
        margin-left: 0;
    }

    .sidebar, .main-content {
        grid-column: 1 / -1;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }
}