/* General Reset */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
}

/* Wrapper for layout */
.wrapper {
    display: flex;
    flex-wrap: nowrap;
    min-height: 100vh;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: start;
    position: sticky;
    top: 0;
    height: 150vh;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-header h1 {
    font-size: 1.8em;
    margin: 0;
}

.sidebar-header p {
    font-size: 0.9em;
    color: #b2bec3;
}

.nav {
    list-style: none;
    padding: 0;
    width: 100%;
}

.nav li {
    margin: 15px 0;
}

.nav li a {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: bold;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav li a:hover {
    background-color: #34495e;
}

.nav li a.active {
    background-color: #007bff;
}

/* Main Content Styling */
.content {
    flex-grow: 1;
    padding: 20px 40px;
    background-color: #f4f4f9;
    overflow: auto;
    word-wrap: break-word;
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}

.content h2 {
    color: #2c3e50;
    border-bottom: 2px solid #007bff;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.content p,
.content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.content ul {
    list-style-type: disc;
}

.content a {
    color: #007bff;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.intro-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.intro-text {
    flex: 2;
}

.intro-text p {
    margin: 0;
    text-align: justify;
}

.intro-image {
    flex: 1;
    text-align: center;
}

.intro-image img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

/* Publications section styling */
.publication-section {
    margin-bottom: 30px;
}

.publication-section h3 {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.publication-section ul {
    list-style-type: disc;
    padding-left: 20px;
}

.publication-section ul li {
    font-size: 0.9em;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Contact page specific styles */
.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.social-box {
    background-color: #0056b3;
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    width: 120px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-box a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}

.social-box a:hover {
    text-decoration: underline;
}

.contact-info {
    margin-bottom: 20px;
    font-size: 16px;
}

.contact-info a {
    color: #0066cc;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .content {
        padding: 15px;
    }

    .intro-section {
        flex-direction: column;
    }
}