/* Trang Về Nam (dùng kèm ../bai-viet/bai-viet.css) */
:root{ --shadow-deep:rgba(50,50,93,.25) 0 50px 100px -20px, rgba(0,0,0,.3) 0 30px 60px -30px; --shadow-card-hover:rgba(50,50,93,.22) 0 13px 27px -5px, rgba(0,0,0,.16) 0 8px 16px -8px; --surface-subtle:#F8FAFD; }
.ve-nam{ padding:24px 0 96px; }
.ve-nam .back{ margin-bottom:24px; }
.ph{ position:relative; overflow:hidden; border-radius:var(--r-md); background:var(--surface-subtle); margin:0; }
.ph img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.h-section{ font-size:clamp(28px, 5vw, 44px); line-height:1.12; letter-spacing:-0.02em; font-weight:300; margin:0; }
.h-section .soft{ display:block; color:var(--muted); margin-top:10px; font-size:.7em; }
.lead{ font-size:18px; color:var(--text-2); }
.body{ color:var(--text-2); }
.label{ font-size:19px; font-weight:600; margin:0 0 12px; }
.bullets{ list-style:none; margin:0; padding:0; }
.bullets li{ position:relative; padding-left:18px; margin-bottom:8px; color:var(--text-2); }
.bullets li::before{ content:""; position:absolute; left:0; top:.75em; width:6px; height:1px; background:var(--primary); }
/* ---------- Về Nam ---------- */
.about{ display:grid; gap:40px; }
/* Chân dung: tấm nền gradient lệch phía sau + bóng sâu */
.portrait-wrap{ position:relative; max-width:340px; margin-right:14px; }
.portrait-wrap::before{
  content:""; position:absolute; inset:14px -14px -14px 14px; border-radius:var(--r-md);
  background:linear-gradient(135deg, rgba(127,125,252,.35), rgba(244,75,204,.22) 60%, rgba(255,207,94,.25));
}
.portrait{ aspect-ratio:4 / 5; max-width:340px; width:100%; background:var(--dark); box-shadow:var(--shadow-deep); }
.portrait img{ object-position:50% 20%; }
.award{ margin:40px 0 0; max-width:560px; }
.award .ph{ aspect-ratio:4 / 3; box-shadow:var(--shadow-card-hover); }
.award figcaption{ margin-top:10px; font-size:14px; color:var(--muted); }
.skills{ display:grid; gap:24px; margin-top:32px; }
@media (min-width:768px){ .skills{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (min-width:900px){ .about{ grid-template-columns:minmax(0,4fr) minmax(0,8fr); gap:64px; } }
.vn-projects{ display:inline-flex; align-items:center; gap:8px; margin-top:28px; min-height:46px; padding:10px 22px; border-radius:999px; color:#fff; font-weight:500; background:linear-gradient(120deg, #533AFD 0%, #D8558F 100%); }
.vn-projects:hover{ text-decoration:none; filter:brightness(1.08); }

  /* Xem ảnh: thư viện vuốt ngang */
  .gl{ position:fixed; inset:0; z-index:200; background:rgba(10,12,30,.94); }
  .gl-track{ position:absolute; inset:0; display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .gl-track::-webkit-scrollbar{ display:none; }
  .gl.zoomed .gl-track{ overflow:hidden; }
  .gl-slide{ flex:0 0 100%; height:100%; scroll-snap-align:center; overflow:hidden; display:flex; align-items:center; justify-content:center; }
  .gl-slide img{ display:block; max-width:100%; max-height:100%; user-select:none; -webkit-user-select:none; cursor:zoom-in; }
  .gl-slide.z{ overflow:auto; display:block; -webkit-overflow-scrolling:touch; }
  .gl-slide.z img{ max-width:none; max-height:none; width:240%; cursor:zoom-out; }
  @media (min-width:900px){ .gl-slide.z img{ width:160%; } }
  .gl-x{ position:fixed; top:14px; right:14px; z-index:3; width:44px; height:44px; border-radius:50%; border:0; background:rgba(255,255,255,.92); color:#111; font-size:22px; line-height:1; cursor:pointer; }
  .gl-n{ position:fixed; left:50%; bottom:18px; transform:translateX(-50%); z-index:3; padding:6px 14px; border-radius:999px; background:rgba(255,255,255,.16); color:#fff; font-size:13px; pointer-events:none; }
  .gl-nav{ position:fixed; top:50%; transform:translateY(-50%); z-index:3; width:44px; height:44px; border:0; background:none; color:rgba(255,255,255,.55); cursor:pointer; display:grid; place-items:center; }
  .gl-nav svg{ width:30px; height:30px; } .gl-prev{ left:6px; } .gl-next{ right:6px; }
  .gl.zoomed .gl-nav{ display:none; }
  .sc-sub{ display:block !important; flex:1; min-width:0; }
  .sc-go{ display:inline-block !important; vertical-align:-3px; margin-left:2px; }
  .sc-card .sc-go{ position:static !important; transform:none !important; font-size:inherit; color:#B4BAC6 !important; }

/* ---------- Các mục mới trang Về Nam ---------- */
.vn-sec{ margin-top:56px; }
.vn-sec > h2{ display:flex; align-items:center; gap:12px; font-size:clamp(22px, 3.4vw, 28px); font-weight:600; letter-spacing:-0.015em; margin:0 0 6px; }
.vn-sec > .vn-hint{ margin:0 0 18px; font-size:16px; color:var(--muted); }
.vn-sec p{ color:var(--text-2); }
.edu{ list-style:none; margin:20px 0 0; padding:0; display:grid; gap:10px; }
.edu li{ display:flex; gap:12px; align-items:center; color:var(--text); font-weight:500; }
.edu li .ico{ width:36px; height:36px; }
.gal{ display:grid; grid-template-columns:repeat(6, 1fr); grid-auto-rows:88px; gap:8px; }
@media (min-width:760px){ .gal{ grid-auto-rows:140px; gap:12px; } }
.gal figure{ margin:0; border-radius:12px; overflow:hidden; background:#EEF0F6; cursor:zoom-in; }
.gal img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s; }
.gal figure:hover img{ transform:scale(1.04); }
.g-a{ grid-column:span 4; grid-row:span 2; } .g-b{ grid-column:span 2; grid-row:span 2; } .g-c{ grid-column:span 3; grid-row:span 2; }
.g-d{ grid-column:span 2; grid-row:span 1; } .g-e{ grid-column:span 6; grid-row:span 2; } .g-f{ grid-column:span 2; grid-row:span 3; } .g-g{ grid-column:span 4; grid-row:span 3; }
.links{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.links a{ display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:var(--r-md); color:#fff; box-shadow:0 16px 32px -20px rgba(60,30,140,.55); }
.links a:hover{ text-decoration:none; filter:brightness(1.06); }
.links b{ display:block; font-size:17px; font-weight:600; }
.links span.t{ flex:1; min-width:0; }
.links small{ display:block; font-size:14px; color:rgba(255,255,255,.85); margin-top:2px; }
.links .ico{ background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.45); color:#fff; }
.links .go{ font-size:22px; opacity:.85; }
.links li:nth-child(1) a{ background:linear-gradient(170deg, #4A36D8, #8A48DC); }
.links li:nth-child(2) a{ background:linear-gradient(170deg, #8A48DC, #D0539A); }
.links li:nth-child(3) a{ background:linear-gradient(170deg, #D0539A, #F47A55); }
.links li:nth-child(4) a{ background:linear-gradient(170deg, #4C78E0, #23336E); }
.books{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
@media (min-width:760px){ .books{ grid-template-columns:repeat(3, 1fr); } }
.books li{ padding:18px; border-radius:var(--r-md); border:1px solid #ECE9F8; background:linear-gradient(160deg, #F7F6FF, #fff 60%, #FDF4F9); }
.books .ico{ margin-bottom:10px; }
.books b{ display:block; font-size:17px; color:var(--text); }
.books span{ display:block; margin-top:4px; font-size:14px; color:var(--muted); }
.vn-sec > h2 .ico{ margin-right:0 !important; }
.gal-h{ margin:26px 0 10px; font-size:17px; font-weight:600; color:var(--text); }
.gal2{ grid-template-columns:repeat(2, 1fr) !important; grid-auto-rows:150px !important; }
@media (min-width:760px){ .gal2{ grid-template-columns:repeat(4, 1fr) !important; grid-auto-rows:170px !important; } }
.gal2 figure:first-child{ grid-column:span 2; grid-row:span 2; }
.gal2 figure:nth-child(5n+4){ grid-row:span 2; }
.gal2 img{ object-fit:cover; }
.gal2{ grid-auto-flow:dense; }
.gal-p{ margin:-4px 0 10px; font-size:15px; }
/* Giới thiệu dạng gạch đầu dòng */
.intro{ list-style:none; margin:20px 0 0; padding:0; display:grid; gap:10px; }
.intro li{ position:relative; padding-left:20px; font-size:17px; line-height:1.6; color:var(--text-2); }
.intro li::before{ content:""; position:absolute; left:2px; top:.72em; width:7px; height:7px; border-radius:50%; background:linear-gradient(135deg, #533AFD, #E0569B); }
.intro li:first-child{ color:var(--text); font-weight:600; }
/* Nét mờ ngăn các khối */
.vn-sec{ border-top:1px solid rgba(83,58,253,.12); padding-top:40px; margin-top:48px !important; }
/* Ảnh: một dải vuốt ngang, không bày hết */
.gal, .gal2{ display:flex !important; gap:10px !important; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding-bottom:4px; margin-right:-16px; padding-right:16px; }
.gal::-webkit-scrollbar{ display:none; }
.gal figure, .gal2 figure{ flex:0 0 78%; height:230px; scroll-snap-align:start; grid-column:auto !important; grid-row:auto !important; }
@media (min-width:760px){ .gal figure, .gal2 figure{ flex-basis:40%; height:300px; } }
.links li:nth-child(5) a{ background:linear-gradient(170deg, #23336E, #4A36D8); }
/* Sách sắp ra: icon bên trái, chữ bên phải */
.books li{ display:flex; gap:14px; align-items:flex-start; }
.books .ico{ flex:none; margin:0 !important; width:40px; height:40px; display:grid; place-items:center; }
.books .ico svg{ width:21px; height:21px; }
.books em{ display:inline-block; margin-top:8px; padding:3px 10px; border-radius:999px; font-style:normal; font-size:12.5px; font-weight:600; color:#4A36D8; background:rgba(83,58,253,.08); }
.links b{ font-size:16px !important; white-space:nowrap; } .links a{ gap:12px !important; padding:16px 14px 16px 16px !important; }
.vn-name{ font-size:clamp(30px, 6vw, 44px) !important; font-weight:600 !important; letter-spacing:-0.02em; }
.intro li:first-child{ color:var(--text-2) !important; font-weight:400 !important; }
.vn-name{ font-size:clamp(28px, 7.4vw, 44px) !important; }
.vn-name{ font-size:clamp(30px, 8vw, 44px) !important; white-space:nowrap; }
.vn-edu{ margin:8px 0 0; font-size:15px; line-height:1.55; color:var(--muted); }
.vn-proj{ margin-top:28px; }
.vn-proj .label{ margin-bottom:12px; }
.vn-more{ display:inline-flex; align-items:center; gap:6px; margin-top:12px; font-weight:600; color:var(--primary); }
/* Dải ảnh: ảnh đầu to, các ảnh sau nhỏ xếp 2 tầng bên cạnh, gợi ý còn nhiều ảnh */
.gal, .gal2{ display:grid !important; grid-auto-flow:column; grid-template-rows:repeat(2, 108px); grid-auto-columns:108px; gap:8px !important; overflow-x:auto; overflow-y:hidden; }
.gal figure, .gal2 figure{ height:auto !important; flex:none !important; width:auto; border-radius:10px; }
.gal figure:first-child, .gal2 figure:first-child{ grid-row:1 / span 2 !important; grid-column:auto / span 2 !important; width:auto; }
.gal > figure:first-child{ grid-column-end:span 3 !important; }
@media (min-width:760px){ .gal, .gal2{ grid-template-rows:repeat(2, 150px); grid-auto-columns:150px; } }
.gal figure:not(:first-child){ grid-column:auto !important; grid-row:auto !important; }
.gal > figure:first-child{ grid-column:auto / span 2 !important; grid-row:1 / span 2 !important; }
.gal, .gal2{ grid-template-columns:none !important; grid-auto-columns:108px !important; } @media (min-width:760px){ .gal, .gal2{ grid-auto-columns:150px !important; } }
/* Dải ảnh: 1 hàng, ảnh nhỏ dần (to → 1/5 → 1/10, bị mép cắt) để gợi ý còn ảnh */
.gal, .gal2{ display:flex !important; grid-template-rows:none !important; gap:8px !important; overflow:hidden !important; margin-right:-16px; padding-right:0; height:240px; }
.gal figure, .gal2 figure, .gal figure:first-child, .gal2 figure:first-child{ grid-row:auto !important; grid-column:auto !important; height:100% !important; flex:0 0 auto !important; border-radius:12px; }
.gal figure:nth-child(1){ width:70% !important; }
.gal figure:nth-child(2){ width:14% !important; }
.gal figure:nth-child(n+3){ width:9% !important; }
.gal figure:nth-child(n+5){ display:none; }
@media (min-width:760px){ .gal, .gal2{ height:340px; } }
.gal figure:nth-child(3){ width:16% !important; } .gal figure:nth-child(n+4){ display:none !important; } .gal{ margin-right:-16px !important; }
.vn-edu{ font-size:16px !important; color:var(--text-2) !important; white-space:nowrap; }
@media (max-width:379px){ .vn-edu{ font-size:14.5px !important; } }
.intro li::before{ background:currentColor !important; width:5px !important; height:5px !important; top:.78em !important; }
.bullets li{ padding-left:20px !important; }
.bullets li::before{ width:5px !important; height:5px !important; border-radius:50%; background:var(--text-2) !important; top:.7em !important; left:2px !important; }
.award2 .gal figure:nth-child(2){ width:28% !important; }
.vn-cap{ margin:10px 0 0; font-size:14px; color:var(--muted); }
.vn-edu2{ margin-top:12px !important; } .vn-edu2 + .intro{ margin-top:10px !important; }
.award2 .gal figure:nth-child(2){ width:14% !important; }
