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: #f6d2d2; 
    padding: 10px; 
    flex-wrap: wrap;
}

.flag {
    /* Adjust the size of the flags */
    margin: 0 20px; /* Reduced margin for flags, adjust as needed */
    width: 250px; /* Adjust based on your preference */
    height: auto;
}

.title-and-logos {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center-align the title and logos vertically */
    flex-grow: 1;
}



/* Ensure the logos have more space between them and adapt to different screen sizes */
.logos {
    display: flex;
    justify-content: center; /* Center-align the logos horizontally */
    gap: 60px; /* Increase the gap between logos */
    margin-top: 20px;
    flex-wrap: wrap; /* Ensure logos wrap on smaller screens */
}

.logo {
    width: 150px; /* Adjust based on your preference */
    height: auto;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .logo {
        width: 120px; /* Smaller width for logos on small screens */
    }

    .logos {
        gap: 40px; /* Adjust gap for smaller screens */
    }
}

@media (max-width: 480px) {
    .logo {
        width: 100px; /* Even smaller width for very small screens */
    }

    .logos {
        gap: 20px; /* Adjust gap for very small screens */
    }
}






.header .logo { 
    flex: 1;
    max-width: 250px;
    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 */
}


.fancy-box iframe {
    width: 100%; /* Ensures it takes the full width of the container */
    height: 800px; /* Default height for larger screens */
    border: none; /* Clean look without border */
    overflow: visible; /* Ensure that no content is clipped */
}


.fancy-box-2 {
    margin: 20px 0;
    padding: 20px;
    background-color: #e3f2fd;
    border-left: 5px solid #3043eb;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


#underline.underline-text {
    text-decoration: underline;
}




@media (max-width: 768px) {
    .fancy-box iframe {
        height: 1200px; /* Increased height for smaller screens */
    }
}
.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;
}


.info-table {
    width: 100%; /* Full width of its container */
    border-collapse: collapse; /* Collapse borders */
    margin-top: 20px; /* Space from the heading */
}

.info-table th, .info-table td {
    border: 1px solid #003366; /* Border color */
    padding: 8px; /* Padding inside cells */
    text-align: left; /* Align text to the left */
}

.info-table th {
    background-color: #0099ff; /* Background color for header */
    color: white; /* Text color for header */
}

.info-table tr:nth-child(even) {
    background-color: #f2f2f2; /* Zebra striping for rows */
}

.info-table td {
    background-color: #f0f8ff; /* Light background for cells */
}

.centered-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%; /* Makes image responsive */
    max-width: 600px; /* Maximum width of the image */
    margin-top: 20px; /* Space above the image */
}

.red-text {
    color: red;
}

/* Footer Styles */
.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);
}

/* Footer logos */
.footer .logos {
    display: flex;
    justify-content: space-between; /* Space out logos evenly */
    align-items: center;
    gap: 10px; /* Space between logos */
    margin-top: 10px;
}

.footer .logo.small-logo {
    width: auto; /* Maintain original proportions */
    height: 60px; /* Adjust height for smaller size */
}

.bg-small {
    width: 180px; /* Set the width to the desired smaller size */
    height: auto; /* Keeps the aspect ratio of the image */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer .logos {
        flex-direction: column; /* Stack logos vertically on smaller screens */
        gap: 20px; /* Space between logos */
    }

    .footer .logo.small-logo {
        height: 60px; /* Smaller size for smaller screens */
    }
}




/* Apply different sizes based on screen width using media queries */
@media (max-width: 768px) {
    .bg-small {
        width: 180px; /* Even smaller on small screens */
        height: auto;
    }
}

.introduction {
    margin-bottom: 20px;
}

.videos-container {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.content-video {
    width: 100%;
    height: auto;
}

/* Style for the highlight video */
.highlight-video {
    width: 100%;
}

/* Responsive styles */
@media (min-width: 768px) {
    .videos-container {
        grid-template-columns: 1fr 1fr;
    }

    .highlight-video {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

@media (min-width: 1024px) {
    .videos-container {
        grid-template-columns: 1fr 1fr;
    }

    .highlight-video {
        grid-column: 1 / -1;
        justify-self: center;
    }
}


.fancy-box-3 {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 5px solid #d32f2f; /* Red border for Chinese style */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.fancy-box-3 ul {
    list-style: none; /* Remove default list styling */
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for larger screens */
    gap: 20px; /* Space between items */
}

.fancy-box-3 li {
    margin-bottom: 15px; /* Space between list items */
    display: flex;
    align-items: center;
    justify-content: center; /* Center-align the logos and text */
}

.fancy-box-3 li a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.fancy-box-3 li a:hover {
    text-decoration: underline;
}

.fancy-box-3 .logo {
    margin-right: 10px; /* Space between logo and text */
    width: 150px; /* Twice larger width for logos */
    height: auto;
}

.fancy-box-3 .large-logo {
    width: 400px; /* Twice larger size for the Chinese embassy logo */
    height: auto;
}

@media (max-width: 768px) {
    .fancy-box-3 ul {
        grid-template-columns: 1fr; /* Stack items vertically on smaller screens */
    }

    .fancy-box-3 .logo, .fancy-box-3 .large-logo {
        width: 200px; /* Adjust logo size for smaller screens */
    }
}
