/*
Theme Name: Cửu Long Bia Blog
Description: Theme nhẹ cho /blog, cùng nhận diện với trang chủ cuulongbia.vn (nền xi măng be, vảy rồng, Be Vietnam Pro).
Version: 1.0.4
Text Domain: cuulongbia
*/
:root { --red:#e2614a; --blue:#6fa9b8; --yellow:#e0a33a; --teal:#3e7a68; --ink:#1d1d1b; --wall:#dccbb0; --cream:#f3ead9; --A:/wp-content/mu-plugins/clb-coming-soon/home; }
* { box-sizing:border-box; margin:0; padding:0; }
html, body { overflow-x:hidden; max-width:100%; }
body { font-family:'Be Vietnam Pro',sans-serif; color:var(--ink); line-height:1.6;
  background:url('/wp-content/mu-plugins/clb-coming-soon/home/xi-mang-beige.jpg') 0 0 / 800px 800px repeat, var(--wall); }
a { color:inherit; }
img { max-width:100%; height:auto; display:block; }
.wrap { width:min(1160px, 100% - 32px); margin:0 auto; }
.narrow { width:min(760px, 100% - 32px); margin:0 auto; }
.screen-reader-text { position:absolute; left:-9999px; }

.btns { display:flex; gap:12px; flex-wrap:wrap; }
.btn { display:inline-block; padding:12px 22px; border-radius:12px; font-weight:800; text-decoration:none; font-size:15px; border:3px solid var(--ink);
  box-shadow:4px 4px 0 var(--ink); color:var(--ink); background:var(--cream); transition:transform .1s, box-shadow .1s; cursor:pointer; font-family:inherit; }
.btn:hover { transform:translate(2px,2px); box-shadow:2px 2px 0 var(--ink); }
.btn.red { background:var(--red); color:#fff; } .btn.blue { background:var(--blue); } .btn.yellow { background:var(--yellow); }

/* Header – giống trang chủ */
header.site { position:sticky; top:0; z-index:20; background:var(--ink); color:var(--cream); border-bottom:4px solid var(--teal); }
header.site .wrap { display:flex; align-items:center; justify-content:space-between; gap:16px; height:68px; }
header.site .brand img { height:46px; width:auto; }
header.site nav { display:flex; gap:26px; font-weight:800; font-size:14px; letter-spacing:2px; text-transform:uppercase; }
header.site nav a { text-decoration:none; opacity:.9; } header.site nav a:hover, header.site nav a.on { color:var(--yellow); opacity:1; }
header.site .btn { padding:8px 16px; font-size:14px; box-shadow:3px 3px 0 var(--teal); border-color:var(--cream); }
.burger { display:none; background:none; border:0; color:var(--cream); font:900 26px/1 inherit; cursor:pointer; }

.scales { display:block; width:100%; height:90px; }
.scales.seam { position:relative; z-index:3; margin-bottom:-90px; pointer-events:none; }

/* Đầu trang blog */
.bhero { padding:140px 0 46px; text-align:center; background:linear-gradient(rgba(240,228,206,.72),rgba(240,228,206,.72)), url('/wp-content/mu-plugins/clb-coming-soon/home/tranh-rong.jpg') center / cover no-repeat; border-bottom:4px solid var(--ink); }
.tag { display:inline-block; background:var(--ink); color:var(--cream); padding:8px 18px; border-radius:999px; font-weight:800; letter-spacing:3px; text-transform:uppercase; font-size:13px; box-shadow:0 0 0 4px var(--teal); text-decoration:none; }
.bhero h1 { font-weight:900; font-size:clamp(30px,4.4vw,52px); line-height:1.12; margin:18px 0 10px; }
.bhero h1 span { color:var(--red); }
.bhero p { font-weight:600; max-width:640px; margin:0 auto; }

/* Thanh chuyên mục */
.cats { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin:26px 0 0; }
.cats a { text-decoration:none; font-weight:800; font-size:14px; padding:8px 16px; border-radius:999px; border:3px solid var(--ink); background:var(--cream); box-shadow:3px 3px 0 var(--ink); }
.cats a.on, .cats a:hover { background:var(--yellow); }

main { padding:50px 0 80px; }

/* Lưới bài */
.posts { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.post-card { background:var(--cream); border:4px solid var(--ink); border-radius:26px; box-shadow:6px 6px 0 var(--ink); overflow:hidden; display:flex; flex-direction:column; text-decoration:none; transition:transform .12s, box-shadow .12s; }
.post-card:hover { transform:translate(3px,3px); box-shadow:3px 3px 0 var(--ink); }
.post-card .thumb { aspect-ratio:16/10; border-bottom:4px solid var(--ink); background:var(--ink); overflow:hidden; }
.post-card .thumb img { width:100%; height:100%; object-fit:cover; }
.post-card:nth-child(3n+1) .thumb.ph { background:var(--red); } .post-card:nth-child(3n+2) .thumb.ph { background:var(--blue); } .post-card:nth-child(3n) .thumb.ph { background:var(--yellow); }
.thumb.ph { display:grid; place-items:center; } .thumb.ph img { width:50%; height:auto; object-fit:contain; }
.post-card .txt { padding:18px 20px 22px; display:flex; flex-direction:column; gap:8px; flex:1; }
.post-card .cat { align-self:flex-start; font-weight:900; font-size:11px; letter-spacing:2px; text-transform:uppercase; padding:4px 10px; border-radius:8px; background:var(--ink); color:var(--cream); }
.post-card h2 { font-weight:900; font-size:21px; line-height:1.25; }
.post-card p { font-weight:500; font-size:15px; opacity:.85; }
.post-card .meta { margin-top:auto; font-size:13px; font-weight:700; opacity:.6; }
.posts .post-card.big { grid-column:1 / -1; flex-direction:row; }
.posts .post-card.big .thumb { flex:1.25; aspect-ratio:auto; min-height:340px; border-bottom:0; border-right:4px solid var(--ink); }
.posts .post-card.big .txt { flex:1; padding:30px; justify-content:center; }
.posts .post-card.big h2 { font-size:clamp(24px,2.6vw,34px); }

.pager { display:flex; justify-content:center; gap:10px; margin-top:44px; flex-wrap:wrap; }
.pager .page-numbers { min-width:46px; text-align:center; text-decoration:none; font-weight:900; padding:10px 14px; border:3px solid var(--ink); border-radius:12px; background:var(--cream); box-shadow:3px 3px 0 var(--ink); }
.pager .current { background:var(--red); color:#fff; }
.empty { text-align:center; font-weight:700; padding:40px 0; }

/* Bài viết */
.ahead { padding:130px 0 40px; text-align:center; }
.ahead h1 { font-weight:900; font-size:clamp(28px,4vw,46px); line-height:1.15; margin:18px 0 12px; }
.ahead .meta { font-weight:700; opacity:.7; font-size:14px; }
.cover { width:min(1000px, 100% - 32px); margin:0 auto 40px; border:4px solid var(--ink); box-shadow:inset 0 0 0 4px var(--teal), 8px 8px 0 var(--ink); border-radius:30px; overflow:hidden; background:var(--ink); }
.cover img { width:100%; max-height:560px; object-fit:cover; }
.paper { background:var(--cream); border:4px solid var(--ink); border-radius:26px; box-shadow:6px 6px 0 var(--ink); padding:42px clamp(20px,5vw,56px); }
.content { font-size:17.5px; line-height:1.8; font-weight:500; }
.content > * + * { margin-top:1.1em; }
.content h2 { font-weight:900; font-size:28px; line-height:1.25; margin-top:1.6em; }
.content h3 { font-weight:900; font-size:22px; margin-top:1.4em; }
.content a { color:var(--red); font-weight:700; }
.content ul, .content ol { padding-left:1.3em; } .content li + li { margin-top:.4em; }
.content blockquote { border-left:6px solid var(--red); background:#fff7ea; padding:16px 22px; border-radius:0 14px 14px 0; font-weight:700; font-style:italic; }
.content > img, .content figure > img { border-radius:18px; border:3px solid var(--ink); }
.content figure img { border:0; }
.content figcaption { font-size:14px; opacity:.7; text-align:center; padding:6px; }
.share { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:34px; padding-top:22px; border-top:3px dashed rgba(29,29,27,.25); font-weight:800; }
.cta { margin-top:34px; background:var(--ink); color:var(--cream); border-radius:22px; padding:26px; display:flex; gap:20px; align-items:center; justify-content:space-between; flex-wrap:wrap; box-shadow:6px 6px 0 var(--teal); }
.cta b { font-size:20px; font-weight:900; display:block; } .cta .btn { border-color:var(--cream); box-shadow:3px 3px 0 var(--teal); }
.related { margin-top:60px; } .related h2 { text-align:center; font-weight:900; font-size:30px; margin:16px 0 28px; }

footer.site { background:var(--ink); color:var(--cream); text-align:center; padding:120px 0 34px; font-weight:600; font-size:14px; }
footer.site img { height:70px; width:auto; margin:0 auto 12px; }
footer.site .links { display:flex; justify-content:center; gap:18px; flex-wrap:wrap; margin:10px 0; font-weight:800; }
footer.site small { opacity:.7; }

/* Liên hệ popup – giống trang chủ */
.ct-back { position:fixed; inset:0; background:rgba(29,29,27,.55); z-index:90; display:none; align-items:flex-end; justify-content:center; }
.ct-back.on { display:flex; }
.ct-box { background:var(--cream); width:min(420px,100%); border:3px solid var(--ink); border-bottom:0; border-radius:20px 20px 0 0; padding:18px 18px 26px; box-shadow:0 -6px 0 var(--teal); }
@media (min-width:700px){ .ct-back { align-items:center; } .ct-box { border-bottom:3px solid var(--ink); border-radius:20px; box-shadow:6px 6px 0 var(--teal); } }
.ct-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; font-weight:800; font-size:17px; line-height:1.3; }
.ct-x { background:none; border:0; font-size:22px; cursor:pointer; color:var(--ink); }
.ct-list a { display:flex; align-items:center; gap:12px; text-decoration:none; color:#fff; font-weight:800; font-size:16px; padding:13px 16px; border:3px solid var(--ink); border-radius:14px; margin-top:10px; box-shadow:3px 3px 0 var(--ink); }
.ct-list .ico2 { width:30px; height:30px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:900; flex:none; }
.ct-fb { background:#1877f2; } .ct-fb .ico2 { color:#1877f2; }
.ct-zl { background:#0068ff; } .ct-zl .ico2 { color:#0068ff; font-size:11px; }
.ct-tel { background:var(--red); }
.ct-list small { display:block; font-weight:600; font-size:12px; opacity:.9; }

@media (max-width:900px) {
  header.site nav, header.site .btn { display:none; } .burger { display:block; }
  header.site.open nav { display:flex; flex-direction:column; position:absolute; top:72px; left:0; right:0; background:var(--ink); padding:18px 16px 22px; gap:18px; border-bottom:4px solid var(--teal); }
  .posts { grid-template-columns:1fr 1fr; gap:20px; }
  .posts .post-card.big { flex-direction:column; } .posts .post-card.big .thumb { min-height:0; aspect-ratio:16/10; border-right:0; border-bottom:4px solid var(--ink); }
}
@media (max-width:560px) {
  .scales { height:60px; } .scales.seam { margin-bottom:-60px; }
  .bhero { padding:96px 0 34px; } .ahead { padding:96px 0 28px; }
  .posts { grid-template-columns:1fr; }
  .cats { flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; padding:4px 4px 10px; margin-left:-16px; margin-right:-16px; padding-left:16px; scrollbar-width:none; }
  .cats a { flex:none; font-size:13px; padding:7px 13px; }
  .paper { border-radius:20px; } .content { font-size:16.5px; }
  footer.site { padding-top:90px; }
}

/* Nút cuộn lên đầu trang (của plugin trx_addons) – đổi theo nhận diện quán (anh Tú 04/11) */
a.trx_addons_scroll_to_top { width:52px !important; height:52px !important; right:18px !important; bottom:18px !important; left:auto !important;
  border-radius:50% !important; background:var(--yellow) !important; border:3px solid var(--ink) !important; box-shadow:4px 4px 0 var(--ink) !important;
  color:var(--ink) !important; display:flex !important; align-items:center; justify-content:center; padding:0 !important; line-height:1 !important;
  font-size:0 !important; z-index:30 !important; transition:transform .1s, box-shadow .1s, opacity .25s, bottom .25s !important; }
a.trx_addons_scroll_to_top::before { content:'' !important; font-family:inherit !important; width:12px; height:12px; margin-top:6px;
  border-left:4px solid var(--ink); border-top:4px solid var(--ink); transform:rotate(45deg); border-radius:2px; }
a.trx_addons_scroll_to_top:hover { transform:translate(2px,2px); box-shadow:2px 2px 0 var(--ink) !important; background:var(--yellow) !important; }
a.trx_addons_scroll_to_top:not(.show) { opacity:0 !important; pointer-events:none; }
@media (max-width:600px) { a.trx_addons_scroll_to_top { width:46px !important; height:46px !important; right:14px !important; bottom:14px !important; } }
