/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fdfdfd;
}

/* Header Styles */
.main-header {
    background-color: #234f7e;
    color: #fff;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-header h1 {
    margin-bottom: 0.5rem;
}

.main-header nav {
    margin-top: 0.5rem;
}

.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.main-header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.main-header nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.nav-links li a.active {
    background-color: rgba(255, 255, 255, 0.4);
    color: #234f7e;
}

@media (max-width: 600px) {
    .main-header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Main Content Styles */
main {
    max-width: 800px;
    margin: 1rem auto;
    padding: 4rem;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

main h2,
main h3 {
    margin-bottom: 1rem;
    color: #234f7e;
}

main p {
    margin-bottom: 1rem;

}

section {
    margin-bottom: 0rem;
}

.content-section { /* Consistent section styling */
    padding: 0em; /* Add padding within sections */
}

/* Image Styles */
.image-container {
    margin: 2rem auto;
    text-align: center;
}

.image-container img {
    max-width: 90%;
    height: auto;
    display: block;
}

.image-container figcaption {
    margin-top: 0.5rem;
    font-style: italic;
    color: #777;
}

/* Team Page Styles */
.team-section .team-member {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.team-section .team-member img.profile-pic {
    max-width: 120px;
    margin-right: 1rem;
    border-radius: 50%;
    object-fit: cover;
}

.team-section h3,
.team-section h4 {
    margin: 0.25rem 0;
}

@media (max-width: 768px) {
    .team-section .team-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .team-section .team-member img.profile-pic {
        margin-right: 0;
        margin-bottom: 0.5rem;
        max-width: 140px;
    }
}

/* Publications List Styles */
.publications-list {
    list-style-type: none;
}
.publications-list li {
    margin-bottom: 1rem; /* Space between publications */
}
.publications-list strong { /* Style publication titles */
    font-weight: bold;
}
.publications-list em { /* Style journal names */
    font-style: italic;
}
.publications-list a { /* Style DOIs/Links */
    color: #234f7e; /* Link color */
    text-decoration: none;
}

/* Form Styles */
form {
    margin-top: 1rem;
}

form label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

form input[type="text"],
form input[type="email"],
form textarea,
form select {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Very important for consistent sizing */
}

form input[type="submit"] {
    padding: 0.5rem 1rem;
    background-color: #234f7e;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

form input[type="submit"]:hover {
    background-color: #1c3d63;
}


/* Footer Styles */
.main-footer {
    background-color: #234f7e;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}