:root {
    --main-blue: #1f3b5b;
    --light-bg: #f4f6f8;
}

body {
    font-family: Arial, sans-serif;
     font-size: 1rem; /* instead of 18px */
    margin: 0;
    background-color: var(--light-bg);
    color: #1a1a1a;
}

/* NAVBAR */
.navbar {
    background-color: var(--main-blue);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-title {
    font-weight: bold;
    font-size: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
    background: white;
}

.hero-text {
    max-width: 600px;
}

.hero h1 {
    font-size: 2.2rem;
}

.intro p {
    font-size: 1rem;
}

/* PROFILE IMAGE */
.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.profile-pic.small {
    width: 150px;
    height: 150px;
}

/* MAIN TEXT */
.container {
    max-width: 1100px;      /* was 900px */
    margin: 0 auto;
    padding: 40px 20px;
}

.intro p {
    line-height: 1.6;
    font-size: 1.05rem;
}

/* ACCENTS */
.bluebold {
    color: var(--main-blue);
    font-weight: bold;
}

/* AFFILIATIONS */
.institutions {
    margin-top: 60px;
    background-color: var(--main-blue);
    padding: 40px 20px;
    text-align: center;
}

.institutions h2 {
    color: white;
    margin-bottom: 30px;
}

.institution-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.institution-logos img {
    height: 70px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    display: block;
}

.institution-logos img:hover {
    transform: scale(1.05);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    background: white;
}

.disclaimer {
    font-size: 0.75rem;
    font-style: italic;
    color: #777;
    margin: 0;
}

/* smaller name next to photo */
.name-small {
    font-size: 1.8rem;
    margin: 0;
    color: var(--main-blue);
}

/* welcome text only */
.welcome {
    font-size: 1.1rem;
    color: #555;
    margin-top: 5px;
}

.cv-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.cv-column {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.cv-column h2 {
    color: var(--main-blue);
    border-bottom: 2px solid var(--main-blue);
    border-bottom: 2px solid var(--main-blue);
    padding-bottom: 6px;
}

.cv-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 18px;
    background-color: var(--main-blue);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.cv-button:hover {
    background-color: #162a40;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .cv-section {
        flex-direction: column;
        gap: 30px;
    }

    .cv-column {
        width: 100%;
    }
}

.cv-column p {
    line-height: 1.6;
    margin-bottom: 18px;
}

h1, h2 {
    letter-spacing: 0.3px;
}

p {
    line-height: 1.6;
}

.cv-column {
    width: 45%;
    text-align: left;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.cv-section:has(.cv-column:only-child) {
    justify-content: center;
}

.cv-section .cv-column {
    max-width: 600px;
}


/* COURSE CARDS */
.course-card {
    background: white;
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.course-card h2 {
    color: var(--main-blue);
    margin-bottom: 5px;
}

.course-card p {
    color: #555;
    margin-bottom: 15px;
}

.course-description {
    font-style: italic;
}

/* IMPROVED DOWNLOAD BUTTON */
.download-button {
    display: inline-block;
    padding: 12px 18px;
    background-color: var(--main-blue);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
    font-weight: 500;
}

.download-button:hover {
    background-color: #162a40;
    transform: translateY(-2px);
}

.footer-contact {
    margin-top: 60px;
    padding: 25px 20px;
    background-color: var(--main-blue);
    color: white;
    text-align: center;
    font-size: 0.9rem;
}

.footer-contact a {
    color: white;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-contact .disclaimer {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #d0d7df;
    font-style: italic;
}

.project-card {
    background: white;
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.project-card h2 {
    color: var(--main-blue);
    margin-top: 0;
    margin-bottom: 8px;
}

.project-role {
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-tag {
    display: inline-block;
    background: #e8eef5;
    color: var(--main-blue);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 5px;
}

.research-unit {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.unit-logo {
    width: 250px;
    height: auto;
}

.unit-info {
    flex: 1;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.topic-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.members-card {
    display: flex;
    gap: 50px;

    background: white;
    padding: 25px;

    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);

    margin: 0 auto 40px auto;
    max-width: 1000px;
}

.members-column {
    flex: 1;
}

.members-card h3 {
    color: var(--main-blue);
    margin-top: 0;
    margin-bottom: 10px;
}

.members-card ul {
    padding-left: 18px;
    margin: 0;
}

.members-card li {
    margin-bottom: 6px;
    line-height: 1.5;
}