body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0000ff;
    padding-bottom: 10px;
}

header h1 {
    color: #0000ff;
    font-size: 24px;
    margin-bottom: 5px;
}

header nav a {
    margin-right: 10px;
    color: #0000ff;
    text-decoration: none;
    font-size: 16px;
}

.content {
    margin-top: 20px;
}

h2 {
    color: #0000ff;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.publications ul, .news ul {
    list-style-type: none;
    padding: 0;
}

.publications li, .news li {
    margin-bottom: 10px;
}

.bio-section {
    margin-bottom: 30px;
}

.main-section {
    display: flex;
    margin-top: 20px;
}

.bio-publications {
    width: 65%;
    padding-right: 20px;
}

.news-section {
    width: 35%;
    padding-left: 20px;
}

.publication-item, .news-item {
    margin-bottom: 10px;
}

.publication-item a, .news-item a {
    color: #0000ff;
    text-decoration: none;
}

.button {
    background-color: white;
    border: 2px solid #777777;
    color: blue;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.button:hover {
    background-color: black;
    color: white;
}

.btn {
    color: white;
    background-color: #0000ff;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    margin-right: 10px;
    display: inline-block;
    margin-top: 5px;
}

a:link,
a:visited {
    color: #0000ff;
}

/* Hide icons by default (desktop view) */
.bio-section nav {
    display: none;
}

/* Responsive styles for mobile view */
@media screen and (max-width: 768px) {
    .bio-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bio-section img {
        width: 100%;
        max-width: 400px;
        height: auto;
        margin-bottom: 1px;
        border-radius: 8px;
    }

    /* Show icons only in mobile view */
    .bio-section nav {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .bio-section nav a {
        display: inline-block;
        margin: 0 10px;
    }

    .bio-section nav img {
        width: 32px;
        height: 32px;
    }

    .main-section {
        flex-direction: column;
    }

    .bio-publications, .news-section {
        width: 100%;
        padding: 0;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 10px;
    }

    header nav a {
        margin: 5px 0;
    }
}

/* Control the size of publication images */
.publication-image {
    max-width: 100%; /* Make sure the image doesn't exceed the container width */
    max-height: 200px; /* Set a maximum height for publication images */
    width: auto;
    height: auto;
    margin-right: 15px;
    border-radius: 8px;
}

.publication-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.publication-image {
    flex: 0 0 auto; /* Prevent the image from stretching */
    max-width: 300px; /* Set a maximum width for the image */
    max-height: 150px; /* Set a maximum height for the image */
    margin-right: 20px; /* Space between the image and the details */
    border-radius: 8px;
}

.publication-details {
    flex: 1; /* Allow the details to take up the remaining space */
}

.publication-details h3 {
    margin: 0;
    font-size: 16px;
    color: #0000ff;
}

.publication-details p {
    margin: 5px 0;
    font-size: 14px;
}

/* Button styling */
.btn {
    color: white;
    background-color: #0000ff;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    margin-right: 10px;
    display: inline-block;
    margin-top: 5px;
}

@media screen and (max-width: 768px) {
    .publication-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .publication-image {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .publication-details {
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    .contact-links {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .publication-item img {
        display: none;
    }
}

.publication-item img {
    width: 220px;  /* Set a fixed width */
    height: 200px; /* Set a fixed height */
    object-fit: cover; /* Ensure the image covers the area without distorting */
    border-radius: 8px; /* Keep the rounded corners if desired */
}

