/* ==========================================================================
   Trường Tiểu học Nguyễn Bỉnh Khiêm - Đắk Lắk
   Giao diện CỔNG THÔNG TIN | Tông ĐỎ theo mẫu Hoàng Việt (#0a5aa8)
   ========================================================================== */

:root {
  /* ĐỒNG BỘ BRAND GUIDELINE NBK — màu chuẩn */
  --primary: #105FAD;        /* Xanh chủ đạo #105FAD */
  --primary-2: #3b7fc9;
  --primary-dark: #0c4a87;
  --maroon: #0a3a6b;
  --primary-soft: #e8f1fb;
  --accent: #FBC411;         /* Vàng #FBC411 */
  --brand-yellow: #FBC411;
  --brand-red: #CA212D;      /* Đỏ #CA212D */
  --brand-orange: #F36C21;   /* Cam #F36C21 */
  --ink: #2c2c2c;
  --muted: #6b6b6b;
  --line: #dbe6ef;
  --white: #ffffff;

  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 5px 18px rgba(16,50,80, 0.08);
  --shadow: 0 14px 36px rgba(16,50,80, 0.15);
  --container: 1200px;
  --transition: 0.3s ease;
  --font: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { line-height: 1.28; font-weight: 700; color: var(--ink); }
/* Brand: tiêu đề lớn dùng Montserrat Black (800/900) */
.hero-content h1, .page-banner h1, .cta-image h2 { font-weight: 900; }
.sec-title h2, .b-title, .rel-title, .msg-panel h3, .feat-text h2, .band-text h2 { font-weight: 800; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #e8f0f6; }
::-webkit-scrollbar-thumb { background: #a9cbe4; border-radius: 10px; border: 3px solid #e8f0f6; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(16,95,173, 0.4); outline-offset: 2px; }

/* --- Nút --- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 0 26px; height: 48px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14.5px; cursor: pointer; border: 2px solid transparent; transition: var(--transition); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.3px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--primary); color: #fff; }
.btn-accent:hover { background: var(--primary-dark); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost-white:hover { background: #fff; color: var(--primary); }

.more-link { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.4px; transition: var(--transition); }
.more-link svg { width: 16px; height: 16px; fill: currentColor; transition: var(--transition); }
.more-link:hover { color: var(--primary-dark); }
.more-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   HEADER - trắng, menu in hoa, hover đỏ (kiểu cổng thông tin)
   ========================================================================== */
.topbar { display: none; }  /* Hoàng Việt không dùng topbar */

.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 2px solid var(--primary); transition: var(--transition); }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 84px; max-width: 1380px; padding-left: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 58px; width: auto; }
.brand-text strong { display: block; color: var(--primary); font-size: 18px; font-weight: 900; line-height: 1.12; white-space: nowrap; text-transform: uppercase; }
.brand-text small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.brand-text .bt-top { color: var(--muted); font-size: 10.5px; letter-spacing: 1.5px; margin-bottom: 1px; }
.brand-text .bt-slogan { color: var(--brand-orange); font-size: 10px; letter-spacing: 0.3px; text-transform: none; font-style: italic; font-weight: 600; margin-top: 2px; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: flex; align-items: center; gap: 5px; padding: 0 14px; height: 40px; line-height: 40px; font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.2px; color: var(--ink); position: relative; white-space: nowrap; transition: var(--transition); }
.nav-list > li > a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.28s ease; }
.nav-list > li:hover > a, .nav-list > li.active > a { color: var(--primary); }
.nav-list > li:hover > a::after, .nav-list > li.active > a::after { transform: scaleX(1); }
.nav-list .caret { width: 12px; height: 12px; fill: currentColor; transition: var(--transition); }
.nav-list li:hover .caret { transform: rotate(180deg); }

.dropdown { position: absolute; top: calc(100% + 9px); left: -8px; min-width: 246px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: 11px; box-shadow: 0 18px 44px rgba(16,50,80,0.17); padding: 9px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--transition); }
.dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.dropdown::after { content: ''; position: absolute; top: -7px; left: 26px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.nav-list li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 13.5px; font-weight: 500; color: var(--ink); border-radius: 8px; transition: var(--transition); }
.dropdown li a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #c6d5e6; flex-shrink: 0; transition: var(--transition); }
.dropdown li a:hover { background: var(--primary-soft); color: var(--primary); }
.dropdown li a:hover::before { background: var(--primary); transform: scale(1.4); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { height: 40px; padding: 0 18px; font-size: 13px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--primary); border-radius: 3px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   HERO - ảnh tràn viền
   ========================================================================== */
.hero { position: relative; }
.hero-slider { position: relative; width: 100%; aspect-ratio: 2000 / 772; }
.hero-slide { background-size: cover; background-position: center; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 72%, rgba(8,44,72,0.28)); }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-content { max-width: 620px; color: #fff; }
.hero-content .tagline { display: inline-block; background: var(--primary); color: #fff; padding: 7px 18px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 20px; }
.hero-content h1 { color: #fff; font-size: clamp(28px, 4.4vw, 50px); line-height: 1.15; margin-bottom: 18px; text-shadow: 0 2px 18px rgba(0,0,0,0.3); }
.hero-content h1 span { color: #FBC411; }
.hero-content p { font-size: clamp(15px, 1.6vw, 18px); opacity: 0.96; margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-slide.active .hero-content > * { animation: heroUp 0.8s both; }
.hero-slide.active .tagline { animation-delay: 0.1s; }
.hero-slide.active h1 { animation-delay: 0.24s; }
.hero-slide.active p { animation-delay: 0.38s; }
.hero-slide.active .hero-actions { animation-delay: 0.52s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 9px; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.85); background: transparent; cursor: pointer; transition: var(--transition); }
.hero-dots button.active { background: #fff; width: 30px; border-radius: 6px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 50px; height: 50px; border: none; background: rgba(16,95,173,0.6); color: #fff; cursor: pointer; display: grid; place-items: center; transition: var(--transition); }
.hero-arrow:hover { background: var(--primary); }
.hero-arrow svg { width: 24px; height: 24px; fill: currentColor; }
.hero-arrow.prev { left: 0; } .hero-arrow.next { right: 0; }

/* ==========================================================================
   QUOTE BAND (5 định hướng)
   ========================================================================== */
.quote-band { padding: 40px 0 20px; }
.quote-band .container { text-align: center; position: relative; border-bottom: 2px solid var(--primary); padding-bottom: 34px; max-width: 1000px; }
.quote-band p { font-size: clamp(16px, 2vw, 21px); color: var(--ink); font-style: italic; max-width: 880px; margin: 0 auto; line-height: 1.6; }
.quote-band p strong { color: var(--primary); font-style: normal; }
.quote-band .qm { color: var(--primary); font-weight: 800; font-size: 1.4em; font-style: normal; vertical-align: middle; }

/* ==========================================================================
   TIÊU ĐỀ MỤC (đỏ in hoa + kẻ ngang)
   ========================================================================== */
.block { padding: 64px 0; }
.block.tight { padding: 40px 0; }
.block.alt { background: #f4f7fb; }
.block + .block.alt, .block.alt + .block { position: relative; }
.sec-title { position: relative; margin-bottom: 34px; padding-bottom: 12px; border-bottom: 1px solid #d3e5f2; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sec-title h2 { color: var(--primary); font-size: clamp(19px, 2.4vw, 26px); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; }
.sec-title h2 span { color: var(--primary); }
.sec-title .tabs { display: flex; gap: 6px; }
.sec-title .tabs a { padding: 5px 16px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); transition: var(--transition); }
.sec-title .tabs a:hover, .sec-title .tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.sec-center { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sec-center .eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.sec-center h2 { font-size: clamp(22px, 3vw, 32px); color: var(--primary); text-transform: uppercase; margin-bottom: 12px; }
.sec-center h2 span { color: var(--primary); }
.sec-center p { color: var(--muted); }

/* ==========================================================================
   MSG-SPLIT (ảnh + panel đỏ) - Thông điệp / Học sinh tiêu biểu
   ========================================================================== */
.msg-split { display: grid; grid-template-columns: 0.72fr 1.28fr; align-items: stretch; box-shadow: var(--shadow-sm); }
.msg-split.reverse .msg-photo { order: 2; }
.msg-photo { position: relative; min-height: 360px; overflow: hidden; }
.msg-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.msg-photo::after { content: ''; position: absolute; inset: 14px; border: 2px solid rgba(255,255,255,0.85); z-index: 2; pointer-events: none; }
.msg-panel { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: clamp(30px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.msg-panel h3 { color: #fff; font-size: clamp(18px, 2.2vw, 23px); text-transform: uppercase; margin-bottom: 18px; letter-spacing: 0.3px; }
.msg-panel p { color: rgba(255,255,255,0.92); margin-bottom: 14px; font-size: 15px; }
.msg-panel .achieve { display: grid; gap: 10px; margin: 6px 0 4px; }
.msg-panel .achieve li { display: flex; gap: 10px; align-items: flex-start; color: #fff; font-size: 14.5px; }
.msg-panel .achieve li svg { flex-shrink: 0; width: 20px; height: 20px; fill: #FBC411; margin-top: 2px; }
.msg-panel .sign { margin-top: 20px; font-weight: 700; color: #fff; }
.msg-panel .sign small { display: block; font-weight: 400; opacity: 0.85; margin-top: 2px; }

/* ==========================================================================
   TIN TỨC - khối đỏ nổi bật + thẻ ảnh
   ========================================================================== */
.news-featured { background: var(--primary); color: #fff; padding: 30px 36px; margin-bottom: 26px; transition: var(--transition); display: block; }
.news-featured:hover { background: var(--primary-dark); }
.news-featured .date { font-size: 13px; opacity: 0.85; margin-bottom: 8px; display: block; }
.news-featured h3 { color: #fff; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.4; margin-bottom: 10px; }
.news-featured p { color: rgba(255,255,255,0.9); font-size: 14.5px; margin-bottom: 12px; }
.news-featured .rm { color: #FBC411; font-weight: 600; font-size: 13px; text-transform: uppercase; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border: 1px solid var(--line); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; background: #fff; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card .pc-thumb { height: 200px; overflow: hidden; position: relative; }
.post-card .pc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.post-card:hover .pc-thumb img { transform: scale(1.06); }
.post-card .cat { position: absolute; left: 0; top: 0; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 600; text-transform: uppercase; padding: 6px 14px; letter-spacing: 0.3px; }
.post-card .pc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .date { color: var(--muted); font-size: 12.5px; margin-bottom: 7px; }
.post-card h3 { font-size: 16.5px; line-height: 1.45; margin-bottom: 12px; transition: var(--transition); }
.post-card h3 a:hover, .post-card:hover h3 { color: var(--primary); }
.post-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; flex: 1; }

/* Video card */
.video-card .pc-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(8,44,72,0.3); transition: var(--transition); }
.video-card:hover .pc-thumb::after { background: rgba(8,44,72,0.12); }
.video-card .pc-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.video-card .pc-thumb .play span { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,0.92); display: grid; place-items: center; transition: var(--transition); }
.video-card:hover .pc-thumb .play span { transform: scale(1.12); background: var(--primary); }
.video-card .play svg { width: 24px; height: 24px; fill: var(--primary); transition: var(--transition); }
.video-card:hover .play svg { fill: #fff; }

/* ==========================================================================
   CHƯƠNG TRÌNH ĐÀO TẠO - dải panel đỏ + ảnh, xen kẽ
   ========================================================================== */
.bands { display: flex; flex-direction: column; }
.band { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
.band-text { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: clamp(34px, 5vw, 68px); display: flex; flex-direction: column; justify-content: center; position: relative; }
.band:nth-child(even) .band-text { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.band-text .num { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.7); letter-spacing: 1.5px; margin-bottom: 12px; text-transform: uppercase; }
.band-text h3 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 16px; line-height: 1.3; }
.band-text p { color: rgba(255,255,255,0.88); margin-bottom: 12px; font-size: 15px; }
.band-text .btn { margin-top: 16px; align-self: flex-start; background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.band-text .btn:hover { background: #fff; color: var(--primary); }
.band-img { background-size: cover; background-position: center; min-height: 300px; }
.band.reverse .band-text { order: 2; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-grid { columns: 4; column-gap: 14px; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; border-radius: 6px; break-inside: avoid; margin-bottom: 14px; display: block; }
.gallery-item img { width: 100%; height: auto; display: block; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(8,44,72,0.6)); opacity: 0; transition: var(--transition); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item .zoom { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(0.7); transition: var(--transition); z-index: 2; }
.gallery-item:hover .zoom { opacity: 1; transform: scale(1); }
.gallery-item .zoom span { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.92); display: grid; place-items: center; }
.gallery-item .zoom svg { width: 22px; height: 22px; fill: var(--primary); }
/* masonry cột: bỏ span (không còn lỗ trống) */

.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(6,36,60,0.94); display: flex; align-items: center; justify-content: center; padding: 30px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); transition: opacity 0.2s ease; }
.lightbox .lb-close { position: absolute; top: 24px; right: 28px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 26px; cursor: pointer; transition: var(--transition); z-index: 2; }
.lightbox .lb-close:hover { background: var(--primary); transform: rotate(90deg); }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.lightbox .lb-nav:hover { background: var(--primary); }
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
@media (max-width: 600px) { .lightbox .lb-nav { width: 42px; height: 42px; font-size: 24px; } .lightbox .lb-prev { left: 10px; } .lightbox .lb-next { right: 10px; } }

/* ==========================================================================
   CTA - ảnh nền + nút đỏ
   ========================================================================== */
.cta-image { position: relative; background-size: cover; background-position: center; padding: 84px 0; text-align: center; }
.cta-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(12,74,135,0.86), rgba(10,58,107,0.9)); }
.cta-image .container { position: relative; z-index: 2; }
.cta-image h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin-bottom: 16px; text-transform: uppercase; }
.cta-image p { color: rgba(255,255,255,0.92); font-size: 16px; max-width: 720px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Stats (nếu dùng) */
.stats-band { background: var(--primary); }
.stats-band .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 40px 20px; border-right: 1px solid rgba(255,255,255,0.15); }
.stat:last-child { border-right: none; }
.stat .num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: #fff; }
.stat .num .plus { color: #FBC411; }
.stat .label { margin-top: 8px; color: rgba(255,255,255,0.85); font-size: 14px; }

/* ==========================================================================
   FOOTER - đỏ mận đậm
   ========================================================================== */
.footer { background: var(--maroon); color: rgba(255,255,255,0.8); padding: 60px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 12px; text-transform: uppercase; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; background: var(--primary-2); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 54px; background: #fff; border-radius: 6px; padding: 5px; }
.footer-brand strong { color: #fff; font-size: 15.5px; display: block; text-transform: uppercase; }
.footer-brand span { font-size: 12.5px; opacity: 0.85; }
.footer p { line-height: 1.75; opacity: 0.9; margin-bottom: 14px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; opacity: 0.9; }
.footer-links a::before { content: '›'; color: var(--primary-2); font-weight: 700; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; width: 19px; height: 19px; fill: var(--primary-2); margin-top: 3px; }
.footer-contact span { line-height: 1.6; opacity: 0.9; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 6px; background: rgba(255,255,255,0.1); display: grid; place-items: center; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 22px 0; text-align: center; font-size: 13.5px; opacity: 0.9; }
.footer-bottom span { color: var(--primary-2); font-weight: 600; }

.to-top { position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 6px; background: var(--primary); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(18px); transition: var(--transition); z-index: 900; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary-dark); }
.to-top svg { width: 22px; height: 22px; fill: currentColor; }

/* ==========================================================================
   PAGE BANNER (trang con) - ảnh + overlay đỏ
   ========================================================================== */
.page-banner { position: relative; background: var(--primary-dark); background-size: cover; background-position: center; color: #fff; padding: 60px 0; text-align: center; }
.page-banner::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(16,95,173,0.92), rgba(10,58,107,0.9)); }
.page-banner::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("../assets/img/brand-orbit.svg") no-repeat right center; background-size: auto 165%; }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 12px; text-transform: uppercase; }
.page-banner .pb-cat { display: inline-block; background: #fff; color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 6px 16px; margin-bottom: 14px; }
.breadcrumb { display: flex; justify-content: center; gap: 9px; font-size: 14px; opacity: 0.92; }
.breadcrumb a:hover { color: #FBC411; }

/* --- Prose --- */
.prose { max-width: 820px; margin: 0 auto; }
.prose.article-body { max-width: 860px; }
.prose h2 { font-size: 25px; margin: 32px 0 14px; color: var(--primary); }
.prose h3 { font-size: 20px; margin: 24px 0 10px; color: var(--primary); }
.prose p { margin-bottom: 16px; color: #333; }
.prose ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; color: #333; }
.prose ul li { margin-bottom: 8px; }
.prose img { border-radius: var(--radius); margin: 20px auto; box-shadow: var(--shadow-sm); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 20px 0; border: 0; }
.prose figure { margin: 20px 0; }
.prose figcaption { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 8px; font-style: italic; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 16px 24px; font-style: italic; color: var(--primary-dark); margin: 20px 0; }

/* --- Helper bố cục --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature.reverse .feat-media { order: 2; }
.feat-media { position: relative; }
.feat-media img { width: 100%; height: 440px; object-fit: cover; }
.feat-media .exp { position: absolute; left: 20px; bottom: 20px; background: var(--primary); color: #fff; padding: 14px 22px; }
.feat-media .exp strong { display: block; font-size: 28px; line-height: 1; color: #fff; }
.feat-media .exp span { font-size: 12.5px; }
.feat-body .kicker { display: inline-block; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.feat-body h2 { font-size: clamp(23px, 3vw, 32px); margin-bottom: 18px; color: var(--primary); text-transform: uppercase; }
.feat-body h2 span { color: var(--primary); }
.feat-body p { color: #444; margin-bottom: 16px; }
.feat-list { display: grid; gap: 12px; margin: 22px 0 28px; }
.feat-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--ink); }
.feat-list li svg { flex-shrink: 0; width: 22px; height: 22px; fill: var(--primary); margin-top: 3px; }
.media-frame { overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.tall img { height: 440px; }
.media-badge { position: absolute; left: 20px; bottom: 20px; background: var(--primary); color: #fff; padding: 14px 22px; }
.media-badge strong { display: block; font-size: 28px; color: #fff; line-height: 1; }
.media-badge span { font-size: 12.5px; }
.plain-card { border-left: 3px solid var(--primary); background: var(--primary-soft); padding: 28px 28px; height: 100%; transition: var(--transition); }
.plain-card:hover { box-shadow: var(--shadow-sm); }
.plain-card .pc-ic { width: 44px; height: 44px; margin-bottom: 14px; }
.plain-card .pc-ic svg { width: 44px; height: 44px; fill: var(--primary); }
.plain-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--primary); }
.plain-card p { color: var(--muted); font-size: 14.5px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step .num { font-size: 44px; font-weight: 800; color: var(--primary-soft); line-height: 1; margin-bottom: 6px; -webkit-text-stroke: 1px var(--primary); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.book-card { display: block; border: 1px solid var(--line); overflow: hidden; transition: var(--transition); background: #fff; }
.book-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.book-card .bc-top { height: 140px; display: grid; place-items: center; background: var(--primary); }
.book-card:nth-child(2n) .bc-top { background: var(--primary-dark); }
.book-card .bc-top svg { width: 52px; height: 52px; fill: #fff; }
.book-card .bc-body { padding: 16px 18px 18px; text-align: center; }
.book-card h3 { font-size: 16px; margin-bottom: 4px; }
.book-card span { font-size: 13px; color: var(--muted); }

/* --- Kệ sách điện tử (bìa thật) --- */
.shelf-head { display: flex; align-items: center; gap: 12px; margin: 40px 0 22px; }
.shelf-head:first-child { margin-top: 0; }
.shelf-head span.no { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; border-radius: 6px; }
.shelf-head h3 { color: var(--primary); font-size: clamp(17px, 2vw, 21px); text-transform: uppercase; letter-spacing: 0.3px; }
.shelf-head .line { flex: 1; height: 1px; background: #d3e5f2; }
.shelf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px 18px; }
.book { display: block; }
.book-cover { position: relative; aspect-ratio: 3 / 4.15; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(16,50,80,0.14); transition: var(--transition); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book:hover .book-cover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(16,50,80,0.28); }
.book-cover .read { position: absolute; inset: 0; background: rgba(16,50,80,0.55); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: var(--transition); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.book:hover .book-cover .read { opacity: 1; }
.book-cover .read svg { width: 34px; height: 34px; fill: #fff; }
.book .b-title { margin-top: 10px; font-size: 12.5px; font-weight: 600; text-align: center; color: var(--ink); line-height: 1.35; }
@media (max-width: 992px) { .shelf { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .shelf { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; } }

/* --- Form liên hệ --- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); font-family: inherit; font-size: 15px; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.contact-info-card { background: var(--primary); padding: 38px; color: #fff; }
.contact-info-card h2 { color: #fff; text-transform: uppercase; }
.contact-info-card .ci-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-card .ci-item .ic { flex-shrink: 0; width: 46px; height: 46px; background: rgba(255,255,255,0.15); display: grid; place-items: center; }
.contact-info-card .ci-item .ic svg { width: 22px; height: 22px; fill: #fff; }
.contact-info-card .ci-item strong { display: block; color: #fff; margin-bottom: 3px; }
.contact-info-card .ci-item span { color: rgba(255,255,255,0.86); font-size: 14.5px; }
.map-embed { overflow: hidden; margin-top: 24px; height: 280px; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* --- Phân trang --- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 13px; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--ink); transition: var(--transition); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* --- Reveal: hiện dần khi cuộn tới (chỉ khi có JS; no-JS luôn hiện) --- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.nav-overlay { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 1250px) {
  .header-cta .btn-primary { display: none; }
  .hamburger { display: flex; }
  .nav { position: fixed; top: 0; right: -100%; width: 320px; max-width: 86vw; height: 100vh; background: #fff; flex-direction: column; align-items: stretch; padding: 84px 20px 30px; box-shadow: -10px 0 50px rgba(0,0,0,0.2); transition: right 0.4s ease; overflow-y: auto; z-index: 1100; margin: 0; }
  .nav.open { right: 0; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li > a { height: 50px; line-height: 50px; padding: 0 14px; justify-content: space-between; }
  .nav-list > li > a::after { display: none; }
  .nav-list > li:hover > a, .nav-list > li.active > a { background: var(--primary-soft); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-radius: 0; border-left: 2px solid var(--primary-soft); padding: 0 0 6px 14px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease; margin-left: 14px; min-width: 0; }
  .dropdown::before, .dropdown::after { display: none; }
  .dropdown li a::before { display: none; }
  .nav-list > li.open-sub .dropdown { max-height: 400px; }
  .nav-overlay.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1050; }
  .feature, .grid-2, .contact-split, .msg-split { grid-template-columns: 1fr; gap: 0; }
  .feature, .grid-2, .contact-split { gap: 40px; }
  .feature.reverse .feat-media, .msg-split.reverse .msg-photo { order: 0; }
  .msg-photo { min-height: 300px; }
  .band { grid-template-columns: 1fr; }
  .band.reverse .band-text { order: 0; }
  .band-img { min-height: 280px; }
  .grid-3, .grid-4, .steps, .book-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .feat-media img, .media-frame.tall img { height: 380px; }
}
@media (max-width: 768px) {
  .block { padding: 44px 0; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .form-row, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .stats-band .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .brand-text small { display: none; }
  .book-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SỬA LỖI: tràn ngang trên mobile
   - Email/chuỗi dài không có dấu cách ép cột lưới rộng hơn màn hình.
   - Cho phép ngắt chuỗi dài + để item lưới co lại (min-width:0).
   ========================================================================== */
.contact-info-card .ci-item span,
.footer-contact span,
.footer-brand span,
.prose p, .prose li {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-split > *,
.feature > *,
.news-editorial > *,
.grid-2 > * { min-width: 0; }

/* ==========================================================================
   MOBILE POLISH — tinh chỉnh các chi tiết nhỏ trên điện thoại
   ========================================================================== */
@media (max-width: 1250px) {
  /* Header gọn gàng: logo trái, hamburger sát phải */
  .site-header .container { min-height: 66px; gap: 12px; flex-wrap: nowrap; }
  .brand { gap: 10px; min-width: 0; flex: 0 1 auto; }
  .brand img { height: 46px; flex-shrink: 0; }
  .brand-text { min-width: 0; }
  .brand-text strong { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; }
  .brand-text small { font-size: 10px; letter-spacing: 0.3px; overflow: hidden; text-overflow: ellipsis; }
  .header-cta { margin-left: auto; flex-shrink: 0; }
  .hamburger { padding: 6px; }
  .nav { padding-top: 74px; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li:last-child { border-bottom: none; }
  .nav-list > li > a { font-size: 14px; }
}
@media (max-width: 768px) {
  /* Hero: bỏ mũi tên (chật), để banner dày dặn hơn, chỉ dùng chấm tròn */
  .hero-arrow { display: none; }
  .hero-slider { aspect-ratio: auto; min-height: 218px; }
  .hero-dots { bottom: 14px; }
  .hero-dots button { width: 9px; height: 9px; }
  .hero-dots button.active { width: 24px; }
  /* Banner tiêu đề trang con: cân đối hơn */
  .page-banner { padding: 42px 0; }
  .page-banner h1 { font-size: clamp(21px, 6.2vw, 30px); margin-bottom: 9px; }
  .page-banner .pb-cat { margin-bottom: 11px; }
  .breadcrumb { font-size: 13px; gap: 7px; }
}
@media (max-width: 480px) {
  .brand img { height: 42px; }
  .brand-text strong { font-size: 14.5px; }
  .hero-slider { min-height: 188px; }
  .block { padding: 38px 0; }
  .sec-title, .b-title { font-size: clamp(20px, 6vw, 26px); }
  .post-card .pc-thumb { height: 190px; }
  .gallery-grid { column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
}

/* ==========================================================================
   BRAND: GIÁ TRỊ CỐT LÕI — bản tiết chế, hợp tông trang trường
   ========================================================================== */
.brand-values { background: #fff; padding: 64px 0; }
/* Header: khớp .sec-center của site */
.bv-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.bv-eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.bv-head h2 { color: var(--ink); font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 12px; }
.bv-head p { color: var(--muted); font-size: 15px; line-height: 1.7; }
/* Thẻ: nền trắng, viền nhẹ, gạch trên xanh chủ đạo — sạch, chuyên nghiệp */
.bv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bv-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.bv-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.bv-star { display: block; width: 40px; height: 40px; margin-bottom: 14px; }
.bv-star svg { width: 40px; height: 40px; fill: var(--primary); display: block; }
.bv-card h3 { color: var(--ink); font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.bv-card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
@media (max-width: 860px) { .bv-grid { grid-template-columns: 1fr; } .brand-values { padding: 48px 0; } }

/* ===== Chiến dịch "Nhật ký tuổi thơ" — thẻ ảnh sạch + hàng chip/nút cân xứng ===== */
.campaign .sec-center { margin-bottom: 40px; }

.campaign-banner {
  display: block;
  max-width: 1080px; margin: 0 auto;
  border-radius: 14px; overflow: hidden; line-height: 0;
  -webkit-user-select: none; user-select: none;  /* không bị tô xanh khi kéo/chọn chuột */
}
.campaign-banner img { width: 100%; display: block; border-radius: inherit; -webkit-user-drag: none; user-select: none; }

.campaign-tags { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin-top: 34px; }
.campaign-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.campaign-chips span { background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 13px; padding: 8px 15px; border-radius: var(--radius-sm); transition: var(--transition); }
.campaign-chips span:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.campaign-cta.btn { height: 48px; }

@media (max-width: 600px) { .campaign-banner { border-radius: 12px; } }

/* ===== Mascot Star Bảo ===== */
.mascot { height: auto; display: block; filter: drop-shadow(0 14px 26px rgba(0,0,0,0.22)); }
.cta-image .cta-mascot { position: absolute; right: 3%; bottom: 0; width: 200px; z-index: 3; pointer-events: none; }
@media (max-width: 900px) { .cta-image .cta-mascot { display: none; } }

/* ===== Footer pattern texture (brand) ===== */
.footer { position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; inset: 0; background: url("../assets/img/pattern-white.png") repeat; background-size: 560px auto; opacity: 0.05; z-index: 0; pointer-events: none; }
.footer > * { position: relative; z-index: 1; }

/* ==========================================================================
   ICON TRANG TRÍ TRƯỚC MENU (gắn bằng CSS, khớp theo href — mọi trang)
   ========================================================================== */
.nav-list > li > a { padding-left: 11px; padding-right: 11px; gap: 6px; font-size: 13px; }
.nav-list > li > a::before {
  content: ''; width: 15px; height: 15px; flex-shrink: 0;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  opacity: 0.9; transition: var(--transition);
}
.nav-list > li:hover > a::before, .nav-list > li.active > a::before { opacity: 1; }
.nav-list > li > a[href$="index.html"]::before { background-image: url(../assets/img/icons/home.png); }
.nav-list > li > a[href$="gioi-thieu.html"]::before { background-image: url(../assets/img/icons/about.png); }
.nav-list > li > a[href$="tuyen-sinh.html"]::before { background-image: url(../assets/img/icons/admission.png); }
.nav-list > li > a[href$="dao-tao.html"]::before { background-image: url(../assets/img/icons/education.png); }
.nav-list > li > a[href$="tin-tuc.html"]::before { background-image: url(../assets/img/icons/news.png); }
.nav-list > li > a[href$="thu-vien-dien-tu.html"]::before { background-image: url(../assets/img/icons/library.png); }
.nav-list > li > a[href$="lien-he.html"]::before { background-image: url(../assets/img/icons/contact.png); }
.nav-list > li > a[title*="quản lý"]::before { display: none; }
.nav-list .dropdown a::before { display: none; }
@media (max-width: 1250px) {
  .nav-list > li > a { justify-content: flex-start; font-size: 14px; padding-left: 14px; padding-right: 14px; }
  .nav-list > li > a .caret { margin-left: auto; }
  .nav-list > li > a::before { width: 19px; height: 19px; }
}

/* ==========================================================================
   TRANG BÀI VIẾT CHI TIẾT — bố cục 2 cột + ảnh lớn + sidebar + tin liên quan
   ========================================================================== */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 322px; gap: 48px; align-items: start; }
.article-main { min-width: 0; }

/* Nội dung */
.article-body { max-width: none; color: #33475b; font-size: 16.5px; line-height: 1.85; }
.article-body p { margin-bottom: 17px; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
/* Ảnh lớn tràn cột, bo góc, đổ bóng (ghi đè width/height cứng của WordPress) */
.article-body img { display: block; width: 100%; height: auto !important; border-radius: 14px;
  box-shadow: 0 12px 34px rgba(16, 50, 80, 0.15); margin: 12px auto 6px; }
.article-body p:has(> img) { text-align: center; margin-bottom: 8px; }
/* Chú thích ảnh: dịu lại (WordPress để đỏ chói) */
.article-body p[style*="center"] { text-align: center; color: var(--muted); font-size: 14px;
  font-style: italic; margin-top: 0; margin-bottom: 24px; line-height: 1.55; }
.article-body p[style*="center"] span { color: var(--muted) !important; font-size: 14px !important; }
.article-body p[style*="right"] { text-align: right; }
.article-body iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 14px; margin: 18px 0; }
/* Bảng (danh sách/kết quả) — gọn, cuộn ngang nếu rộng */
.article-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; }
.article-body thead th, .article-body tr:first-child td { background: var(--primary-soft); font-weight: 600; color: var(--primary-dark); }

/* Nút chia sẻ */
.article-share { display: flex; align-items: center; gap: 12px; margin: 34px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-share .as-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.article-share button, .article-share a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); background: #fff; cursor: pointer; transition: var(--transition); }
.article-share button:hover, .article-share a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.article-share svg { width: 18px; height: 18px; fill: currentColor; }
.article-back { margin-top: 28px; }

/* Sidebar */
.article-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 26px; }
.sb-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 10px; background: #fff; }
.sb-title { font-size: 15px; text-transform: uppercase; letter-spacing: 0.3px; color: var(--primary); margin-bottom: 6px; padding-bottom: 14px; border-bottom: 2px solid var(--primary-soft); }
.sb-posts { display: flex; flex-direction: column; }
.sb-posts a { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.sb-posts li:last-child a { border-bottom: none; }
.sb-posts a > div { min-width: 0; }
.sb-posts img { width: 76px; height: 58px; object-fit: cover; border-radius: 9px; flex-shrink: 0; }
.sb-posts .sb-date { font-size: 11.5px; color: var(--muted); display: block; margin-bottom: 3px; }
.sb-posts p { font-size: 13.5px; line-height: 1.42; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-posts a:hover p { color: var(--primary); }
.sb-cats { display: flex; flex-direction: column; }
.sb-cats a { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); transition: var(--transition); }
.sb-cats li:last-child a { border-bottom: none; }
.sb-cats a::before { content: '›'; margin-right: 9px; color: var(--primary); font-weight: 700; }
.sb-cats a:hover { color: var(--primary); padding-left: 6px; }

/* Tin liên quan */
.related-section { margin-top: 58px; padding-top: 46px; border-top: 1px solid var(--line); }
.rel-title { font-size: 23px; color: var(--primary); text-transform: uppercase; margin-bottom: 28px; position: relative; padding-left: 16px; }
.rel-title::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px; background: var(--primary); border-radius: 3px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 42px; }
  .article-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .article-body { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .rel-title { font-size: 20px; }
}

/* ==========================================================================
   TRANG CHIẾN DỊCH "VIẾT TIẾP TUỔI THƠ" (chien-dich.html)
   ========================================================================== */
/* Hero */
.camp-hero { background: linear-gradient(180deg, #fff 0%, var(--primary-soft) 100%); padding: 54px 0 66px; overflow: hidden; }
.camp-hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.ch-eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.8px; background: #fff; border: 1px solid var(--line); padding: 7px 15px; border-radius: 20px; margin-bottom: 22px; }
.ch-wordmark { width: min(430px, 80%); height: auto; margin-bottom: 20px; }
.ch-tagline { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 540px; margin-bottom: 26px; }
.ch-meta { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.ch-meta span { font-size: 13.5px; color: var(--muted); }
.ch-meta strong { display: block; font-size: 30px; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 3px; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ch-visual { position: relative; }
.ch-visual > img:first-child { width: 100%; border-radius: 16px; box-shadow: var(--shadow); border: 6px solid #fff; }
.ch-mascot { position: absolute; right: -6px; bottom: -28px; width: 106px; height: auto; filter: drop-shadow(0 8px 14px rgba(16,50,80,0.2)); }

/* Helpers riêng của trang */
.camp-soft { background: var(--primary-soft); }
.sec-lead { max-width: 700px; margin: 12px auto 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* Split 2 cột (Bối cảnh · Ý tưởng · TVC) */
.camp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.camp-split.reverse .cs-media { order: 2; }
.cs-media img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-sm); }
.cs-body .eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.cs-body h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 16px; }
.cs-body p { color: var(--muted); margin-bottom: 14px; line-height: 1.75; }
.cs-body em { color: var(--primary-dark); font-style: italic; }

/* Ý tưởng: hệ màu */
.idea-block { margin-top: 24px; }
.idea-block h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink); margin-bottom: 13px; }
.color-chips { display: flex; flex-wrap: wrap; gap: 18px; }
.color-chips .chip { display: flex; flex-direction: column; align-items: flex-start; font-size: 13px; font-weight: 600; color: var(--ink); gap: 6px; }
.color-chips .chip i { width: 48px; height: 32px; border-radius: 6px; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03); }
.color-chips .chip small { font-weight: 500; color: var(--muted); font-size: 11.5px; }

/* Mục tiêu */
.camp-goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.goal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); }
.goal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.goal-ic { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--primary-soft); margin-bottom: 16px; }
.goal-ic svg { width: 28px; height: 28px; fill: var(--primary); }
.goal-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 10px; }
.goal-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* Lộ trình - timeline */
.camp-timeline { max-width: 820px; margin: 6px auto 0; position: relative; }
.camp-timeline::before { content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--primary), var(--primary-2)); opacity: 0.35; }
.phase { display: grid; grid-template-columns: 56px 1fr; gap: 22px; margin-bottom: 26px; }
.phase:last-child { margin-bottom: 0; }
.phase-badge span { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; font-size: 18px; box-shadow: 0 6px 16px rgba(16,95,173,0.3); position: relative; z-index: 1; }
.phase-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm); }
.phase-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: space-between; margin-bottom: 9px; }
.phase-head h3 { font-size: 17px; font-weight: 800; }
.phase-days { font-size: 12.5px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.phase-body p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 13px; }
.phase-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.phase-tags span { font-size: 12px; font-weight: 600; color: var(--primary-dark); background: var(--primary-soft); border: 1px solid var(--line); padding: 4px 11px; border-radius: 6px; }

/* Cuộc thi */
.contest-panel { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 18px; padding: 46px clamp(24px, 4vw, 52px); color: #fff; box-shadow: var(--shadow); }
.contest-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.contest-head .eyebrow.light { display: inline-block; color: var(--brand-yellow); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.contest-head h2 { color: #fff; font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; margin-bottom: 12px; }
.contest-head p { color: rgba(255,255,255,0.88); line-height: 1.7; }
.contest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contest-topics, .contest-info { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; padding: 24px 26px; }
.contest-topics h4, .ci-row h4 { color: var(--brand-yellow); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.contest-topics ul li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 15px; font-weight: 600; }
.contest-topics ul li:last-child { border-bottom: none; padding-bottom: 0; }
.contest-topics ul li span { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-yellow); color: var(--primary-dark); font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.ci-row { margin-bottom: 18px; }
.ci-row h4 { margin-bottom: 6px; }
.ci-row p { font-size: 15px; font-weight: 600; }
.ci-prize { margin-top: 20px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,0.28); }
.cp-label { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.82); }
.cp-value { display: block; font-size: 34px; font-weight: 900; color: var(--brand-yellow); line-height: 1.1; margin: 3px 0; }
.cp-note { font-size: 13px; color: rgba(255,255,255,0.82); }

/* Gallery ấn phẩm */
.camp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.camp-gallery .gallery-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm); transition: var(--transition); }
.camp-gallery .gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.camp-gallery .gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; display: block; }
.camp-gallery .gallery-item.tall img { aspect-ratio: 3 / 4; }
.camp-gallery figcaption { padding: 12px 14px; font-size: 12.5px; font-weight: 600; color: var(--ink); text-align: center; }

/* TVC */
.tvc-frame { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.tvc-frame img { width: 100%; display: block; }
.tvc-play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,0.3); transition: var(--transition); }
.tvc-play svg { width: 30px; height: 30px; fill: var(--primary); margin-left: 3px; }
.tvc-frame:hover .tvc-play { transform: scale(1.08); background: #fff; }

/* Responsive trang chiến dịch */
@media (max-width: 980px) {
  .camp-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .ch-visual { max-width: 460px; }
  .camp-split { grid-template-columns: 1fr; gap: 32px; }
  .camp-split.reverse .cs-media { order: 0; }
  .camp-goals { grid-template-columns: repeat(2, 1fr); }
  .camp-gallery { grid-template-columns: repeat(3, 1fr); }
  .contest-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .camp-goals { grid-template-columns: 1fr; }
  .camp-gallery { grid-template-columns: repeat(2, 1fr); }
  .ch-meta { gap: 20px; }
  .phase { grid-template-columns: 46px 1fr; gap: 15px; }
  .phase-badge span { width: 46px; height: 46px; font-size: 15px; }
  .camp-timeline::before { left: 22px; }
  .cp-value { font-size: 30px; }
}
