@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap');

:root {
    --bg-primary: #0B0D10;
    --bg-secondary: #151A21;
    --accent-primary: #4A6FA5; /* Slate Blue */
    --accent-secondary: #5B7C99;
    
    --text-primary: #F3F4F6;
    --text-secondary: #B8C0CC;
    --text-muted: #7E8793;
    --text-caption: #646C77;
    
    --divider-color: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --space-section: 120px;
    --space-card: 40px;
    --space-p: 24px;
    
    --radius-card: 18px;
    --radius-btn: 9999px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: var(--space-p);
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; }
h3 { font-size: clamp(20px, 3vw, 26px); font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }

p { margin-top: 0; margin-bottom: var(--space-p); color: var(--text-muted); }

a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--text-primary); }

ul { margin: 0 0 var(--space-p) 0; padding-left: 20px; color: var(--text-muted); }
li { margin-bottom: 8px; }

hr { border: 0; border-top: 1px solid var(--divider-color); margin: 40px 0; }

/* Sticky Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    padding: 10px 24px;
    z-index: 1000;
    display: flex;
    gap: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.navbar a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 100px;
    transition: all 0.3s ease;
    position: relative;
}

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

.navbar a.active {
    color: var(--text-primary);
}

.navbar a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Container & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--space-section) 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: #1B2430;
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
}

.btn-primary:hover {
    background: #202A38;
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--divider-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Offset for navbar */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.85fr;
    gap: 40px;
    align-items: center;
}

#site-name {
    font-size: clamp(26px, 2.75vw, 37px);
    line-height: 1.26;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    max-width: 100%;
    font-weight: 700;
}

.hero-title-line {
    display: inline-block;
    white-space: nowrap;
}

.hero-visual {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--divider-color);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    max-width: 400px;
    width: 100%;
    margin-left: auto;
}

.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #11151A;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent-primary);
    width: 22px;
    border-radius: 4px;
}

/* Solid Cards */
.card {
    background: linear-gradient(180deg, #181D25, #14181E);
    border: 1px solid var(--divider-color);
    border-radius: var(--radius-card);
    padding: var(--space-card);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #0E1217;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
    margin-bottom: 24px;
    transition: transform 0.4s ease, border-color 0.3s ease;
}

.card:hover .card-img {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.research-page-img {
    height: 320px;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    padding: 0;
}

/* Research Highlights description text alignment */
#research-themes-container .card p.theme-overview {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}

/* Highlight Paper Snippet in Research Cards */
.highlight-paper-box {
    margin-top: 18px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.card:hover .highlight-paper-box {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.highlight-paper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.highlight-journal-pill {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(74, 111, 165, 0.18);
    color: var(--accent-secondary);
    border: 1px solid rgba(107, 140, 189, 0.3);
}

.highlight-paper-link {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.highlight-paper-link:hover {
    color: var(--accent-primary);
}

.highlight-paper-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 12px;
    margin-top: 18px;
    border: 1px solid var(--divider-color);
    transition: transform 0.4s ease;
}

.card:hover .card-img,
.card:hover .news-card-img {
    transform: scale(1.01);
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-card);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-card);
}

/* Publications */
.pub-card {
    display: flex;
    gap: 28px;
    align-items: center;
}

.pub-thumb-container {
    flex-shrink: 0;
    width: 136px;
    height: 136px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #11151A;
    border: 1px solid var(--divider-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}

.pub-thumb-container a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pub-thumb {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card:hover .pub-thumb {
    transform: scale(1.05);
}

.pub-content {
    flex: 1;
    min-width: 0;
}

.pub-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.tag-pill {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(74, 111, 165, 0.12);
    color: var(--accent-secondary);
    border: 1px solid rgba(74, 111, 165, 0.25);
    transition: all 0.2s ease;
}

a.tag-pill:hover {
    background: rgba(74, 111, 165, 0.25);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.pub-title-link {
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
}

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

.pub-content h3 {
    margin-bottom: 6px;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 600;
    transition: color 0.2s ease;
}

.pub-authors {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.pub-authors strong {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: underline;
}

.pub-journal {
    color: var(--accent-primary);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 0;
}

/* Publication Filter Bar */
.pub-filter-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.pub-filter-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--divider-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.pub-filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.pub-filter-btn.active {
    background: #1B2430;
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

/* People */
.person-card {
    text-align: center;
}

.person-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    margin-bottom: 24px;
    border: 1px solid var(--divider-color);
    transition: transform 0.4s ease;
}

.card:hover .person-photo {
    transform: scale(1.02);
}

.pi-card {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    text-align: left;
}

.pi-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.pi-website-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--divider-color);
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 160px;
    box-sizing: border-box;
}

.pi-website-btn:hover {
    background: #1B2430;
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* PI Profile Typography */
.pi-name {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
}

.pi-role-tag {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    margin-bottom: 14px;
}

.pi-position-block {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--divider-color);
}

.pi-title-line {
    font-size: 17.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.pi-honor-tag {
    font-size: 14.5px;
    font-weight: 400;
    color: var(--accent-secondary);
}

.pi-dept-line {
    font-size: 15.5px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

.pi-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    margin-top: 26px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pi-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--divider-color);
}

/* Experience List in PI card */
.exp-list-simple {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.exp-item-simple {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.exp-item-simple:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exp-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.exp-role-inst {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.4;
}

.exp-role-inst strong {
    font-weight: 600;
    color: #FFFFFF;
}

.exp-period-badge {
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.exp-advisor-line {
    font-size: 14.5px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Awards List */
.pi-awards-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pi-awards-list li {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
    margin-bottom: 0;
}

.pi-awards-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    top: -1px;
    color: var(--accent-primary);
    font-size: 18px;
}

/* Recruitment Banner */
.recruitment {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(180deg, #181D25, #11151A);
    border: 1px solid var(--divider-color);
}

.recruitment h2 {
    color: var(--text-primary);
}

.recruitment p strong {
    color: #FFFFFF;
    font-weight: 600;
}

/* Animations (Intersection Observer) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms ease, transform 800ms ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.grid-3 > *:nth-child(1) { transition-delay: 0ms; }
.grid-3 > *:nth-child(2) { transition-delay: 80ms; }
.grid-3 > *:nth-child(3) { transition-delay: 160ms; }
.grid-3 > *:nth-child(4) { transition-delay: 240ms; }
.grid-3 > *:nth-child(5) { transition-delay: 320ms; }

/* Markdown Content Styling */
.markdown-content h2 { margin-top: 48px; border-bottom: 1px solid var(--divider-color); padding-bottom: 16px; }
.markdown-content h3 { margin-top: 32px; }

/* Footer */
footer {
    padding: 70px 0 60px 0;
    text-align: center;
    border-top: 1px solid var(--divider-color);
    margin-top: var(--space-section);
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-logo-xmu {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-logo-college {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.footer-logo-divider {
    width: 1px;
    height: 32px;
    background: var(--divider-color);
}

/* Institutional Affiliation Badge (Hero) */
.hero-affiliation-block {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--divider-color);
    border-radius: 60px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.hero-affiliation-block:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.hero-logo-xmu {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

.hero-logo-college {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.hero-affiliation-divider {
    width: 1px;
    height: 40px;
    background: var(--divider-color);
}

.pi-affiliation-badges {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.pi-affil-link {
    display: inline-flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pi-affil-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.pi-affil-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-icons a {
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Desktop Only Helper */
.desktop-only {
    display: inline;
}

/* ==========================================================================
   Responsive Multi-tier System (Tablets & Mobile Phones)
   ========================================================================== */

/* Tablet & Intermediate Screens (<= 900px) */
@media (max-width: 900px) {
    .desktop-only { display: none; }
    .hero-title-line { white-space: normal; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 120px; text-align: center; }
    .hero-affiliation-block { justify-content: center; }
    .hero-visual { margin: 0 auto; max-width: 440px; }
    .btn-group { justify-content: center; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .pi-card { flex-direction: column; text-align: center; }
    .experiences-list { text-align: left; width: 100%; }
    .pub-card { flex-direction: column; align-items: flex-start; gap: 16px; }
    .pub-thumb-container { width: 140px; height: 140px; }
    .navbar {
        width: calc(100% - 36px);
        overflow-x: auto;
        gap: 12px;
        padding: 8px 16px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .navbar::-webkit-scrollbar { display: none; }
    :root {
        --space-section: 70px;
        --space-card: 24px;
    }
}

/* Mobile Phones (<= 600px) */
@media (max-width: 600px) {
    :root {
        --space-section: 48px;
        --space-card: 16px;
        --space-p: 16px;
        --radius-card: 14px;
    }

    body {
        font-size: 15.5px;
        line-height: 1.6;
    }

    /* Fluid Typography for Mobile */
    h1 {
        font-size: clamp(25px, 6.8vw, 32px);
        line-height: 1.2;
        letter-spacing: -0.02em;
        margin-bottom: 12px;
    }

    h2 {
        font-size: clamp(20px, 5.2vw, 24px);
        line-height: 1.25;
        margin-bottom: 12px;
    }

    h3 {
        font-size: clamp(16.5px, 4.2vw, 19px);
        line-height: 1.35;
        margin-bottom: 8px;
    }

    p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    /* Page container spacing */
    .container {
        padding: 0 16px;
    }

    #main-content > section:first-child {
        padding-top: 86px !important;
    }

    /* Compact Floating Mobile Navbar */
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        max-width: 440px;
        padding: 5px 8px;
        gap: 2px;
        border-radius: 40px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    .navbar a {
        font-size: 13px;
        padding: 6px 9px;
        flex-shrink: 0;
    }

    .navbar a.active::after {
        width: 14px;
        bottom: 1px;
    }

    /* Hero Section on Mobile */
    .hero {
        padding-top: 88px;
        text-align: center;
    }

    .hero-affiliation-block {
        gap: 12px;
        padding: 6px 14px;
        border-radius: 36px;
        margin-bottom: 18px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-logo-xmu {
        height: 36px;
    }

    .hero-logo-college {
        height: 30px;
    }

    .hero-affiliation-divider {
        height: 24px;
    }

    .hero-visual {
        max-width: 100%;
    }

    .carousel-container {
        height: 250px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-group .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 12px 18px;
        font-size: 15px;
    }

    /* Cards & Grids */
    .card {
        padding: 16px;
        border-radius: 14px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    }

    .card-img {
        height: 180px;
        padding: 6px;
        margin-bottom: 16px;
    }

    .research-page-img {
        height: 200px;
        padding: 0;
    }

    #research-themes-container {
        gap: 28px !important;
    }

    /* Avoid text stretching on narrow phone widths */
    #research-themes-container .card p.theme-overview {
        text-align: left;
    }

    .highlight-paper-box {
        margin-top: 14px;
        padding: 10px 12px;
    }

    .highlight-paper-title {
        font-size: 13.5px;
    }

    .highlight-journal-pill {
        font-size: 11px;
        padding: 2px 6px;
    }

    /* Publications Cards on Mobile */
    .pub-card {
        padding: 16px;
        gap: 14px;
    }

    .pub-thumb-container {
        width: 100%;
        height: 150px;
        aspect-ratio: auto;
        padding: 4px;
    }

    .pub-thumb {
        max-height: 100%;
        object-fit: contain;
    }

    .pub-content h3 {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .pub-authors {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .pub-journal {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .pub-tags {
        gap: 6px;
        margin-top: 6px;
    }

    .tag-pill {
        font-size: 11.5px;
        padding: 2px 8px;
    }

    /* Filter Bar */
    .pub-filter-bar {
        gap: 6px;
        margin-bottom: 22px;
    }

    .pub-filter-btn {
        padding: 6px 12px;
        font-size: 12.5px;
    }

    /* People (PI Card & Team) */
    .pi-card {
        padding: 20px 14px;
        gap: 18px;
    }

    .pi-avatar-col .person-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }

    .pi-info-col h2 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .pi-title {
        font-size: 14.5px;
    }

    .pi-honor {
        font-size: 12.5px;
        display: block;
        margin-top: 2px;
    }

    .pi-affiliation-badges {
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
    }

    .pi-affil-logo {
        height: 26px;
    }

    .pi-website-btn {
        padding: 6px 12px;
        font-size: 12.5px;
    }

    .exp-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .exp-period {
        font-size: 12px;
        margin-top: 2px;
    }

    /* Recruitment Card (Join Us) */
    .recruitment {
        padding: 32px 16px !important;
    }

    .recruitment h2 {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }

    .recruitment p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 22px !important;
    }

    /* Footer */
    footer {
        padding: 40px 0 36px 0;
        margin-top: 48px;
    }

    .footer-logos {
        gap: 14px;
        margin-top: 10px;
        margin-bottom: 18px;
    }

    .footer-logo-xmu {
        height: 36px;
    }

    .footer-logo-college {
        height: 32px;
    }

    .footer-logo-divider {
        height: 22px;
    }

    footer p {
        font-size: 13px;
        line-height: 1.5;
    }
}
