.header-top {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    width: 97px;           /* kích thước logo */
    height: 97px;
    object-fit: cover;     /* giữ tỉ lệ ảnh, không méo */
    border-radius: 50%;    /* bo tròn, bỏ nếu muốn góc vuông */
    border: 2px solid rgba(100,200,255,0.3);
    box-shadow: 0 0 10px rgba(100,200,255,0.2);
}
.logo:hover {
    transform: scale(1.05);
    transition: transform 0.25s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #e8eef3;
    background: #0a0e27;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(100, 200, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 255, 165, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.network-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

.node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #64c8ff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
    animation: pulse 3s infinite ease-in-out;
}

.node.highlight {
    width: 8px;
    height: 8px;
    background: #06ffa5;
    box-shadow: 0 0 15px rgba(6, 255, 165, 0.6);
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.3);
        opacity: 1;
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
}

.header {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(10, 14, 39, 0.95) 100%);
    padding: 60px 40px;
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 2.8em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.title {
    font-size: 1.3em;
    color: #64c8ff;
    margin-bottom: 8px;
    font-weight: 400;
}

.affiliation {
    font-size: 1.1em;
    color: #a8b8c8;
    font-weight: 300;
}

nav {
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 200, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0;
}

.nav-item {
    color: #b8c8d8;
    text-decoration: none;
    padding: 18px 28px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.3px;
}

.nav-item:hover {
    color: #64c8ff;
    background: rgba(100, 200, 255, 0.05);
    border-bottom-color: #64c8ff;
}

.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 40px;
}

.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(100, 200, 255, 0.3);
    letter-spacing: -0.3px;
}

.intro-text {
    font-size: 1.05em;
    line-height: 1.8;
    color: #d0dae5;
    margin-bottom: 15px;
}

.intro-text a {
    color: #64c8ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(100, 200, 255, 0.3);
    transition: all 0.2s ease;
}

.intro-text a:hover {
    color: #06ffa5;
    border-bottom-color: #06ffa5;
}

.research-topics {
    margin: 20px 0;
}

.research-topics ul {
    list-style: none;
    margin: 15px 0;
}

.research-topics li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: #d0dae5;
}

.research-topics li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #64c8ff;
    font-size: 1.2em;
}

.research-topics a {
    color: #64c8ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.research-topics a:hover {
    color: #06ffa5;
}

.cv-subsection {
    margin: 35px 0;
}

.subsection-title {
    font-size: 1.3em;
    color: #64c8ff;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cv-entry {
    margin: 25px 0;
    padding-left: 0;
}

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.cv-position {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
}

.cv-date {
    font-size: 0.95em;
    color: #06ffa5;
    font-weight: 500;
}

.cv-organization {
    font-size: 1em;
    color: #b8c8d8;
    margin-bottom: 5px;
}

.cv-description {
    font-size: 0.95em;
    color: #a0b0c0;
    font-style: italic;
    line-height: 1.6;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.skill-group {
    background: rgba(100, 200, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(100, 200, 255, 0.15);
}

.skill-group h4 {
    color: #64c8ff;
    font-size: 1em;
    margin-bottom: 12px;
    font-weight: 500;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-item {
    background: rgba(100, 200, 255, 0.1);
    color: #e0eaf0;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid rgba(100, 200, 255, 0.2);
    transition: all 0.2s ease;
}

.skill-item:hover {
    background: rgba(100, 200, 255, 0.2);
    border-color: #64c8ff;
}

.news-list {
    margin: 20px 0;
}

.news-entry {
    padding: 18px 20px;
    margin: 15px 0;
    background: rgba(100, 200, 255, 0.03);
    border-left: 3px solid #64c8ff;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.news-entry:hover {
    background: rgba(100, 200, 255, 0.06);
    transform: translateX(3px);
}

.news-date {
    color: #06ffa5;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.news-content {
    color: #d0dae5;
    line-height: 1.6;
}

.news-content a {
    color: #64c8ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(100, 200, 255, 0.3);
    transition: all 0.2s ease;
}

.news-content a:hover {
    color: #06ffa5;
    border-bottom-color: #06ffa5;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d0dae5;
}

.contact-label {
    font-weight: 600;
    color: #64c8ff;
    min-width: 80px;
}

.contact-value a {
    color: #b8c8d8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-value a:hover {
    color: #64c8ff;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #708090;
    font-size: 0.9em;
    border-top: 1px solid rgba(100, 200, 255, 0.1);
    background: rgba(10, 14, 39, 0.5);
}

@media (max-width: 768px) {
    .header {
        padding: 40px 25px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .title {
        font-size: 1.1em;
    }
    
    .nav-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        padding: 14px 20px;
        font-size: 0.9em;
    }
    
    .main-content {
        padding: 35px 25px;
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    .cv-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
}
.certifications {
    margin: 35px 0;
}
.cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 12px;
}
.cert-item {
    background: rgba(100, 200, 255, 0.03);
    border-left: 3px solid #06ffa5;
    padding: 14px 16px;
    border-radius: 6px;
    transition: transform 0.18s ease, background 0.18s ease;
}
.cert-item:hover {
    transform: translateY(-4px);
    background: rgba(6, 255, 165, 0.03);
}
.cert-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}
.cert-org {
    color: #b8c8d8;
    font-size: 0.95em;
    margin-bottom: 8px;
}
.cert-meta {
    font-size: 0.9em;
    color: #a0b0c0;
    display: flex;
    gap: 10px;
    align-items: center;
}
.cert-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: #64c8ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(100,200,255,0.2);
}
.cert-link:hover {
    color: #06ffa5;
    border-bottom-color: #06ffa5;
}
@media (max-width: 480px) {
    .cert-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- Global & theme (phối màu hài hòa hơn) ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  /* Palette chính (dễ chỉnh) */
  --bg: #071029;                    /* deep navy background */
  --panel: rgba(9,18,34,0.92);      /* panel surface */
  --soft: rgba(var(--accent-rgba), 0.035); /* subtle radial overlays */

  --accent: #7DD3FF;                /* sky/cyan - primary accent */
  --accent-2: #4DE7B8;              /* mint/teal - secondary accent */
  --muted: #9FB3BD;                 /* muted text */
  --text: #E6F4F8;                  /* main text */
  --code-bg: #031421;               /* code block bg */

  /* RGB components for rgba usage */
  --accent-rgba: 125, 211, 255;     /* matches #7DD3FF */
  --accent2-rgba: 77, 231, 184;     /* matches #4DE7B8 */
  --panel-rgba: 13,27,42;
}

html,body{ height:100%; }
body{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height:1.7;
  color:var(--text);
  background:var(--bg);
  position:relative;
  overflow-x:hidden;
}

/* subtle radial backgrounds */
body::before{
  content:'';
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 20% 50%, rgba(var(--accent-rgba), 0.035) 0%, transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(var(--accent2-rgba), 0.02) 0%, transparent 30%);
  pointer-events:none;
  z-index:0;
}

/* ---------- decorative 'network' nodes (kept from original) ---------- */
.network-background{ position:fixed; inset:0; pointer-events:none; z-index:1; opacity:0.12; }
.node{ position:absolute; width:6px; height:6px; background:var(--accent); border-radius:50%;
  box-shadow:0 0 10px rgba(var(--accent-rgba),0.14); animation:pulse 3s infinite ease-in-out; }
.node.highlight{ width:8px; height:8px; background:var(--accent-2); box-shadow:0 0 15px rgba(var(--accent2-rgba),0.22); }
@keyframes pulse{ 0%,100%{ transform:scale(1); opacity:0.6 } 50%{ transform:scale(1.3); opacity:1 } }

/* ---------- Layout container ---------- */
.container{ max-width:900px; margin:20px auto; padding:0 16px; position:relative; z-index:2; }

/* ---------- Card helper ---------- */
.card{
  background: linear-gradient(180deg, rgba(var(--panel-rgba),0.86), rgba(10,14,39,0.9));
  border: 1px solid rgba(var(--accent-rgba), 0.06);
  border-radius:12px;
  padding:18px;
  box-shadow: 0 6px 22px rgba(3,6,12,0.6);
  backdrop-filter: blur(6px);
}

/* ---------- Post hero ---------- */
.post-hero{ margin:22px 0 16px; padding:24px; }
.post-title{
  font-size:1.9rem;
  font-weight:700;
  color:#fff;
  letter-spacing:-0.4px;
  margin-bottom:8px;
}
.post-meta{
  font-size:0.92rem;
  color:var(--muted);
  margin-bottom:12px;
}
.lead{
  color:#d7eaf0;
  font-size:1rem;
  line-height:1.6;
  margin-top:6px;
}

/* ---------- Collapsible TOC ---------- */
.toc-box {
  margin-bottom: 18px;
  overflow: hidden;
}

.toc-toggle {
  background: none;
  color: var(--accent);
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 6px;
  transition: color 0.2s ease;
}

.toc-toggle:hover {
  color: var(--accent-2);
}

.toc-toggle .chevron {
  transition: transform 0.2s ease;
}

.toc-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.toc-list.collapsible {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  margin-left: 16px;
  padding-left: 10px;
}

.toc-list.collapsible.show {
  max-height: 400px; /* đủ để hiển thị tất cả mục */
  opacity: 1;
  margin-top: 10px;
}

/* ---------- Table of contents ---------- */
.toc-box{ margin-bottom:18px; padding:14px; }
.toc-header{ display:flex; align-items:center; gap:12px; justify-content:space-between; }
.menu-toggle{
  display:none;
  background:none;
  border:1px solid rgba(var(--accent-rgba),0.08);
  color:var(--accent);
  padding:6px 10px;
  border-radius:8px;
  cursor:pointer;
}
.toc-list{ margin-top:10px; padding-left:18px; color:var(--text); }
.toc-list li{ margin:8px 0; }
.toc-list a{
  color:var(--accent);
  text-decoration:none;
  border-bottom:1px solid rgba(var(--accent-rgba),0.06);
  padding-bottom:2px;
}
.toc-list a:hover{ color:var(--accent-2); border-bottom-color: rgba(var(--accent2-rgba),0.12); }

/* ---------- Sections ---------- */
.section{ margin-bottom:22px; padding:18px; }
.section-title{
  font-size:1.25rem;
  font-weight:600;
  color:#fff;
  margin-bottom:12px;
  padding-bottom:8px;
  border-bottom:2px solid rgba(var(--accent-rgba),0.06);
}
.intro-text{ color:#d0dae5; margin-bottom:12px; line-height:1.7; }
.lead-small{ color:#dfeff0; margin:12px 0; font-weight:600; }

/* bullets */
.bullets{ margin:12px 0 16px 18px; color:#d0dae5; }
.bullets li{ margin:8px 0; }

/* ---------- Code blocks ---------- */
pre, code{
  background: var(--code-bg);
  color: #cfeef0;
  padding:12px;
  border-radius:8px;
  overflow:auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  font-size:0.95rem;
  line-height:1.45;
  border:1px solid rgba(var(--accent-rgba),0.04);
}
pre{ margin:12px 0; }

/* ---------- Reference text ---------- */
.ref{ color:var(--muted); line-height:1.7; }
.ref a{ color:var(--accent); text-decoration:none; border-bottom:1px solid rgba(var(--accent-rgba),0.06); }
.ref a:hover{ color:var(--accent-2); border-bottom-color: rgba(var(--accent2-rgba),0.12); }

/* ---------- back link ---------- */
.back-link-wrapper{ margin-top:12px; }
.back-link{
  display:inline-block;
  text-decoration:none;
  color:var(--accent);
  font-weight:600;
  padding:8px 12px;
  border-radius:8px;
  border:1px solid rgba(var(--accent-rgba),0.06);
  transition:all .18s ease;
}
.back-link:hover{ color:var(--accent-2); transform:translateY(-3px); background:rgba(var(--accent2-rgba),0.03); }

/* ---------- responsive ---------- */
@media (max-width: 768px){
  .container{ padding:0 12px; }
  .post-title{ font-size:1.5rem; }
  .menu-toggle{ display:block; }
  .toc-list{ display:none; }
  .toc-list.show{ display:block; margin-top:10px; }
  .card{ padding:14px; border-radius:10px; }
  pre, code{ font-size:0.9rem; }
}

/* ---------- utility: subtle highlight for hoverable entries ---------- */
.news-entry, .cert-item, .skill-item{
  transition: all .18s ease;
}
.news-entry:hover, .cert-item:hover, .skill-item:hover{ transform: translateY(-4px); box-shadow:0 8px 28px rgba(3,6,12,0.55); }

/* ---------- kept older site components (logo etc.) ---------- */
.header-top { display:flex; align-items:center; gap:25px; }
.logo{ width:97px; height:97px; object-fit:cover; border-radius:50%; border:2px solid rgba(var(--accent-rgba),0.12); box-shadow:0 0 10px rgba(var(--accent-rgba),0.08); }
.logo:hover{ transform:scale(1.05); transition:transform .25s ease; }

/* small helpers */
a{ color:var(--accent); }

/* ---------- Modal "tab nội bộ" ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,10,20,0.55);
  backdrop-filter: blur(4px) saturate(1.02);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10050; /* lớn hơn canvas và các phần khác */
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* modal card */
.modal-card {
  width: min(1100px, 96%);
  max-height: 86vh;
  overflow: hidden;
  display: flex;
  gap: 20px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(3,6,12,0.6);
  background: linear-gradient(180deg, rgba(var(--panel-rgba),0.96), rgba(10,14,39,0.96));
  border: 1px solid rgba(var(--accent-rgba),0.06);
  transform: translateY(8px);
  transition: transform 220ms ease;
}

/* when active, pop in slightly */
.modal-overlay.active .modal-card { transform: translateY(0); }

/* left (text) and right (image) */
.modal-left {
  flex: 1 1 60%;
  padding: 20px 22px;
  overflow: auto;
}

.modal-right {
  width: 360px;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-left: 1px solid rgba(var(--accent-rgba),0.03);
  background: linear-gradient(180deg, rgba(var(--accent-rgba),0.02), transparent);
}

/* image styling */
.modal-right img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(3,6,12,0.6);
  border: 1px solid rgba(var(--accent-rgba),0.04);
}

/* header inside modal */
.modal-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}
.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.modal-sub {
  color: #9fbcd1;
  font-size: 0.95rem;
}

/* close button */
.modal-close {
  background: transparent;
  border: 1px solid rgba(var(--accent-rgba),0.08);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.modal-close:hover {
  background: rgba(var(--accent-rgba),0.03);
  color: var(--accent-2);
}

/* blur main content when modal opens */
.container.blurred, .post-hero.blurred {
  filter: blur(6px) saturate(0.96);
  pointer-events: none;
  user-select: none;
}

/* responsive: stack on small screens */
@media (max-width: 800px) {
  .modal-card { flex-direction: column-reverse; width: 96%; }
  .modal-right { width: 100%; border-left: none; border-top: 1px solid rgba(var(--accent-rgba),0.03); padding: 12px; }
  .modal-left { padding: 14px; max-height: 60vh; overflow: auto; }
}

/* ---------- Collapsed timeline: show only first 3 entries ---------- */
/* Hide entries from 4th onward when section is limited */
.section.limited .timeline-entry:nth-of-type(n+4) {
  display: none;
}

/* When expanded, show all */
.section.expanded .timeline-entry {
  display: block;
}

/* Read-more button */
.readmore-btn {
  display: inline-block;
  margin: 14px auto 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(125,211,255,0.12);
  background: linear-gradient(180deg, rgba(125,211,255,0.03), transparent);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
  text-align: center;
}

/* Hover/active */
.readmore-btn:hover { transform: translateY(-2px); background: rgba(125,211,255,0.05); }
.readmore-btn:active { transform: translateY(0); }

/* center the button inside section */
.section .readmore-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* small screen adjustment */
@media (max-width: 480px) {
  .readmore-btn { padding: 8px 12px; font-size: 0.95rem; width: 90%; }
}

/* ---------- small UI helpers: model links ---------- */
.model-link {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px dashed rgba(var(--accent-rgba,125,211,255),0.12);
  padding-bottom: 2px;
}
.model-link:hover {
  color: var(--accent-2);
  border-bottom-color: rgba(var(--accent2-rgba,77,231,184),0.18);
  text-decoration: none;
}

/* ---------- timeline-list (animated show/hide) ---------- */
.timeline-list {
  overflow: hidden;
  transition: max-height 360ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
  max-height: none; /* JS will write inline max-height */
  opacity: 1;
}
.timeline-list.collapsed { opacity: 1; }
.timeline-entry { display: block; }

/* ---------- readmore button ---------- */
.readmore-wrapper { display:flex; justify-content:center; margin-top:10px; }
.readmore-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgba,125,211,255),0.12);
  background: linear-gradient(180deg, rgba(var(--accent-rgba,125,211,255),0.03), transparent);
  color: var(--accent); font-weight:600; cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.readmore-btn:hover { transform: translateY(-2px); background: rgba(var(--accent-rgba,125,211,255),0.05); }
.readmore-btn:active { transform: translateY(0); }

/* ---------- modal tweaks ---------- */
.modal-overlay { transition: opacity 220ms ease, backdrop-filter 220ms ease; }
.modal-card { transition: transform 220ms ease, box-shadow 220ms ease; transform: translateY(8px); }
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }

/* ensure modal image has subtle bg */
.modal-right { background: linear-gradient(180deg, rgba(var(--accent-rgba,125,211,255),0.02), transparent); }
.modal-right img { background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent); }

/* accessibility focus outline */
.model-link:focus, .readmore-btn:focus, .modal-close:focus { outline: 3px solid rgba(var(--accent-rgba,125,211,255),0.14); outline-offset: 3px; }

/* ---------- Make timeline entries look like cert cards ---------- */
.timeline-entry {
  display: block;
  background: linear-gradient(180deg, rgba(var(--panel-rgba,13,27,42),0.03), transparent);
  border-left: 3px solid rgba(var(--accent2-rgba,77,231,184),0.9); /* mint left border like cert */
  padding: 14px 16px;
  border-radius: 8px;
  transition: transform 320ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease, opacity 320ms ease;
  box-shadow: 0 4px 18px rgba(3,6,12,0.45);
  margin: 10px 0;
  color: var(--text);
}

/* inner title/meta match existing structure */
.timeline-entry .paper-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.timeline-entry .paper-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.timeline-entry .intro-text { color: #d0dae5; line-height:1.6; }

/* hover lift */
.timeline-entry:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(3,6,12,0.6);
}

/* ensure internal links/buttons visible */
.timeline-entry .model-link, .timeline-entry .btn-inline {
  display: inline-block;
  margin-left: 8px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- sliding + fade animation for entries (staggered) ---------- */
/* initial hidden transform for entries beyond the 3rd when collapsed */
.timeline-list.collapsed .timeline-entry:nth-child(n+4) {
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
}

/* when expanded: make all entries visible */
.timeline-list.expanded .timeline-entry {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* stagger delays for nicer effect (4th -> 11th) */
.timeline-list.expanded .timeline-entry:nth-child(4) { transition-delay: 40ms; }
.timeline-list.expanded .timeline-entry:nth-child(5) { transition-delay: 80ms; }
.timeline-list.expanded .timeline-entry:nth-child(6) { transition-delay: 120ms; }
.timeline-list.expanded .timeline-entry:nth-child(7) { transition-delay: 160ms; }
.timeline-list.expanded .timeline-entry:nth-child(8) { transition-delay: 200ms; }
.timeline-list.expanded .timeline-entry:nth-child(9) { transition-delay: 240ms; }
.timeline-list.expanded .timeline-entry:nth-child(10){ transition-delay: 280ms; }
.timeline-list.expanded .timeline-entry:nth-child(11){ transition-delay: 320ms; }

/* remove delays when collapsing to keep snappy */
.timeline-list.collapsed .timeline-entry { transition-delay: 0ms; }

/* small-screen tweaks */
@media (max-width: 800px) {
  .timeline-entry { padding: 12px; border-radius: 8px; }
}

/* keep readmore style (if not already present) */
.readmore-wrapper { display:flex; justify-content:center; margin-top:10px; }
.readmore-btn {
  padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(var(--accent-rgba,125,211,255),0.12);
  background: linear-gradient(180deg, rgba(var(--accent-rgba,125,211,255),0.03), transparent);
  color: var(--accent); font-weight:600; cursor:pointer;
}
.highlight-author {
    color: #FFD700; /* vàng gold */
    font-weight: 700;
}
/* Publications Section */
.publication-entry {
    margin-bottom: 25px;
}

.publication-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.publication-authors {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.highlight-author {
    font-weight: 700;
    color: var(--heading-color);
}

.publication-venue {
    font-size: 0.95rem;
    font-style: italic;
    color: #a0b0c0;
    margin-bottom: 10px;
}

.publication-description {
    font-size: 0.95rem;
    color: #a0b0c0;
    margin-bottom: 10px;
}

.publication-links {
    display: flex;
    gap: 15px;
}

.pub-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 3px 10px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
}

.pub-link:hover {
    background-color: var(--primary-color);
    color: #a0b0c0;
    text-decoration: none;
}

/* Yêu cầu: Bỏ gạch chân cho các link */
a {
    text-decoration: none;
    color: inherit; /* Giữ màu sắc của phần tử cha hoặc class định sẵn */
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8; /* Hiệu ứng nhẹ khi hover thay vì gạch chân */
}

/* Yêu cầu: Style cho gạch đầu dòng trong Project/Experience */
.cv-description-list {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 18px; /* Khoảng cách lề trái cho dấu chấm */
    list-style-type: disc; /* Dấu chấm tròn */
}

.cv-description-list li {
    margin-bottom: 4px;
    color: #cdd0d3; /* Màu xám đậm dễ đọc (tương đương gray-600) */
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Giữ màu xanh cho các link cụ thể nếu cần */
.cv-organization a, .pub-link, .cert-link, .contact-value a {
    color: #007bff;
}

html {
    scroll-behavior: smooth;
}