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

body {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    line-height: 1.7;
    background: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Navbar ── */
.navbar {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 100;
    padding: 0.85rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-weight: 700;
    font-size: 0.95rem;
    background: #1a365d;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2b6cb0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #4a5568;
    padding: 0.25rem;
}

/* ── Page header (inner pages) ── */
.page-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
}

.page-header p {
    color: #bee3f8;
    font-size: 0.95rem;
}

/* ── Hero ── */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.hero-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #90cdf4;
    margin-bottom: 0.2rem;
}

.hero-affil {
    font-size: 0.95rem;
    color: #bee3f8;
    margin-bottom: 1.25rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-photo-wrap {
    flex-shrink: 0;
}

.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    display: block;
}

.hero-photo-placeholder {
    display: none;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 4px solid rgba(255,255,255,0.3);
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

.hero-bio {
    font-size: 0.97rem;
    color: #e2e8f0;
    max-width: 580px;
    margin-bottom: 2rem;
    line-height: 1.85;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.83rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* ── Sections ── */
.section {
    padding: 4rem 0;
}

.bg-light {
    background: #f7fafc;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a365d;
    display: inline-block;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid #2b6cb0;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: #718096;
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* ── About ── */
.about-content p {
    color: #4a5568;
    margin-bottom: 1rem;
}

.research-interests {
    margin-top: 2rem;
}

.research-interests h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.85rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 0.28rem 0.75rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid #bee3f8;
}

/* ── Timeline ── */
.timeline {
    position: relative;
    padding-left: 1.75rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.42rem;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.42rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2.5px solid #2b6cb0;
    border-radius: 50%;
}

.timeline-dot.current {
    background: #2b6cb0;
}

.timeline-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.2rem;
}

.timeline-content .org {
    color: #4a5568;
    font-size: 0.93rem;
    margin-bottom: 0.3rem;
}

.timeline-content .period {
    display: inline-block;
    font-size: 0.78rem;
    color: #718096;
    background: #edf2f7;
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
    margin-bottom: 0.3rem;
}

.timeline-content .period.current-badge {
    background: #c6f6d5;
    color: #276749;
}

.timeline-content .desc {
    font-size: 0.87rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* ── Publications ── */
.pub-metrics {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.metric-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.metric-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a365d;
    line-height: 1;
}

.metric-lbl {
    font-size: 0.72rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
}

.scholar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2b6cb0;
    text-decoration: none;
    border: 1.5px solid #bee3f8;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.scholar-link:hover {
    background: #ebf8ff;
}

.pub-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.pub-tab {
    background: none;
    border: none;
    padding: 0.6rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 0;
    transition: color 0.2s, border-color 0.2s;
    font-family: 'Inter', sans-serif;
}

.pub-tab:hover {
    color: #2b6cb0;
}

.pub-tab.active {
    color: #2b6cb0;
    border-bottom-color: #2b6cb0;
}

.pub-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #4a5568;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 100px;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.pub-tab.active .pub-count {
    background: #bee3f8;
    color: #2b6cb0;
}

.pub-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pub-section.hidden {
    display: none;
}

.pub-item {
    display: flex;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.pub-item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    border-color: #bee3f8;
}

.pub-year {
    font-weight: 700;
    color: #2b6cb0;
    font-size: 0.83rem;
    min-width: 36px;
    padding-top: 0.2rem;
    flex-shrink: 0;
}

.pub-title {
    color: #2d3748;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.pub-authors {
    color: #718096;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.pub-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.venue {
    font-size: 0.79rem;
    color: #4a5568;
    font-style: italic;
}

.cite-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #276749;
    background: #c6f6d5;
    padding: 0.1rem 0.5rem;
    border-radius: 100px;
    font-style: normal;
}

/* ── CV button ── */
.btn-cv {
    border: 1.5px solid rgba(255,255,255,0.45);
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.btn-cv:hover {
    background: rgba(255,255,255,0.22);
    border-color: #fff;
}

/* ── Research grid ── */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.research-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.research-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #bee3f8;
}

.research-card-icon {
    width: 44px;
    height: 44px;
    background: #ebf8ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b6cb0;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.research-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.6rem;
}

.research-card p {
    font-size: 0.88rem;
    color: #4a5568;
    line-height: 1.65;
}

/* ── Collaborators ── */
.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.collab-item {
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.collab-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.2rem;
}

.collab-item p {
    font-size: 0.8rem;
    color: #718096;
}

/* ── Courses ── */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.2s;
}

.course-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.course-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.course-header h3 {
    font-size: 0.97rem;
    font-weight: 600;
    color: #1a365d;
}

.course-badge {
    font-size: 0.72rem;
    font-weight: 600;
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
    border: 1px solid #bee3f8;
}

.course-item p {
    font-size: 0.88rem;
    color: #4a5568;
    line-height: 1.65;
}

.course-code {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2b6cb0;
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.course-period {
    font-size: 0.82rem;
    color: #718096;
    margin-top: 0.35rem;
}

.course-period i {
    margin-right: 0.3rem;
    color: #a0aec0;
}

/* ── Team ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.team-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.team-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    border-color: #bee3f8;
}

.placeholder-card {
<<<<<<< HEAD
=======
    opacity: 1;
>>>>>>> f7837cabf7563c37d65b3dfecb92f0803a7d6af5
    border-style: dashed;
}

.current-member-card {
    border-left: 4px solid #2b6cb0;
    border-style: solid;
}

.current-member-card .team-info h3 {
    font-weight: 700;
    font-size: 1rem;
    color: #1a365d;
}

.team-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #a0aec0;
    flex-shrink: 0;
}

.team-avatar-initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ebf8ff;
    color: #2b6cb0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.team-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.2rem;
}

.team-role {
    font-size: 0.78rem;
    color: #718096;
    margin-bottom: 0.4rem;
}

.team-desc {
    font-size: 0.82rem;
    color: #4a5568;
    line-height: 1.5;
}

.student-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a365d;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e2e8f0;
}

.student-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.student-table th {
    text-align: left;
    padding: 0.75rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #718096;
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
}

.student-table th:first-child { border-radius: 8px 0 0 0; }
.student-table th:last-child  { border-radius: 0 8px 0 0; }

.student-table td {
    padding: 0.7rem 1.25rem;
    color: #2d3748;
    border-bottom: 1px solid #f0f4f8;
}

.student-table tbody tr:last-child td { border-bottom: none; }

.student-table tbody tr:hover td {
    background: #f7fafc;
}

.student-table td:first-child {
    font-weight: 500;
}

.student-table td:nth-child(2) {
    color: #718096;
    font-size: 0.82rem;
    white-space: nowrap;
    padding-left: 2rem;
    padding-right: 2rem;
}

.student-table td:nth-child(3) {
    color: #4a5568;
    font-size: 0.82rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    background: #2b6cb0;
    color: #fff;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2c5282;
}

/* ── Achievements ── */
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.achievement-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    border-color: #bee3f8;
}

.achievement-icon {
    width: 42px;
    height: 42px;
    background: #ebf8ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2b6cb0;
    font-size: 1.1rem;
}

.achievement-body h3 {
    font-size: 0.97rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.2rem;
}

.achieve-date {
    font-size: 0.78rem;
    color: #718096;
    margin-bottom: 0.3rem;
}

.achievement-body p {
    font-size: 0.88rem;
    color: #4a5568;
    line-height: 1.6;
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-item:hover {
    border-color: #bee3f8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.contact-item i {
    font-size: 1.4rem;
    color: #2b6cb0;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-item p,
.contact-item a {
    font-size: 0.88rem;
    color: #2d3748;
    text-decoration: none;
    line-height: 1.5;
}

.contact-item a:hover {
    color: #2b6cb0;
}

/* ── Footer ── */
footer {
    background: #1a365d;
    color: #a0aec0;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.83rem;
}

footer a {
    color: #90cdf4;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 2rem 1.5rem;
        border-bottom: 1px solid #e2e8f0;
        gap: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 1.5rem;
    }

    .hero-photo, .hero-photo-placeholder {
        width: 120px;
        height: 120px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .pub-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pub-year {
        font-size: 0.78rem;
    }
}
