/*
 Theme Name: NET88 Child
 Template: generatepress
 Version: 1.0.0
*/
:root {
  --n88-top: #1D1D1D;
  --n88-nav: #085095;
  --n88-red: #DE0D3E;
  --n88-org: #FF942A;
  --n88-bg: #F5F7FA;
  --n88-card: #FFFFFF;
  --n88-text: #1E293B;
  --n88-muted: #64748B;
}
html, body {
  margin: 0; padding: 0;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--n88-bg) !important;
  color: var(--n88-text);
  overflow-x: clip;
  line-height: 1.72;
}
header.site-header, footer.site-info, .site-footer, #right-sidebar, .sidebar, .widget-area,
footer.entry-meta, .entry-meta, .post-navigation, .comments-area, #comments,
.page-header-image, .featured-image.page-header-image, .page-header {
  display: none !important;
}
#page, .site-content, .inside-article, .entry-content {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 100%;
  min-width: 0;
  display: block !important;
  box-sizing: border-box;
}
/* Sticky 2-Tier Header */
.n88-header { position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 12px rgba(0,0,0,0.18); }
.n88-top { background: var(--n88-top); padding: 10px 16px; }
.n88-top-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.n88-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.n88-brand img.n88-logo { height: 38px; width: auto; display: block; }
.n88-brand img.n88-cp { height: 32px; width: auto; display: block; }
.n88-ctas { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.n88-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 6px; font-weight: 700; font-size: 13px; text-decoration: none !important; color: #FFFFFF !important; text-transform: uppercase; letter-spacing: 0.4px; transition: opacity .15s; white-space: nowrap; }
.n88-btn:hover { opacity: 0.9; }
.n88-btn-login { background: var(--n88-red); }
.n88-btn-reg { background: var(--n88-org); }
.n88-nav { background: var(--n88-nav); }
.n88-nav ul { max-width: 1180px; margin: 0 auto; padding: 0 12px; list-style: none; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px; }
.n88-nav li a { display: block; padding: 11px 12px; color: #F5F5F5 !important; text-decoration: none !important; font-size: 13.5px; font-weight: 600; transition: background .15s; white-space: nowrap; }
.n88-nav li a:hover { background: rgba(255,255,255,0.14); }

/* Main Container */
.n88-wrap { max-width: 1140px; margin: 0 auto; padding: 20px 16px 40px; box-sizing: border-box; }
.n88-hero { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 24px rgba(8,80,149,0.14); background: #0d1117; margin-bottom: 18px; }
.n88-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.n88-hero-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 14px 16px; background: #1D1D1D; }
.n88-hero-bar .n88-btn { padding: 11px 28px; font-size: 14px; }

/* Quick Category & 4-Step Grid */
.n88-sec-title { font-size: 20px; font-weight: 800; color: #085095; margin: 26px 0 14px; padding-left: 12px; border-left: 4px solid var(--n88-red); text-transform: uppercase; }
.n88-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 24px; }
.n88-cat-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; padding: 14px 10px; text-align: center; text-decoration: none !important; color: #0F172A !important; font-weight: 700; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform .15s, border-color .15s; }
.n88-cat-card:hover { transform: translateY(-2px); border-color: var(--n88-nav); color: var(--n88-nav) !important; }
.n88-cat-card span { display: block; font-size: 11.5px; font-weight: 500; color: var(--n88-muted); margin-top: 4px; }

.n88-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 28px; }
.n88-step { background: #fff; border-radius: 10px; padding: 16px; border-top: 3px solid var(--n88-nav); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.n88-step b { display: block; color: var(--n88-red); font-size: 15px; margin-bottom: 6px; }
.n88-step p { margin: 0; font-size: 13.5px; color: var(--n88-muted); }

/* Article Box */
.n88-article { background: #FFFFFF; border-radius: 12px; padding: 28px 32px; box-shadow: 0 2px 12px rgba(15,23,42,0.06); max-width: 1060px; margin: 0 auto 28px; box-sizing: border-box; }
.n88-bc { font-size: 13px; color: var(--n88-muted); margin-bottom: 12px; }
.n88-bc a { color: var(--n88-nav); text-decoration: none; font-weight: 600; }
.n88-article h1 { font-size: 28px; line-height: 1.32; color: #0F172A; margin: 0 0 14px; font-weight: 800; }
.n88-meta { font-size: 13px; color: var(--n88-muted); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #E2E8F0; }
.n88-article h2 { font-size: 21px; color: #085095; margin: 26px 0 12px; padding-left: 10px; border-left: 4px solid var(--n88-red); font-weight: 800; }
.n88-article h3 { font-size: 17px; color: #1E293B; margin: 18px 0 8px; font-weight: 700; }
.n88-article p { margin: 0 0 14px; font-size: 15.5px; }
.n88-article a { color: #085095; font-weight: 600; }
.n88-article ul, .n88-article ol { margin: 0 0 16px 20px; }
.n88-article li { margin-bottom: 6px; }
.n88-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.n88-content th, .n88-content td { border: 1px solid #CBD5E1; padding: 10px 12px; text-align: left; }
.n88-content th { background: #085095; color: #fff; }
article figure, .n88-article figure { margin: 18px auto 22px !important; text-align: center !important; max-width: 800px; }
article figure img, .n88-article figure img { margin: 0 auto !important; display: block !important; max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
article figcaption, .n88-article figcaption { font-size: 13px; color: var(--n88-muted); margin-top: 8px; font-style: italic; }

/* TOC */
.n88-toc { background: #F8FAFC; border: 1px solid #CBD5E1; border-radius: 10px; padding: 14px 18px; margin: 16px 0 22px; }
.n88-toc-title { font-weight: 800; color: #085095; margin-bottom: 8px; font-size: 15px; }
.n88-toc ul { margin: 0; padding-left: 18px; }
.n88-toc li { margin-bottom: 4px; font-size: 14px; }
.n88-toc a { color: #1E293B; text-decoration: none; font-weight: 500; }
.n88-toc a:hover { color: var(--n88-red); }

/* Author Box */
.n88-author { display: flex; gap: 16px; align-items: center; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 16px 20px; margin-top: 28px; }
.n88-author-av { width: 54px; height: 54px; border-radius: 50%; background: var(--n88-nav); color: #fff; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.n88-author h4 { margin: 0 0 4px; font-size: 15.5px; color: #0F172A; }
.n88-author p { margin: 0; font-size: 13.5px; color: var(--n88-muted); }

/* Post Grid (Archive + Related) */
.n88-post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.n88-post-grid > * { min-width: 0; max-width: 100%; }
.n88-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; overflow: hidden; text-decoration: none !important; color: #0F172A !important; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform .15s; }
.n88-card:hover { transform: translateY(-2px); }
.n88-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.n88-card-body { padding: 12px; }
.n88-card-title { font-size: 14.5px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; color: #0F172A; }
.n88-card-ex { font-size: 12.5px; color: var(--n88-muted); margin: 0; }

/* Footer matching net88.recipes */
.n88-footer { background: #FFFFFF; border-top: 2px solid #E2E8F0; margin-top: 32px; color: #475569; }
.n88-footer-in { max-width: 1140px; margin: 0 auto; padding: 32px 16px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.n88-footer-in > * { min-width: 0; max-width: 100%; }
.n88-footer h3 { font-size: 14.5px; color: #085095; margin: 0 0 10px; font-weight: 800; text-transform: uppercase; }
.n88-footer ul { list-style: none; padding: 0; margin: 0; }
.n88-footer li { margin-bottom: 7px; font-size: 13.5px; }
.n88-footer a { color: #334155; text-decoration: none; }
.n88-footer a:hover { color: var(--n88-red); }
.n88-copy { background: #151515; color: #94A3B8; text-align: center; padding: 14px 16px 84px; font-size: 13px; }

/* Sticky Bottom GIF (1160px PC / 100% Mobile) & Popup GIF */
.n88-sticky { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 1160px; max-width: 96vw; z-index: 9998; background: rgba(15,23,42,0.92); border-radius: 8px 8px 0 0; padding: 6px; box-shadow: 0 -4px 18px rgba(0,0,0,0.3); }
.n88-sticky-row { display: flex; gap: 8px; align-items: center; justify-content: center; }
.n88-sticky-row a { flex: 1; display: block; }
.n88-sticky-row img { width: 100%; height: auto; display: block; border-radius: 5px; }
.n88-sticky-close { position: absolute; top: -22px; right: 0; background: #DE0D3E; color: #fff; border: none; border-radius: 4px 4px 0 0; padding: 3px 10px; font-size: 11px; font-weight: 700; cursor: pointer; }

.n88-pop-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 99999; align-items: center; justify-content: center; padding: 16px; }
.n88-pop-box { position: relative; max-width: 520px; width: 100%; }
.n88-pop-box img { width: 100%; height: auto; border-radius: 10px; display: block; }
.n88-pop-close { position: absolute; top: -14px; right: -10px; width: 32px; height: 32px; border-radius: 50%; background: #DE0D3E; color: #fff; border: 2px solid #fff; font-weight: 800; font-size: 16px; cursor: pointer; }

@media (max-width: 768px) {
  .n88-top-in { flex-wrap: nowrap; gap: 8px; }
  .n88-brand img.n88-logo { height: 28px; }
  .n88-brand img.n88-cp { display: none; }
  .n88-btn { padding: 7px 11px; font-size: 11.5px; }
  .n88-nav ul { flex-wrap: wrap; justify-content: center; overflow-x: visible; padding: 4px 6px; }
  .n88-nav li a { padding: 7px 8px; font-size: 12px; }
  .n88-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .n88-steps { grid-template-columns: repeat(2, 1fr); }
  .n88-post-grid { grid-template-columns: repeat(2, 1fr); }
  .n88-footer-in { grid-template-columns: 1fr; }
  .n88-article { padding: 18px 14px; }
  .n88-article h1 { font-size: 22px; }
  .n88-content table { display: block; overflow-x: auto; width: 100%; }
  .n88-sticky { width: 100%; max-width: 100%; border-radius: 0; padding: 4px; }
  .n88-sticky-row a:nth-child(2) { display: none; }
}
