/* HPU Stories: giao dien cong khai theo ban thiet ke. Den, vang dong, trang nga; nut hanh dong tim sam. */
@font-face { font-family: "Noto Serif"; font-weight: 400; font-display: swap; src: url(../fonts/noto-serif-vietnamese-400-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Noto Serif"; font-weight: 400; font-display: swap; src: url(../fonts/noto-serif-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif"; font-weight: 700; font-display: swap; src: url(../fonts/noto-serif-vietnamese-700-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Noto Serif"; font-weight: 700; font-display: swap; src: url(../fonts/noto-serif-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Great Vibes"; font-weight: 400; font-display: swap; src: url(../fonts/great-vibes-vietnamese-400-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Great Vibes"; font-weight: 400; font-display: swap; src: url(../fonts/great-vibes-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #241c13;
  --ink-soft: #5f5243;
  --ivory: #fbf7f0;
  --ivory-deep: #f3e9da;
  --surface: #fffdf9;
  --line: #eadfca;
  --gold: #b8893b;
  --gold-text: #8a6220;
  --gold-light: #e8c98a;
  --gold-grad: linear-gradient(180deg, #a57a2f, #7d5a1c);
  --night: #100e0b;
  --night-soft: #221c15;
  --action: #5b2a6e;
  --action-grad: linear-gradient(90deg, #6a2c6e, #4c2a78);
  --danger: #a3271f;
  --ok-bg: #e3f4dd; --ok-ink: #245c2a;
  --err-bg: #fbe9e7; --err-ink: #8c2019;
  --warn-bg: #fdf3dc; --warn-ink: #7a5208;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Noto Serif", cursive;
  --shadow: 0 3px 14px rgba(90, 60, 20, .1);
}
.theme-warm { --night: #16324f; --night-soft: #1f4366; --gold: #c58a2a; --gold-light: #f3d597; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.6 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
[id] { scroll-margin-top: 96px; }
.muted { color: var(--ink-soft); }
.prose { white-space: pre-line; margin: 0 0 1em; }
.empty { color: var(--ink-soft); padding: 18px; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.icon { width: 24px; height: 24px; flex: none; }
.lotus { display: block; color: var(--gold-light); }

/* Thanh dieu huong */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px clamp(16px, 5vw, 64px); background: linear-gradient(180deg, #15120e, #1f1b16); color: #f4ead6; border-bottom: 1px solid #8a6c34; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.brand-lotus { width: 62px; flex: none; color: #e0b866; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text small { font-size: 14px; color: #e9dfcc; }
.brand-text strong { color: var(--gold-light); font-size: 20px; text-transform: uppercase; font-weight: 400; letter-spacing: .01em; }
.brand-text .brand-years { letter-spacing: .08em; text-align: center; }
.mainnav { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 36px); }
.mainnav a { position: relative; color: #efe5d2; text-decoration: none; font-size: 16px; padding: 10px 0; white-space: nowrap; }
.mainnav a:hover { color: var(--gold-light); }
.mainnav a.active::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 2px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.nav-search { display: inline-flex; align-items: center; }
.nav-search span { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid #6d5a39; border-radius: 8px; color: #f4ead6; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; cursor: pointer; }

.preview-notice { background: var(--warn-bg); color: var(--warn-ink); text-align: center; padding: 6px 16px; font-size: 14px; }

/* Banner: anh trang tri o hai ben, hoa dan vao nen toi */
.hero { position: relative; overflow: hidden; color: #fbf3e2; background: radial-gradient(ellipse 60% 90% at 30% 45%, #2b2620 0, var(--night) 70%), var(--night); }
.hero::before, .hero::after { content: ""; position: absolute; bottom: 0; background-repeat: no-repeat; background-size: auto 100%; pointer-events: none; }
.hero::before { left: 0; width: 18%; height: 100%; background-image: url(../img/design/hero-left.jpg); background-position: left bottom; -webkit-mask-image: linear-gradient(to right, #000 62%, transparent); mask-image: linear-gradient(to right, #000 62%, transparent); }
.hero::after { right: 0; width: 18%; height: 100%; background-image: url(../img/design/hero-right.jpg); background-position: right bottom; -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 88%); mask-image: linear-gradient(to left, #000 55%, transparent 88%); }
.hero-page::before { width: 20%; background-image: url(../img/design/page-left.jpg); }
.hero-page::after { width: 30%; background-image: url(../img/design/page-memory.jpg); background-size: auto 100%; -webkit-mask-image: linear-gradient(to left, #000 62%, transparent 96%); mask-image: linear-gradient(to left, #000 62%, transparent 96%); }
.hero-bio::after { background-image: url(../img/design/page-bio.jpg); }
.hero-video::after { background-image: url(../img/design/page-video-v2.jpg); }
.hero-photo::after { background-image: url(../img/design/page-gallery.jpg); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; max-width: 1280px; height: 400px; margin: 0 auto; padding: 0 clamp(16px, 15vw, 200px) 0 clamp(16px, 11vw, 150px); }
.hero-page .hero-inner { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); height: 310px; padding-left: clamp(16px, 14vw, 190px); padding-right: clamp(16px, 22vw, 300px); }
.hero-figure { display: flex; justify-content: center; align-items: flex-end; height: 100%; min-width: 0; }
.hero-portrait { height: 100%; width: auto; max-width: 100%; object-fit: cover; object-position: top; -webkit-mask-image: radial-gradient(ellipse 50% 66% at 50% 66%, #000 66%, transparent 100%); mask-image: radial-gradient(ellipse 50% 66% at 50% 66%, #000 66%, transparent 100%); }
.hero-copy { align-self: center; text-align: center; padding: 16px 0; min-width: 0; }
.script { display: flex; align-items: center; justify-content: center; gap: 12px; font: 400 clamp(38px, 5vw, 62px)/1.1 var(--script); color: var(--gold-light); margin: 0; }
.script .icon { width: 58px; height: 58px; stroke-width: 1.2; }
.script-sm { font-size: clamp(26px, 3.2vw, 40px); }
.hero-page .person { font-size: clamp(24px, 3.2vw, 40px); white-space: nowrap; }
.person { font-size: clamp(26px, 3.8vw, 48px); letter-spacing: .03em; text-transform: uppercase; margin: .15em 0 0; color: var(--gold-light); background: linear-gradient(180deg, #f6e2ad, #c79a4a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.years { font-size: clamp(19px, 2.2vw, 27px); margin: 0; color: #e8dcc4; letter-spacing: .03em; }
.ornament { position: relative; width: 330px; max-width: 80%; height: 1px; margin: 12px auto; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.ornament span { position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; margin-left: -4px; background: var(--gold-light); transform: rotate(45deg); }
.tagline { font: italic 400 clamp(18px, 2vw, 24px)/1.4 var(--serif); margin: 0; }

/* Loi tat */
.shortcuts { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); padding: 14px clamp(16px, 9vw, 120px); background: var(--ivory-deep); border-bottom: 1px solid var(--line); }
.shortcuts::before, .shortcuts::after { content: ""; position: absolute; top: 0; bottom: 0; width: 96px; pointer-events: none; }
.shortcuts::before { left: 0; background: url(../img/design/corner-left.jpg) no-repeat left top / auto 100%; -webkit-mask-image: linear-gradient(to left, transparent, #000 40%); mask-image: linear-gradient(to left, transparent, #000 40%); }
.shortcuts::after { right: 0; background: url(../img/design/corner-right.jpg) no-repeat right top / auto 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 40%); mask-image: linear-gradient(to right, transparent, #000 40%); }
.shortcuts a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; text-align: center; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; border-left: 1px solid #dccbb0; }
.shortcuts a:first-child { border-left: 0; }
.shortcuts a:hover { color: var(--gold-text); }
.shortcuts .icon { width: 42px; height: 42px; stroke-width: 1.15; color: #8a6220; }

.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 9px clamp(16px, 3vw, 36px); background: var(--ivory-deep); font-size: 15px; flex-wrap: wrap; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.breadcrumb .icon { width: 19px; height: 19px; }

.content-wrap { max-width: 1180px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 56px; }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 25px; margin: 30px 0 14px; }
.section-title small { font-weight: 400; font-size: 18px; color: var(--ink); }
.section-title .icon { width: 34px; height: 34px; stroke-width: 1.3; color: var(--gold-text); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.see-all { color: #1f4fbf; text-decoration: none; font-size: 15px; }
.see-all:hover { text-decoration: underline; }

/* Trang chu chuyen trang */
.about { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: start; padding: 28px clamp(16px, 3.4vw, 46px) 54px; background: linear-gradient(180deg, #f7efe3, var(--ivory)); }
.about::before { content: ""; position: absolute; left: 0; bottom: 0; width: 40%; aspect-ratio: 470 / 165; background: url(../img/design/about-flowers.jpg) no-repeat left bottom / 100% auto; pointer-events: none; -webkit-mask-image: linear-gradient(to top, #000 82%, transparent), linear-gradient(to left, transparent 6%, #000 34%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, #000 82%, transparent), linear-gradient(to left, transparent 6%, #000 34%); mask-composite: intersect; }
.about > * { position: relative; }
.about-solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.about-text { padding-bottom: 110px; }
.about h2 { font-size: 28px; font-weight: 700; }
.about h2 em { font-style: italic; }
.about-photos { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px 24px; }
.about-photos a { display: block; }
.about-photos a { grid-column: span 6; }
.about-photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center bottom; border: 4px solid #fff; border-radius: 8px; box-shadow: 0 3px 12px rgba(60, 40, 10, .22); }
.home-memories { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(280px, 1fr); gap: 22px; align-items: start; padding: 24px clamp(16px, 2.4vw, 30px) 44px; background: #f4ecdf; border-top: 1px solid var(--line); }
.home-quotes h2 { font-size: 27px; margin-left: 14px; }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quote { margin: 0; padding: 14px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.quote .icon { width: 30px; height: 30px; color: #a67c2d; transform: rotate(180deg); }
.quote blockquote { margin: 0 0 12px; font-style: italic; }
.quote figcaption { color: var(--gold-text); font-style: italic; }

.cta-card { padding: 22px; text-align: center; background: linear-gradient(170deg, #fff8ea, var(--ivory-deep)); border: 1px solid #e3c88f; border-radius: 16px; box-shadow: var(--shadow); }
.cta-card h3 { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 21px; }
.cta-card h3 .icon { width: 34px; height: 34px; color: var(--gold-text); stroke-width: 1.3; }
.cta-memory { position: relative; padding-bottom: 170px; overflow: hidden; background: linear-gradient(170deg, #fff8ea, #fbf0dc); }
.cta-memory::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 165px; background: url(../img/design/envelope.jpg) no-repeat center bottom / auto 100%; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 55%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 58% 62% at 50% 55%, #000 72%, transparent 100%); }
.cta-form { text-align: left; }
.cta-form h3 { justify-content: flex-start; }

/* Nut */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 26px; border: 1px solid transparent; border-radius: 999px; font: 400 17px/1.2 var(--serif); text-decoration: none; cursor: pointer; }
.btn .icon { width: 22px; height: 22px; }
.btn-primary { background: var(--action-grad); color: #fff; border-radius: 10px; }
.btn-primary:hover { filter: brightness(.9); }
.btn-gold { background: var(--gold-grad); color: #fff; }
.btn-gold:hover { filter: brightness(.9); }
.btn-ghost { background: transparent; border-color: var(--gold); color: var(--gold-text); border-radius: 10px; font-size: 16px; }
.btn-ghost:hover { background: var(--ivory-deep); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; margin-top: 16px; }

/* Bo cuc cot trai + hoa nen */
.with-side { display: grid; grid-template-columns: 282px minmax(0, 1fr); align-items: stretch; }
.side-col { position: relative; padding: 34px 18px 340px 28px; background: #fdf9f2; border-right: 1px solid #f1e8d8; }
.side-col::after { content: ""; position: absolute; left: 0; bottom: 0; width: 270px; max-width: 100%; aspect-ratio: 270 / 452; background: url(../img/design/side-flower.jpg) no-repeat left bottom / 100% auto; pointer-events: none; -webkit-mask-image: linear-gradient(to top, #000 82%, transparent), linear-gradient(to left, transparent, #000 16%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, #000 82%, transparent), linear-gradient(to left, transparent, #000 16%); mask-composite: intersect; }
.sidenav { position: relative; z-index: 1; }
.main-col { padding: 14px clamp(16px, 2vw, 24px) 48px; min-width: 0; max-width: 930px; }
.main-col > .section-title:first-child, .main-col > section:first-child .section-title:first-child { margin-top: 10px; }
.sidenav { display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #f3ead9; }
.sidenav a:last-child { border-bottom: 0; }
.sidenav a span { margin-left: auto; }
.sidenav .icon { width: 28px; height: 28px; color: var(--gold-text); stroke-width: 1.3; }
.sidenav a:hover { background: var(--ivory-deep); }
.sidenav a.active { background: var(--gold-grad); color: #fff; border-radius: 12px; }
.sidenav a.active .icon { color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.split .section-title { margin-top: 26px; }
.split > .cta-card { margin-top: 26px; }
.guest-wrap .split > .cta-card { margin-top: 30px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 12px; border-radius: 999px; background: #f8e2b5; color: #5f4210; font-size: 13px; line-height: 1.7; }
.badge .icon { width: 16px; height: 16px; }
.badge-accent { background: #e23b3b; color: #fff; border-radius: 6px; padding: 3px 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-soft); font-size: 14px; margin: 0; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { width: 17px; height: 17px; color: var(--gold-text); }

/* Loi dan */
.quote-banner { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 92px; padding: 12px 120px 12px 40px; font: italic 400 20px/1.5 var(--serif); text-align: center; background: url(../img/design/quote-pen.jpg) no-repeat right center / auto 100%, #f8eedb; border-radius: 12px; box-shadow: var(--shadow); }
.quote-banner .icon { width: 48px; height: 48px; flex: none; color: #a67c2d; transform: rotate(180deg); }
.quote-banner .prose { margin: 0; }

/* The */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card, .site-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.post-card:hover, .site-card:hover, .video-card:hover strong { color: var(--gold-text); }
.post-card-img { position: relative; display: block; }
.post-card-img img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; border-radius: 14px 14px 0 0; }
.post-card-img .badge { position: absolute; left: 12px; bottom: 8px; background: #fff7e6; }
.post-card-body, .site-card-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; font-size: 17px; line-height: 1.35; }
.post-card-body .meta { justify-content: space-between; flex-wrap: nowrap; font-size: 13px; }
.site-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.site-card small { color: var(--ink-soft); }
.site-card-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--night); }
.site-card-ph .lotus { width: 96px; }

.avatar { width: 58px; height: 58px; flex: none; border-radius: 50%; object-fit: cover; }
.avatar-ph { display: inline-flex; align-items: center; justify-content: center; background: #f1e0bd; color: #6d4c12; font-size: 22px; font-weight: 700; }
.memory { padding: 14px 18px; margin-bottom: 8px; background: var(--surface); border-radius: 12px; box-shadow: 0 1px 6px rgba(90, 60, 20, .07); }
.memory-person { display: flex; gap: 14px; align-items: flex-start; }
.memory-person > div { flex: 1; min-width: 0; }
.memory header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 3px; }
.memory time { margin-left: auto; font-size: 14px; color: var(--ink-soft); }
.memory h3 { font-size: 18px; }
.memory p { margin: 0; font-size: 15px; }
.memory-photo { width: 180px; border-radius: 8px; margin-top: 8px; }
.post-full { max-width: 760px; margin: 0 auto; }
.post-full .prose { font-size: 18px; line-height: 1.7; text-align: justify; }
.post-cover { width: 100%; border-radius: 12px; margin: 16px 0; }
.post-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 22px; }
.post-photos figure { margin: 0; }
.post-photos figure:only-child { grid-column: 1 / -1; }
.post-photos img { width: 100%; border-radius: 10px; }
.post-photos figcaption { margin-top: 6px; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* Tieu su */
.bio-col { position: relative; }
.bio-col::before { content: ""; position: absolute; top: 0; right: 0; width: 92px; height: 200px; background: url(../img/design/bio-lotus.jpg) no-repeat right top / auto 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 50%), linear-gradient(to top, transparent, #000 25%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 50%), linear-gradient(to top, transparent, #000 25%); mask-composite: intersect; pointer-events: none; }
.bio-summary { position: relative; display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 14px; }
.bio-summary .section-title { margin: 0 0 6px; font-size: 22px; }
.bio-summary-solo { grid-template-columns: minmax(0, 1fr); }
.bio-portrait { width: 100%; aspect-ratio: 1 / 1.03; object-fit: cover; object-position: top; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 3px 12px rgba(60, 40, 10, .25); }
.facts { margin: 0; padding: 2px 18px; background: rgba(250, 243, 230, .85); border-radius: 12px; font-size: 15px; }
.facts div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { display: flex; align-items: center; gap: 12px; }
.facts dt .icon { color: #b07f22; stroke-width: 1.4; }
.facts dd { margin: 0; white-space: pre-line; }
.fact-strong dd { font-weight: 700; }
.bio-life { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 24px; align-items: center; margin-top: 8px; }
.bio-life .prose { margin: 0; font-size: 15.5px; }
.bio-quote { margin: 0; padding: 12px 22px 16px; background: #fbf1dc; border: 1px solid #e7cf9f; border-radius: 14px; box-shadow: var(--shadow); }
.bio-quote .icon { color: #a67c2d; width: 34px; height: 34px; transform: rotate(180deg); }
.bio-quote blockquote { margin: 0; font: italic 400 20px/1.4 var(--serif); text-align: center; }
.rail { position: relative; list-style: none; margin: 0; padding: 0 0 0 34px; background: rgba(250, 243, 230, .5); border-radius: 12px; }
.rail::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 20px; width: 2px; background: #c99a43; }
.rail li { position: relative; display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 24px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f0e6d3; font-size: 15px; line-height: 1.4; }
.rail li:last-child { border-bottom: 0; }
.rail li::before { content: ""; position: absolute; left: -32px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 3px solid #c99a43; border-radius: 50%; background: var(--surface); }
.rail strong { padding: 3px 6px; text-align: center; background: #fae0b0; border-radius: 7px; font-size: 14px; white-space: nowrap; }
.duty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.duty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px 16px; text-align: center; background: #fbf1e0; border: 1px solid #efddbb; border-radius: 12px; box-shadow: var(--shadow); font-weight: 700; font-size: 15px; }
.duty img { mix-blend-mode: multiply; }
.duty .icon { width: 44px; height: 44px; color: #8a6220; stroke-width: 1.2; }
.duty p { margin: 0; }
.bio-post h3 { font-size: 19px; }

/* Anh */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 12px 0 18px; }
.toolbar .section-title { margin: 0 auto 0 0; font-size: 27px; }
.search-inline { display: flex; gap: 8px; }
.search-box { position: relative; display: block; width: 306px; max-width: 100%; }
.search-box .icon { position: absolute; left: 12px; top: 10px; color: var(--ink-soft); }
.search-box input[type=search]:not([type=checkbox]):not([type=radio]):not([type=file]) { padding-left: 44px; }
.search-large { margin-bottom: 20px; }
.search-large input { min-height: 44px; }
.view-switch { display: inline-flex; border: 1px solid #d9c7a5; border-radius: 10px; overflow: hidden; }
.view-switch a { display: flex; padding: 8px 14px; color: var(--ink); }
.view-switch a.active { background: var(--gold-grad); color: #fff; }
.album-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.album-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 9px 8px 12px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; text-align: center; font-size: 15.5px; line-height: 1.3; }
.album-card img, .album-card .site-card-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.album-card strong { flex: 1; font-weight: 700; }
.album-card small { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 14px; }
.album-card small .icon { width: 20px; height: 20px; color: var(--gold-text); }
.mosaic { display: grid; grid-template-columns: 1.45fr 1fr .87fr 1fr; grid-template-rows: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; height: 396px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.mosaic a { display: block; min-height: 0; overflow: hidden; border-radius: 9px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic a:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.mosaic a:nth-child(2) { grid-column: 2 / span 1; grid-row: 1; }
.mosaic a:nth-child(3) { grid-column: 3 / span 2; grid-row: 1; }
.mosaic a:nth-child(4) { grid-column: 2; grid-row: 2; }
.mosaic a:nth-child(5) { grid-column: 3; grid-row: 2; }
.mosaic a:nth-child(6) { grid-column: 4; grid-row: 2; }
.mosaic a:nth-child(4):last-child { grid-column: 2 / span 3; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.photo-list { display: flex; flex-direction: column; gap: 10px; }
.photo-list a { display: flex; gap: 14px; align-items: center; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.photo-list img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.photo-list small { display: block; color: var(--ink-soft); }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(10, 8, 5, .88); }
.lightbox img { max-width: 94vw; max-height: 86vh; }
.lightbox p { color: #fff; text-align: center; margin: 6px 0 0; }
.lightbox-close { position: fixed; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* Video */
.video-now { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.05fr); gap: 22px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.video-frame { aspect-ratio: 16 / 8.6; background: #000; border-radius: 10px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame video { width: 100%; height: 100%; display: block; background: #000; }
.video-meta { padding: 6px 12px 8px 0; }
.video-meta h3 { font-size: 20px; margin: 10px 0 8px; }
.video-meta .meta { margin-bottom: 10px; }
.video-meta .prose { font-size: 15px; }
.video-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.video-thumb { position: relative; display: block; overflow: hidden; border-radius: 10px; }
.video-thumb img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.video-thumb.has-play::after { content: ""; position: absolute; left: 12px; bottom: 12px; width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7l9 5-9 5z'/%3E%3C/svg%3E") center / 22px no-repeat; }
.video-card strong { font-size: 16.5px; line-height: 1.3; }

/* Bieu mau */
label { display: block; font-weight: 700; font-size: 15px; margin: 12px 0 4px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #d3c4a3; border-radius: 9px; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--serif); }
textarea { resize: vertical; }
.field { margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; align-items: start; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.narrow { max-width: 760px; margin: 0 auto; }

.alert { padding: 11px 16px; border-radius: 10px; margin: 0 0 16px; }
.alert p { margin: 0; }
.alert-ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert-error { background: var(--err-bg); color: var(--err-ink); }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); }
.plain-list { list-style: none; padding: 0; margin: 0 0 12px; }
.plain-list li { padding: 5px 0; }

/* Cong ma + dang nhap */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(circle at 50% 30%, #3a2f22 0, var(--night) 65%); }
.gate-card { width: 100%; max-width: 400px; padding: 30px 26px; text-align: center; background: var(--surface); border: 1px solid var(--gold); border-radius: 18px; }
.gate-card form { text-align: left; margin-top: 12px; }
.gate-lotus { width: 76px; margin: 0 auto 8px; color: var(--gold); }
.gate-card h1 { font-size: 26px; }

/* Trang chu nen tang */
.platform-hero { padding: 56px 16px; text-align: center; background: radial-gradient(circle at 50% 20%, #3a2f22 0, var(--night) 65%); color: #fbf3e2; }
.platform-lotus { width: 104px; margin: 0 auto 10px; }
.platform-hero h1 { font-size: clamp(34px, 6vw, 54px); color: var(--gold-light); margin: 0; }
.platform-lead { margin: 10px 0 0; }

.sitefoot { padding: 24px 16px; text-align: center; background: var(--night); color: #efe5d2; }
.site-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; list-style: none; margin: 0 auto 18px; padding: 0 0 16px; max-width: 900px; border-bottom: 1px solid #3a2f22; }
.site-stats li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.site-stats .icon { width: 20px; height: 20px; color: var(--gold-light); }
.site-stats strong { color: var(--gold-light); }
.sitefoot p { margin: 4px 0; }
.sitefoot .muted, .sitefoot a { color: #cfc2aa; }
.foot-lotus { width: 56px; margin: 0 auto 8px; color: #e0b866; }

/* May tinh be + dien thoai */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 16px 12px; background: var(--night); border-bottom: 1px solid #5c4724; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 12px 4px; border-bottom: 1px solid #3a2f22; }
  .mainnav a.active { color: var(--gold-light); }
  .mainnav a.active::after { display: none; }
  .nav-search { gap: 8px; }
  .nav-search span { display: inline; }
  .with-side { grid-template-columns: 230px minmax(0, 1fr); }
  .side-col { padding-left: 14px; padding-right: 12px; }
  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-memories { grid-template-columns: minmax(0, 1fr); }
  .hero-page::after { display: none; }
  .hero-page .hero-inner { padding-right: 16px; }
}
@media (max-width: 820px) {
  .site-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
  .brand-lotus { width: 48px; }
  .brand-text strong { font-size: 17px; }
  .hero::before, .hero::after, .hero-page::before { opacity: .55; width: 34%; height: 46%; }
  .hero::after { display: none; }
  .hero-inner, .hero-page .hero-inner { display: flex; flex-direction: column-reverse; align-items: center; height: auto; padding: 18px 16px 0; }
  .hero-figure { height: auto; }
  .hero-portrait { height: 300px; }
  .shortcuts { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .shortcuts::before, .shortcuts::after { display: none; }
  .shortcuts a { border-left: 0; border-top: 1px solid var(--line); padding: 14px 8px; }
  .shortcuts a:last-child { grid-column: 1 / -1; }
  .about { grid-template-columns: minmax(0, 1fr); padding: 22px 16px 28px; }
  .about::before { display: none; }
  .about-text { padding-bottom: 0; }
  .about-photos { gap: 10px; }
  .quote-grid, .split, .bio-summary, .bio-life, .video-now, .duty-grid, .card-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .with-side { display: block; }
  .side-col { padding: 12px 16px 0; background: none; border: 0; }
  .side-col::after { display: none; }
  .sidenav { flex-direction: row; overflow-x: auto; border-radius: 10px; }
  .sidenav a { white-space: nowrap; border-bottom: 0; }
  .sidenav .icon { width: 22px; height: 22px; }
  .main-col { padding: 12px 16px 36px; }
  .bio-col::before { display: none; }
  .bio-portrait { max-width: 240px; margin: 0 auto; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rail strong { justify-self: start; }
  .quote-banner { padding: 12px 16px; font-size: 18px; background-image: none; }
  .quote-banner .icon { display: none; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; height: auto; }
  .mosaic img { object-position: top; }
  .mosaic a:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .mosaic a:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
  .search-inline, .search-box { width: 100%; flex: 1 1 100%; }
  .toolbar .section-title { flex-basis: 100%; font-size: 23px; }
  
}
.page-banner-full { display: block; width: 100%; height: auto; }
.hero.hero-off { display: none; }
/* Banner anh chinh thuc tren man rong; man hep dung banner dung san vi chu trong anh qua nho. */
.home-banner { display: block; width: 100%; height: auto; }
.hero-has-banner { display: none; }
@media (max-width: 820px) {
  .home-banner { display: none; }
  .hero-has-banner { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
