/* Trung Tâm Đăng Khoa — site styles */
:root {
  --navy-950: #081735;
  --navy-900: #0c2150;
  --navy-800: #112d68;
  --navy-700: #13367d;
  --blue-600: #1f56c3;
  --blue-500: #2f6ae0;
  --blue-100: #e6efff;
  --blue-50: #f2f6ff;
  --gold-600: #d99a00;
  --gold-500: #f4b400;
  --gold-400: #ffc53d;
  --gold-100: #fff3cf;
  --gold-50: #fffaeb;
  --ink: #15213d;
  --muted: #5d6882;
  --line: #e3e9f4;
  --bg: #ffffff;
  --tint: #f5f8fe;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(17, 45, 104, .06);
  --shadow: 0 10px 30px rgba(17, 45, 104, .10);
  --shadow-lg: 0 24px 60px rgba(12, 33, 80, .18);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy-900); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.text-gold { color: var(--gold-500); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--gold-500); color: var(--navy-900); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.35em; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.btn-lg { padding: .9em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-900); box-shadow: 0 8px 20px rgba(244, 180, 0, .35); }
.btn-gold:hover { color: var(--navy-900); box-shadow: 0 12px 26px rgba(244, 180, 0, .45); }
.btn-navy { background: var(--navy-700); color: #fff; box-shadow: 0 8px 20px rgba(19, 54, 125, .25); }
.btn-navy:hover { background: var(--navy-800); color: #fff; }
.btn-white { background: #fff; color: var(--navy-800); }
.btn-white:hover { color: var(--navy-900); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--line); color: var(--navy-700); background: #fff; }
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-800); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy-800); }
.icon-btn .ic { width: 22px; height: 22px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .9rem; color: var(--blue-600); }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(4px); }
.chip { display: inline-block; padding: .3em .85em; border-radius: 999px; background: var(--gold-100); color: #8a5a00; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.chip--float { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .95); color: var(--navy-700); box-shadow: var(--shadow-sm); }
.meta { display: inline-flex; align-items: center; gap: .4em; margin: 0; color: var(--muted); font-size: .85rem; }
.meta .ic { color: var(--gold-600); }
.meta--light, .meta--light .ic { color: rgba(255, 255, 255, .85); }

/* ---------- topbar & header ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .85); font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__group { display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar a, .topbar span { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-400); }
.topbar .ic { color: var(--gold-400); }
.topbar strong { color: #fff; font-weight: 600; }
.topbar__social { width: 28px; height: 28px; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .1); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(12, 33, 80, .08); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: block; flex-shrink: 0; }
.brand img { display: block; height: 46px; width: auto; }
.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; }

.main-nav { margin-left: auto; }
.main-nav__head, .main-nav__cta { display: none; }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav__list > li { position: relative; }
.main-nav__list > li > a, .dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--navy-900); font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background .2s, color .2s; }
.main-nav__list > li > a:hover, .dropdown-toggle:hover { background: var(--blue-50); color: var(--blue-600); }
.main-nav__list > li.is-active > a, .main-nav__list > li.is-active > .dropdown-toggle { color: var(--blue-600); background: var(--blue-50); }
.dropdown-toggle .ic { width: 16px; height: 16px; transition: transform .2s; }
.dropdown { position: absolute; top: calc(100% + 10px); left: 50%; width: 460px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s, visibility .2s; }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-dropdown:hover .dropdown, .has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .dropdown-toggle .ic, .has-dropdown.is-open .dropdown-toggle .ic { transform: rotate(180deg); }
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dropdown__grid a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .9rem; }
.dropdown__grid a:hover { background: var(--blue-50); color: var(--blue-600); }
.dropdown__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--gold-100); color: #9a6400; }
.dropdown__footer { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 11px 12px; border-radius: 10px; background: var(--navy-700); color: #fff; font-weight: 600; font-size: .9rem; }
.dropdown__footer:hover { background: var(--navy-800); color: #fff; }
.dropdown__footer .ic:last-child { margin-left: auto; }
.nav-backdrop { display: none; }

/* ---------- sections ---------- */
.section { padding-block: 88px; }
.section--tint { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; text-align: left; flex-wrap: wrap; }
.section-head__links { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 14px; border-radius: 999px; background: var(--gold-100); color: #8a5a00; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow--light { background: rgba(255, 255, 255, .12); color: var(--gold-400); }
.eyebrow--dark { background: rgba(12, 33, 80, .1); color: var(--navy-800); }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
.section-title--light { color: #fff; }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.center-actions { text-align: center; margin-top: 40px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(520px, 78vh, 720px); display: flex; align-items: center; overflow: hidden; background: var(--navy-900); color: #fff; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hero__slide.is-active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 23, 53, .92) 0%, rgba(12, 33, 80, .78) 38%, rgba(19, 54, 125, .25) 72%, rgba(19, 54, 125, .05) 100%); }
.hero__content { position: relative; z-index: 2; padding-block: 64px 120px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 8px 18px; border-radius: 999px; background: rgba(8, 23, 53, .55); border-left: 4px solid var(--gold-500); border-right: 4px solid var(--gold-500); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .05em; }
.hero__badge .ic { color: var(--gold-400); }
.hero__title { max-width: 720px; margin-bottom: 20px; color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.hero__lead { max-width: 600px; margin-bottom: 32px; color: rgba(255, 255, 255, .86); font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__dots { position: absolute; z-index: 3; left: 50%; bottom: 110px; display: flex; gap: 8px; transform: translateX(-50%); }
.hero__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.hero__dots button.is-active { width: 32px; background: var(--gold-500); }

/* ---------- quick cards ---------- */
.quick { position: relative; z-index: 5; margin-top: -84px; }
.quick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quick-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); color: var(--ink); transition: transform .3s, box-shadow .3s; }
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.quick-card__media { display: block; aspect-ratio: 360 / 170; overflow: hidden; background: linear-gradient(135deg, var(--gold-50), var(--blue-50)); }
.quick-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.quick-card:hover .quick-card__media img { transform: scale(1.05); }
.quick-card__body { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.quick-card__icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--navy-700); color: var(--gold-400); }
.quick-card__body strong { display: block; color: var(--navy-900); font-size: 1rem; letter-spacing: .02em; }
.quick-card__body small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.quick-card__go { display: grid; place-items: center; flex-shrink: 0; margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-100); color: var(--navy-800); transition: background .2s, transform .2s; }
.quick-card:hover .quick-card__go { background: var(--gold-500); transform: translateX(3px); }

/* ---------- stats ---------- */
.stats { padding-block: 56px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 22px; border-radius: var(--radius); border: 1px dashed #cfdbf3; text-align: center; background: linear-gradient(180deg, #fff, var(--blue-50)); }
.stat strong { display: block; color: var(--navy-700); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about__media { position: relative; padding: 0 0 30px 30px; }
.about__media::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 80%; border-radius: var(--radius-lg); background: repeating-linear-gradient(45deg, var(--gold-100) 0 10px, var(--gold-50) 10px 20px); }
.about__frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: #fff; }
.about__frame img { display: block; width: 100%; }
.about__since { position: absolute; right: -14px; top: -18px; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; background: var(--navy-700); color: #fff; text-align: center; box-shadow: var(--shadow); border: 6px solid #fff; line-height: 1; }
.about__since span { display: block; color: var(--gold-400); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.about__since strong { display: block; font-size: 1.8rem; font-weight: 800; }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.notice-link { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff1f0; color: #c62828; border: 1px solid #ffd6d2; animation: pulse-red 2.4s infinite; }
.notice-link:hover { color: #a61b1b; background: #ffe5e2; }
.notice-link__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e53935; color: #fff; }
.notice-link strong { display: block; font-size: .92rem; line-height: 1.2; }
.notice-link small { display: block; color: #d45a52; font-size: .78rem; }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, .25); } 50% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); } }

/* ---------- prose (stored HTML) ---------- */
.prose { color: #2b3654; font-size: 1.02rem; overflow-wrap: anywhere; }
.prose--lead { font-size: 1.05rem; }
.prose p { margin: 0 0 1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .6em; }
.prose img { max-width: 100% !important; height: auto !important; border-radius: 12px; }
.prose table { width: 100% !important; border-collapse: collapse; display: block; overflow-x: auto; margin-bottom: 1em; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose iframe, .prose video { max-width: 100%; border-radius: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--gold-500); background: var(--gold-50); border-radius: 0 12px 12px 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- programs ---------- */
.programs__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.program-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy-900); transition: transform .25s, box-shadow .25s, border-color .25s; }
.program-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--gold-100); transition: transform .35s; }
.program-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow); color: var(--navy-900); }
.program-card:hover::after { transform: scale(1.5); }
.program-card__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: #fff; }
.program-card__icon .ic { width: 26px; height: 26px; }
.program-card strong { position: relative; z-index: 1; font-size: 1.02rem; }
.program-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-600); font-size: .82rem; font-weight: 600; }

/* ---------- why ---------- */
.why { position: relative; padding-block: 96px; background: var(--navy-900) var(--why-bg) center / cover no-repeat; color: #fff; }
.why::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8, 23, 53, .95), rgba(19, 54, 125, .85)); }
.why__inner { position: relative; display: grid; grid-template-columns: .9fr 1.3fr; gap: 56px; align-items: center; }
.why__badge { display: inline-flex; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); }
.why__badge strong { color: var(--gold-400); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.why__badge span { color: rgba(255, 255, 255, .85); font-size: .92rem; line-height: 1.4; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-card { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: var(--shadow-lg); transition: transform .25s; }
.why-card:hover { transform: translateY(-5px); }
.why-card__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 16px; background: var(--gold-100); color: #9a6400; }
.why-card__icon .ic { width: 28px; height: 28px; }
.why-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.why-card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- news ---------- */
.news-home__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.news-feature { position: relative; min-height: 460px; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-800); box-shadow: var(--shadow); }
.news-feature__media { position: absolute; inset: 0; }
.news-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-feature:hover .news-feature__media img { transform: scale(1.05); }
.news-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 23, 53, 0) 30%, rgba(8, 23, 53, .92) 100%); pointer-events: none; }
.news-feature__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 30px; color: #fff; }
.news-feature__body h3 { margin: 10px 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.news-feature__body h3 a { color: #fff; }
.news-feature__body h3 a:hover { color: var(--gold-400); }
.news-feature__excerpt { color: rgba(255, 255, 255, .82); font-size: .95rem; }
.news-list { display: grid; gap: 16px; align-content: start; }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, transform .25s; }
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-item__thumb { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--blue-50); }
.news-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item__thumb img.is-logo, .widget-posts__thumb img.is-logo { object-fit: contain; padding: 14%; }
.news-item h3 { margin: 6px 0; font-size: 1rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item h3 a { color: var(--navy-900); }
.news-item h3 a:hover { color: var(--blue-600); }

.tabs-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; color: var(--navy-800); font-weight: 600; font-size: .92rem; }
.tab.is-active { background: var(--navy-700); color: #fff; }
.tab:not(.is-active):hover { background: var(--blue-50); }
.search-box { display: flex; align-items: center; gap: 8px; min-width: min(320px, 100%); padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.search-box:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-grid__cell { display: flex; }
.post-card { display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--blue-50), var(--gold-50)); }
.post-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__media > img { transform: scale(1.06); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.post-card__title { margin: 0; font-size: 1.06rem; line-height: 1.4; }
.post-card__title a { color: var(--navy-900); }
.post-card__title a:hover { color: var(--blue-600); }
.post-card__excerpt { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .link-arrow { margin-top: auto; padding-top: 6px; }
.empty-state { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; border-radius: var(--radius); background: #fff; color: var(--muted); text-align: center; }
.empty-state--big { flex-direction: column; padding: 60px 24px; }
.empty-state--big .ic { width: 48px; height: 48px; color: var(--gold-500); }

/* ---------- gallery & lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: #dfe7f5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12, 33, 80, .6)); opacity: 0; transition: opacity .3s; }
.gallery-item__zoom { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .3s, transform .3s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after, .gallery-item:hover .gallery-item__zoom { opacity: 1; }
.gallery-item:hover .gallery-item__zoom { transform: translate(-50%, -50%) scale(1); }

.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(6, 15, 36, .94); padding: 20px; animation: fade-in .2s; }
.lightbox__figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; text-align: center; }
.lightbox__figure img { display: block; max-width: 100%; max-height: calc(100vh - 90px); margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__count { margin-top: 12px; color: rgba(255, 255, 255, .75); font-size: .9rem; }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold-500); color: var(--navy-900); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .ic { width: 26px; height: 26px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding-block: 64px 70px; background: var(--navy-900) var(--hero-bg) center / cover no-repeat; color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(8, 23, 53, .94), rgba(19, 54, 125, .78)); }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(244, 180, 0, .14); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { max-width: 900px; margin: 14px 0 0; color: #fff; font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 800; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .9); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb__sep { width: 14px; height: 14px; opacity: .6; }
.breadcrumb span[aria-current] { color: var(--gold-400); }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.article-card { padding: clamp(22px, 4vw, 44px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.article-card__head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-card__title { margin: 12px 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.article-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-card__lead { margin-bottom: 20px; padding: 18px 22px; border-radius: 14px; background: var(--blue-50); font-weight: 500; }
.article-card__lead p:last-child { margin-bottom: 0; }
.share { display: inline-flex; gap: 8px; }
.share__btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy-700); transition: background .2s, color .2s; }
.share__btn:hover, .share__btn.is-done { background: var(--navy-700); color: #fff; }
.related { margin-top: 40px; }
.related__title { font-size: 1.35rem; margin-bottom: 20px; }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 22px; }
.widget { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.widget__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--gold-100); font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; }
.widget__title .ic { color: var(--gold-600); }
.widget-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.widget-posts a { display: flex; gap: 12px; align-items: center; padding: 8px; margin-inline: -8px; border-radius: 10px; color: var(--ink); }
.widget-posts a:hover { background: var(--blue-50); }
.widget-posts__thumb { flex-shrink: 0; width: 70px; height: 54px; overflow: hidden; border-radius: 8px; background: var(--blue-50); }
.widget-posts__thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-posts__text { min-width: 0; }
.widget-posts__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.widget-posts .meta { font-size: .78rem; }
.widget--contact { text-align: center; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; border: 0; display: grid; gap: 10px; }
.widget--contact img { margin: 0 auto; }
.widget--contact h3 { margin: 4px 0 0; color: #fff; font-size: 1.15rem; }
.widget--contact p { margin: 0 0 6px; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.widget-programs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.widget-programs a { display: flex; align-items: center; gap: 10px; padding: 8px; margin-inline: -8px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .92rem; }
.widget-programs a > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--gold-100); color: #9a6400; }
.widget-programs a:hover { background: var(--blue-50); color: var(--blue-600); }
.widget-programs .ic-end { margin-left: auto; width: 16px; height: 16px; color: #9aa6c0; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 32px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.contact-card__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 16px; background: var(--blue-100); color: var(--blue-600); }
.contact-card__icon .ic { width: 26px; height: 26px; }
.contact-card h3 { margin: 0; font-size: 1.1rem; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card--accent { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; border: 0; }
.contact-card--accent h3 { color: #fff; }
.contact-card--accent .contact-card__icon { background: var(--gold-500); color: var(--navy-900); }
.contact-card__phones { display: grid; gap: 6px; }
.contact-card__phones a { color: #fff; font-size: 1.2rem; font-weight: 700; }
.contact-card__phones a:hover { color: var(--gold-400); }
.contact-card__social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.map-card { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); line-height: 0; }

/* ---------- CTA & footer ---------- */
.cta-band { padding-block: 56px; background: linear-gradient(120deg, var(--gold-400), var(--gold-500) 60%, #ffb000); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band__title { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.cta-band__text { margin: 0; color: #5a4200; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); font-size: .93rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.2fr; gap: 40px; padding-block: 70px 50px; }
.site-footer__about img { display: block; margin-bottom: 18px; }
.site-footer__title { margin: 6px 0 18px; color: #fff; font-size: 1.02rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__links--2col { grid-template-columns: 1fr 1fr; column-gap: 14px; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: var(--gold-400); }
.site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.site-footer__contact li { display: flex; gap: 12px; }
.site-footer__contact .ic { margin-top: 3px; color: var(--gold-400); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-size: .72rem; font-weight: 700; transition: background .2s, color .2s; }
.social a:hover { background: var(--gold-500); color: var(--navy-900); }
.site-footer__bottom { padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; text-align: center; }

.float-contact { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.float-contact__item { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); transition: transform .2s; }
.float-contact__item:hover { color: #fff; transform: scale(1.08); }
.float-contact__item .ic { width: 24px; height: 24px; }
.float-contact__item b { font-size: .75rem; }
.float-contact__item--zalo { background: #0068ff; }
.float-contact__item--fb { background: linear-gradient(135deg, #00b2ff, #006aff); }
.float-contact__item--phone { background: #e53935; animation: ring 1.8s infinite; }
.float-contact__label { position: absolute; right: calc(100% + 10px); padding: 6px 12px; border-radius: 8px; background: var(--navy-900); color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .2s, transform .2s; }
.float-contact__item:hover .float-contact__label { opacity: 1; transform: none; }
.float-contact__top { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--navy-700); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.float-contact__top.is-visible { opacity: 1; visibility: visible; transform: none; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, .55); } 70% { box-shadow: 0 0 0 16px rgba(229, 57, 53, 0); } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .main-nav__list > li > a, .dropdown-toggle { padding: 10px 8px; font-size: .88rem; }
  .programs__grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(360px, 88vw); margin: 0; padding: 18px; overflow-y: auto; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .3s ease; display: flex; flex-direction: column; gap: 14px; }
  .main-nav.is-open { transform: none; }
  .main-nav__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav__list > li > a, .dropdown-toggle { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1rem; }
  .dropdown { position: static; width: auto; padding: 4px 0 8px 8px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .dropdown::before { display: none; }
  .has-dropdown:hover .dropdown { transform: none; }
  .has-dropdown.is-open .dropdown { display: block; transform: none; }
  .has-dropdown:hover .dropdown-toggle .ic { transform: none; }
  .has-dropdown.is-open .dropdown-toggle .ic { transform: rotate(180deg); }
  .dropdown__grid { grid-template-columns: 1fr; }
  .main-nav__cta { display: grid; gap: 10px; margin-top: auto; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(8, 23, 53, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; display: block; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .about__grid, .why__inner, .news-home__grid { grid-template-columns: 1fr; gap: 40px; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .post-grid, .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .hide-md { display: none !important; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .section { padding-block: 60px; }
  .hero { min-height: 560px; }
  .hero::after { background: linear-gradient(180deg, rgba(8, 23, 53, .55), rgba(8, 23, 53, .9)); }
  .hero__content { padding-block: 48px 120px; }
  .hero__dots { bottom: 104px; }
  .quick { margin-top: -70px; }
  .quick__grid, .contact-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .programs__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .program-card { padding: 18px 16px; }
  .why__grid { grid-template-columns: 1fr; }
  .news-feature { min-height: 380px; }
  .news-item { grid-template-columns: 110px 1fr; gap: 14px; }
  .post-grid, .post-grid--3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; padding-block: 50px 30px; }
  .about__media { padding: 0 0 18px 18px; }
  .about__since { width: 92px; height: 92px; right: -4px; }
  .about__since strong { font-size: 1.4rem; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .hide-sm { display: none !important; }
  .tabs-bar { flex-direction: column; align-items: stretch; }
  .tabs { justify-content: center; }
  .lightbox__nav { top: auto; bottom: 18px; transform: none; }
}
