:root {
  --navy:    #1a1f3c;
  --red:     #e8402a;
  --red-dk:  #c23220;
  --gold:    #e5a524;
  --light:   #f5f6fa;
  --white:   #ffffff;
  --text:    #1a1f3c;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --radius:  10px;
}
*{box-sizing:border-box;margin:0;padding:0;}

/* ── PAGE SHELL ─────────────────────────────── */
.fp-page {
  background: var(--light);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  padding-bottom: 60px;
}

/* ── HERO BANNER (below header) ─────────────── */
.fp-hero {
  background: var(--navy);
  padding: 54px 0 40px;
  position: relative;
  overflow: hidden;
}
.fp-hero::before {
  content: 'POST';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 160px;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.fp-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.fp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.fp-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.fp-breadcrumb a:hover { color: var(--gold); }
.fp-breadcrumb span { color: rgba(255,255,255,0.25); }
.fp-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.fp-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  color: #fff;
  line-height: 1.25;
  max-width: 780px;
  margin-bottom: 16px;
}
.fp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.fp-hero-meta i { margin-right: 5px; color: var(--gold); }
.fp-hero-meta a { color: rgba(255,255,255,0.7); text-decoration: none; }
.fp-hero-meta a:hover { color: var(--gold); }

/* ── MAIN LAYOUT ─────────────────────────────── */
.fp-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 20px 0;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 28px;
  align-items: start;
}
@media(max-width:900px){ .fp-layout{grid-template-columns:1fr;} }

/* ── FLASH MESSAGES ──────────────────────────── */
.fp-flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 22px;
}
.fp-flash-err { background:#fff0ef; border:1px solid #fbc5be; color:#c0392b; }
.fp-flash-ok  { background:#f0faf4; border:1px solid #a7d7b8; color:#1a7340; }
.fp-flash i { margin-top: 2px; flex-shrink: 0; }

/* ── POST IMAGE ──────────────────────────────── */
.fp-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  line-height: 0;
  box-shadow: 0 4px 24px rgba(26,31,60,.10);
}
.fp-img-wrap img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.fp-img-wrap:hover img { transform: scale(1.015); }

/* ── POST BODY CARD ──────────────────────────── */
.fp-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(26,31,60,.05);
}
@media(max-width:600px){ .fp-card{padding:22px 18px;} }

.fp-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}
.fp-accent-line {
  width: 44px; height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 20px;
}
.fp-post-text {
  font-size: 15.5px;
  line-height: 1.85;
  color: #374151;
  white-space: pre-wrap;
}

/* ── SECTION HEADING ─────────────────────────── */
.fp-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.fp-section-head h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.fp-section-head .count-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.fp-section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── COMMENT ITEM ────────────────────────────── */
.comment-wrap {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.comment-wrap:last-child { border-bottom: none; }

.comment-row {
  display: flex;
  gap: 14px;
}
.c-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.c-body { flex: 1; min-width: 0; }
.c-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.c-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.c-date { font-size: 12px; color: var(--muted); }
.c-text { font-size: 14px; line-height: 1.7; color: #4b5563; }

/* reply toggle btn */
.btn-reply-tog {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 5px 0;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.btn-reply-tog:hover { color: var(--red); }

/* inline reply form */
.reply-box {
  display: none;
  margin-top: 12px;
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.reply-box.open { display: block; }
.reply-box-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 12px;
}

/* nested replies */
.replies-nest {
  margin-top: 14px;
  padding-left: 20px;
  border-left: 2px solid #e8e8f0;
}
.reply-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.reply-item:last-child { border-bottom: none; }
.r-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #e8eaf3;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* ── FORM INPUTS ─────────────────────────────── */
.fp-input-wrap {
  position: relative;
  margin-bottom: 14px;
}
.fp-input-wrap .fi-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}
.fp-inp {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 10px 12px 10px 34px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.fp-inp:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,31,60,.08);
}
.fp-inp::placeholder { color: #adb5bd; }
.fp-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  resize: vertical;
  min-height: 110px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 14px;
}
.fp-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,31,60,.08);
}
.fp-textarea::placeholder { color: #adb5bd; }

.inp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media(max-width:520px){ .inp-row{grid-template-columns:1fr;} }

/* ── SUBMIT BTN ──────────────────────────────── */
.btn-fp-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 28px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-fp-submit:hover  { background: var(--red-dk); }
.btn-fp-submit:active { transform: scale(.97); }

/* reply feedback */
.rfb {
  display: none;
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
}
.rfb.ok  { background:#f0faf4; color:#1a7340; display:block; }
.rfb.err { background:#fff0ef; color:#c0392b; display:block; }

/* ── SIDEBAR ─────────────────────────────────── */
.fp-sidebar { display: flex; flex-direction: column; gap: 22px; }

.s-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26,31,60,.04);
}
.s-box-head {
  background: var(--navy);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.s-box-head h6 {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  color: #fff;
  margin: 0;
  font-weight: 700;
}
.s-box-head .sh-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}
.s-box-body { padding: 16px 18px; }

/* categories */
.cat-pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 13px;
  margin: 3px 2px;
  text-decoration: none;
  transition: all .2s;
}
.cat-pill:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  text-decoration: none;
}

/* recent posts */
.recent-a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.recent-a:last-child { border-bottom: none; padding-bottom: 0; }
.recent-a img {
  width: 64px; height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.recent-a:hover .recent-a-title { color: var(--red); }
.recent-a-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.45;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-a-date { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* social links */
.soc-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 8px;
  transition: all .2s;
}
.soc-btn:last-child { margin-bottom: 0; }
.soc-btn:hover { border-color: var(--navy); background: var(--navy); color: #fff; text-decoration: none; }
.soc-btn i { width: 18px; text-align: center; }


/* agar code post kru to //code categroy css */
/* ── PREMIUM CODE BLOCK ──────────────────────────────────── */
.fp-post-text pre {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%) !important;
    color: #e6edf3 !important;
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    border: 1px solid rgba(99,102,241,0.25) !important;
    white-space: pre-wrap !important;
    font-family: 'Courier New', Consolas, monospace !important;
    margin: 20px 0 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 
                0 0 0 1px rgba(99,102,241,0.1) !important;
    position: relative !important;
    word-break: break-word !important;
}

/* Top bar — VS Code jaisa */
.fp-post-text pre::before {
    content: '⬤  ⬤  ⬤';
    display: block !important;
    background: #1c2128 !important;
    color: transparent !important;
    text-shadow: 0 0 0 #ff5f57, 8px 0 0 #febc2e, 16px 0 0 #28c840 !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    letter-spacing: 2px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.fp-post-text pre code {
    display: block !important;
    padding: 20px 24px !important;
    font-size: 13.5px !important;
    line-height: 1.85 !important;
    color: #e6edf3 !important;
    background: none !important;
    font-family: 'Courier New', Consolas, monospace !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

/* Line numbers effect */
.fp-post-text pre code::before {
    content: '';
    position: absolute;
    left: 0; top: 42px; bottom: 0;
    width: 48px;
    background: rgba(255,255,255,0.02) !important;
    border-right: 1px solid rgba(255,255,255,0.05) !important;
}

/* Keywords highlight */
.fp-post-text pre h1,
.fp-post-text pre h2,
.fp-post-text pre h3 {
    font-size: 13.5px !important;
    font-weight: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #79c0ff !important;
    display: inline !important;
}

/* Copy button */
.fp-code-wrap {
    position: relative !important;
}
.fp-copy-btn {
    position: absolute !important;
    top: 46px !important;
    right: 12px !important;
    background: rgba(99,102,241,0.15) !important;
    border: 1px solid rgba(99,102,241,0.3) !important;
    color: #a5b4fc !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    font-family: sans-serif !important;
    transition: all 0.2s !important;
    z-index: 10 !important;
}
.fp-copy-btn:hover {
    background: rgba(99,102,241,0.3) !important;
    color: #fff !important;
}