/* bao.buihuubao.vn — web cá nhân Bùi Hữu Bảo (11/11/2026). Bố cục học từ dinhthuongaia.com, chữ + ảnh của anh Bảo. */
:root {
  --do: #E0313E; --do-dam: #C02030; --do-nhat: #FDECEE; --vang: #FFC23C;
  --den: #1D2026; --chu: #23262D; --phu: #5F6673; --vien: #E9E9EE;
  --nen-hong: #FBF3F3; --nen-xam: #F6F7F9; --trang: #fff;
  --bong: 0 10px 30px rgba(29, 32, 38, .08); --bong-dam: 0 18px 44px rgba(29, 32, 38, .14);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.65 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--chu); background: var(--trang); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
img { height: auto; }   /* thuộc tính height trong thẻ <img> chỉ để giữ chỗ, không được ép khung cao cứng */
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--den); line-height: 1.22; letter-spacing: -.01em; }
p { margin: 0; }
.khung { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* Nút */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.nut:hover { transform: translateY(-2px); }
.nut-do { background: var(--do); color: #fff; box-shadow: 0 10px 22px rgba(224, 49, 62, .28); }
.nut-do:hover { background: var(--do-dam); }
.nut-vien { border: 2px solid var(--den); color: var(--den); background: transparent; }
.nut-trang { background: #fff; color: var(--do); }
.nut-den { background: var(--den); color: #fff; }
.nut-chu { display: inline-flex; align-items: center; gap: 8px; color: var(--do); font-weight: 700; text-decoration: none; }
.hang-nut { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.nhan { display: inline-block; padding: 5px 14px; border-radius: 99px; background: var(--do-nhat); color: var(--do);
  font-size: 13.5px; font-weight: 700; border: 1px solid rgba(224, 49, 62, .22); margin-bottom: 14px; }
.ghi-chu { font-size: 13.5px; color: var(--phu); margin-top: 14px; }
.ghi-chu.giua { text-align: center; max-width: 720px; margin: 28px auto 0; }

/* Thanh liên hệ */
.thanh-tren { background: var(--do); color: #fff; font-size: 14px; }
.tt-trong { display: flex; align-items: center; gap: 22px; min-height: 40px; }
.tt-muc, .tt-phai a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: #fff; }
.tt-phai { margin-left: auto; display: flex; gap: 18px; }

/* Đầu trang — KHÔNG dùng backdrop-filter (nó nhốt menu position:fixed trên điện thoại) */
.dau { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--vien); transition: box-shadow .2s ease; }
.dau.co-bong { box-shadow: 0 8px 24px rgba(29, 32, 38, .08); }
.dau-trong { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.logo-chu { font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--den); }
.logo-chu b { color: var(--do); }
.logo-phu { font-size: 12.5px; color: var(--phu); font-weight: 500; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 600; font-size: 14.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--chu); }
.menu a:hover { color: var(--do); }
.menu-goi { display: none !important; }
.o-goi { display: flex; align-items: center; gap: 12px; padding-left: 26px; border-left: 1px solid var(--vien); text-decoration: none; }
.o-goi-tron { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--do); border: 1px solid var(--vien); }
.o-goi small { display: block; font-size: 11.5px; text-transform: uppercase; color: var(--phu); letter-spacing: .06em; }
.o-goi b { font-size: 17px; color: var(--den); }
.nut-menu { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--vien);
  background: #fff; color: var(--den); cursor: pointer; place-items: center; font-size: 22px; }
.nut-menu .dong { display: none; }

/* Màn đầu */
.man-dau { background: radial-gradient(1100px 520px at 85% 20%, #FDE7E9 0%, rgba(253, 231, 233, 0) 60%),
  radial-gradient(700px 400px at 0% 100%, #FFF4E0 0%, rgba(255, 244, 224, 0) 60%), #FFFAFA; overflow: hidden; }
.md-trong { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; padding: 64px 20px 72px; }
.md-trong > * { min-width: 0; }
.nhan-thanh-tich { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 99px; background: #fff;
  box-shadow: var(--bong); color: var(--do); font-weight: 700; font-size: 14px; margin-bottom: 22px; }
.nhan-thanh-tich .ic { color: var(--vang); }
.md-chu h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; }
.md-chu h1 span { color: var(--do); }
.md-dan { font-size: 18px; color: var(--phu); margin: 20px 0 28px; max-width: 560px; }
.md-nho { margin-top: 18px; font-size: 14.5px; color: var(--phu); }
.md-nho b { color: var(--do); }
.md-anh { position: relative; max-width: 460px; margin-left: auto; width: 100%; }
.md-anh::before { content: ""; position: absolute; inset: 7% -5% -4% 12%; background: var(--do); border-radius: 36px; transform: rotate(4deg); }
.md-khung { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: #eee; box-shadow: var(--bong-dam); }
.md-khung img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.md-the { position: absolute; background: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: var(--bong-dam); display: flex; flex-direction: column; line-height: 1.25; }
.md-the b { font-size: 22px; color: var(--do); font-weight: 800; }
.md-the span { font-size: 12.5px; color: var(--phu); }
.md-the-1 { left: -18px; bottom: 12%; }
.md-the-2 { right: -10px; top: 8%; }

/* Dải 3 ô đỏ */
.dai-3 { background: var(--do); color: #fff; }
.d3-trong { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; max-width: none; }
.d3-o { display: flex; gap: 16px; padding: 34px clamp(20px, 3vw, 46px); }
.d3-o:nth-child(2) { background: #E84250; }
.d3-ic { width: 40px; height: 40px; color: var(--vang); }
.d3-o h2 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.d3-o p { font-size: 14.5px; color: rgba(255, 255, 255, .88); }

/* Về Bảo */
.ve-bao { padding: 96px 0; }
.vb-trong { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.vb-trong > * { min-width: 0; }
.vb-anh { margin: 0; position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--bong-dam); }
.vb-anh img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 60% 50%; }
.vb-anh figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 26px 24px; color: #fff;
  background: linear-gradient(180deg, rgba(192, 32, 48, 0) 0%, rgba(192, 32, 48, .92) 62%); display: flex; flex-direction: column; }
.vb-anh figcaption b { font-size: 24px; letter-spacing: .04em; }
.vb-anh figcaption span { font-size: 15px; opacity: .92; }
.vb-chu h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.vb-chu h2 span { color: var(--do); }
.vb-ke { color: var(--phu); margin: 16px 0 20px; }
.vb-diem { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.vb-diem li { display: flex; gap: 12px; align-items: flex-start; }
.vb-diem .ic { color: var(--do); margin-top: 3px; }
.vb-diem b { color: var(--den); }
.vb-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--vien); }
.vb-so div { padding: 0 14px; border-left: 1px solid var(--vien); }
.vb-so div:first-child { padding-left: 0; border-left: 0; }
.vb-so b { display: block; font-size: 26px; font-weight: 800; color: var(--den); }
.vb-so span { font-size: 13.5px; color: var(--phu); }

/* Phần chung */
.phan { padding: 92px 0; }
.nen-hong { background: var(--nen-hong); }
.nen-xam { background: var(--nen-xam); }
.dau-phan { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.dau-phan h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.dan-phan { margin-top: 12px; color: var(--phu); }

/* Thẻ chương trình */
.luoi-khoa, .luoi-mp { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }   /* thẻ lẻ cuối hàng tự ra giữa */
.the-khoa, .the-mp { flex: 0 1 calc((100% - 48px) / 3); }
.the-khoa, .the-mp { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none;
  border: 1px solid var(--vien); box-shadow: var(--bong); transition: transform .18s ease, box-shadow .18s ease; min-width: 0; }
.the-khoa:hover, .the-mp:hover { transform: translateY(-4px); box-shadow: var(--bong-dam); }
.the-khoa img, .the-mp img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: #0A1838; }
.tk-than, .mp-than { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.tk-nhan { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--do); background: var(--do-nhat); padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.the-khoa h3, .the-mp h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 6px; }
.the-khoa p, .the-mp p { font-size: 14.5px; color: var(--phu); }
.tk-chan { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px dashed var(--vien); margin-top: 16px; }
.tk-chan b { font-size: 20px; font-weight: 800; color: var(--do); }
.tk-chan span, .mp-nut { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--den); }
.mp-nut { margin-top: auto; padding-top: 14px; color: var(--do); }

/* Quy trình 3 bước */
.luoi-buoc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.buoc { text-align: center; min-width: 0; }
.buoc-dau { position: relative; padding: 12px 12px 26px; border-radius: 16px 16px 0 0; }
.buoc-dau::after { content: ""; position: absolute; left: 0; right: 0; bottom: -30px; height: 31px; background: inherit; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.buoc-do { background: var(--do); }
.buoc-den { background: var(--den); }
.buoc-dau img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.buoc-dau h3 { color: #fff; font-size: 20px; margin-top: 16px; }
.buoc-so { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff; border: 4px solid #fff; box-shadow: var(--bong); }
.buoc-do .buoc-so { background: var(--den); }
.buoc-den .buoc-so { background: var(--do); }
.buoc p { margin-top: 62px; color: var(--phu); font-size: 15px; padding: 0 8px; }

/* Học viên */
.luoi-hv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.the-hv { margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; background: #fff; border-radius: 18px; padding: 14px;
  border: 1px solid var(--vien); box-shadow: var(--bong); align-items: center; min-width: 0; }
.the-hv:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 640px; justify-self: center; width: 100%; }
.hv-video { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #111; }
.hv-video video { width: 100%; height: 100%; object-fit: cover; }
.hv-dai { position: absolute; left: 8px; top: 8px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: 99px; pointer-events: none; }
.hv-sao { display: flex; gap: 2px; color: var(--vang); margin-bottom: 8px; }
.hv-sao .ic { width: 16px; height: 16px; fill: var(--vang); }
.the-hv blockquote { margin: 0; font-size: 15px; color: var(--chu); }
.hv-ten { margin-top: 10px; font-size: 14px; color: var(--phu); }
.hv-ten b { color: var(--den); }

/* Dải kêu gọi */
.dai-goi { background-color: var(--do); background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.2px); background-size: 18px 18px; color: #fff; padding: 64px 0; }
.dg-trong { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.dai-goi h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.dai-goi p { margin-top: 8px; opacity: .92; }
.nhan-trang { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .4); }
.dg-nut { display: flex; flex-wrap: wrap; gap: 14px; flex: none; }

/* Chân trang */
.chan { background: var(--den); color: #B9BEC9; font-size: 14.5px; }
.chan-luoi { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 36px; padding: 64px 20px 48px; }
.chan-luoi > * { min-width: 0; }
.chan h3 { color: #fff; font-size: 17px; margin-bottom: 18px; padding-bottom: 10px; position: relative; }
.chan h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--do); border-radius: 3px; }
.chan a { color: #B9BEC9; text-decoration: none; }
.chan a:hover { color: #fff; }
.chan-luoi > div > a { display: block; margin-bottom: 9px; }
.chan-logo { color: #fff; margin-bottom: 12px; }
.chan-mxh { display: flex; gap: 10px; margin-top: 16px; }
.chan-mxh a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #3A3F4A; display: grid; place-items: center; }
.chan-dong { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.chan-dong .ic { color: var(--do); margin-top: 3px; }
.chan-cuoi { border-top: 1px solid #2E323B; padding: 18px 0; font-size: 13.5px; text-align: center; }

/* Nút nổi */
.noi { position: fixed; right: 16px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.noi a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.noi-zalo { background: #0068FF; color: #fff; font-weight: 800; font-size: 14px; }
.noi-goi { background: var(--do); color: #fff; font-size: 24px; animation: rung 2.4s ease-in-out infinite; }
@keyframes rung { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 49, 62, .45), 0 10px 24px rgba(0, 0, 0, .22); } 50% { box-shadow: 0 0 0 12px rgba(224, 49, 62, 0), 0 10px 24px rgba(0, 0, 0, .22); } }
@media (prefers-reduced-motion: reduce) { .noi-goi { animation: none; } html { scroll-behavior: auto; } }

/* 404 */
.trang-404 main { padding: 120px 20px; text-align: center; }
.trang-404 h1 { font-size: 40px; margin-bottom: 12px; }
.trang-404 p { color: var(--phu); margin-bottom: 26px; }

/* ── Máy tính bảng ── */
@media (max-width: 1080px) {
  .o-goi { display: none; }
  .menu { gap: 20px; }
}
@media (max-width: 980px) {
  .nut-menu { display: grid; }
  .menu { display: none; position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff;
    border-top: 1px solid var(--vien); box-shadow: 0 18px 30px rgba(29, 32, 38, .12); max-height: calc(100vh - 76px); overflow: auto; padding: 6px 20px 18px; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--vien); font-size: 15px; }
  .menu-goi { display: flex !important; align-items: center; gap: 8px; color: var(--do) !important; border-bottom: 0 !important; }
  .dau.menu-mo .menu { display: flex; }
  .dau.menu-mo .nut-menu .mo { display: none; }
  .dau.menu-mo .nut-menu .dong { display: block; }
  .md-trong { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 20px 64px; }
  .md-anh { margin: 0 auto; max-width: 400px; }
  .d3-trong { grid-template-columns: minmax(0, 1fr); }
  .vb-trong { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .the-khoa, .the-mp { flex-basis: calc((100% - 24px) / 2); }
  .luoi-buoc { grid-template-columns: minmax(0, 1fr); gap: 56px; max-width: 520px; margin: 0 auto; }
  .chan-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-trong { flex-direction: column; align-items: flex-start; }
}
/* ── Điện thoại ── */
@media (max-width: 640px) {
  .an-dt { display: none !important; }
  .tt-trong { justify-content: space-between; }
  .tt-phai { margin-left: 0; }
  .dau-trong { min-height: 66px; }
  .menu { top: 66px; max-height: calc(100vh - 66px); }
  html { scroll-padding-top: 76px; }
  .logo-chu { font-size: 19px; }
  .md-dan { font-size: 16.5px; }
  .hang-nut .nut { flex: 1 1 100%; }
  .md-the-1 { left: -6px; }
  .md-the-2 { right: -4px; }
  .md-the b { font-size: 18px; }
  .ve-bao, .phan { padding: 64px 0; }
  .vb-so b { font-size: 21px; }
  .vb-so div { padding: 0 8px; }
  .the-khoa, .the-mp { flex-basis: 100%; }
  .luoi-hv { grid-template-columns: minmax(0, 1fr); }
  .the-hv { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .the-hv blockquote { font-size: 14px; }
  .chan-luoi { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 48px 20px 36px; }
  .dg-nut { width: 100%; }
  .dg-nut .nut { flex: 1 1 100%; }
  .noi { right: 12px; bottom: 14px; }
  .noi a { width: 52px; height: 52px; }
}
