/*-------------------------*/
/*------- MAIN BODY -------*/
/*-------------------------*/
body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/*--------------------------*/
/*----- NAVIGATION BAR -----*/
/*--------------------------*/

.navbar {
    background-color: #15514E;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    position: relative;
}

.navbar .right {
    display: flex;
    justify-content: flex-end;
    gap: 1.5em;
    font-weight: 400;
    font-size: 1.25rem;
}

.navbar .left {
    flex: 1;
    font-weight: 500;
    font-size: 2rem;
}

.navbar a {
    color: #f2f2f2;
    text-decoration: none;
}

.navbar a:hover {
    color: #ff8c42;
}

.navbar .menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    text-align: center;
    flex: 1;
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2em;
    gap: 2em;
}

/*--------------------------*/
/*------- INDEX PAGE -------*/
/*--------------------------*/

.text-section {
    max-width: 70%;
}

.text-section h1 {
    font-size: 3rem;
    color: #333333;
}

.text-section p {
    font-size: 1.25rem;
}

.text-section a {
    text-decoration: none;
    color: #0C5388;
}

.text-section ul {
    font-size: 1.25rem;
    list-style: none;
    padding-left: 0;
}

.text-section ul li {
    margin-bottom: 1.3em;
}

.image-section {
    flex: 1; 
    display: flex;
    justify-content: flex-end;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 50%; 
}

/*--------------------------*/
/*------ CONTACT PAGE ------*/
/*--------------------------*/

.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
} 

.contact-container h1 {
    font-size: 3rem;
    color: #333333;
}

.contact-container ul {
    font-size: 1.25rem;
    list-style: none;
    padding-left: 0;
}

.contact-container ul li {
    margin-bottom: 1.3em;
}

.contact-container a {
    text-decoration: none;
    color: #0C5388;
}

/*---------------------------*/
/*------ RESEARCH PAGE ------*/
/*---------------------------*/

.research-container {
    width: 85%;
    margin: 0 auto;
    padding: 2rem 0;
}

.research-container h1 {
    font-size: 3rem;
    color: #333333;
    text-align: center;
}

.research-container h2 {
    font-size: 1.7rem;
    color: #333333;
    text-align: left;
}

.research-container h6 {
    font-size: 1.25rem;
    color: black;
    text-align: center;
    font-style: normal;
    font-weight: 400;
}

.research-container p {
    font-size: 1.25rem;
    text-align: left;
}

.research-container a {
    color: #0C5388;
    text-decoration: none;
}

.research-misc-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.research-misc-list li {
    margin-bottom: 1rem;
}

.research-misc-item {
    text-align: left;
    font-size: 1.25rem;
}

.research-misc-description {
    font-size: 1rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/*---------------------------*/
/*--------- CV PAGE ---------*/
/*---------------------------*/

.cv-container {
    width: 85%;
    margin: 0 auto;
    padding: 2rem 0;
}

.cv-container h1 {
    font-size: 3rem;
    color: #333333;
    text-align: center;
}

.cv-container h2 {
    font-size: 1.7rem;
    color: #333333;
    text-align: left;
}

.cv-container h3 {
    font-size: 1.45rem;
    text-align: left;
    color: #333333;
}

.cv-container a {
    text-decoration: none;
    color: #0C5388;
}

.education-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.education-list li {
    margin-bottom: 1rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
}

.education-item {
    text-align: left;
}

.education-date {
    text-align: right;
    color: #666666; 
}

.education-description {
    font-size: 1rem;
    margin-top: 0.5rem;
    font-style: italic;
    max-width: 65%;
}

/*--------------------------*/
/*--------- MOBILE ---------*/
/*--------------------------*/

@media (max-width: 768px) {
    .navbar {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
    }

    .navbar .left {
        display: none;
    }

    .navbar a {
        font-size: 1.5rem;
    }

    .navbar .menu-btn {
        display: block;
        color: #f2f2f2;
    }

    .navbar .menu-btn:hover {
        color: #ff8c42;
    }

    .navbar .right {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #4A7CA8;
    }

    .navbar .right a {
        text-align: center;
        padding: 0.5rem 0;
        width: 100%;
    }

    .navbar .open {
        flex-direction: column;
    }

    .navbar .right.open {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

    .content {
        flex-direction: column;
        text-align: center;
    }

    .image-section {
        justify-content: center;
        max-height: 50vh;
    }

    .text-section {
        margin-bottom: 2em;
        max-height: none; 
        max-width: 100%; 
    }
}
