/* ===========================================================================
   JLV Blog — style.css  (clean redesign)
   =========================================================================== */

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Variables */
:root {
  --green: #3f7f14;
  --green-hover: #346b10;
  --green-light: #f0fdf4;
  --green-mid: #dcfce7;
  --green-border: #86efac;
  --accent: #22c55e;
  --bg: #f8f9fa;
  --surface: #fff;
  --border: #e8eaed;
  --border-light: #f1f3f5;
  --text: #1a1a2e;
  --text-2: #555;
  --muted2: #4b5563;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ===========================================================================
   SHARED
   =========================================================================== */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Badges — type */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-review {
  background: #fef3c7;
  color: #92400e;
}
.badge-tutorial {
  background: #dbeafe;
  color: #1e3a8a;
}
.badge-deal {
  background: #fee2e2;
  color: #991b1b;
}
.badge-compare {
  background: #ede9fe;
  color: #5b21b6;
}
.badge-best {
  background: #d1fae5;
  color: #065f46;
}
.badge-news {
  background: #f1f5f9;
  color: #475569;
}

/* Difficulty */
.badge-beginner {
  background: #d1fae5;
  color: #065f46;
}
.badge-medium {
  background: #fef3c7;
  color: #92400e;
}
.badge-advanced {
  background: #fee2e2;
  color: #991b1b;
}

/* Status */
.s-published {
  background: #d1fae5;
  color: #065f46;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.s-draft {
  background: #fef9c3;
  color: #854d0e;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.s-indexed {
  background: #d1fae5;
  color: #065f46;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.s-noindex {
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm {
  padding: 5px 12px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}
.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover {
  background: var(--green-hover);
}
.btn-dark {
  background: #1a1a2e;
  color: #fff;
}
.btn-dark:hover {
  background: #0f0f1a;
}
.btn-ghost {
  background: #fff;
  color: #555;
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: #f8f9fa;
}
.btn-red {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fca5a5;
}
.btn-red:hover {
  background: #fef2f2;
}

/* Inputs */
.inp,
.sel,
.ta {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.inp:focus,
.sel:focus,
.ta:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.inp.mono,
.ta.mono {
  font-family: "Courier New", monospace;
  font-size: 14px;
}
.ta {
  resize: vertical;
}
.lbl {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.hint {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 4px;
}
.frow {
  margin-bottom: 16px;
}
.fg2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fg3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Card shell */
.card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  margin-bottom: 16px;
}
.alert-ok {
  background: #f0fdf4;
  border: 1px solid var(--green-border);
  color: var(--green);
}
.alert-err {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
}

/* Pagination */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pager a,
.pager span {
  padding: 6px 14px;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: #555;
  transition: all 0.15s;
}
.pager a:hover {
  background: #f8f9fa;
}
.pager .cur {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 700;
}
.pager .dis {
  color: var(--muted2);
  pointer-events: none;
}
.pager-info {
  text-align: center;
  font-size: 13px;
  color: var(--muted2);
  margin-top: 10px;
}

/* Color dot */
.cdot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Misc */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================================================================
   FRONTEND — NAV
   =========================================================================== */
.nav {
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-in {
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  flex-shrink: 0;
}
.nav-logo-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-logo-tag {
  color: var(--muted2);
  font-weight: 400;
}
.nav-logo-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--green);
  color: var(--surface);
  padding: 3px 9px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.nav-menu a:hover {
  background: var(--green-light);
  color: var(--green);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
/* Inline search box always visible in nav */
.nav-search-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  transition: border-color 0.15s;
}
.nav-search-inline:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
.nsi-icon {
  font-size: 13px;
  color: var(--muted2);
  flex-shrink: 0;
}
.nav-search-inline input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 150px;
  color: var(--text);
}
.nsi-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted2);
  font-size: 13px;
  padding: 0 2px;
  flex-shrink: 0;
}
.nsi-clear:hover {
  color: var(--text-2);
}

/* Dedicated search results page */
.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-bottom: 16px;
}
.search-page-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s;
}
.search-page-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
.search-page-form button {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.search-page-form button:hover {
  background: var(--green-hover);
}
.search-page-count {
  color: var(--muted2);
  font-size: 14px;
  margin-bottom: 24px;
}
.search-page-count b {
  color: var(--text);
}

/* ===========================================================================
   FRONTEND — HERO
   =========================================================================== */
.hero {
  text-align: center;
  padding: 56px 16px 40px;
}
.hero-eyebrow {
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 8px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
  display: block;
}
.hero-sub {
  color: var(--muted2);
  max-width: 480px;
  margin: 12px auto 0;
  font-size: 16px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-stats a:hover .hnum {
  transform: scale(1.08);
}
.hnum {
  font-size: 30px;
  font-weight: 800;
  color: var(--green);
  display: block;
  transition: transform 0.2s;
}
.hlbl {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
}

/* Filter tabs */
.ftabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 32px;
}
.ftab {
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  transition: all 0.15s;
  background: #fff;
}
.ftab:hover {
  border-color: #aaa;
  color: var(--text);
}
.ftab.on {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Post grid */
.grid {
  display: grid;
  gap: 18px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Post card */
.pcard {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pcard:hover {
  box-shadow: var(--shadow);
  border-color: #d0d5dd;
}
.pcard-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s;
}
.pcard:hover .pcard-img {
  transform: scale(1.02);
}
.pcard-img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  font-size: 43px;
}
.pcard-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pcard-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.pcard-meta .dot {
  color: var(--border);
  font-size: 12px;
}
.pcard-meta .cat {
  font-size: 12px;
  color: var(--muted2);
}
.pcard-meta .dt {
  font-size: 12px;
  color: var(--muted2);
}
.pcard h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}
.pcard h2.lg {
  font-size: 20px;
}
.pcard h2.sm {
  font-size: 15px;
}
.pcard h2 a:hover {
  color: var(--green);
}
.pcard-exc {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.65;
  margin-bottom: 12px;
}
.pcard-exc.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}
.pcard-time {
  font-size: 13px;
  color: var(--muted2);
}
.pcard-rate {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pcard-rate .rn {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.pcard-rate .rs {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: -0.5px;
}
.pcard-diff {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 5px;
}
.diff-b {
  background: #16a34a;
}
.diff-m {
  background: #d97706;
}
.diff-a {
  background: #dc2626;
}

/* Type-specific left badges (News / Review / Best / Compare / Deal) —
   cùng base style với .pcard-diff, chỉ khác màu nền theo giá trị */
.sev-breaking {
  background: #dc2626;
}
.sev-update {
  background: #2563eb;
}
.price-budget {
  background: #2563eb;
}
.price-premium {
  background: #7c3aed;
}
.rating-high {
  background: #16a34a;
}
.rating-mid {
  background: #d97706;
}
.rating-low {
  background: #dc2626;
}
.cmp-count {
  background: #7c3aed;
}
.deal-pct {
  background: #dc2626;
}
.deal-pct.deal-expired {
  background: #9ca3af;
}
.pcard-meta-right {
  font-size: 13px;
  color: var(--muted2);
  text-decoration: none;
}
.pcard-meta-right:hover {
  color: var(--green);
}
.trending-tag {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  background: #ea580c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Home layout */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* Latest sidebar */
.sidebar-ttl {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.sidebar-ttl a {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--green);
  font-size: 14px;
}
.latest {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.latest-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lthumb {
  width: 60px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.lthumb-ph {
  background: var(--green-light);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.latest-info .lt-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 3px 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-info .lt-title:hover {
  color: var(--green);
}
.latest-info .lt-date {
  font-size: 12px;
  color: var(--muted2);
}

/* Bordered sidebar card (Latest Posts widget) */
.sidebar-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.sidebar-box .sidebar-ttl {
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border-light);
}
.sidebar-box .latest {
  gap: 0;
}
.sidebar-box .latest-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-box .latest-item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

/* Sidebar promo banner (MonsterONE-style ad) */
.promotion-banner-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #1d4ed8, #1e3a8a);
  color: #fff;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
}
.promotion-banner-wrapper:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.promotion-banner-body {
  position: relative;
  z-index: 2;
  padding: 20px 20px 14px;
}
.promotion-banner-logo {
  margin-bottom: 8px;
}
.promotion-banner-logo img {
  display: block;
  max-width: 220px;
  height: auto;
}
.promotion-banner-headline {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}
.promotion-banner-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.promotion-banner-features li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}
.promotion-banner-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.7;
}
.promotion-banner-features li strong {
  color: #fff;
}
.promotion-banner-visual {
  position: absolute;
  right: -6px;
  bottom: 68px;
  width: 130px;
  height: auto;
  z-index: 1;
  opacity: 0.95;
  pointer-events: none;
}
.promotion-banner-cta {
  position: relative;
  z-index: 2;
  background: #ea580c;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
}
.promotion-banner-cta strong {
  font-weight: 800;
}

/* ===========================================================================
   FRONTEND — SECTION HEADERS (Browse by Brand / Reviews / Tutorials / News)
   =========================================================================== */
.section-block {
  margin-top: 48px;
}
.section-eyebrow {
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid var(--border);
}
.sec-head-ttl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.sec-head-ttl .ico {
  font-size: 15px;
}
.sec-head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted2);
}
.sec-head-meta a {
  color: var(--green);
  font-weight: 600;
}
.sec-head-meta a:hover {
  text-decoration: underline;
}

/* Browse by brand */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.browse-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 10px 16px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.15s;
}
.browse-item:hover {
  box-shadow: var(--shadow);
  border-color: #d0d5dd;
  transform: translateY(-2px);
}
.browse-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  font-size: 20px;
  overflow: hidden;
}
.browse-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.browse-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 2px;
}
.browse-count {
  font-size: 12px;
  color: var(--muted2);
}
@media (max-width: 768px) {
  .browse-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .browse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Page header */
.ph {
  margin-bottom: 32px;
}
.ph-label {
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.ph h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
}
.ph-desc {
  color: var(--muted2);
  max-width: 580px;
  margin-top: 10px;
  line-height: 1.7;
  font-size: 16px;
}
.ph-count {
  font-size: 14px;
  color: var(--muted2);
  margin-top: 6px;
}

/* Sub tabs */
.stabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 0;
  margin-bottom: 32px;
}
.stab {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted2);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: all 0.15s;
}
.stab:hover {
  color: var(--text);
}
.stab.on {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Breadcrumb */
.bc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted2);
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.bc a:hover {
  color: var(--green);
}
.bc-sep {
  color: var(--border);
}

/* Single post */
.post-wrap {
  padding: 32px 0 64px;
}
.post-type-badge {
  margin-bottom: 12px;
}
.post-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 16px;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted2);
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.post-meta-bar a:hover {
  color: var(--green);
}
.author-chip {
  display: flex;
  align-items: center;
  gap: 6px;
}
.author-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.post-tags a {
  padding: 4px 11px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--green-mid);
}
.post-tags a:hover {
  background: var(--green-mid);
}
.post-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
  border: 1.5px solid var(--border);
}

/* Rating card */
.rating-card {
  background: var(--green-light);
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.rc-score {
  text-align: center;
  flex-shrink: 0;
}
.rc-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--green);
  display: block;
  line-height: 1;
}
.rc-stars {
  color: #f59e0b;
  font-size: 17px;
  display: block;
  margin: 5px 0;
}
.rc-of {
  font-size: 12px;
  color: var(--muted2);
}
.rc-info .rc-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.rc-info .rc-brand {
  font-size: 14px;
  color: var(--muted2);
}
.rc-info .rc-exc {
  font-size: 14px;
  color: var(--muted2);
  margin-top: 6px;
  line-height: 1.6;
}

/* Prose */
.prose {
  color: var(--text);
}
.prose h2 {
  font-size: 23px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 6px;
}
.prose h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 26px 0 8px;
  color: var(--text);
}
.prose h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 21px 0 6px;
  color: var(--text);
}
.prose p {
  margin-bottom: 18px;
  line-height: 1.8;
  color: #444;
}
.prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}
.prose ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
  color: #444;
  line-height: 1.7;
}
.prose ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 13px;
  top: 3px;
}
.prose ol {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 18px;
}
.prose ol li {
  margin-bottom: 6px;
  color: #444;
  line-height: 1.7;
  padding-left: 4px;
}
.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover {
  color: var(--green-hover);
}
.prose strong {
  font-weight: 700;
  color: var(--text);
}
.prose img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
  border: 1.5px solid var(--border);
}
.prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.7;
  border: 1px solid #1e293b;
}
.prose code {
  background: #f1f5f9;
  color: #e11d48;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 14px;
  font-family: "Courier New", monospace;
}
.prose pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.prose blockquote {
  border-left: 3px solid var(--green);
  padding: 12px 20px;
  background: var(--green-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  color: var(--text-2);
}
.prose blockquote p {
  margin: 0;
  color: var(--text-2);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.prose th {
  background: var(--green-light);
  font-weight: 700;
  color: var(--text);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1.5px solid var(--green-border);
}
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: #444;
}
.prose tr:last-child td {
  border-bottom: none;
}
.prose hr {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 32px 0;
}

/* Author bio */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #f8f9fa;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-top: 48px;
}
.author-box img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--green-mid);
}
.ab-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.ab-name:hover {
  color: var(--green);
}
.ab-role {
  font-size: 13px;
  color: var(--green);
  margin: 2px 0 8px;
  font-weight: 500;
}
.ab-bio {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.65;
}
.ab-socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.ab-socials a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted2);
  letter-spacing: 0.05em;
}
.ab-socials a:hover {
  color: var(--green);
}

/* Related */
.related-ttl {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

/* Author page */
.author-header {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.author-header img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-mid);
  flex-shrink: 0;
}
.ah-ph {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  font-weight: 800;
  color: var(--green);
  flex-shrink: 0;
}
.ah-info {
  flex: 1;
}
.ah-info h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}
.ah-role {
  color: var(--green);
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 15px;
}
.ah-bio {
  color: var(--muted2);
  line-height: 1.7;
  max-width: 560px;
  font-size: 16px;
}
.ah-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.ah-socials a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #f8f9fa;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  transition: all 0.15s;
}
.ah-socials a:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}
.ah-stat {
  text-align: center;
  flex-shrink: 0;
}
.ah-stat .n {
  font-size: 35px;
  font-weight: 800;
  color: var(--green);
  display: block;
}
.ah-stat .l {
  font-size: 12px;
  color: var(--muted23);
}

/* Footer */
.footer {
  border-top: 1.5px solid var(--border);
  background: #fff;
  margin-top: 80px;
}
.footer-in {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-follow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted2);
  text-transform: uppercase;
}
.footer-social-icons {
  display: flex;
  gap: 9px;
}
.footer-social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all 0.15s;
}
.footer-social-icons a:hover {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.footer-social-icons svg {
  width: 16px;
  height: 16px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  color: var(--text-2);
}
.footer-nav a:hover {
  color: var(--green);
}
.footer-disclaimer {
  font-size: 13px;
  color: var(--muted2);
  max-width: 520px;
  line-height: 1.6;
}
.footer-divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 2px 0 0;
}
.footer-bottom {
  font-size: 13px;
  color: var(--muted2);
}
.footer-brand {
  font-weight: 700;
  color: var(--muted2);
}
@media (max-width: 560px) {
  .footer-nav {
    gap: 14px 18px;
    font-size: 13px;
  }
}

/* 404 */
.e404 {
  text-align: center;
  padding: 96px 16px;
  max-width: 480px;
  margin: 0 auto;
}
.e404-code {
  font-size: 86px;
  font-weight: 800;
  color: #e8eaed;
  font-family: "Courier New", monospace;
  line-height: 1;
}
.e404 h1 {
  font-size: 24px;
  color: var(--text);
  margin: 12px 0 8px;
}
.e404 p {
  color: var(--muted2);
  margin-bottom: 32px;
}
.e404-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===========================================================================
   ADMIN
   =========================================================================== */
.adm {
  display: flex;
  min-height: 100vh;
  background: #f4f6f9;
}

/* Sidebar */
.adm-side {
  width: 200px;
  background: #fff;
  border-right: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100%;
  z-index: 50;
}
.adm-brand {
  padding: 18px 20px;
  border-bottom: 1.5px solid var(--border-light);
}
.adm-brand .bn {
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.adm-brand .bs {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: var(--muted2);
}
.adm-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}
.adm-sec {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 10px 5px;
}
.adm-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 8px;
  transition: all 0.15s;
  margin-bottom: 1px;
}
.adm-nav a:hover {
  background: var(--green-light);
  color: var(--green);
}
.adm-nav a.on {
  background: var(--green-light);
  color: var(--green);
  font-weight: 600;
}
.adm-nav a.on::before {
  content: "";
  width: 3px;
  height: 16px;
  background: var(--green);
  border-radius: 2px;
  margin-right: 2px;
}
.adm-out {
  border-top: 1.5px solid var(--border-light);
  padding: 10px;
}
.adm-out a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 14px;
  color: #dc2626;
  border-radius: 8px;
}
.adm-out a:hover {
  background: #fef2f2;
}

/* Main area */
.adm-main {
  margin-left: 200px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.adm-top {
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}
.adm-top h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-2);
}
.adm-top-r {
  display: flex;
  align-items: center;
  gap: 8px;
}
.adm-body {
  flex: 1;
  padding: 24px;
}

/* Panels */
.panel {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-head {
  padding: 12px 20px;
  border-bottom: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.panel-body {
  padding: 20px;
}

/* Table */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
  background: #fafbfc;
}
.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.tbl tbody tr:last-child td {
  border-bottom: none;
}
.tbl tbody tr:hover td {
  background: #fafbfc;
}
.tbl .ttl {
  font-weight: 600;
  color: var(--text);
}
.tbl .slg {
  font-size: 12px;
  color: var(--muted2);
  font-family: "Courier New", monospace;
  margin-top: 2px;
}
.tbl .thumb {
  width: 38px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.tbl .thumb-ph {
  width: 38px;
  height: 30px;
  background: var(--green-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted2);
}

/* Page header admin */
.adm-ph {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.adm-ph h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}
.adm-ph p {
  font-size: 14px;
  color: var(--muted2);
  margin-top: 3px;
}

/* Two-col */
.adm-2col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* Stats grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.stat-box .sn {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}
.stat-box .sl {
  font-size: 13px;
  color: var(--muted2);
  margin-top: 3px;
}

/* Color picker row */
.color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-row input[type="color"] {
  width: 40px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
}

/* Checkbox box */
.cbox {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.cbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cbox-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--green);
  width: 15px;
  height: 15px;
}
.cbox-lbl {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.cbox-desc {
  font-size: 13px;
  color: var(--muted2);
  margin-top: 3px;
  line-height: 1.5;
}

/* Tags grid in post form */
.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
}
.tags-grid input[type="checkbox"] {
  accent-color: var(--green);
}

/* Archive row */
.arc-row {
  display: grid;
  grid-template-columns: 1fr 100px 70px 140px 90px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.arc-row:last-child {
  border-bottom: none;
}
.arc-row:hover {
  background: #fafbfc;
}
.arc-row.editing {
  background: var(--green-light);
}

/* Login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f9;
}
.login-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow);
}
.login-brand {
  text-align: center;
  margin-bottom: 32px;
}
.login-brand .ln {
  font-family: "Courier New", monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.login-brand .ls {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: var(--muted2);
  margin-top: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .adm-2col {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .nav-menu a {
    padding: 5px 7px;
    font-size: 11px;
  }
}
@media (max-width: 768px) {
  .nav-in {
    grid-template-columns: auto auto;
  }
  .nav-menu {
    display: none;
  }
  .nav-search-inline input {
    width: 90px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .fg2,
  .fg3 {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 30px;
  }
  .post-title {
    font-size: 26px;
  }
  .adm-side {
    transform: translateX(-100%);
  }
  .adm-main {
    margin-left: 0;
  }
  .author-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ah-socials {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-search-inline input {
    width: 60px;
  }
  .wrap,
  .wrap-sm {
    padding: 0 16px;
  }
  .rating-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ===========================================================================
   MOBILE OFFCANVAS MENU
   =========================================================================== */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 22px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.nav-burger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}
.offcanvas-overlay.show {
  opacity: 1;
  visibility: visible;
}
.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 280px;
  max-width: 80vw;
  background: #fff;
  z-index: 200;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.offcanvas.show {
  transform: translateX(0);
}
.offcanvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border);
}
.offcanvas-head .nav-logo {
  font-size: 15px;
}
.offcanvas-close {
  font-size: 24px;
  color: var(--muted2);
  line-height: 1;
  padding: 4px 8px;
}
.offcanvas-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.offcanvas-body a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: 10px;
  margin-bottom: 2px;
}
.offcanvas-body a:hover,
.offcanvas-body a:active {
  background: var(--green-light);
  color: var(--green);
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
}
