/* ════════════════════════════════════
   BLOG DETAIL PAGE
════════════════════════════════════ */

/* HERO */
.bd-hero{
  min-height:380px;
  display:flex;align-items:flex-end;
  position:relative;overflow:hidden;
  padding-top:calc(var(--nav-h)+56px);
  padding-bottom:48px;
  background:var(--rp-blue);
}
.bd-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(8,15,46,.55) 0%,rgba(8,15,46,.9) 100%);
}
.bd-cat-badge{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--rp-orange);color:#fff;
  border-radius:var(--r-pill);
  padding:5px 16px;font-size:11px;font-weight:700;
  letter-spacing:1.2px;text-transform:uppercase;margin-bottom:14px;
}
.bd-hero-title{
  font-family:var(--font-display);
  font-size:clamp(1.7rem,3.5vw,2.4rem);
  font-weight:900;color:#fff;line-height:1.2;margin-bottom:20px;
}
.bd-hero-meta{
  display:flex;flex-wrap:wrap;align-items:center;
  gap:20px;font-size:13px;color:rgba(255,255,255,.6);
}
.bd-hero-meta span{display:flex;align-items:center;gap:6px}
.bd-hero-meta i{color:var(--rp-orange)}
.bd-hero-meta .bd-author-chip{
  display:flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.15);
  border-radius:var(--r-pill);padding:5px 12px;
}
.bd-author-av{
  width:26px;height:26px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:10px;font-weight:700;color:#fff;flex-shrink:0;
}

/* ARTICLE HERO IMAGE */
.bd-featured-img{
  width:100%;height:360px;
  border-radius:var(--r-2xl);
  display:flex;align-items:center;justify-content:center;
  font-size:100px;margin-bottom:40px;
  position:relative;overflow:hidden;
  box-shadow:var(--sh-lg);
}
.bd-featured-img-overlay{
  position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(0,0,0,.3),transparent);
}

/* ARTICLE BODY */
.article-body{
  font-size:15.5px;line-height:1.9;
  color:var(--rp-gray-700);
}
.article-body h2{
  font-family:var(--font-display);
  font-size:22px;font-weight:800;color:var(--rp-blue);
  margin:44px 0 16px;padding-top:4px;
  border-top:2px solid var(--rp-gray-100);
  padding-top:20px;
}
.article-body h3{
  font-family:var(--font-display);
  font-size:18px;font-weight:700;color:var(--rp-blue);
  margin:32px 0 12px;
}
.article-body p{margin-bottom:20px}
.article-body ul,.article-body ol{
  margin:0 0 22px 4px;padding-left:22px;
}
.article-body li{margin-bottom:10px;padding-left:4px}
.article-body blockquote{
  border-left:4px solid var(--rp-orange);
  padding:20px 24px;
  background:rgba(244,96,26,.05);
  border-radius:0 var(--r-xl) var(--r-xl) 0;
  margin:32px 0;font-style:italic;
  color:var(--rp-gray-600);font-size:15.5px;line-height:1.8;
}
.article-body blockquote::before{
  content:'\201C';font-size:48px;font-family:Georgia,serif;
  color:rgba(244,96,26,.3);display:block;
  line-height:1;margin-bottom:-8px;
}
.article-body strong{color:var(--rp-blue);font-weight:700}
.article-body a{color:var(--rp-orange);text-decoration:underline;text-decoration-color:rgba(244,96,26,.4)}
.article-body a:hover{color:var(--rp-blue)}
.article-body .highlight-box{
  background:linear-gradient(135deg,#f0f7ff,#e8f2ff);
  border:1.5px solid rgba(15,37,87,.12);
  border-radius:var(--r-xl);
  padding:28px 32px;margin:32px 0;
  border-left:4px solid var(--rp-blue);
}
.article-body .highlight-box h4{
  font-family:var(--font-display);font-size:16px;font-weight:700;
  color:var(--rp-blue);margin-bottom:14px;
  display:flex;align-items:center;gap:8px;
}
.article-body .highlight-box ul{margin-bottom:0}

/* VIDEO EMBED in article */
.article-video{
  position:relative;padding-bottom:56.25%;
  height:0;overflow:hidden;
  border-radius:var(--r-xl);margin:32px 0;
  box-shadow:var(--sh-md);
}
.article-video iframe{
  position:absolute;top:0;left:0;
  width:100%;height:100%;border:none;
}
.article-video-placeholder{
  width:100%;aspect-ratio:16/9;
  border-radius:var(--r-xl);margin:32px 0;
  background:linear-gradient(135deg,var(--rp-blue),#1a3a8f);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  cursor:pointer;position:relative;overflow:hidden;
  box-shadow:var(--sh-md);
}
.avp-play{
  width:68px;height:68px;border-radius:50%;
  background:rgba(255,255,255,.95);
  display:flex;align-items:center;justify-content:center;
  font-size:26px;color:var(--rp-orange);
  box-shadow:0 8px 32px rgba(0,0,0,.3);
  transition:var(--t-base);margin-bottom:12px;
}
.article-video-placeholder:hover .avp-play{transform:scale(1.12)}
.avp-label{font-size:13px;font-weight:600;color:rgba(255,255,255,.85)}

/* SHARE STRIP */
.article-share-strip{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:20px 24px;
  background:var(--rp-off);
  border-radius:var(--r-xl);
  border:1.5px solid var(--rp-gray-100);
  margin:36px 0;
}
.share-label{font-size:13px;font-weight:700;color:var(--rp-gray-600);flex-shrink:0}
.share-btn{
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 18px;border-radius:var(--r-pill);
  font-size:12.5px;font-weight:600;transition:var(--t-fast);
  text-decoration:none;flex-shrink:0;
}
.share-fb{background:#1877f2;color:#fff}.share-fb:hover{background:#0d65d9;color:#fff}
.share-tw{background:#000;color:#fff}.share-tw:hover{background:#333;color:#fff}
.share-wa{background:#25d366;color:#fff}.share-wa:hover{background:#1cb955;color:#fff}
.share-ln{background:#0077b5;color:#fff}.share-ln:hover{background:#005e8f;color:#fff}
.share-copy{background:var(--rp-gray-100);color:var(--rp-gray-700);border:none;cursor:pointer}
.share-copy:hover{background:var(--rp-gray-200)}

/* TAGS */
.tag-pill{
  display:inline-block;padding:6px 16px;
  background:var(--rp-off);border:1.5px solid var(--rp-gray-100);
  border-radius:var(--r-pill);font-size:12px;font-weight:600;
  color:var(--rp-gray-600);margin:3px;transition:var(--t-fast);
  text-decoration:none;cursor:pointer;
}
.tag-pill:hover{border-color:var(--rp-orange);color:var(--rp-orange)}

/* AUTHOR CARD */
.author-card{
  background:linear-gradient(135deg,var(--rp-off),#fff);
  border:1.5px solid var(--rp-gray-100);
  border-radius:var(--r-2xl);
  padding:28px 32px;
  display:flex;gap:20px;align-items:flex-start;
  margin-top:40px;
}
.author-avatar{
  width:76px;height:76px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:26px;font-weight:700;color:#fff;flex-shrink:0;
  box-shadow:0 4px 16px rgba(0,0,0,.15);
}
.author-name{
  font-family:var(--font-display);font-size:18px;font-weight:700;
  color:var(--rp-blue);margin-bottom:3px;
}
.author-role{font-size:13px;color:var(--rp-orange);font-weight:600;margin-bottom:10px}
.author-bio{font-size:14px;color:var(--rp-gray-600);line-height:1.7;margin:0}

/* RELATED POSTS */
.related-post-card{
  background:#fff;
  border:1.5px solid var(--rp-gray-100);
  border-radius:var(--r-xl);
  overflow:hidden;
  transition:var(--t-base);height:100%;
  display:flex;flex-direction:column;
  text-decoration:none;
}
.related-post-card:hover{
  box-shadow:var(--sh-md);
  transform:translateY(-5px);
  border-color:var(--rp-gray-200);
}
.rpc-thumb{
  height:150px;
  display:flex;align-items:center;justify-content:center;
  font-size:60px;
}
.rpc-body{padding:20px;flex:1;display:flex;flex-direction:column}
.rpc-cat{
  font-size:10px;font-weight:700;letter-spacing:1.8px;
  text-transform:uppercase;color:var(--rp-orange);margin-bottom:8px;
}
.rpc-title{
  font-family:var(--font-display);font-size:15px;font-weight:700;
  color:var(--rp-blue);line-height:1.4;margin-bottom:12px;flex:1;
}
.rpc-meta{font-size:12px;color:var(--rp-gray-400)}

/* READING PROGRESS */
.reading-progress{
  position:fixed;top:0;left:0;height:3px;
  background:linear-gradient(90deg,var(--rp-orange),#ff8c52);
  z-index:9999;width:0%;transition:width .1s linear;
}

/* ────────────────────────────────────
   SIDEBAR
──────────────────────────────────── */
.bd-sidebar{
  position:sticky;
  top:calc(var(--nav-h)+20px);
  display:flex;flex-direction:column;gap:20px;
}
.sidebar-widget{
  background:#fff;
  border:1.5px solid var(--rp-gray-100);
  border-radius:var(--r-xl);
  padding:24px;
}
.sidebar-widget h5{
  font-family:var(--font-display);
  font-size:15px;font-weight:700;color:var(--rp-blue);
  margin-bottom:16px;padding-bottom:12px;
  border-bottom:2px solid var(--rp-gray-50);
  display:flex;align-items:center;gap:8px;
}
/* TOC */
.toc-link{
  display:block;
  padding:9px 14px;
  font-size:13.5px;color:var(--rp-gray-600);
  border-left:3px solid var(--rp-gray-100);
  margin-bottom:3px;transition:var(--t-fast);
  text-decoration:none;border-radius:0 var(--r-sm) var(--r-sm) 0;
  line-height:1.45;
}
.toc-link:hover{
  border-left-color:var(--rp-orange);
  color:var(--rp-blue);
  background:rgba(244,96,26,.04);
  padding-left:18px;
}
.toc-link.active{
  border-left-color:var(--rp-orange);
  color:var(--rp-orange);font-weight:600;
  background:rgba(244,96,26,.05);
  padding-left:18px;
}
/* More posts in sidebar */
.more-post-link{
  display:flex;gap:12px;align-items:flex-start;
  padding:12px 0;border-bottom:1px solid var(--rp-gray-50);
  text-decoration:none;transition:var(--t-fast);
}
.more-post-link:last-child{border-bottom:none}
.more-post-link:hover .mpl-title{color:var(--rp-orange)}
.mpl-thumb{
  width:56px;height:56px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;flex-shrink:0;
}
.mpl-title{
  font-family:var(--font-display);font-size:13px;font-weight:600;
  color:var(--rp-gray-700);line-height:1.4;margin-bottom:4px;
  transition:var(--t-fast);
}
.mpl-date{font-size:11.5px;color:var(--rp-gray-400)}

/* NEWSLETTER in sidebar */
.sidebar-nl input{
  width:100%;padding:11px 14px;
  border:1.5px solid var(--rp-gray-200);
  border-radius:var(--r-md);font-size:13.5px;
  outline:none;transition:var(--t-fast);
  background:#fff;color:var(--rp-gray-800);
  margin-bottom:8px;
}
.sidebar-nl input:focus{border-color:var(--rp-orange)}
.sidebar-nl button{width:100%;justify-content:center}

@media(max-width:992px){
  .bd-sidebar{position:static}
  .author-card{flex-direction:column}
  .bd-featured-img{height:240px;font-size:70px}
}
@media(max-width:768px){
  .bd-hero-title{font-size:1.5rem}
  .article-body{font-size:15px}
  .article-body h2{font-size:19px}
  .author-avatar{width:60px;height:60px}
  .bd-featured-img{height:180px}
}
