body {
    font-family: 'Arvo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.8;
    color: #333;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fcfcfc;
}

header {
    text-align: center;
    padding: 40px 0 20px 0;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    border-bottom: 2px solid #0693e3;
    padding-bottom: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
}

nav a:hover {
    color: #0693e3;
}

nav a.active {
    color: #0693e3;
    border-bottom: 3px solid #0693e3;
    padding-bottom: 3px;
    /* Brings the underline closer to the text */
}

h1,
h2,
h3 {
    color: #0693e3;
}

h2 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-top: 40px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.profile-img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    border: 3px solid #0693e3;
}

footer {
    margin-top: 60px;
    padding: 30px;
    background-color: #000;
    color: #fff;
    text-align: center;
}

footer a {
    color: #0693e3;
    text-decoration: none;
    margin: 0 10px;
}

/* BibBase Overrides */
#bibbase_header {
    display: none !important;
}

/* --- Custom Layout Page Styles --- */
.custom-layout h2 {
    font-size: 1.8em;
    color: #222;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
    margin-bottom: 25px;
    margin-top: 35px;
}

.styled-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.styled-list>li {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #0056b3;
    background-color: #fafafa;
    padding: 15px;
    border-radius: 0 5px 5px 0;
}

.styled-list>li strong {
    color: #000;
    font-size: 1.05em;
}

.styled-list>li em {
    color: #555;
}

/* Fix for inner standard lists (like job responsibilities) */
.styled-list>li ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: disc;
}

.styled-list>li ul li {
    margin-bottom: 5px;
    padding: 0;
    border: none;
    background-color: transparent;
    border-radius: 0;
}

.custom-layout a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

.custom-layout a:hover {
    text-decoration: underline;
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        margin: 0 auto 20px auto;
    }
}