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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.figure-container {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.figure-image {
    width: 50%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.figure-caption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    padding: 0 20px;
    text-align: center;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .figure-container {
        margin: 20px 0;
        padding: 10px;
    }
    
    .figure-caption {
        font-size: 13px;
        padding: 0 10px;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .figure-container {
        margin: 15px 0;
        padding: 5px;
    }
    
    .figure-caption {
        font-size: 12px;
        padding: 0 5px;
    }
}

/* Academic styling */
.header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.content-section {
    margin: 40px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.content-section.small {
    font-size: 0.9em;
}

.divider {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 40px auto;
    max-width: 900px;
}

.publications-section h2 {
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: bold;
}

.publication-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.publication-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.publication-authors {
    color: #666;
    margin-bottom: 3px;
}

.publication-venue {
    font-style: italic;
    color: #888;
}

/* Research publications styles */
.tex {
    max-width: 900px;
    margin: 0 auto;
}

.bgb {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.left-img {
    width: 266px;
    height: auto;
    margin-right: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.right-text {
    flex: 1;
    line-height: 1.6;
}

.right-text strong {
    font-size: 1.1em;
    color: #333;
    display: inline;
    margin-bottom: 0;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.right-text small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

.right-text a {
    color: #0066cc;
    text-decoration: none;
}

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

/* Publications header with checkbox */
.publications-header {
    max-width: 900px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
    text-align: center;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
    color: #555;
    user-select: none;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-container:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container:hover .checkmark {
    border-color: #0066cc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #0066cc;
    border-color: #0066cc;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.secondary-article.hidden {
    display: none !important;
}

/* Responsive design for research items */
@media screen and (max-width: 768px) {
    .item {
        flex-direction: column;
    }
    
    .left-img {
        width: 100%;
        max-width: 200px;
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
}
