/* All New Rummy Games – theme stylesheet (base + header + footer + components + blog) */
:root {
  --brand-900: #0b1430; --brand-800: #13204a; --brand-700: #1b2f6e; --brand-500: #3f5bd6;
  --brand-tint: #eaeefc; --brand-line: #c9d3f3;
  --yd-green-900: var(--brand-900); --yd-green-700: var(--brand-700); --yd-green-500: var(--brand-500);
  --yd-gold: #ffc83d; --yd-gold-dark: #f0a500; --yd-radius: 14px; --yd-shadow: 0 6px 22px rgba(11, 20, 48, .10);
  --page-bg: #f4f6fc; --psb-nav-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #12182b; background: var(--page-bg); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-500); }
h1, h2, h3, h4 { line-height: 1.25; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 1000; border-radius: 8px; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #e1e6f3; box-shadow: 0 2px 10px rgba(11, 20, 48, .06); }
.site-header-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.site-logo img { display: block; height: 44px; width: auto; }
.site-nav { margin-left: auto; }
.anrg-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.anrg-menu a { display: block; padding: 9px 14px; border-radius: 999px; color: #12182b; font-weight: 500; font-size: 15px; text-decoration: none; }
.anrg-menu a:hover { background: var(--brand-tint); }
.anrg-menu a.active, .anrg-menu .current-menu-item > a { background: var(--brand-tint); color: var(--brand-700); font-weight: 600; }
.site-actions { display: flex; gap: 6px; }
.site-icon-btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: #12182b; cursor: pointer; }
.site-icon-btn:hover { background: var(--brand-tint); }
.site-menu-btn { display: none; }
.site-search { background: #f5f7fd; border-top: 1px solid #e1e6f3; padding: 10px 0; }
.site-search .psb-container { display: flex; gap: 8px; }
.site-search input { flex: 1; min-width: 0; border: 1px solid #e1e6f3; border-radius: 999px; padding: 11px 18px; font-size: 16px; background: #fff; }
@media (max-width: 820px) {
  .site-actions { margin-left: auto; }
  .site-menu-btn { display: grid; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid #e1e6f3; padding: 8px 16px 14px; margin: 0; }
  .site-nav.open { display: block; }
  .anrg-menu { flex-direction: column; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--brand-900); color: #c9d3f3; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; padding-top: 36px; padding-bottom: 26px; }
.footer-logo img { height: 44px; width: auto; display: block; margin-bottom: 12px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 6px 0; }
.footer-links a { color: #c9d3f3; text-decoration: none; }
.footer-links a:hover { color: var(--yd-gold); }
.footer-brand p { margin: 0; font-size: .92rem; line-height: 1.7; max-width: 420px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: .82rem; color: #9fb0e6; }
.footer-bottom p { margin: 3px 0; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Yono All Game Downloads – UI components (front page, app list, game page, buttons) */
:root {
  --psb-cta: #0a8f55;
  --psb-cta-dark: #067a45;
  --psb-ink: #12182b;
  --psb-muted: #5b6379;
  --psb-line: #e1e6f3;
  --psb-nav-h: 58px;
}
.psb-container { max-width: 1100px; margin: 0 auto; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
.psb-container *, .psb-hero *, .psb-app * { box-sizing: border-box; }
.psb-page-top { padding-top: calc(var(--psb-nav-h) + 24px); padding-bottom: 20px; }
.psb-page-top h1 { font-size: 1.7rem; margin: 0 0 16px; }

/* ---------- buttons (one system for the whole site) ---------- */
.psb-btn, button.psb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
  background: var(--psb-cta); color: #fff !important; border: 0; border-radius: 12px; padding: 13px 22px;
  font: 700 16px/1.2 "Poppins", system-ui, sans-serif; text-decoration: none !important; cursor: pointer; text-align: center;
  transition: background .15s, transform .15s, box-shadow .15s; box-shadow: 0 3px 10px rgba(10, 143, 85, .28);
}
.psb-btn:hover { background: var(--psb-cta-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(10, 143, 85, .38); }
.psb-btn-lg { min-width: 280px; padding: 15px 24px; font-size: 17px; }
.psb-btn-pill { border-radius: 999px; padding: 10px 20px; font-size: 14px; white-space: nowrap; }
.psb-badge-new { position: absolute; left: -2px; top: -2px; background: #e11d48; color: #fff; font: 800 10.5px/1 "Poppins", sans-serif; letter-spacing: .05em; padding: 4px 9px; border-radius: 999px; border: 2px solid #fff; z-index: 2; }
.psb-badge-hot { background: #f97316; }
.psb-meta { display: block; font-size: 12.5px; color: var(--psb-muted); }
.psb-empty { text-align: center; padding: 28px 12px; color: var(--psb-muted); }

/* ---------- hero (front page + list pages) ---------- */
.psb-hero { background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-500) 100%); color: #fff; padding: calc(var(--psb-nav-h) + 36px) 0 40px; }
.psb-hero h1 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); line-height: 1.22; font-weight: 700; margin: 0 0 12px; color: #fff !important; -webkit-text-fill-color: #fff; }
.psb-hero p { max-width: 780px; margin: 0; color: #dbe3ff; line-height: 1.7; font-size: 1rem; }
.psb-hero-sm { padding: calc(var(--psb-nav-h) + 26px) 0 26px; }
.psb-hero-sm h1 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.psb-search { display: flex; max-width: 560px; margin-top: 20px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.psb-search input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font-size: 16px; color: var(--psb-ink); outline: 0; background: #fff; }
.psb-search button { flex: 0 0 auto; background: var(--psb-cta); color: #fff; border: 0; padding: 0 24px; font: 700 15px "Poppins", sans-serif; cursor: pointer; }
.psb-search button:hover { background: var(--psb-cta-dark); }

/* ---------- section headings + quick tiles ---------- */
.psb-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 34px 0 14px; }
.psb-sec-head h2 { font-size: 1.3rem; margin: 0; color: var(--psb-ink); }
.psb-sec-head a { font-weight: 600; font-size: .92rem; color: var(--psb-cta-dark); text-decoration: none; white-space: nowrap; }
.psb-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.psb-tile { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: #fff; border: 1.5px solid var(--brand-line); border-radius: 12px; font-weight: 600; color: var(--psb-ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.psb-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 20, 48, .12); }
.psb-tile i { font-style: normal; font-size: 20px; flex: 0 0 38px; height: 38px; display: grid; place-items: center; background: var(--brand-tint); border-radius: 10px; }

/* ---------- popular apps: icon row ---------- */
.psb-icon-row { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 14px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.psb-icon-item { flex: 0 0 96px; text-align: center; text-decoration: none; color: var(--psb-ink); scroll-snap-align: start; }
.psb-icon-img { position: relative; display: block; width: 96px; height: 96px; border-radius: 22px; background: var(--brand-800); box-shadow: 0 6px 16px rgba(11, 20, 48, .18); }
.psb-icon-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; display: block; }
.psb-icon-name { display: block; margin-top: 8px; font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.psb-icon-meta { display: block; font-size: 12px; color: var(--psb-muted); }

/* ---------- app list rows ---------- */
.psb-app-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.psb-app-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border-radius: 14px; border: 1px solid var(--psb-line); box-shadow: 0 4px 14px rgba(11, 20, 48, .06); }
.psb-app-icon { position: relative; flex: 0 0 68px; width: 68px; height: 68px; border-radius: 16px; background: var(--brand-800); }
.psb-app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.psb-app-text { flex: 1; min-width: 0; }
.psb-app-name { display: block; font-weight: 700; font-size: 1rem; color: var(--psb-ink); text-decoration: none; line-height: 1.3; }
.psb-app-text p { margin: 2px 0 3px; font-size: .86rem; color: var(--psb-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.psb-more { text-align: center; margin: 18px 0 0; }
.psb-more a { font-weight: 700; color: var(--psb-cta-dark); text-decoration: none; }

/* ---------- game page ---------- */
.psb-app { max-width: 980px; padding-top: calc(var(--psb-nav-h) + 14px); padding-bottom: 36px; color: var(--psb-ink); }
.psb-crumbs-in { font-size: 13px; color: var(--psb-muted); margin: 0 0 12px; }
.psb-crumbs-in a { color: var(--psb-cta-dark); font-weight: 600; text-decoration: none; }
.psb-hero-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px 20px; align-items: start; background: #fff; border-radius: 16px; padding: 20px; border: 1px solid var(--psb-line); box-shadow: 0 6px 20px rgba(11, 20, 48, .08); }
.psb-hero-icon { position: relative; width: 96px; height: 96px; border-radius: 22px; background: var(--brand-800); }
.psb-hero-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; display: block; }
.psb-hero-info h1 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 6px; color: var(--psb-ink); -webkit-text-fill-color: var(--psb-ink); }
.psb-hero-desc { margin: 0 0 6px; color: #3a4258; line-height: 1.6; font-size: .96rem; }
.psb-hero-cta { grid-column: 1 / -1; margin-top: 4px; }
.psb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 6px; }
.psb-stat { background: #fff; border: 1px solid var(--psb-line); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.psb-stat strong { display: block; font-size: 1.1rem; color: var(--psb-ink); }
.psb-stat span { display: block; font-size: 12.5px; color: var(--psb-muted); }
.psb-tabbar { position: sticky; top: var(--psb-nav-h); z-index: 40; display: flex; gap: 2px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--psb-line); margin: 14px 0 0; padding: 0 6px; scrollbar-width: none; }
.psb-tabbar::-webkit-scrollbar { display: none; }
.psb-tabbar a { flex: 0 0 auto; padding: 14px 14px 11px; font-weight: 700; font-size: 14px; color: var(--psb-muted); border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap; }
.psb-tabbar a.on { color: var(--psb-ink); border-bottom-color: var(--psb-cta); }
.psb-sec { padding: 22px 0 6px; scroll-margin-top: calc(var(--psb-nav-h) + 56px); }
.psb-sec h2 { font-size: 1.3rem; margin: 0 0 14px; color: var(--psb-ink); }
.psb-banner { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 16px; display: block; margin-bottom: 18px; }
.psb-prose { line-height: 1.75; font-size: 1rem; }
.psb-prose h2, .psb-prose h3 { margin: 22px 0 10px; }
.psb-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.psb-feats { display: grid; gap: 12px; }
.psb-feat { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--psb-line); border-radius: 12px; padding: 14px 16px; }
.psb-feat-n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--psb-cta); color: #fff; display: grid; place-items: center; font-weight: 700; }
.psb-feat h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.psb-feat p { margin: 0; color: #3a4258; line-height: 1.6; }
.psb-steps { padding-left: 22px; line-height: 1.8; margin: 0 0 16px; }
.psb-steps li { margin-bottom: 6px; }
.psb-faq { background: #fff; border: 1px solid var(--psb-line); border-radius: 12px; padding: 0 16px; margin-bottom: 10px; }
.psb-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 26px; }
.psb-faq summary::after { content: "+"; position: absolute; right: 2px; top: 11px; font-size: 22px; color: var(--psb-cta); }
.psb-faq[open] summary::after { content: "–"; }
.psb-faq p { margin: 0 0 14px; line-height: 1.7; color: #3a4258; }
.psb-disclaimer { font-size: 12.5px; color: var(--psb-muted); margin: 14px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .psb-tiles { grid-template-columns: repeat(2, 1fr); }
  .psb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .psb-app-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  :root { --psb-nav-h: 56px; }
  .psb-hero { padding-bottom: 30px; }
  .psb-search button { padding: 0 16px; }
  .psb-sec-head h2 { font-size: 1.15rem; }
  .psb-hero-card { grid-template-columns: 76px 1fr; padding: 16px; gap: 12px 14px; }
  .psb-hero-icon { width: 76px; height: 76px; border-radius: 18px; }
  .psb-hero-icon img { border-radius: 18px; }
  .psb-hero-info h1 { font-size: 1.25rem; }
  .psb-btn-lg { width: 100%; min-width: 0; }
  .psb-app-row { padding: 10px 12px; gap: 10px; }
  .psb-app-icon { flex-basis: 58px; width: 58px; height: 58px; }
  .psb-btn-pill { padding: 9px 14px; font-size: 13px; }
}

/* ---------- fixes from the layout audit ---------- */
.psb-sec-head h2, .psb-sec h2, .psb-page-top h1 { font-weight: 700; }
.psb-icon-item, .psb-icon-item * , .psb-app-name, .psb-card, .psb-card * { text-decoration: none !important; }
.psb-btn > span { display: inline-block; text-align: center; }
.psb-latest { margin: 8px 0 30px; }
.psb-latest .psb-grid { max-width: none; padding: 0; }
.psb-btn-lg > span:last-child { overflow-wrap: anywhere; }

/* back-to-top button: small, bottom-right, never over content */
.fixed-widget { top: auto !important; bottom: 16px !important; right: 12px !important; left: auto !important; transform: none !important; z-index: 90; }
.fixed-widget .widget-container { display: flex; flex-direction: column; gap: 6px; }
.fixed-widget .widget-item { width: 42px !important; height: 42px !important; min-width: 0 !important; }

/* mobile: shorter navbar, compact lists */
@media (max-width: 991px) {
  .navbar-brand img { width: 104px !important; height: 41px !important; margin: 2px 0; }
}
@media (max-width: 520px) {
  .psb-app-row { flex-wrap: wrap; }
  .psb-app-text { flex: 1 1 calc(100% - 78px); }
  .psb-app-row .psb-btn-pill { flex: 1 1 100%; margin-top: 2px; padding: 11px 16px; }
  .psb-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .psb-card { flex-direction: row; }
  .psb-card-img { flex: 0 0 118px; aspect-ratio: auto; min-height: 118px; }
  .psb-card-img img { height: 100%; }
  .psb-chip { left: 6px; top: 6px; font-size: 10.5px; padding: 2px 8px; }
  .psb-card-body { padding: 10px 12px; gap: 5px; justify-content: center; }
  .psb-card-title { font-size: 14px; -webkit-line-clamp: 3; }
  .psb-card-ex { display: none; }
  .psb-card-meta { margin-top: 2px; }
  .psb-tile { padding: 11px 12px; gap: 10px; font-size: 14px; }
  .psb-tile i { flex-basis: 34px; height: 34px; }
}

/* ---------- one fixed navbar height; body padding comes from here (not from the old script) ---------- */
:root { --psb-nav-h: 60px; }
body { padding-top: var(--psb-nav-h) !important; }
.topnav .container { min-height: var(--psb-nav-h); padding-top: 0; padding-bottom: 0; align-items: center; }
.psb-page-top { padding-top: 24px; }
.psb-hero { padding-top: 44px; }
.psb-hero-sm { padding-top: 32px; }
.psb-app { padding-top: 16px; }
.psb-crumbs { margin-top: 16px !important; }
.fixed-widget .widget-item { width: 38px !important; height: 38px !important; opacity: .92; }

/* ---------- nav: highlight only the current page ---------- */
.topnav .nav-link#navHome:not(.active) { background: transparent !important; color: #eafff5 !important; border-bottom: 0 !important; }
.topnav .nav-link.active { background: rgba(255, 200, 61, .18) !important; color: var(--yd-gold, #ffc83d) !important; }

/* ---------- legacy bootstrap buttons use the site green ---------- */
.btn-primary, .btn-success { background-color: var(--psb-cta) !important; border-color: var(--psb-cta) !important; color: #fff !important; border-radius: 10px; font-weight: 600; }
.btn-primary:hover, .btn-success:hover { background-color: var(--psb-cta-dark) !important; border-color: var(--psb-cta-dark) !important; }
.btn-outline-primary { color: var(--psb-cta) !important; border-color: var(--psb-cta) !important; border-radius: 10px; }

/* About page hero: remove the old brand picture, use brand colours */
.about-crumb { background-image: none !important; background-color: var(--brand-900) !important; min-height: 0 !important; }
.about-crumb .psb-about-h1 { color: #fff; text-align: center; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; padding: 30px 16px 10px; margin: 0; }

/* About page */
.psb-about { max-width: 900px; padding-bottom: 30px; }
.psb-about .psb-sec p { line-height: 1.8; margin: 0 0 12px; }
.psb-about-list { padding-left: 22px; line-height: 1.8; }
.psb-about-list li { margin-bottom: 8px; }
.psb-about a:not(.psb-tile) { color: var(--psb-cta-dark); font-weight: 600; }
.psb-about { max-width: 1100px; }
.psb-about .psb-sec { max-width: 820px; }
.psb-about .psb-tiles { max-width: 820px; }
.psb-feat h3 { font-weight: 700; }

/* =====================  BLOG: single post  ===================== */
.psb-post { max-width: 860px; padding-top: 18px; padding-bottom: 30px; color: var(--psb-ink); }
.psb-post-head { margin: 4px 0 18px; }
.psb-post-head h1 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); line-height: 1.28; font-weight: 700; margin: 10px 0 10px; color: var(--psb-ink); -webkit-text-fill-color: var(--psb-ink); overflow-wrap: anywhere; }
.psb-chip-static { position: static; display: inline-block; text-decoration: none; }
.psb-post-meta { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--psb-muted); margin: 0; }
.psb-post-body { overflow-wrap: anywhere; word-break: normal; }
.psb-post-body img, .psb-post-body video, .psb-post-body iframe, .psb-post-body table { max-width: 100%; }
.psb-post-body img { height: auto; }
.psb-post-body table { display: block; overflow-x: auto; }
.psb-post-body [style*="min-height: 100vh"], .psb-post-body [style*="min-height:100vh"] { min-height: 0 !important; }
.psb-post-body [style*="overflow-x: hidden"] { overflow-x: clip; }
.psb-post-card { background: #fff; border: 1px solid var(--psb-line); border-radius: 16px; padding: 18px; box-shadow: 0 6px 20px rgba(11, 20, 48, .06); line-height: 1.75; font-size: 1.02rem; }
.psb-post-card > *:first-child { margin-top: 0; }
.psb-post-card p { margin: 0 0 14px; }
.psb-post-card h2, .psb-post-card h3 { margin: 22px 0 10px; line-height: 1.3; }
.psb-post-raw { margin: 0 -16px; }
.psb-post-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 26px 0 8px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); color: #fff; }
.psb-post-cta strong { display: block; font-size: 1.1rem; margin-bottom: 2px; }
.psb-post-cta span { color: #cfd9ff; font-size: .95rem; }
.psb-post-cta .psb-btn { background: var(--yd-gold, #ffc83d); color: var(--brand-900) !important; box-shadow: none; }
.psb-post-cta .psb-btn:hover { background: #ffd35f; }
.psb-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; }
.psb-post-nav a { display: block; padding: 12px 16px; border: 1px solid var(--psb-line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--psb-ink); }
.psb-post-nav a:hover { border-color: var(--psb-cta); }
.psb-post-nav a[rel="next"] { text-align: right; }
.psb-post-nav small { display: block; color: var(--psb-cta-dark); font-weight: 700; margin-bottom: 2px; }
.psb-post-nav span { font-size: .92rem; line-height: 1.35; display: block; }
.psb-related { max-width: 1100px; }

/* =====================  BLOG: listing  ===================== */
.psb-blog .psb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.psb-card-featured { grid-column: span 2; }
.psb-card-featured .psb-card-img { aspect-ratio: 16 / 8; }
.psb-card-featured .psb-card-title { font-size: 1.3rem; -webkit-line-clamp: 3; }
.psb-card-featured .psb-card-ex { -webkit-line-clamp: 4; font-size: 14.5px; }
.psb-blog-count { text-align: center; color: var(--psb-muted); font-size: 13.5px; margin: -6px 0 18px; }
@media (max-width: 980px) { .psb-blog .psb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .psb-post { padding-top: 10px; }
  .psb-post-card { padding: 12px; border-radius: 14px; }
  .psb-post-raw { margin: 0 -16px; }
  .psb-post-nav { grid-template-columns: 1fr; }
  .psb-post-nav a[rel="next"] { text-align: left; }
  .psb-post-cta { padding: 16px; }
  .psb-post-cta .psb-btn { width: 100%; }
  .psb-blog .psb-grid { grid-template-columns: 1fr; }
  .psb-card-featured { grid-column: auto; }
  .psb-card-featured .psb-card-img { aspect-ratio: auto; }
  .psb-card-featured .psb-card-title { font-size: 14px; }
}

.psb-post, .psb-post-head, .psb-post-meta, .psb-crumbs-in { font-family: "Poppins", system-ui, sans-serif; }
.psb-post-body { position: relative; }

/* featured post: full-width horizontal card */
.psb-blog .psb-card-featured { grid-column: 1 / -1; flex-direction: row; }
.psb-blog .psb-card-featured .psb-card-img { flex: 0 0 56%; aspect-ratio: 16 / 9; }
.psb-blog .psb-card-featured .psb-card-body { flex: 1; justify-content: center; padding: 22px 26px; gap: 12px; }
.psb-blog .psb-card-featured .psb-card-title { font-size: 1.4rem; -webkit-line-clamp: 4; }
@media (max-width: 980px) {
  .psb-blog .psb-card-featured { flex-direction: column; }
  .psb-blog .psb-card-featured .psb-card-img { flex: none; width: 100%; }
}
@media (max-width: 640px) {
  .psb-blog .psb-card-featured { flex-direction: row; }
  .psb-blog .psb-card-featured .psb-card-img { flex: 0 0 118px; aspect-ratio: auto; width: auto; }
  .psb-blog .psb-card-featured .psb-card-body { padding: 10px 12px; }
  .psb-blog .psb-card-featured .psb-card-title { font-size: 14px; -webkit-line-clamp: 3; }
}


/* ---------- blog ---------- */
.psb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; }
.psb-blog-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 18px; }
.psb-blog-search input { flex: 1; border: 1px solid var(--brand-line); border-radius: 999px; padding: 10px 18px; font-size: 15px; background: #fff; }
.psb-blog-search button { background: var(--psb-cta); color: #fff !important; border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.psb-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.psb-tabs a { padding: 8px 20px; border-radius: 999px; background: #fff; color: var(--yd-green-900); font-weight: 600; border: 1px solid var(--brand-line); text-decoration: none; }
.psb-tabs a.on, .psb-tabs a:hover { background: var(--yd-green-700); color: #fff; border-color: var(--yd-green-700); }
.psb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.psb-wrap.psb-grid, .psb-latest .psb-grid { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.psb-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--yd-radius); overflow: hidden; box-shadow: var(--yd-shadow); text-decoration: none; color: var(--yd-ink); transition: transform .2s, box-shadow .2s; border: 1px solid rgba(63, 91, 214,.12); }
.psb-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11, 20, 48,.18); }
.psb-card-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--yd-green-900); overflow: hidden; }
.psb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.psb-chip { position: absolute; left: 10px; top: 10px; background: var(--yd-gold); color: var(--yd-green-900); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.psb-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.psb-card-title { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.psb-card-ex { font-size: 13.5px; color: #4a5168; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.psb-card-meta { margin-top: auto; font-size: 12.5px; color: var(--yd-green-700); font-weight: 600; }
.psb-empty { text-align: center; padding: 30px; color: #4a5168; }
.psb-pager { margin-top: 28px; }
.psb-pager ul.pagination { display: flex; gap: 6px; list-style: none; padding: 0; justify-content: center; flex-wrap: wrap; }
.psb-pager li a, .psb-pager li span { display: block; min-width: 38px; text-align: center; padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--brand-line); color: var(--yd-green-900); text-decoration: none; }
.psb-pager li.active span { background: var(--yd-green-700); color: #fff; border-color: var(--yd-green-700); }
.psb-pager li.disabled span { opacity: .5; }
.psb-related { max-width: 1200px; margin: 30px auto; padding: 0 16px; }
.psb-related h2 { color: var(--yd-green-900); font-size: 1.4rem; margin-bottom: 16px; }
.psb-crumbs { max-width: 1200px; margin: 78px auto 0; padding: 0 16px; font-size: 13.5px; color: #4a5168; }
.psb-crumbs a { color: var(--yd-green-700); font-weight: 600; text-decoration: none; }
.psb-latest .index-recommend-title { text-align: center; }
@media (max-width: 600px) { .psb-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .psb-card-ex { display: none; } .psb-crumbs { margin-top: 66px; } }


/* ---------- theme overrides (sticky header, no fixed nav) ---------- */
body { padding-top: 0 !important; }
:root { --psb-nav-h: 64px; }
.psb-hero { padding-top: 44px; }
.psb-hero-sm { padding-top: 32px; }
.psb-app { padding-top: 16px; }
.psb-crumbs { margin-top: 16px !important; }
.psb-tabbar { top: 64px; }
.psb-sec { scroll-margin-top: 130px; }
.psb-hero a { color: var(--yd-gold); }
.psb-page-top h1, .psb-about h2 { color: #12182b; }
.psb-prose a, .psb-about a:not(.psb-tile):not(.psb-btn) { color: var(--brand-500); font-weight: 600; }
.psb-post-card a:not(.psb-btn) { color: var(--brand-500); }
.psb-hero-card { margin-top: 4px; }
.psb-card-img.is-fallback img { object-fit: contain; padding: 18px; }
.psb-blog-search button:hover { background: var(--psb-cta-dark); }
@media (max-width: 520px) { :root { --psb-nav-h: 64px; } }
