/* ==========================================================================
   PPCTrace - Blog Detail Page Styles
   (Loads alongside common.css)
   ========================================================================== */

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.bd-breadcrumb {
  padding: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted2);
  margin: 0;
}
.bd-breadcrumb a { color: var(--muted2); }
.bd-breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--muted2); font-size: 10px; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ==========================================================================
   Article Wrapper
   ========================================================================== */
.article-wrap { padding: 32px 0 80px; }

.article {
  max-width: 720px;
  margin: 0;
}

/* ==========================================================================
   Article Header
   ========================================================================== */
.article-header { margin-bottom: 32px; }

.article-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  background: var(--ba06);
  border: 1px solid var(--ba15);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 16px;
}
.article-title span { color: var(--blue); }

.article-excerpt {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
  font-weight: 400;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.meta-author { display: flex; align-items: center; gap: 9px; }
.meta-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ba10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
.meta-name { font-size: 13px; font-weight: 600; color: var(--text); }
.meta-date { font-size: 12px; color: var(--muted2); }
.meta-sep { width: 1px; height: 28px; background: var(--border); }
.meta-info {
  font-size: 12px;
  color: var(--muted2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.meta-share { display: flex; gap: 8px; margin-left: auto; }
.share-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--ba06);
  border: 1px solid var(--ba15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: default;
  color: var(--blue);
  transition: background .15s;
}
.share-btn:hover { background: var(--ba10); }

/* ==========================================================================
   Cover Image
   ========================================================================== */
.article-cover {
  width: 100%;
  background: linear-gradient(135deg, var(--bluelt) 0%, #e8eeff 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.cover-icon { font-size: 64px; margin-bottom: 12px; opacity: .3; }
.cover-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  opacity: .5;
}
.cover-deco {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(24, 71, 194, .08);
}

/* ==========================================================================
   Article Body
   ========================================================================== */
.article-body { line-height: 1.85; }

.article-body h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
  margin: 36px 0 14px;
  line-height: 1.2;
}
.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--text);
  margin: 28px 0 10px;
}
.article-body p {
  font-size: 15.5px;
  color: #2a3350;
  margin-bottom: 18px;
  line-height: 1.85;
}
.article-body p:last-child { margin-bottom: 0; }

/* Callout box */
.callout {
  background: var(--bluelt);
  border: 1px solid var(--ba15);
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.callout-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 6px;
}
.callout p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.65;
}

/* Stat highlight */
.stat-highlight {
  background: var(--blue);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 28px 0;
}
.sh-item {
  text-align: center;
  padding: 0 12px;
}
.sh-item.with-divider { border-left: 1px solid rgba(255, 255, 255, .15); }
.sh-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 5px;
  display: block;
}
.sh-label {
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.4;
}

/* Step list */
.steps {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bluelt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.step-body h4 {
  font-size: 08px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.step-body p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.55;
}

/* Blockquote */
.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
}
.article-body blockquote p {
  font-size: 17px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==========================================================================
   Tags Row
   ========================================================================== */
.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.article-tags > span:first-child {
  font-size: 12px;
  color: var(--muted2);
}
.atag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--ba06);
  border: 1px solid var(--ba15);
  border-radius: 100px;
  padding: 4px 12px;
}

/* ==========================================================================
   Author Card
   ========================================================================== */
.author-card {
  background: var(--bluelt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.author-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ba15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}
.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.author-role {
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 6px;
}
.author-bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Related Articles
   ========================================================================== */
.related { margin-top: 48px; }
.related-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--text);
  margin-bottom: 18px;
}
.related-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
  display: block;
  height: 100%;
}
.related-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.related-thumb {
  background: var(--bluelt);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: .35;
}
.related-body { padding: 12px; }
.related-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 5px;
}
.related-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.bd-sidebar {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sb-card {
  background: var(--bluelt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.sb-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

/* TOC */
.toc { display: flex; flex-direction: column; }
.toc-item {
  font-size: 12.5px;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .15s;
}
.toc-item:last-child { border-bottom: none; }
.toc-item:hover,
.toc-item.active {
  color: var(--blue);
  font-weight: 600;
}
.toc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted2);
  flex-shrink: 0;
}
.toc-item.active .toc-dot { background: var(--blue); }

/* Sidebar CTA */
.sb-cta {
  background: var(--blue);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.sb-cta::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
}
.sb-cta-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.sb-cta-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 14px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.sb-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  transition: background .15s;
}
.sb-cta-btn:hover { background: #f0f4ff; color: var(--blue); }

/* Share sidebar */
.share-list { display: flex; flex-direction: column; gap: 8px; }
.share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: default;
  transition: border-color .15s, color .15s;
}
.share-item:hover {
  border-color: var(--blue);
  color: var(--blue);
}


.share-item-icon { font-size: 14px; }


.post-body table, 
.blog-details-content table,
table { 
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 25px 0 !important;
    font-size: 16px !important;
    font-family: sans-serif !important;
    min-width: 100% !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05) !important;
}


table thead tr, 
table tr:first-child {
    background-color: #1847c2 !important; 
    color: #ffffff !important;
    text-align: left !important;
    font-weight: bold !important;
}


table th,
table td {
    padding: 12px 15px !important;
    border: 1px solid #ffffff !important;
}

table thead tr th, 
table tr:first-child th{
    color: #ffffff !important;
}


table td p {
    margin: 0 !important;
    padding: 0 !important;
    color: #333333 !important;
}


table tbody tr:nth-of-type(even),
table tr:nth-child(even) {
    background-color: #f3f3f3 !important;
}


@media screen and (max-width: 600px) {
    table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
}

td p strong {
    color: #fff !important;
}
h1[id], h2[id], h3[id], h4[id] {
    scroll-margin-top: 120px !important;


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .bd-sidebar { position: static; }
}
@media (max-width: 767px) {
  .article-wrap { padding: 24px 0 60px; }
  .article-cover { height: 179px; }
  .cover-icon { font-size: 48px; }
  .meta-share { margin-left: 0; }
  .sh-item.with-divider {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: 16px;
    margin-top: 16px;
  }
}

@media (min-width: 1200px) {
    .h4, h4 {
        font-size: 1rem;
    }





  

}


@media (max-width: 768px) {
  
  .article-cover {
    background: none; */
    border: none; 
     border-radius: none; */
    /* height: 320px; */
  }

  .article-cover .img-fluid {
    width: 100% !important;           
    height: auto !important;          
    border-radius: 16px !important;    
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
  }

}