body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }
}

/* Title Bar Styles */
.title-bar {
    background-color: #333;
    color: white;
    width: 100%;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.title-bar .container {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.title-left {
    margin: 0;
}

.title-left h1 {
    margin: 0;
    font-size: 24px;
    text-align: center;
}

.title-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.title-right a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.title-right a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .title-bar .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .title-left {
        margin-left: -250px;
    }
}

/* Main Container Styles */
.container.main-container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin: 80px auto 20px auto; /* Adjust for title bar height */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .container.main-container {
        flex-direction: row;
    }
}

/* Sidebar Styles */
.sidebar {
    background-color: #333;
    color: white;
    padding: 20px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.sidebar .profile-pic img {
    border-radius: 50%;
    max-width: 150px;
    margin-bottom: 20px;
}

.sidebar .contact-info p, 
.sidebar .contact-info a {
    color: white;
    margin: 5px 0;
}

.sidebar .social-links {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.sidebar .social-links li {
    margin: 10px 0;
}

.sidebar .social-links a {
    color: white;
    text-decoration: none;
}

@media (min-width: 768px) {
    .sidebar {
        width: 25%;
    }
}

/* Content Styles */
.content {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .content {
        width: 75%;
    }
}

.content section {
    margin-bottom: 20px;
}

.content h2 {
    color: #333;
}

.content p {
    line-height: 1.6;
}

.content ul {
    list-style: disc;
    padding-left: 20px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
}

@media (max-width: 767px) {
    footer {
        font-size: 12px;
    }
}

/* Section Styles with Separating Lines */
.section-divider {
    border-bottom: 1px solid #ddd;
    margin: 20px 0;
    padding-bottom: 20px;
}

/* Research Container Styles */
.research-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.research-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: calc(50% - 20px); /* Adjust the width as needed */
    box-sizing: border-box;
    text-align: center;
}

.research-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.research-item h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #333;
}

.research-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .research-item {
        width: 100%;
    }
}

/* Responsive Image Styles */
img {
    max-width: 100%;
    height: auto;
}

.teaching-details {
    position: relative;
}

.teaching-year {
    position: absolute;
    right: 0;
    font-weight: bold;
    color: #555;
}

