*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.65;
    color: #333;
    background-color: #eef2f7;
    font-size: 16px;
}
a { color: #007bff; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.site-container {
    max-width: 100%;
    margin: 0 auto;
}

.page-header-container {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 25px 30px;
    text-align: center;
    margin-bottom: 30px;
}
.page-header-content h1 {
    font-size: 2.2rem;
    font-weight: 300;
    margin: 0;
}

.profile-layout-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.profile-sidebar-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    align-self: start;
    position: sticky;
    top: 30px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}
.sidebar-widget { margin-bottom: 25px; }
.sidebar-widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 1.1rem;
    color: #343a40;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}
#profile-info-widget { text-align: center; }
.profile-avatar {
    width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 15px; border: 4px solid #e9ecef;
}
.profile-avatar-placeholder {
    width: 140px; height: 140px; border-radius: 12px; margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center; background-color: #f8f9fa;
    border: 4px solid #e9ecef;
}
.profile-name { font-size: 1.6rem; margin-bottom: 5px; color: #212529; }
.profile-tagline { font-size: 1rem; color: #6c757d; }

.main-navigation .nav-button {
    display: block; padding: 10px 0; color: #007bff; font-weight: 500;
    border-radius: 4px; margin-bottom: 5px; transition: background-color 0.2s, color 0.2s;
    text-align: left;
}
.main-navigation .nav-button:hover { color: #0056b3; background-color: #e9f3ff; }

.category-jump-menu li a { color: #495057; font-size: 0.95rem; display: block; padding: 4px 0; }
.category-jump-menu li a:hover { color: #0056b3; }

#search-input-field { width: 100%; padding: 10px; border: 1px solid #ced4da; border-radius: 4px; font-size: 0.9rem; }
#search-results-info { font-size: 0.85rem; color: #6c757d; margin-top: 8px; min-height: 1.2em; }

.profile-main-area {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.content-panel { margin-bottom: 40px; }
.panel-heading {
    font-size: 1.8rem; color: #343a40; margin-bottom: 20px;
    padding-bottom: 10px; border-bottom: 2px solid #007bff; font-weight: 600;
}
.sub-heading { font-size: 1.3rem; color: #495057; margin-top: 25px; margin-bottom: 10px; font-weight: 600;}
.panel-body { font-size: 1rem; color: #454545; }
.info-list li { padding: 6px 0; border-bottom: 1px dotted #e0e0e0; font-size: 0.95rem;}
.info-list li:last-child { border-bottom: none; }

.works-panel-fullwidth { }

.work-category-section { margin-bottom: 35px; }
.category-name-heading {
    font-size: 1.4rem; color: #17a2b8;
    margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid #dee2e6;
    font-weight: 500;
}
.publications-display-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.publication-entry-card {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}
.publication-entry-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.publication-image-area {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #e9ecef;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.publication-image-area::before {
    content: "";
    display: block;
    padding-top: 75%;
}

.publication-image-area img,
.publication-image-area .publication-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.publication-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.publication-image-placeholder svg {
    width: 40%;
    height: 40%;
    color: #ccc;
}

.publication-actions-overlay {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    padding: 0 10px;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.publication-image-area:hover .publication-actions-overlay { opacity: 1; }

.action-button {
    background-color: #007bff; color: white !important;
    padding: 6px 12px; border-radius: 4px; font-size: 0.8rem;
    font-weight: 500; display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    white-space: nowrap;
}
.action-button:hover { background-color: #0056b3; text-decoration: none; }
.action-button.btn-secondary { background-color: #5a6268; }
.action-button.btn-secondary:hover { background-color: #495057; }

.publication-details-content { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.publication-title { font-size: 1rem; font-weight: 600; color: #343a40; margin-bottom: 8px; line-height: 1.3; }
.publication-metadata { font-size: 0.8rem; color: #6c757d; margin-bottom: 8px; }
.pub-type-badge { background-color: #6c757d; color: white; padding: 2px 6px; border-radius: 3px; font-size: 0.7rem; }
.publication-authors { font-size: 0.8rem; color: #555; margin-bottom: 0; }

.page-footer-container {
    text-align: center;
    padding: 25px 30px;
    margin-top: 30px;
    background-color: #343a40;
    color: #adb5bd;
    font-size: 0.9rem;
}
.page-footer-container p { margin: 0; }

@media (min-width: 1200px) {
    .publications-display-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .profile-layout-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .profile-sidebar-content {
        position: static;
        max-height: none;
        margin-bottom: 25px;
    }
    .page-header-container { padding: 20px 15px; margin-bottom: 20px;}
    .profile-main-area { padding: 20px; }
    .works-fullwidth-container {
        padding: 0 15px;
    }
     .publications-display-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .publications-display-grid {
        grid-template-columns: 1fr;
    }
    .publication-entry-card {
    }
    .publication-image-area {
        height: auto;
    }
    .page-header-content h1 { font-size: 1.6rem; }
    .panel-heading { font-size: 1.4rem; margin-bottom: 15px; padding-bottom: 8px;}
    .category-name-heading { font-size: 1.1rem; margin-bottom: 12px; }
}
@media (max-width: 576px) {
    .action-button { font-size: 0.75rem; padding: 5px 8px; }
    .publication-title { font-size: 0.95rem; }
}

.publication-entry-card.hidden-by-search { display: none; }
