/* General Styles */
body {
    font-family: 'Oswald';
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-weight: 500;
    color: #071952;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 20px;
}

h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

p, li {
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    background-color: #071952;
    padding: 15px 0;
}

.page-title {
    font-size: 26px;
    color: #fff;
    text-align: center;
    margin: 0;
}

.subheader {
    font-size: 16px;
    color: #ddd;
    text-align: center;
    margin: 5px 0;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px; /* Add space between panels */
    padding: 20px;
    flex-wrap: nowrap; /* Prevent wrapping on larger screens */
}

.main-content {
    flex: 1 1 65%; /* Allow the content to take 65% of the space */
    padding-left: 50px;
    padding-right: 50px;
}

.right-panel {
    flex: 1 1 30%; /* Take up 30% of the space */
    background-color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    box-sizing: border-box; /* Ensure padding is included in the width */
}

/* Profile Image in Right Panel */
.profile-photo {
    width: 100%; /* Ensure image fills the right panel */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Publications Section */
.publication-section {
    background-color: #ffffff; /* Make it the same as the main content */
    border: none;
    box-shadow: none;
}

.publication-item {
    display: flex;
    align-items: center; /* Align items to the center vertically */
    margin-bottom: 20px;
}

.publication-thumbnail {
    width: 80px; /* Adjust the width to your desired size */
    height: auto;
     /*height: 100%; /* Make the height match the publication details */
    object-fit: cover;  Ensure the image scales properly without distortion 
    margin-right: 15px; /* Add space between the thumbnail and the publication details */
    border-radius: 5px; /* Optional: rounded corners for the image */
}


.publication-details {
    overflow: hidden; /* Ensure the text flows correctly around the image */
    flex: 1; /* Ensure the text takes up the remaining space */
    display: flex;
    margin-left: 15px;
    flex-direction: column; /* Stack title and authors vertically */
    justify-content: center; /* Align the content vertically */
}

.publication-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 500;
}

.publication-item p {
    font-size: 13px;
    color: #555;
    margin-top: 0;
}

.publication-item h3 a {
    text-decoration: underline;
    color: inherit;
}

.publication-item h3 a:hover {
    text-decoration: underline;
}



/* Links across the entire page */
a {
    text-decoration: underline; /* Underline all links */
    color: inherit; /* Inherit the current text color for consistency */
}

.pdf-link {
    font-size: 13px;
    margin-left: 5px;
    text-decoration: underline;
    color: #071952; /* You can adjust the color if needed */
}

.pdf-link:hover {
    text-decoration: none;
}

/* Right Panel */
.right-panel img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
}

.right-panel h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.links, .news {
    list-style: none;
    padding: 0;
}

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

.links li a, .news li a {
    text-decoration: underline;
    color: inherit; /* Inherit text color */
}

.links li a:hover, .news li a:hover {
    text-decoration: underline;
}

.news li {
    font-size: 13px;
}

/* Footer */
.footer {
    background-color: #34495e;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 12px;
}

.footer a {
    color: inherit; /* Keep text color consistent */
    text-decoration: underline; /* Underline the link */
}

/* Media Queries for Responsiveness */

/* For screens smaller than 1024px (e.g., tablets) */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-wrap: wrap; /* Allow content to wrap on smaller screens */
        flex-direction: column-reverse; /* Right panel will appear above main content */
    }

    .main-content {
        flex: 1 1 100%; /* Full width for smaller screens */
        padding: 20px;
    }

    .right-panel {
        flex: 1 1 100%; /* Stack above the main content */
        margin-bottom: 20px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}

/* For screens smaller than 768px (e.g., mobile devices) */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }

    .right-panel {
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    p, li {
        font-size: 13px;
    }

    .page-title {
        font-size: 22px;
    }

    .navbar {
        padding: 10px 0;
    }
}

/* For screens smaller than 480px (small mobile devices) */
@media (max-width: 480px) {
    .content-wrapper {
        flex-direction: column-reverse; /* Right panel will appear above main content */
    }

    .main-content, .right-panel {
        padding: 10px;
        flex: 0 0 100%;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 16px;
    }

    p, li {
        font-size: 12px;
    }

    .page-title {
        font-size: 20px;
    }

    .navbar {
        padding: 8px 0;
    }
}
