/*
Theme Name: wking33m-child
Template: generatepress
Version: 1.0.0
*/
:root {
  --k33m-hdr: #0b2545;
  --k33m-nav: #026efc;
  --k33m-pri: #0353a4;
  --k33m-bdr: #026efc;
  --k33m-fcard: #eff6ff;
}
* { box-sizing:border-box; }
html, body {
  margin:0; padding:0; background:#ffffff; color:#111827;
  font-family:"Be Vietnam Pro","Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow-x:clip; line-height:1.72;
}
.site-header, .main-navigation, .site-footer, .page-header-image, .featured-image.page-header-image,
.entry-header, .inside-header, #right-sidebar, .sidebar, .widget-area,
footer.entry-meta, .entry-meta, .post-navigation, .post-navigation .nav-links, .comments-area, #comments { display:none !important; }
#page, .site, .site-content, .site-main, .content-area, .inside-article, .separate-containers .inside-article, .one-container .site-content, .entry-content {
  background:#ffffff !important; padding:0 !important; margin:0 !important; max-width:100% !important; width:100% !important; float:none !important; border:none !important; box-shadow:none !important; display:block !important;
}

/* Boxed 1170px Sticky Header matching gka.us.com */
.k33m-hdr { position:sticky; top:0; z-index:999; width:100%; max-width:1170px; margin:0 auto; box-shadow:0 2px 12px rgba(0,0,0,.22); }
.k33m-hdr-top { background:var(--k33m-hdr); padding:10px 18px; }
.k33m-hdr-top-in { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.k33m-logo img { height:56px; width:auto; display:block; }
.k33m-ctas { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.k33m-btn { display:inline-flex; align-items:center; justify-content:center; padding:9px 22px; border-radius:99px; color:#ffffff !important; font-weight:800; font-size:13.5px; text-decoration:none !important; text-transform:uppercase; white-space:nowrap; transition:transform .15s,opacity .15s; }
.k33m-btn:hover { transform:translateY(-1px); opacity:.92; }
.k33m-btn-log { background:#0284c7; }
.k33m-btn-reg { background:#ea580c; }
.k33m-burger { display:none; background:rgba(255,255,255,.15); border:1.5px solid #fff; color:#fff; font-size:20px; padding:4px 10px; border-radius:6px; cursor:pointer; }

.k33m-hdr-nav { background:var(--k33m-nav); }
.k33m-nav-in { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:2px 14px; padding:11px 12px; }
.k33m-nav-in a { color:#ffffff; font-weight:700; font-size:13px; text-transform:uppercase; text-decoration:none; padding:4px 6px; border-radius:4px; transition:background .15s; }
.k33m-nav-in a:hover { background:rgba(0,0,0,.2); }

/* Boxed 1170px Main Shell */
.k33m-shell { max-width:1170px; margin:0 auto; padding:0 0 32px; background:#ffffff; }
.k33m-hero a { display:block; }
.k33m-hero img { width:100%; height:auto; display:block; }

/* Centered H1 with flanking lines matching gka.us.com */
.k33m-h1-center { display:flex; align-items:center; gap:14px; font-size:25px; line-height:1.35; color:var(--k33m-pri); text-align:center; margin:24px 16px 18px; font-weight:800; }
.k33m-h1-center::before, .k33m-h1-center::after { content:""; flex:1; height:2px; background:#e5e7eb; }

/* Bordered Article Box + TOC */
.k33m-home-box { margin:0 16px; border:2px solid var(--k33m-bdr); border-radius:10px; padding:24px 26px; background:#ffffff; }
.k33m-toc { max-width:620px; margin:14px auto 22px; border:1.5px solid var(--k33m-bdr); border-radius:8px; padding:12px 18px; background:#fffafa; }
.k33m-toc summary { font-weight:800; color:var(--k33m-pri); cursor:pointer; font-size:15.5px; text-align:center; }
.k33m-toc ol { margin:10px 0 0 20px; padding:0; }
.k33m-toc li { margin-bottom:5px; font-size:14.5px; }
.k33m-toc a { color:var(--k33m-pri); text-decoration:none; }
.k33m-toc a:hover { text-decoration:underline; }

/* 4-Column Feature Cards matching gka.us.com */
.k33m-feats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:26px 16px 8px; }
.k33m-fcard { background:var(--k33m-fcard); border-radius:10px; padding:20px 16px; text-align:center; min-width:0; }
.k33m-fcard img { width:88px; height:88px; object-fit:contain; display:block; margin:0 auto 12px; }
.k33m-fcard h3 { font-size:16px; color:var(--k33m-pri); margin:0 0 8px; font-weight:800; text-transform:uppercase; }
.k33m-fcard p { font-size:14px; color:#1f2937; margin:0; line-height:1.55; }

/* 2-Col (9 + 3) Layout for Category & Single Post matching gka.us.com */
.k33m-2col { max-width:1170px; margin:24px auto 36px; padding:0 16px; display:grid; grid-template-columns:minmax(0,3fr) minmax(0,1fr); gap:28px; align-items:start; }
.k33m-side { border-left:1px solid #e5e7eb; padding-left:20px; min-width:0; }
.k33m-side-title { font-size:15.5px; font-weight:800; color:var(--k33m-pri); text-transform:uppercase; margin:0 0 14px; padding-bottom:8px; border-bottom:2px solid var(--k33m-bdr); }
.k33m-sitem { display:grid; grid-template-columns:68px 1fr; gap:10px; align-items:center; padding:9px 0; border-bottom:1px solid #f1f5f9; text-decoration:none !important; }
.k33m-sitem img { width:68px; height:46px; object-fit:cover; border-radius:5px; display:block; }
.k33m-sitem span { font-size:13.5px; color:#111827; font-weight:600; line-height:1.4; }
.k33m-sitem:hover span { color:var(--k33m-pri); }

/* Article Typography */
.k33m-art h1 { font-size:26px; line-height:1.35; color:var(--k33m-pri); margin:0 0 12px; font-weight:800; }
.k33m-meta { font-size:13.5px; color:#6b7280; margin-bottom:18px; padding-bottom:10px; border-bottom:1px solid #e5e7eb; }
.k33m-cat-badge { display:inline-block; background:var(--k33m-nav); color:#fff !important; font-size:11.5px; font-weight:800; text-transform:uppercase; padding:3px 10px; border-radius:4px; text-decoration:none !important; margin-bottom:8px; }
.k33m-art h2 { font-size:21px; line-height:1.35; color:var(--k33m-pri); margin:26px 0 12px; padding-bottom:6px; border-bottom:1.5px solid #f1f5f9; font-weight:800; }
.k33m-art h3 { font-size:17.5px; color:#1f2937; margin:18px 0 8px; font-weight:700; }
.k33m-art p { margin:0 0 14px; font-size:15.8px; color:#111827; }
.k33m-art a { color:#047857; font-weight:600; text-decoration:underline; }
.k33m-art a:hover { color:var(--k33m-pri); }
.k33m-art ul, .k33m-art ol { margin:0 0 16px 22px; color:#111827; }
.k33m-art li { margin-bottom:6px; font-size:15.4px; }
.k33m-art table { width:100%; border-collapse:collapse; margin:18px 0; font-size:14.8px; display:block; overflow-x:auto; }
.k33m-art th, .k33m-art td { border:1px solid #e5e7eb; padding:10px 12px; text-align:left; }
.k33m-art th { background:var(--k33m-hdr); color:#ffffff; font-weight:700; }
.k33m-art tr:nth-child(even) td { background:#f9fafb; }
.k33m-art figure { margin:18px auto 22px !important; text-align:center !important; max-width:800px; }
.k33m-art figure img { width:100%; height:auto; border-radius:8px 8px 0 0; display:block !important; margin:0 auto !important; }
.k33m-art figcaption { background:#f3f4f6; padding:7px 12px; border-radius:0 0 8px 8px; font-size:13.5px; color:#374151; font-style:italic; }

/* Author Box & 4 Related Posts */
.k33m-author { display:flex; align-items:center; gap:16px; background:#f8fafc; border:1px solid #e2e8f0; border-left:4px solid var(--k33m-bdr); border-radius:8px; padding:16px 18px; margin:28px 0 24px; }
.k33m-avatar { width:54px; height:54px; border-radius:50%; background:var(--k33m-hdr); color:#fff; font-weight:800; font-size:18px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.k33m-author strong { display:block; font-size:15.5px; color:#0f172a; margin-bottom:4px; }
.k33m-author p { margin:0; font-size:14px; color:#475569; }

.k33m-rel-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:14px; }
.k33m-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.k33m-pcard { border:1px solid #e5e7eb; border-radius:8px; overflow:hidden; background:#ffffff; display:flex; flex-direction:column; transition:transform .15s,box-shadow .15s; min-width:0; position:relative; }
.k33m-pcard:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.08); }
.k33m-pcard img { width:100%; aspect-ratio:2/1; object-fit:cover; display:block; }
.k33m-date-badge { position:absolute; top:10px; left:10px; background:var(--k33m-hdr); color:#fff; font-size:11px; font-weight:800; padding:4px 8px; border-radius:4px; }
.k33m-pcard-body { padding:13px; text-align:center; flex:1; display:flex; flex-direction:column; }
.k33m-pcard h3 { font-size:15px; line-height:1.4; margin:0 0 8px; }
.k33m-pcard h3 a { color:#111827; text-decoration:none; font-weight:700; }
.k33m-pcard h3 a:hover { color:var(--k33m-pri); }
.k33m-pcard p { font-size:13.2px; color:#4b5563; margin:0; line-height:1.5; }
a.page-numbers, span.page-numbers { display:inline-block; padding:6px 13px; margin:0 3px; border:1px solid var(--k33m-bdr); border-radius:6px; color:var(--k33m-pri); text-decoration:none; font-weight:700; }
a.page-numbers, span.page-numbers.current { background:var(--k33m-bdr); color:#ffffff; }

/* Footer matching gka.us.com */
.k33m-ftr { max-width:1170px; margin:0 auto; background:var(--k33m-hdr); color:#ffffff; padding:28px 20px 24px; }
.k33m-ftr-strips { text-align:center; border-bottom:1px solid rgba(255,255,255,.16); padding-bottom:20px; margin-bottom:22px; }
.k33m-ftr-strips img { max-width:100%; height:auto; display:block; margin:0 auto 12px; }
.k33m-ftr-strips p { font-size:13.5px; color:#f1f5f9; max-width:920px; margin:0 auto 12px; line-height:1.6; }
.k33m-ftr-in { display:grid; grid-template-columns:1fr 1fr 1fr 1.25fr; gap:24px; }
.k33m-ftr h3 { color:#ffffff; font-size:15.5px; margin:0 0 12px; text-transform:uppercase; font-weight:800; border-bottom:2px solid rgba(255,255,255,.3); display:inline-block; padding-bottom:4px; }
.k33m-ftr p { font-size:13.8px; color:#f1f5f9; line-height:1.6; margin:8px 0; overflow-wrap:anywhere; }
.k33m-ftr ul { list-style:none; margin:0; padding:0; }
.k33m-ftr li { margin-bottom:7px; }
.k33m-ftr li a { color:#f8fafc; text-decoration:none; font-size:13.8px; }
.k33m-ftr li a:hover { color:#fde047; text-decoration:underline; }
.k33m-ftr-bot { max-width:1170px; margin:0 auto; background:#4b4b4b; color:#f3f4f6; text-align:center; padding:12px 16px 96px; font-size:13px; }

/* Sticky Bottom GIF (PC 1170px wide, 2 side-by-side; Mobile 100%) */
#b88-sticky { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:1170px; max-width:96vw; z-index:9998; background:transparent; text-align:center; }
#b88-sticky-close { position:absolute; top:-26px; right:0; background:#dc2626; color:#fff; border:none; border-radius:4px 4px 0 0; padding:3px 10px; font-size:12px; font-weight:700; cursor:pointer; }
.b88-st-row { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.b88-st-row a { display:block; }
.b88-st-row img { width:100%; height:auto; display:block; border-radius:4px; }

/* Popup GIF 5m */
#b88-pop { display:none; position:fixed; inset:0; background:rgba(0,0,0,.78); z-index:99999; align-items:center; justify-content:center; padding:16px; }
#b88-pop-box { position:relative; max-width:520px; width:100%; }
#b88-pop-close { position:absolute; top:-32px; right:0; background:#dc2626; color:#fff; border:none; border-radius:4px; padding:4px 12px; font-weight:700; cursor:pointer; font-size:13px; }
#b88-pop-box img { width:100%; height:auto; border-radius:10px; display:block; }

@media (max-width:900px) {
  .k33m-feats { grid-template-columns:repeat(2,1fr); }
  .k33m-2col { grid-template-columns:1fr; }
  .k33m-side { border-left:none; padding-left:0; border-top:1px solid #e5e7eb; padding-top:20px; }
  .k33m-grid-3 { grid-template-columns:repeat(2,1fr); }
  .k33m-ftr-in { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
  .k33m-hdr-top { padding:8px 10px; }
  .k33m-logo img { height:38px; }
  .k33m-btn { padding:6px 11px; font-size:11.5px; }
  .k33m-ctas { gap:6px; }
  .k33m-burger { display:inline-block; }
  .k33m-hdr-nav { display:none; }
  .k33m-hdr-nav.open { display:block; }
  .k33m-nav-in { flex-direction:column; align-items:flex-start; gap:6px; padding:10px 14px; }
  .k33m-home-box { margin:0 10px; padding:16px 14px; }
  .k33m-h1-center, .k33m-art h1 { font-size:20px; }
  .k33m-art h2 { font-size:18px; }
  .k33m-grid-3, .k33m-rel-grid { grid-template-columns:1fr; }
  .k33m-ftr-in { grid-template-columns:1fr; gap:18px; }
  #b88-sticky { width:100%; max-width:100%; left:0; transform:none; }
  .b88-st-row { grid-template-columns:1fr; }
  .b88-st-row a:nth-child(2) { display:none; }
}
