/* Tìm hiểu nghi lễ Phật giáo — stylesheet cho các trang con (van-khan, xin-xam, gioi-thieu).
   Nạp SAU /style.css, dùng chung biến màu của trang chính. */

/* ---- thanh điều hướng ---- */
.sub-nav { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:8px 16px; padding:12px 18px; background:rgba(0,0,0,.35);
  border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20;
  backdrop-filter:blur(6px); }
.sub-brand { color:var(--gold); font-size:19px; font-weight:800; text-decoration:none;
  text-shadow:0 2px 10px rgba(255,180,0,.3); }
.sub-links { display:flex; flex-wrap:wrap; gap:4px 16px; }
.sub-links a { color:var(--ink); text-decoration:none; font-size:14.5px; font-weight:600; }
.sub-links a:hover { color:var(--gold); }

/* ---- cột nội dung ---- */
.sub-main { max-width:760px; margin:0 auto; padding:18px 14px 8px;
  display:flex; flex-direction:column; gap:16px; }
.sub-main h1 { font-size:clamp(22px,4.5vw,30px); color:var(--gold); line-height:1.3; margin-bottom:12px; }
.sub-foot { max-width:760px; margin:10px auto 30px; padding:0 14px; text-align:center; }
.disclaimer { color:var(--dim); font-size:13.5px; line-height:1.6;
  border-top:1px dashed var(--line); padding-top:12px; margin-top:16px; }
.disclaimer-red { color:#ff7b7b; font-weight:600; font-size:15px; line-height:1.6;
  background:rgba(160,20,20,.18); border:1px solid rgba(255,110,110,.55);
  border-radius:12px; padding:12px 14px; }

/* ---- danh sách văn khấn ---- */
.vk-group { margin-bottom:6px; }
.vk-group h2 { font-size:18px; color:var(--gold); margin-bottom:10px; }
.vk-items { display:flex; flex-direction:column; gap:8px; }
.vk-item { display:block; background:var(--panel2); border:1px solid var(--line);
  border-radius:12px; padding:12px 14px; color:var(--ink); text-decoration:none;
  font-size:16px; font-weight:600; }
.vk-item:hover { border-color:var(--gold); background:#3a2566; }
.vk-item small { display:block; color:var(--dim); font-weight:400; font-size:13px; margin-top:3px; }

/* ---- trang chi tiết văn khấn ---- */
.vk-samle { background:rgba(0,0,0,.25); border:1px solid var(--line);
  border-radius:12px; padding:12px 14px; margin-bottom:16px; }
.vk-samle h2 { font-size:16px; color:var(--gold2); margin-bottom:6px; }
.vk-samle p { margin:0; font-size:15px; line-height:1.6; }
.vk-text p { font-size:19px; line-height:1.9; margin-bottom:12px; }
.vk-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:18px; }
.le-next { color:#5d4305; background:#fff8ea; border:1px solid #e8d9ae; border-radius:12px; padding:10px 12px; }
.le-meta { color:#8a6d3b; }
.le-solar { font-weight:600; color:#7a4a08; }
.le-badge { background:#e9b949; color:#3a2403; border-radius:999px; padding:1px 9px; font-size:12.5px; font-weight:700; white-space:nowrap; }
.le-item h2 { margin-bottom:6px; }
.copy-msg { color:var(--gold2); font-weight:600; font-size:14px; }
.vk-nav { display:flex; justify-content:space-between; gap:10px; margin-top:20px; }
.vk-nav-link { color:var(--gold2); font-weight:700; text-decoration:none; font-size:15px; }
.vk-nav-link:hover { color:var(--gold); }

/* ---- trang giới thiệu ---- */
.gt-sec h2 { font-size:18px; color:var(--gold); margin-bottom:10px; }
.gt-sec p { line-height:1.65; font-size:15px; margin-bottom:8px; }
.gt-sec ul { margin:0 0 8px 20px; }
.gt-sec li { line-height:1.65; font-size:15px; margin-bottom:5px; }

/* ---- xin xăm ---- */
.xam-stage { text-align:center; }
.tube-wrap { display:flex; justify-content:center; padding:70px 0 6px; }
.tube { position:relative; width:90px; height:128px;
  background:linear-gradient(90deg,#5d3a12,#a4711f 30%,#caa040 50%,#a4711f 70%,#5d3a12);
  border-radius:11px 11px 17px 17px; border:2px solid #3a2403;
  box-shadow:0 14px 30px rgba(0,0,0,.55), inset 0 -18px 24px rgba(0,0,0,.35); }
.tube::before { content:""; position:absolute; left:5px; right:5px; top:-6px; height:14px;
  background:radial-gradient(ellipse at center,#2a1a05 55%,#6b4a15 100%);
  border-radius:50%; border:2px solid #3a2403; }
.tube::after { content:"XĂM"; position:absolute; left:0; right:0; top:44px;
  color:#ffe9a8; font-weight:900; font-size:16px; letter-spacing:5px;
  text-shadow:0 2px 6px rgba(0,0,0,.6); }
.stick { position:absolute; bottom:119px; width:5px; height:65px; border-radius:3px;
  background:linear-gradient(180deg,#e8c97a,#c49a45); border:1px solid #8a6a25;
  transform-origin:bottom center; }
.stick.s1 { left:20px; transform:rotate(-13deg); }
.stick.s2 { left:32px; transform:rotate(-5deg); height:72px; }
.stick.s3 { left:43px; transform:rotate(2deg); height:68px; }
.stick.s4 { left:53px; transform:rotate(9deg); height:74px; }
.stick.s5 { left:64px; transform:rotate(16deg); height:63px; }
.tube.shaking { animation:shakeXam .16s linear infinite; }
@keyframes shakeXam {
  0% { transform:translate(0,0) rotate(0deg); }
  25% { transform:translate(-7px,-4px) rotate(-4deg); }
  50% { transform:translate(6px,2px) rotate(3deg); }
  75% { transform:translate(-5px,3px) rotate(-2deg); }
  100% { transform:translate(0,0) rotate(0deg); }
}
.xam-btn { font-size:19px; padding:14px 30px; border-radius:14px; margin-top:10px; }
.xam-hint { color:var(--dim); font-size:13.5px; margin-top:10px; }
.que-card { border:1px solid var(--gold); background:rgba(184,134,11,.12); }
.que-head { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:12px; }
.que-title { font-size:21px; font-weight:800; color:var(--gold2); }
.que-badge { background:var(--accent); color:#fff; border:1px solid var(--gold);
  border-radius:999px; padding:4px 12px; font-size:13.5px; font-weight:700; }
.que-card h3 { color:var(--gold); font-size:15px; margin:12px 0 4px; }
.que-card p { font-size:16.5px; line-height:1.7; margin:0; }
.que-loi { font-style:italic; }
.que-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:16px; }

/* ---- in ấn: chỉ in phần văn khấn cho sạch ---- */
@media print {
  body { background:#fff !important; color:#000 !important; }
  .sub-nav, .sub-foot, .vk-actions, .vk-nav, .que-actions, .xam-btn { display:none !important; }
  .card, .vk-samle, .que-card { background:#fff !important; border:none !important; box-shadow:none !important; }
  .sub-main { max-width:none; padding:0; }
  .sub-main h1, .card h2, .vk-samle h2, .que-card h3, .que-title { color:#000 !important; text-shadow:none !important; }
  .vk-text p, .vk-samle p, .que-card p { color:#000 !important; }
  .disclaimer { color:#333 !important; border-top:1px solid #999; }
  .disclaimer-red { color:#b00000 !important; background:#fff !important; border:1px solid #b00000; }
  a { color:#000 !important; text-decoration:none; }
}

/* Trang đang mở trong menu: đổi màu vàng */
.sub-links a.on { color:var(--gold2); font-weight:800; }
