/* ── Global link colours (single source of truth) ── */
a:link, a:visited { color: #2c3582 !important; text-decoration: none !important; }
a:hover { text-decoration: underline !important; }

/* Contact links (email, Google Scholar) — keep grey */
.contact-links a,
.contact-links a:link,
.contact-links a:visited { color: #666 !important; text-decoration: none !important; }
.contact-links a:hover { color: #111 !important; text-decoration: none !important; }

/* CV link — plain text colour */
.cv-link,
.cv-link:link,
.cv-link:visited { color: #444 !important; text-decoration: none !important; }
.cv-link:hover { color: #111 !important; text-decoration: none !important; }

/* Header overrides — nav and site title are not content links */
.site-title,
.site-title:link,
.site-title:visited { color: black !important; text-decoration: none !important; }
.site-title:hover { text-decoration: none !important; }

.nav-links a,
.nav-links a:link,
.nav-links a:visited { color: #999 !important; text-decoration: none !important; }
.nav-links a:hover { color: #444 !important; text-decoration: none !important; }
.nav-links a.active,
.nav-links a.active:link,
.nav-links a.active:visited { color: black !important; }

.header {
    background: white;
    padding: 3rem 2rem 2rem 2rem;
    position: static;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.header-content {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0 0 2.25rem;
    gap: 7rem;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-title {
    font-size: 4.0rem;
    font-weight: bold;
    color: black;
    text-decoration: none;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.header-image {
    height: 260px;
    width: auto;
    border-radius: 30px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #999;
    text-decoration: none;
    font-weight: 600;
    font-size: 2rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #444;
}

.nav-links a.active {
    color: black;
}

/* Mobile Responsive Header Styles */
@media (max-width: 1100px) {
    .header {
        padding: 2rem 1rem 1.5rem 1rem;
    }

    .header-content {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
        padding: 0;
        align-items: center;
    }

    .header-left {
        gap: 0.0rem;
        margin-top: 0.0rem;
    }

    .header-image {
        height: auto;
        width: 80%;
        max-width: 80%;
        border-radius: 15px;
        object-fit: cover;
        object-position: bottom;
        margin-bottom: 0;
        margin-top: 2rem;
    }

    .site-title {
        font-size: 3.5rem !important;
        margin-bottom: 0.2rem !important;
    }

    .nav-links {
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 2rem !important;
        padding: 0.8rem 1.2rem;
    }
}

/* For very small screens */
@media (max-width: 600px) {
    .site-title {
        font-size: 3rem !important;
    }

    .nav-links a {
        font-size: 1.8rem !important;
        padding: 0.7rem 1rem;
    }
}
