:root{
  --gold:#C98A1A;--maroon:#7A2E1F;--brown:#5B4332;--cream:#F7F1E4;--ink:#2F241C;--paper:#fbf7ee;--line:#dfcda9;--muted:#7f6a57;--shadow:0 10px 28px rgba(70,43,24,.08)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Source Serif 4",Georgia,serif;line-height:1.5}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-header{position:sticky;top:0;z-index:50;height:76px;display:flex;align-items:center;gap:24px;padding:0 4.5vw;background:rgba(251,247,238,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(122,46,31,.12)}.brand{width:250px;flex:0 0 auto;overflow:hidden}.brand img{width:100%;height:58px;object-fit:cover;object-position:center;mix-blend-mode:multiply}.nav{display:flex;align-items:center;gap:24px;margin-left:auto;font-size:14px;white-space:nowrap}.nav a{padding:28px 0 24px;border-bottom:2px solid transparent}.nav a:hover,.nav a.active{color:var(--maroon);border-color:var(--gold)}.header-cta{background:linear-gradient(135deg,#d69826,#9a5e0f);color:white;padding:12px 18px;border-radius:8px;font-weight:700;white-space:nowrap;box-shadow:0 8px 20px rgba(169,103,14,.18)}.nav-toggle{display:none;border:0;background:none;font-size:28px;margin-left:auto}
.hero{min-height:500px;display:grid;grid-template-columns:1.08fr 1fr;overflow:hidden;background:linear-gradient(90deg,#fbf6ec 0%,#fbf6ec 50%,#efe5d5 100%);border-bottom:1px solid rgba(122,46,31,.08)}.hero-copy{position:relative;padding:30px 3vw 32px 8vw;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.hero-kicker{position:absolute;left:4vw;top:132px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:11px;letter-spacing:.28em;color:#8f7c68}.hero-kicker:after{content:"";width:40px;border-bottom:1px solid var(--gold);margin-top:10px}.hero-lockup{width:min(560px,90%);margin-bottom:-8px}.hero-lockup img{display:block;width:100%;mix-blend-mode:multiply}.pali-quote{margin:0;color:var(--maroon);font-family:"Noto Serif",Georgia,serif;font-style:italic;font-size:20px}.quote-vi{margin:5px 0 0;font-size:16px}.hero-actions{display:flex;gap:14px;margin-top:24px}.btn{display:inline-flex;align-items:center;gap:12px;justify-content:center;min-width:185px;padding:13px 22px;border-radius:8px;font-weight:700}.btn-primary{color:#fff;background:linear-gradient(135deg,#cf8c20,#985a0c);box-shadow:0 10px 24px rgba(140,84,10,.15)}.btn-outline{border:1px solid #c99b59;background:rgba(255,255,255,.45)}.btn span{margin-left:auto}.hero-art{background-image:linear-gradient(90deg,#fbf6ec 0%,rgba(251,246,236,.1) 22%),url('assets/hero-scene.jpg');background-size:cover;background-position:center right;min-height:500px}
.section{padding:34px 4.5vw}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.section-heading>div{display:flex;align-items:center;gap:12px;flex:1}.section-heading>div:after{content:"";height:1px;background:linear-gradient(90deg,var(--gold),transparent);flex:1;margin-left:10px}.section-heading h2{font-family:"Noto Serif",Georgia,serif;text-transform:uppercase;letter-spacing:.04em;color:var(--maroon);font-size:25px;margin:0;white-space:nowrap}.section-heading>a{font-size:13px;color:#8f6a37;margin-left:20px}.lotus{color:var(--gold);font-size:26px}.subject-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.subject-card{border:1px solid #eadfc9;background:rgba(255,255,255,.54);border-radius:9px;padding:20px 14px;text-align:center;min-height:175px;box-shadow:var(--shadow);transition:.2s ease;cursor:pointer}.subject-card:hover{transform:translateY(-4px);border-color:#d6b47d;box-shadow:0 14px 32px rgba(70,43,24,.12)}button.subject-card{width:100%}.subject-card h3{font-family:"Noto Serif",Georgia,serif;margin:8px 0 5px;font-size:17px;color:#32261e}.subject-card p{font-size:13px;color:#6f5c4a;margin:0}.subject-icon{display:block;color:#b47a22;font-size:46px;line-height:1.1}.subject-icon.han{font-family:serif;font-size:54px}.subject-icon svg{display:block;width:50px;height:50px;margin:0 auto;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.lessons{padding-top:18px}.lesson-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.lesson-card{display:grid;grid-template-columns:125px 1fr;gap:14px;background:#fffaf1;border:1px solid #eadfc9;border-radius:9px;padding:10px;box-shadow:var(--shadow)}.lesson-card img{width:125px;height:130px;object-fit:cover;border-radius:7px}.lesson-content{min-width:0}.tag{display:inline-block;font-size:10px;letter-spacing:.08em;color:var(--maroon);background:#f6e9d4;border-radius:12px;padding:3px 8px}.lesson-content h3{font-family:"Noto Serif",Georgia,serif;color:var(--maroon);font-size:18px;margin:8px 0 5px}.lesson-content p{font-size:13px;margin:0;color:#645545}.meta{display:flex;justify-content:space-between;gap:10px;align-items:end;margin-top:13px;font-size:11px;color:#8b765f}.meta a{color:#a46010;font-weight:700}
.roadmap{background:linear-gradient(180deg,#fbf7ef,#f3eadb);border-block:1px solid #e9dcc6}.steps{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;gap:16px;align-items:center}.step{display:flex;align-items:center;gap:14px}.step-icon{width:64px;height:64px;flex:0 0 auto;border:1.5px solid var(--gold);border-radius:50%;display:grid;place-items:center;color:#a96a16;font-size:26px;background:#fffaf0}.step small{color:#b06b16;font-weight:700}.step h3{margin:0;color:var(--maroon);font-family:"Noto Serif",Georgia,serif;font-size:16px}.step p{margin:3px 0 0;font-size:12px;color:#705e4c}.arrow{color:var(--gold);font-size:22px}
.quote-section{padding-top:30px}.section-heading.compact{margin-bottom:14px}.quote-section blockquote{margin:0;position:relative;text-align:center;padding:40px 10%;background:linear-gradient(90deg,rgba(237,224,200,.55),rgba(255,255,255,.65),rgba(237,224,200,.55));border:1px solid #e8d8bb;border-radius:10px;overflow:hidden}.quote-section blockquote:before,.quote-section blockquote:after{content:"";position:absolute;width:210px;height:120%;top:-10%;opacity:.18;background:radial-gradient(ellipse at center,#c1a676 0 3%,transparent 4% 100%);transform:rotate(-15deg)}.quote-section blockquote:before{left:-50px}.quote-section blockquote:after{right:-50px;transform:rotate(15deg)}.quote-mark{position:absolute;left:25%;top:12px;color:#d7b26a;font-size:70px;line-height:1}.quote-mark.end{left:auto;right:25%;top:auto;bottom:-10px}
.tool-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.tool-card{border:1px solid #eadfc9;background:#fffaf1;border-radius:8px;padding:16px;display:grid;grid-template-columns:42px 1fr 22px;gap:10px;align-items:center;text-align:left;cursor:pointer}.tool-card>span{font-size:32px;color:#a86a18}.tool-card h3{font-size:15px;color:var(--maroon);margin:0}.tool-card p{font-size:11px;color:#6d5a49;margin:3px 0 0}.tool-card b{width:22px;height:22px;border-radius:50%;background:#f1dfc2;display:grid;place-items:center;color:#a26313}
footer{display:grid;grid-template-columns:1.35fr 1.1fr .55fr .7fr 1fr;gap:28px;align-items:center;background:#49301f;color:#eadfce;padding:34px 4.5vw;border-top:1px solid #6e4d34}.footer-brand img{width:280px;height:90px;object-fit:cover;mix-blend-mode:screen;filter:sepia(.2)}.footer-copy{font-size:13px;color:#ddd0bd}.footer-links{display:flex;flex-direction:column;gap:5px;font-size:12px}.footer-links a:hover{color:#f6c66f}.copyright{display:flex;gap:12px;align-items:center;font-size:12px}.copyright>span{font-size:34px;color:#c68a2c}.copyright p{margin:0}.copyright small{color:#c9b9a4}
.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:#3f2b1e;color:#fff;padding:12px 18px;border-radius:8px;box-shadow:0 12px 30px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:.25s;z-index:100;font-size:14px}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){.nav{gap:14px;font-size:13px}.brand{width:210px}.subject-grid{grid-template-columns:repeat(3,1fr)}.lesson-grid{grid-template-columns:1fr}.tool-grid{grid-template-columns:repeat(2,1fr)}footer{grid-template-columns:1.3fr 1fr 1fr}.footer-links:nth-of-type(2){display:none}.hero-kicker{display:none}}
@media(max-width:820px){.site-header{height:68px;padding:0 18px}.brand{width:190px}.header-cta{display:none}.nav-toggle{display:block}.nav{position:absolute;left:0;right:0;top:68px;background:#fbf7ef;border-bottom:1px solid #eadfc9;display:none;flex-direction:column;align-items:stretch;gap:0;padding:8px 18px 18px}.nav.open{display:flex}.nav a{padding:11px 4px;border-bottom:1px solid #efe3d1}.hero{grid-template-columns:1fr;min-height:auto}.hero-copy{padding:30px 18px 22px}.hero-art{min-height:280px;background-position:center right}.hero-lockup{width:min(520px,95%)}.subject-grid{grid-template-columns:repeat(2,1fr)}.steps{grid-template-columns:1fr}.arrow{transform:rotate(90deg);text-align:center}.step{justify-content:flex-start}.section{padding:28px 18px}.section-heading h2{font-size:20px}.section-heading>a{display:none}.tool-grid{grid-template-columns:1fr}.lesson-card{grid-template-columns:110px 1fr}.lesson-card img{width:110px;height:120px}footer{grid-template-columns:1fr 1fr}.footer-brand,.footer-copy,.copyright{grid-column:1/-1}.footer-brand img{width:250px}.pali-quote{font-size:17px}}
@media(max-width:520px){.subject-grid{grid-template-columns:1fr}.hero-actions{flex-direction:column;width:100%}.btn{width:100%}.hero-art{min-height:230px}.lesson-card{grid-template-columns:1fr}.lesson-card img{width:100%;height:180px}.section-heading h2{white-space:normal;font-size:19px}.quote-section blockquote{padding:32px 18px}.quote-mark{left:8%}.quote-mark.end{right:8%}footer{grid-template-columns:1fr}.footer-links{display:none}}
/* Trang tổng (2026-10-20): 5 lĩnh vực, mỗi thẻ dẫn sang một trang học riêng */
.subject-grid{grid-template-columns:repeat(3,1fr)}.subject-card{display:flex;flex-direction:column;align-items:center}.subject-topics{display:block;margin:8px 0 14px;font-size:12px;color:#8b765f}.subject-go{margin-top:auto;font-size:13px;font-weight:700;color:#a46010}.subject-go.soon{padding:3px 10px;border-radius:12px;background:#f6e9d4;color:var(--maroon);font-size:11px;letter-spacing:.08em;text-transform:uppercase}.subject-card.coming{border-style:dashed;border-color:#d9c39b;background:rgba(255,255,255,.3)}.hero-actions .btn{white-space:nowrap}
@media(max-width:1100px){.subject-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:521px) and (max-width:1100px){.footer-links:nth-of-type(2){display:flex}}
@media(max-width:820px){.subject-grid{grid-template-columns:repeat(2,1fr)}.subject-grid>:last-child:nth-child(odd){grid-column:1/-1}}
@media(max-width:520px){.subject-grid{grid-template-columns:1fr}}
/* Font tiêu đề: Noto Serif (đủ dấu tiếng Việt + Pāḷi, giống các trang con). Libre Baskerville không có bộ dấu tiếng Việt nên chữ như "ngữ", "tạng" bị vỡ. */
/* Đầu trang: Đức Phật (cắt từ băng ảnh dùng chung với trang Pāḷi, VDP) bên trái · chữ + logo ở giữa · ảnh tháp Sutta/Vinaya/Abhidhamma bên phải */
.hub-hero{--hh:clamp(340px,28vw,420px);display:grid;grid-template-columns:1fr;min-height:var(--hh);background:var(--paper);overflow:hidden}.hub-hero>*{grid-area:1/1}
.hub-hero .hubBuddha{justify-self:start;align-self:end;height:var(--hh);aspect-ratio:560/438;border:0;border-radius:0;box-shadow:none;background:none;-webkit-mask-image:linear-gradient(90deg,#000 58%,transparent 98%);mask-image:linear-gradient(90deg,#000 58%,transparent 98%)}
.hub-hero .hubBuddha .btPic{height:100%}.hub-hero .hubBuddha .btBg{width:100%;height:100%;aspect-ratio:560/438;object-fit:cover}
.hub-hero .hubBuddha .btGlow{left:43.4%;width:40%}.hub-hero .hubBuddha .btRays{left:43.4%;width:85.7%}.hub-hero .hubBuddha .btSpark.s1{left:41.6%}.hub-hero .hubBuddha .btSpark.s2{left:61.4%}.hub-hero .hubBuddha .btSpark.s3{left:23.4%}.hub-hero .hubBuddha .btSpark.s4{left:67.1%}.hub-hero .hubBuddha .btSpark.s5{left:18.6%}.hub-hero .hubBuddha .btHot{left:17.1%;width:54.3%}
@media(prefers-reduced-motion:no-preference){.hub-hero .hubBuddha .btPic::after{animation-name:hubSweep}}@keyframes hubSweep{0%,60%{left:-20%}100%{left:110%}}
.hub-hero .hero-art{justify-self:end;align-self:end;height:var(--hh);width:auto;min-height:0;aspect-ratio:544/365;background-size:cover;background-position:right bottom}
.hub-center{justify-self:center;align-self:center;z-index:1;width:min(520px,44vw);padding:20px 0 22px;display:flex;flex-direction:column;align-items:center;text-align:center}
.hub-hom{font-family:"Noto Serif",Georgia,serif;font-weight:700;font-size:11.5px;letter-spacing:.12em;color:#a8792c}.hub-homT{margin-top:2px;font-family:"Noto Serif",Georgia,serif;font-style:italic;font-size:12.5px;color:#8a6a35}
.hub-logo{display:block;width:auto;height:clamp(60px,5.6vw,88px);margin:12px 0 6px;filter:url(#logo-paper) drop-shadow(0 2px 4px rgba(120,80,20,.22))}
.hub-title{margin:0;font-family:"DejaVu Serif Brand","Noto Serif",Georgia,serif;font-weight:700;font-size:clamp(28px,2.8vw,40px);line-height:1.15;letter-spacing:.03em;color:var(--maroon);white-space:nowrap}
.hub-pali{margin:8px 0 0;padding-top:8px;font-family:"Noto Serif",Georgia,serif;font-style:italic;font-size:clamp(14px,1.2vw,17px);color:#7a2e1f;background:linear-gradient(90deg,transparent,#d4a017,transparent) top center/80% 2px no-repeat}
.hub-vi{margin:8px 0 0}.hub-vi p{margin:0;font-size:15px;color:#4a3426}.hub-vi cite{display:block;margin-top:4px;font-style:normal;font-size:12px;color:#8b765f}.hq-sub{margin:10px 0 0;font-size:13.5px;color:#6f5c4a}.hq-sub .pali-quote{font-size:14.5px}
@media(max-width:1000px){.hub-hero{grid-template-columns:minmax(0,38%) 1fr;min-height:0}.hub-hero>*{grid-area:auto}.hub-hero .hubBuddha{grid-column:1;grid-row:1;height:auto;width:100%;align-self:center}.hub-center{grid-column:2;grid-row:1;width:auto;padding:18px 16px 20px 0}.hub-hero .hero-art{grid-column:1/-1;grid-row:2;justify-self:stretch;height:auto;aspect-ratio:auto;min-height:280px}}
@media(max-width:600px){.hub-hero{grid-template-columns:1fr}.hub-hero .hubBuddha{grid-column:1;grid-row:1;width:62%;justify-self:center;-webkit-mask-image:linear-gradient(90deg,transparent,#000 15%,#000 80%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 80%,transparent)}.hub-center{grid-column:1;grid-row:2;padding:6px 12px 16px}.hub-hero .hero-art{grid-row:3;min-height:180px}.hub-hom{font-size:10px;letter-spacing:.06em}.hub-logo{height:52px;margin:8px 0 4px}.hub-title{font-size:26px}}
#subjects{max-width:1180px;margin:0 auto;padding-left:20px;padding-right:20px}
@media(max-width:600px){#subjects{padding-left:12px;padding-right:12px}}
@media(min-width:821px){.subject-grid>.subject-card:nth-child(7):last-child{grid-column:2}}
/* 8 lĩnh vực: lưới 6 cột, mỗi thẻ chiếm 2 cột → hai thẻ ở hàng cuối nằm giữa */
@media(min-width:821px){.subject-grid:has(>.subject-card:nth-child(8):last-child){grid-template-columns:repeat(6,1fr)}.subject-grid:has(>.subject-card:nth-child(8):last-child)>.subject-card{grid-column:span 2}.subject-grid:has(>.subject-card:nth-child(8):last-child)>.subject-card:nth-child(7){grid-column:2/span 2}}
/* Hộp "Giới thiệu" (giống các trang Pāḷi, Anh văn, VDP, Hán văn): mở từ menu và chân trang */
.copyright small{font-size:12.5px}.copyright small b{color:#f2dfc1}.aboutLink{margin-top:4px;background:none;border:0;padding:0;color:#f0c46a;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
.aboutDlg{border:1px solid var(--line);border-radius:18px;padding:0;max-width:440px;width:calc(100% - 32px);background:#fffaf1;color:var(--ink);box-shadow:0 20px 60px rgba(40,28,20,.25)}.aboutDlg::backdrop{background:rgba(40,28,20,.5)}
.aboutIn{position:relative;padding:24px 22px 20px;text-align:left}.aboutX{position:absolute;top:12px;right:12px;background:none;border:1px solid var(--line);border-radius:10px;width:32px;height:32px;cursor:pointer;color:var(--muted);font-size:14px}
.aboutEyebrow{color:var(--gold);font-size:11px;font-weight:800;letter-spacing:.18em}.aboutName{margin:6px 40px 2px 0;font-size:20px;line-height:1.3;font-family:"Noto Serif",Georgia,serif;color:var(--maroon)}.aboutRole{color:var(--muted);font-size:14px}
.aboutDlg p.aboutTxt{margin:12px 0;line-height:1.55}.aboutRow{font-size:14px;color:var(--muted);margin:6px 0;overflow-wrap:anywhere}.aboutRow a{color:var(--maroon);font-weight:700}
.aboutVerse{margin-top:14px;background:#f6ecd9;border-radius:14px;padding:14px 12px;text-align:center;line-height:1.5;font-size:14.5px}.aboutVerse p{margin:0 0 10px}.aboutVerse p:last-child{margin:0}.aboutVerse .pali{display:block;font-family:"Noto Serif",Georgia,serif;color:var(--maroon);font-weight:800;letter-spacing:.03em}
/* thẻ thứ 10 đứng một mình ở hàng cuối: đặt vào giữa */
@media(min-width:821px){.subject-grid>.subject-card:nth-child(10):last-child{grid-column:2}}
/* màn hình laptop 1351–1520px: thu khoảng cách menu cho vừa một hàng */
@media(min-width:1351px) and (max-width:1520px){.site-header .nav{gap:14px}}
