@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/be-vietnam-pro-400-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/be-vietnam-pro-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/be-vietnam-pro-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/be-vietnam-pro-600-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/be-vietnam-pro-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/be-vietnam-pro-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/be-vietnam-pro-700-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/be-vietnam-pro-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/be-vietnam-pro-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ==========================================================================
   Trường Tiểu học Nguyễn Tri Phương: giao diện.
   Trang trọng nhưng gần gũi: nền giấy ô kẻ, nét vẽ tay trang trí, màu theo logo trường
   (xanh navy chủ đạo, đỏ và vàng làm điểm nhấn), font Be Vietnam Pro.
   Bo góc: nút và nhãn lọc = tròn hẳn (999px), ô nhập = 10px, thẻ = 16px, khối lớn = 24px.
   ========================================================================== */
:root {
	--brand: #14306b; --brand-deep: #0d2150; --brand-mid: #2a4f9e;
	--brand-soft: #e6edf9; --brand-ultra: #f2f6fd;
	--accent: #c62828; --accent-soft: #fdecec; --gold: #f2b632; --gold-soft: #fff4d6;
	--paper: #f8fafe; --surface: #fff; --line: #dfe6f1; --line-hover: #b6c6e2;
	--heading: #0f1f3d; --ink: #263248; --muted: #5a6579;
	--success: #216b45; --error: #b32f3f;
	--ease: cubic-bezier(.16, 1, .3, 1); --r-pill: 999px; --r-input: 10px; --r-card: 16px; --r-panel: 24px; --wrap: 1240px;
	--shadow: 0 1px 2px rgba(15, 31, 61, .06), 0 14px 34px -20px rgba(20, 48, 107, .35);
	--font: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { zoom: .8; scroll-behavior: smooth; scroll-padding-top: 80px; }
/* Zoom .8 chỉ dành cho desktop; máy tính bảng và điện thoại (menu mobile) giữ cỡ thật để chữ và nút không bị thu nhỏ. */
@media (max-width: 1060px) { html { zoom: 1; } }
/* Nền giấy ô kẻ nét đứt, màu navy của trường. */
body { margin: 0; color: var(--ink); background: var(--paper) url("../images/deco-grid.svg") 0 0 / 84px 69px repeat; font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-mid); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { color: var(--heading); font-family: var(--font); font-weight: 700; line-height: 1.3; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 18px; background: var(--gold); color: var(--brand-deep); border-radius: var(--r-pill); }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.wrap--narrow { width: min(900px, calc(100% - 48px)); }

/* Icon: Phosphor Bold (MIT), tô theo currentColor bằng mask. */
.ico { display: inline-block; flex: none; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; vertical-align: -.15em; }
.ico-facebook-logo { --i: url('../images/icons/facebook-logo.svg'); } .ico-youtube-logo { --i: url('../images/icons/youtube-logo.svg'); }
.ico-arrow-right { --i: url('../images/icons/arrow-right.svg'); } .ico-arrow-left { --i: url('../images/icons/arrow-left.svg'); }
.ico-arrow-up { --i: url('../images/icons/arrow-up.svg'); } .ico-check { --i: url('../images/icons/check.svg'); }
.ico-map-pin { --i: url('../images/icons/map-pin.svg'); } .ico-phone { --i: url('../images/icons/phone.svg'); }
.ico-desktop { --i: url('../images/icons/desktop.svg'); } .ico-books { --i: url('../images/icons/books.svg'); } .ico-swimming-pool { --i: url('../images/icons/swimming-pool.svg'); } .ico-tree { --i: url('../images/icons/tree.svg'); } .ico-cooking-pot { --i: url('../images/icons/cooking-pot.svg'); } .ico-flag { --i: url('../images/icons/flag.svg'); } .ico-microphone-stage { --i: url('../images/icons/microphone-stage.svg'); } .ico-chalkboard-teacher { --i: url('../images/icons/chalkboard-teacher.svg'); }
.ico-envelope-simple { --i: url('../images/icons/envelope-simple.svg'); } .ico-clock { --i: url('../images/icons/clock.svg'); }
.ico-paper-plane-tilt { --i: url('../images/icons/paper-plane-tilt.svg'); } .ico-list { --i: url('../images/icons/list.svg'); }
.ico-graduation-cap { --i: url('../images/icons/graduation-cap.svg'); } .ico-users-three { --i: url('../images/icons/users-three.svg'); }
.ico-file-text { --i: url('../images/icons/file-text.svg'); } .ico-magnifying-glass { --i: url('../images/icons/magnifying-glass.svg'); }
.ico-play { --i: url('../images/icons/play.svg'); } .ico-images { --i: url('../images/icons/images.svg'); }
.ico-download-simple { --i: url('../images/icons/download-simple.svg'); } .ico-caret-down { --i: url('../images/icons/caret-down.svg'); }
.ico-arrow-square-out { --i: url('../images/icons/arrow-square-out.svg'); } .ico-calendar-blank { --i: url('../images/icons/calendar-blank.svg'); }

/* Nút */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border: 2px solid transparent; border-radius: var(--r-pill); font: 600 15.5px/1.2 var(--font); white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn-dot { display: inline-grid; place-items: center; font-size: 17px; transition: transform .2s; }
.btn:hover .btn-dot { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--brand); color: #fff; } .btn--solid:hover { background: var(--brand-deep); color: #fff; }
.btn--outline { border-color: var(--line-hover); color: var(--brand); background: var(--surface); } .btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: var(--gold); color: var(--brand-deep); } .btn--light:hover { background: #ffc94d; color: var(--brand-deep); }
.btn--sm { padding: 7px 14px; font-size: 14px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.more-link .ico { transition: transform .2s; } .more-link:hover .ico { transform: translateX(3px); }

/* Đầu trang: thanh liên hệ trắng, rồi thanh menu navy dính trên cùng (cùng bố cục mnhoavang) */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 15px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; }
.topbar-item { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-weight: 600; } .topbar-item .ico { color: var(--brand); font-size: 17px; } .topbar-item a { color: inherit; } .topbar-item a:hover { color: var(--brand); }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-login { padding: 6px 18px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; transition: background .25s, transform .25s; } .topbar-login:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--brand); box-shadow: inset 0 -3px 0 var(--gold), 0 8px 20px -16px rgba(13, 33, 80, .45); }
.navbar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { position: relative; z-index: 2; display: block; margin-top: 4px; margin-bottom: -34px; }
.brand-badge { display: grid; place-items: center; width: 125px; height: 125px; border-radius: 50%; background: var(--surface); border: 5px solid var(--surface); box-shadow: 0 10px 22px -16px rgba(13, 33, 80, .4); overflow: hidden; }
.brand-badge img { width: 96%; height: 96%; object-fit: contain; }
.brand-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: contain; }
.brand-name { display: grid; line-height: 1.2; }
.brand-name small { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.brand-name b { color: var(--brand); font-size: 28px; font-weight: 700; line-height: 1.15; }
.brand-name em { color: var(--muted); font-size: 14px; font-style: normal; }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 32px; place-items: center; }
.nav { display: flex; align-items: center; margin-left: auto; }
.nav .menu { display: flex; align-items: stretch; gap: clamp(2px, .6vw, 10px); }
.nav li { position: relative; list-style: none; }
.nav .menu > li { display: flex; align-items: center; }
@media (min-width: 1061px) { .nav { align-self: stretch; } .nav .menu { height: 100%; } }
.nav .menu > li > a { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; color: #fff; font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: background .2s; }
.nav .menu > li > a:hover, .nav .menu > li:focus-within > a { background: rgba(255, 255, 255, .1); }
.nav .menu > li.menu-item-has-children > a::after { content: ''; width: 12px; height: 12px; background: currentColor; opacity: .8; -webkit-mask: url('../images/icons/caret-down.svg') center / contain no-repeat; mask: url('../images/icons/caret-down.svg') center / contain no-repeat; }
.nav .menu > .current-menu-item > a, .nav .menu > .current-menu-ancestor > a, .nav .menu > .current-menu-parent > a, .nav .menu > li > a[aria-current] { background: rgba(255, 255, 255, .1); color: #fff; }
.sub-menu { position: absolute; left: 0; top: 100%; z-index: 5; min-width: 250px; padding: 8px; border: 1px solid var(--line); border-radius: 0 0 var(--r-card) var(--r-card); background: var(--surface); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .menu > li:last-child .sub-menu, .nav .menu > li:nth-last-child(2) .sub-menu { left: auto; right: 0; }
.sub-menu a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 500; }
.sub-menu a:hover, .sub-menu .current-menu-item > a { background: var(--brand-ultra); color: var(--brand); }
.sub-toggle { display: none; }

/* Khối chung */
.section { position: relative; padding: clamp(44px, 6vw, 76px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(24px, 3vw, 36px); text-align: center; }
/* Gạch chân cung chấm đỏ dưới tiêu đề khối, nét "vở học trò". */
.section-head:not(.section-head--row)::after { content: ''; display: block; width: 84px; height: 22px; margin: 6px auto 0; background: url("../images/deco-arc.svg") center / contain no-repeat; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; text-align: left; }
.section-title { font-size: clamp(26px, 3vw, 36px); }
.section-head--row .section-title { position: relative; padding-left: 18px; }
.section-head--row .section-title::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 6px; border-radius: 6px; background: linear-gradient(var(--accent) 50%, var(--gold) 50%); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.news-meta b { color: var(--accent); font-weight: 700; }
.news-meta time { display: inline-flex; align-items: center; gap: 6px; }
.empty-card { padding: 40px 28px; border: 2px dashed var(--line-hover); border-radius: var(--r-card); background: var(--surface); text-align: center; }
.empty-card h2, .empty-card h3 { font-size: 21px; margin-bottom: 8px; }
.empty-card p { color: var(--muted); }

/* Trang nhất: hero trượt nhiều slide ảnh như thbevandan; chưa có ảnh thì hiện nền navy ô kẻ */
.hero { position: relative; z-index: 0; overflow: hidden; height: min(92vh, 780px); min-height: 560px; color: #c9d5ee; background: url("../images/deco-grid-light.svg") 0 0 / 84px 69px repeat, linear-gradient(160deg, var(--brand-deep), var(--brand) 70%); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 33, 80, .78) 0%, rgba(13, 33, 80, .45) 45%, rgba(13, 33, 80, .05) 100%); }
.slide-content { position: relative; z-index: 2; text-align: left; } .slide-content > * { max-width: 660px; }
.slide--right::after { background: linear-gradient(270deg, rgba(13, 33, 80, .78) 0%, rgba(13, 33, 80, .45) 45%, rgba(13, 33, 80, .05) 100%); }
.slide--right .slide-content { text-align: right; } .slide--right .slide-content > * { margin-left: auto; } .slide--right .hero-actions { justify-content: flex-end; }
.hero-kicker { display: inline-block; margin: 0 0 12px; padding: 5px 14px; border-radius: var(--r-pill); background: var(--gold); color: var(--brand-deep); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.hero h1, .hero .slide-title { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); font-size: clamp(34px, 5.2vw, 56px); line-height: 1.12; margin-bottom: 16px; }
.hero h1 span, .hero .slide-title span { color: var(--gold); }
.hero-sub { max-width: 46ch; margin: 0 0 26px; color: #fff; font-size: 19px; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn--outline { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; } .hero .btn--outline:hover { border-color: #fff; background: #fff; color: var(--brand); }
.slider-arrow { position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 20px; transform: translateY(-50%); transition: background .2s, color .2s; }
.slider-arrow:hover { background: var(--gold); color: var(--brand-deep); }
.slider-arrow.prev { left: 3%; } .slider-arrow.next { right: 3%; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; z-index: 5; display: flex; transform: translateX(-50%); }
.hero-dots button { width: 24px; height: 24px; padding: 6.5px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .45); background-clip: content-box; cursor: pointer; transition: width .2s, background-color .2s; }
.hero-dots button.active { width: 41px; border-radius: 999px; background-color: var(--gold); }
img.is-logo { object-fit: contain !important; padding: 16%; background: var(--brand-ultra); }

/* Thông tin nhanh */
.facts { position: relative; z-index: 2; margin-top: clamp(-64px, -5vw, -44px); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
/* Mỗi ô một màu nhấn: vàng ngọn đuốc, navy, đỏ cờ; góc phải có vòng tròn nhạt như con dấu. */
.fact { --c: var(--gold); --c-soft: var(--gold-soft); position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 20px 16px; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--r-card); background: radial-gradient(circle at 100% 0, var(--c-soft) 0 64px, transparent 65px), var(--surface); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.fact:nth-child(2) { --c: var(--brand); --c-soft: var(--brand-soft); } .fact:nth-child(3) { --c: var(--accent); --c-soft: var(--accent-soft); } .fact:nth-child(4) { --c: var(--brand-mid); --c-soft: var(--brand-ultra); }
.fact:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(15, 31, 61, .06), 0 22px 40px -22px rgba(20, 48, 107, .45); }
.fact-icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--c); color: #fff; font-size: 26px; transform: rotate(-6deg); box-shadow: 0 8px 16px -8px var(--c); transition: transform .3s var(--ease); }
.fact:first-child .fact-icon { color: var(--brand-deep); } .fact:hover .fact-icon { transform: rotate(0) scale(1.05); }
.fact p { position: relative; margin: 0; line-height: 1.3; } .fact b { display: block; color: var(--brand); font-size: 18px; white-space: nowrap; } .fact p span { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.hero-dots { bottom: calc(clamp(44px, 5vw, 64px) + 14px); }

/* Tin mới: 1 tin lớn + 4 tin nhỏ */
.news-home { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.news-tile { display: grid; align-content: start; gap: 12px; }
.news-tile--lead { grid-row: span 2; grid-template-rows: 1fr auto; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.news-tile--lead .news-thumb { aspect-ratio: auto; min-height: 260px; }
.news-tile h3 { font-size: 17px; line-height: 1.45; } .news-tile--lead h3 { font-size: 22px; }
.news-tile h3 a, .news-card h3 a, .mini-card h3 a, .album-card h3 a, .video-card h3 a { color: var(--heading); } .news-tile h3 a:hover, .news-card h3 a:hover, .mini-card h3 a:hover { color: var(--brand-mid); } .album-card h3 a:hover, .video-card h3 a:hover { color: var(--heading); }
.news-tile .news-meta { margin-bottom: 4px; }
.news-thumb, .mini-thumb, .album-cover, .video-thumb { position: relative; display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; background: var(--brand-soft); }
.news-thumb img, .mini-thumb img, .album-cover img, .video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-tile:hover img, .news-card:hover .news-thumb img, .mini-card:hover img, .album-card:hover img, .video-card:hover img, .video-row:hover img, .album-tile:hover img { transform: scale(1.05); }
.news-excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Hoạt động theo chuyên mục: tab */
.activities { background: rgba(255, 255, 255, .75); border-block: 1px solid var(--line); }
.section.activities, .activities + .section { padding-top: clamp(44px, 6vw, 76px); }
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tab, .chips a { padding: 9px 18px; border: 1px solid var(--line-hover); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.tab:hover, .chips a:hover { border-color: var(--brand); color: var(--brand); }
.tab[aria-selected="true"], .chips a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.card-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini-card { display: grid; align-content: start; gap: 8px; }
.mini-card time { color: var(--muted); font-size: 13.5px; } .mini-card h3 { font-size: 16.5px; line-height: 1.45; }
.tab-more { margin: 28px 0 0; text-align: center; }
/* Trang chủ: Tin mới */
.news .section-head--row .kicker { margin-bottom: 4px; }
.news-more { --c: var(--accent); --c-soft: var(--accent-soft); }
.news .news-tile { position: relative; padding: 12px 12px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.news .news-tile:hover { transform: translateY(-4px); border-color: var(--line-hover); box-shadow: var(--shadow); }
.news .news-tile--lead { padding: 14px 14px 20px; border-top: 5px solid var(--accent); }
.news .news-body { padding-inline: 4px; }
.news .news-meta b { padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent-soft); font-size: 12.5px; }
.news-flag { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--gold); color: var(--brand-deep); font-size: 13px; font-weight: 700; box-shadow: 0 6px 14px -8px rgba(13, 33, 80, .6); }
/* Trang chủ: Hoạt động nhà trường */
.activities { background: radial-gradient(circle at 4% 12%, var(--gold-soft) 0 80px, transparent 81px), radial-gradient(circle at 97% 90%, var(--brand-soft) 0 110px, transparent 111px), var(--brand-ultra); }
.activities .tab-list { width: fit-content; max-width: 100%; margin-inline: auto; padding: 6px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 24px -18px rgba(13, 33, 80, .45); gap: 4px; }
.activities .tab { padding: 9px 14px; border-color: transparent; background: transparent; white-space: nowrap; }
@media (min-width: 1061px) { .activities .tab-list { flex-wrap: nowrap; } }
.activities .tab:hover { background: var(--brand-ultra); border-color: transparent; }
.activities .tab[aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.activities .mini-card { position: relative; padding: 10px 10px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.activities .mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.activities .mini-card h3 { padding-inline: 4px; }
.activities .mini-card time { position: absolute; left: 20px; top: 20px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .94); color: var(--brand); font-size: 12.5px; font-weight: 700; box-shadow: 0 4px 12px -6px rgba(13, 33, 80, .5); }

/* Thông báo + Văn bản */
.boards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.board { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px dashed var(--line); }
.board-title { font-size: clamp(22px, 2.4vw, 27px); }
.board-empty { margin: 0; color: var(--muted); }
/* Trang chủ: bảng Thông báo và Văn bản */
.boards .board { --c: var(--accent); --c-soft: var(--accent-soft); position: relative; overflow: hidden; border-top: 5px solid var(--c); box-shadow: var(--shadow); background: radial-gradient(circle at 100% 0, var(--c-soft) 0 70px, transparent 71px), var(--surface); }
.boards .board--docs { --c: var(--brand-mid); --c-soft: var(--brand-ultra); }
.boards .board-head { align-items: center; gap: 14px; } .boards .board-head > div { flex: 1; } .boards .board-head p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.board-icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 15px; background: var(--c); color: #fff; font-size: 25px; transform: rotate(-6deg); }
.board-more { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 14px; border-radius: var(--r-pill); background: var(--c-soft); color: var(--c); font-size: 14px; font-weight: 700; transition: background .2s, color .2s; } .board-more:hover { background: var(--c); color: #fff; }
.boards .notice-list { gap: 8px; }
.boards .notice-row { grid-template-columns: auto 1fr auto; padding: 10px 12px; border: 1px solid transparent; }
.boards .notice-row:hover { border-color: var(--line); background: var(--accent-soft); color: var(--heading); }
.boards .notice-row > .ico { color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; } .boards .notice-row:hover > .ico { opacity: 1; transform: none; }
.boards .notice-date { width: 70px; background: var(--surface); border: 2px solid var(--accent-soft); } .boards .notice-date small { font-size: 10.5px; white-space: nowrap; } .boards li:first-child .notice-date { border-color: var(--accent); background: var(--accent); color: #fff; } .boards li:first-child .notice-date small { color: #ffe1e1; }
.board-new { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--gold); color: var(--brand-deep); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.boards .doc-list { gap: 8px; } .boards .doc-list li { align-items: center; padding: 12px; border: 1px solid transparent; } .boards .doc-list li:hover { border-color: var(--line); }
.doc-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-ultra); color: var(--brand-mid); } .doc-icon .ico { width: 22px; height: 22px; margin: 0; }
.boards .doc-list li:hover .doc-icon { background: var(--brand-mid); color: #fff; }
.boards .doc-list time { display: inline-flex; align-items: center; gap: 5px; } .boards .doc-list time .ico { width: 14px; height: 14px; margin: 0; color: var(--muted); }
.notice-list { display: grid; gap: 4px; }
.notice-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 10px; border-radius: 14px; color: var(--ink); transition: background .2s; }
.notice-row:hover { background: var(--brand-ultra); color: var(--brand); }
.notice-date { display: grid; place-items: center; align-content: center; width: 62px; height: 62px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); text-align: center; line-height: 1.1; }
.notice-date b { font-size: 22px; } .notice-date small { color: var(--muted); font-size: 11px; font-weight: 600; }
.notice-title { font-weight: 600; line-height: 1.45; }
.notice-list--page { gap: 12px; }
.notice-list--page .notice-row { grid-template-columns: auto 1fr auto; padding: 14px 18px; border: 1px solid var(--line); background: var(--surface); }
.notice-list--page .notice-row > .ico { color: var(--brand-mid); }
/* Trang Thông báo */
.notice-main { display: grid; gap: 18px; align-content: start; }
.notice-feature { position: relative; overflow: hidden; display: grid; justify-items: start; gap: 14px; padding: clamp(24px, 3vw, 38px); border-radius: var(--r-panel); background: radial-gradient(circle at 100% 0, transparent 0 110px, rgba(242, 182, 50, .55) 111px 113px, transparent 114px), radial-gradient(circle at 100% 0, rgba(255, 255, 255, .07) 0 80px, transparent 81px), linear-gradient(140deg, var(--brand), var(--brand-deep)); color: #dbe6f7; box-shadow: var(--shadow); }
.notice-feature h2 { max-width: 34ch; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; } .notice-feature h2 a { color: #fff; } .notice-feature h2 a:hover { color: var(--gold); }
.notice-feature p { margin: 0; max-width: 62ch; }
.notice-feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14.5px; } .notice-feature-meta time { display: inline-flex; align-items: center; gap: 6px; color: #b9c8e6; }
.notice-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--gold); color: var(--brand-deep); font-size: 13.5px; font-weight: 700; }
.notice-sub { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 19px; } .notice-sub::after { content: ''; flex: 1; border-top: 2px dashed var(--line); }
.notice-list--page .notice-row { position: relative; overflow: hidden; } .notice-list--page .notice-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); opacity: 0; transition: opacity .2s; }
.notice-list--page .notice-row:hover { border-color: var(--line-hover); box-shadow: 0 10px 22px -16px rgba(13, 33, 80, .45); } .notice-list--page .notice-row:hover::before { opacity: 1; }
.notice-list--page .notice-row:hover > .ico { transform: translateX(3px); } .notice-list--page .notice-row > .ico { transition: transform .2s; }
.notice-body { display: grid; gap: 4px; } .notice-excerpt { color: var(--muted); font-size: 14.5px; font-weight: 400; line-height: 1.55; }
.side-text { margin: -6px 0 14px; color: var(--muted); font-size: 14.5px; }
.side-fb { position: relative; overflow: hidden; background: linear-gradient(160deg, #eaf2ff, #fff 60%); } .side-fb-icon { position: absolute; right: -14px; top: -14px; color: #1877f2; font-size: 96px; opacity: .12; }
.side-fb-btn { background: #1877f2; color: #fff; } .side-fb-btn:hover { background: var(--brand-deep); color: #fff; }
.doc-list { display: grid; gap: 4px; }
.doc-list li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 10px; border-radius: 14px; transition: background .2s; }
.doc-list li:hover { background: var(--brand-ultra); }
.doc-list .ico { width: 24px; height: 24px; margin-top: 2px; color: var(--brand-mid); }
.doc-list div { display: grid; gap: 2px; } .doc-list a { color: var(--heading); font-weight: 600; line-height: 1.45; } .doc-list a:hover { color: var(--brand-mid); }
.doc-list time { color: var(--muted); font-size: 13px; }

/* Hình ảnh và video (trang nhất) */
.media-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.album-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; gap: 12px; }
.album-tile, .album-tile:hover { position: relative; overflow: hidden; border-radius: 14px; background: var(--brand-soft); color: #fff; }
.album-tile--lead { grid-column: span 2; grid-row: span 2; }
.album-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.album-tile span { position: absolute; inset: auto 0 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(13, 33, 80, .9)); font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.album-tile--lead span { font-size: 17px; }
.album-all { display: grid; place-content: center; justify-items: center; gap: 6px; border: 2px dashed var(--line-hover); border-radius: 14px; background: var(--surface); color: var(--brand); font-weight: 600; }
.album-all .ico { font-size: 28px; } .album-all:hover { border-color: var(--brand); color: var(--brand); }
.video-list { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.video-row { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 14px; color: var(--heading); font-weight: 600; font-size: 15px; line-height: 1.45; }
.video-row:hover { color: var(--heading); }
.video-row .video-thumb { aspect-ratio: 16 / 9; border-radius: 10px; }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(198, 40, 40, .92); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); color: #fff; font-size: 18px; transform: translate(-50%, -50%); }
.video-list .more-link { justify-self: start; margin-top: 4px; }

/* Liên kết (cuối mọi trang) */
.links { position: relative; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); background: radial-gradient(circle at 6% 20%, var(--gold-soft) 0 70px, transparent 71px), radial-gradient(circle at 96% 85%, var(--brand-soft) 0 90px, transparent 91px), var(--brand-ultra); }
.links-in { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; align-items: stretch; }
.links-card, .visits { position: relative; overflow: hidden; display: grid; align-content: start; gap: 18px; padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r-panel); }
.links-card { align-content: space-between; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.links-head { display: flex; align-items: center; gap: 14px; } .links-head p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.links-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 24px; transform: rotate(-6deg); }
.links-title { font-size: 22px; }
.link-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.link-logos a { display: grid; justify-items: center; align-content: start; gap: 6px; height: 100%; padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; text-align: center; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.link-logos a:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 22px -14px rgba(13, 33, 80, .45); }
.link-logos img { width: auto; max-width: 100%; height: 48px; object-fit: contain; }
.link-logos span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.link-portals { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px dashed var(--line); }
.link-portals a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: 14.5px; font-weight: 600; transition: background .2s, color .2s; }
.link-portals a:hover { background: var(--gold); color: var(--brand-deep); }

/* Chân trang */
.site-footer { position: relative; overflow: hidden; background: var(--brand-deep); color: #c9d5ee; padding-top: 60px; border-top: 4px solid var(--gold); }
/* Trang trí nền chân trang: vầng sáng, vòng tròn và chấm vàng */
.site-footer::before { content: ''; position: absolute; inset: 0; pointer-events: none; background:
	radial-gradient(circle at 92% 8%, rgba(255, 255, 255, .06) 0 90px, transparent 91px),
	radial-gradient(circle at 92% 8%, transparent 0 128px, rgba(242, 182, 50, .55) 129px 131px, transparent 132px),
	radial-gradient(circle at 3% 100%, rgba(255, 255, 255, .05) 0 110px, transparent 111px),
	radial-gradient(circle at 3% 100%, transparent 0 150px, rgba(242, 182, 50, .45) 151px 153px, transparent 154px),
	radial-gradient(circle at 60% 18%, var(--gold) 0 4px, transparent 5px),
	radial-gradient(circle at 78% 70%, var(--gold) 0 3px, transparent 4px),
	radial-gradient(circle at 35% 88%, rgba(242, 182, 50, .7) 0 3px, transparent 4px); }
.site-footer::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; pointer-events: none; background: repeating-linear-gradient(90deg, var(--gold) 0 26px, transparent 26px 40px); opacity: .55; }
.site-footer > * { position: relative; z-index: 1; }
.footer-title::after { content: ''; display: block; width: 36px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr 1.3fr; gap: clamp(28px, 4vw, 48px); }
.brand--footer { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; } .brand--footer .brand-logo { flex: none; width: 64px; height: 64px; background: #fff; box-shadow: 0 0 0 3px var(--gold); }
.brand--footer .brand-name small { color: var(--gold); } .brand--footer .brand-name b { color: #fff; font-size: 20px; white-space: nowrap; }
.footer-brand p { font-size: 15px; }
.footer-title { margin-bottom: 16px; color: #fff; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 9px; } .site-footer li { font-size: 15px; }
.site-footer a { color: #c9d5ee; } .site-footer a:hover { color: var(--gold); }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; }
.socials a:hover { background: var(--gold); color: var(--brand-deep); }
.visits { background: radial-gradient(circle at 100% 0, transparent 0 88px, rgba(242, 182, 50, .55) 89px 91px, transparent 92px), radial-gradient(circle at 100% 0, rgba(255, 255, 255, .07) 0 60px, transparent 61px), linear-gradient(150deg, var(--brand), var(--brand-deep)); color: #dbe6f7; box-shadow: var(--shadow); }
.visits .links-icon { background: var(--gold); color: var(--brand-deep); } .visits .links-title { color: #fff; } .visits .links-head p { color: #b9c8e6; }
.visits dl { display: grid; gap: 10px; margin: 0; }
.visits-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.visits dt { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; } .visits dt .ico { color: var(--gold); font-size: 18px; }
.visits dd { margin: 0; color: #fff; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.visits-row--total { background: var(--gold); } .visits-row--total dt, .visits-row--total dt .ico, .visits-row--total dd { color: var(--brand-deep); } .visits-row--total dd { font-size: 21px; }
.visits-live { position: relative; width: 18px; height: 18px; display: grid; place-items: center; } .visits-live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: visits-pulse 1.8s infinite; }
@keyframes visits-pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@media (prefers-reduced-motion: reduce) { .visits-live::before { animation: none; } }
.topbar-fb { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1877f2; color: #fff; font-size: 16px; } .topbar-fb:hover { background: var(--brand-deep); }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.55; }
.contact-list .ico { margin-top: 4px; color: var(--gold); }
.footer-bottom { margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 22px; font-size: 14px; }
.footer-bottom-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; } .footer-bottom p { margin: 0; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--gold); color: var(--brand-deep); font-size: 20px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s, transform .25s, background .2s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--brand); color: #fff; }

/* Trang con */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 255, 255, .95) 40%, rgba(255, 255, 255, .6)); }
.page-hero--photo { color: #fff; background: var(--brand-deep); }
.page-hero--photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(13, 33, 80, .75) 15%, rgba(13, 33, 80, .3) 60%, rgba(13, 33, 80, .1)); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 68%; }
.page-hero-in { position: relative; z-index: 2; padding-block: clamp(30px, 4.5vw, 52px); }
.page-hero--photo .page-hero-in { padding-block: clamp(56px, 8vw, 110px); }
.page-hero h1 { max-width: 30ch; color: var(--brand); font-size: clamp(26px, 3.6vw, 40px); overflow-wrap: anywhere; }
.page-hero--photo h1 { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); } .page-hero--photo .crumbs { text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 14.5px; } .crumbs a { color: var(--accent); font-weight: 500; } .crumbs a:hover { text-decoration: underline; }
.page-hero--photo .crumbs { color: #c9d5ee; } .page-hero--photo .crumbs a { color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips--sub { margin-top: -6px; padding: 12px; border-radius: var(--r-card); background: var(--brand-ultra); }
.chips--sub a { padding: 6px 14px; font-size: 14px; }
.archive .chips + .news-archive, .archive .chips + .album-grid, .archive .chips + .video-grid, .archive .chips + .file-list { margin-top: 28px; }
.news-archive { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-card { display: grid; grid-template-columns: 40% 1fr; gap: 20px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: border-color .2s, box-shadow .3s var(--ease); }
.news-card:hover { border-color: var(--line-hover); box-shadow: var(--shadow); }
.news-card .news-thumb { aspect-ratio: 4 / 3; }
.news-card h3 { font-size: 17.5px; line-height: 1.45; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.album-grid, .video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
.album-card, .video-card { display: grid; align-content: start; gap: 10px; }
.album-cover { aspect-ratio: 4 / 3; box-shadow: 6px 6px 0 var(--gold-soft), 6px 6px 0 1px var(--line); }
.album-card h3, .video-card h3 { font-size: 17px; line-height: 1.45; }
.video-card .play { width: 60px; height: 60px; font-size: 24px; }
.file-list { display: grid; gap: 10px; }
.file-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: border-color .2s; }
.file-row:hover { border-color: var(--line-hover); }
.file-type { display: grid; place-items: center; width: 52px; height: 60px; border-radius: 8px 18px 8px 8px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.file-type[data-ext="PDF"] { background: var(--accent-soft); color: var(--accent); }
.file-type[data-ext="DOC"], .file-type[data-ext="DOCX"] { background: #e3edff; color: #1f57c3; }
.file-type[data-ext="PPT"], .file-type[data-ext="PPTX"] { background: #fff0e0; color: #b4530f; }
.file-type[data-ext="XLS"], .file-type[data-ext="XLSX"] { background: #e2f5ea; color: var(--success); }
.file-title { color: var(--heading); font-weight: 600; line-height: 1.45; } .file-title:hover { color: var(--brand-mid); }
.file-info .news-meta { margin: 4px 0 0; }
.file-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.file-card h2 { font-size: 20px; margin-bottom: 4px; }
.doc-table { display: grid; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.doc-tr { display: grid; grid-template-columns: 150px 1fr 110px; gap: 18px; align-items: center; padding: 16px 22px; }
.doc-tr + .doc-tr { border-top: 1px solid var(--line); }
.doc-th { background: var(--brand-ultra); color: var(--heading); font-size: 14px; font-weight: 700; }
.doc-tr time { color: var(--muted); font-weight: 600; font-size: 15px; }
.doc-tr > a { color: var(--heading); font-weight: 600; line-height: 1.45; } .doc-tr > a:hover { color: var(--brand-mid); }
.doc-dl { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.pagination { margin-top: 40px; } .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-weight: 600; color: var(--brand); }
.page-numbers.current, a.page-numbers:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Bài viết */
.single-grid, .page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.page-grid { grid-template-columns: 280px minmax(0, 1fr); }
.single-main { min-width: 0; }
.single-meta { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 2px dashed var(--line); font-size: 14.5px; }
.single-side { position: sticky; top: 76px; display: grid; gap: 20px; }
.side-box, .side-nav { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.side-title { margin-bottom: 14px; font-size: 18px; }
.related { display: grid; gap: 14px; }
.related li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.related-thumb { overflow: hidden; border-radius: 10px; aspect-ratio: 1; background: var(--brand-soft); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-title { color: var(--heading); font-size: 15px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .related-title:hover { color: var(--brand-mid); }
.related time { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.side-contact { background: var(--brand-ultra); } .side-contact .contact-list { margin-bottom: 18px; } .side-contact .contact-list .ico { color: var(--accent); }
.side-nav ul { display: grid; gap: 4px; }
.side-nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.side-nav a:hover { background: var(--brand-ultra); color: var(--brand); }
.side-nav a[aria-current] { background: var(--brand); color: #fff; }
.video-frame { overflow: hidden; border-radius: var(--r-card); aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.single--video .single-main > p:not(.news-meta) { margin-top: 14px; }
.back-link { margin-top: 40px; }
.doc-meta th { width: 34%; background: var(--brand-ultra); color: var(--heading); font-weight: 600; }

/* Giới thiệu */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-copy .lead { margin-top: 14px; font-size: 19px; color: var(--ink); }
.about-logo { margin: 0; justify-self: center; padding: 18px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.about-logo img { width: min(260px, 60vw); }
.about-grid--home { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
/* Ảnh khối Giới thiệu trang chủ: một ảnh lớn trên, ba ảnh nhỏ dưới, dấu tròn "1991" ở góc. */
.about-collage { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 300px 150px; gap: 12px; }
.about-collage::before { content: ''; position: absolute; z-index: -1; right: -18px; top: -18px; width: 60%; height: 70%; border-radius: var(--r-panel); background: radial-gradient(var(--gold) 2px, transparent 2.5px) 0 0 / 16px 16px; opacity: .55; }
.about-collage figure { margin: 0; overflow: hidden; border-radius: var(--r-card); box-shadow: var(--shadow); }
.about-collage figure:first-child { grid-column: 1 / -1; border-radius: var(--r-panel); }
.about-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); } .about-collage figure:hover img { transform: scale(1.05); }
.about-badge { position: absolute; left: -16px; top: 248px; display: grid; place-content: center; width: 104px; height: 104px; border: 5px solid #fff; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; box-shadow: var(--shadow); transform: rotate(-8deg); }
.about-badge b { font-size: 27px; color: var(--gold); }
.life-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.life-grid li:first-child { grid-column: span 2; grid-row: span 2; }
.life-grid li:nth-child(6) { grid-column: span 2; }
.life-grid figure { position: relative; height: 100%; margin: 0; overflow: hidden; border-radius: var(--r-card); background: var(--brand-soft); }
.life-grid img { width: 100%; height: 100%; object-fit: cover; }
/* Rê chuột vào ảnh: ảnh phóng to nổi lên trên các ảnh khác để xem rõ. Góc neo theo vị trí ô để ảnh không tràn ra ngoài khung. */
@media (hover: hover) {
	.life-grid li { position: relative; z-index: 0; transition: z-index 0s .35s; }
	.life-grid figure { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
	.life-grid li:hover { z-index: 3; transition-delay: 0s; }
	.life-grid li:hover figure { transform: scale(1.3); box-shadow: 0 30px 60px -20px rgba(13, 33, 80, .6); }
}
@media (hover: hover) and (min-width: 1061px) {
	.life-grid li:hover figure { transform: scale(1.7); } .life-grid li:nth-child(6):hover figure { transform: scale(1.35); }
	.life-grid li:first-child:hover figure { transform: scale(1.25); transform-origin: left center; }
	.life-grid li:nth-child(2) figure { transform-origin: center top; } .life-grid li:nth-child(3) figure { transform-origin: right top; }
	.life-grid li:nth-child(4) figure { transform-origin: center; } .life-grid li:nth-child(5) figure { transform-origin: right center; }
	.life-grid li:nth-child(6) figure { transform-origin: left bottom; } .life-grid li:nth-child(7) figure { transform-origin: center bottom; } .life-grid li:nth-child(8) figure { transform-origin: right bottom; }
}
.life-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px; background: linear-gradient(transparent, rgba(13, 33, 80, .85)); color: #fff; font-weight: 600; font-size: 15.5px; }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.topic { display: grid; gap: 12px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--heading); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--heading); }
.topic-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold-soft); color: var(--accent); font-size: 24px; }
.topic-grid li:nth-child(even) .topic-icon { background: var(--brand-soft); color: var(--brand); }
/* Giá trị cốt lõi: 3 thẻ mỗi bên, giữa là ảnh (giống mnhoavang). */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value { --c: var(--gold); --c-soft: var(--gold-soft); position: relative; overflow: hidden; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 8px 12px; padding: 22px; border-radius: var(--r-card); background: radial-gradient(circle at 100% 0, rgba(255, 255, 255, .7) 0 46px, transparent 47px), var(--c-soft); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value:nth-child(3n+2) { --c: var(--brand); --c-soft: var(--brand-soft); } .value:nth-child(3n) { --c: var(--accent); --c-soft: var(--accent-soft); }
.value-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c); color: #fff; font-size: 24px; transform: rotate(-6deg); }
.value:nth-child(3n+1) .value-icon { color: var(--brand-deep); }
.value h3 { font-size: 21px; color: var(--heading); }
.value p { grid-column: 1 / -1; margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.value-art { position: relative; grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(100%, 520px); aspect-ratio: 1 / 1.05; }
.value-art-ring { position: absolute; inset: 4% 0; border: 3px dashed rgba(20, 48, 107, .25); border-radius: 50%; }
.value-art-ring::before, .value-art-ring::after { content: ''; position: absolute; width: 20px; aspect-ratio: 1; border-radius: 50%; }
.value-art-ring::before { left: 6%; top: 14%; background: var(--gold); } .value-art-ring::after { right: 8%; bottom: 12%; background: var(--accent); }
/* Ảnh hoạt động: ba khung ảnh dán nghiêng như album. */
.value-art img { position: absolute; z-index: 1; object-fit: cover; border: 6px solid #fff; border-radius: 18px; box-shadow: 0 18px 34px -18px rgba(13, 33, 80, .55); }
.value-art img:nth-child(2) { left: 4%; top: 14%; width: 58%; height: 76%; transform: rotate(-4deg); }
.value-art img:nth-child(3) { right: 2%; top: 3%; width: 46%; height: 42%; transform: rotate(5deg); }
.value-art img:nth-child(4) { right: 3%; bottom: 5%; width: 48%; height: 40%; transform: rotate(-2deg); }
/* Ảnh học sinh đã xóa nền: viền trắng bao theo dáng người. */
.value-art--cutout img { object-fit: contain; border: 0; border-radius: 0; box-shadow: none; transform: none; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff); }
.value-art--cutout img:nth-child(2) { left: 4%; top: auto; bottom: 0; width: auto; height: 92%; }
.value-art--cutout img:nth-child(3) { right: 2%; top: 4%; width: 46%; height: 44%; }
.value-art--cutout img:nth-child(4) { right: 2%; bottom: 2%; width: 46%; height: 44%; }
/* Desktop: 3 thẻ mỗi bên, ảnh ở giữa. Màn nhỏ hơn: ảnh lên đầu, thẻ 2 cột rồi 1 cột. */
@media (min-width: 1061px) {
	.values { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(3, auto); }
	.value:nth-child(-n+3) { grid-column: 1 / 5; } .value:nth-child(n+4):nth-child(-n+6) { grid-column: 9 / 13; }
	.value:nth-child(1), .value:nth-child(4) { grid-row: 1; } .value:nth-child(2), .value:nth-child(5) { grid-row: 2; } .value:nth-child(3), .value:nth-child(6) { grid-row: 3; }
	.value-art { grid-column: 5 / 9; grid-row: 1 / 4; justify-self: stretch; width: auto; aspect-ratio: auto; min-height: 460px; }
}
.check-list { display: grid; gap: 10px; margin: 20px 0 26px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 500; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .32em; width: 22px; height: 22px; background: var(--accent); -webkit-mask: url('../images/icons/check.svg') center / contain no-repeat; mask: url('../images/icons/check.svg') center / contain no-repeat; }
.topic b { font-size: 18px; } .topic-more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-mid); font-size: 14.5px; font-weight: 600; }
/* Trang Cơ sở vật chất */
.campus-tags { display: grid; gap: 8px; margin: 0 0 4px; padding: 0; list-style: none; }
.campus-tags li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--brand-ultra); font-size: 15.5px; } .campus-tags .ico { color: var(--accent); font-size: 20px; } .campus-tags b { color: var(--heading); }
.facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.facility { --c: var(--brand); --c-soft: var(--brand-soft); position: relative; overflow: hidden; display: grid; align-content: start; gap: 8px; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: radial-gradient(circle at 100% 0, var(--c-soft) 0 56px, transparent 57px), var(--surface); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.facility:nth-child(4n+2) { --c: var(--accent); --c-soft: var(--accent-soft); } .facility:nth-child(4n+3) { --c: var(--gold); --c-soft: var(--gold-soft); } .facility:nth-child(4n) { --c: var(--brand-mid); --c-soft: var(--brand-ultra); }
.facility:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.facility-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 16px; background: var(--c); color: #fff; font-size: 27px; transform: rotate(-6deg); transition: transform .3s var(--ease); }
.facility:nth-child(4n+3) .facility-icon { color: var(--brand-deep); } .facility:hover .facility-icon { transform: rotate(0) scale(1.05); }
.facility h3 { font-size: 19px; } .facility p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.campus-map { max-width: 1000px; margin: 0 auto; padding: clamp(10px, 1.6vw, 18px); border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; box-shadow: var(--shadow); }
.campus-map img { width: 100%; height: auto; border-radius: 12px; }
.campus-map figcaption { margin-top: 12px; color: var(--muted); font-size: 14.5px; text-align: center; }

/* Trang Thành tích nổi bật */
.award-ribbon { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--gold); color: var(--brand-deep); font-size: 13.5px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 6px 14px -8px rgba(13, 33, 80, .6); }
.award-feature { position: relative; margin: 0; overflow: hidden; border: 6px solid #fff; border-radius: var(--r-panel); box-shadow: var(--shadow); transform: rotate(1deg); transition: transform .4s var(--ease); }
.award-feature:hover { transform: rotate(0); }
.award-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.award-feature figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: start; gap: 4px; padding: 60px 22px 18px; background: linear-gradient(transparent, rgba(13, 33, 80, .9)); color: #dbe6f7; font-size: 14.5px; pointer-events: none; }
.award-feature figcaption b { color: #fff; font-size: 20px; }
.award-group--alt { background: linear-gradient(var(--brand-ultra), var(--brand-ultra)) center / 100% calc(100% - 40px) no-repeat; }
.award-group .section-title { display: flex; align-items: center; gap: 12px; padding-left: 0; } .award-group .section-title::before { display: none; }
.award-group-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 23px; transform: rotate(-6deg); }
.award-group--alt .award-group-icon { background: var(--brand); }
.award-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.award-card { display: grid; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.award-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.award-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-soft); }
.award-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); } .award-card:hover .award-thumb img { transform: scale(1.05); }
.award-thumb .award-ribbon { position: absolute; left: 12px; top: 12px; } figure.award-thumb { margin: 0; } .award-photo img { cursor: zoom-in; }
.award-body { display: grid; align-content: start; gap: 8px; padding: 16px 18px 20px; }
.award-body time { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.award-body h3 { font-size: 16.5px; line-height: 1.45; } .award-body h3 a { color: var(--heading); } .award-body h3 a:hover { color: var(--brand-mid); }

/* Trang Cơ cấu tổ chức: sơ đồ dạng cây, các tầng nối bằng nét đứt */
.org-chart { display: grid; justify-items: center; gap: 34px; max-width: 1040px; margin: 0 auto; }
.org-row { position: relative; display: flex; justify-content: center; width: 100%; }
.org-row + .org-row::before { content: ''; position: absolute; left: 50%; top: -34px; height: 34px; border-left: 3px dashed var(--line-hover); }
.org-node { display: grid; justify-items: center; gap: 4px; min-width: 190px; padding: 18px 22px; border: 1px solid var(--line); border-top: 4px solid var(--brand-mid); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.org-node > .ico { color: var(--brand-mid); font-size: 26px; } .org-node b { color: var(--heading); font-size: 17.5px; } .org-node span { color: var(--muted); font-size: 14px; }
.org-node--party { border-top-color: var(--accent); background: linear-gradient(var(--accent-soft), #fff); } .org-node--party > .ico { color: var(--accent); }
.org-node--lead { min-width: min(100%, 420px); border-top-color: var(--gold); background: linear-gradient(160deg, var(--brand-deep), var(--brand)); color: #dbe6f7; }
.org-node--lead > .ico { color: var(--gold); } .org-node--lead b { color: #fff; font-size: 20px; }
.org-node--lead ul { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 15px; } .org-node--lead strong { color: var(--gold); }
.org-row--split { gap: 28px; align-items: flex-start; }
/* Thanh ngang nối hai nhóm dưới Ban Giám hiệu */
.org-row--split::after { content: ''; position: absolute; left: 25%; right: 25%; top: -17px; border-top: 3px dashed var(--line-hover); }
.org-row--split::before { height: 17px !important; }
.org-group { position: relative; flex: 1; padding: 18px; border: 2px dashed var(--line); border-radius: var(--r-panel); background: var(--brand-ultra); }
.org-group::before { content: ''; position: absolute; left: 50%; top: -19px; height: 19px; border-left: 3px dashed var(--line-hover); }
.org-group-title { margin: 0 0 12px; color: var(--accent); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.org-nodes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; } .org-nodes .org-node { flex: 1; min-width: 140px; padding: 14px 12px; box-shadow: none; }
.units { grid-template-columns: repeat(3, 1fr); } .units .more-link { margin-top: 6px; }

/* Trang Giới thiệu */
.intro-stats { background: url("../images/deco-grid-light.svg") 0 0 / 84px 69px repeat, linear-gradient(160deg, var(--brand-deep), var(--brand) 70%); color: #c9d5ee; border-block: 4px solid var(--gold); }
.intro-stats-in { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: clamp(28px, 4vw, 44px); }
.intro-stats-in > div { display: grid; justify-items: center; gap: 4px; padding: 6px 16px; text-align: center; }
.intro-stats-in > div + div { border-left: 1px dashed rgba(255, 255, 255, .25); }
.intro-stats b { color: var(--gold); font-size: clamp(38px, 4.4vw, 54px); line-height: 1; }
.intro-stats span { font-size: 15px; font-weight: 500; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 30px 0 0; list-style: none; }
.timeline::before { content: ''; position: absolute; left: 6%; right: 6%; top: 9px; border-top: 3px dashed var(--line-hover); }
.timeline li { position: relative; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.timeline li::before { content: ''; position: absolute; left: 24px; top: -30px; width: 20px; height: 20px; border: 4px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.timeline li:nth-child(2)::before { background: var(--gold); box-shadow: 0 0 0 2px var(--gold); } .timeline li:nth-child(3)::before { background: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.timeline time { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--brand-ultra); color: var(--brand); font-size: 14px; font-weight: 700; }
.timeline h3 { margin-bottom: 8px; font-size: 20px; } .timeline p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.section-cta { margin: 28px 0 0; text-align: center; }
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.leader { display: grid; justify-items: center; gap: 4px; padding: 30px 20px 26px; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--r-card); background: radial-gradient(circle at 50% 0, var(--brand-ultra) 0 90px, transparent 91px), var(--surface); text-align: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.leader:first-child { border-top-color: var(--accent); } .leader:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.leader-avatar { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 10px; border: 4px solid #fff; border-radius: 50%; background: linear-gradient(150deg, var(--brand-mid), var(--brand-deep)); color: var(--gold); font-size: 34px; font-weight: 700; box-shadow: 0 10px 22px -12px rgba(13, 33, 80, .6); }
.leader h3 { font-size: 20px; } .leader p { margin: 0; color: var(--accent); font-weight: 600; }
.topic-text { color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.55; }
.address-places { display: grid; gap: 24px; }
.team-head { margin-top: clamp(40px, 5vw, 64px); }
.address-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.address-main { display: flex; gap: 20px; align-items: flex-start; }
.address-pin { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--brand); color: var(--gold); font-size: 28px; }
.address-title { font-size: clamp(22px, 2.4vw, 27px); margin-bottom: 6px; }
.address-text { margin: 0 0 18px; }
.address-facts { display: grid; gap: 10px; }
.address-facts li { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--brand-ultra); }
.address-facts .ico { flex: none; color: var(--brand); font-size: 22px; }
.address-facts span { display: grid; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.address-facts b { color: var(--heading); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.team-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.team-photos figure { margin: 0; overflow: hidden; border-radius: var(--r-panel); aspect-ratio: 3 / 2; }
.team-photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.team-photos img { width: 100%; height: 100%; object-fit: cover; }

/* Liên hệ */
.contact-home { padding: clamp(40px, 6vw, 72px) 0; }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); }
.contact-copy > p { color: var(--muted); max-width: 52ch; margin: 12px 0 26px; }
.kicker { margin: 0 0 8px; color: var(--accent); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.field { display: grid; gap: 6px; } .field--wide, .form-actions { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--heading); }
.field abbr { color: var(--accent); text-decoration: none; }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line-hover); border-radius: var(--r-input); background: var(--brand-ultra); font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { resize: vertical; min-height: 96px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 0; min-height: 1.5em; font-weight: 600; } .form-note.is-ok { color: var(--success); } .form-note.is-loi { color: var(--error); }
.contact-card { display: grid; justify-items: start; gap: 14px; padding: 28px; border-radius: var(--r-card); background: linear-gradient(150deg, var(--brand-deep), var(--brand)); color: #d6e0f3; }
.contact-card .brand-logo { width: 72px; height: 72px; background: #fff; }
.contact-card h3 { color: #fff; font-size: 20px; }
.contact-card .contact-list a { color: #fff; }
.contact-card .btn--outline { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; } .contact-card .btn--outline:hover { border-color: #fff; }
.info { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.info-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 14px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 22px; }
.info h2, .info h3 { font-size: 19px; margin-bottom: 8px; } .info p { margin: 0 0 6px; font-size: 15.5px; color: var(--muted); }
.info p a { overflow-wrap: anywhere; color: var(--brand-mid); font-weight: 600; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.info-stack { display: grid; gap: 20px; }
.info-stack .info { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; }
.info-stack .info-icon { margin-bottom: 0; } .info-stack .info h2 { margin-bottom: 2px; }
.place-list { display: grid; gap: 14px; }
.place-list li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; }
.place-list b { grid-column: 1 / -1; color: var(--heading); }
.place-list span { color: var(--muted); font-size: 15.5px; }
.place-list a { align-self: center; padding: 6px 14px; border: 1px solid var(--line-hover); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; white-space: nowrap; }
.maps { display: grid; gap: 20px; margin-top: 36px; }
.maps h2 { font-size: 20px; } .maps p { margin: 4px 0 12px; color: var(--muted); font-size: 15px; }
.map { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--brand-soft); }

/* Nét vẽ tay trang trí (ảnh trong images/deco), chỉ hiện trên màn rộng. */
.news::after, .media::after, .boards::before, .activities::before { content: ''; position: absolute; z-index: -1; pointer-events: none; background: center / contain no-repeat; display: none; }
@media (min-width: 1360px) {
	.news::after, .media::after, .boards::before, .activities::before { display: block; }
	.news::after { right: 0; top: 10px; width: 300px; aspect-ratio: 688 / 446; background-image: url("../images/deco/doodle-plane.png"); opacity: .8; }
	.activities::before { left: 1vw; top: 30px; width: 96px; aspect-ratio: 127 / 101; background-image: url("../images/deco/doodle-123.png"); z-index: 0; }
	.boards::before { right: 1.5vw; bottom: 30px; width: 84px; aspect-ratio: 114 / 113; background-image: url("../images/deco/doodle-ruler.png"); }
	.media::after { left: 0; bottom: 10px; width: 240px; aspect-ratio: 318 / 156; background-image: url("../images/deco/doodle-book.png"); }
}
main { position: relative; isolation: isolate; }

/* Nội dung bài viết */
.prose { font-size: 18px; } .prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { color: var(--heading); margin-top: 1.6em; } .prose h2 { font-size: 28px; } .prose h3 { font-size: 22px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; } .prose ul { list-style: disc; padding-left: 1.4em; } .prose ol { padding-left: 1.4em; }
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; border-radius: 12px; }
/* Ảnh trong bài: giữ tỉ lệ thật (dọc hoặc ngang), không kéo giãn quá kích thước gốc, ảnh dọc hiện đủ chiều cao. Emoji dán từ Facebook vẫn nằm trong dòng chữ. */
.prose figure { margin: 1.6em 0; }
.prose figure img, .prose p > img:only-child, .prose img[class*="wp-image-"] { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; }
/* Khung đọc PDF (plugin PDF.js): iframe bị height:auto ở trên nên chỉ còn 150px; ép chiều cao đủ đọc, ghi đè cả style inline của plugin. */
.prose iframe[src*="pdf"] { width: 100%; height: 90vh !important; min-height: 720px; }
/* Video/playlist (MediaElement): player gán inline width/height theo video gốc (640x360) nên tràn khung trên mobile; ép co theo khung, giữ tỉ lệ 16:9. */
.prose .wp-playlist, .prose .mejs-container, .prose .mejs-container .mejs-inner, .prose .wp-video { width: 100% !important; max-width: 100% !important; }
.prose .mejs-container { height: auto !important; aspect-ratio: 16 / 9; }
.prose .mejs-container video, .prose .mejs-container .mejs-mediaelement, .prose .mejs-container .mejs-layer { width: 100% !important; height: 100% !important; }
.prose .wp-video-playlist .wp-playlist-tracks { max-height: 220px; overflow-y: auto; }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; text-align: center; }
/* Thư viện ảnh [gallery]: WordPress tự chèn <style> riêng theo id (#gallery-N: float, width 50%, viền, <br clear>) nên phải ghi đè bằng !important.
   Dùng cột kiểu masonry để ảnh dọc và ngang đều giữ đúng tỉ lệ, không bị ép cùng một khung. Số cột theo người soạn bài chọn; mobile tối đa 2 cột. */
.prose .gallery { display: block; column-count: 3; column-gap: 16px; margin: 1.6em 0; }
.prose .gallery-columns-1 { column-count: 1; } .prose .gallery-columns-2 { column-count: 2; } .prose .gallery-columns-3 { column-count: 3; }
.prose .gallery-columns-4, .prose .gallery-columns-5, .prose .gallery-columns-6 { column-count: 4; }
.prose .gallery > br { display: none; }
.prose .gallery .gallery-item { float: none !important; width: auto !important; margin: 0 0 16px !important; break-inside: avoid; }
.prose .gallery dl, .prose .gallery dt, .prose .gallery dd { margin: 0; }
.prose .gallery-icon a { display: block; }
.prose .gallery-icon img { display: block; width: 100%; max-height: none; margin: 0; border: 0 !important; }
.prose .gallery-columns-1 .gallery-icon img { width: auto; margin-inline: auto; }
.prose .gallery .gallery-caption { margin: 6px 0 0 !important; color: var(--muted); font-size: 14px; text-align: center; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-items: start; margin: 1.6em 0; }
.prose .wp-block-gallery figure { margin: 0; } .prose .wp-block-gallery img { width: 100%; max-height: none; }
@media (max-width: 720px) { .prose .gallery-columns-3, .prose .gallery-columns-4, .prose .gallery-columns-5, .prose .gallery-columns-6 { column-count: 2; } }
.prose blockquote { margin: 1.4em 0; padding: 18px 24px; border-left: 4px solid var(--gold); border-radius: 0 var(--r-card) var(--r-card) 0; background: var(--brand-ultra); }
.prose table { width: 100%; border-collapse: collapse; } .prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.alignleft { float: left; margin: 0 1.2em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.2em; } .aligncenter { margin-inline: auto; }
.back-link { margin-top: 44px; }

/* Xem ảnh album phóng to */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 16px; border: 0; background: rgba(8, 18, 42, .94); color: #fff; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(8, 18, 42, .94); }
.lightbox img { justify-self: center; max-width: 100%; max-height: calc(100vh - 90px); border-radius: 8px; object-fit: contain; }
.lightbox button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; }
.lightbox .lb-count { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 14px; color: #c9d5ee; }
.lightbox.lb-single .lb-prev, .lightbox.lb-single .lb-next { visibility: hidden; }
.life-grid figcaption, .about-badge { pointer-events: none; }
img.zoomable { cursor: zoom-in; } img.zoomable:focus-visible { outline-offset: -4px; }

/* Chuyển động: nội dung luôn hiện; hiệu ứng chỉ bật khi JS đã chạy. */
.reveal-ready .rv:not(.in) { opacity: 0; }
.rv.in { opacity: 1; animation: rise .6s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: no-preference) {
	.tab-panel:not([hidden]) .mini-card { animation: rise .45s var(--ease) both; }
	.tab-panel .mini-card:nth-child(2) { animation-delay: .05s; } .tab-panel .mini-card:nth-child(3) { animation-delay: .1s; } .tab-panel .mini-card:nth-child(4) { animation-delay: .15s; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Màn hình vừa: menu thu vào nút */
@media (max-width: 1180px) {
	.nav .menu > li > a { padding: 0 9px; font-size: 14.5px; }
	/* Mũi tên slider nằm trong lề màn hình: chừa chỗ để không đè lên chữ banner. */
	.slide-content { padding-inline: 72px; }
}
@media (max-width: 1060px) {
	.notice-date small, .boards .notice-date small { font-size: 12px; }
	.facts-in { grid-template-columns: repeat(2, 1fr); }
	.topbar-address { display: none; } .topbar-right { width: 100%; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
	.nav-toggle { display: grid; }
	.nav { position: absolute; left: 0; right: 0; top: 100%; display: none; margin: 0; background: var(--brand); border-top: 3px solid var(--gold); box-shadow: 0 16px 24px -18px rgba(13, 33, 80, .45); }
	.nav.open { display: block; max-height: calc(100vh - 80px); overflow-y: auto; }
	.nav .menu { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
	.nav .menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.nav .menu > li > a { flex: 1; height: 50px; padding: 0 12px; font-size: 16px; }
	.nav .menu > li.menu-item-has-children > a::after { display: none; }
	.sub-toggle { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; background: none; color: #fff; font-size: 18px; transition: transform .2s; }
	.sub-toggle[aria-expanded="true"] { transform: rotate(180deg); }
	.sub-menu { position: static; flex-basis: 100%; min-width: 0; margin: 0 0 10px; padding: 4px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
	.sub-menu.open { display: block; }
	.sub-menu a { color: #dbe4f5; } .sub-menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
	.news-home { grid-template-columns: 1fr 1fr; }
	.news-tile--lead { grid-column: 1 / -1; grid-row: auto; }
	.news-tile--lead .news-thumb { aspect-ratio: 16 / 9; min-height: 0; }
	.card-row { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.topic-grid { grid-template-columns: repeat(2, 1fr); }
	.award-grid { grid-template-columns: repeat(2, 1fr); }
	.facilities { grid-template-columns: repeat(2, 1fr); }
	.org-row--split { flex-direction: column; gap: 34px; } .org-row--split::after { display: none; } .org-row--split::before { height: 34px !important; } .org-group + .org-group::before { top: -36px; height: 36px; }
	.intro-stats-in { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } .intro-stats-in > div:nth-child(3) { border-left: 0; }
	.timeline { grid-template-columns: 1fr; padding: 0 0 0 34px; } .timeline::before { left: 9px; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 3px dashed var(--line-hover); } .timeline li::before { left: -34px; top: 26px; }
	.leaders { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
	.life-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } .life-grid li:nth-child(6) { grid-column: auto; } .life-grid li:last-child:nth-child(even) { grid-column: 1 / -1; }
	.about-collage { grid-template-rows: 260px 130px; } .about-badge { top: 208px; left: -8px; }
	.links-in { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.facts-in { gap: 12px; }
	.boards-grid, .media-grid, .contact-panel, .contact-layout, .address-panel, .single-grid, .page-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
	.single-side { position: static; }
	.news-archive { grid-template-columns: 1fr; }
	.album-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
	.form { grid-template-columns: 1fr; }
	.about-logo { order: -1; } .about-logo img { width: 180px; }
}
@media (max-width: 640px) {
	.facts-in { grid-template-columns: 1fr; }
	body { font-size: 16px; }
	.wrap, .wrap--narrow { width: calc(100% - 32px); }
	.topbar-in { min-height: 44px; gap: 10px; } .topbar-address { display: flex; min-width: 0; flex: 1; font-size: 14px; } .topbar-address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .topbar-right { flex: none; width: auto; } .topbar-right .topbar-item { display: none; }
	.navbar-in { min-height: 60px; } .brand-badge { width: 84px; height: 84px; border-width: 4px; } .brand { margin-bottom: -26px; }
	.hero h1, .hero .slide-title { font-size: 32px; } .hero-sub { font-size: 16.5px; }
	.hero { height: auto; min-height: 500px; } .slide { position: relative; display: none; padding: 60px 0 120px; } .slide.active { display: flex; } .slider-arrow { display: none; } .slide-content { padding-inline: 0; }
	.section-head--row { flex-direction: column; align-items: flex-start; gap: 8px; }
	.tab-list, .chips { flex-wrap: nowrap; justify-content: flex-start; margin-inline: -16px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; }
	.tab, .chips a { flex: none; white-space: nowrap; }
	.news-home, .card-row { grid-template-columns: 1fr; }
	.news-tile:not(.news-tile--lead) { grid-template-columns: 120px 1fr; align-items: center; }
	.news-tile:not(.news-tile--lead) .news-thumb { aspect-ratio: 4 / 3; }
	.mini-card { grid-template-columns: 120px 1fr; column-gap: 14px; } .mini-card .mini-thumb { grid-row: span 2; aspect-ratio: 4 / 3; }
	.activities .mini-card time { position: static; justify-self: start; padding: 0; background: none; box-shadow: none; color: var(--muted); } .activities .mini-card h3 { padding-inline: 0; }
	.activities .tab-list { width: auto; margin-inline: -16px; border-radius: 0; border-inline: 0; }
	.album-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
	.news-card { grid-template-columns: 1fr; }
	.album-grid, .video-grid { grid-template-columns: 1fr; }
	.footer-grid, .topic-grid { grid-template-columns: 1fr; }
	.slide::after, .slide--right::after { background: linear-gradient(180deg, rgba(13, 33, 80, .4), rgba(13, 33, 80, .62) 70%); }
	.link-logos { grid-template-columns: repeat(2, 1fr); }
	.award-grid { grid-template-columns: 1fr; }
	.facilities { grid-template-columns: 1fr; }
	.leaders { grid-template-columns: 1fr; } .intro-stats span { font-size: 13.5px; }
	.values { grid-template-columns: 1fr; }
	.about-collage { grid-template-rows: 210px 96px; gap: 8px; } .about-collage::before { right: -8px; top: -8px; } .about-badge { top: 150px; left: auto; right: 8px; width: 84px; height: 84px; font-size: 12px; } .about-badge b { font-size: 21px; }
	.life-grid { grid-template-columns: 1fr; } .life-grid li:first-child { grid-column: auto; grid-row: auto; }
	.file-row { grid-template-columns: auto 1fr; } .file-row .btn { grid-column: 2; justify-self: start; }
	.file-card { grid-template-columns: auto 1fr; } .file-card .btn { grid-column: 1 / -1; justify-self: start; }
	.doc-tr { grid-template-columns: 1fr; gap: 4px; } .doc-th { display: none; }
	.prose { font-size: 16.5px; }
	.team-photos { grid-template-columns: 1fr; } .team-photos figure:first-child { aspect-ratio: 3 / 2; }
	.address-main { flex-direction: column; }
}
