:root {
  --blue: #0056b3;
  --blue-bright: #0877df;
  --blue-dark: #002d68;
  --blue-night: #001a40;
  --cyan: #40c9ed;
  --yellow: #ffd633;
  --red: #d71920;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #101b2d;
  --muted: #5d6b80;
  --line: #dbe4ef;
  --soft: #eef5ff;
  --shadow: 0 24px 70px rgba(0, 38, 91, .14);
  --radius: 26px;
}

.tthc-gemini-answer {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    font-size: 10.5px;
}

.tthc-gemini-answer p {
    margin: 0;
    line-height: 1.65;
    white-space: pre-line;
}

.tthc-answer-section-title {
    margin: 10px 0 0;
    color: #173b82;
    font-size: 11.5px;
    line-height: 1.4;
}

.tthc-answer-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 22px;
}

.tthc-answer-list li {
    padding-left: 2px;
    font-size: 10.5px;
    line-height: 1.58;
}

.tthc-answer-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 7px;
    align-items: start;
    padding: 8px 10px;
    border-left: 3px solid #2563eb;
    border-radius: 0 8px 8px 0;
    background: #f5f8ff;
    font-size: 10.5px;
    line-height: 1.58;
}

.tthc-answer-step strong {
    color: #173b82;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .tthc-answer-step {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Be Vietnam Pro", "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.portal-home.site-background-enabled {
  position: relative;
  background-color: #dff3ff;
  background-image: linear-gradient(135deg,#d8f0ff 0%,#edf9ff 52%,#cfeeff 100%);
  isolation: isolate;
}
.site-animated-background {
  position: fixed;
  z-index: 0;
  inset: -4%;
  pointer-events: none;
  background-image: linear-gradient(rgba(213,240,255,.34),rgba(213,240,255,.34)),var(--site-background-image);
  background-size: cover;
  background-position: center;
  opacity: .62;
  transform: scale(1.02);
  transform-origin: center;
  will-change: transform;
}
body.portal-home.site-background-enabled::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .48;
  background-image: radial-gradient(circle,rgba(0,86,179,.42) 1.35px,transparent 1.8px),linear-gradient(120deg,rgba(255,255,255,.35),transparent 60%);
  background-size: 30px 30px,100% 100%;
  mix-blend-mode: multiply;
}
body.portal-home.site-background-enabled.site-background-motion::before { animation: site-background-drift 12s linear infinite; }
body.portal-home.site-background-enabled > :not(.site-animated-background):not(.site-intro-splash):not(.feedback-bubble):not(.tthc-chat-bubble) {
  position: relative;
  z-index: 1;
}
@keyframes site-background-drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(25px,25px,0); } }
body::selection { color: var(--blue-night); background: var(--yellow); }
img { display: block; width: 100%; max-width: 100%; }
figure, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 999;
  left: 18px;
  top: 12px;
  padding: 10px 16px;
  color: var(--blue-night);
  background: var(--yellow);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.topline { color: #fff; background: var(--blue-night); font-size: 12px; letter-spacing: .02em; }
.topline-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topline p:first-child span { color: var(--yellow); margin-right: 8px; }
.topline-motto { color: rgba(255,255,255,.66); text-transform: uppercase; letter-spacing: .13em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid rgba(0,45,104,.1);
  backdrop-filter: blur(18px);
  isolation: isolate;
}
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-symbol {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border: 3px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0,86,179,.22);
}
.brand-symbol b { font-size: 24px; line-height: 1; }
.brand-symbol i { position: absolute; right: -4px; top: -7px; color: var(--red); font-size: 15px; font-style: normal; text-shadow: 0 1px #fff; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { color: var(--blue-night); font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.desktop-nav a { position: relative; color: #253650; font-size: 13px; font-weight: 750; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 3px; background: var(--yellow); transition: right .22s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { cursor: pointer; list-style: none; color: #fff; background: var(--blue); padding: 10px 13px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; left: 24px; right: 24px; top: calc(100% + 1px); display: grid; padding: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mobile-nav nav a { padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 750; }

/* Thanh danh mục luôn nằm trên nội dung khi cuộn trang. */
main { position: relative; z-index: 1; }
.site-header, .site-header * { transform: translateZ(0); }
.mobile-nav nav a:last-child { border: 0; }

.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow > span { width: 30px; height: 3px; background: var(--yellow); }
.eyebrow-light { color: #d9ecff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-yellow { color: var(--blue-night); background: var(--yellow); box-shadow: 0 12px 30px rgba(255,214,51,.25); }
.button-blue { color: #fff; background: var(--blue); box-shadow: 0 12px 30px rgba(0,86,179,.22); }
.button-outline { color: #fff; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
.plain-link { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: 13px; font-weight: 850; }
.plain-link-light { color: #fff; }
.plain-link span { transition: transform .2s ease; }
.plain-link:hover span { transform: translate(3px,-3px); }

.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--blue-night), var(--blue) 62%, #0287d1); }
.hero::before { content: ""; position: absolute; width: 540px; height: 540px; right: -210px; top: -190px; border: 90px solid rgba(255,214,51,.1); border-radius: 50%; }
.hero::after { content: ""; position: absolute; width: 420px; height: 180px; left: -90px; bottom: -115px; background: var(--red); border-radius: 50% 50% 0 0; transform: rotate(-8deg); opacity: .9; }
.hero-pattern { position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(circle, #fff 1px, transparent 1.5px); background-size: 24px 24px; mask-image: linear-gradient(to right, #000, transparent 55%); }
.hero-grid { position: relative; z-index: 2; min-height: 690px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 70px; padding-block: 78px 82px; }
.hero-copy h1 { margin: 18px 0 24px; max-width: 680px; font-size: clamp(48px, 6vw, 82px); line-height: .99; letter-spacing: -.055em; }
.hero-copy h1 em { color: var(--yellow); font-style: normal; }
.hero-lead { max-width: 650px; color: rgba(255,255,255,.78); font-size: 17px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero-signature { display: flex; align-items: flex-start; gap: 10px; margin-top: 50px; color: rgba(255,255,255,.73); font-size: 13px; line-height: 1.5; text-transform: uppercase; letter-spacing: .08em; }
.hero-signature > span { color: var(--yellow); font: 58px/.7 Georgia, serif; }
.hero-media { position: relative; height: 560px; }
.hero-photo { position: absolute; overflow: hidden; border: 6px solid rgba(255,255,255,.88); box-shadow: 0 34px 80px rgba(0,19,53,.35); }
.hero-photo img { height: 100%; object-fit: cover; }
.hero-photo-main { inset: 30px 0 50px 76px; border-radius: 180px 20px 70px 22px; }
.hero-photo-small { width: 210px; height: 255px; left: 0; bottom: 0; border-radius: 28px 90px 28px 28px; }
.hero-badge { position: absolute; right: -12px; top: 0; width: 124px; height: 124px; display: grid; place-content: center; text-align: center; color: var(--blue-night); background: var(--yellow); border-radius: 50%; box-shadow: 0 20px 40px rgba(0,20,53,.25); transform: rotate(7deg); }
.hero-badge span { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.hero-badge strong { font-size: 16px; line-height: 1.1; }
.hero-badge i { color: var(--red); font-style: normal; }
.hero-year { position: absolute; right: 6px; bottom: 12px; padding: 11px 15px; color: #fff; background: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .1em; transform: rotate(-3deg); }

.featured-strip { position: relative; z-index: 5; padding: 70px 0; background: #fff; }
.featured-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 62px; align-items: center; }
.featured-image { position: relative; display: block; min-height: 410px; overflow: hidden; border-radius: 0 var(--radius) var(--radius) var(--radius); box-shadow: var(--shadow); }
.featured-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured-image:hover img { transform: scale(1.035); }
.image-tag { position: absolute; left: 0; top: 0; padding: 10px 15px; color: var(--blue-night); background: var(--yellow); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.featured-copy h2 { margin: 16px 0 13px; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.featured-copy h2 a:hover { color: var(--blue); }
.post-meta { color: var(--muted); font-size: 12px; }
.featured-excerpt { margin: 22px 0 28px; color: var(--muted); font-size: 16px; }

.section { padding: 96px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 42px; margin-bottom: 42px; }
.section-heading h2 { margin: 10px 0 0; font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -.05em; }
.section-heading > p { max-width: 470px; color: var(--muted); font-size: 14px; }
.section-heading-light h2, .section-heading-light > p { color: #fff; }
.section-heading-light > p { color: rgba(255,255,255,.65); }

.section-latest { background: var(--soft); }
.latest-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 22px; }
.post-card { grid-column: span 4; overflow: hidden; background: #fff; border: 1px solid rgba(0,45,104,.08); border-radius: 18px; box-shadow: 0 15px 45px rgba(0,38,91,.07); }
.post-card-wide { grid-column: span 8; display: grid; grid-template-columns: 1.05fr .95fr; }
.post-card-image { position: relative; display: block; height: 230px; overflow: hidden; background: #cbd8e7; }
.post-card-wide .post-card-image { height: 100%; min-height: 355px; }
.post-card-image img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card-image img { transform: scale(1.045); }
.post-card-number { position: absolute; top: 12px; right: 12px; min-width: 42px; padding: 8px; color: #fff; background: rgba(0,26,64,.84); border-radius: 50px; text-align: center; font-size: 12px; font-weight: 900; backdrop-filter: blur(8px); }
.post-card-body { padding: 24px; }
.post-card-category { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.post-card h3 { margin: 10px 0 12px; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.post-card h2 { margin: 10px 0 12px; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.post-card h3 a:hover { color: var(--blue); }
.post-card h2 a:hover { color: var(--blue); }
.post-card-body > p:not(.post-card-category) { color: var(--muted); font-size: 13px; }
.post-card-foot { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; }
.post-card-foot time { color: var(--muted); }
.post-card-foot a { color: var(--blue); font-weight: 900; }
.empty-state { padding: 42px; background: #fff; border: 1px dashed #aac0dc; border-radius: 18px; text-align: center; }
.empty-state p { color: var(--muted); }

.section-categories { position: relative; overflow: hidden; color: #fff; background: var(--blue-night); }
.section-categories::before { content: "★"; position: absolute; right: -20px; top: -120px; color: rgba(255,214,51,.06); font-size: 520px; line-height: 1; }
.category-list { position: relative; border-top: 1px solid rgba(255,255,255,.18); }
.category-row { min-height: 142px; display: grid; grid-template-columns: 70px 150px 1fr 58px; align-items: center; gap: 26px; border-bottom: 1px solid rgba(255,255,255,.18); transition: background .2s ease, padding .2s ease; }
.category-row:hover { padding-inline: 12px; background: rgba(255,255,255,.045); }
.category-number { color: var(--yellow); font: italic 28px Georgia, serif; }
.category-thumb { height: 92px; overflow: hidden; border-radius: 14px; }
.category-thumb img { height: 100%; object-fit: cover; }
.category-copy > p { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.category-copy h3 { margin: 4px 0 3px; font-size: clamp(24px,3vw,36px); line-height: 1.15; }
.category-copy span { color: rgba(255,255,255,.62); font-size: 13px; }
.round-link { width: 50px; height: 50px; display: grid; place-items: center; color: var(--blue-night); background: var(--yellow); border-radius: 50%; font-size: 20px; transition: transform .2s ease; }
.round-link:hover { transform: rotate(10deg) scale(1.06); }
.round-link-muted { color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }

.activity-grid { display: grid; grid-template-columns: .76fr 1.24fr; align-items: center; gap: 80px; }
.activity-copy h2 { margin: 14px 0 24px; font-size: clamp(44px,5vw,68px); line-height: 1.03; letter-spacing: -.05em; }
.activity-copy > p:not(.eyebrow) { margin-bottom: 26px; color: var(--muted); }
.activity-collage { position: relative; min-height: 530px; display: grid; grid-template-columns: 1.18fr .82fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.activity-collage figure { overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); }
.activity-collage figure img { height: 100%; object-fit: cover; }
.collage-main { grid-row: 1 / 3; }
.collage-note { position: absolute; left: 32px; bottom: -20px; padding: 14px 18px; color: var(--blue-night); background: var(--yellow); font-size: 10px; font-weight: 900; letter-spacing: .13em; transform: rotate(-3deg); }

.hometown { min-height: 580px; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--blue); }
.hometown-image { min-height: 580px; overflow: hidden; }
.hometown-image img { height: 100%; object-fit: cover; }
.hometown-copy { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 70px max(48px,8vw); color: #fff; background: linear-gradient(145deg, var(--blue), #003c89); }
.hometown-copy::after { content: "★"; position: absolute; right: -40px; bottom: -95px; color: rgba(255,214,51,.12); font-size: 320px; }
.hometown-copy h2 { position: relative; z-index: 1; margin: 15px 0 24px; font-size: clamp(46px,5vw,72px); line-height: 1.02; letter-spacing: -.05em; }
.hometown-copy > p:not(.eyebrow) { position: relative; z-index: 1; max-width: 540px; color: rgba(255,255,255,.76); }
.hometown-copy .button { position: relative; z-index: 1; margin-top: 30px; }

.gallery-section { background: #fff; }
.photo-grid { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: 210px; gap: 14px; }
.photo-item { position: relative; overflow: hidden; grid-column: span 4; border-radius: 16px; }
.photo-item-1, .photo-item-4 { grid-column: span 8; }
.photo-item-1 { grid-row: span 2; }
.photo-item img { height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-item:hover img { transform: scale(1.045); }
.photo-item figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 11px; padding: 38px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(0,19,51,.9)); font-size: 12px; font-weight: 800; }
.photo-item figcaption span { color: var(--yellow); font: italic 18px Georgia, serif; }

.cta-section { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--red), #b3101e 45%, var(--blue-night) 45.2%); }
.cta-inner { position: relative; z-index: 2; min-height: 540px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 70px; }
.cta-section h2 { margin: 16px 0 20px; font-size: clamp(52px,7vw,92px); line-height: .96; letter-spacing: -.055em; }
.cta-section h2 em { color: var(--yellow); font-style: normal; }
.cta-section .cta-inner > p:not(.eyebrow) { max-width: 620px; color: rgba(255,255,255,.72); }
.cta-section .button { margin-top: 32px; }
.cta-star { position: absolute; right: 5vw; top: -100px; color: rgba(255,214,51,.13); font-size: 600px; line-height: 1; transform: rotate(10deg); }

.site-footer { color: #fff; background: #071222; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.45fr .75fr .65fr 64px; gap: 60px; padding-block: 64px; }
.brand-footer .brand-copy strong { color: #fff; }
.brand-footer .brand-copy small { color: var(--yellow); }
.footer-intro { max-width: 380px; margin-top: 22px; color: rgba(255,255,255,.55); font-size: 13px; }
.footer-links { display: grid; align-content: start; gap: 9px; }
.footer-links strong { margin-bottom: 7px; color: var(--yellow); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { color: rgba(255,255,255,.68); font-size: 13px; }
.footer-links a:hover { color: #fff; }
.back-top { width: 54px; height: 54px; display: grid; place-items: center; color: var(--blue-night); background: var(--yellow); border-radius: 50%; font-size: 22px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 19px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: 11px; }

/* Trang bài viết */
.article-hero { position: relative; overflow: hidden; padding: 70px 0 130px; color: #fff; background: linear-gradient(135deg, var(--blue-night), #004eab); }
.article-hero::after { content: "★"; position: absolute; right: -65px; top: -155px; color: rgba(255,214,51,.09); font-size: 520px; line-height: 1; }
.breadcrumb { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 9px; color: rgba(255,255,255,.64); font-size: 12px; }
.breadcrumb a:hover { color: var(--yellow); }
.article-title-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 70px; margin-top: 65px; }
.article-title-grid h1 { margin: 15px 0 0; font-size: clamp(46px,6vw,78px); line-height: 1.02; letter-spacing: -.052em; }
.article-deck { color: rgba(255,255,255,.75); font-size: 17px; }
.article-meta { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 50px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.article-meta div { display: grid; gap: 3px; }
.article-meta span { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.article-meta time, .article-meta strong { font-size: 13px; font-weight: 750; }
.article-image-wrap { position: relative; z-index: 5; margin-top: -72px; }
.article-cover { overflow: hidden; background: #fff; border: 8px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 700px; object-fit: cover; }
.article-cover figcaption { padding: 10px 13px 5px; color: var(--muted); font-size: 11px; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0,720px); justify-content: center; gap: 80px; padding-block: 78px 100px; }
.article-aside { align-self: start; position: sticky; top: 120px; padding: 28px; color: #fff; background: var(--blue); border-radius: 18px; }
.article-aside-star { display: block; color: var(--yellow); font-size: 32px; }
.article-aside p { margin: 10px 0 18px; font-size: 14px; font-weight: 850; }
.article-aside a { color: #fff; font-size: 12px; font-weight: 750; }
.article-lead { margin-bottom: 32px; padding-left: 22px; border-left: 5px solid var(--yellow); color: var(--blue-night); font-size: clamp(20px,2.5vw,28px); font-weight: 750; line-height: 1.45; }
.article-body { color: #2a3b52; font-size: 17px; line-height: 1.9; }
.article-source { display: flex; flex-wrap: wrap; gap: 9px 20px; align-items: center; margin-top: 42px; padding: 18px 20px; background: var(--soft); border-radius: 12px; }
.article-source span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.article-source strong { font-size: 13px; }
.article-back { margin-top: 30px; }
.related-section { background: var(--soft); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.related-card { padding-bottom: 20px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,38,91,.07); }
.related-image { position: relative; display: block; height: 220px; overflow: hidden; }
.related-image img { height: 100%; object-fit: cover; transition: transform .4s ease; }
.related-card:hover .related-image img { transform: scale(1.04); }
.related-image span { position: absolute; top: 12px; right: 12px; padding: 7px 10px; color: var(--blue-night); background: var(--yellow); border-radius: 50px; font-size: 11px; font-weight: 900; }
.related-card > p, .related-card > h3, .related-card > div { margin-inline: 20px; }
.related-card > p { margin-top: 18px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.related-card h3 { margin-top: 8px; margin-bottom: 18px; font-size: 20px; line-height: 1.3; }
.related-card > div { display: flex; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.related-card > div a { color: var(--blue); font-size: 18px; }
.not-found { position: relative; overflow: hidden; min-height: 650px; display: grid; align-items: center; color: #fff; background: linear-gradient(135deg, var(--blue-night), var(--blue)); }
.not-found-mark { position: absolute; right: -30px; bottom: -180px; color: rgba(255,255,255,.07); font-size: min(44vw,620px); font-weight: 900; line-height: 1; }
.not-found-inner { position: relative; z-index: 2; padding-block: 80px; }
.not-found h1 { margin: 15px 0 20px; font-size: clamp(58px,8vw,110px); line-height: .95; letter-spacing: -.055em; }
.not-found h1 em { color: var(--yellow); font-style: normal; }
.not-found-inner > p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.not-found .button { margin-top: 30px; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-media { height: 500px; }
  .post-card, .post-card-wide { grid-column: span 6; }
  .post-card-wide { display: block; }
  .post-card-wide .post-card-image { min-height: 0; height: 260px; }
  .activity-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1.25fr .8fr .8fr 54px; gap: 34px; }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 34px, 720px); }
  .topline-motto { display: none; }
  .header-inner { min-height: 76px; }
  .brand-symbol { width: 44px; height: 44px; }
  .brand-copy strong { font-size: 16px; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; padding-block: 64px; }
  .hero-copy { max-width: 680px; }
  .hero-media { height: 460px; }
  .hero-photo-main { left: 90px; }
  .featured-grid { grid-template-columns: 1fr; gap: 36px; }
  .featured-image { min-height: 380px; }
  .section { padding: 72px 0; }
  .section-heading { display: grid; gap: 18px; }
  .category-row { grid-template-columns: 48px 100px 1fr 48px; gap: 15px; }
  .activity-grid { grid-template-columns: 1fr; }
  .hometown { grid-template-columns: 1fr; }
  .hometown-image { min-height: 430px; }
  .hometown-copy { min-height: 470px; }
  .photo-item, .photo-item-1, .photo-item-4 { grid-column: span 6; grid-row: span 1; }
  .photo-item-1 { grid-row: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .back-top { position: absolute; right: 0; top: 58px; }
  .article-title-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 48px; }
  .article-layout { grid-template-columns: 1fr; gap: 35px; }
  .article-aside { position: static; display: flex; align-items: center; gap: 18px; }
  .article-aside p { margin: 0; flex: 1; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 570px) {
  .shell { width: min(100% - 26px, 520px); }
  .topline { font-size: 10px; }
  .topline-inner { min-height: 34px; }
  .brand-copy small { display: none; }
  .mobile-nav nav { left: 13px; right: 13px; }
  .hero::after { height: 90px; bottom: -62px; }
  .hero-copy h1 { font-size: clamp(42px,13vw,62px); }
  .hero-media { height: 365px; }
  .hero-photo { border-width: 4px; }
  .hero-photo-main { inset: 10px 0 36px 42px; border-radius: 100px 18px 45px 18px; }
  .hero-photo-small { width: 145px; height: 175px; }
  .hero-badge { width: 92px; height: 92px; right: -4px; }
  .hero-badge strong { font-size: 12px; }
  .hero-year { display: none; }
  .hero-signature { margin-top: 35px; }
  .featured-strip { padding: 54px 0; }
  .featured-image { min-height: 300px; }
  .latest-grid { display: grid; grid-template-columns: 1fr; }
  .post-card, .post-card-wide { grid-column: 1; }
  .section-heading h2 { font-size: 42px; }
  .category-row { min-height: 130px; grid-template-columns: 38px 1fr 44px; }
  .category-thumb { display: none; }
  .category-copy span { display: none; }
  .activity-collage { min-height: 420px; grid-template-columns: 1fr 1fr; grid-template-rows: 1.2fr .8fr; }
  .collage-main { grid-column: 1 / 3; grid-row: auto; }
  .hometown-image { min-height: 330px; }
  .hometown-copy { min-height: 430px; padding: 50px 26px; }
  .photo-grid { grid-auto-rows: 180px; }
  .photo-item, .photo-item-1, .photo-item-4 { grid-column: 1 / 13; grid-row: span 1; }
  .cta-inner { min-height: 500px; }
  .cta-section { background: linear-gradient(145deg, var(--red), var(--blue-night) 47%); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
  .back-top { right: 0; }
  .article-hero { padding: 50px 0 105px; }
  .article-title-grid h1 { font-size: 44px; }
  .article-meta { gap: 24px; }
  .article-image-wrap { margin-top: -54px; }
  .article-cover { border-width: 5px; }
  .article-layout { padding-block: 54px 72px; }
  .article-aside { align-items: flex-start; flex-wrap: wrap; }
  .article-aside-star { font-size: 24px; }
  .article-body { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Kho nội dung: địa điểm, tủ sách và câu chuyện về Bác */
.knowledge-hub { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.knowledge-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.knowledge-card { position: relative; min-height: 470px; overflow: hidden; border-radius: 22px; color: #fff; background: var(--blue-night); box-shadow: var(--shadow); }
.knowledge-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,25,64,.04) 18%, rgba(0,25,64,.93) 92%); }
.knowledge-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .55s ease; }
.knowledge-card:hover img { transform: scale(1.045); }
.knowledge-card > div { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 26px; }
.knowledge-card p { color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.knowledge-card h3 { margin: 8px 0 10px; font-size: 28px; line-height: 1.12; }
.knowledge-card div > span { display: block; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.6; }
.knowledge-card b { display: inline-flex; gap: 10px; margin-top: 22px; color: #fff; font-size: 12px; }
.knowledge-card b i { color: var(--yellow); font-style: normal; }
.knowledge-number { position: absolute; z-index: 3; top: 20px; right: 20px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--blue-night); background: var(--yellow); font-size: 12px; font-weight: 950; }

.library-page { background: #f7faff; }
.library-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(125deg, var(--blue-night), var(--blue) 68%, var(--blue-bright)); }
.library-hero::after { content: "★"; position: absolute; right: 5vw; top: 50%; transform: translateY(-52%); color: rgba(255,214,51,.12); font-size: min(34vw,470px); line-height: 1; }
.library-hero-inner { position: relative; z-index: 2; min-height: 390px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 45px; align-items: center; padding-block: 70px; }
.library-hero h1 { margin: 14px 0 18px; max-width: 850px; font-size: clamp(52px,7vw,96px); line-height: .98; letter-spacing: -.055em; }
.library-hero-inner > div > p:last-child { max-width: 720px; color: rgba(255,255,255,.78); font-size: 18px; }
.library-count { display: grid; place-items: center; width: 180px; height: 180px; border: 2px solid rgba(255,255,255,.3); border-radius: 50%; color: rgba(255,255,255,.8); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.library-count span { display: block; color: var(--yellow); font-size: 58px; line-height: .8; letter-spacing: -.05em; }
.library-tabs { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: -32px; }
.library-tabs a { min-height: 96px; display: flex; gap: 16px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: 15px; color: var(--blue-night); background: #fff; box-shadow: 0 14px 40px rgba(0,38,91,.09); font-size: 13px; font-weight: 900; }
.library-tabs a span { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; color: var(--blue); background: var(--soft); font-size: 13px; }
.library-tabs a[aria-current="page"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.library-tabs a[aria-current="page"] span { color: var(--blue-night); background: var(--yellow); }
.library-list-section { padding: 82px 0 110px; }
.library-tools { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,360px); gap: 40px; align-items: end; }
.library-tools h2 { margin: 12px 0 0; font-size: clamp(36px,4.6vw,58px); line-height: 1.08; letter-spacing: -.04em; }
.library-search { display: grid; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.library-search input { width: 100%; padding: 15px 17px; border: 1px solid #bfd0e4; border-radius: 10px; color: var(--ink); background: #fff; outline: none; }
.library-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,86,179,.11); }
.library-result { margin: 30px 0 18px; color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.library-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.library-card { min-width: 0; overflow: hidden; border: 1px solid #dce6f2; border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(0,38,91,.055); }
.library-card[hidden] { display: none; }
.library-card-image { position: relative; display: block; height: 255px; overflow: hidden; background: linear-gradient(145deg, var(--blue-night), var(--blue)); }
.library-card-image img { height: 100%; object-fit: cover; transition: transform .4s ease; }
.library-card:hover .library-card-image img { transform: scale(1.045); }
.library-card-image > span { position: absolute; top: 12px; right: 12px; min-width: 42px; padding: 7px 9px; border-radius: 50px; color: var(--blue-night); background: var(--yellow); font-size: 10px; font-weight: 950; text-align: center; }
.library-card-placeholder { display: grid; place-items: center; }
.library-card-placeholder b { color: rgba(255,214,51,.9); font-size: 78px; }
.library-card-body { padding: 20px; }
.library-card-body > p { color: var(--blue); font-size: 9px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.library-card h3 { margin: 8px 0 10px; font-size: 18px; line-height: 1.34; }
.library-card-body > span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.62; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.library-read { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--blue); font-size: 11px; font-weight: 900; }
.library-read i { color: var(--red); font-style: normal; }
.library-empty { margin-top: 20px; }

.library-detail { padding-block: 62px 110px; }
.library-detail .breadcrumb { margin-bottom: 42px; }
.library-detail-grid { display: grid; grid-template-columns: minmax(260px,420px) minmax(0,1fr); gap: clamp(40px,7vw,90px); align-items: start; }
.library-detail-cover { position: sticky; top: 120px; overflow: hidden; min-height: 520px; border: 7px solid #fff; border-radius: 20px; background: var(--soft); box-shadow: var(--shadow); }
.library-detail-cover img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.library-detail-placeholder { display: grid; place-items: center; color: var(--yellow); background: linear-gradient(145deg,var(--blue-night),var(--blue)); }
.library-detail-placeholder b { font-size: 150px; }
.library-detail-copy h1 { margin: 15px 0 22px; font-size: clamp(42px,6vw,76px); line-height: 1.02; letter-spacing: -.055em; }
.library-address { margin-bottom: 24px; padding: 14px 16px; border-left: 4px solid var(--yellow); color: var(--blue-night); background: var(--soft); }
.library-prose { color: #2a3b52; font-size: 17px; line-height: 1.92; }
.library-source { margin-top: 30px; padding: 18px 20px; border-radius: 12px; color: #42536a; background: #fff8d8; font-size: 13px; line-height: 1.65; }
.library-detail-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 30px; }
.library-back { display: inline-flex; gap: 10px; margin-top: 38px; color: var(--blue); font-size: 12px; font-weight: 900; }

@media (max-width: 1080px) {
  .knowledge-grid { grid-template-columns: 1fr 1fr; }
  .knowledge-card:last-child { grid-column: 1 / 3; min-height: 390px; }
  .library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .library-hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .library-count { width: 120px; height: 120px; }
  .library-count span { font-size: 42px; }
  .library-tabs { grid-template-columns: 1fr; margin-top: -20px; }
  .library-tools { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .library-detail-grid { grid-template-columns: 1fr; }
  .library-detail-cover { position: static; min-height: 420px; max-width: 520px; width: 100%; }
  .library-detail-cover img { min-height: 420px; }
}
@media (max-width: 570px) {
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-card, .knowledge-card:last-child { grid-column: auto; min-height: 400px; }
  .library-hero h1 { font-size: 46px; }
  .library-hero-inner { padding-block: 52px 72px; }
  .library-tabs a { min-height: 78px; }
  .library-grid { grid-template-columns: 1fr; }
  .library-card { display: grid; grid-template-columns: 125px 1fr; }
  .library-card-image { height: 100%; min-height: 220px; }
  .library-card h3 { font-size: 17px; }
  .library-card-body > span { -webkit-line-clamp: 2; }
  .library-detail { padding-block: 38px 76px; }
  .library-detail-cover { min-height: 330px; }
  .library-detail-cover img { min-height: 330px; }
  .library-detail-copy h1 { font-size: 42px; }
}

/* Visual refresh 2026-08-10: Stitch-inspired, image-led and information dense. */
.brand-logo {
  background-color: transparent;
  background-image: url("doan-logo-chuan.png?v=20260810");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border: 0;
  box-shadow: none;
}
.brand-logo::before { content: none; }
.hero-banner { overflow: visible; color: var(--blue-night); background: #eef8ff; }
.hero-banner::before, .hero-banner::after { display: none; }
.hero-banner > img { display: block; width: 100%; height: auto; aspect-ratio: 1984 / 793; object-fit: cover; }
.hero-banner-actions {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(220px,.7fr) minmax(320px,1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: -30px;
  padding: 20px 26px;
  border: 1px solid rgba(0,68,145,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 55px rgba(0,38,91,.16);
}
.hero-banner-actions h1 { margin: 0; color: var(--blue); font-size: clamp(25px,2.8vw,40px); letter-spacing: -.04em; }
.hero-banner-actions p { color: var(--muted); font-size: 14px; }
.hero-banner-actions > div { display: flex; gap: 10px; justify-content: flex-end; }
.hero-banner-actions .button { white-space: nowrap; }

.section { padding-block: 72px; }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { font-size: clamp(34px,4vw,54px); }
.featured-strip { padding-block: 70px; }
.featured-image { min-height: 380px; }
.post-card-image { height: 190px; }
.post-card-wide .post-card-image { min-height: 300px; }
.post-card-body { padding: 18px; }
.post-card h3 { font-size: 20px; }
.post-card-foot { margin-top: 16px; padding-top: 12px; }
.category-row { min-height: 108px; }

.knowledge-grid { gap: 16px; }
.knowledge-card { min-height: 350px; border-radius: 18px; }
.knowledge-card > div { left: 20px; right: 20px; bottom: 18px; }
.knowledge-card h3 { margin: 6px 0 7px; font-size: 23px; }
.knowledge-card div > span { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.knowledge-card b { margin-top: 12px; }
.knowledge-number { top: 14px; right: 14px; width: 42px; height: 42px; }
.knowledge-metrics { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.knowledge-metrics li { padding: 5px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #fff; background: rgba(0,31,75,.54); font-size: 9px; font-weight: 850; letter-spacing: .03em; backdrop-filter: blur(5px); }

.library-hero-inner { min-height: 0; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); gap: 42px; padding-block: 44px 68px; }
.library-hero h1 { font-size: clamp(46px,6vw,78px); }
.library-infographic { position: relative; overflow: hidden; margin: 0; aspect-ratio: 3 / 2; border: 5px solid rgba(255,255,255,.92); border-radius: 22px; box-shadow: 0 25px 60px rgba(0,24,64,.3); }
.library-infographic > img { width: 100%; height: 100%; object-fit: cover; }
.library-infographic::after { content: ""; position: absolute; inset: 48% 0 0; background: linear-gradient(transparent,rgba(0,25,64,.88)); }
.library-infographic figcaption { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; align-items: end; gap: 14px; }
.library-count { display: flex; width: auto; height: auto; place-items: initial; align-items: baseline; gap: 7px; padding: 8px 12px; border: 0; border-radius: 999px; color: #fff; background: rgba(0,35,82,.78); font-size: 9px; backdrop-filter: blur(6px); }
.library-count span { display: inline; font-size: 28px; line-height: 1; }
.library-infographic ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0; padding: 0; list-style: none; }
.library-infographic li { padding: 6px 9px; border-radius: 999px; color: var(--blue-night); background: var(--yellow); font-size: 9px; font-weight: 900; }
.library-tabs a { min-height: 76px; padding: 14px 18px; }
.library-tabs a span { width: 40px; height: 40px; }
.library-list-section { padding: 62px 0 86px; }
.library-tools h2 { font-size: clamp(30px,3.8vw,48px); }
.library-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.library-card { border-radius: 13px; }
.library-card-image { height: 180px; }
.library-card-body { padding: 15px; }
.library-card h3 { margin: 6px 0 8px; font-size: 15px; line-height: 1.3; }
.library-card-body > span { font-size: 11px; line-height: 1.48; -webkit-line-clamp: 2; }
.library-read { margin-top: 12px; padding-top: 10px; font-size: 10px; }

@media (max-width: 1180px) {
  .hero-banner-actions { grid-template-columns: 1fr 1.3fr; }
  .hero-banner-actions > div { grid-column: 1 / -1; justify-content: flex-start; }
  .library-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .hero-banner-actions { margin-top: -12px; grid-template-columns: 1fr; }
  .hero-banner-actions > div { grid-column: auto; }
  .library-hero-inner { grid-template-columns: 1fr; }
  .library-infographic { max-width: 680px; }
  .library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 660px) {
  .brand-logo { background-size: contain; background-position: center; }
  .hero-banner > img { aspect-ratio: auto; }
  .hero-banner-actions { margin: 0; padding: 18px 20px; border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
  .hero-banner-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-banner-actions .button { justify-content: center; padding-inline: 12px; font-size: 10px; }
  .section { padding-block: 56px; }
  .knowledge-card, .knowledge-card:last-child { min-height: 320px; }
  .library-hero-inner { padding-block: 40px 58px; }
  .library-infographic { border-width: 3px; border-radius: 15px; }
  .library-infographic figcaption { left: 10px; right: 10px; bottom: 9px; }
  .library-infographic ul { display: none; }
  .library-grid { grid-template-columns: 1fr; }
  .library-card { grid-template-columns: 112px 1fr; }
  .library-card-image { min-height: 176px; }
}

/* Đầu trang chủ theo bố cục Stitch, sử dụng ảnh nền do quản trị lựa chọn. */
.stitch-header {
  position: sticky;
  z-index: 130;
  top: 0;
  border-bottom: 1px solid rgba(0,63,135,.12);
  background: rgba(255,255,255,.94);
  box-shadow: 0 6px 24px rgba(0,46,107,.08);
  backdrop-filter: blur(16px);
}
.stitch-header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.stitch-brand { display: flex; align-items: center; gap: 9px; min-width: max-content; color: #003f87; }
.stitch-brand img { width: 43px; height: 43px; object-fit: contain; }
.stitch-brand span { display: block; line-height: 1; white-space: nowrap; }
.stitch-brand strong { font-size: 17px; }
.stitch-brand b { margin-top: 0; font-size: inherit; }
.stitch-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px,1.35vw,21px); min-width: 0; }
.stitch-nav a { position: relative; padding: 9px 0; color: #303b4d; font-size: 11px; font-weight: 800; white-space: nowrap; }
.stitch-nav a:hover,.stitch-nav a:focus-visible,.stitch-nav a.active { color: #003f87; }
.stitch-nav a.active::after { content: ""; position: absolute; right: 0; bottom: 3px; left: 0; height: 3px; border-radius: 3px; background: #0056b3; }
.stitch-header-actions { display: flex; gap: 9px; min-width: max-content; }
.stitch-header-actions a { padding: 8px 12px; border: 1px solid #003f87; border-radius: 9px; color: #003f87; font-size: 10px; font-weight: 850; }
.stitch-header-actions .stitch-admin-link { color: #fff; background: #003f87; }

.stitch-hero { position: relative; min-height: 710px; display: grid; place-items: center; overflow: hidden; color: #fff; background: #0a4d97; }
.stitch-hero-background,.stitch-hero-overlay,.stitch-hero-pattern { position: absolute; inset: 0; }
.stitch-hero-background { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.stitch-hero-overlay { background: linear-gradient(90deg,rgba(0,35,80,.78),rgba(0,75,154,.46) 55%,rgba(0,37,80,.58)),linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,20,45,.34)); }
.stitch-hero-pattern { opacity: .16; background-image: radial-gradient(#fff 1px,transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg,transparent,#000 48%,transparent); }
.stitch-hero::after { content: ""; position: absolute; right: -8%; bottom: -105px; left: -8%; height: 145px; border-radius: 50% 50% 0 0; background: var(--portal-soft,#f4f8ff); transform: rotate(-1deg); }
.stitch-hero-content { position: relative; z-index: 3; width: min(1180px,calc(100% - 40px)); text-align: center; }
.stitch-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 15px; border: 1px solid rgba(255,220,46,.55); border-radius: 999px; background: rgba(91,48,12,.32); box-shadow: 0 8px 26px rgba(0,0,0,.12); font-size: 13px; font-weight: 750; backdrop-filter: blur(10px); }
.stitch-eyebrow span,.stitch-slogan i { color: #ffdc2e; font-style: normal; }
.stitch-hero h1 { margin: 24px 0 12px; color: #fff; font-size: clamp(48px,5.4vw,78px); line-height: 1.03; letter-spacing: -.045em; text-shadow: 0 6px 24px rgba(0,25,65,.38); }
.stitch-slogan { width: 100%; max-width: none; margin: 0 auto 34px; color: #eef6ff; font-size: clamp(18px,2vw,26px); font-weight: 650; line-height: 1.45; text-align: center; white-space: nowrap; text-shadow: 0 3px 16px rgba(0,22,55,.55); }
.stitch-slogan strong { color: #fff; }
.stitch-hero-actions { display: flex; justify-content: center; gap: 13px; }
.stitch-button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-width: 230px; padding: 16px 23px; border-radius: 999px; font-size: 13px; font-weight: 850; box-shadow: 0 14px 34px rgba(0,31,76,.25); transition: transform .2s,box-shadow .2s; }
.stitch-button:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(0,31,76,.3); }
.stitch-button-light { color: #003f87; background: #fff; }
.stitch-button-glass { border: 1px solid rgba(255,255,255,.65); color: #fff; background: rgba(0,53,115,.46); backdrop-filter: blur(8px); }
#hoat-dong,#mat-tran,#chinh-sach-phap-luat,#khong-gian-bac-ho,#dia-danh { scroll-margin-top: 105px; }

/* Màn hình intro toàn trang: hiển thị 4 giây rồi trả lại giao diện trang chủ. */
.portal-intro-active { overflow: hidden; }
.site-intro-splash { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; overflow: hidden; min-height: 100vh; min-height: 100dvh; color: #fff; background: #071a48; opacity: 1; visibility: visible; transition: opacity .6s ease, visibility .6s ease; isolation: isolate; }
.site-intro-splash.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.site-intro-background { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; animation: site-intro-background-move var(--intro-duration,4s) cubic-bezier(.18,.76,.28,1) both; }
.site-intro-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg,rgba(3,21,61,.85),rgba(7,61,145,.76)); animation: site-intro-overlay-breathe var(--intro-duration,4s) ease-in-out both; }
.site-intro-splash.intro-overlay-soft .site-intro-overlay { background: linear-gradient(135deg,rgba(3,21,61,.52),rgba(7,61,145,.4)); }
.site-intro-splash.intro-overlay-medium .site-intro-overlay { background: linear-gradient(135deg,rgba(3,21,61,.85),rgba(7,61,145,.76)); }
.site-intro-splash.intro-overlay-strong .site-intro-overlay { background: linear-gradient(135deg,rgba(2,14,45,.94),rgba(4,43,110,.88)); }
.site-intro-splash.intro-video-fit-contain .site-intro-video { object-fit: contain; background: #071a48; }
.site-intro-splash.intro-mode-video .site-intro-pattern { opacity: .07; }
.site-intro-pattern { position: absolute; inset: -10%; z-index: 1; opacity: .1; background-image: radial-gradient(circle at 1px 1px,rgba(255,255,255,.75) 1px,transparent 0); background-size: 24px 24px; animation: site-intro-pattern-drift var(--intro-duration,4s) linear both; }
.site-intro-ambient { position: absolute; inset: -35%; z-index: 1; pointer-events: none; background: radial-gradient(circle at 52% 44%,rgba(157,222,255,.3),transparent 30%),linear-gradient(120deg,transparent 43%,rgba(255,255,255,.09) 44%,transparent 46%); animation: site-intro-ambient var(--intro-duration,4s) ease-in-out both; }
.site-intro-splash::after { content:""; position:absolute; z-index:2; top:-35%; bottom:-35%; left:-40%; width:24%; pointer-events:none; opacity:0; background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent); transform:skewX(-18deg); animation:site-intro-light-sweep var(--intro-duration,4s) ease-in-out both; }
.site-intro-content { position: relative; z-index: 3; width: min(940px,calc(100% - 40px)); text-align: center; animation: stitch-intro-content-in .42s .04s both; }
.stitch-intro-chibi { position: absolute; z-index: 2; bottom: 0; width: min(22vw,300px); height: auto; pointer-events: none; }
#homeChibiLeftSource,
#homeChibiRightSource { display: none !important; }
.stitch-intro-chibi-left { left: 3%; animation: stitch-intro-chibi-left-in .82s .28s cubic-bezier(.2,.8,.2,1) both; }
.stitch-intro-chibi-right { right: 3%; animation: stitch-intro-chibi-right-in .82s .28s cubic-bezier(.2,.8,.2,1) both; }
.site-intro-splash .stitch-intro-crest { display: block; width: clamp(92px,13vw,160px); max-width: 160px; height: auto; margin: 0 auto 12px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); animation:site-intro-crest-in .78s .12s cubic-bezier(.2,.8,.2,1) both; }
.site-intro-eyebrow { margin: 0; color: #ffdc2e; font-size: clamp(11px,1.2vw,16px); font-weight: 850; letter-spacing: .22em; animation:site-intro-text-in .55s .48s both; }
.site-intro-title { margin: 14px auto 12px; max-width: 900px; color: #fff; font-size: clamp(30px,4vw,54px); font-weight: 900; line-height: 1.06; letter-spacing: .02em; text-shadow: 1px 1px 0 #bfd2ff,2px 2px 0 #9ab3eb,3px 3px 0 #6d8fd0,0 7px 16px rgba(0,0,0,.55); -webkit-text-stroke: 1px rgba(255,255,255,.18); transform-style:preserve-3d; animation:site-intro-title-in .72s .72s cubic-bezier(.18,.82,.28,1) both; }
.site-intro-line { display:block; width:min(310px,42vw); height:5px; margin:0 auto 15px; border-radius:99px; background:linear-gradient(90deg,#e5222a,#ffdc2e,#fff); transform-origin:center; animation:site-intro-line-in .55s 1.12s both; }
.site-intro-slogan { margin: 0; color: rgba(255,255,255,.92); font-size: clamp(14px,1.7vw,21px); font-weight: 700; letter-spacing: .08em; animation:site-intro-text-in .6s 1.25s both; }
.site-intro-progress { position:absolute; z-index:4; right:0; bottom:0; left:0; height:5px; background:rgba(255,255,255,.16); }
.site-intro-progress > span { display:block; width:0; height:100%; background:linear-gradient(90deg,#e5222a,#ffdc2e,#fff); box-shadow:0 0 18px rgba(255,220,46,.8); animation:site-intro-progress var(--intro-duration,4s) linear forwards; }
@keyframes stitch-intro-chibi-left-in { from { opacity:0; transform:translate3d(-34px,22px,0) scale(.96); } to { opacity:1; transform:translate3d(0,0,0) scale(1); } }
@keyframes stitch-intro-chibi-right-in { from { opacity:0; transform:translate3d(34px,22px,0) scale(.96); } to { opacity:1; transform:translate3d(0,0,0) scale(1); } }
@keyframes stitch-intro-content-in { from { opacity:0; } to { opacity:1; } }
@keyframes site-intro-background-move { from { transform:scale(1.065); filter:saturate(.88); } to { transform:scale(1); filter:saturate(1.08); } }
@keyframes site-intro-overlay-breathe { 0% { opacity:.98; } 48% { opacity:.8; } 100% { opacity:.92; } }
@keyframes site-intro-pattern-drift { from { transform:translate3d(-1.5%,-1%,0); } to { transform:translate3d(1.5%,1%,0); } }
@keyframes site-intro-ambient { from { transform:translate3d(-2%,2%,0) rotate(-1deg); } to { transform:translate3d(4%,-3%,0) rotate(2deg); } }
@keyframes site-intro-light-sweep { 0%,18% { left:-40%; opacity:0; } 30% { opacity:.8; } 62%,100% { left:120%; opacity:0; } }
@keyframes site-intro-crest-in { from { opacity:0; transform:scale(.58) rotate(-10deg); } 72% { opacity:1; transform:scale(1.06) rotate(2deg); } to { opacity:1; transform:scale(1) rotate(0); } }
@keyframes site-intro-text-in { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes site-intro-title-in { from { opacity:0; transform:perspective(700px) translateY(24px) rotateX(16deg) scale(.92); } to { opacity:1; transform:perspective(700px) translateY(0) rotateX(0) scale(1); } }
@keyframes site-intro-line-in { from { opacity:0; transform:scaleX(0); } to { opacity:1; transform:scaleX(1); } }
@keyframes site-intro-progress { to { width:100%; } }

/* Intro vẫn giữ hiệu ứng khi hệ điều hành bật “giảm chuyển động”; các phần khác của website vẫn tôn trọng lựa chọn này. */
@media (prefers-reduced-motion: reduce) {
  .site-intro-splash { transition-duration:.6s!important; }
  .site-intro-background,.site-intro-overlay,.site-intro-pattern,.site-intro-ambient,.site-intro-splash::after,.site-intro-progress>span { animation-duration:var(--intro-duration,4s)!important; animation-iteration-count:1!important; }
  .site-intro-content { animation-duration:.42s!important; animation-iteration-count:1!important; }
  .stitch-intro-chibi-left,.stitch-intro-chibi-right { animation-duration:.82s!important; animation-iteration-count:1!important; }
  .site-intro-splash .stitch-intro-crest { animation-duration:.78s!important; animation-iteration-count:1!important; }
  .site-intro-eyebrow { animation-duration:.55s!important; animation-iteration-count:1!important; }
  .site-intro-title { animation-duration:.72s!important; animation-iteration-count:1!important; }
  .site-intro-line { animation-duration:.55s!important; animation-iteration-count:1!important; }
  .site-intro-slogan { animation-duration:.6s!important; animation-iteration-count:1!important; }
}

@media (max-width: 1120px) {
  .stitch-header-inner { flex-wrap: wrap; gap: 4px 14px; padding-block: 8px; }
  .stitch-nav { order: 3; width: 100%; justify-content: flex-start; gap: 22px; overflow-x: auto; border-top: 1px solid rgba(0,63,135,.08); scrollbar-width: none; }
  .stitch-nav::-webkit-scrollbar { display: none; }
  .stitch-nav a { padding: 10px 0 9px; }
  .stitch-gallery-link { display: none; }
  .stitch-hero { min-height: 680px; }
  #hoat-dong,#mat-tran,#chinh-sach-phap-luat,#khong-gian-bac-ho,#dia-danh { scroll-margin-top: 130px; }
}
@media (max-width: 620px) {
  .stitch-header-inner { gap: 3px 10px; }
  .stitch-brand img { width: 38px; height: 38px; }
  .stitch-brand strong { font-size: 14px; }
  .stitch-header-actions a { padding: 8px 11px; font-size: 10px; }
  .stitch-nav { gap: 18px; }
  .stitch-nav a { font-size: 11px; }
  .stitch-hero { min-height: 620px; }
  .stitch-hero-content { width: min(100% - 28px,920px); }
  .stitch-eyebrow { padding: 7px 11px; font-size: 10px; }
  .stitch-hero h1 { margin-top: 20px; font-size: 42px; }
  .site-intro-content { width: calc(100% - 24px); padding-bottom: 18vh; }
  .site-intro-title { max-width: 92%; font-size: clamp(26px,8.4vw,42px); }
  .site-intro-eyebrow { font-size: 10px; letter-spacing: .13em; }
  .site-intro-splash .stitch-intro-crest { width: clamp(86px,24vw,118px); }
  .site-intro-splash .stitch-intro-chibi { width: min(39vw,220px); }
  .stitch-slogan { font-size: 16px; white-space: normal; }
  .stitch-hero-actions { flex-direction: column; align-items: center; }
  .stitch-button { width: min(280px,100%); padding: 14px 18px; }
}

/* Tùy chọn đầu trang được điều khiển từ khu vực quản trị. */
.stitch-hero.hero-height-compact { min-height: 520px; }
.stitch-hero.hero-height-standard { min-height: 620px; }
.stitch-hero.hero-height-large { min-height: 710px; }
.stitch-hero.hero-focus-left .stitch-hero-background { object-position: left 44%; }
.stitch-hero.hero-focus-center .stitch-hero-background { object-position: center 44%; }
.stitch-hero.hero-focus-right .stitch-hero-background { object-position: right 44%; }
.stitch-hero.hero-overlay-soft .stitch-hero-overlay { background: linear-gradient(90deg,rgba(0,35,80,.48),rgba(0,75,154,.25) 55%,rgba(0,37,80,.36)),linear-gradient(180deg,rgba(0,0,0,.03),rgba(0,20,45,.2)); }
.stitch-hero.hero-overlay-medium .stitch-hero-overlay { background: linear-gradient(90deg,rgba(0,35,80,.78),rgba(0,75,154,.46) 55%,rgba(0,37,80,.58)),linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,20,45,.34)); }
.stitch-hero.hero-overlay-strong .stitch-hero-overlay { background: linear-gradient(90deg,rgba(0,27,70,.9),rgba(0,58,130,.68) 55%,rgba(0,28,69,.82)),linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,13,38,.55)); }
.stitch-hero.hero-align-left { place-items: center start; }
.stitch-hero.hero-align-left .stitch-hero-content { width: min(760px,calc(100% - 40px)); margin-left: max(20px,calc((100% - min(1160px,calc(100% - 40px))) / 2)); text-align: left; }
.stitch-hero.hero-align-left .stitch-slogan { margin-right: 0; margin-left: 0; }
.stitch-hero.hero-align-left .stitch-hero-actions { justify-content: flex-start; }

@media (max-width: 620px) {
  .stitch-hero.hero-height-compact { min-height: 480px; }
  .stitch-hero.hero-height-standard { min-height: 540px; }
  .stitch-hero.hero-height-large { min-height: 620px; }
  .stitch-hero.hero-align-left .stitch-hero-content { width: calc(100% - 28px); margin-left: 14px; }
  .stitch-hero.hero-align-left .stitch-hero-actions { align-items: flex-start; }
}

/* Nội dung giới thiệu luôn căn giữa; chỉ xuống dòng tại vị trí người quản trị nhập
   hoặc khi chiều rộng màn hình không còn đủ để hiển thị an toàn. */
.stitch-hero.hero-align-left .stitch-slogan { text-align: center; }

/* Trợ lý thủ tục hành chính */
.tthc-chat-bubble {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 180;
  display: flex; align-items: center; gap: 12px; min-width: 218px; padding: 11px 16px 11px 11px;
  color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  background: linear-gradient(135deg,#0057b8,#008bd2); box-shadow: 0 15px 40px rgba(0,63,133,.34);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tthc-chat-bubble:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 20px 48px rgba(0,63,133,.42); }
.tthc-chat-bubble-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; color: #0757b5; background: #fff; }
.tthc-chat-bubble-icon svg { width: 26px; height: 26px; fill: currentColor; }
.tthc-chat-bubble > span:last-child { display: grid; line-height: 1.15; }
.tthc-chat-bubble strong { font-size: 14px; }
.tthc-chat-bubble small { margin-top: 4px; color: rgba(255,255,255,.76); font-size: 10px; }
.feedback-bubble {
  position: fixed; right: max(20px,env(safe-area-inset-right)); bottom: calc(max(22px,env(safe-area-inset-bottom)) + 76px); z-index: 180;
  display: flex; align-items: center; gap: 12px; min-width: 218px; padding: 11px 16px 11px 11px;
  color: #fff; border: 1px solid rgba(255,255,255,.34); border-radius: 999px;
  background: linear-gradient(135deg,#c51625,#ed313c); box-shadow: 0 15px 40px rgba(148,12,24,.32);
  transition: transform .2s ease,box-shadow .2s ease;
}
.feedback-bubble:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 20px 48px rgba(148,12,24,.42); }
.feedback-bubble-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; color: #c51625; background: #fff; }
.feedback-bubble-icon svg { width: 25px; height: 25px; fill: currentColor; }
.feedback-bubble > span:last-child { display: grid; line-height: 1.15; }
.feedback-bubble strong { font-size: 14px; }
.feedback-bubble small { margin-top: 4px; color: rgba(255,255,255,.78); font-size: 10px; }

/* Phản ánh, kiến nghị */
.feedback-page { min-height: 100vh; margin: 0; color: #17243b; background: linear-gradient(145deg,#fff 0%,#f5f9ff 52%,#eaf4ff 100%); font-family: "Be Vietnam Pro","Segoe UI",Arial,sans-serif; }
.feedback-header { border-bottom: 1px solid rgba(0,63,135,.1); background: rgba(255,255,255,.94); box-shadow: 0 8px 28px rgba(8,61,128,.06); }
.feedback-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.feedback-back { padding: 9px 14px; color: #0757b5; border: 1px solid #c6d9ec; border-radius: 999px; font-size: 12px; font-weight: 800; }
.feedback-back:hover { color: #fff; background: #0757b5; }
.feedback-shell { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(520px,1.3fr); gap: clamp(28px,5vw,70px); align-items: start; padding-block: clamp(38px,6vw,72px); }
.feedback-intro { position: sticky; top: 38px; }
.feedback-intro-heading { display: flex; align-items: center; gap: 16px; }
.feedback-intro-heading > img { flex: 0 0 auto; width: 88px; height: 88px; object-fit: contain; }
.feedback-intro-heading > div { min-width: 0; }
.feedback-kicker { margin: 0 0 10px; color: #c51625; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.feedback-intro h1 { margin: 0; color: #083d80; font-size: clamp(36px,4.8vw,62px); line-height: .98; letter-spacing: -.055em; }
.feedback-intro > p:last-child { max-width: 470px; color: #5b6c82; font-size: 14px; line-height: 1.7; }
.feedback-card { padding: clamp(22px,4vw,38px); border: 1px solid #d6e2ef; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 25px 70px rgba(14,61,112,.13); }
.feedback-card-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 24px; }
.feedback-card-heading > span { display: grid; flex: 0 0 auto; place-items: center; width: 43px; height: 43px; color: #fff; border-radius: 50%; background: #c51625; font-size: 22px; font-weight: 900; }
.feedback-card-heading h2 { margin: 0; color: #083d80; font-size: 23px; }
.feedback-card-heading p { margin: 5px 0 0; color: #68798e; font-size: 11px; line-height: 1.5; }
.feedback-success,.feedback-error { display: grid; gap: 4px; margin: 0 0 20px; padding: 13px 15px; border-left: 4px solid; border-radius: 9px; font-size: 12px; line-height: 1.5; }
.feedback-success { color: #135f36; border-color: #29945b; background: #edf9f1; }
.feedback-error { color: #8f1822; border-color: #c51625; background: #fff0f1; }
.feedback-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.feedback-field { display: grid; gap: 7px; }
.feedback-field-full,.feedback-consent,.feedback-submit { grid-column: 1/-1; }
.feedback-field label { color: #263d5d; font-size: 11px; font-weight: 850; }
.feedback-field input,.feedback-field select,.feedback-field textarea { width: 100%; padding: 12px 13px; border: 1px solid #bfd0e1; border-radius: 10px; outline: 0; color: #17243b; background: #fff; font: inherit; font-size: 12px; }
.feedback-field input:focus,.feedback-field select:focus,.feedback-field textarea:focus { border-color: #0757b5; box-shadow: 0 0 0 3px rgba(7,87,181,.1); }
.feedback-field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.feedback-field small { color: #718096; font-size: 9px; }
.feedback-image-field { margin: 0; padding: 15px; border: 1px solid #bfd0e1; border-radius: 12px; background: #f7fbff; }
.feedback-image-field legend { padding: 0 7px; color: #263d5d; font-size: 11px; font-weight: 850; }
.feedback-image-field > p { margin: 0 0 12px; color: #718096; font-size: 9px; }
.feedback-image-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.feedback-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.feedback-image-choice { cursor: pointer; display: grid; grid-template-columns: 32px 1fr; gap: 2px 9px; align-items: center; padding: 11px; border: 1px solid #b8cee5; border-radius: 10px; color: #174f98; background: #fff; transition: .2s ease; }
.feedback-image-choice:hover,.feedback-image-choice:focus-within { border-color: #0757b5; box-shadow: 0 0 0 3px rgba(7,87,181,.08); }
.feedback-image-choice > span { grid-row: 1/3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: #0757b5; font-size: 15px; }
.feedback-image-choice strong { font-size: 10px; }
.feedback-image-choice small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.feedback-image-preview { position: relative; margin-top: 12px; padding: 9px; border-radius: 10px; background: #e9f1f9; }
.feedback-image-preview[hidden] { display: none; }
.feedback-image-preview img { display: block; width: 100%; max-height: 300px; object-fit: contain; border-radius: 7px; background: #dce7f2; }
.feedback-image-preview button { cursor: pointer; position: absolute; top: 16px; right: 16px; padding: 7px 10px; border: 0; border-radius: 999px; color: #fff; background: rgba(143,24,34,.92); font: inherit; font-size: 9px; font-weight: 850; }
.feedback-consent { display: flex; gap: 9px; align-items: flex-start; color: #53657b; font-size: 10px; line-height: 1.5; }
.feedback-consent input { margin-top: 2px; accent-color: #c51625; }
.feedback-submit { cursor: pointer; padding: 13px 18px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#b91322,#e42a37); font: inherit; font-size: 12px; font-weight: 900; box-shadow: 0 12px 28px rgba(168,16,30,.2); }
.feedback-submit:hover { background: #a90f1d; }
.feedback-honeypot { position: absolute!important; width: 1px!important; height: 1px!important; overflow: hidden!important; clip: rect(0 0 0 0)!important; }
.feedback-footer { padding: 15px 0; color: rgba(255,255,255,.72); background: #061d3d; font-size: 10px; }
.feedback-footer .shell { display: flex; justify-content: space-between; gap: 18px; }
@media(max-width:820px){.feedback-shell{grid-template-columns:1fr}.feedback-intro{position:static}.feedback-intro h1{font-size:48px}.feedback-intro>p:last-child{max-width:none}}
@media(max-width:560px){.feedback-header-inner{min-height:64px}.feedback-header .portal-brand span{display:none}.feedback-shell{padding-block:24px}.feedback-intro-heading{align-items:center;gap:12px}.feedback-intro-heading>img{width:66px;height:66px}.feedback-intro h1{font-size:36px}.feedback-kicker{font-size:8px}.feedback-card{padding:20px;border-radius:16px}.feedback-form{grid-template-columns:1fr}.feedback-field-full,.feedback-consent,.feedback-submit{grid-column:auto}.feedback-image-actions{grid-template-columns:1fr}.feedback-footer .shell{display:grid}}

.tthc-page { min-height: 100vh; color: #10213c; background: linear-gradient(150deg,#e9f8ff 0%,#f8fcff 48%,#e8f5ff 100%); }
.tthc-page::before { opacity: .055; }
.tthc-header { position: relative; z-index: 5; border-bottom: 1px solid rgba(0,86,179,.1); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.tthc-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tthc-back { padding: 10px 16px; color: #0757b5; border: 1px solid rgba(0,86,179,.18); border-radius: 999px; font-weight: 700; font-size: 13px; }
.tthc-back:hover { color: #fff; background: #0757b5; }
.tthc-shell { position: relative; z-index: 2; padding-block: clamp(18px,2.8vw,34px); }
.tthc-intro { display: block; max-width: 1180px; margin: 0 auto 16px; padding: 15px 20px; border: 1px solid rgba(0,86,179,.1); border-radius: 18px; text-align: left; background: rgba(255,255,255,.72); }
.tthc-kicker { margin: 0 0 5px; color: #e31e24; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.tthc-intro h1 { margin: 0; color: #063777; font-size: clamp(24px,2.5vw,34px); line-height: 1.08; letter-spacing: -.035em; white-space: nowrap; }
.tthc-intro h1 em { color: #0787c8; font-style: normal; }
.tthc-intro-guide > p { margin: 0; color: #52647e; font-size: 12px; line-height: 1.5; }
.tthc-trust-list { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 7px; margin-top: 8px; }
.tthc-trust-list span { padding: 5px 9px; color: #0757b5; border: 1px solid rgba(0,86,179,.12); border-radius: 999px; background: rgba(255,255,255,.78); font-size: 9px; font-weight: 700; white-space: nowrap; }
.tthc-workspace { display: grid; grid-template-columns: 250px minmax(0,1fr); overflow: hidden; width: 100%; max-width: 1180px; height: 820px; min-height: 740px; margin: 0 auto; border: 1px solid rgba(0,86,179,.12); border-radius: 22px; background: #fff; box-shadow: 0 26px 80px rgba(9,62,118,.15); }
.tthc-sources { padding: 28px 24px; background: linear-gradient(180deg,#073f85,#062a5a); color: #fff; }
.tthc-sources h2 { margin: 0 0 20px; font-size: 18px; }
.tthc-sources > a { display: flex; gap: 11px; margin-bottom: 12px; padding: 14px; color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.08); }
.tthc-sources > a:hover { color: #fff; background: rgba(255,255,255,.14); }
.tthc-sources > a > span:last-child { display: grid; gap: 4px; }
.tthc-sources a strong { font-size: 12px; line-height: 1.35; }
.tthc-sources a small { color: rgba(255,255,255,.64); font-size: 10px; }
.tthc-source-mark { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; padding: 3px; overflow: hidden; border-radius: 11px; background: #fff; }
.tthc-source-mark img { width: 100%; height: 100%; object-fit: contain; }
.tthc-source-note { margin-top: 28px; padding: 17px; border-radius: 15px; background: rgba(255,210,72,.13); }
.tthc-source-note strong { color: #ffda58; font-size: 12px; }
.tthc-source-note p { margin: 8px 0 12px; color: rgba(255,255,255,.76); font-size: 11px; line-height: 1.55; }
.tthc-source-note small { color: rgba(255,255,255,.48); font-size: 9px; }
.tthc-chat-card { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(420px,1fr) auto auto auto auto; background: #f8fbfe; }
.tthc-chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #e6edf5; background: #fff; }
.tthc-chat-head > span:last-child { display: grid; }
.tthc-chat-head strong { color: #0b3268; font-size: 14px; }
.tthc-chat-head small { margin-top: 3px; color: #6f7e91; font-size: 10px; }
.tthc-chat-head small i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #32a85a; }
.tthc-avatar, .tthc-message-avatar { display: grid; place-items: center; border-radius: 50%; background: #fff url('doan-logo-chuan.png') center/contain no-repeat; box-shadow: 0 0 0 1px rgba(0,86,179,.12); }
.tthc-avatar { width: 46px; height: 46px; }
.tthc-messages { overflow-y: auto; min-height: 0; max-height: none; padding: 20px; scrollbar-color: #b6d7ef transparent; }
.tthc-message { display: flex; align-items: flex-end; gap: 9px; margin-bottom: 17px; }
.tthc-message-avatar { flex: 0 0 auto; width: 32px; height: 32px; }
.tthc-message > div { max-width: min(820px,94%); padding: 12px 14px; border: 1px solid #e4ebf3; border-radius: 6px 17px 17px 17px; background: #fff; box-shadow: 0 4px 14px rgba(20,61,105,.055); }
.tthc-message p { margin: 0; color: #344861; font-size: 11px; line-height: 1.55; }
.tthc-message > div > strong { display: block; margin-bottom: 6px; color: #063777; font-size: 11px; }
.tthc-message-user { justify-content: flex-end; }
.tthc-message-user > div { color: #fff; border: 0; border-radius: 17px 17px 6px 17px; background: #0757b5; }
.tthc-message-user p { color: #fff; }
.tthc-answer-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tthc-answer-links a { padding: 8px 10px; color: #0757b5; border: 1px solid #b9d7ed; border-radius: 9px; background: #f3faff; font-size: 10px; font-weight: 800; }
.tthc-answer-links a:hover { color: #fff; background: #0757b5; }
.tthc-answer-source { display: block; margin-top: 10px; color: #7c899a; font-size: 9px; }
.tthc-direct-source-note { display: block; margin-top: 10px; padding: 8px 10px; border-left: 3px solid #e5a100; border-radius: 7px; color: #6b5200; background: #fff8df; font-size: 8.5px; line-height: 1.45; }
.tthc-message > div.tthc-message-with-forms { width: min(900px,94%); max-width: min(900px,94%); }
.tthc-answer-layout.has-forms { display: grid; grid-template-columns: minmax(0,1fr) 205px; align-items: start; gap: 13px; }
.tthc-answer-content,.tthc-gemini-answer { min-width: 0; }
.tthc-form-attachments { display: grid; gap: 8px; padding: 10px; border: 1px solid #bad9ef; border-radius: 12px; background: linear-gradient(160deg,#f4fbff,#eaf6ff); }
.tthc-form-attachments > strong { color: #063777; font-size: 10px; }
.tthc-form-card { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 3px 7px; padding: 8px; border: 1px solid rgba(7,87,181,.12); border-radius: 10px; background: #fff; }
.tthc-form-icon { grid-row: 1/4; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #e7f3ff; font-size: 15px; }
.tthc-form-card b { color: #153a6a; font-size: 9.5px; line-height: 1.35; }
.tthc-form-card small { color: #6d7e91; font-size: 8px; line-height: 1.35; }
.tthc-form-actions { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 5px; }
.tthc-form-actions a { padding: 6px 5px; border: 1px solid #9dc9ea; border-radius: 7px; color: #0757b5; background: #f7fcff; font-size: 8px; font-weight: 850; text-align: center; }
.tthc-form-actions a:first-child { color: #fff; border-color: #0757b5; background: #0757b5; }
.tthc-form-actions a:hover { color: #fff; border-color: #e31e24; background: #e31e24; }
.tthc-form-note { color: #64758a; font-size: 7.5px; line-height: 1.4; }
.tthc-answer-facts { display: grid; grid-template-columns: 108px 1fr; gap: 7px 10px; margin: 13px 0 0; padding: 12px; border-radius: 11px; background: #f2f8fd; }
.tthc-answer-facts dt { color: #0757b5; font-size: 10px; font-weight: 800; }
.tthc-answer-facts dd { margin: 0; color: #344861; font-size: 11px; line-height: 1.5; }
.tthc-answer-step-title { display: block; margin-top: 13px; color: #063777; font-size: 11px; }
.tthc-answer-steps { margin: 7px 0 0; padding-left: 20px; color: #344861; font-size: 11px; line-height: 1.55; }
.tthc-answer-steps li + li { margin-top: 4px; }
.tthc-answer-warning { margin: 0 0 10px; padding: 8px 10px; border-left: 4px solid #e5a100; border-radius: 8px; color: #684900; background: #fff8df; font-size: 10px; font-weight: 850; line-height: 1.45; }
.tthc-answer-option-title { display: block; margin-top: 14px; color: #063777; font-size: 11px; }
.tthc-answer-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tthc-answer-options button { padding: 8px 11px; border: 1px solid #83b8e5; border-radius: 999px; color: #0757b5; background: #fff; font: inherit; font-size: 10px; font-weight: 850; line-height: 1.25; cursor: pointer; transition: .18s ease; }
.tthc-answer-options button:hover,.tthc-answer-options button:focus-visible { color: #fff; border-color: #0757b5; background: #0757b5; transform: translateY(-1px); }
.tthc-answer-options button::after { content: " →"; }
.tthc-gemini-choice-group { display: grid; gap: 7px; margin-top: 12px; }
.tthc-gemini-choice-group > b { color: #063777; font-size: 10px; }
.tthc-answer-options button:disabled { cursor: default; opacity: .58; transform: none; }
.tthc-quick-select { display: grid; grid-template-columns: auto minmax(190px,310px); align-items: center; justify-content: space-between; gap: 12px; padding: 9px 22px 2px; }
.tthc-quick-select label { color: #264363; font-size: 10px; font-weight: 800; }
.tthc-quick-select select { width: 100%; padding: 8px 34px 8px 11px; border: 1px solid #b9d4e8; border-radius: 10px; outline: 0; color: #0757b5; background: #fff; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }
.tthc-quick-select select:focus { border-color: #0787c8; box-shadow: 0 0 0 3px rgba(7,135,200,.1); }
.tthc-input-label { display: block; margin: 11px 22px 0; color: #264363; font-size: 11px; font-weight: 800; }
.tthc-composer { display: flex; gap: 10px; margin: 6px 22px 8px; padding: 7px 7px 7px 16px; border: 1px solid #cbdbea; border-radius: 15px; background: #fff; }
.tthc-composer:focus-within { border-color: #0787c8; box-shadow: 0 0 0 3px rgba(7,135,200,.1); }
.tthc-composer input { min-width: 0; flex: 1; padding: 5px 0; border: 0; outline: 0; color: #172c49; background: transparent; font: inherit; font-size: 13px; }
.tthc-composer button { cursor: pointer; display: grid; place-items: center; width: 39px; height: 39px; border: 0; border-radius: 11px; color: #fff; background: #0757b5; }
.tthc-composer button:hover { background: #e31e24; }
.tthc-composer svg { width: 20px; height: 20px; fill: currentColor; }
.tthc-privacy { margin: 0 22px 15px; color: #8a96a6; font-size: 9px; text-align: center; }
.tthc-footer { position: relative; z-index: 2; padding: 24px 0; color: rgba(255,255,255,.65); background: #041a36; font-size: 10px; }
.tthc-footer .shell { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
  .tthc-intro { grid-template-columns: 1fr; gap: 10px; }
  .tthc-intro h1 { white-space: normal; }
  .tthc-workspace { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .tthc-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .tthc-sources h2, .tthc-source-note { grid-column: 1/-1; }
  .tthc-sources > a { margin: 0; }
  .tthc-source-note { margin-top: 4px; }
  .tthc-messages { height: 600px; }
}
@media (max-width: 560px) {
  .tthc-chat-bubble { min-width: 0; padding: 9px; }
  .tthc-chat-bubble > span:last-child { display: none; }
  .tthc-chat-bubble-icon { width: 47px; height: 47px; }
  .feedback-bubble { min-width: 0; padding: 9px; bottom: calc(max(22px,env(safe-area-inset-bottom)) + 70px); }
  .feedback-bubble > span:last-child { display: none; }
  .feedback-bubble-icon { width: 47px; height: 47px; }
  .tthc-header-inner { min-height: 70px; }
  .tthc-header .portal-brand span { display: none; }
  .tthc-intro { text-align: left; }
  .tthc-intro h1 { font-size: 27px; }
  .tthc-trust-list { justify-content: flex-start; }
  .tthc-workspace { border-radius: 19px; }
  .tthc-sources { grid-template-columns: 1fr; padding: 22px 18px; }
  .tthc-sources h2, .tthc-source-note { grid-column: auto; }
  .tthc-messages { padding: 18px 14px; }
  .tthc-message > div { max-width: 88%; }
  .tthc-message > div.tthc-message-with-forms { width: 88%; max-width: 88%; }
  .tthc-answer-layout.has-forms { grid-template-columns: 1fr; }
  .tthc-form-attachments { margin-top: 4px; }
  .tthc-answer-facts { grid-template-columns: 1fr; }
  .tthc-quick-select { grid-template-columns: 1fr; gap: 5px; padding: 9px 14px 2px; }
  .tthc-input-label { margin-inline: 14px; }
  .tthc-composer { margin-inline: 14px; }
  .tthc-privacy { margin-inline: 14px; }
  .tthc-footer .shell { display: grid; }
}

/* Chatbot fixed viewport — only the conversation pane scrolls, 11/08/2026 */
.tthc-page {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
}
.tthc-page .tthc-header { flex: 0 0 auto; }
.tthc-page .tthc-header-inner { min-height: 70px; }
.tthc-page .tthc-shell {
  width: min(1440px,calc(100% - 28px));
  height: 100%;
  min-height: 0;
  padding-block: 12px;
}
.tthc-page .tthc-workspace {
  grid-template-columns: 250px minmax(0,1fr);
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
}
.tthc-main-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  overflow: hidden;
  background: #f8fbfe;
}
.tthc-main-panel .tthc-intro {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid rgba(0,86,179,.1);
  border-radius: 0;
  background: linear-gradient(115deg,rgba(255,255,255,.98),rgba(239,249,255,.94));
}
.tthc-main-panel .tthc-intro h1 { font-size: clamp(22px,2.2vw,32px); }
.tthc-main-panel .tthc-chat-card {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0,1fr) auto auto auto auto;
}
.tthc-page .tthc-messages {
  height: auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  overflow-anchor: none;
}
.tthc-page .tthc-sources { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.tthc-page .tthc-footer { padding: 7px 0; }

@media (max-width: 820px) {
  .tthc-page { grid-template-rows: auto minmax(0,1fr); }
  .tthc-page .tthc-header-inner { min-height: 60px; }
  .tthc-page .tthc-shell { width: min(100% - 18px,760px); padding-block: 8px; }
  .tthc-page .tthc-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0,1fr);
    height: 100%;
    min-height: 0;
  }
  .tthc-page .tthc-sources {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .tthc-page .tthc-sources h2,.tthc-page .tthc-source-note { display: none; }
  .tthc-page .tthc-sources > a { flex: 0 0 220px; margin: 0; padding: 8px 10px; }
  .tthc-main-panel .tthc-intro { padding: 8px 12px; }
  .tthc-main-panel .tthc-intro-guide > p { display: none; }
  .tthc-main-panel .tthc-trust-list { margin-top: 4px; }
  .tthc-main-panel .tthc-intro h1 { font-size: 21px; white-space: normal; }
  .tthc-page .tthc-footer { display: none; }
  .tthc-page .tthc-messages { height: auto; }
}

@media (max-width: 560px) {
  .tthc-page .tthc-header-inner { min-height: 54px; }
  .tthc-page .tthc-back { padding: 7px 11px; font-size: 11px; }
  .tthc-page .tthc-sources { display: none; }
  .tthc-page .tthc-workspace { grid-template-rows: minmax(0,1fr); border-radius: 15px; }
  .tthc-main-panel .tthc-intro { padding: 7px 10px; }
  .tthc-main-panel .tthc-kicker,.tthc-main-panel .tthc-trust-list { display: none; }
  .tthc-main-panel .tthc-intro h1 { font-size: 18px; }
  .tthc-page .tthc-chat-head { padding: 10px 12px; }
  .tthc-page .tthc-avatar { width: 36px; height: 36px; }
  .tthc-page .tthc-messages { padding: 12px 10px; }
  .tthc-page .tthc-quick-select { padding-top: 5px; }
  .tthc-page .tthc-input-label { margin-top: 6px; }
  .tthc-page .tthc-composer { margin-top: 4px; margin-bottom: 4px; }
  .tthc-page .tthc-privacy { margin-bottom: 7px; }
}

/* Cổng thông tin — bố cục theo mẫu giao diện người dùng cung cấp, 10/08/2026 */
.portal-home {
    --portal-blue: #0757b5;
    --portal-blue-dark: #082c63;
    --portal-sky: #0ea5e9;
    --portal-red: #d61f2c;
    --portal-gold: #ffd94a;
    --portal-text: #152238;
    --portal-muted: #64748b;
    --portal-soft: #f4f8fc;
    margin: 0;
    color: var(--portal-text);
    background: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
}
.portal-home h1,.portal-home h2,.portal-home h3,.portal-home p,.portal-home figure { margin-top: 0; }
.portal-home img { display: block; width: 100%; }
.portal-header {
    position: sticky;
    z-index: 120;
    top: 0;
    border-bottom: 1px solid rgba(15,23,42,.08);
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 30px rgba(15,59,112,.06);
    backdrop-filter: blur(16px);
}
.portal-header-inner { min-height: 80px; display: flex; align-items: center; gap: 34px; }
.portal-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 11px; color: var(--portal-blue-dark); }
.portal-brand img { width: 55px; height: 55px; object-fit: contain; }
.portal-brand span { display: block; font-size: 17px; font-weight: 800; line-height: 1.03; }
.portal-brand strong,.portal-brand b { display: block; }
.portal-brand b { color: var(--portal-blue); font-size: 19px; }
.portal-nav { display: flex; flex: 1; justify-content: center; gap: clamp(18px,2.3vw,38px); }
.portal-nav a { position: relative; padding: 29px 0 27px; color: #475569; font-size: 13px; font-weight: 750; }
.portal-nav a::after { content: ""; position: absolute; right: 50%; bottom: 19px; left: 50%; height: 2px; background: var(--portal-blue); transition: right .2s,left .2s; }
.portal-nav a:hover { color: var(--portal-blue); }
.portal-nav a:hover::after { right: 0; left: 0; }
.portal-admin-link { flex: 0 0 auto; padding: 10px 17px; border-radius: 999px; color: #fff; background: var(--portal-blue); font-size: 12px; font-weight: 800; }

.portal-hero { position: relative; overflow: hidden; min-height: 650px; background: linear-gradient(145deg,#fff 0%,#f2faff 54%,#dff4ff 100%); }
.portal-hero::after { content: ""; position: absolute; right: -6vw; bottom: -140px; width: 62vw; height: 240px; border-radius: 50%; background: linear-gradient(145deg,#0c73d9,#23b6ee); transform: rotate(-8deg); opacity: .13; }
.portal-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.portal-orb-one { top: -180px; right: -120px; width: 520px; height: 520px; background: rgba(14,165,233,.13); }
.portal-orb-two { bottom: -240px; left: -180px; width: 480px; height: 480px; background: rgba(7,87,181,.08); }
.portal-hero-grid { position: relative; z-index: 2; min-height: 650px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(40px,6vw,90px); padding-block: 74px; }
.portal-pill { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 23px; padding: 8px 14px; border: 1px solid #c9e9fb; border-radius: 999px; color: var(--portal-blue); background: rgba(255,255,255,.78); font-size: 12px; font-weight: 800; }
.portal-pill span { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--portal-sky); box-shadow: 0 0 0 6px rgba(14,165,233,.12); }
.portal-hero h1 { margin-bottom: 24px; color: #0f172a; font-size: clamp(47px,6vw,82px); font-weight: 850; line-height: 1.03; letter-spacing: -.055em; }
.portal-hero h1 em { color: var(--portal-blue); font-style: normal; }
.portal-hero-copy > p:not(.portal-pill) { max-width: 650px; color: var(--portal-muted); font-size: 17px; line-height: 1.8; }
.portal-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; margin-top: 33px; }
.portal-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-size: 13px; font-weight: 850; transition: transform .2s,box-shadow .2s,background .2s; }
.portal-button:hover { transform: translateY(-2px); }
.portal-button-primary { color: #fff; background: var(--portal-blue); box-shadow: 0 14px 30px rgba(7,87,181,.24); }
.portal-button-outline { border: 2px solid var(--portal-blue); color: var(--portal-blue); background: #fff; }
.portal-button-outline:hover { color: #fff; background: var(--portal-blue); }
.portal-button-red { color: #fff; background: var(--portal-red); box-shadow: 0 12px 28px rgba(214,31,44,.2); }
.portal-text-link { color: var(--portal-blue); font-size: 13px; font-weight: 800; }
.portal-hero-media { position: relative; min-height: 500px; }
.portal-hero-photo { position: absolute; overflow: hidden; margin: 0; border: 7px solid #fff; box-shadow: 0 28px 70px rgba(15,59,112,.2); }
.portal-hero-photo img { height: 100%; object-fit: cover; }
.portal-hero-photo-main { inset: 20px 0 38px 70px; border-radius: 36% 10% 24% 8%; }
.portal-hero-photo-small { bottom: 0; left: 0; width: 205px; height: 230px; border-radius: 30px 85px 30px 30px; }
.portal-hero-badge { position: absolute; top: 0; right: -10px; width: 132px; height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 13px; border: 5px solid #fff; border-radius: 50%; color: var(--portal-blue-dark); background: var(--portal-gold); box-shadow: 0 18px 36px rgba(15,59,112,.18); text-align: center; transform: rotate(5deg); }
.portal-hero-badge img { width: 49px; height: 49px; object-fit: contain; }
.portal-hero-badge b { font-size: 10px; line-height: 1.15; }

.portal-section { padding: 86px 0; }
.portal-heading { margin-bottom: 42px; }
.portal-heading-center { max-width: 760px; margin-right: auto; margin-bottom: 44px; margin-left: auto; text-align: center; }
.portal-section-logo { display: block; width: 62px; height: 62px; margin: 0 auto 14px; object-fit: contain; }
.portal-section-logo-mttq { width: 72px; height: 72px; }
.section-layout-list .portal-card-grid { grid-template-columns: 1fr; }
.section-layout-list .portal-news-card { display: grid; grid-template-columns: minmax(220px,.45fr) 1fr; }
.section-layout-feature .portal-card-grid { grid-template-columns: minmax(0,1.35fr) repeat(2,minmax(0,.825fr)); }
.section-layout-empty .portal-policy-empty { min-height: 210px; }
.section-layout-empty .portal-card-grid,
.section-layout-empty .portal-info-panel,
.section-layout-empty .portal-culture-grid,
.section-layout-empty .portal-place-grid,
.section-layout-empty .portal-more { display: none; }
.portal-mttq-section.section-layout-cards .portal-info-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portal-mttq-section.section-layout-cards .portal-info-list > a { display: block; }
.portal-mttq-section.section-layout-cards .portal-info-list > a img { width: 100%; height: 154px; object-fit: cover; }
.portal-mttq-section.section-layout-cards .portal-info-list > a span { display: block; padding: 14px 2px 0; }
.portal-mttq-section.section-layout-feature .portal-info-list > a:not(:first-child) { display: none; }
.portal-mttq-section.section-layout-feature .portal-info-list > a:first-child { display: grid; grid-template-columns: minmax(240px, .8fr) 1fr; gap: 24px; align-items: center; }
.portal-mttq-section.section-layout-feature .portal-info-list > a:first-child img { width: 100%; height: 260px; object-fit: cover; }
.portal-culture.section-layout-list .portal-culture-grid { grid-template-columns: 1fr; }
.portal-culture.section-layout-list .portal-story-panel { display: grid; grid-template-columns: 220px 1fr; column-gap: 22px; align-items: center; }
.portal-culture.section-layout-list .portal-story-image { grid-row: span 4; }
.portal-places-heading-copy { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.portal-places .portal-places-heading-copy > .portal-section-logo-place {
    flex: 0 1 clamp(290px, 35vw, 420px);
    width: clamp(290px, 35vw, 420px);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 22px;
    background: #dceaf5;
    box-shadow: 0 18px 38px rgba(1,18,44,.25);
    object-fit: cover;
}
.portal-places.section-layout-list .portal-place-grid { grid-template-columns: 1fr; }
.portal-places.section-layout-list .portal-place-card { min-height: 220px; }
.portal-places.section-layout-feature .portal-place-card:first-child { grid-column: span 2; min-height: 420px; }
@media (max-width: 760px) {
    .portal-mttq-section.section-layout-cards .portal-info-list { grid-template-columns: 1fr; }
    .portal-mttq-section.section-layout-feature .portal-info-list > a:first-child,
    .portal-culture.section-layout-list .portal-story-panel { grid-template-columns: 1fr; }
    .portal-culture.section-layout-list .portal-story-image { grid-row: auto; }
    .portal-places.section-layout-feature .portal-place-card:first-child { grid-column: auto; min-height: 280px; }
    .portal-places-heading-copy { align-items: flex-start; flex-direction: column; width: 100%; }
    .portal-places .portal-places-heading-copy > .portal-section-logo-place {
        flex-basis: auto;
        width: min(100%, 520px);
    }
}
.portal-heading > p,.portal-heading > div > p { margin-bottom: 8px; color: var(--portal-blue); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.portal-heading h2 { margin-bottom: 12px; color: #0f172a; font-size: clamp(35px,4.2vw,58px); line-height: 1.08; letter-spacing: -.04em; }
.portal-heading-center > span { display: block; width: 76px; height: 5px; margin: 18px auto 0; border-radius: 999px; background: linear-gradient(90deg,var(--portal-blue),var(--portal-sky)); }
.portal-activities { background: var(--portal-soft); }
.portal-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.portal-news-card { overflow: hidden; border: 1px solid #e1e9f1; border-radius: 21px; background: #fff; box-shadow: 0 8px 26px rgba(15,59,112,.06); transition: transform .25s,box-shadow .25s; }
.portal-news-card:hover { transform: translateY(-7px); box-shadow: 0 24px 45px rgba(15,59,112,.14); }
.portal-card-image { position: relative; display: block; height: 240px; overflow: hidden; background: #dceaf5; }
.portal-card-image img { height: 100%; object-fit: cover; transition: transform .45s; }
.portal-news-card:hover .portal-card-image img { transform: scale(1.045); }
.portal-card-image > span { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--portal-blue-dark); background: var(--portal-gold); font-size: 11px; font-weight: 900; }
.portal-card-body { padding: 24px; }
.portal-meta { margin-bottom: 10px; color: #8491a3; font-size: 11px; font-weight: 700; }
.portal-card-body h3 { margin-bottom: 11px; font-size: 20px; line-height: 1.35; }
.portal-card-body h3 a:hover { color: var(--portal-blue); }
.portal-card-body > p:not(.portal-meta) { display: -webkit-box; overflow: hidden; margin-bottom: 19px; color: var(--portal-muted); font-size: 13px; line-height: 1.7; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.portal-card-link { color: var(--portal-blue); font-size: 12px; font-weight: 850; }
.portal-more { margin-top: 38px; text-align: center; }

.portal-culture { position: relative; overflow: hidden; background: linear-gradient(180deg,#fff9f2 0%,#fff3ee 100%); }
.portal-culture::before { content: "★"; position: absolute; right: -80px; top: -125px; color: rgba(214,31,44,.05); font-size: 470px; line-height: 1; }
.portal-heading-warm { position: relative; z-index: 1; }
.portal-heading-warm > img { width: 58px; height: 58px; margin: 0 auto 13px; object-fit: contain; }
.portal-heading-warm h2 { color: #861d25; }
.portal-culture .portal-heading-warm h2 { max-width: none; white-space: nowrap; font-size: clamp(34px,3.4vw,50px); }
.culture-name-nowrap { white-space: nowrap; }
.portal-heading-warm > p { color: #7b5f60; font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.portal-culture-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 28px; align-items: stretch; }
.portal-books-panel,.portal-story-panel { border: 1px solid rgba(141,30,39,.1); border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: 0 18px 55px rgba(116,35,39,.08); }
.portal-books-panel { padding: 28px; }
.portal-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.portal-panel-title h3 { margin: 0; font-size: 24px; }
.portal-panel-title a { color: var(--portal-blue); font-size: 11px; font-weight: 850; }
.portal-book-list { display: grid; gap: 14px; }
.portal-book { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 13px; border: 1px solid #eee7e2; border-radius: 15px; background: #fff; }
.portal-book:hover { border-color: #efb9bd; box-shadow: 0 10px 25px rgba(116,35,39,.07); }
.portal-book img { width: 76px; height: 98px; object-fit: contain; background: #f5f2ef; }
.portal-book span,.portal-book strong,.portal-book small { display: block; }
.portal-book strong { display: -webkit-box; overflow: hidden; margin-bottom: 7px; color: #27272a; font-size: 13px; line-height: 1.42; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.portal-book small { display: -webkit-box; overflow: hidden; color: #78716c; font-size: 11px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.portal-story-panel { overflow: hidden; padding-bottom: 28px; }
.portal-story-image { display: block; height: 295px; overflow: hidden; background: #eadfd7; }
.portal-story-image img { height: 100%; object-fit: contain; background: #f4ebe6; }
.portal-story-panel > p,.portal-story-panel > h3,.portal-story-panel > a:not(.portal-story-image) { margin-right: 28px; margin-left: 28px; }
.portal-story-label { margin-top: 23px; margin-bottom: 8px; color: var(--portal-red); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.portal-story-panel h3 { margin-bottom: 12px; color: #381b1e; font-size: 26px; line-height: 1.25; }
.portal-story-panel > p:not(.portal-story-label) { display: -webkit-box; overflow: hidden; margin-bottom: 23px; color: #79696a; font-size: 13px; line-height: 1.7; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }

.portal-information { background: #fff; }
.portal-mttq-section { background: linear-gradient(180deg,#fff 0%,#f7fbff 100%); }
.portal-mttq-section .portal-info-panel { max-width: 980px; min-height: 0; margin: 0 auto; }
.portal-policy-section { background: #eef6ff; }
.portal-policy-empty { min-height: 150px; border: 1px dashed rgba(0,86,179,.2); border-radius: 22px; background: rgba(255,255,255,.52); }
.portal-policy-section .portal-more { margin-top: 22px; }
.portal-info-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 25px; }
.portal-info-panel,.portal-policy-panel { min-height: 500px; border-radius: 24px; }
.portal-info-panel { padding: 29px; border: 1px solid #e4ebf2; background: #fff; box-shadow: 0 18px 55px rgba(15,59,112,.08); }
.portal-info-list { display: grid; gap: 14px; }
.portal-info-list > a { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 12px; border-radius: 14px; background: #f7fafc; transition: background .2s,transform .2s; }
.portal-info-list > a:hover { background: #eaf5ff; transform: translateX(4px); }
.portal-info-list img { width: 150px; height: 105px; border-radius: 10px; object-fit: cover; }
.portal-info-list span,.portal-info-list small,.portal-info-list strong,.portal-info-list em { display: block; }
.portal-info-list small { margin-bottom: 5px; color: #ea580c; font-size: 10px; font-style: normal; font-weight: 800; }
.portal-info-list strong { display: -webkit-box; overflow: hidden; margin-bottom: 6px; font-size: 15px; line-height: 1.38; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.portal-info-list em { display: -webkit-box; overflow: hidden; color: var(--portal-muted); font-size: 11px; font-style: normal; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.portal-policy-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(36px,5vw,70px); color: #fff; background: linear-gradient(145deg,#074892,#0a73c9); box-shadow: 0 22px 55px rgba(7,72,146,.22); }
.portal-policy-panel::after { content: "§"; position: absolute; right: -20px; bottom: -95px; color: rgba(255,255,255,.08); font: 330px/1 Georgia,serif; }
.portal-policy-icon { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 24px; border-radius: 18px; color: var(--portal-blue-dark); background: var(--portal-gold); font: 38px Georgia,serif; }
.portal-policy-panel > p { margin-bottom: 8px; color: #b9e5ff; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.portal-policy-panel h3 { position: relative; z-index: 1; margin-bottom: 17px; font-size: clamp(38px,4vw,57px); line-height: 1.02; }
.portal-policy-note { position: relative; z-index: 1; max-width: 390px; color: rgba(255,255,255,.73); font-size: 13px; line-height: 1.65; }
.portal-policy-panel b { position: relative; z-index: 1; margin-top: 30px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.65); font-size: 12px; }

.portal-places { position: relative; overflow: hidden; color: #fff; background: #071a32; }
.portal-places::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: radial-gradient(circle,#fff 1px,transparent 1px); background-size: 25px 25px; mask-image: linear-gradient(to right,#000,transparent 72%); }
.portal-places .shell { position: relative; z-index: 1; }
.portal-heading-light { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.portal-heading-light h2 { color: #fff; }
.portal-heading-light > a { margin-bottom: 13px; color: #78d4ff; font-size: 12px; font-weight: 850; }
.portal-place-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.portal-place-card { position: relative; overflow: hidden; min-height: 400px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: #0f3159; }
.portal-place-card > img { position: absolute; inset: 0; height: 100%; object-fit: contain; background: #102c4b; transition: transform .45s; }
.portal-place-card:hover > img { transform: scale(1.035); }
.portal-place-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(4,20,40,.06) 28%,rgba(4,20,40,.96) 100%); }
.portal-place-copy { position: absolute; right: 23px; bottom: 24px; left: 23px; }
.portal-place-copy small,.portal-place-copy strong,.portal-place-copy em { display: block; }
.portal-place-copy small { margin-bottom: 9px; color: var(--portal-gold); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.portal-place-copy strong { margin-bottom: 8px; color: #fff; font-size: 23px; line-height: 1.2; }
.portal-place-copy em { color: rgba(255,255,255,.66); font-size: 11px; font-style: normal; line-height: 1.45; }

.portal-footer { padding: 58px 0 22px; color: rgba(255,255,255,.72); background: #030e1d; }
.portal-footer-grid { display: grid; grid-template-columns: 1.5fr .75fr .75fr; gap: 60px; }
.portal-footer-grid > div:not(.portal-footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 12px; }
.portal-footer-grid > div > strong { margin-bottom: 8px; color: #fff; font-size: 13px; }
.portal-footer-grid a:hover { color: #78d4ff; }
.portal-footer-brand { display: flex; align-items: center; gap: 18px; }
.portal-footer-brand > img { width: 75px; height: 75px; object-fit: contain; }
.portal-footer-brand strong { color: #fff; font-size: 21px; }
.portal-footer-brand p { max-width: 430px; margin: 7px 0 0; font-size: 12px; }
.portal-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.portal-footer-bottom p { margin: 0; }

@media (max-width: 1080px) {
    .portal-nav { gap: 17px; }
    .portal-hero-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
    .portal-hero-photo-main { left: 35px; }
    .portal-card-image { height: 215px; }
}
@media (max-width: 900px) {
    .portal-header-inner { min-height: 72px; }
    .portal-nav { overflow-x: auto; justify-content: flex-start; order: 3; width: 100%; padding: 0 2px 10px; scrollbar-width: none; }
    .portal-nav a { flex: 0 0 auto; padding: 7px 0; }
    .portal-nav a::after { bottom: 0; }
    .portal-header-inner { flex-wrap: wrap; padding-top: 8px; }
    .portal-admin-link { margin-left: auto; }
    .portal-brand img { width: 46px; height: 46px; }
    .portal-hero-grid { grid-template-columns: 1fr; padding-top: 60px; }
    .portal-hero-media { min-height: 440px; }
    .portal-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .portal-news-card:last-child { grid-column: 1/-1; width: calc(50% - 12px); justify-self: center; }
    .portal-culture-grid,.portal-info-grid { grid-template-columns: 1fr; }
    .portal-place-card { min-height: 350px; }
    .portal-footer-grid { grid-template-columns: 1.4fr .8fr .8fr; gap: 30px; }
}
@media (max-width: 680px) {
    .portal-section { padding: 64px 0; }
    .portal-culture .portal-heading-warm h2 { white-space: normal; font-size: clamp(31px,9.5vw,42px); }
    .culture-name-nowrap { display: inline-block; white-space: nowrap; }
    .portal-header-inner { gap: 10px; }
    .portal-brand span { font-size: 14px; }
    .portal-brand b { font-size: 16px; }
    .portal-admin-link { padding: 8px 13px; font-size: 10px; }
    .portal-hero { min-height: 0; }
    .portal-hero-grid { min-height: 0; padding-block: 45px 58px; }
    .portal-hero h1 { font-size: clamp(42px,13vw,60px); }
    .portal-hero-copy > p:not(.portal-pill) { font-size: 15px; }
    .portal-hero-media { min-height: 360px; }
    .portal-hero-photo-main { inset: 20px 0 35px 25px; }
    .portal-hero-photo-small { width: 145px; height: 170px; }
    .portal-hero-badge { right: -5px; width: 105px; height: 105px; }
    .portal-hero-badge img { width: 38px; height: 38px; }
    .portal-card-grid { grid-template-columns: 1fr; }
    .portal-news-card:last-child { grid-column: auto; width: 100%; }
    .portal-card-image { height: 230px; }
    .portal-books-panel { padding: 19px; }
    .portal-panel-title { align-items: flex-start; }
    .portal-panel-title h3 { font-size: 20px; }
    .portal-book { grid-template-columns: 64px 1fr; padding: 10px; }
    .portal-book img { width: 64px; height: 86px; }
    .portal-story-image { height: 240px; }
    .portal-info-panel { padding: 18px; }
    .portal-info-list > a { grid-template-columns: 105px 1fr; gap: 12px; }
    .portal-info-list img { width: 105px; height: 90px; }
    .portal-info-list em { display: none; }
    .portal-policy-panel { min-height: 420px; }
    .portal-heading-light { display: block; }
    .portal-place-grid { grid-template-columns: 1fr; }
    .portal-place-card { min-height: 330px; }
    .portal-footer-grid { grid-template-columns: 1fr 1fr; }
    .portal-footer-brand { grid-column: 1/-1; }
}
@media (max-width: 430px) {
    .portal-hero-actions { align-items: flex-start; flex-direction: column; }
    .portal-pill { font-size: 10px; }
    .portal-hero-media { min-height: 315px; }
    .portal-info-list > a { grid-template-columns: 1fr; }
    .portal-info-list img { width: 100%; height: 160px; }
    .portal-footer-grid { grid-template-columns: 1fr; }
    .portal-footer-brand { grid-column: auto; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-news-card,.portal-card-image img,.portal-place-card > img,.portal-button { transition: none; }
}

/* Hiệu ứng được chuyển nguyên lý và thông số từ bản Stitch interactive motion. */
@keyframes stitch-fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes stitch-gradient-bg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes stitch-article-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes stitch-article-zoom-in {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}
.stitch-fade-in-up { animation: stitch-fade-in-up .6s ease-out forwards; }
.portal-home .stitch-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(-45deg, rgba(0,86,179,.4), rgba(172,199,255,.3), rgba(0,86,179,.2), rgba(255,255,255,.1));
  background-size: 400% 400%;
  mix-blend-mode: overlay;
  animation: stitch-gradient-bg 15s ease infinite;
}
.stitch-card-hover {
  cursor: pointer;
  transition: all .4s cubic-bezier(.165,.84,.44,1) !important;
}
.stitch-card-hover:hover {
  transform: translateY(-5px) scale(1.02) !important;
  border-color: rgba(0,86,179,.4) !important;
  box-shadow: 0 20px 40px -10px rgba(0,86,179,.25) !important;
}
.stitch-card-hover:active {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 10px 20px -5px rgba(0,86,179,.2) !important;
}
.stitch-glass {
  border-color: rgba(255,255,255,.3) !important;
  background-color: rgba(255,255,255,.7) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.stitch-btn-ripple {
  position: relative;
  overflow: hidden;
}
.stitch-btn-ripple::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: radial-gradient(circle,#fff 10%,transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10,10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}
.stitch-btn-ripple:active::after { transform: scale(0,0); opacity: .3; transition: 0s; }
.stitch-motion-ready .stitch-scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.165,.84,.44,1), transform .8s cubic-bezier(.165,.84,.44,1);
}
.stitch-motion-ready .stitch-scroll-animate.stitch-scroll-reveal-active { opacity: 1; transform: translateY(0); }

.stitch-article-fade { opacity: 0; animation: stitch-article-fade-in .8s ease-out forwards; }
.stitch-article-zoom { animation: stitch-article-zoom-in 1.5s ease-out forwards; }
.stitch-reading-flow > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.stitch-reading-flow > *.stitch-reading-visible { opacity: 1; transform: translateY(0); }

/* Four homepage effects configured separately in the admin panel. */
body.portal-home.motion-effects-only .stitch-hero::before,
body.portal-home.motion-effects-only .stitch-hero-pattern { animation: none !important; }
body.portal-home.motion-effects-only .stitch-hero-background { animation: none; transform-origin: center; }
body.portal-home.motion-effects-only.site-effect-pattern::before { animation: site-background-drift 12s linear infinite; }
body.portal-home.motion-effects-only:not(.site-effect-pattern)::before { animation: none !important; }
body.portal-home.motion-effects-only.site-effect-light::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(circle at 18% 18%, rgba(255,255,255,.78), transparent 25%), radial-gradient(circle at 82% 68%, rgba(14,165,233,.42), transparent 32%);
  animation: site-light-drift 9s ease-in-out infinite alternate;
}
body.portal-home.motion-effects-only.site-effect-image-zoom .site-animated-background { animation: site-image-gentle-zoom 12s ease-in-out infinite alternate; }
.site-motion-marquee { position: relative; z-index: 2; overflow: hidden; color: #fff; background: var(--site-effect-blue,#0757b5); }
.site-motion-marquee-track { display: flex; width: max-content; gap: 52px; padding: 11px 0; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; animation: site-marquee 14s linear infinite; }
.site-motion-marquee-track span { display: block; min-width: 42vw; white-space: nowrap; }
.site-motion-marquee-track span::before { content: "★"; margin-right: 16px; color: var(--site-effect-gold,#ffd633); }
@keyframes site-image-gentle-zoom { from { transform: scale(1.02); } to { transform: scale(1.09); } }
@keyframes site-light-drift { from { transform: translate3d(-3%, -2%, 0) rotate(0deg); opacity: .65; } to { transform: translate3d(3%, 2%, 0) rotate(5deg); opacity: 1; } }
@keyframes site-marquee { to { transform: translateX(-50%); } }

/* Homepage effects are explicitly enabled by the administrator, including on devices using reduced-motion mode. */
@media (prefers-reduced-motion: reduce) {
  body.portal-home.motion-effects-only.site-effect-pattern::before {
    animation-duration: 12s !important;
    animation-iteration-count: infinite !important;
  }
  body.portal-home.motion-effects-only.site-effect-light::after {
    animation-duration: 9s !important;
    animation-iteration-count: infinite !important;
  }
  body.portal-home.motion-effects-only.site-effect-image-zoom .site-animated-background {
    animation-duration: 12s !important;
    animation-iteration-count: infinite !important;
  }
  body.portal-home.motion-effects-only .site-motion-marquee-track {
    animation-duration: 14s !important;
    animation-iteration-count: infinite !important;
  }
}

/* Let the animated page background remain visible between and through homepage sections. */
body.portal-home.site-background-enabled main { background: transparent; }
body.portal-home.site-background-enabled .portal-section:not(.portal-places) {
  background-color: rgba(220,242,255,.68);
  background-image: linear-gradient(135deg,rgba(255,255,255,.24),rgba(188,229,252,.18));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
body.portal-home.site-background-enabled .portal-culture {
  background: linear-gradient(180deg,rgba(255,249,242,.78),rgba(255,238,230,.70));
}
body.portal-home.site-background-enabled .portal-mttq-section {
  background: linear-gradient(180deg,rgba(225,245,255,.72),rgba(199,233,252,.66));
}
body.portal-home.site-background-enabled .portal-policy-section { background: rgba(205,235,252,.68); }

/* Trang tích hợp ứng dụng hội thi Google Apps Script */
.contest-app-page { margin: 0; color: #15344f; background: #eaf6fd; font-family: "Segoe UI",Arial,sans-serif; }
.contest-site-header { position: sticky; z-index: 120; top: 0; border-bottom: 1px solid #c7e1f0; background: rgba(255,255,255,.96); box-shadow: 0 8px 25px rgba(0,73,124,.09); backdrop-filter: blur(14px); }
.contest-site-header-inner { min-height: 76px; display: flex; align-items: center; gap: 30px; }
.contest-site-brand { display: flex; align-items: center; gap: 11px; }
.contest-site-brand img { width: 52px; height: 52px; object-fit: contain; }
.contest-site-brand span,.contest-site-brand strong,.contest-site-brand small { display: block; }
.contest-site-brand strong { color: #0757b5; font-size: 17px; }
.contest-site-brand small { margin-top: 3px; color: #d71f2b; font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.contest-site-header nav { display: flex; flex: 1; justify-content: center; gap: 28px; }
.contest-site-header nav a { padding: 28px 0 25px; color: #50677a; font-size: 12px; font-weight: 800; }
.contest-site-header nav a:hover,.contest-site-header nav a[aria-current="page"] { color: #0072bc; }
.contest-open-new { flex: 0 0 auto; padding: 10px 16px; border-radius: 999px; color: #fff; background: #0072bc; font-size: 11px; font-weight: 850; }
.contest-app-main { min-height: calc(100vh - 76px); }
.contest-list { padding-block: clamp(44px,7vw,82px); }
.contest-list-heading { max-width: 780px; margin-bottom: 34px; }
.contest-list-heading > span { color: #d71f2b; font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.contest-list-heading h1 { margin: 10px 0 12px; color: #0757b5; font-size: clamp(36px,5vw,58px); line-height: 1; letter-spacing: -.035em; }
.contest-list-heading p { margin: 0; color: #526d80; font-size: 15px; line-height: 1.7; }
.contest-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.contest-card { display: grid; grid-template-rows: 260px 1fr; overflow: hidden; border: 1px solid #c7e1f0; border-radius: 22px; color: #15344f; background: #fff; box-shadow: 0 16px 40px rgba(0,73,124,.12); transition: transform .2s ease,box-shadow .2s ease; }
.contest-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(0,73,124,.18); }
.contest-card-image { display: block; overflow: hidden; background: #dff3ff; }
.contest-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .25s ease; }
.contest-card:hover .contest-card-image img { transform: scale(1.025); }
.contest-card-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; }
.contest-card-copy small { color: #d71f2b; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contest-card-copy strong { margin: 9px 0 12px; color: #0757b5; font-size: clamp(23px,2.4vw,31px); line-height: 1.14; }
.contest-card-copy > span { color: #5d7486; font-size: 14px; line-height: 1.6; }
.contest-card-copy b { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; color: #0072bc; font-size: 13px; }
.contest-entry { padding-block: 26px 28px; }
.contest-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #0072bc; font-size: 12px; font-weight: 850; }
.contest-entry-summary { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 25px; align-items: center; padding: 20px; border: 1px solid #c7e1f0; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(0,73,124,.1); }
.contest-entry-summary img { display: block; width: 170px; height: 116px; border-radius: 13px; object-fit: cover; background: #dff3ff; }
.contest-entry-summary span { color: #d71f2b; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contest-entry-summary h1 { margin: 6px 0 8px; color: #0757b5; font-size: clamp(25px,3.3vw,39px); line-height: 1.08; }
.contest-entry-summary p { max-width: 850px; margin: 0; color: #5d7486; font-size: 14px; line-height: 1.55; }
.contest-app-frame { display: block; width: 100%; height: calc(100vh - 76px); min-height: 720px; border: 0; border-top: 1px solid #c9e5f4; background: #f3faff; }
.contest-no-script { max-width: 760px; margin: 40px auto; padding: 20px; border-radius: 12px; background: #fff; text-align: center; }
.contest-no-script a { color: #0072bc; font-weight: 800; }
@media (max-width: 760px) {
    .contest-site-header-inner { min-height: 68px; gap: 10px; }
    .contest-site-brand img { width: 44px; height: 44px; }
    .contest-site-brand strong { font-size: 14px; }
    .contest-site-header nav { display: none; }
    .contest-open-new { margin-left: auto; padding: 9px 12px; font-size: 9px; }
    .contest-list { padding: 32px 12px 48px; }
    .contest-card-grid { grid-template-columns: 1fr; }
    .contest-card { grid-template-rows: 205px 1fr; border-radius: 16px; }
    .contest-card-copy { padding: 22px 20px; }
    .contest-entry { padding: 18px 12px 20px; }
    .contest-entry-summary { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
    .contest-entry-summary img { width: 100%; height: 190px; }
    .contest-entry-summary h1 { font-size: 27px; }
    .contest-app-frame { height: calc(100vh - 68px); min-height: 650px; }
}
.events-page .section-latest { min-height: 75vh; }
.events-page-heading { align-items: center; margin-bottom: 30px; }
.events-page-heading h1 { margin: 10px 0 0; font-size: clamp(32px, 4vw, 50px); line-height: 1; letter-spacing: -.04em; }
.events-count { margin-top: 10px; color: var(--blue); font-size: 13px; font-weight: 850; }

/* Giao diện trang bài viết theo hệ thiết kế Stitch được cung cấp. */
.article-page { background: #f9f9ff; color: #191c21; }
.article-page .article-hero { padding: 54px 0 108px; color: #191c21; background: linear-gradient(180deg,#f9f9ff,#f2f3fc); }
.article-page .article-hero::after { display: none; }
.article-page .breadcrumb { color: #727784; }
.article-page .breadcrumb a:hover { color: #0056b3; }
.article-page .eyebrow-light { color: #0056b3; }
.article-page .article-title-grid { grid-template-columns: minmax(0,1fr) 360px; gap: 48px; margin-top: 42px; }
.article-page .article-title-grid h1 { max-width: 900px; font-size: clamp(34px,4.2vw,52px); line-height: 1.1; letter-spacing: -.025em; }
.article-page .article-deck { color: #424752; font-size: 16px; line-height: 1.65; }
.article-page .article-meta { margin-top: 34px; border-color: #c2c6d4; }
.article-page .article-meta span { color: #0056b3; }
.article-page .article-image-wrap { margin-top: -58px; }
.article-page .article-cover { border: 1px solid #c2c6d4; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,86,179,.08); }
.article-page .article-cover img { max-height: none; object-fit: contain; background: #fff; }
.article-page .article-cover figcaption { padding: 12px 16px; text-align: center; font-style: italic; }
.article-page .article-layout { grid-template-columns: minmax(0,790px) 320px; align-items: start; gap: 48px; padding-block: 64px 90px; }
.article-page .article-content { grid-column: 1; grid-row: 1; }
.article-page .article-aside { grid-column: 2; grid-row: 1; top: 112px; color: #191c21; background: #fff; border: 1px solid #c2c6d4; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,86,179,.08); }
.article-page .article-aside-star { color: #da251d; }
.article-page .article-aside a { color: #0056b3; }
.article-page .article-aside h2 { margin: 0 0 16px; color: #001a40; font-size: 20px; line-height: 1.2; }
.article-related-list { display: grid; gap: 12px; }
.article-related-item { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 11px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #e2e7f0; }
.article-related-item img { display: block; width: 86px; height: 68px; object-fit: cover; border-radius: 9px; background: #eef6ff; }
.article-related-item span { min-width: 0; display: grid; gap: 6px; }
.article-related-item strong { display: -webkit-box; overflow: hidden; color: #192333; font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.article-related-item time { color: #727784; font-size: 10px; font-weight: 700; }
.article-related-all { display: inline-flex; margin-top: 17px; font-size: 12px !important; font-weight: 850; }
.article-page .article-lead { border-left-color: #0056b3; color: #001a40; font-size: clamp(19px,2.2vw,25px); }
.article-page .article-body { color: #191c21; font-size: 18px; line-height: 1.75; }
.article-page .article-gallery { gap: 14px; }
.article-page .article-gallery figure { border: 1px solid #c2c6d4; border-radius: 12px; background: #fff; }
.article-page .article-source-note { border-left-color: #da251d; background: #f2f3fc; }
.article-page .article-source-note a { display: inline-block; margin-left: 7px; color: #0056b3; font-weight: 800; }
.article-page .related-card { border: 1px solid rgba(194,198,212,.7); border-radius: 16px; box-shadow: 0 4px 20px rgba(0,86,179,.08); }
@media (max-width: 900px) {
  .article-page .article-title-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-page .article-layout { grid-template-columns: 1fr; }
  .article-page .article-content, .article-page .article-aside { grid-column: 1; grid-row: auto; }
  .article-page .article-aside { position: static; }
  .article-related-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.policy-hero { min-height: 70vh; padding-top: 64px; }
.policy-breadcrumb { margin-bottom: 46px; color: #6d7480; }
.policy-breadcrumb a { color: #0056b3; }
.policy-heading { display: block; }
.policy-heading h1 { max-width: 900px; margin: 12px 0 0; font-size: clamp(42px,7vw,86px); line-height: 1.02; letter-spacing: -.05em; }
.policy-empty { margin-top: 58px; border: 1px solid #d8e4ef; background: rgba(255,255,255,.88); }
@media (max-width: 570px) { .article-related-list { grid-template-columns: 1fr; } .policy-hero { padding-top: 42px; } }

/* Nền xanh nhạt với họa tiết trống đồng chuyển động. */
html { background: #e8f8ff; }
body { position: relative; background: linear-gradient(135deg,#f4fcff 0%,#dff5ff 48%,#e9f9ff 100%); }

/* Ảnh Địa điểm giữ nguyên tỉ lệ gốc, không bóp méo hoặc cắt mất nội dung. */
.library-card-place .library-card-image { height: auto; min-height: 180px; background: #eef8ff; }
.library-card-place .library-card-image img { display: block; width: 100%; height: auto; min-height: 180px; object-fit: contain; }
.library-card-story .library-card-image { height: auto; min-height: 220px; background: #eef8ff; }
.library-card-story .library-card-image img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.library-detail-cover-story { height: auto; min-height: 260px; background: #eef8ff; }
.library-detail-cover-story img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.article-source-note { margin: 22px 0; padding: 13px 16px; border-left: 4px solid var(--yellow); color: #52657e; background: #f4f9ff; font-size: 13px; line-height: 1.6; }
.article-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.article-gallery figure { overflow: hidden; margin: 0; border-radius: 14px; background: #eef6ff; }
.article-gallery figure:first-child { grid-column: 1 / -1; }
.article-gallery img { display: block; width: 100%; height: auto; max-height: 680px; object-fit: contain; }
@media (max-width: 680px) { .article-gallery { grid-template-columns: 1fr; } .article-gallery figure:first-child { grid-column: auto; } }
.quick-categories { position: relative; z-index: 90; background: #f5faff; border-bottom: 1px solid #dceaf7; }
.quick-categories-inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding-block: 12px; }
.quick-category { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 12px; border: 1px solid #d9e8f6; border-radius: 12px; color: var(--blue-night); background: #fff; box-shadow: 0 5px 16px rgba(0,57,111,.05); }
.quick-category span { color: var(--blue); font-size: 11px; font-weight: 950; }
.quick-category strong { overflow: hidden; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.quick-category i { margin-left: auto; color: var(--orange); font-style: normal; font-weight: 900; }
@media (max-width: 900px) { .quick-categories-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quick-category { padding: 9px 10px; } .quick-category strong { font-size: 11px; white-space: normal; } }

/* Luôn hiển thị các mục điều hướng chính, không dùng trình đơn ẩn. */
.desktop-nav { display: flex !important; flex-wrap: wrap; gap: 10px 18px; }
.mobile-nav { display: none !important; }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding-block: 12px; }
  .desktop-nav { width: 100%; margin-left: 0; justify-content: flex-start; gap: 8px 13px; }
  .desktop-nav a { font-size: 11px; }
}
.library-detail-cover-place { min-height: 0; background: #eef8ff; }
.library-detail-cover-place img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }
body:not(.portal-home)::before {
  content: "";
  position: fixed;
  z-index: 0;
  width: min(62vw,720px);
  aspect-ratio: 1;
  right: -12vw;
  top: 18vh;
  pointer-events: none;
  background: url("trong-dong.svg?v=20260810") center / contain no-repeat;
  opacity: .115;
  transform-origin: center;
  animation: trong-dong-xoay 42s linear infinite;
}
.topline, .site-header, main, .site-footer { z-index: 1; }
.site-header { z-index: 100; }
.topline, main, .site-footer { position: relative; }
.featured-strip, .section-latest, .knowledge-hub, .gallery-section, .library-list-section, .related-section {
  background: rgba(244,252,255,.72);
  backdrop-filter: blur(1.5px);
}
.knowledge-hub { background: linear-gradient(180deg,rgba(255,255,255,.72),rgba(225,246,255,.7)); }
.library-page { background: linear-gradient(135deg,#f4fcff 0%,#dff5ff 55%,#e9f9ff 100%); }
@keyframes trong-dong-xoay { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  body:not(.portal-home)::before { width: 110vw; right: -55vw; top: 24vh; opacity: .09; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.portal-home)::before { animation-duration: 42s !important; animation-iteration-count: infinite !important; }
}

/* Bố cục trang chủ: ưu tiên hoạt động Đoàn và ba kho nội dung độc lập. */
.homepage-events { padding-block: 62px 76px; }
.homepage-events .section-heading { align-items: center; margin-bottom: 28px; }
.homepage-events .event-section-title { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -.035em; }
.event-heading-actions { max-width: 540px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.event-heading-actions > p { color: var(--muted); font-size: 13px; }
.event-heading-actions .button { flex: 0 0 auto; min-height: 44px; padding: 9px 16px; }
.homepage-events .latest-grid { gap: 18px; }
.homepage-events .post-card-wide { grid-column: 1 / -1; grid-template-columns: 1.15fr .85fr; }
.homepage-events .post-card-wide .post-card-image { min-height: 430px; }
.homepage-events .post-card-wide .post-card-body { align-self: center; padding: 34px; }
.homepage-events .post-card-wide h3 { font-size: clamp(26px, 3vw, 38px); }

.knowledge-stack { position: relative; }
.knowledge-feature { padding-block: 74px; background: rgba(244,252,255,.78); }
.knowledge-feature:nth-child(even) { background: rgba(224,245,255,.82); }
.knowledge-feature-grid { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(38px, 6vw, 84px); }
.knowledge-feature-reverse .knowledge-feature-image { order: 2; }
.knowledge-feature-reverse .knowledge-feature-copy { order: 1; }
.knowledge-feature-image { display: block; overflow: hidden; min-height: 410px; padding: 10px; border: 1px solid rgba(0,86,179,.12); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.knowledge-feature-image img { width: 100%; height: 100%; min-height: 390px; object-fit: contain; border-radius: 17px; }
.knowledge-feature-copy h2 { margin: 15px 0 20px; font-size: clamp(38px, 5vw, 66px); line-height: 1.04; letter-spacing: -.05em; }
.knowledge-feature-copy > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 16px; }
.knowledge-feature-copy .knowledge-metrics { margin: 26px 0; }

@media (max-width: 900px) {
  .event-heading-actions { width: 100%; max-width: none; justify-content: space-between; }
  .homepage-events .post-card-wide { grid-template-columns: 1fr; }
  .homepage-events .post-card-wide .post-card-image { min-height: 330px; }
  .knowledge-feature-grid { grid-template-columns: 1fr; }
  .knowledge-feature-reverse .knowledge-feature-image, .knowledge-feature-reverse .knowledge-feature-copy { order: initial; }
  .knowledge-feature-image { min-height: 0; }
  .knowledge-feature-image img { min-height: 0; }
}
@media (max-width: 660px) {
  .homepage-events .section-heading, .event-heading-actions { align-items: flex-start; flex-direction: column; }
  .homepage-events .post-card-wide .post-card-image { min-height: 250px; }
  .knowledge-feature { padding-block: 54px; }
  .knowledge-feature-copy h2 { font-size: 36px; }
}
