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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #000000;
    background-color: #ffffff;
    letter-spacing: -0.01em;
    position: relative;
    padding-top: 96px;
}

body.footer-fixed {
    padding-bottom: 100px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header: 심플·세련 */
.header {
    background-color: #ffffff;
    padding: 16px 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.header-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.theme-toggle {
    position: absolute;
    top: 14px;
    right: 20px;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    z-index: 1001;
    color: #000000;
}

.theme-toggle:hover {
    opacity: 0.8;
}

.theme-toggle i {
    font-size: 1rem;
    color: #000000;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
    background-color: transparent;
    border: none;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 12px;
    transition: all 0.2s ease;
    border-radius: 0;
    position: relative;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: #000000;
    background-color: #f0f0f0;
}

.nav-link.active {
    color: #000000;
    font-weight: 600;
    background-color: #e8e8e8;
}

/* Main Content */
.main-content {
    margin-bottom: 24px;
    background-color: #ffffff;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
}

.content-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    padding: 20px 0;
}

/* Profile Image */
.left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.profile-image-container {
    width: 100%;
    max-width: 200px;
    margin-bottom: 20px;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.profile-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon-link:hover {
    background-color: #000;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.social-icon-link i {
    color: #ffffff;
}

.profile-social-links {
    width: 100%;
    max-width: 300px;
    margin-top: 15px;
    text-align: center;
}

.profile-social-link {
    display: block;
    font-size: 0.85rem;
    color: #000000;
    text-decoration: none;
    margin-bottom: 8px;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.profile-social-link:hover {
    color: #000000;
}

.profile-social-link i {
    margin-right: 6px;
}

.profile-email {
    font-size: 0.85rem;
    color: #777777;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #cccccc;
}

.profile-email i {
    margin-right: 6px;
}

/* Home News Section */
.home-news-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
}

.home-news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

html.dark-mode .home-news-title {
    color: #e0e0e0;
}

.home-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-news-item {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-news-date {
    flex-shrink: 0;
    color: #666;
    min-width: 4.5em;
}

html.dark-mode .home-news-date {
    color: #aaa;
}

.home-news-text {
    color: #333;
}

html.dark-mode .home-news-text {
    color: #e0e0e0;
}

/* Right Column Content */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.professional-info .title {
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: #000000;
    line-height: 1.5;
}

.link {
    color: #000000;
    text-decoration: underline;
    text-decoration-color: #bbb;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.link:hover {
    color: #000000;
    text-decoration-color: #000000;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background-color: #000000;
    margin: 30px 0;
    border: none;
}

.social-link {
    color: #3498db;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
    color: #2980b9;
    transform: scale(1.1);
}

/* Text Sections */
.bio-section,
.research-section,
.hobby-section,
.awards-section,
.education-section,
.recruitment-section {
    line-height: 1.8;
}

.bio-section p,
.research-section p,
.hobby-section p,
.awards-section p,
.education-section p,
.recruitment-section p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #000000;
}

/* Research Overview Section */
.research-overview {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    text-align: left;
    line-height: 1.3;
}

.section-intro {
    font-size: 1rem;
    margin-bottom: 48px;
    color: #555555;
    text-align: left;
    font-weight: 400;
    line-height: 1.7;
    max-width: 700px;
}

.research-areas {
    display: block;
    gap: 20px;
    margin-top: 30px;
}

.research-area {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border-left: none;
    margin-bottom: 20px;
}

.research-area h3 {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    font-weight: 600;
}

.research-area p {
    color: #555555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #000000;
    padding: 48px 0 24px 0;
    margin-top: 80px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
}

.footer.fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-left {
    margin-bottom: 0;
}

.footer-right {
    margin-bottom: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.8rem;
}

.contact-detail i {
    font-size: 0.7rem;
    width: 12px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kaist-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.institution-info {
    display: flex;
    flex-direction: column;
}

.institution-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
}

.copyright {
    color: #ffffff;
    font-size: 0.85rem;
    text-align: center;
}

/* CV Page Styles */
.cv-section {
    text-align: center;
}

.cv-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.pdf-container {
    max-width: 800px;
    margin: 0 auto;
}

.pdf-loading {
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.loading-content {
    text-align: center;
}

.loading-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.loading-content p {
    color: #6c757d;
    font-size: 1.1rem;
}

.pdf-error {
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 60px 20px;
    background-color: #fdf2f2;
}

.error-content {
    text-align: center;
}

.error-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.error-content p {
    color: #6c757d;
}

.pdf-viewer {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pdf-controls {
    background-color: #f8f9fa;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.control-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.control-btn:hover {
    background-color: #2980b9;
}

.control-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

#pdfCanvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

#pageInfo {
    font-weight: 500;
    color: #2c3e50;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pdf-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .control-btn {
        width: 100%;
        margin: 2px 0;
    }
    
    .cv-section h2 {
        font-size: 1.5rem;
    }
    
    .loading-icon {
        font-size: 2rem;
    }
    
    .error-icon {
        font-size: 2rem;
    }
    
    .error-content h3 {
        font-size: 1.2rem;
    }
    
    .pdf-loading, .pdf-error {
        padding: 40px 15px;
    }
}

/* CV Section Styles */
.cv-section {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    height: auto;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background-color: #000000;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
}

.cv-content {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.cv-preview {
    width: 100%;
    height: 100vh;
    min-height: 800px;
    background-color: #000000;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.cv-preview iframe {
    background-color: #000000;
}

/* Photos Section Styles */
.photos-section {
    padding: 48px 40px 60px 40px;
    display: none;
    background-color: #ffffff;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
}

.photo-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.photo-item {
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.photo-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #000000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
}

.photo-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.photo-item:hover::after {
    opacity: 1;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.photo-caption {
    padding: 18px 24px;
    text-align: left;
    display: block;
}

@media (min-width: 769px) {
    /* Desktop: 더 넉넉한 좌우 여백으로 캡션이 이미지와 붙지 않게 함 */
    .photo-caption {
        padding: 22px 28px;
        max-width: calc(100% - 56px);
    }
}

.photo-title {
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.photo-date {
    font-size: 0.8rem;
    color: #777777;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-family: 'Monaco', 'Courier New', monospace;
}

.photo-placeholder {
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #6c757d;
}

.photo-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #bdc3c7;
}

/* Insights Section Styles */
.insights-section {
    padding: 48px 40px 60px 40px;
    background-color: #ffffff;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    display: none;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin: 40px 0 32px 0;
    padding: 0;
    max-width: 100%;
}

.filter-btn {
    padding: 10px 22px;
    background-color: #ffffff;
    border: 1.5px solid #000000;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.filter-btn:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.filter-btn.active {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.papers-list {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.paper-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px;
    margin-bottom: 20px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #000000;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.paper-item:hover {
    border-left-color: #000000;
    border-color: #000000;
    background-color: #fafafa;
}

.paper-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    background-color: #ffffff;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000000;
    border-radius: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.paper-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.paper-link {
    text-decoration: none;
    display: block;
}

.paper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.paper-category {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.2s ease;
}

.paper-category.ml {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.paper-category.cv {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
}

.paper-category.nlp {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
}

.paper-category.robotics {
    background-color: #444444;
    color: #ffffff;
    border: 1px solid #444444;
}

.paper-date {
    font-size: 0.85rem;
    color: #777777;
    font-weight: 500;
}

.paper-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.paper-link:hover .paper-title {
    color: #333;
}

.paper-description {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

.paper-meta {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
}

/* Publications Section Styles */
.publications-section {
    padding: 40px 0;
}

.publications-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.publication-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.publication-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.publication-item ul {
    margin: 15px 0;
    padding-left: 20px;
}

.publication-item li {
    margin-bottom: 8px;
    color: #555;
}

.publication-placeholder {
    text-align: center;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
}

/* Archive Section Styles - kimjy99 스타일 깔끔/실용적 */
.archive-section {
    padding: 60px 40px 80px 40px;
    display: none;
    background-color: #ffffff;
    border-radius: 0;
    max-width: 720px;
    margin: 0 auto;
}

.archive-header {
    margin-bottom: 40px;
}

.archive-desc {
    font-size: 0.95rem;
    color: #666;
    margin-top: 8px;
    margin-bottom: 0;
}

.archive-list {
    margin-top: 0;
}

.archive-empty {
    color: #999;
    font-size: 0.95rem;
    margin-top: 40px;
    text-align: center;
    font-style: italic;
}

.archive-empty code {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.85em;
    font-family: 'Monaco', 'Courier New', monospace;
}

.archive-card {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.archive-card:hover {
    border-bottom-color: #000;
}

.archive-date {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-family: 'Monaco', 'Courier New', monospace;
    min-width: 90px;
}

.archive-card-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.archive-card:hover .archive-card-title {
    color: #000;
}

.archive-loading,
.archive-error {
    color: #666;
    padding: 40px 0;
    text-align: center;
}

.archive-error {
    color: #c00;
}

.archive-post-detail {
    margin-top: 0;
}

.archive-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    background: none;
    border: none;
    font-size: 0.9rem;
    color: #555555;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    font-weight: 500;
    margin-bottom: 32px;
}

.archive-back-btn:hover {
    color: #000000;
}

.archive-back-btn i {
    font-size: 0.85em;
}

.archive-post-body {
    margin-bottom: 40px;
}

.archive-post-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
}

.archive-post-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.archive-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.archive-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
}

/* 논문 정보 블록 (왼쪽 세로선, 정돈된 레이아웃) */
.archive-paper-info {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
    margin-top: 0;
    padding: 12px 0 12px 16px;
    border-left: 3px solid #ddd;
}

.archive-paper-info a {
    color: #0066cc;
    text-decoration: none;
}

.archive-paper-info a:hover {
    text-decoration: underline;
}

.archive-paper-image {
    max-width: 100%;
    height: auto;
    margin-top: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.archive-meta-sub {
    font-size: 0.85rem;
    color: #888;
    margin-top: 12px;
}

.archive-post-header time {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Monaco', 'Courier New', monospace;
}

.archive-post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #1a1a1a;
    margin-top: 32px;
    max-width: 100%;
}

.archive-post-content p {
    margin-bottom: 1.25em;
}

.archive-post-content p:last-child {
    margin-bottom: 0;
}

/* 리스트 항목 스타일 */
.archive-post-content ul,
.archive-post-content ol {
    margin: 1.25em 0;
    padding-left: 1.5em;
}

.archive-post-content ul {
    list-style-type: disc;
}

.archive-post-content ol {
    list-style-type: decimal;
}

.archive-post-content li {
    margin-bottom: 0.75em;
    line-height: 1.8;
    padding-left: 0.25em;
}

.archive-post-content li:last-child {
    margin-bottom: 0;
}

.archive-post-content li > p {
    margin-bottom: 0.25em;
}

.archive-post-content li strong {
    color: #000;
}

.archive-post-content a {
    color: #000000;
    text-decoration: underline;
    text-decoration-color: #999;
    text-underline-offset: 2px;
}

.archive-post-content a:hover {
    text-decoration-color: #000000;
}

.archive-post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    font-size: 0.9em;
    color: #000000;
}

.archive-post-content pre {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 16px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.9em;
}

.archive-post-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.archive-post-content h1 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-weight: 700;
    font-size: 1.5rem;
}

.archive-post-content h2 {
    margin-top: 1.75em;
    margin-bottom: 0.6em;
    font-weight: 600;
    font-size: 1.3rem;
}

.archive-post-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    font-size: 1.15rem;
}

.archive-post-content h1:first-child,
.archive-post-content h2:first-child,
.archive-post-content h3:first-child {
    margin-top: 0;
}

.archive-post-content blockquote {
    border-left: 4px solid #ccc;
    margin: 1.5em 0;
    padding-left: 1em;
    color: #555;
}

/* Archive 포스트 내 인라인 이미지 */
.archive-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.archive-post-content img.archive-inline-image {
    max-width: min(100%, 600px);
    cursor: default;
}

.archive-post-content .archive-image-caption {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    margin: -0.5em 0 1.5em 0;
    font-style: italic;
}

/* Archive 카드: 논문/링크 배지 */
.archive-card-links-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #666;
    background: #f0f0f0;
    border-radius: 4px;
    vertical-align: middle;
}

/* Archive 상세: 관련 링크 섹션 */
.archive-links {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #cccccc;
}

.archive-links-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin: 0 0 16px 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.archive-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-links-list li {
    margin-bottom: 10px;
}

.archive-links-list a {
    color: #000000;
    text-decoration: underline;
    text-decoration-color: #999;
    text-underline-offset: 2px;
    font-size: 0.95rem;
}

.archive-links-list a:hover {
    text-decoration-color: #000000;
}


/* Contact Section Styles */
.contact-section {
    padding: 48px 40px 60px 40px;
    display: none;
    background-color: #ffffff;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    margin: 40px 0 0 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 28px 0;
    margin: 0;
    border-bottom: 1px solid #cccccc;
    transition: all 0.2s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    padding-left: 10px;
    border-bottom-color: #000000;
}

.contact-item i {
    font-size: 1rem;
    color: #000000;
    margin-right: 20px;
    width: 24px;
    text-align: left;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item span {
    color: #000000;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-item:last-child span {
    font-style: italic;
    color: #555555;
}

.contact-social {
    border-top: 1px solid #e9ecef;
    padding-top: 40px;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid #cccccc;
    border-radius: 6px;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #f0f0f0;
    border-color: #000000;
    color: #000000;
    transform: translateY(-2px);
}

.social-link i {
    margin-right: 8px;
    color: #555555;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .name {
        font-size: 2rem;
    }

    .content-card {
        padding: 28px 18px 18px 18px;
        border-radius: 0;
        margin-bottom: 16px;
    }
    
    .main-content {
        margin-bottom: 16px;
        padding-top: 40px;
    }

    .professional-info,
    .bio-section,
    .research-section,
    .hobby-section {
        font-size: 0.95rem;
        line-height: 1.8;
        margin-bottom: 24px;
    }
    
    .professional-info {
        margin-bottom: 24px;
    }
    
    .bio-section {
        margin-bottom: 24px;
    }
    
    .research-section {
        margin-bottom: 24px;
    }
    
    .hobby-section {
        margin-bottom: 0;
    }

    .professional-info p,
    .bio-section p,
    .research-section p {
        margin-bottom: 12px;
    }
    
    .hobby-section p {
        margin-bottom: 0;
    }
    
    .professional-info strong {
        font-size: 1rem;
    }

    .research-overview {
        padding: 28px 18px;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .section-intro {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    .research-areas {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .research-area {
        padding: 20px;
    }

    .research-area h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .research-area p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .cv-section {
        min-height: auto;
        height: auto;
        padding: 80px 0 20px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    
    .cv-preview {
        width: 100%;
        height: calc(100vh - 120px);
        min-height: 500px;
        max-height: 800px;
    }
    
    .cv-content {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .cv-content iframe {
        min-height: 500px;
        height: calc(100vh - 120px);
        max-height: 800px;
    }
    
    .cv-content,
    .photo-gallery {
        padding: 0 10px;
    }

    .photos-section {
        padding: 20px 12px 24px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 24px;
    }

    .photo-item {
        border-radius: 8px;
        overflow: hidden;
    }

    .gallery-image {
        height: 200px;
        object-fit: cover;
    }

    .photo-caption {
        padding: 14px;
    }

    .photo-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .photo-date {
        font-size: 0.75rem;
    }

    .archive-section {
        padding: 20px 12px 28px;
    }

    .archive-card {
        padding: 18px 0;
    }

    .archive-card-title {
        font-size: 1.05rem;
    }

    .archive-post-title {
        font-size: 1.4rem;
    }

    .insights-section {
        padding: 20px 12px 28px;
    }

    .papers-list {
        padding: 0;
        margin-top: 24px;
    }

    .paper-item {
        padding: 16px;
        gap: 14px;
        margin-bottom: 14px;
        border-left-width: 3px;
    }
    
    .paper-number {
        min-width: 44px;
        height: 44px;
        font-size: 0.85rem;
        border-radius: 4px;
        flex-shrink: 0;
    }
    
    .paper-title {
        font-size: 0.95rem;
        line-height: 1.35;
        margin-bottom: 6px;
    }
    
    .paper-description {
        font-size: 0.85rem;
        line-height: 1.45;
    }
    
    .paper-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .paper-category {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .paper-date {
        font-size: 0.7rem;
    }
    
    .category-filter {
        gap: 8px;
        margin: 20px 0 24px 0;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .category-filter::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        padding: 7px 14px;
        font-size: 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Mobile Header Optimization */
@media (max-width: 768px) {
    .header {
        padding: 14px 0;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }
    
    .header-inner {
        padding: 0 14px;
        gap: 16px;
    }
    
    .header-name {
        font-size: 1.15rem;
        font-weight: 600;
    }
    
    .navigation {
        gap: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 4px;
        justify-content: flex-end;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
    }
    
    .navigation::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 7px 11px;
        white-space: nowrap;
        flex-shrink: 0;
        font-weight: 500;
        border-radius: 2px;
        transition: all 0.2s ease;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 14px;
        padding: 0;
    }
    
    .theme-toggle i {
        font-size: 0.95rem;
    }
    
    body {
        padding-top: 60px;
    }
    
    .footer-right {
        display: none;
    }
    
    /* Contact Section Mobile Optimization */
    .contact-section {
        padding: 20px 16px 60px 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: auto;
    }
    
    .contact-content {
        gap: 0;
        padding: 0;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .contact-item {
        padding: 18px 0;
        margin: 0;
        border-bottom: 1px solid #e9ecef;
        align-items: flex-start;
        font-size: 0.95rem;
    }
    
    .contact-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .contact-item i {
        font-size: 1.05rem;
        margin-right: 16px;
        margin-top: 3px;
        width: 20px;
        flex-shrink: 0;
        color: #000000;
    }
    
    .contact-item span {
        line-height: 1.65;
        word-break: break-word;
        font-size: 0.95rem;
    }
    
    .contact-item:last-child span {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    /* Profile Image Mobile Optimization */
    .profile-image-container {
        max-width: 180px;
        margin-bottom: 24px;
    }

    .profile-image {
        border-radius: 0;
    }
    
    .profile-social-icons {
        gap: 18px;
        margin-top: 22px;
        margin-bottom: 12px;
    }
    
    .social-icon-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 50%;
        transition: all 0.25s ease;
    }
    
    .social-icon-link:active {
        transform: scale(0.95);
    }
    
    .two-column-layout {
        gap: 32px;
    }
    
    .left-column {
        align-items: center;
    }
    
    /* Hide email address if it appears in home section on mobile */
    .profile-email {
        display: none !important;
    }
    
    /* Ensure main-content doesn't show contact info */
    .main-content .contact-item,
    .main-content .contact-info {
        display: none !important;
    }
    
    /* Hide CV and Contact sections by default on mobile */
    #cv.cv-section,
    #contact.contact-section {
        display: none !important;
    }
    
    /* Only show when explicitly set by JavaScript with inline style */
    #cv.cv-section[style*="flex"] {
        display: flex !important;
    }
    
    #contact.contact-section[style*="block"] {
        display: block !important;
    }

    .footer {
        padding: 24px 0;
        margin-top: 40px;
    }

    .footer-content {
        padding: 0 14px;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-left {
        margin-left: 20px;
    }

    .footer-right {
        margin-bottom: 0;
    }

    .footer-bottom {
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid #444;
    }

    .copyright {
        text-align: center;
        font-size: 0.8rem;
    }

    /* 모바일: 섹션이 헤더와 겹치지 않도록 최대 높이 낮추고 상단 패딩 추가
       home 섹션과 contact 섹션은 제외 */
    .photos-section,
    .archive-section,
    .insights-section {
        padding-top: 60px !important;
    }
    
    [class*="-section"]:not(.contact-section):not(.home):not(.home-section):not(.photos-section):not(.archive-section):not(.insights-section) {
        max-height: calc(100vh - 140px);
        overflow: auto;
        padding-top: 20px;
    }

    /* CV 관련 요소는 기존보다 조금 더 여유 있게 조정 */
    .cv-preview,
    .cv-content iframe {
        height: calc(100vh - 160px);
        max-height: 720px;
        min-height: 320px;
    }
}

/* Dark Mode Styles */
html.dark-mode body {
    background-color: #000000 !important;
    color: #ffffff !important;
}

html.dark-mode body::before {
    background: #000000 !important;
}

html.dark-mode body .container {
    background-color: transparent !important;
}

html.dark-mode body .header {
    background-color: #000000 !important;
    border-bottom: 1px solid #ffffff !important;
}

html.dark-mode body .header-name {
    color: #ffffff !important;
}

html.dark-mode body .nav-link {
    color: #ffffff !important;
}

html.dark-mode body .nav-link:hover {
    color: #ffffff !important;
    background-color: #222222 !important;
}

html.dark-mode body .nav-link.active {
    color: #ffffff !important;
    background-color: #333333 !important;
}

html.dark-mode body .main-content,
html.dark-mode body .content-card,
html.dark-mode body .research-overview,
html.dark-mode body .cv-section {
    background-color: #000000 !important;
}

html.dark-mode body .cv-preview {
    background-color: #000000;
}

html.dark-mode body .cv-preview iframe {
    background-color: #000000;
}

html.dark-mode body .photos-section,
html.dark-mode body .insights-section,
html.dark-mode body .archive-section,
html.dark-mode body .contact-section {
    background-color: #000000 !important;
    color: #ffffff !important;
}

html.dark-mode body .section-title {
    color: #ffffff !important;
}

html.dark-mode body .archive-desc {
    color: #999 !important;
}

html.dark-mode body .archive-section .archive-empty,
html.dark-mode body .archive-section .archive-empty code {
    color: #999;
    background: #222;
}

html.dark-mode body .archive-card {
    border-bottom-color: #444444;
}

html.dark-mode body .archive-card:hover {
    border-bottom-color: #ffffff;
    background-color: #1a1a1a;
}

html.dark-mode body .archive-date {
    color: #777777;
}

html.dark-mode body .archive-card-title {
    color: #ffffff !important;
}

html.dark-mode body .archive-card:hover .archive-card-title {
    color: #ffffff !important;
}

html.dark-mode body .archive-back-btn {
    color: #ffffff !important;
}

html.dark-mode body .archive-back-btn:hover {
    color: #999 !important;
}

html.dark-mode body .archive-delete-btn {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
}

html.dark-mode body .archive-delete-btn:hover {
    background: #000000 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

html.dark-mode body .archive-post-actions {
    border-bottom-color: #333 !important;
}

html.dark-mode body .archive-post-title {
    color: #ffffff !important;
}

html.dark-mode body .archive-post-content,
html.dark-mode body .archive-post-content p,
html.dark-mode body .archive-post-content li {
    color: #dddddd !important;
}

html.dark-mode body .archive-post-content li strong {
    color: #ffffff !important;
}

html.dark-mode body .archive-post-content a {
    color: #ffffff !important;
    text-decoration-color: #777777 !important;
}

html.dark-mode body .archive-post-content a:hover {
    text-decoration-color: #ffffff !important;
}

html.dark-mode body .archive-post-content code {
    background: #222 !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

html.dark-mode body .archive-post-content img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

html.dark-mode body .archive-card-links-badge {
    background: #333 !important;
    color: #999 !important;
}

html.dark-mode body .archive-links {
    border-top-color: #333 !important;
}

html.dark-mode body .archive-links-title {
    color: #999 !important;
}

html.dark-mode body .archive-links-list a {
    color: #cccccc !important;
    text-decoration-color: #555 !important;
}

html.dark-mode body .archive-links-list a:hover {
    text-decoration-color: #ffffff !important;
    color: #ffffff !important;
}

html.dark-mode body .archive-post-content .archive-image-caption {
    color: #999 !important;
}

html.dark-mode body .archive-post-header {
    border-bottom-color: #444444 !important;
}

html.dark-mode body .archive-tag {
    background: #333 !important;
    border-color: #555 !important;
    color: #cccccc !important;
}

html.dark-mode body .archive-paper-info {
    color: #999 !important;
    border-left-color: #555 !important;
}

html.dark-mode body .archive-paper-info a {
    color: #6bb4ff !important;
}

html.dark-mode body .archive-meta-sub {
    color: #777 !important;
}

html.dark-mode body .archive-post-header time {
    color: #777777 !important;
}

html.dark-mode body .section-intro {
    color: #ffffff !important;
}

html.dark-mode body .research-area h3 {
    color: #ffffff !important;
}

html.dark-mode body .research-area p {
    color: #ffffff !important;
}

html.dark-mode body .professional-info,
html.dark-mode body .professional-info p,
html.dark-mode body .bio-section,
html.dark-mode body .bio-section *,
html.dark-mode body .bio-section p,
html.dark-mode body .bio-section strong,
html.dark-mode body .research-section,
html.dark-mode body .research-section *,
html.dark-mode body .research-section p,
html.dark-mode body .hobby-section,
html.dark-mode body .hobby-section *,
html.dark-mode body .hobby-section p {
    color: #ffffff !important;
}

html.dark-mode body .profile-social-link {
    color: #ffffff !important;
}

html.dark-mode body .profile-social-link:hover {
    color: #4a9eff !important;
}

html.dark-mode body .profile-email {
    color: #ffffff !important;
    border-top-color: #333 !important;
}

html.dark-mode body .social-icon-link {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}

html.dark-mode body .social-icon-link:hover {
    background-color: #e6e6e6 !important;
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3) !important;
}

html.dark-mode body .social-icon-link i {
    color: #000000 !important;
}

html.dark-mode body .theme-toggle {
    border-color: #ffffff !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}

html.dark-mode body .theme-toggle:hover {
    background-color: #1a1a1a !important;
    border-color: #ffffff !important;
}

html.dark-mode body .theme-toggle i {
    color: #ffffff !important;
}

html.dark-mode body .link {
    color: #4a9eff !important;
}

html.dark-mode body .link:hover {
    color: #6bb4ff !important;
}

html.dark-mode body .photo-item {
    background-color: #1a1a1a !important;
}

html.dark-mode body .photo-title,
html.dark-mode body .photo-date {
    color: #ffffff !important;
}

html.dark-mode body .paper-item {
    background-color: #1a1a1a !important;
    border-color: #444444 !important;
    border-left-color: #ffffff !important;
}

html.dark-mode body .paper-item:hover {
    background-color: #2a2a2a !important;
    border-color: #ffffff !important;
    border-left-color: #ffffff !important;
}

html.dark-mode body .paper-title,
html.dark-mode body .paper-description {
    color: #ffffff !important;
}

html.dark-mode body .paper-category,
html.dark-mode body .paper-date {
    color: #ffffff !important;
}

html.dark-mode body .filter-btn {
    background-color: #1a1a1a !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

html.dark-mode body .filter-btn:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
}

html.dark-mode body .filter-btn.active {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
}

html.dark-mode body .paper-number {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

html.dark-mode body .paper-item:hover {
    background-color: #2a2a2a !important;
}

html.dark-mode body .photo-item::after {
    border-color: #ffffff !important;
}

html.dark-mode body .photo-placeholder {
    background-color: #1a1a1a;
    color: #777777;
}

html.dark-mode body .photo-placeholder i {
    color: #555555;
}

html.dark-mode body .contact-item {
    border-bottom-color: #444444 !important;
}

html.dark-mode body .contact-item:hover {
    border-bottom-color: #ffffff !important;
    padding-left: 8px;
}

html.dark-mode body .contact-item i {
    color: #ffffff !important;
}

html.dark-mode body .contact-item span {
    color: #ffffff !important;
}

html.dark-mode body .contact-social {
    border-top-color: #444444 !important;
}

html.dark-mode body .social-link {
    color: #ffffff !important;
    border-color: #555555 !important;
    background-color: #1a1a1a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

html.dark-mode body .social-link:hover,
html.dark-mode body .social-link:active {
    color: #ffffff !important;
    background-color: #2a2a2a !important;
    border-color: #777777 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

html.dark-mode body .social-link i {
    color: #cccccc !important;
}

html.dark-mode body .footer {
    background-color: #000000 !important;
    border-top-color: #333333 !important;
    color: #ffffff !important;
}

html.dark-mode body .footer .institution-name,
html.dark-mode body .footer .contact-detail,
html.dark-mode body .footer .copyright {
    color: #ffffff !important;
}

html.dark-mode body .footer .kaist-logo {
    filter: brightness(0) invert(1) !important;
}

/* Extra Small Devices (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header-name {
        font-size: 1rem;
    }

    .content-card {
        padding: 20px 14px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .section-intro {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .two-column-layout {
        gap: 24px;
    }

    .profile-image-container {
        max-width: 160px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .photo-item {
        border-radius: 4px;
    }

    .gallery-image {
        height: 180px;
    }

    .photo-caption {
        padding: 12px;
    }

    .photo-title {
        font-size: 0.85rem;
    }

    .paper-item {
        padding: 14px;
        gap: 12px;
    }

    .paper-number {
        min-width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .paper-title {
        font-size: 0.9rem;
    }

    .paper-description {
        font-size: 0.8rem;
    }

    .archive-card {
        padding: 16px 0;
    }

    .archive-card-title {
        font-size: 1rem;
    }

    .contact-item {
        padding: 16px 0;
    }

    .contact-item i {
        font-size: 1rem;
        margin-right: 12px;
    }

    .contact-item span {
        font-size: 0.9rem;
    }

    .footer-content {
        padding: 0 10px;
    }

    .institution-name {
        font-size: 0.85rem;
    }

    .contact-detail {
        font-size: 0.75rem;
    }

    /* Section padding for smaller screens */
    .archive-section,
    .photos-section,
    .insights-section,
    .contact-section,
    .cv-section {
        padding-top: 20px;
    }
}
