/* Tin tức: banner chuyên mục, lưới thẻ và bố cục đọc bài theo mẫu tham khảo. */
.news-layout { --news-teal:#264c5d; --news-gold:#8b5b19; color:#484338; }
.news-layout .container { width:min(100% - 2 * var(--gutter),1200px); }
.news-hero { position:relative; background:#eee9df url('/wp-content/uploads/2026/11/xay-dung-nagawa-1536x860.jpg') center 48%/cover no-repeat; isolation:isolate; }
.news-hero::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(255,255,255,.94),rgba(255,255,255,.7) 58%,rgba(255,255,255,.18)); }
.news-hero>.container { min-height:270px; display:flex; flex-direction:column; justify-content:center; position:relative; padding-top:35px; padding-bottom:70px; }
.news-hero h1,.news-hero__label { margin:0 0 15px; font-family:var(--font-display); font-size:32px; line-height:1.3; font-weight:700; text-transform:uppercase; color:var(--news-teal); }
.news-breadcrumb { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 8px; font-size:13px; line-height:1.7; max-width:900px; }
.news-breadcrumb a { color:var(--news-teal); }
.news-breadcrumb [aria-current] { color:#555; }
.news-hero__contact { position:absolute; bottom:20px; right:0; font-size:18px; font-weight:700; color:var(--news-teal); text-align:right; background:rgba(255,255,255,.86); padding:9px 16px; border-radius:3px; }
.news-hero__contact span { display:block; font-size:12px; font-weight:400; color:var(--news-gold); }
.news-reading { padding-top:38px; padding-bottom:40px; }
.news-single-head h1 { margin:0; padding-bottom:15px; border-bottom:1px solid #d9d4cc; font-family:var(--font-display); color:var(--news-teal); font-size:29px; font-weight:700; line-height:1.45; }
.news-date { display:flex; flex-wrap:wrap; gap:18px; margin:10px 0 17px; font-size:13px; color:#777; }
.news-gallery { position:relative; margin-bottom:12px; }
.news-gallery__track { display:flex; list-style:none; margin:0; padding:0; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; scroll-behavior:smooth; }
.news-gallery__track::-webkit-scrollbar { display:none; }
.news-gallery__track li { flex:0 0 100%; min-width:0; scroll-snap-align:start; background:#f3f1ed; }
.news-gallery__image { display:block; width:100%; max-height:740px; height:auto; object-fit:contain; margin:0 auto; }
.news-gallery__prev,.news-gallery__next { display:none; position:absolute; top:45%; width:40px; height:55px; border:0; background:rgba(255,255,255,.85); color:var(--news-teal); font-size:32px; cursor:pointer; }
.news-gallery[data-ready] .news-gallery__prev,.news-gallery[data-ready] .news-gallery__next { display:block; }
.news-gallery__prev { left:12px; }.news-gallery__next { right:12px; }
.news-gallery__count { position:absolute; bottom:12px; right:14px; border-radius:3px; padding:5px 10px; background:rgba(0,0,0,.65); color:#fff; font-size:12px; }
.news-cover-caption { font-style:italic; color:#777; text-align:center; font-size:13px; }
.news-summary { font-size:17px; line-height:1.9; font-weight:500; margin:24px 0; }
.news-entry { font-size:16px; line-height:1.9; margin:25px 0; overflow-wrap:anywhere; }
.news-entry p { margin:0 0 20px; }
.news-entry h2,.news-entry h3,.news-entry h4 { font-family:var(--font-display); color:var(--news-teal); line-height:1.5; margin:30px 0 16px; scroll-margin-top:125px; }
.news-entry h2 { font-size:24px; }.news-entry h3 { font-size:20px; }.news-entry h4 { font-size:18px; }
.news-entry img { max-width:100%; height:auto; margin:15px auto; }
.news-entry figure,.news-entry .wp-caption { max-width:100%; margin:26px auto; }
.news-entry figcaption,.news-entry .wp-caption-text { font-size:13px; line-height:1.7; text-align:center; color:#777; margin-top:8px; }
.news-entry ul,.news-entry ol { padding-left:24px; margin:15px 0 25px; }.news-entry li { margin:6px 0; }
.news-entry blockquote { border-left:3px solid #c8b29b; padding:18px 25px; margin:25px 0; background:#f7f4ee; }
.news-entry table { width:100%; border-collapse:collapse; margin:25px 0; font-size:14px; }
.news-entry th,.news-entry td { border:1px solid #ddd; padding:12px; text-align:left; vertical-align:top; }.news-entry th { background:#f3efe7; color:var(--news-teal); }
.news-table-scroll { overflow-x:auto; margin:25px 0; }.news-table-scroll table { min-width:520px; margin:0; }
.news-entry iframe { max-width:100%; }
.news-entry #ez-toc-container,.news-toc { width:100%; background:#f7f7f5; border:1px solid #ddd8cf; border-radius:4px; padding:20px 24px; margin:25px 0; box-shadow:none; }
.news-entry #ez-toc-container a,.news-toc a { color:var(--news-teal); text-decoration:none; }
.news-toc summary { font-weight:700; cursor:pointer; color:var(--news-teal); }.news-toc ol { margin-bottom:0; font-size:14px; }
.news-toc .news-toc__sub { margin-left:18px; }
.news-specs { display:grid; grid-template-columns:repeat(4,1fr); margin:25px 0; border:1px solid #e3ded5; background:#f8f7f3; }
.news-specs>div { padding:17px 20px; border-right:1px solid #e3ded5; }.news-specs>div:last-child { border:0; }
.news-specs dt { font-size:12px; color:#888; }.news-specs dd { margin:4px 0 0; color:var(--news-teal); font-size:15px; font-weight:600; }
.news-tags { display:flex; flex-wrap:wrap; gap:8px; margin:25px 0; }.news-tags a { padding:5px 12px; background:#f2efea; color:var(--news-teal); font-size:12px; }
.news-share { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:25px 0 35px; padding:18px 0; border-top:1px solid #eee; font-size:13px; }
.news-share a,.news-share button { border:1px solid #ddd8cf; background:#fff; padding:7px 12px; border-radius:3px; color:var(--news-teal); font-size:13px; cursor:pointer; }.news-share__status { color:var(--news-gold); }
.news-archive__body { padding-top:28px; padding-bottom:30px; }
.news-topics { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 30px; }.news-topics a { display:block; padding:8px 14px; border:1px solid #ded9d0; border-radius:3px; font-size:13px; color:var(--news-teal); }
.news-topics a[aria-current],.news-topics a:hover { background:var(--news-teal); color:#fff; border-color:var(--news-teal); }
.news-archive__intro { font-size:15px; line-height:1.9; margin:0 0 28px; }
.news-archive__heading { display:flex; justify-content:space-between; align-items:center; margin:0 0 25px; padding-bottom:14px; border-bottom:1px solid #ded9d0; gap:15px; }
.news-archive__heading h2 { font-family:var(--font-display); font-size:24px; color:var(--news-teal); text-transform:uppercase; margin:0; }.news-archive__heading p { font-size:13px; color:#888; margin:0; white-space:nowrap; }
.news-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:35px 25px; }
.news-card { min-width:0; }.news-card__image { display:block; position:relative; overflow:hidden; background:#f0eeea; }
.news-card__media { aspect-ratio:4/3; width:100%; display:block; overflow:hidden; }.news-card__media img { width:100%; height:100%; object-fit:cover; transition:transform .25s; }
.news-card__image>.news-card__more { position:absolute; bottom:0; left:0; right:0; display:flex; justify-content:space-between; padding:10px 14px; background:var(--news-teal); color:#fff; font-size:12px; transform:translateY(100%); transition:transform .2s; }
.news-card__image:hover>span,.news-card__image:focus-visible>span { transform:none; }.news-card__image:hover img { transform:scale(1.04); }
.news-card h2,.news-card h3 { font-size:16px; font-weight:700; line-height:1.5; margin:12px 0 8px; color:var(--news-teal); }.news-card h2 a,.news-card h3 a { color:inherit; }
.news-card__date,.news-card__meta { font-size:12px; color:#888; margin:0; line-height:1.8; }.news-card__meta { list-style:none; padding:0; }.news-card__excerpt { font-size:13px; line-height:1.8; color:#666; margin:7px 0 0; }
.news-pagination { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:35px 0; }.news-pagination .page-numbers { padding:8px 13px; border:1px solid #ddd; color:var(--news-teal); }.news-pagination .current { color:#fff; background:var(--news-teal); }
.news-empty { text-align:center; padding:50px 15px; background:#f8f7f3; }.news-empty h3 { color:var(--news-teal); }.news-empty p { margin:12px 0; font-size:14px; }.news-empty a { font-weight:600; color:var(--news-gold); }
.news-consult { padding:32px; margin:45px 0; background:#f7f5f0; border-top:3px solid #c8b29b; scroll-margin-top:120px; }
.news-consult h2,.news-related>h2 { font-family:var(--font-display); font-size:24px; line-height:1.45; margin:0 0 13px; color:var(--news-teal); }.news-consult>p { font-size:14px; line-height:1.8; margin-bottom:22px; }
.news-form-row { display:grid; grid-template-columns:1fr 1fr; gap:20px; }.news-consult label { display:block; font-size:13px; color:var(--news-teal); margin-bottom:18px; }.news-consult label>span { color:var(--news-gold); }
.news-consult input:not([type=hidden]),.news-consult textarea { display:block; margin-top:7px; width:100%; padding:12px 14px; background:#fff; border:1px solid #ddd8cf; border-radius:3px; font-size:14px; font-family:inherit; color:#444; }.news-consult textarea { resize:vertical; }
.news-form-actions { display:flex; flex-wrap:wrap; align-items:center; gap:20px; }.news-form-actions button { padding:12px 24px; background:var(--news-teal); border:0; border-radius:3px; color:#fff; font-size:14px; font-weight:600; cursor:pointer; }.news-form-actions button span { margin-left:20px; }.news-form-actions a { font-size:13px; color:var(--news-teal); text-decoration:underline; }
.news-honeypot { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }.news-notice { padding:12px; border:1px solid #c8b29b; }
.news-related { margin:45px 0 10px; }.news-related>h2 { border-bottom:1px solid #ddd8cf; padding-bottom:15px; margin-bottom:25px; }
@media(max-width:1024px) { .news-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }.news-specs { grid-template-columns:repeat(2,1fr); }.news-hero>.container { min-height:240px; } }
@media(max-width:768px) {
 .news-hero>.container { min-height:225px; padding-top:26px; padding-bottom:65px; }.news-hero h1,.news-hero__label { font-size:26px; }.news-breadcrumb { font-size:12px; }.news-hero__contact { font-size:15px; bottom:16px; }.news-hero__contact span { font-size:11px; }
 .news-reading { padding-top:25px; }.news-single-head h1 { font-size:24px; }.news-entry { font-size:15px; line-height:1.85; }.news-entry h2 { font-size:21px; }.news-entry h3 { font-size:18px; }.news-entry h2,.news-entry h3,.news-entry h4 { scroll-margin-top:145px; }
 .news-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 16px; }.news-card h2,.news-card h3 { font-size:14px; }.news-card__excerpt { font-size:12px; }.news-card__image>.news-card__more { display:none; }
 .news-topics { flex-wrap:nowrap; overflow-x:auto; padding-bottom:8px; margin-bottom:22px; }.news-topics a { white-space:nowrap; }
 .news-archive__heading h2 { font-size:21px; }.news-gallery__prev,.news-gallery__next { width:32px; height:42px; font-size:25px; }.news-gallery__prev { left:6px; }.news-gallery__next { right:6px; }
 .news-entry #ez-toc-container,.news-toc { padding:17px; }.news-consult { padding:23px 18px; margin:32px 0; }.news-form-row { grid-template-columns:1fr; gap:0; }.news-consult h2,.news-related>h2 { font-size:21px; }.news-specs>div { padding:13px; }.news-specs dd { font-size:13px; }
}
@media(prefers-reduced-motion:reduce) { .news-gallery__track { scroll-behavior:auto; }.news-card__media img,.news-card__image>.news-card__more { transition:none; } }

/* Mục lục được hiển thị ngay sau slide, không phụ thuộc JavaScript. */
.news-entry #ez-toc-container, .news-entry .lwptoc { display:none !important; }
.news-gallery, #news-article-content { scroll-margin-top:145px; }
.news-gallery__track li { display:flex; align-items:center; justify-content:center; }
.news-gallery__image { height: min(56vw, 640px); width:100%; object-fit:contain; }
.news-toc summary { font-size:17px; }
.news-toc ol { line-height:1.85; padding-left:23px; margin-top:15px; }
.news-toc li { padding:3px 0; }
@media(max-width:768px) { .news-gallery__image { height:260px; } .news-toc summary { font-size:16px; } }

.news-toc ol { list-style:none; padding-left:0; }

/* Album: ảnh lớn + dải ảnh nhỏ, đồng bộ khung chọn và bộ đếm. */
.news-gallery__stage { position:relative; background:#f5f4f1; aspect-ratio:3 / 2; }
.news-gallery__track { height:100%; }
.news-gallery__track li { height:100%; }
.news-gallery .news-gallery__image { width:100%; height:100%; max-height:none; object-fit:contain; margin:0; }
.news-gallery__stage .news-gallery__count { bottom:13px; right:13px; border-radius:20px; padding:6px 12px; }
.news-gallery__stage .news-gallery__prev,.news-gallery__stage .news-gallery__next { top:calc(50% - 24px); width:38px; height:48px; }
.news-gallery__thumbs-wrap { position:relative; margin-top:10px; }
.news-gallery__thumbs { display:flex; position:relative; gap:12px; overflow-x:auto; scrollbar-width:none; padding:0; scroll-behavior:smooth; }
.news-gallery__thumbs::-webkit-scrollbar { display:none; }
.news-gallery__thumb { display:block; flex:0 0 calc((100% - 72px) / 7); min-width:0; padding:0; margin:0; border:3px solid transparent; background:#f2f1ee; aspect-ratio:4 / 3; cursor:pointer; overflow:hidden; }
.news-gallery__thumb img { display:block; width:100%; height:100%; object-fit:cover; margin:0; }
.news-gallery__thumb.is-active { border-color:#2c62e9; }
.news-gallery__thumb:focus-visible { outline:2px solid #264c5d; outline-offset:2px; }
.news-gallery__strip-prev,.news-gallery__strip-next { display:none; position:absolute; top:calc(50% - 16px); z-index:2; width:32px; height:32px; border:0; border-radius:50%; background:rgba(35,35,35,.65); color:#fff; font-size:28px; line-height:1; cursor:pointer; }
.news-gallery[data-ready] .news-gallery__strip-prev,.news-gallery[data-ready] .news-gallery__strip-next { display:flex; align-items:center; justify-content:center; }
.news-gallery__strip-prev { left:2px; }.news-gallery__strip-next { right:2px; }
@media(max-width:768px) {
 .news-gallery__thumbs { gap:7px; }
 .news-gallery__thumb { flex-basis:calc((100% - 21px) / 4); border-width:2px; }
 .news-gallery__stage .news-gallery__prev,.news-gallery__stage .news-gallery__next { width:30px; height:40px; top:calc(50% - 20px); }
 .news-gallery__strip-prev,.news-gallery__strip-next { width:26px; height:26px; top:calc(50% - 13px); font-size:24px; }
}
@media(prefers-reduced-motion:reduce) { .news-gallery__thumbs { scroll-behavior:auto; } }
