/*
  Khu Tin tức và Cẩm nang của WeDo (trang tĩnh). Dùng chung cho /tin-tuc/, các
  chuyên mục, bài tin và mục lục /cam-nang/. Màu xanh WeDo; logo Trường ĐH FPT
  luôn đứng trước logo WeDo. Ảnh trong /tin-tuc/anh/ là ảnh chụp thật của nhóm.
  Điểm nhấn: nhãn chuyên mục như tờ giấy note vàng dán trên bảng việc.
*/
:root {
  color-scheme: light;
  --muc: #0a1f44;      /* xanh mực: chữ đậm, nền dải tối */
  --xanh: #0055c7;     /* xanh WeDo */
  --troi: #e8f0ff;     /* xanh trời nhạt */
  --vang: #ffc93c;     /* giấy note */
  --chu: #111827;
  --phu: #5b6478;
  --vien: #dfe4ec;
  --nen: #f5f7fa;
  --bong: 0 18px 40px rgba(10, 31, 68, .12);
  --font: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; font-family: var(--font); font-size: 16px; color: var(--chu); background: #fff; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
a { color: var(--xanh); }
a:focus-visible, .nut:focus-visible { outline: 3px solid var(--vang); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.khung { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Đầu trang */
.dau { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); box-shadow: 0 1px 0 var(--vien); }
.dau .khung { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.cap-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.cap-logo img { height: 32px; width: auto; }
.cap-logo .vach { width: 1px; height: 26px; background: var(--vien); }
.menu { margin: 0 0 0 auto; display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.menu > li { position: relative; }
.menu > li > a { display: block; padding: 10px 12px; color: var(--chu); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; }
.menu > li > a:hover, .menu > li > a[aria-current="page"] { color: var(--xanh); border-bottom-color: var(--xanh); }
.menu .xo { position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-radius: 0 0 12px 12px; box-shadow: var(--bong); padding: 8px 0; list-style: none; margin: 0; display: none; }
.menu li:hover > .xo, .menu li:focus-within > .xo { display: block; }
.menu .xo a { display: block; padding: 10px 20px; color: var(--chu); text-decoration: none; font-size: 15px; }
.menu .xo a:hover { background: var(--nen); color: var(--xanh); }
.nut { display: inline-block; background: var(--xanh); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; padding: 12px 20px; border-radius: 10px; white-space: nowrap; }
.nut:hover { background: #0047a8; }
.nut.phu { background: #fff; color: var(--xanh); border: 1px solid var(--xanh); }
.nut.phu:hover { background: var(--troi); }
.dau .nut { padding: 9px 16px; font-size: 14px; }
@media (max-width: 900px) {
  .dau .khung { flex-wrap: wrap; gap: 6px 16px; padding-top: 10px; padding-bottom: 4px; }
  .menu { order: 3; width: 100%; min-width: 0; margin-left: 0; overflow-x: auto; }
  .menu .xo { display: none !important; }
  .dau .nut { margin-left: auto; }
  .cap-logo img { height: 26px; }
}

/* Nhãn giấy note: điểm nhấn của cả khu tin */
.note { display: inline-block; background: var(--vang); color: var(--muc); font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.3; padding: 5px 10px 6px; border-radius: 2px; transform: rotate(-2deg); box-shadow: 0 3px 6px rgba(10,31,68,.18); }
.ngay { color: var(--phu); font-size: 14px; font-variant-numeric: tabular-nums; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Đầu trang chính: ảnh thật toàn khổ */
.bia { position: relative; min-height: min(640px, 82vh); display: flex; align-items: flex-end; color: #fff; background: var(--muc); overflow: hidden; }
.bia > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.bia::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,31,68,.92) 0%, rgba(10,31,68,.62) 45%, rgba(10,31,68,.15) 100%), linear-gradient(0deg, rgba(10,31,68,.7) 0%, rgba(10,31,68,0) 45%); }
.bia .khung { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: end; padding-top: 96px; padding-bottom: 56px; }
.bia h1 { margin: 14px 0 14px; font-size: 56px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; max-width: 15ch; text-wrap: balance; }
.bia p { margin: 0; font-size: 18px; color: #d6e2f5; max-width: 40ch; }
.bia .chu-anh { margin-top: 22px; font-size: 13px; color: #a9bbd8; }
.moi-nhat { position: relative; display: block; background: #fff; color: var(--chu); text-decoration: none; border-radius: 4px; padding: 26px 24px 22px; box-shadow: 0 24px 50px rgba(0,0,0,.28); transform: rotate(1deg); transition: transform .25s; }
.moi-nhat::before { content: ""; position: absolute; top: -10px; left: 50%; width: 92px; height: 22px; margin-left: -46px; background: rgba(255,201,60,.92); transform: rotate(-3deg); }
.moi-nhat:hover { transform: rotate(0deg) translateY(-3px); }
.moi-nhat .ngay { display: block; margin-bottom: 6px; }
.moi-nhat strong { display: block; font-size: 20px; line-height: 1.35; font-weight: 700; color: var(--muc); }
.moi-nhat span.doc { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--xanh); }
@media (max-width: 860px) {
  .bia { min-height: 0; }
  .bia .khung { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 140px; padding-bottom: 36px; }
  .bia h1 { font-size: 38px; line-height: 1.18; }
  .bia p { font-size: 16px; }
  .moi-nhat { transform: none; }
}

/* Tiêu đề mục */
.tieu-de-muc { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 64px 0 24px; padding-bottom: 14px; border-bottom: 2px solid var(--muc); }
.tieu-de-muc h2 { margin: 0; font-size: 32px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; color: var(--muc); }
.tieu-de-muc h2 span { color: var(--xanh); }
.tieu-de-muc a { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.tieu-de-muc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .tieu-de-muc { margin-top: 48px; } .tieu-de-muc h2 { font-size: 26px; } }

/* Tin nổi bật + đọc nhanh */
.trang-nhat { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; }
.noi-bat { display: block; text-decoration: none; color: inherit; }
.anh-bai { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--nen); }
.anh-bai img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.anh-bai .note { position: absolute; left: 14px; top: 14px; }
.noi-bat:hover .anh-bai img, .the-bai:hover .anh-bai img { transform: scale(1.03); }
.noi-bat h3 { margin: 18px 0 10px; color: var(--muc); font-size: 30px; line-height: 1.28; font-weight: 700; letter-spacing: -.015em; }
.noi-bat:hover h3 { color: var(--xanh); }
.noi-bat p { color: var(--phu); font-size: 17px; margin: 0; }
.doc-nhanh { border-left: 1px solid var(--vien); padding-left: 28px; }
.doc-nhanh h2 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--phu); }
.dn { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--vien); text-decoration: none; color: inherit; }
.dn:last-child { border-bottom: 0; }
.dn img { width: 112px; height: 74px; object-fit: cover; border-radius: 8px; }
.dn strong { display: block; font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--muc); margin-top: 2px; }
.dn:hover strong { color: var(--xanh); }
@media (max-width: 900px) {
  .trang-nhat { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .doc-nhanh { border-left: 0; padding-left: 0; }
  .noi-bat h3 { font-size: 24px; }
}

/* Dòng thời gian: các cột mốc thật, xếp theo ngày */
.moc { margin-top: 64px; background: var(--troi); }
.moc .khung { padding-top: 36px; padding-bottom: 36px; }
.moc h2 { margin: 0 0 20px; font-size: 24px; line-height: 1.35; font-weight: 600; color: var(--muc); }
.moc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 0; overflow-x: auto; position: relative; }
.moc li { position: relative; padding: 26px 18px 4px 0; }
.moc li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: #b9cdf0; }
.moc li::after { content: ""; position: absolute; top: 2px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--xanh); box-shadow: 0 0 0 4px var(--troi); }
.moc li:last-child::after { background: var(--vang); box-shadow: 0 0 0 4px var(--troi), 0 0 0 5px var(--muc); }
.moc a { text-decoration: none; color: inherit; display: block; }
.moc .ngay { display: block; font-weight: 600; color: var(--xanh); }
.moc strong { display: block; font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--muc); }
.moc a:hover strong { text-decoration: underline; }

/* Lưới bài */
.luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.the-bai { text-decoration: none; color: inherit; display: block; }
.the-bai .meta { margin-top: 14px; }
.the-bai h3 { margin: 8px 0 6px; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--muc); }
.the-bai:hover h3 { color: var(--xanh); }
.the-bai p { margin: 0; color: var(--phu); font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) { .luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .luoi { grid-template-columns: minmax(0, 1fr); } }
.giua { text-align: center; margin: 40px 0 8px; }

/* Dải cẩm nang: nền xanh mực, ảnh thật bên trái */
.dai-cn { margin-top: 72px; background: var(--muc); color: #fff; }
.dai-cn .khung { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; padding-top: 56px; padding-bottom: 56px; align-items: start; }
.dai-cn figure { margin: 0; }
.dai-cn figure img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.dai-cn figcaption { margin-top: 8px; font-size: 13px; color: #a9bbd8; }
.dai-cn h2 { margin: 10px 0 10px; font-size: 32px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.dai-cn > .khung > div > p { color: #c9d6ea; margin: 0 0 24px; max-width: 52ch; }
.dai-cn .nut.phu { background: transparent; color: #fff; border-color: #fff; }
.dai-cn .nut.phu:hover { background: rgba(255,255,255,.1); }
@media (max-width: 860px) { .dai-cn .khung { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 40px; } .dai-cn h2 { font-size: 26px; } }

/* Thẻ cẩm nang */
.cam-nang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.the-cn { display: block; background: #fff; color: var(--chu); border: 1px solid var(--vien); border-radius: 12px; padding: 18px 20px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.the-cn:hover { border-color: var(--xanh); box-shadow: 0 8px 22px rgba(0,85,199,.14); transform: translateY(-2px); }
.the-cn h3 { margin: 10px 0 6px; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--muc); }
.the-cn p { margin: 0; color: var(--phu); font-size: 14px; line-height: 1.55; }
.the-cn.sap { background: transparent; border: 1px dashed rgba(255,255,255,.35); color: #c9d6ea; }
.the-cn.sap h3 { color: #fff; font-size: 16px; font-weight: 500; }
.the-cn.sap .nhan-sap { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--vang); }
.trang-cn .the-cn.sap { background: var(--nen); border-color: var(--vien); }
.trang-cn .the-cn.sap h3 { color: var(--muc); }
.trang-cn .the-cn.sap .nhan-sap { color: var(--phu); }
.trang-cn .cam-nang { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .trang-cn .cam-nang { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cam-nang, .trang-cn .cam-nang { grid-template-columns: minmax(0, 1fr); } }

/* Đầu trang chuyên mục / cẩm nang */
.dau-muc { background: var(--troi); }
.dau-muc .khung { padding-top: 40px; padding-bottom: 36px; }
.dau-muc h1 { margin: 10px 0 8px; font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--muc); }
.dau-muc p { margin: 0; color: var(--phu); max-width: 62ch; font-size: 17px; }
@media (max-width: 600px) { .dau-muc h1 { font-size: 30px; } }
.duong-dan { font-size: 14px; color: var(--phu); margin: 0; }
.duong-dan a { color: var(--phu); text-decoration: none; }
.duong-dan a:hover { color: var(--xanh); text-decoration: underline; }
.trang-muc .luoi { margin-top: 40px; }

/* Bài tin */
.dau-bai { max-width: 860px; margin: 0 auto; padding: 32px 20px 0; }
.dau-bai .meta { margin-top: 18px; }
.dau-bai h1 { font-size: 40px; line-height: 1.22; letter-spacing: -.02em; color: var(--muc); margin: 12px 0 14px; font-weight: 700; }
.dau-bai .mo-dau { font-size: 19px; line-height: 1.6; color: #374151; margin: 0; }
.anh-lon { max-width: 1100px; margin: 32px auto 0; padding: 0 20px; }
.anh-lon img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }
.anh-lon figcaption { max-width: 820px; margin: 10px auto 0; color: var(--phu); font-size: 14px; }
.bai { max-width: 740px; margin: 0 auto; padding: 8px 20px 0; }
.bai h2 { font-size: 24px; line-height: 1.35; font-weight: 600; color: var(--muc); margin: 36px 0 10px; }
.bai p, .bai li { font-size: 17px; line-height: 1.75; }
.bai ul { padding-left: 22px; }
.bai li { margin-bottom: 8px; }
.bai li::marker { color: var(--xanh); }
.hop { position: relative; background: var(--troi); border-radius: 12px; padding: 24px 24px 22px; margin: 40px 0 0; }
.hop p { margin: 0 0 14px; }
@media (max-width: 600px) { .dau-bai h1 { font-size: 30px; } .dau-bai .mo-dau { font-size: 17px; } .anh-lon img { aspect-ratio: 16 / 10; } }

/* Chân trang */
.chan { margin-top: 80px; background: var(--muc); color: #c9d3e3; }
.dai-cn + .chan { margin-top: 0; border-top: 1px solid rgba(255,255,255,.1); }
.chan .khung { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.chan strong { color: #fff; font-weight: 600; }
.chan a { color: #fff; text-decoration: none; }
.chan a:hover { text-decoration: underline; }
.chan ul { list-style: none; padding: 0; margin: 8px 0 0; }
.chan li { margin-bottom: 6px; font-size: 15px; }
.chan .the-trang { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 8px 12px; }
.chan .the-trang img { height: 26px; width: auto; }
.chan .the-trang .vach { width: 1px; height: 22px; background: var(--vien); }
.chan .nho { font-size: 14px; margin-top: 14px; line-height: 1.55; }
@media (max-width: 760px) { .chan .khung { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .noi-bat:hover .anh-bai img, .the-bai:hover .anh-bai img, .the-cn:hover, .moi-nhat:hover { transform: none; }
  .moi-nhat:hover { transform: rotate(1deg); }
}
