* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #666; /* Duller color for better readability */
    line-height: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the footer stays at the bottom */
    font-size: 16px; /* Increased font size *//* Better base font size for mobile */
}

header {
    background: #007acc; /* Your original background color */
    color: white;
    padding: 15px 20px; /* Adjusted padding */ /* 15px; /* Padding for the header */
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
}

.header-profile-pic-old-not-in-used {
    width: 150px; /* Enlarged size */
    height: auto; /* Maintain aspect ratio */
    /*border-radius: 50%; /* Circular image */
    margin-right: 20px; /* Space between image and text */
    border: 2px solid #007acc; ; /* Optional: border for better visibility */
}

.header-profile-pic {
    width: 150px; /* Smaller for mobile */
    height: 150px;
    border-radius: 50%; /* Circular image */
    margin-right: 20px;
    border: 3px solid white;
       /* object-fit: cover;  /* Ensures image fills circle properly */
}

@media (min-width: 768px) {
    /* Tablet and larger screens */
    .header-content {
        flex-direction: row;
        justify-content: flex-start;  /* ← This left-aligns everything */
        text-align: left;             /* ← This left-aligns text */
    }
    
    .header-profile-pic {
        margin-right: 20px;  /* ← This pushes text to the right, keeping image left */
    }
}




.header-text {
    text-align: left; /* Align text to the left */
    padding: 0px; /* Add padding to the text */
    margin: 0; /* Reset margins to avoid unwanted spacing */

}

header h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
} 
.header-text h2 {  /* Add margin for h2 */
    font-size: 1.1em;
    margin: 0;
    font-weight: normal;
}


nav {
    background: #005fa3;
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 10px;
    flex-wrap: wrap; /* Allow wrapping on mobile */
}

nav ul li {
   margin: 5px 10px; /* Smaller margins for mobile */
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: background 0.3s ease;
}

nav ul li a:hover {
     background: #e7f3fe;
     color: #005fa3; /* Dark text color on hover */
    border-radius: 5px;
    font-weight: bold; /* Make text bold on hover */
    
}

main {
    flex: 1; /* Allows main to expand and take available space */
    padding: 20px;
    max-width: 1200px; /* Limits the width of the main content */
    margin: 0 auto; /* Centers the main content */
     width: 100%;
}

section {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 10px;
    background: #007acc;
    color: white;
}

h3 {
            color: #007acc;
            font-family: Arial, sans-serif; /* Example font */
            font-size: 30px; /* Example font size */
            margin: 20px 0; /* Example margin */
        }

.card {
    flex: 1 1 calc(45% - 15px); /* Responsive card size */
    background: #e6f7ff; /* Light blue background for cards */
    border: 2px solid #007acc; /* Border color */
    border-radius: 8px; /* Rounded corners for cards */
    padding: 15px; /* Padding inside cards */
    text-align: center; /* Center text inside cards */
    transition: transform 0.2s; /* Animation for hover effect */
}

.card:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Links */
.lab-link {
    font-weight: bold;
    color: #0056b3;
    text-decoration: underline;
    word-break: break-word; /* Prevent long URLs from breaking layout */
}



.welcome-section {
    max-width: 800px; /* Limit the width for better readability */
    margin: auto; /* Center the section */
    padding: 20px; /* Padding inside the section */
    background: white; /* White background for the section */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.welcome-section h3 {
    color: #007acc; /* Header color */
}

.welcome-section h4 {
    margin-top: 20px; /* Space above the research interests heading */
    color: #333; /* Darker color for subheading */
}

.interest-cards {
    display: flex; /* Flexbox for card layout */
    flex-wrap: wrap; /* Allow wrapping of cards */
    gap: 15px; /* Space between cards */
    margin-top: 10px; /* Space above the cards */
}





@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    header h1 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    section {
        padding: 15px;
    }

    header h1 {
        font-size: 1.8em;
    }

}



/* ============VIDEO SECTION===============================*/

.video-container {
    margin: 25px 0;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
}

.video-container h5 {
    margin-bottom: 15px;
    color: #222;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
}

.research-video-wrapper {
    width: 100%;
    max-width: 600px; /* Typical research figure width */
    margin: 0 auto;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.research-video {
    width: 100%;
    height: auto;
    max-height: 400px; /* Typical research figure aspect ratio */
    display: block;
    border-radius: 3px;
}

.video-caption {
    font-size: 0.95em;
    color: #555;
    margin-top: 12px;
    font-style: normal;
    text-align: center;
    line-height: 1.5;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* For better mobile responsiveness */
@media (max-width: 768px) {
    .research-video-wrapper {
        max-width: 100%;
        padding: 8px;
    }
    
    .research-video {
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .research-video-wrapper {
        max-width: 100%;
    }
    
    .research-video {
        max-height: 300px;
    }
    
    .video-caption {
        font-size: 0.9em;
        padding: 0 10px;
    }
}








