body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.wrapper {
    max-width: 1200px; /* Adjust the max width as needed */
    margin: auto; /* Center the wrapper */
}

.header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    background-color: #e6f7ff; 
    padding: 10px; 
    flex-wrap: wrap;
}

.header .logo { 
    flex: 1;
    max-width: 150px;
    margin: 10px;
}

.header .title { 
    flex: 2; 
    text-align: center; 
}

.header .title h1, .header .title h2 { 
    margin: 0; 
    color: #003366; 
}

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

.nav-bar {
    display: flex;
    justify-content: space-around;
    padding: 10px 0; /* Reduced padding for a slimmer bar */
    background: linear-gradient(90deg, #0099ff 0%, #33ccff 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}

.nav-bar button {
    background: none;
    border: none;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 1em; /* Reduced font size for smaller text */
    padding: 5px 10px; /* Reduced padding for smaller buttons */
    border-right: 2px solid #fff;
    transition: color 0.3s, background-color 0.3s;
    cursor: pointer;
    flex: 1 1 auto;
    text-align: center;
    margin: 2px; /* Reduced margin for tighter spacing */
}

.nav-bar button:last-child {
    border-right: none;
}

.nav-bar button:hover, .nav-bar button:focus {
    color: #003366;
    background-color: transparent;
    outline: none;
}

/* Adjustments for small screens */
@media (max-width: 768px) {
    .nav-bar button {
        font-size: 0.9em; /* Even smaller font size for small devices */
    }

    .header { 
        flex-direction: column; 
        align-items: center; 
    }

    .header .logo, .header .title { 
        flex: none;
        max-width: 100%;
    }

    .header .title h1 { font-size: 20px; }
    .header .title h2 { font-size: 18px; }

    /* Additional adjustments for team member section */
    .member-photo {
        max-width: 100%; /* Ensure photos resize correctly */
        margin-right: 10px; /* Adjust spacing for smaller screens */
    }

    .member-details {
        flex-direction: column; /* Stack photo and info vertically */
        text-align: center; /* Center-align text for a consistent look */
    }

    .member-info, .cv-link {
        width: 100%; /* Ensure elements don't overflow their container */
    }
}

/* Optional adjustments for large screens */
@media (min-width: 1024px) {
    .nav-bar button {
        font-size: 1.1em; /* Slightly smaller font size for consistency */
    }
}

.fancy-box {
    background-color: #f0f8ff; /* Light blue background for the fancy box */
    border: 2px solid #003366; /* Dark blue border */
    border-radius: 10px; /* Rounded corners for the fancy box */
    padding: 20px; /* Padding inside the box */
    margin: 20px 0; /* Margin around the box for spacing */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.projects-container {
    margin-top: 10px;
}

.projects-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Adds spacing between rows */
}

.projects-table td {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff;
}

.projects-table a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.projects-table a:hover {
    color: #ff6600;
}

/* Responsive design for smaller screens */
@media (max-width: 480px) {
    .projects-table {
        font-size: 14px;
    }
    
    .projects-table td {
        padding: 8px;
        display: block;
        width: 100%;
        text-align: left;
    }
}


.content-section h2 {
    color: #003366; /* Dark blue for headings */
}

.content-section p {
    text-align: justify; /* Improve readability */
    margin-bottom: 16px; /* Spacing below paragraphs */
}

.content-section ul {
    list-style-type: none; /* Removes default list bullets */
    padding: 0;
}

.content-section li {
    margin-bottom: 10px; /* Adds space between list items */
}

.content-section a {
    color: #003366; /* Sets the link color */
   
    text-decoration: underline; /* Ensures links are underlined */
    cursor: pointer; /* Changes cursor to pointer on hover */
}

.content-section a:hover, .content-section a:active {
    color: #005a9c; /* Lighter blue for hover/active states */
}

.member-details {
    background-color: #f0f8ff;
    border: 2px solid #003366;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start; /* Adjust alignment for multi-column */
    text-align: left;
    flex-wrap: wrap;
}

/* Adjusts for a third column in desktop view */
@media (min-width: 768px) {
    .member-details {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px; /* Adjust the gap to manage space between columns */
    }
    .member-photo {
        flex: 0 0 200px; /* Fixed width for the photo column */
    }
    .member-info {
        flex: 1; /* Allows this column to grow but also have a basis */
        min-width: 250px; /* Minimum width to prevent shrinking too much */
    }
    .member-bio {
        flex: 2; /* Gives the bio column more room to grow but allows it to shrink */
        max-width: 40%; /* Maximum width percentage of the bio column */
    }
}




.member-photo {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: auto;
}

.member-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-contact p, .cv-link {
    margin: 5px 0;
}

.cv-link {
    background-color: #20d3f3;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block;
}

.cv-link:hover {
    background-color: #008bcc;
}

.map-widget {
    background-color: #f0f8ff; /* Light blue background */
    border: 2px solid #003366; /* Dark blue border */
    border-radius: 10px; /* Rounded corners */
    padding: 10px; /* Padding inside the box */
    margin: 20px 0; /* Margin around the box for spacing */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}
.map-widget iframe {
    width: 100%; /* Ensures iframe takes full width of the container */
    height: 300px; /* Adjust height as needed */
    border-radius: 8px; /* Rounded corners for the iframe */
}
.map-widget h3 {
    margin: 0 0 10px 0; /* Reduces spacing to keep things compact */
    font-size: 1em; /* Consistent font size */
}



.footer {
    text-align: center;
    padding: 10px;
    background-color: #f0f8ff;
    color: #003366;
    border-top: 2px solid #003366;
    border-radius: 10px;
    font-size: 0.8em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-container video {
    width: 100%;
    height: auto;
}

.info-container {
    flex: 1;
}

@media (min-width: 768px) {
    .news-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .video-container {
        flex: 1;
        padding-right: 20px;
    }

    .info-container {
        flex: 1;
    }
}