/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --sidebar-width: 300px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Layout */
.page-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--white);
    padding: 40px 30px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.affiliation {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.4;
}

.bio-text {
    font-size: 0.9rem;
    margin-bottom: 30px;
    color: #555;
}

.contact-info {
    margin-bottom: 30px;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
}

.contact-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px 60px;
    background-color: var(--white);
}

/* Navigation */
.top-nav {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-menu li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--accent-color);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

/* Sections */
.section {
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

/* About Section */
.about-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.interest-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.interest-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.interest-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.interest-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* News Section */
.news-list {
    border-left: 2px solid #eee;
    padding-left: 20px;
}

.news-item {
    margin-bottom: 20px;
    position: relative;
}

.news-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.news-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
    min-width: 80px;
    display: inline-block;
}

/* Publications */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.publication-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.pub-thumbnail {
    flex: 0 0 300px;
    /* Compact image size */
    position: relative;
}

.pub-thumbnail img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.thumbnail-placeholder {
    width: 100%;
    height: 180px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
    border-radius: 5px;
}

.pub-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #2c3e50;
    /* Dark blue like reference */
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-top-left-radius: 5px;
    border-bottom-right-radius: 5px;
    z-index: 10;
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.pub-title a {
    color: var(--primary-color);
}

.pub-title a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.pub-authors {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 5px;
}

.pub-venue {
    font-style: italic;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.pub-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.pub-desc ul {
    padding-left: 18px;
    list-style-type: disc;
}

.pub-desc li {
    margin-bottom: 4px;
}

.pub-links {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
    background: #f8f9fa;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-sm:hover {
    background: #e9ecef;
    color: var(--primary-color);
    border-color: #ccc;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.timeline-date {
    flex: 0 0 120px;
    font-weight: 600;
    color: var(--text-light);
    text-align: right;
    padding-top: 5px;
}

.timeline-content {
    flex: 1;
    border-left: 2px solid #eee;
    padding-left: 20px;
    padding-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-content .role {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Research Philosophy */
.philosophy-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.philosophy-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.philosophy-content p {
    margin-bottom: 20px;
}

.philosophy-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
    list-style-type: disc;
}

.philosophy-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.philosophy-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Projects - Legacy styles (if needed) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    background: #e3f2fd;
    color: var(--accent-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Service */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.styled-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.styled-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .page-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 40px 20px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .main-content {
        margin-left: 0;
        padding: 30px 20px;
    }

    .publication-item {
        flex-direction: column;
    }

    .pub-thumbnail {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: block;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--text-color);
        transition: all 0.3s ease-in-out;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
        margin-top: 20px;
    }

    .nav-menu.active {
        display: flex;
    }
}