/*
Theme Name:   HS
Theme URI:
Description:  Theme riêng cho Trường Tiểu học Hòa Sơn. Dựng thẳng từ template
              HTML/CSS có sẵn — không page builder, không framework CSS.
Author:       vintech
Version:      0.2.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain:  bvd
*/

/* ===== BASE ===== */
:root {
  --blue: #0b5ed7;
  --blue-dark: #06327a;
  --amber: #f7b32b;
  --ink: #16202e;
  --muted: #6b7a90;
  --line: #e4e9f0;
  --bg-alt: #f5f8fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 46, 100, .09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: #fff;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: .25s;
}
.btn-primary { background: var(--amber); color: #3a2600; }
.btn-primary:hover { background: #ffc84d; transform: translateY(-2px); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--blue-dark); }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--blue-dark);
  color: #cddcf5;
  font-size: .82rem;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 38px; flex-wrap: wrap; gap: 6px;
}
.topbar-right { display: flex; gap: 18px; }
.topbar a:hover { color: var(--amber); }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .5px;
}
.logo-text strong { display: block; font-size: 1rem; }
.logo-text small { color: var(--muted); font-size: .78rem; }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 9px 16px; border-radius: 999px;
  font-weight: 600; font-size: .93rem; color: #3d4d64;
  transition: .2s;
}
.nav a:hover { background: var(--bg-alt); color: var(--blue); }
.nav a.active { background: var(--blue); color: #fff; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero { position: relative; height: min(78vh, 620px); overflow: hidden; background: var(--blue-dark); }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity .8s ease;
  pointer-events: none;
}
.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(6, 30, 70, .88) 0%, rgba(6, 30, 70, .6) 55%, rgba(6, 30, 70, .3) 100%);
}
.slide-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.eyebrow {
  display: inline-block; margin-bottom: 12px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  font-size: .82rem; font-weight: 600; letter-spacing: .5px;
}
.slide h1 { font-size: clamp(2.1rem, 5.6vw, 3.7rem); margin-bottom: 16px; }
.lead { font-size: 1.05rem; color: #dbe6f7; margin-bottom: 26px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .2); color: #fff;
  font-size: 1.8rem; line-height: 1;
  transition: .2s;
}
.slider-arrow:hover { background: var(--amber); color: #3a2600; }
.slider-arrow.prev { left: 3%; }
.slider-arrow.next { right: 3%; }

.dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 9px; }
.dots button {
  width: 11px; height: 11px; border-radius: 50%;
  border: 0; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, .45); transition: .2s;
}
.dots button.active { background: var(--amber); width: 28px; border-radius: 999px; }

/* ===== STATS ===== */
.stats { background: var(--blue); color: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; padding: 34px 0;
}
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .2); }
.stat b { display: block; font-size: 2.1rem; color: var(--amber); }
.stat span { font-size: .9rem; color: #d5e3fb; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-label {
  color: var(--blue); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.section-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.section-sub { color: var(--muted); margin-top: 12px; }

/* ===== ABOUT ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-img { position: relative; }
.about-img img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.badge {
  position: absolute; right: -18px; bottom: -18px;
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--amber); color: #3a2600;
  display: grid; place-items: center; align-content: center;
  font-size: 2rem; font-weight: 800; line-height: 1;
  box-shadow: var(--shadow);
}
.badge small { font-size: .75rem; font-weight: 700; }
.about-text p { color: var(--muted); margin: 16px 0; }

.check-list { margin: 22px 0 28px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: .7rem; display: grid; place-items: center;
}

/* ===== CARDS ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; padding: 34px 28px;
  border-radius: var(--radius); border: 1px solid var(--line);
  transition: .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--bg-alt); display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ===== TABS + GALLERY ===== */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.tab {
  padding: 9px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: .9rem; cursor: pointer;
  font-family: inherit; color: #3d4d64; transition: .2s;
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gal-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius); cursor: pointer;
}
.gal-item.hide { display: none; }
.gal-item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .5s;
}
.gal-item:hover img { transform: scale(1.07); }
.gal-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(6, 30, 70, .9));
  color: #fff; font-weight: 700; font-size: 1rem;
}

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.news {
  display: flex; background: #fff;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: .3s;
}
.news:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-thumb { position: relative; width: 210px; flex: none; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--amber); color: #3a2600;
  padding: 3px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
}
.news-body { padding: 20px 22px; }
.news-body time { color: var(--muted); font-size: .8rem; }
.news-body h3 { font-size: 1.02rem; margin: 6px 0 8px; }
.news-body p { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.read-more { color: var(--blue); font-weight: 700; font-size: .88rem; }
.read-more:hover { color: var(--amber); }

/* ===== CONTACT ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--muted); margin: 14px 0 26px; }
.info-list li { display: flex; gap: 14px; margin-bottom: 18px; }
.info-list span {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--bg-alt); display: grid; place-items: center;
}
.info-list b { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }

/* Biểu tượng thông tin liên hệ: cùng bảng màu thương hiệu, rõ và thân thiện. */
.info-list .contact-icon {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba( 32, 137, 141, .18 );
	border-radius: 50%;
	background: linear-gradient( 135deg, #e7f6f3, #cceae4 );
	box-shadow: 0 5px 12px rgba( 0, 62, 65, .09 );
	color: var(--blue-dark);
	font-family: Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
}
.info-list .contact-icon::after {
	position: absolute;
	top: 5px;
	right: 7px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--amber);
	content: '';
}
.info-list .contact-icon-phone { background: linear-gradient( 135deg, #e8f4ff, #d4eafb ); }
.info-list .contact-icon-email { background: linear-gradient( 135deg, #fff7df, #f9e8b5 ); }
.info-list .contact-icon-web { background: linear-gradient( 135deg, #edf8ef, #d6efda ); }
.info-list li:hover .contact-icon { transform: translateY( -2px ) rotate( -4deg ); box-shadow: 0 8px 16px rgba( 0, 62, 65, .14 ); }
@media (prefers-reduced-motion: no-preference) { .info-list .contact-icon { transition: transform .2s ease, box-shadow .2s ease; } }

.contact-form {
  background: var(--bg-alt); padding: 32px;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.contact-form h3 { margin-bottom: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: #fff;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 0; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 94, 215, .12);
}
.contact-form .invalid { border-color: #e14b4b; }
.form-msg { margin-top: 12px; font-size: .9rem; font-weight: 600; min-height: 20px; }
.form-msg.ok { color: #1a9a5a; }
.form-msg.err { color: #e14b4b; }

/* ===== FOOTER ===== */
.footer { background: var(--blue-dark); color: #b7c9e6; padding-top: 60px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: var(--amber); }
.footer-logo { margin-bottom: 14px; }
.footer-logo .logo-text strong { color: #fff; }
.footer-logo .logo-text small { color: #93aad2; }

.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  transition: .2s;
}
.socials a:hover { background: var(--amber); color: #3a2600; }

.copyright {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0; font-size: .82rem; text-align: center;
}

/* ===== TO TOP ===== */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ===== REVEAL ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s, transform .6s; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== PAGE HERO (trang con) ===== */
.page-hero { position: relative; background: var(--blue-dark); overflow: hidden; }
.page-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 30, 70, .9) 0%, rgba(6, 30, 70, .6) 100%);
}
.page-hero-inner { position: relative; z-index: 2; color: #fff; padding: 74px 0; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: 14px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: #cddcf5; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb b { color: #fff; font-weight: 700; }
.breadcrumb span { opacity: .5; }
.breadcrumb.dark { color: var(--muted); margin-bottom: 18px; }
.breadcrumb.dark b { color: var(--ink); }
.breadcrumb.dark a:hover { color: var(--blue); }

/* ===== CTA ===== */
.section-cta { text-align: center; margin-top: 40px; }

.cta-band { background: var(--blue); color: #fff; padding: 46px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-inner p { color: #d5e3fb; margin-top: 6px; }

/* ===== TIMELINE ===== */
.timeline { max-width: 760px; margin: 0 auto; border-left: 2px solid var(--line); }
.timeline li { display: flex; gap: 22px; padding: 0 0 30px 26px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff;
}
.timeline b { flex: none; width: 62px; color: var(--blue); font-size: 1.05rem; }
.timeline h3 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: .95rem; }

/* ===== BAN GIÁM HIỆU ===== */
.person {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-align: center;
  transition: .3s;
}
.person:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.person img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.person h3 { font-size: 1.1rem; margin: 18px 0 4px; }
.person p { color: var(--muted); font-size: .9rem; padding-bottom: 20px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.pagination a, .pagination span {
  min-width: 40px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  text-align: center; font-weight: 600; font-size: .9rem;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ===== TRANG BÀI VIẾT ===== */
.article-top { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 34px 0 40px; }
.article-top h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 860px; }
.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.article-meta time { color: var(--muted); font-size: .85rem; }
.tag-inline {
  background: var(--amber); color: #3a2600;
  padding: 3px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
}

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article-cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px;
}
.article-body p { margin-bottom: 18px; color: #3d4d64; }
.article-body .article-lead { font-size: 1.08rem; color: var(--ink); font-weight: 500; }
.article-body h2 { font-size: 1.35rem; margin: 30px 0 12px; }
.article-body ul { margin: 0 0 18px; }
.article-body li { position: relative; padding-left: 22px; margin-bottom: 9px; color: #3d4d64; }
.article-body li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.article-body blockquote {
  margin: 26px 0; padding: 20px 26px;
  border-left: 4px solid var(--amber); background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.02rem; font-style: italic;
}
.article-body cite { display: block; margin-top: 10px; font-size: .85rem; font-style: normal; color: var(--muted); font-weight: 600; }

.article-nav {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .9rem;
}

.article-side { position: sticky; top: 94px; display: grid; gap: 22px; }
.side-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-box h4 { font-size: 1rem; margin-bottom: 16px; }
.side-news li { display: flex; gap: 12px; margin-bottom: 16px; }
.side-news li:last-child { margin-bottom: 0; }
.side-news img { width: 74px; height: 58px; flex: none; object-fit: cover; border-radius: 10px; }
.side-news div a { font-size: .88rem; font-weight: 600; line-height: 1.35; display: block; }
.side-news div a:hover { color: var(--blue); }
.side-news time { color: var(--muted); font-size: .78rem; }
.side-cta p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* ===== MAP ===== */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .cards-3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-wrap { grid-template-columns: 1fr; gap: 36px; }
  .article-side { position: static; }
}

@media (max-width: 720px) {
  .topbar-inner { justify-content: center; font-size: .75rem; }
  .topbar-right { gap: 12px; }
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 5%;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { border-radius: 8px; }
  .logo-text strong { font-size: .88rem; }
  .logo-text small { display: none; }

  .hero { height: auto; min-height: 500px; }
  .slide { position: relative; display: none; padding: 70px 0; }
  .slide.active { display: flex; }
  .slider-arrow { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat + .stat { border-left: 0; }

  .section { padding: 56px 0; }
  .cards-3, .gallery { grid-template-columns: 1fr; }
  .news { flex-direction: column; }
  .news-thumb { width: 100%; height: 190px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .badge { right: 10px; width: 88px; height: 88px; font-size: 1.6rem; }
  .page-hero-inner { padding: 52px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .timeline li { flex-direction: column; gap: 4px; }
  .article-nav { flex-direction: column; }
  .map iframe { height: 300px; }
}

/* ═══════════════════════════════════════════════════════════════
   CẦU NỐI WORDPRESS
   WordPress sinh ra markup hơi khác template gốc (phân trang bọc
   thêm .nav-links, dùng .current thay .active). Phần dưới ánh xạ
   lại cho khớp — không đổi thiết kế, chỉ nối class.
   ═══════════════════════════════════════════════════════════════ */

.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .dots { position: static; transform: none; border: 0; background: none; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.footer .menu { list-style: none; }

/* Ảnh do WordPress chèn vào nội dung bài viết */
.article-body img { border-radius: var(--radius); margin: 22px 0; }
.article-body figure { margin: 22px 0; }
.article-body figcaption { color: var(--muted); font-size: .88rem; text-align: center; margin-top: 8px; }
.article-body ul, .article-body ol { margin: 16px 0 16px 22px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

/* Logo ảnh của trường. */
.logo-mark.logo-mark-image {
  width: 62px;
  height: 54px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

/* Nhãn danh mục và nút lọc giờ là thẻ <a> dẫn tới trang lưu trữ danh mục.
   Chỉ bỏ gạch chân của trình duyệt, giữ nguyên hình dáng cũ. */
a.tab,
a.tag,
a.tag-inline { text-decoration: none; }

a.tag:hover,
a.tag-inline:hover { background: #eece74; }

/* ═══════════════════════════════════════════════════════════════
   BẢNG MÀU NGỌC LỤC
   Đổi màu chủ đạo từ xanh dương #0b5ed7 sang ngọc lục #09696d.
   Thang màu dựng trong không gian OKLCH quanh sắc độ 199.6° nên
   các bậc cách đều nhau về thị giác. Nhóm trung tính cũng lệch
   theo, từ xám ám lam (hue 257) sang hue 210, để cả trang cùng
   một tông lạnh.

   Khối này ghi đè :root và những mã màu cứng nằm rải rác phía
   trên — phần CSS gốc của template giữ nguyên, không sửa.
   Mọi cặp màu bên dưới đều đã kiểm tra tương phản theo WCAG 2.1.
   ═══════════════════════════════════════════════════════════════ */

:root {
	--blue:      #09696d; /* ngọc lục chủ đạo — 6.46:1 trên nền trắng, đạt AA */
	--blue-dark: #003e41; /* thanh trên cùng, chân trang, nền hero */
	--amber:     #e4b756; /* vàng đồng, màu nhấn — trầm hơn #f7b32b */
	--ink:       #152326;
	--muted:     #5e7579; /* 4.89:1 trên nền trắng, đạt AA */
	--line:      #dfeaec;
	--bg-alt:    #f2f9fa;
	--shadow: 0 10px 30px rgba( 0, 62, 65, .10 );
}

/* --- Mã màu cứng còn sót trong CSS gốc --- */

.btn-primary:hover { background: #eece74; }

.topbar,
.breadcrumb,
.footer { color: #a8c9cb; } /* 6.73:1 trên nền #003e41 */

.footer-logo .logo-text small { color: #83aeb0; } /* 4.90:1 */

.nav a,
.tab,
.article-body p,
.article-body li { color: #41565a; } /* 7.77:1 trên nền trắng */

.lead { color: #d3e7e8; }

.stat span,
.cta-inner p { color: #b6e1e3; } /* 4.57:1 trên nền #09696d */

.slide::after {
	background: linear-gradient( 90deg, rgba( 0, 44, 46, .88 ) 0%, rgba( 0, 44, 46, .6 ) 55%, rgba( 0, 44, 46, .3 ) 100% );
}

.page-hero::after {
	background: linear-gradient( 90deg, rgba( 0, 44, 46, .9 ) 0%, rgba( 0, 44, 46, .6 ) 100% );
}

.gal-item figcaption {
	background: linear-gradient( transparent, rgba( 0, 44, 46, .9 ) );
}

.contact-form input:focus,
.contact-form textarea:focus {
	box-shadow: 0 0 0 3px rgba( 9, 105, 109, .14 );
}

/* --- Thẻ tin xen kẽ ---
 * Lưới tin trước đây là thẻ trắng trên nền mục trắng, chỉ ngăn nhau bằng
 * viền rất nhạt nên gần như không thấy ranh giới. Tô một sắc ngọc lục cực
 * nhạt cho các thẻ so le để tạo nhịp.
 *
 * #e9f9f9 là bậc đậm nhất còn giữ được chữ phụ --muted đạt AA (4.51:1);
 * đậm hơn nữa là phần tóm tắt bài rớt chuẩn. Viền thẻ tô màu đổi sang
 * #cae6e7 để giữ đúng độ đậm thị giác như viền thẻ trắng.
 *
 * Lưới 2 cột thì :nth-child(even) rơi hết vào cột phải — thành sọc dọc chứ
 * không phải xen kẽ. Muốn ra bàn cờ phải tô vị trí 2, 3 của mỗi nhóm bốn.
 */
.news-grid .news:nth-child( 4n + 2 ),
.news-grid .news:nth-child( 4n + 3 ) {
	background: #e9f9f9;
	border-color: #cae6e7;
}

/* Dưới 980px lưới còn 1 cột: quay về xen kẽ từng dòng cho đều. */
@media (max-width: 980px) {
	.news-grid .news:nth-child( 4n + 3 ) {
		background: #fff;
		border-color: var(--line);
	}
	.news-grid .news:nth-child( even ) {
		background: #e9f9f9;
		border-color: #cae6e7;
	}
}

/* ═══════════════════════════════════════════════════════════════
   LƯỚI ẢNH CHỒNG LỚP — MỤC "VỀ CHÚNG TÔI" TRANG CHỦ
   Thay một ảnh 4:3 đơn lẻ bằng năm ảnh xếp lệch tầng, để mục giới
   thiệu nói được nhiều mặt hoạt động của trường cùng lúc.

   Cách dựng: lưới 12 cột × 16 hàng cao 32px, mỗi ảnh chiếm một vùng
   khai báo bằng grid-area. Đúng BA chỗ đè nhau, mỗi chỗ rộng một cột
   (1↔2, 3↔4, 4↔5) — grid cho phép hai ô cùng vị trí, z-index quyết
   định ảnh nào nằm trên, viền trắng 5px chạy dọc chỗ đè nên mắt đọc
   ra là "ảnh xếp chồng" chứ không phải ảnh bị cắt.

   Ít chỗ đè và chừa hai khoảng trống (góc trên phải, khe giữa) là
   chủ ý: nhiều chỗ đè hơn thì lưới rối, không còn thấy ảnh nào là
   ảnh chính.

   Muốn đổi bố cục thì sửa grid-area, không cần đụng vào PHP.
   ═══════════════════════════════════════════════════════════════ */

.about-collage {
	position: relative;
	display: grid;
	grid-template-columns: repeat( 12, 1fr );
	grid-auto-rows: 32px;
}

.collage-item {
	position: relative;
	margin: 0;
	overflow: hidden;
	border: 5px solid #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.collage-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* grid-area: hàng-đầu / cột-đầu / hàng-cuối / cột-cuối */
.collage-item-1 { grid-area:  1 /  1 / 10 /  8; z-index: 1; }
.collage-item-2 { grid-area:  3 /  7 / 10 / 13; z-index: 2; }
.collage-item-3 { grid-area: 10 /  1 / 16 /  6; z-index: 3; }
.collage-item-4 { grid-area: 11 /  5 / 17 / 10; z-index: 4; }
.collage-item-5 { grid-area: 10 /  9 / 17 / 13; z-index: 5; }

/* Huy hiệu "45 năm" phải nằm trên mọi ảnh. */
.about-collage .badge {
	z-index: 10;
}

/* --- Hover ---
 * Ảnh được trỏ vào nhấc lên trên các ảnh đang đè nó, đổ bóng sâu hơn
 * và phóng rất nhẹ. Ba lưu ý về cách viết:
 *
 * 1. Phải khai báo trên .about-collage .collage-item (hai class) mới
 *    thắng được .js .reveal ở phần CSS gốc — nếu chỉ .collage-item thì
 *    thuộc tính transition bị .js .reveal ghi đè và hover mất mượt.
 *    Vì vậy danh sách dưới đây phải chép lại cả opacity/transform của
 *    hiệu ứng hiện-khi-cuộn.
 * 2. z-index không nội suy được. Để 0s kèm delay .55s ở trạng thái
 *    thường: lúc rê vào thì đổi ngay, lúc rời ra thì chờ ảnh thu nhỏ
 *    xong mới hạ xuống — không bị "tụt" đột ngột giữa chừng.
 * 3. Nhịp chậm (.55s) và đường cong tắt dần cubic-bezier( .22, .61,
 *    .36, 1 ) cho cảm giác trôi, thay vì bật ra như ease mặc định.
 */
.about-collage .collage-item {
	transition:
		opacity .6s,
		transform .6s,
		box-shadow .55s cubic-bezier( .22, .61, .36, 1 ),
		z-index 0s linear .55s;
}

.about-collage .collage-item img {
	transition: transform .55s cubic-bezier( .22, .61, .36, 1 );
	will-change: transform;
}

.about-collage .collage-item:hover {
	z-index: 9;
	box-shadow: 0 20px 44px rgba( 0, 62, 65, .22 );
	transition:
		opacity .6s,
		transform .6s,
		box-shadow .55s cubic-bezier( .22, .61, .36, 1 ),
		z-index 0s;
}

.about-collage .collage-item:hover img {
	transform: scale( 1.05 );
}

@media (prefers-reduced-motion: reduce) {
	.about-collage .collage-item,
	.about-collage .collage-item img {
		transition: none;
	}
	.about-collage .collage-item:hover img {
		transform: none;
	}
}

/* Dưới 980px .about còn một cột nên lưới rộng bằng cả container —
   nâng chiều cao hàng để ảnh không bị bẹt. */
@media (max-width: 980px) and (min-width: 721px) {
	.about-collage { grid-auto-rows: 46px; }
}

/* Trên điện thoại, chồng lớp làm ảnh vụn và khó nhìn: bỏ hẳn phần đè
   nhau, xếp lại thành ảnh lớn trên cùng rồi lưới 2×2 bên dưới. */
@media (max-width: 720px) {
	.about-collage {
		grid-template-columns: repeat( 2, 1fr );
		grid-auto-rows: auto;
		gap: 8px;
	}
	.collage-item {
		grid-area: auto;
		border-width: 0;
	}
	.collage-item-1 {
		grid-column: span 2;
	}
	.collage-item img {
		height: auto;
		aspect-ratio: 4/3;
	}
	.about-collage .badge {
		right: 4px;
		bottom: -14px;
	}
}

/* Lưới ảnh tập thể giáo viên ở trang Giới thiệu.
   Dùng lại .gallery của trang Hoạt động, chỉ bỏ con trỏ bàn tay:
   bên đó ảnh lọc được theo tab nên bấm có tác dụng, ở đây thì không. */
.team-gallery .gal-item {
	cursor: default;
}

/* Ảnh đội ngũ lần lượt ghé vào khung hình khi cuộn đến. */
.team-gallery .gal-item {
	border: 4px solid #fff;
	background: #e9f3f2;
	box-shadow: 0 10px 24px rgba( 0, 62, 65, .12 );
}

@media (prefers-reduced-motion: no-preference) {
	.js .team-gallery .gal-item.reveal {
		opacity: 0;
		transform: translateY( 32px ) scale( .92 ) rotate( -2deg );
		transition: opacity .55s ease, transform .65s cubic-bezier( .22, .61, .36, 1 ), box-shadow .35s ease;
	}
	.js .team-gallery .gal-item.reveal:nth-child( even ) { transform: translateY( 32px ) scale( .92 ) rotate( 2deg ); }
	.js .team-gallery .gal-item.reveal.visible { opacity: 1; transform: none; }
	.team-gallery .gal-item.reveal:nth-child( 2 ) { transition-delay: .1s; }
	.team-gallery .gal-item.reveal:nth-child( 3 ) { transition-delay: .2s; }
	.team-gallery .gal-item.reveal:nth-child( 4 ) { transition-delay: .3s; }
	.team-gallery .gal-item.reveal:nth-child( 5 ) { transition-delay: .4s; }
	.team-gallery .gal-item.reveal:nth-child( 6 ) { transition-delay: .5s; }
	.team-gallery .gal-item.reveal.visible img { animation: bvd-team-photo-in .75s .08s both; }
	.team-gallery .gal-item:hover { box-shadow: 0 18px 32px rgba( 0, 62, 65, .2 ); }
	.team-gallery .gal-item:hover img { transform: scale( 1.06 ); }
}

@keyframes bvd-team-photo-in {
	from { transform: scale( 1.12 ); filter: saturate( .75 ); }
	to { transform: scale( 1 ); filter: saturate( 1 ); }
}

/* Ảnh ở thư viện Hoạt động chỉ dùng để xem và lọc theo loại hoạt động. */
#gallery .gal-item {
	cursor: default;
}

/* --- Cờ Việt Nam và lối vào khu vực quản trị --- */
.topbar-right {
	align-items: center;
}

.topbar-login {
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.3;
}

.topbar-login:hover {
	color: var(--amber);
}

.nav-vietnam-flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 20px;
	align-self: center;
	margin-left: 6px;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, .2 );
	overflow: hidden;
}

.nav-vietnam-flag svg {
	display: block;
	width: 100%;
	height: 100%;
}

@media (max-width: 720px) {
	.nav-vietnam-flag {
		align-self: flex-start;
		margin: 8px 16px;
	}
}

/* --- Thư viện ảnh từ Classic Editor ---
 * WordPress cũng dùng class .gallery, trùng với lưới ảnh của theme. Chỉ trong
 * nội dung bài viết, trả lại số cột mà giáo viên đã chọn khi chèn thư viện. */
.article-body .gallery {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	gap: 16px;
	margin: 22px 0;
}

.article-body .gallery-columns-2 { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); }
.article-body .gallery-columns-3 { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); }
.article-body .gallery-columns-4 { grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); }

.article-body .gallery-item {
	min-width: 0;
	margin: 0;
}

.article-body .gallery-icon a,
.article-body .gallery-icon img {
	display: block;
}

.article-body .gallery-icon img {
	width: 100%;
	height: auto;
	margin: 0;
}

@media (max-width: 720px) {
	.article-body .gallery-columns-3,
	.article-body .gallery-columns-4 {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

/* --- Nhịp chữ trang chi tiết --- */
.article-top h1 {
	font-size: clamp( 1.45rem, 3vw, 2.1rem );
	font-weight: 600;
}

.article-body h2 {
	font-weight: 600;
}

.side-box h4 {
	font-size: .92rem;
	font-weight: 600;
}

/* --- Thanh cuộn Tin tức mới nhất ở trang chủ --- */
.news-carousel {
	position: relative;
}

.news-carousel-track {
	display: grid;
	grid-auto-columns: calc( ( 100% - 52px ) / 3 );
	grid-auto-flow: column;
	gap: 26px;
	overflow-x: auto;
	padding: 2px;
	/*
	 * Bù đúng padding 2px phía trên. Thiếu dòng này, điểm snap của tin đầu là
	 * scrollLeft = 2px nên lúc tải trang khung tự cuộn 2px; cùng với
	 * scroll-behavior: smooth, Chrome coi đó là một lần cuộn và ngừng ghi LCP
	 * → PageSpeed báo NO_LCP cho cả trang chủ.
	 */
	scroll-padding-inline: 2px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.news-carousel-track::-webkit-scrollbar {
	display: none;
}

.news-carousel-item {
	min-width: 0;
	scroll-snap-align: start;
}

.news-carousel-item .news {
	flex-direction: column;
	height: 100%;
}

.news-carousel-item .news-thumb {
	width: 100%;
	height: 180px;
}

.news-carousel-controls {
	position: absolute;
	top: 50%;
	left: -19px;
	right: -19px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transform: translateY( -50% );
	pointer-events: none;
}

.news-carousel-control {
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: rgba( 255, 255, 255, .94 );
	box-shadow: 0 5px 16px rgba( 0, 62, 65, .16 );
	color: var(--blue-dark);
	cursor: pointer;
	font-size: 1.55rem;
	line-height: 1;
	pointer-events: auto;
	transition: .2s;
}

.news-carousel-control:hover {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

@media (max-width: 980px) {
	.news-carousel-track {
		grid-auto-columns: calc( ( 100% - 26px ) / 2 );
	}
}

@media (max-width: 720px) {
	.news-carousel-track {
		grid-auto-columns: 100%;
	}

	.news-carousel-controls {
		left: 6px;
		right: 6px;
	}
}

/* --- Trang Tin tức --- */
.news-directory {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient( circle at 8% 10%, rgba( 9, 105, 109, .09 ), transparent 24rem ),
		linear-gradient( 180deg, #fff 0%, var(--bg-alt) 100% );
}

.news-directory::before {
	position: absolute;
	top: 148px;
	right: -90px;
	width: 260px;
	height: 260px;
	border: 36px solid rgba( 228, 183, 86, .16 );
	border-radius: 50%;
	content: '';
}

.news-directory .container {
	position: relative;
	z-index: 1;
}

.news-directory-intro {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 26px;
}

.news-directory-intro h2 {
	font-size: clamp( 1.65rem, 3vw, 2.25rem );
}

.news-directory-intro > p {
	max-width: 450px;
	margin: 0;
	color: var(--muted);
}

.news-directory-filter {
	margin-bottom: 30px;
	padding: 14px;
	border: 1px solid rgba( 9, 105, 109, .13 );
	border-radius: 18px;
	background: rgba( 255, 255, 255, .82 );
	box-shadow: 0 10px 28px rgba( 0, 62, 65, .06 );
	backdrop-filter: blur( 8px );
}

.news-directory-filter .tabs {
	margin-bottom: 0;
}

.news-directory .news {
	box-shadow: 0 6px 18px rgba( 0, 62, 65, .06 );
}

.news-directory .news:hover {
	box-shadow: 0 16px 32px rgba( 0, 62, 65, .14 );
}

.news-directory .news-thumb {
	background: var(--blue-dark);
}

@media (max-width: 720px) {
	.news-directory-intro {
		align-items: start;
		flex-direction: column;
		gap: 10px;
	}

	.news-directory-filter {
		padding: 10px;
	}
}

/* --- Menu chính gọn hơn ---
 * Menu có chín mục nên vùng header được rộng hơn nội dung bài viết. Thu nhỏ
 * logo và khoảng đệm từng mục để nhãn luôn nằm trên một hàng ở màn hình lớn. */
.header .container {
	width: min( 1440px, 96% );
}

.header-inner {
	min-height: 64px;
	gap: 10px;
}

.logo {
	gap: 8px;
}

.logo-mark.logo-mark-image {
	width: 48px;
	height: 42px;
}

.logo-text strong {
	font-size: .9rem;
}

.nav {
	gap: 2px;
}

.nav a {
	padding: 8px 9px;
	font-size: .84rem;
	white-space: nowrap;
}

@media (max-width: 1120px) and (min-width: 721px) {
	.logo-text strong {
		font-size: .8rem;
	}

	.logo-mark.logo-mark-image {
		width: 42px;
		height: 38px;
	}

	.nav a {
		padding: 7px 5px;
		font-size: .74rem;
	}
}

/* --- Lịch sử hình thành: ba ảnh có thể lướt --- */
.history-carousel { position: relative; align-self: stretch; min-width: 0; border-radius: 24px; }
.history-track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	border-radius: 20px;
	scrollbar-width: none;
	box-shadow: 0 16px 40px rgba(0, 62, 65, .14);
}
.history-track::-webkit-scrollbar { display: none; }
.history-track img {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	min-width: 0;
	object-fit: cover;
	scroll-snap-align: start;
	border-radius: 24px;
}
.history-next { position: absolute; z-index: 2; top: 50%; right: 14px; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: rgba( 255, 255, 255, .92 ); box-shadow: 0 5px 16px rgba( 0, 62, 65, .24 ); color: var(--blue-dark); font-size: 1.45rem; cursor: pointer; transform: translateY( -50% ); transition: background .2s, color .2s, transform .2s; }
.history-next:hover { background: var(--blue-dark); color: #fff; transform: translateY( -50% ) scale( 1.08 ); }
.history-next:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.history-track:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.history-campuses { list-style: none; padding: 0; margin: 20px 0; }
.history-campuses li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.history-text > p { color: var(--ink); font-size: .92rem; line-height: 1.65; }
@media (prefers-reduced-motion: reduce) {
	.history-carousel.reveal, .history-next { transition: none; }
	.history-carousel.reveal { transform: none; opacity: 1; }
}

/* --- Ban giám hiệu và quy mô --- */
.leadership-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
.leadership-grid .card { border-top: 4px solid var(--blue); }
.leadership-grid h3 { margin-bottom: 12px; }
.school-scale { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.school-scale table { width: 100%; border-collapse: collapse; text-align: left; }
.school-scale caption { padding: 16px; color: var(--muted); }
.school-scale th, .school-scale td { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.school-scale thead, .school-scale tfoot { background: var(--bg-alt); color: var(--blue-dark); }
.school-scale tfoot { font-weight: 700; }
@media (max-width: 720px) {
	.leadership-grid { grid-template-columns: 1fr; }
	.school-scale th, .school-scale td { padding: 12px; }
}

/* --- Mốc thời gian và nền ảnh quy mô --- */
.timeline b { width: 112px; white-space: nowrap; }
.timeline li > div { min-width: 0; }
.mission-intro { max-width: 820px; margin: 20px auto; font-size: 1.08rem; line-height: 1.85; color: var(--blue-dark); }
.school-scale-section { position: relative; isolation: isolate; overflow: hidden; }
.school-scale-background {
	position: absolute;
	z-index: -2;
	top: -12px;
	right: -12px;
	width: 65%;
	height: calc(100% + 24px);
	object-fit: cover;
	filter: blur(2px);
	opacity: .7;
}
/* Lớp phủ giữ nền trắng ở dải giữa — nơi tiêu đề và câu tóm tắt đứng — rồi
   buông nhanh về bên phải để ảnh nền hiện rõ. Câu tóm tắt dùng --muted, chỉ
   đạt 4.89:1 trên nền trắng, nên vùng chữ không được để ảnh lấn vào. */
.school-scale-section::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,.85) 55%, rgba(255,255,255,.45) 72%, rgba(255,255,255,.04));
}
.school-scale-section .school-scale { background: rgba(255,255,255,.9); }
/* Màn hẹp: chữ trải gần hết bề ngang nên không còn dải trắng nào để né ảnh —
   phủ đều một lớp trắng dày và trả ảnh về mức nhạt như cũ. */
@media (max-width: 980px) {
	.school-scale-background { opacity: .38; }
	.school-scale-section::before { background: linear-gradient(90deg, #fff 18%, rgba(255,255,255,.86) 55%, rgba(255,255,255,.66)); }
}
/* Banner học vụ số: giữ trọn minh họa, ưu tiên độ rõ của tiêu đề. */
.page-hero-digital { background: #003e41; }
.page-hero-digital img {
	left: auto;
	right: 0;
	width: min(55%, 620px);
	object-fit: contain;
	object-position: right center;
	background: #fff;
}
.page-hero-digital::after {
	background: linear-gradient(90deg, #003e41 32%, rgba(0,62,65,.88) 52%, rgba(0,62,65,.15) 100%);
}
.page-hero-digital h1 { max-width: 65%; }
@media (max-width: 720px) {
	.page-hero-digital img { width: 75%; opacity: .55; }
	.page-hero-digital::after { background: linear-gradient(90deg, #003e41 5%, rgba(0,62,65,.65) 100%); }
	.page-hero-digital h1 { max-width: 100%; }
}
/* Ba cơ sở dùng chung ở đầu trang, chân trang và bản đồ liên hệ. */
.topbar-inner { align-items: center; gap: 16px; }
.topbar-campuses { padding: 6px 0; min-width: 0; line-height: 1.5; }
.topbar-right { flex-wrap: wrap; justify-content: flex-end; }
.campus-maps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.campus-map { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.campus-map h3 { padding: 20px 20px 0; color: var(--blue-dark); }
.campus-map p { padding: 8px 20px 20px; margin: 0; min-height: 100px; }
.campus-map iframe { display: block; width: 100%; height: 320px; border: 0; }
@media (max-width: 980px) {
	.campus-maps { grid-template-columns: 1fr; }
	.campus-map p { min-height: 0; }
	.campus-map iframe { height: 360px; }
}
@media (max-width: 720px) {
	.topbar-inner { flex-direction: column; align-items: stretch; gap: 6px; padding-block: 8px; }
	.topbar-right { justify-content: flex-start; }
	.campus-map iframe { height: 300px; }
}
/* Chân dung ban giám hiệu và hành trình phát triển. */
.leadership-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 960px; margin-inline: auto; }
.leadership-card { position: relative; padding: 20px 14px 18px; text-align: center; overflow: visible; border-top: 0 !important; }
.leadership-card::before { content: ''; position: absolute; z-index: -1; inset: 12px 18px auto auto; width: 34px; height: 34px; border-radius: 50%; background: #fff1c8; }
.leadership-portrait { width: 132px; height: 132px; margin: 0 auto 16px; padding: 5px; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: linear-gradient( 135deg, var(--amber), var(--blue) ); box-shadow: 0 9px 20px rgba( 0, 62, 65, .18 ); }
.leadership-portrait img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%; transition: transform .7s ease; }
.leadership-monogram { display: grid; place-items: center; font-size: 3rem; background: radial-gradient(circle, #fff, #dceee8); }
.leadership-card h3, .leadership-card p { padding-inline: 4px; }
.leadership-card h3 { font-size: .98rem; margin-bottom: 7px; }
.leadership-card p { font-size: .82rem; line-height: 1.55; }
.timeline-journey { position: relative; max-width: 900px; border: 0; padding: 8px 0; }
.timeline-journey::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: linear-gradient(#d9ebe5, #20898d 30%, #e4b756 85%, #d9ebe5); }
.timeline-journey li { width: 50%; padding: 0 30px 26px 0; flex-direction: column; gap: 8px; }
.timeline-journey li:nth-child(even) { margin-left: 50%; padding: 0 0 26px 30px; }
.timeline-journey li::before { left: auto; right: -8px; top: 17px; width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px #dfefea; }
.timeline-journey li:nth-child(even)::before { left: -8px; right: auto; }
.timeline-journey b { width: fit-content; padding: 8px 18px; border-radius: 30px; background: var(--blue-dark); color: #fff; box-shadow: 0 6px 18px #003e4115; }
.timeline-journey li > div { padding: 18px; border: 1px solid #deece8; border-radius: 18px; background: linear-gradient(135deg, #fff, #f1f8f5); box-shadow: 0 12px 30px #003e410c; transition: transform .35s, box-shadow .35s; }
.timeline-journey h3 { font-size: 1.02rem; margin-bottom: 7px; }
.timeline-journey li > div p { font-size: .9rem; line-height: 1.6; }
.timeline-journey li:first-child b { background: #e4b756; color: #003e41; }
@media (prefers-reduced-motion: no-preference) {
	.js .timeline-journey li.reveal { transform: translateY( 32px ); }
	.js .timeline-journey li:nth-child(even).reveal { transform: translateY( 32px ); }
	.js .timeline-journey li.reveal.visible { transform: none; }
	body:has(.timeline-journey) .cards-3 .reveal:nth-child(3n + 2), .leadership-grid .reveal:nth-child(2) { transition-delay: .1s; }
	body:has(.timeline-journey) .cards-3 .reveal:nth-child(3n), .leadership-grid .reveal:nth-child(3) { transition-delay: .2s; }
	.leadership-grid .reveal:nth-child(4) { transition-delay: .3s; }
	body:has(.timeline-journey) .section-label::after { content: ''; display: block; width: 48px; height: 3px; margin: 12px 0; background: var(--amber); border-radius: 4px; animation: bvd-line-arrive 1s ease both; }
	body:has(.timeline-journey) .section-head .section-label::after { margin-inline: auto; }
	@keyframes bvd-line-arrive { from { opacity: 0; transform: scaleX(.2); } to { opacity: 1; transform: scaleX(1); } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.leadership-card:hover .leadership-portrait { animation: bvd-portrait-bob .65s ease; }
	.leadership-card:hover img { transform: scale(1.055); }
	.timeline-journey li:hover > div { transform: translateY(-5px); box-shadow: 0 18px 35px #003e4118; }
}
@keyframes bvd-portrait-bob { 0%, 100% { transform: translateY( 0 ); } 45% { transform: translateY( -7px ) rotate( 2deg ); } }
@media (max-width: 980px) { .leadership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
	.history-carousel { min-height: 300px; }
	.timeline-journey::before { left: 9px; }
	.timeline-journey li, .timeline-journey li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 28px 40px; }
	.timeline-journey li::before, .timeline-journey li:nth-child(even)::before { left: 1px; right: auto; }
	.timeline-journey li > div { padding: 20px; }
}
@media (max-width: 480px) { .leadership-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
	.leadership-portrait img, .timeline-journey li > div { transition: none; }
	.js .timeline-journey li.reveal, .js .leadership-grid .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Tương tác trang chủ: thống kê, ảnh giới thiệu và giá trị cốt lõi --- */
.stat {
	transition: background-color .25s ease, transform .25s ease;
}

/* Giá trị cốt lõi: biểu tượng và tên đi cùng một hàng trên cả trang chủ/lần giới thiệu. */
.core-values-grid .card {
	border-top: 4px solid transparent;
	background: linear-gradient( 135deg, #fff, #f5fcfa );
}
.core-values-grid .card:nth-child( 3n + 1 ) { border-top-color: #0b777a; }
.core-values-grid .card:nth-child( 3n + 2 ) { border-top-color: #e4b756; }
.core-values-grid .card:nth-child( 3n ) { border-top-color: #75afa3; }
.core-value-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}
.core-value-heading .card-icon { flex: 0 0 52px; width: 52px; height: 52px; margin: 0; }
.core-value-heading h3 { margin: 0; }
.core-values-grid .card p { margin: 0; line-height: 1.65; }

@media (prefers-reduced-motion: no-preference) {
	.core-values-grid .reveal:nth-child( 3n + 2 ) { transition-delay: .12s; }
	.core-values-grid .reveal:nth-child( 3n ) { transition-delay: .24s; }
	.core-values-grid .card:hover .card-icon { animation: bvd-icon-bounce .55s ease; }
}

@keyframes bvd-icon-bounce {
	0%, 100% { transform: translateY( 0 ) rotate( 0 ); }
	35% { transform: translateY( -7px ) rotate( -7deg ); }
	65% { transform: translateY( 1px ) rotate( 5deg ); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.stat:hover {
		background: rgba( 255, 255, 255, .08 );
		transform: translateY( -4px );
	}
}


@media (prefers-reduced-motion: no-preference) {
	.about-collage .collage-item.visible {
		animation: bvd-collage-fade .75s ease both;
	}
	.about-collage .collage-item-2.visible { animation-delay: .12s; }
	.about-collage .collage-item-3.visible { animation-delay: .24s; }
	.about-collage .collage-item-4.visible { animation-delay: .36s; }
	.about-collage .collage-item-5.visible { animation-delay: .48s; }
}

@keyframes bvd-collage-fade {
	0% { opacity: 0; transform: scale( .94 ); }
	65% { opacity: 1; transform: scale( 1.015 ); }
	100% { opacity: 1; transform: scale( 1 ); }
}

@media (prefers-reduced-motion: reduce) {
	.stat, .about-collage .collage-item.visible { animation: none; transition: none; }
}

/* --- Chuyển động cho dải ảnh lịch sử hình thành --- */
@media (prefers-reduced-motion: no-preference) {
	.history-track { scroll-behavior: smooth; }
	.history-track img.is-active { animation: bvd-history-photo-pan 5.5s ease-out both; }
	.history-carousel::after { content: ''; position: absolute; z-index: 1; inset: 0; border: 1px solid rgba( 255, 255, 255, .6 ); border-radius: 24px; pointer-events: none; }
	.history-next { animation: bvd-history-arrow-pulse 2.4s ease-in-out infinite; }
	.history-carousel:hover .history-next, .history-carousel:focus-within .history-next { animation-play-state: paused; }
}

@keyframes bvd-history-photo-pan {
	from { transform: scale( 1.01 ); }
	to { transform: scale( 1.09 ); }
}

@keyframes bvd-history-arrow-pulse {
	0%, 100% { box-shadow: 0 5px 16px rgba( 0, 62, 65, .24 ); }
	50% { box-shadow: 0 5px 16px rgba( 0, 62, 65, .24 ), 0 0 0 8px rgba( 228, 183, 86, .18 ); }
}

/* Ảnh đại diện giữ tỷ lệ gốc, tự co vừa giao diện mà không cắt nội dung. */
.article-cover {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	aspect-ratio: auto;
	margin-inline: auto;
}

.news-thumb img,
.side-news img {
	object-fit: scale-down;
}

/* Danh sách chuyên mục dùng cùng khung ảnh thấp, giữ nguyên tỷ lệ ảnh gốc. */
.news-directory .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news-directory .news { flex-direction: row; align-items: stretch; min-width: 0; }
.news-directory .news-thumb { width: 190px; height: 150px; min-height: 0; background: var(--bg-alt); }
.news-directory .news-thumb > a:first-child { display: block; width: 100%; height: 100%; }
.news-directory .news-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.news-directory .news-body { flex: 1; min-width: 0; padding: 12px 18px; }
.news-directory .news-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0; }
.news-directory .news-body p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-bottom: 5px; }
.news-directory .tag { max-width: calc(100% - 16px); left: 8px; top: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pagination { flex-wrap: wrap; }

/* Lưới thư viện gọn và hộp xem ảnh phủ toàn màn hình. */
.library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.library-grid .gal-item a { display: block; cursor: zoom-in; }
.library-grid .gal-item a:focus-visible { outline: 3px solid var(--amber); outline-offset: -4px; }
.library-grid .gal-item img { display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.library-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 64px 24px 24px; border: 0; background: rgba(0, 18, 20, .97); color: white; }
.library-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.library-lightbox > img { max-width: 100%; min-height: 0; max-height: calc(100dvh - 150px); object-fit: contain; }
.library-caption { text-align: center; margin: 0; }
.library-close { position: absolute; top: 12px; right: 20px; width: 44px; height: 44px; border: 1px solid #ffffff70; border-radius: 50%; background: transparent; color: white; font-size: 30px; cursor: pointer; }
.library-close:focus-visible { outline: 3px solid var(--amber); }
body.library-open { overflow: hidden; }
@media (max-width: 980px) {
	.library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.news-directory .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.news-directory .news-thumb { width: 116px; height: 140px; }
	.news-directory .news-body { padding: 10px 12px; }
	.news-directory .news-body h3 { font-size: .94rem; }
	.news-directory .news-body p { display: none; }
	.news-directory .tag { font-size: .62rem; padding: 3px 5px; }
	.library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/*
 * Chấm chuyển slide ở hero: vùng bấm 24x24px theo WCAG 2.5.8 (PageSpeed báo
 * "target-size" với chấm 11px cũ). Chấm nhìn thấy vẫn 11px nhờ padding +
 * background-clip; padding thay cho gap nên hai chấm cách nhau 13px thay vì 9px,
 * bottom hạ 6.5px để chấm đứng đúng chỗ cũ. Chỉ áp cho .hero vì .pagination
 * cũng có phần tử class .dots.
 */
.hero .dots { bottom: 17.5px; gap: 0; }
.hero .dots button { width: 24px; height: 24px; padding: 6.5px; background-clip: content-box; }
.hero .dots button.active { width: 41px; }

/*
 * Tiêu đề cột chân trang là h2 thay vì h4 như template để thứ tự tiêu đề không
 * nhảy cóc (PageSpeed báo "heading-order"). Giữ đúng giao diện của .footer h4.
 */
.footer h2 { color: #fff; margin-bottom: 16px; font-size: 1rem; }

/* Bảng màu Hòa Sơn: xanh chàm của logo, nền trời, lá và vàng pastel.
 * Giữ chữ đậm trên nền nhạt để dễ đọc trên cả điện thoại và máy tính. */
:root {
	--blue: #494799;
	--blue-dark: #343475;
	--amber: #f6e6a9;
	--ink: #2d304b;
	--muted: #62677d;
	--line: #e1e3ef;
	--bg-alt: #f4f5fc;
	--shadow: 0 10px 30px rgba( 65, 63, 126, .08 );
	--hs-sky: #e8f3fb;
	--hs-leaf: #edf4df;
	--hs-lavender: #eeecfa;
}

body { background: #fdfdff; }
.topbar { background: var(--blue); color: #fff; }
.topbar a:hover { color: var(--amber); }
.nav a, .tab, .article-body p, .article-body li { color: #484b65; }
.nav a:hover { color: var(--blue); }
.nav a.active, .nav a.active:hover { background: var(--hs-lavender); color: var(--blue-dark); }
.logo-text strong { color: var(--blue-dark); }
.logo-mark.logo-mark-image { object-fit: contain; background: transparent; }
.btn-primary { background: var(--amber); color: #4b4020; }
.btn-primary:hover, a.tag:hover, a.tag-inline:hover { background: #eed88d; }
.tag, .tag-inline { color: #4b4020; }

.stats { background: linear-gradient( 135deg, #f5fbff, var(--hs-sky) 55%, #fff7df ); color: var(--ink); }
.stats-grid { gap: 14px; padding-block: 28px; }
.stat { position: relative; overflow: hidden; padding: 22px 14px; border-radius: 22px; background: rgba( 255, 255, 255, .7 ); box-shadow: 0 12px 30px rgba( 40, 39, 89, .08 ); }
.stat::after { content: ''; position: absolute; right: -28px; top: -28px; width: 86px; height: 86px; border-radius: 50%; background: rgba( 228, 183, 86, .16 ); }
.stat-icon { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba( 40, 39, 89, .08 ); font-size: 1.55rem; transition: transform .25s ease; }
.stat b { position: relative; z-index: 1; color: var(--blue); line-height: 1.1; }
.stat span { position: relative; z-index: 1; color: #515873; }
.stat + .stat { border-left: 0; }
.stat:hover { background: #fff; }
.stat:hover .stat-icon { transform: rotate( -6deg ) scale( 1.05 ); }
.cta-band { background: linear-gradient( 115deg, var(--hs-lavender), var(--hs-sky) 60%, var(--hs-leaf) ); color: var(--blue-dark); }
.cta-inner p { color: #515873; }
.cta-band .btn-ghost { border-color: var(--blue); color: var(--blue); }
.cta-band .btn-ghost:hover { background: #fff; }

.slide::after { background: linear-gradient( 90deg, rgba( 40, 39, 89, .86 ), rgba( 54, 55, 105, .58 ) 55%, rgba( 54, 55, 105, .18 ) ); }
.page-hero::after { background: linear-gradient( 90deg, rgba( 40, 39, 89, .9 ), rgba( 54, 55, 105, .58 ) ); }
.lead, .breadcrumb { color: #eef0ff; }
.page-hero-digital { background: var(--blue-dark); }
.page-hero-digital::after { background: linear-gradient( 90deg, #343475 25%, rgba( 52, 52, 117, .8 ) 55%, rgba( 52, 52, 117, .2 ) ); }
.gal-item figcaption { background: linear-gradient( transparent, rgba( 40, 39, 89, .92 ) ); }

.news-grid .news:nth-child( 4n + 2 ),
.news-grid .news:nth-child( 4n + 3 ) { background: var(--hs-sky); border-color: #dae6f1; }
.core-values-grid .card { background: linear-gradient( 135deg, #fff, var(--hs-lavender) ); }
.core-values-grid .card:nth-child( 3n + 1 ) { border-top-color: #b5b0df; }
.core-values-grid .card:nth-child( 3n + 2 ) { border-top-color: var(--amber); background: #fffdf4; }
.core-values-grid .card:nth-child( 3n ) { border-top-color: #c6d9a9; background: #f5f8ef; }
.leadership-monogram { background: radial-gradient( circle, #fff, var(--hs-lavender) ); }
.timeline-journey::before { background: linear-gradient( #e1e3ef, #b5b0df 30%, var(--amber) 85%, #e1e3ef ); }
.timeline-journey li::before { box-shadow: 0 0 0 5px var(--hs-lavender); }
.timeline-journey li > div { border-color: var(--line); background: linear-gradient( 135deg, #fff, var(--hs-lavender) ); }
.timeline-journey li:first-child b { background: var(--amber); color: var(--blue-dark); }

.footer { background: #eeedf8; color: #535670; }
.footer h2, .footer h4, .footer-logo .logo-text strong { color: var(--blue-dark); }
.footer-logo .logo-text small { color: #62677d; }
.footer a:hover { color: var(--blue); }
.copyright { border-color: #d9daea; color: #62677d; }
.footer .socials a { background: #deddf1; color: var(--blue-dark); }
.footer .socials a:hover { background: var(--amber); }
.contact-form input:focus, .contact-form textarea:focus { box-shadow: 0 0 0 3px rgba( 73, 71, 153, .15 ); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (max-width: 980px) {
	.news-grid .news:nth-child( 4n + 3 ) { background: #fff; border-color: var(--line); }
	.news-grid .news:nth-child( even ) { background: var(--hs-sky); border-color: #dae6f1; }
}

/* Banner phủ toàn khung; nâng vùng lấy ảnh để giữ khuôn mặt giáo viên. */
.hero { height: min(78vh, 620px); }
.hero .slide { position: absolute; inset: 0; display: flex; padding: 48px 0; }
.hero .slide > img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
/* Hai ảnh đã cắt lại: lấy khung thấp hơn để cân đối nhóm người và sân khấu. */
.hero .slide:nth-child(1) > img { object-position: 60% 62%; }
.hero .slide:nth-child(3) > img { object-position: 55% 65%; }
.hero .slide::after { background: linear-gradient(90deg, rgba(40,39,89,.82), rgba(54,55,105,.45) 55%, rgba(54,55,105,.12)); }
.hero .slide-content { width: 100%; max-width: 640px; }
/* Dịch khối chữ khoảng 5cm CSS trên desktop, giữ lề an toàn trên màn nhỏ.
 * Chuyển cảnh mờ dần và cho nội dung xuất hiện nhẹ sau ảnh. */
.hero .slide { transition: opacity 1.4s ease-in-out; }
.hero .slide-content { margin-left: max(6%, calc((100% - 640px) / 2 - 189px)); margin-right: auto; opacity: 0; transform: translateY(12px); transition: opacity .85s ease, transform .85s ease; }
.hero .slide.active .slide-content { opacity: 1; transform: translateY(0); transition-delay: .25s; }
.hero .slide:not(.active) { visibility: hidden; transition: opacity 1.4s ease-in-out, visibility 0s 1.4s; }
.hero .slide.active { visibility: visible; }
.hero .slide h1 { font-size: clamp(2.1rem, 5.6vw, 3.7rem); }
.hero .slider-arrow.prev { left: 8px; }
.hero .slider-arrow.next { right: 8px; }
.page-hero > img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero::after { background: linear-gradient(90deg, rgba(40,39,89,.82), rgba(54,55,105,.35)); }
.page-hero-inner { min-height: 280px; }
.page-hero h1 { max-width: 100%; overflow-wrap: anywhere; }
.page-hero-introduction { min-height: 420px; display: flex; align-items: center; }
.page-hero-introduction > img { object-position: 60% 62%; }
.page-hero-introduction .page-hero-inner { min-height: 0; width: min(640px, 88%); margin-left: max(6%, calc((100% - 640px) / 2 - 189px)); margin-right: auto; padding-block: 70px; }
/* Banner các chuyên mục đồng bộ với ảnh nền và lề chữ trang chủ. */
.page-hero:not(.page-hero-introduction):not(.page-hero-digital) { min-height: 420px; display: flex; align-items: center; }
.page-hero:not(.page-hero-introduction):not(.page-hero-digital) > img { object-position: 60% 62%; }
.page-hero:not(.page-hero-introduction):not(.page-hero-digital)::after { background: linear-gradient(90deg, rgba(40,39,89,.82), rgba(54,55,105,.45) 55%, rgba(54,55,105,.12)); }
.page-hero:not(.page-hero-introduction):not(.page-hero-digital) .page-hero-inner { min-height: 0; width: min(640px, 88%); margin-left: max(6%, calc((100% - 640px) / 2 - 189px)); margin-right: auto; padding-block: 70px; }
@media (max-width: 720px) {
	.page-hero:not(.page-hero-introduction):not(.page-hero-digital) { min-height: 340px; }
	.page-hero:not(.page-hero-introduction):not(.page-hero-digital) .page-hero-inner { width: 92%; margin-inline: auto; padding-block: 56px; }
}
.stats-note { text-align: center; padding: 20px 16px 0; color: var(--muted); }
.history-details { max-width: 900px; }
.history-details p { margin-top: 20px; }
.history-development-section { position: relative; overflow: hidden; background: linear-gradient( 135deg, #f7f6fd, var(--hs-sky) 58%, #f5f8ef ); }
.history-development-section::before,
.history-development-section::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.history-development-section::before { width: 280px; height: 280px; top: -120px; right: -70px; background: rgba( 246, 230, 169, .38 ); }
.history-development-section::after { width: 180px; height: 180px; bottom: -80px; left: -50px; background: rgba( 181, 176, 223, .24 ); }
.history-development-section::before { animation: bvd-history-orbit 9s ease-in-out infinite; }
.history-development-section::after { animation: bvd-history-orbit 11s -3s ease-in-out infinite reverse; }
.history-development { position: relative; z-index: 1; }
.history-development-heading { max-width: 700px; margin-bottom: 34px; }
.history-development-grid { display: grid; grid-template-columns: minmax( 0, .95fr ) minmax( 0, 1.05fr ); gap: 40px; align-items: center; }
.history-development-photos { position: relative; isolation: isolate; padding: 0 44px 40px 0; }
.history-development-photo { position: relative; margin: 0; overflow: hidden; border: 6px solid #fff; border-radius: 24px; background: #fff; box-shadow: 0 20px 42px rgba( 65, 63, 126, .16 ); }
.history-development-photo::before { content: '✦'; position: absolute; z-index: 1; top: 16px; left: 16px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--amber); color: var(--blue-dark); font-size: 1.25rem; }
.history-development-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 48%; }
.history-photo-grid { position: absolute; z-index: 2; right: 0; bottom: 0; display: grid; grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); gap: 10px; width: min( 62%, 300px ); }
.history-photo-grid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 5px solid #fff; border-radius: 18px; box-shadow: 0 12px 26px rgba( 65, 63, 126, .16 ); }
.history-photo-grid img:nth-child( 3 ) { grid-column: 1 / -1; aspect-ratio: 16 / 6; }
.history-development-content { align-self: center; }
.history-development-photos.visible { animation: bvd-history-card-in .8s cubic-bezier( .22, .61, .36, 1 ) both; }
.history-development-photos.visible .history-development-photo img { animation: bvd-history-image-rise 5s ease-in-out .6s infinite alternate; }
.history-development-content > p { margin: 0 0 18px; color: #464a63; }
.history-development-heading.visible { transition-delay: .04s; }
.school-quality-card.visible { transition-delay: .16s; }
.history-highlight-card:nth-child( 1 ) { transition-delay: .22s; }
.history-highlight-card:nth-child( 2 ) { transition-delay: .30s; }
.history-highlight-card:nth-child( 3 ) { transition-delay: .38s; }
.history-highlight-card:nth-child( 4 ) { transition-delay: .46s; }
.history-development-copy.reveal:nth-of-type( 1 ) { transition-delay: .24s; }
.history-development-copy.reveal:nth-of-type( 2 ) { transition-delay: .32s; }
.history-development-copy.reveal:nth-of-type( 3 ) { transition-delay: .40s; }
.history-development-copy.reveal:nth-of-type( 4 ) { transition-delay: .48s; }
.history-development-copy.reveal:nth-of-type( 5 ) { transition-delay: .56s; }
.history-development-copy.reveal:nth-of-type( 6 ) { transition-delay: .64s; }
.school-quality-card { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 24px; padding: 22px; border: 1px solid #deddf1; border-radius: 18px; background: rgba( 255, 255, 255, .88 ); box-shadow: 0 12px 28px rgba( 65, 63, 126, .08 ); }
.school-quality-card h3 { margin-bottom: 6px; color: var(--blue-dark); font-size: 1.15rem; }
.school-quality-card p { margin: 0; color: #464a63; }
.school-campus-classes { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 14px 0 0; list-style: none; }
.school-campus-classes li { padding: 0; }
.school-campus-classes span { color: #62657d; font-size: .92rem; }
.school-campus-classes span::after { content: ': '; }
.school-campus-classes strong { color: var(--blue-dark); font-size: 1rem; }
.history-highlight-grid { display: grid; gap: 14px; }
.history-highlight-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid #e5e3f4; border-radius: 18px; background: linear-gradient( 135deg, #fff, #fbfaff ); box-shadow: 0 10px 24px rgba( 65, 63, 126, .07 ); }
.history-highlight-card h3 { margin: 0 0 6px; color: var(--blue-dark); font-size: 1.05rem; }
.history-highlight-card p { margin: 0; color: #464a63; line-height: 1.65; }
.history-highlight-icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: #fff7df; box-shadow: inset 0 0 0 1px rgba( 228, 183, 86, .35 ); font-size: 1.3rem; }
.history-highlight-card:nth-child( even ) .history-highlight-icon { background: var(--hs-sky); box-shadow: inset 0 0 0 1px #d2deed; }
.school-quality-icon { display: grid; flex: 0 0 auto; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: var(--amber); color: var(--blue-dark); font-size: 1.25rem; }
@keyframes bvd-history-orbit { 0%, 100% { transform: translate3d( 0, 0, 0 ) scale( 1 ); } 50% { transform: translate3d( -12px, 16px, 0 ) scale( 1.08 ); } }
@keyframes bvd-history-card-in { from { opacity: 0; transform: translateY( 28px ) rotate( -1.5deg ); } to { opacity: 1; transform: translateY( 0 ) rotate( 0 ); } }
@keyframes bvd-history-image-rise { from { transform: scale( 1 ); } to { transform: scale( 1.045 ); } }
.badge small { max-width: 90px; }
.header .logo { min-width: 0; }
.header .logo-text { min-width: 0; }
.header .logo-text strong { white-space: normal; }
@media (max-width: 720px) {
	.hero { height: 560px; min-height: 0; }
	.hero .slide { align-items: center; padding: 60px 0; }
	.hero .slide-content { width: 100%; max-width: none; }
	.hero .slide-content { width: 92%; margin-inline: auto; }
	.school-campus-classes { display: grid; gap: 8px; }
	.hero .slide h1 { font-size: 2rem; }
	.hero .dots { bottom: 17px; }
	.page-hero-inner { padding: 52px 0; min-height: 240px; }
	.page-hero-introduction { min-height: 340px; }
	.page-hero-introduction .page-hero-inner { width: 92%; margin-inline: auto; padding-block: 56px; }
	.page-hero h1 { max-width: 100%; }
	.header .logo-text strong { max-width: 200px; }
	.history-development-grid { grid-template-columns: 1fr; gap: 28px; }
	.history-development-photos { padding: 0; }
	.history-photo-grid { position: static; width: 100%; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.hero .slide, .hero .slide:not(.active), .hero .slide-content, .hero .slide.active .slide-content, .history-development-section::before, .history-development-section::after, .history-development-photo.visible, .history-development-photo.visible img { animation: none; transition: none; transform: none; }
}

/* Ảnh quy mô rõ nét; chữ trên nền pastel riêng để không cần làm mờ ảnh. */
.school-scale-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 56px max(4%, calc((100% - 1180px) / 2)); background: var(--hs-sky); }
.school-scale-section::before { display: none; }
.school-scale-section .school-scale-background { position: static; z-index: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; filter: none; opacity: 1; border-radius: 18px; box-shadow: var(--shadow); }
.school-scale-section > .container { width: 100%; min-width: 0; }
.school-scale-section .section-head { margin: 0; text-align: left; }
@media (max-width: 720px) {
	.school-scale-section { grid-template-columns: 1fr; gap: 28px; padding: 40px 4%; }
}

/* Một địa chỉ: bản đồ trải hết khung nội dung. */
.campus-map:only-child { grid-column: 1 / -1; }
.campus-map:only-child p { min-height: 0; }
.campus-map:only-child iframe { height: clamp(320px, 55vh, 560px); }

/* Hero trang chủ: chữ gọn hơn, dịch trái thêm khoảng 3cm trên desktop. */
.hero .slide h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
@media (min-width: 981px) {
	.hero .slide-content { margin-left: max(64px, calc(max(6vw, (100vw - 640px) / 2 - 189px) - 113px)); }
}
@media (max-width: 720px) {
	.hero .slide h1 { font-size: 1.8rem; }
}

/* Video YouTube trong bài viết: trải hết chiều rộng nội dung, tỉ lệ 16:9. */
.article-body figure.wp-block-embed { width: 100%; max-width: none; margin: 22px 0; }
.article-body .wp-block-embed__wrapper { position: relative; width: 100%; }
.article-body iframe[src*="youtube.com"],
.article-body iframe[src*="youtube-nocookie.com"] { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.article-body .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { display: none; }
.article-body .wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe { position: static; }

/* Ảnh chèn lẻ trong bài viết: trải hết chiều rộng nội dung, dù chèn ở cỡ nào. */
.article-body img[class*="wp-image-"] { width: 100%; height: auto; }
