/* Trang chủ dùng chung cấu trúc co giãn với các trang con. Ảnh chỉ là nền, chữ và nút là HTML. */
.trang-chu main{overflow-x:clip}
.trang-chu .cong__anh{background-image:url(../img/mk/trang-chu-1.webp?v=1511b);background-position:center top;background-size:cover}
.trang-chu .cong__anh::after{background:linear-gradient(180deg,rgba(13,8,4,.42) 0,rgba(13,8,4,0) 27%,rgba(20,11,5,.12) 48%,rgba(20,11,5,.7) 77%,var(--nen) 100%)}
.trang-chu .cong__chu{position:relative;z-index:1}
.trang-chu .cong h1{max-width:18ch;margin-inline:auto;text-wrap:balance}
.trang-chu .bon-y{position:relative;z-index:1;background:linear-gradient(180deg,rgba(22,13,7,.1),rgba(22,13,7,.82))}
.trang-chu .tieu-de span{min-width:0}
.trang-chu .tu-tap__tuong{display:none}
/* 15/11 Claude: tượng Phật ngồi bên trái khu "Không gian tu tập" như mockup (Codex đặt ở #hanh-trinh làm đè thẻ Cổng Tam Quan) */
.trang-chu #tu-tap{isolation:isolate}
.trang-chu #tu-tap::before{content:"";position:absolute;left:min(0px,calc(50% - 624px));top:18px;width:260px;height:390px;z-index:0;pointer-events:none;background:url(../img/trang-tri-phat-trai.webp?v=1511c) left top/contain no-repeat;opacity:.95}
.trang-chu #tu-tap>*{position:relative;z-index:1}
.trang-chu .hai-cot{isolation:isolate}
.trang-chu .hai-cot::after{content:"";position:absolute;right:-70px;top:auto;bottom:-40px;width:300px;height:220px;z-index:2;pointer-events:none;background:url(../img/trang-tri-sen-phai.webp?v=1511c) center/contain no-repeat;filter:drop-shadow(0 0 22px rgba(245,171,63,.4));opacity:.96}
.trang-chu .chan{margin-top:0;padding-top:165px}
.trang-chu .chan__anh{background-image:url(../img/chan-trang-con-hoang-hon.webp);background-position:center top;background-size:cover;opacity:1}
.trang-chu .chan__anh::after{background:linear-gradient(180deg,var(--nen) 0,rgba(20,11,5,.88) 34px,rgba(20,11,5,.65) 100px,rgba(20,11,5,.28) 185px,rgba(20,11,5,.12) 260px,rgba(20,11,5,.25) 68%,#100803 100%)}
@media(max-width:980px){
  .trang-chu .hanh-trinh{gap:12px}
  .trang-chu .bon-y{max-width:100%}
  .trang-chu #tu-tap::before,.trang-chu .hai-cot::after{display:none}
}
@media(max-width:720px){
  .trang-chu .cong{min-height:0}
  .trang-chu .cong__anh{background-image:url(../img/cong-trang-chu-mobile.webp?v=1511b);background-size:100% auto;background-position:center top;background-color:var(--nen)}
  .trang-chu .cong__anh::after{background:linear-gradient(180deg,rgba(12,8,4,.22) 0,rgba(12,8,4,0) 23%,rgba(20,11,5,.06) 35%,rgba(20,11,5,.84) 60%,var(--nen) 75%)}
  .trang-chu .cong__chu{padding:clamp(290px,65vw,460px) 0 30px}
  .trang-chu .cong h1{font-size:clamp(31px,8vw,48px);line-height:1.18;max-width:15ch}
  .trang-chu .cong__chu p{max-width:36ch;font-size:15px;line-height:1.6}
  .trang-chu .nut-lon{margin-top:22px}
  .trang-chu .bon-y{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:16px 8px 20px}
  .trang-chu .bon-y li{min-width:0;justify-content:flex-start;padding:10px 7px;gap:9px}
  .trang-chu .bon-y li:nth-child(3){border-left:0}
  .trang-chu .bon-y .ic{width:34px;height:30px;flex:none}
  .trang-chu .bon-y b{font-size:15px}
  .trang-chu .bon-y span{font-size:11.5px;line-height:1.3}
  .trang-chu .tieu-de{gap:8px;font-size:clamp(21px,5.5vw,27px);line-height:1.28}
  .trang-chu .tieu-de::before,.trang-chu .tieu-de::after{flex:0 1 18px;min-width:12px}
  .trang-chu .dan{max-width:48ch;margin:10px auto 0;line-height:1.5}
  .trang-chu .chan__anh{background-image:url(../img/chan-trang-con-mobile.webp);background-position:60% top}
}
@media(max-width:420px){
  .trang-chu .bon-y{grid-template-columns:1fr;padding:14px 22px 20px;gap:2px}
  .trang-chu .bon-y li+li{border-left:0}
  .trang-chu .bon-y li{padding:8px 12px;gap:14px}
  .trang-chu .bon-y .ic{width:38px;height:34px}
  .trang-chu .bon-y b{font-size:16px}
  .trang-chu .bon-y span{display:block}
  .trang-chu .cong__chu{padding-top:clamp(270px,76vw,320px)}
  .trang-chu .cong h1{max-width:12ch}
}
@media(max-width:340px){
  .trang-chu .bon-y{grid-template-columns:1fr}
  .trang-chu .cong h1{font-size:30px}
}

/* ===== 15/11 tối, Claude: máy tính bám mockup "Chốn Bình An" (tỉ lệ đo trên bản 1024 × 1536) ===== */
.trang-chu .bai-phap__anh .phat{transition:transform .25s,background .25s}
.trang-chu .bai-phap__anh .phat::after{left:17px;top:13px}
.trang-chu .bai-phap__anh:hover .phat{transform:scale(1.08);background:rgba(20,11,5,.8)}
.trang-chu .the-canh{border-color:#d9a856;box-shadow:0 0 0 3px #1c1109,0 0 0 4px rgba(236,194,116,.8),0 0 20px rgba(240,180,80,.3),0 16px 34px rgba(0,0,0,.45)}
.trang-chu .the-canh:hover{box-shadow:0 0 0 3px #1c1109,0 0 0 4px #f6d98f,0 0 34px rgba(240,180,80,.45),0 22px 40px rgba(0,0,0,.55)}
.trang-chu .mui-ten{background:linear-gradient(180deg,#c9983f,#8a5a1a);border-color:#f0c877;color:#fff3d2;box-shadow:0 0 14px rgba(240,180,80,.35)}
/* Bìa sách: khung chỉ vàng và hoa sen màu như mockup */
.trang-chu .sach{position:relative;outline:1px solid rgba(240,200,119,.4);outline-offset:-6px}
.trang-chu .sach .ic{display:none}
.trang-chu .sach::after{content:"";width:70%;aspect-ratio:320/232;background:url(../img/sen-sach.webp?v=1511a) center/contain no-repeat;filter:drop-shadow(0 0 10px rgba(255,190,90,.55))}
.trang-chu .sach--1::after{filter:hue-rotate(-24deg) saturate(1.15) drop-shadow(0 0 10px rgba(255,150,90,.55))}
.trang-chu .sach--3::after{filter:hue-rotate(-48deg) saturate(1.1) drop-shadow(0 0 10px rgba(255,130,150,.5))}
.trang-chu .sach--1{background:linear-gradient(160deg,#7a2a1c,#4c150d)}
.trang-chu .sach--2{background:linear-gradient(160deg,#7a3c14,#451d08)}
.trang-chu .sach--3{background:linear-gradient(160deg,#6a2136,#3b0f1c)}
/* Khu "Hoạt động của chùa" (không có trong mockup): tiêu đề giữa, cùng hoa văn với các khu khác */
.trang-chu .hoat-dong-home{padding-top:44px}
.trang-chu .hoat-dong-home__dau{flex-direction:column;align-items:center;text-align:center;gap:10px;margin-bottom:22px}
.trang-chu .hoat-dong-home h2{display:flex;align-items:center;justify-content:center;gap:18px;margin:6px 0 8px;font:500 clamp(22px,2.6vw,29px)/1.25 var(--font-serif)}
.trang-chu .hoat-dong-home h2::before,.trang-chu .hoat-dong-home h2::after{content:"";flex:1 1 0;max-width:110px;min-width:12px;height:9px;background:radial-gradient(circle at center,var(--vang) 0 3px,transparent 3.5px) right center/9px 9px no-repeat,linear-gradient(90deg,transparent,var(--vang-dam)) left center/calc(100% - 14px) 1px no-repeat}
.trang-chu .hoat-dong-home h2::after{transform:scaleX(-1)}
.trang-chu .hoat-dong-home__dau p{margin-inline:auto;font-size:15.5px}
@media(min-width:981px){
  /* Tông nền ấm, sáng dần sau cổng như mockup */
  body.trang-chu{--cong-cao:min(57vw,calc(950px * var(--s)));background-image:radial-gradient(720px 440px at 100% calc(var(--cong-cao) + 430px),rgba(196,180,150,.12),transparent 70%),radial-gradient(640px 400px at 0 calc(var(--cong-cao) + 140px),rgba(170,160,128,.10),transparent 70%),linear-gradient(180deg,#140b05 0,#140b05 calc(var(--cong-cao) - 60px),#33281b calc(var(--cong-cao) + 220px),#35291b calc(var(--cong-cao) + 900px),#261a0f 100%)}
  .trang-chu .chan__anh::after{background:linear-gradient(180deg,#261a0f 0,rgba(38,26,15,.86) 34px,rgba(20,11,5,.62) 100px,rgba(20,11,5,.28) 185px,rgba(20,11,5,.12) 260px,rgba(20,11,5,.25) 68%,#100803 100%)}
  /* Cổng: chữ nhỏ hơn, nằm ngay bậc thềm */
  .trang-chu .cong{min-height:0}
  .trang-chu .cong__chu{padding:clamp(280px,min(calc(35.5 * var(--v)),calc(62 * var(--h))),600px) 0 30px}
  .trang-chu .cong h1{font-size:clamp(40px,calc(4 * var(--v)),68px);font-weight:400;max-width:none}
  .trang-chu .cong__chu p{font-size:clamp(14.5px,calc(1.2 * var(--v)),18px);max-width:44em;margin-top:10px}
  .trang-chu .nut-lon{margin-top:20px;height:54px;border-radius:999px}
  .trang-chu .bon-y{padding:18px 0 22px}
  /* Bề ngang từng khu theo mockup: hành trình 76%, lưới tu tập 66%, các ô nội dung rộng bằng đầu trang */
  .trang-chu #hanh-trinh{width:min(1100px,calc(76.2 * var(--v)))}
  .trang-chu .hai-cot,.trang-chu .ba-cot,.trang-chu .hoat-dong-home{width:min(1320px,calc(100% - 80px))}
  .trang-chu .phan{padding-top:30px}
  .trang-chu .hanh-trinh{margin-top:18px;gap:16px}
  .trang-chu .o-luoi{max-width:min(950px,calc(66 * var(--v)));gap:16px 24px;margin-top:20px}
  .trang-chu .o-luoi a{padding:12px 8px;gap:0}
  .trang-chu .o-luoi .ic{width:34px;height:34px;margin-bottom:3px}
  /* Tượng Phật: đầu ngang thẻ hành trình, chân chạm hàng Pháp thoại */
  .trang-chu #tu-tap{--phat-cao:clamp(390px,calc(32.2 * var(--v)),476px)}
  .trang-chu #tu-tap::before{left:0;top:calc(var(--phat-cao) * -.31);width:calc(var(--phat-cao) * .6667);height:var(--phat-cao);opacity:1}
  /* Pháp thoại + Lời Phật dạy */
  .trang-chu .hai-cot{padding-top:24px;gap:18px}
  .trang-chu .ba-cot{padding-top:10px;gap:18px;grid-template-columns:1fr 1.03fr .95fr}
  .trang-chu .o{padding:14px 24px 18px}
  .trang-chu .o__dau{margin-bottom:10px}
  .trang-chu .bai-phap{grid-template-columns:minmax(0,43%) 1fr;gap:20px;padding-left:14px}
  .trang-chu .bai-phap__anh img{aspect-ratio:16/7.4;object-position:center 22%}
  .trang-chu .loi{padding:8px 150px 8px 44px}
  .trang-chu .loi__sen{display:none}
  .trang-chu .hai-cot::after{right:-16px;bottom:-6px;width:230px;height:115px;background-position:right bottom;filter:drop-shadow(0 0 26px rgba(255,190,90,.6));opacity:1}
  .trang-chu .o--loi{background:radial-gradient(300px 200px at 94% 92%,rgba(255,190,90,.34),transparent 70%),linear-gradient(180deg,rgba(78,48,23,.60),rgba(34,20,10,.80))}
  /* Kệ sách: ba cuốn đứng giữa ô */
  .trang-chu .ke-sach{grid-template-columns:repeat(3,minmax(0,124px));justify-content:center;gap:18px}
  .trang-chu .sach{font-size:17px;padding:20px 6px 12px;aspect-ratio:3/3.85}
  .trang-chu .o--nhat-ky{padding-bottom:0}
  .trang-chu .nhat-ky{margin:0 -24px}
}
@media(min-width:981px) and (max-width:1240px){
  .trang-chu .o{padding:13px 16px 16px}
  .trang-chu .o__dau h2{font-size:18px;gap:8px}
  .trang-chu .o__dau h2 .ic{width:23px;height:23px}
  .trang-chu .xem-them{font-size:12.5px}
  .trang-chu .lich{padding:11px 12px}
  .trang-chu .lich li{font-size:14px;gap:10px}
  .trang-chu .lich__ngay b{font-size:15px}.trang-chu .lich__ngay span{font-size:12.5px}
  .trang-chu .bai-phap{padding-left:0;gap:14px}
  .trang-chu .bai-phap h3{font-size:16px}.trang-chu .bai-phap p{font-size:13.5px}
  .trang-chu .loi{padding-right:110px;padding-left:36px}
  .trang-chu .hai-cot::after{width:180px;height:90px;right:-10px}
  .trang-chu .nhat-ky{margin:0 -16px}
  .trang-chu .nhat-ky p{font-size:14px}
  .trang-chu .ke-sach{gap:12px}
  .trang-chu .sach{font-size:15px}
  .trang-chu .o-luoi{gap:12px 16px}
  .trang-chu .o-luoi b{font-size:15.5px}.trang-chu .o-luoi span{font-size:12.5px}
  .trang-chu .the-canh__chu{padding:22px 8px 8px}
  .trang-chu .the-canh__chu b{font-size:15.5px}.trang-chu .the-canh__chu span{display:block;font-size:12px;line-height:1.35}
  .trang-chu .hanh-trinh{gap:10px}
  .trang-chu .mui-ten{width:28px;height:28px}
}
/* Màn 981–1179px: chỗ trống bên trái lưới quá hẹp, ẩn tượng để không đè thẻ */
@media(min-width:981px) and (max-width:1179px){.trang-chu #tu-tap::before{display:none}}
/* Cảnh hai bên như mockup: mây và tán lá phía trên tượng (trái); mây, cột gỗ hắt nắng, hoa sen hồng (phải).
   Ảnh cắt từ rìa mockup sạch, mờ dần vào giữa, nằm sau thẻ; chỉ hiện khi lề đủ rộng. */
@media(min-width:1180px){
  .trang-chu #hanh-trinh::before,.trang-chu #hanh-trinh::after{content:"";position:absolute;z-index:-1;pointer-events:none;background-repeat:no-repeat;background-size:100% 100%}
  /* 15/11 khuya: đám mây đầu mỗi ảnh nằm vắt ngang đường chỉ vàng dưới dải bốn ý như mockup.
     Trong ảnh, đường chỉ ở 110px tính từ mép trên (ảnh trái rộng 250, phải rộng 288) nên top = -110/rộng × bề ngang hiển thị. */
  .trang-chu #hanh-trinh::before{--w:clamp(200px,calc(15.5 * var(--v)),270px);left:calc((calc(100 * var(--v)) - 100%) / -2);top:calc(var(--w) * -.44);width:var(--w);height:calc(var(--w) * 1.44);background-image:url(../img/trang-tri-ria-trai.webp?v=1511b)}
  .trang-chu #hanh-trinh::after{--w:clamp(215px,calc(16.5 * var(--v)),270px);right:calc((calc(100 * var(--v)) - 100%) / -2);top:calc(var(--w) * -.382);width:var(--w);height:calc(var(--w) * 3.4375);background-image:url(../img/trang-tri-ria-phai.webp?v=1511b)}
}
/* Cảnh hai bên kéo xuống hết trang (chủ yêu cầu 15/11): các khu dưới thu hẹp chừa lề, dùng lại hai ảnh rìa, lật gương để không lặp y hệt */
@media(min-width:1180px){
  .trang-chu .hai-cot,.trang-chu .ba-cot,.trang-chu .hoat-dong-home{width:min(1320px,calc(100% - 210px))}
  .trang-chu .hoat-dong-home{position:relative}
  .trang-chu .hai-cot::before,.trang-chu .ba-cot::before,.trang-chu .ba-cot::after,.trang-chu .hoat-dong-home::before,.trang-chu .hoat-dong-home::after{content:"";position:absolute;z-index:-1;pointer-events:none;background-repeat:no-repeat;background-size:100% 100%}
  /* trái, cạnh hàng Pháp thoại → Lịch: mây, cột gỗ, sen hồng (ảnh rìa phải lật gương) */
  .trang-chu .hai-cot::before{left:calc((calc(100 * var(--v)) - 100%) / -2);top:-30px;width:204px;height:700px;background-image:url(../img/trang-tri-ria-phai.webp?v=1511b);transform:scaleX(-1)}
  /* phải, cạnh Lời Phật dạy → Nhật ký: tán lá và mây (ảnh rìa trái lật gương) */
  .trang-chu .ba-cot::after{right:calc((calc(100 * var(--v)) - 100%) / -2);top:-150px;width:215px;height:310px;background-image:url(../img/trang-tri-ria-trai.webp?v=1511b);transform:scaleX(-1)}
  .trang-chu .ba-cot::before{right:calc((calc(100 * var(--v)) - 100%) / -2);top:120px;width:150px;height:216px;background-image:url(../img/trang-tri-ria-trai.webp?v=1511b);transform:scale(-1,-1);opacity:.75}
  /* khu Hoạt động: tán lá bên trái, mây cột sen bên phải */
  .trang-chu .hoat-dong-home::before{left:calc((calc(100 * var(--v)) - 100%) / -2);top:150px;width:215px;height:310px;background-image:url(../img/trang-tri-ria-trai.webp?v=1511b)}
  .trang-chu .hoat-dong-home::after{right:calc((calc(100 * var(--v)) - 100%) / -2);top:-20px;width:204px;height:700px;background-image:url(../img/trang-tri-ria-phai.webp?v=1511b)}
}
/* Điện thoại và máy tính bảng (dưới 1180px) không có lề: hình hai bên thu nhỏ, nép vào hai mép ở khoảng trống quanh tiêu đề từng khu, nằm sau chữ và thẻ */
@media(max-width:1179px){
  .trang-chu .hoat-dong-home{position:relative}
  .trang-chu #hanh-trinh::before,.trang-chu #hanh-trinh::after,.trang-chu #tu-tap::after,.trang-chu .hai-cot::before,.trang-chu .ba-cot::after,.trang-chu .hoat-dong-home::before,.trang-chu .hoat-dong-home::after{content:"";position:absolute;z-index:-1;pointer-events:none;--le:calc((100vw - 100%) / -2);--r:100px;background-repeat:no-repeat}
  /* tán lá + mây (ảnh rìa trái 250×360) */
  .trang-chu #hanh-trinh::before,.trang-chu .ba-cot::after,.trang-chu .hoat-dong-home::before{width:calc(var(--r) * 1.18);height:calc(var(--r) * 1.7);background-image:url(../img/trang-tri-ria-trai.webp?v=1511b);background-size:100% 100%}
  /* mây, cột gỗ, sen hồng (ảnh rìa phải 288×990): chỉ lấy phần trên hoặc phần dưới */
  .trang-chu #hanh-trinh::after,.trang-chu #tu-tap::after,.trang-chu .hai-cot::before,.trang-chu .hoat-dong-home::after{width:var(--r);background-image:url(../img/trang-tri-ria-phai.webp?v=1511b);background-size:var(--r) calc(var(--r) * 3.44)}
  .trang-chu #hanh-trinh::before{left:var(--le);top:calc(var(--r) * -.72)}
  .trang-chu #hanh-trinh::after{right:var(--le);top:calc(var(--r) * -.78);height:calc(var(--r) * 1.9);background-position:0 0}
  /* #tu-tap và .hai-cot có lớp xếp riêng (isolation): không cho mảnh hình thò lên khu phía trên kẻo đè thẻ */
  .trang-chu #tu-tap::after{right:0;top:0;height:calc(var(--r) * 1.15);background-position:0 100%}
  .trang-chu .hai-cot::before{left:var(--le);top:0;height:calc(var(--r) * 1.5);background-position:0 0;transform:scaleX(-1)}
  /* mảnh cắt nửa ảnh: mờ dần ở mép cắt để không lộ cạnh vuông */
  .trang-chu #hanh-trinh::after,.trang-chu .hai-cot::before{-webkit-mask-image:linear-gradient(#000 50%,transparent);mask-image:linear-gradient(#000 50%,transparent)}
  .trang-chu #tu-tap::after,.trang-chu .hoat-dong-home::after{-webkit-mask-image:linear-gradient(transparent,#000 45%);mask-image:linear-gradient(transparent,#000 45%)}
  .trang-chu .ba-cot::after{right:var(--le);top:calc(var(--r) * -.86);transform:scaleX(-1)}
  .trang-chu .hoat-dong-home::before{left:var(--le);top:calc(var(--r) * -.6)}
  .trang-chu .hoat-dong-home::after{right:var(--le);top:calc(var(--r) * -.3);height:calc(var(--r) * 1.3);background-position:0 100%}
}
@media(min-width:600px) and (max-width:1179px){
  .trang-chu #hanh-trinh::before,.trang-chu #hanh-trinh::after,.trang-chu #tu-tap::after,.trang-chu .hai-cot::before,.trang-chu .ba-cot::after,.trang-chu .hoat-dong-home::before,.trang-chu .hoat-dong-home::after{--r:140px}
}
@media(max-width:420px){
  .trang-chu .tieu-de,.trang-chu .hoat-dong-home h2{font-size:20px;gap:6px}
  .trang-chu .tieu-de::before,.trang-chu .tieu-de::after{min-width:8px}
}
/* Điện thoại: hoa sen thật ở góc ô Lời Phật dạy thay biểu tượng nét */
@media(max-width:980px){
  .trang-chu .hai-cot::after{display:block;right:-8px;bottom:2px;top:auto;width:170px;height:85px;background-position:right bottom;filter:drop-shadow(0 0 18px rgba(255,190,90,.55))}
  .trang-chu .loi__sen{display:none}
  .trang-chu .loi{padding-bottom:70px}
}
/* Ánh vàng trong ô như mockup: quầng sáng giữa ô, viền vàng rõ hơn */
.trang-chu .o-luoi a{border-color:rgba(236,194,116,.5);background:radial-gradient(90% 55% at 50% 34%,rgba(255,196,104,.2),transparent 70%),linear-gradient(180deg,rgba(74,46,22,.62),rgba(36,21,10,.78))}
.trang-chu .o-luoi a:hover{border-color:var(--vang);background:radial-gradient(90% 60% at 50% 34%,rgba(255,196,104,.34),transparent 72%),linear-gradient(180deg,rgba(104,64,28,.75),rgba(48,28,13,.85))}
.trang-chu .o-luoi .ic{filter:drop-shadow(0 0 7px rgba(255,196,104,.5))}
.trang-chu .o{border-color:rgba(236,194,116,.46)}
.trang-chu .lich{border-color:rgba(236,194,116,.42);background:radial-gradient(70% 90% at 82% 30%,rgba(255,190,90,.14),transparent 70%),rgba(24,13,6,.4)}
/* Máy tính bảng: ba thẻ hành trình đứng một hàng, thu nhãn để không che ảnh */
@media(min-width:721px) and (max-width:980px){
  .trang-chu .the-canh__chu{padding:20px 6px 7px}
  .trang-chu .the-canh__chu b{font-size:15px}
  .trang-chu .the-canh__chu span{display:block;font-size:11.5px;line-height:1.35}
  .trang-chu .mui-ten{width:28px;height:28px}
}

/* Hai dải trang trí liền mạch: mỗi bên dùng một ảnh duy nhất trên toàn bộ thân trang. */
.trang-chu .trang-chu__than{position:relative;isolation:isolate}
.trang-chu .trang-chu__than::before,.trang-chu .trang-chu__than::after{content:"";position:absolute;top:0;bottom:0;width:clamp(105px,16vw,245px);z-index:-1;pointer-events:none;background-repeat:no-repeat;background-size:100% 100%;opacity:.85}
.trang-chu .trang-chu__than::before{left:0;background-image:url(../img/nen-ria-trai-sach.png)}
.trang-chu .trang-chu__than::after{right:0;background-image:url(../img/nen-ria-phai-sach.png)}
/* Bỏ các mảnh ảnh cũ từng được lặp ở đầu mỗi khu (chỉ còn áp dụng dưới 1180px, xem ghi chú cuối tệp). */
@media(max-width:1179px){
  .trang-chu #hanh-trinh::before,.trang-chu #hanh-trinh::after,.trang-chu #tu-tap::after,.trang-chu .hai-cot::before,.trang-chu .ba-cot::before,.trang-chu .ba-cot::after,.trang-chu .hoat-dong-home::before,.trang-chu .hoat-dong-home::after{content:none!important}
}
@media(max-width:1179px){
  .trang-chu .trang-chu__than::before,.trang-chu .trang-chu__than::after{width:clamp(55px,11vw,120px);opacity:.56}
}
/* 15/11 chủ yêu cầu: điện thoại cũng có hình hai bên (trước đây Codex ẩn dưới 600px).
   Trang điện thoại rất dài nên không kéo giãn ảnh theo cả trang: giữ đúng tỉ lệ, lặp dọc (ảnh mờ dần ở đầu và cuối nên không lộ mối nối), chỉ lộ phần mép ngoài. */
@media(max-width:600px){
  .trang-chu .trang-chu__than::before,.trang-chu .trang-chu__than::after{width:66px;opacity:.58;background-size:234px 702px;background-repeat:repeat-y}
  .trang-chu .trang-chu__than::before{background-position:left 40px}
  .trang-chu .trang-chu__than::after{background-position:right 390px}
}

/* 15/11 23:00 chủ báo hai dải dọc trên máy tính "lỗi nặng" (như hai tấm dán, mép cứng, không khớp mockup) và yêu cầu hình hai bên khớp đúng mockup, có mây mềm ở chỗ nối dải bốn ý với khu Hành trình.
   Từ 1180px: tắt hai dải dọc, dùng lại các mảnh cắt từ chính mockup (mây, tán lá, tượng Phật, cột gỗ, sen hồng) đặt đúng vị trí. Dưới 1180px vẫn dùng hai dải dọc. */
@media(min-width:1180px){
  .trang-chu .trang-chu__than::before,.trang-chu .trang-chu__than::after{content:none}
}

/* Mép trong hòa vào nền trang, không tạo đường dọc khi đổi kích thước. */
.trang-chu .trang-chu__than::before{-webkit-mask-image:linear-gradient(90deg,#000 48%,transparent 100%);mask-image:linear-gradient(90deg,#000 48%,transparent 100%)}
.trang-chu .trang-chu__than::after{-webkit-mask-image:linear-gradient(270deg,#000 48%,transparent 100%);mask-image:linear-gradient(270deg,#000 48%,transparent 100%)}

/* 15/11 khuya: bốn ý dưới cổng bấm được (trước chỉ là chữ). Thẻ a giữ nguyên bố cục của li. */
.trang-chu .bon-y li>a{display:flex;align-items:center;gap:inherit;min-width:0;border-radius:10px;transition:transform .25s}
.trang-chu .bon-y li>a .ic{transition:transform .25s,filter .25s}
.trang-chu .bon-y li>a b{transition:color .25s}
.trang-chu .bon-y li>a:hover{transform:translateY(-2px)}
.trang-chu .bon-y li>a:hover b{color:var(--vang-sang)}
.trang-chu .bon-y li>a:hover .ic{transform:scale(1.08);filter:drop-shadow(0 0 8px rgba(255,196,104,.6))}


/* ===== 15/11 khuya: màn lớn (27 inch trở lên) =====
   Trước đây bố cục khoá ở cỡ 1440px (Hành trình tối đa 1100px, tượng Phật tối đa 476px) nên trên màn rộng tượng, mây, sen dạt ra mép, cách xa thẻ, lệch tỉ lệ mockup.
   Từ 1560px, cả phần thân (main) phóng theo bề ngang màn hình bằng zoom: mọi thứ giữ đúng tỉ lệ của bản 1440px.
   --s là hệ số phóng; --v là "1vw sau khi chia hệ số" — các khối máy tính phía trên dùng var(--v) thay cho vw để không bị nhân đôi.
   Đầu trang và chân trang của trang chủ phóng cùng hệ số cho cân với phần thân (trang con không đổi). */
body.trang-chu{--s:1;--v:calc(1vw / var(--s));--h:calc(1vh / var(--s))}
@media(min-width:1560px) and (min-height:702px){body.trang-chu{--s:1.08}}
@media(min-width:1680px) and (min-height:756px){body.trang-chu{--s:1.16}}
@media(min-width:1800px) and (min-height:810px){body.trang-chu{--s:1.25}}
@media(min-width:1920px) and (min-height:864px){body.trang-chu{--s:1.33}}
@media(min-width:2100px) and (min-height:945px){body.trang-chu{--s:1.45}}
@media(min-width:2300px) and (min-height:1035px){body.trang-chu{--s:1.6}}
@media(min-width:2500px) and (min-height:1125px){body.trang-chu{--s:1.75}}
@media(min-width:2900px) and (min-height:1305px){body.trang-chu{--s:2}}
@media(min-width:3400px) and (min-height:1530px){body.trang-chu{--s:2.35}}
@media(min-width:1560px){.trang-chu main,.trang-chu .dau-trang,.trang-chu .chan{zoom:var(--s)}}
