.blog-detail-page{
  min-height:100vh;
  padding:96px 5% 60px;
  background:linear-gradient(135deg,#07162f 0%,#0b1f3d 45%,#10284d 100%);
  color:#f8fbff;
}

.blog-detail-page .container{
  max-width:1200px;margin:0 auto;
}

.blog-detail-wrapper{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:32px;
  align-items:start;
  min-width:0;
}

.blog-detail-wrapper > article{
  min-width:0;
  overflow:hidden;
}

/* ── Breadcrumb ── */
.blog-breadcrumb{
  display:flex;align-items:center;gap:8px;
  margin-bottom:24px;font-size:.9rem;
  color:#94a3b8;
}

.blog-breadcrumb a{
  color:#60a5fa;text-decoration:none;
  transition:color .25s;
}
.blog-breadcrumb a:hover{color:#93c5fd;}

/* ── Article Header ── */
.blog-article-header{
  margin-bottom:28px;
}

.blog-article-title{
  font-size:2.6rem;font-weight:800;line-height:1.2;
  color:#f1f5f9;margin-bottom:16px;
  letter-spacing:-.5px;
}

.blog-article-meta{
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  font-size:.95rem;color:#cbd5e1;
  padding:16px;background:rgba(15,23,42,.8);
  border-radius:12px;border:1px solid rgba(59,130,246,.1);
}

.blog-article-meta-item{
  display:flex;align-items:center;gap:6px;
}

.blog-article-author{
  color:#60a5fa;font-weight:600;
}

/* ── Featured Image ── */
.blog-featured-image{
  width:100%;max-height:500px;
  object-fit:cover;
  border-radius:16px;
  margin-bottom:32px;
  box-shadow:0 20px 50px rgba(2,6,23,.4);
  border:1px solid rgba(59,130,246,.1);
}

/* ── Article Content ── */
.blog-article-content{
  font-size:1.05rem;line-height:1.8;color:#e2e8f0;
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.blog-article-content > *{
  max-width:100%;
}

.blog-article-content h2{
  font-size:1.8rem;font-weight:700;color:#f1f5f9;
  margin:32px 0 16px;
  margin-top:40px;
  border-bottom:2px solid rgba(59,130,246,.2);
  padding-bottom:12px;
}

.blog-article-content h3{
  font-size:1.4rem;font-weight:700;color:#cbd5e1;
  margin:24px 0 12px;
  margin-top:28px;
}

.blog-article-content p{
  margin-bottom:16px;
  line-height:1.8;
}

.blog-article-content ul,
.blog-article-content ol{
  margin:16px 0;margin-left:24px;
}

.blog-article-content li{
  margin-bottom:8px;
  line-height:1.6;
}

.blog-article-content a{
  color:#60a5fa;text-decoration:underline;
  transition:color .25s;
}
.blog-article-content a:hover{color:#93c5fd;}

.blog-article-content blockquote{
  margin:24px 0;padding:16px 20px;
  border-left:4px solid #2563eb;
  background:rgba(37,99,235,.1);
  border-radius:6px;
  font-style:italic;
  color:#cbd5e1;
}

.blog-article-content img{
  max-width:100%;height:auto;
  border-radius:12px;margin:24px 0;
  box-shadow:0 12px 30px rgba(2,6,23,.3);
}

.blog-article-content iframe,
.blog-article-content video,
.blog-article-content embed{
  max-width:100%;
  height:auto;
  display:block;
}

.blog-article-content table{
  width:100%;border-collapse:collapse;
  margin:24px 0;
  border:1px solid rgba(59,130,246,.2);
  border-radius:8px;overflow:hidden;
  display:block;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.blog-article-content th{
  background:rgba(37,99,235,.15);
  padding:12px;text-align:left;font-weight:700;
  border-bottom:2px solid rgba(59,130,246,.2);
}

.blog-article-content td{
  padding:12px;border-bottom:1px solid rgba(59,130,246,.1);
}

/* ── Article Footer ── */
.blog-article-footer{
  margin-top:48px;padding-top:32px;
  border-top:2px solid rgba(59,130,246,.15);
}

.blog-footer-nav{
  display:flex;justify-content:space-between;gap:16px;
  margin-bottom:24px;
}

.blog-footer-nav a{
  display:flex;align-items:center;gap:8px;
  padding:12px 16px;border-radius:10px;
  background:rgba(15,23,42,.8);border:1px solid rgba(59,130,246,.2);
  color:#60a5fa;text-decoration:none;
  font-weight:600;transition:all .25s;
}

.blog-footer-nav a:hover{
  background:rgba(37,99,235,.15);border-color:rgba(59,130,246,.4);
  color:#93c5fd;
}

.blog-back-link{
  display:inline-flex;align-items:center;gap:6px;
  color:#60a5fa;text-decoration:none;font-weight:600;
  margin-top:16px;transition:gap .25s;
}
.blog-back-link:hover{gap:12px;}

/* ── Sidebar ── */
.blog-sidebar{
  position:sticky;top:120px;
}

.sidebar-widget{
  background:rgba(15,23,42,.92);
  border:1px solid rgba(59,130,246,.15);
  border-radius:16px;
  padding:24px;
  margin-bottom:24px;
  box-shadow:0 4px 16px rgba(2,6,23,.25);
}

.sidebar-widget-title{
  font-size:1.2rem;font-weight:700;color:#f1f5f9;
  margin-bottom:16px;padding-bottom:12px;
  border-bottom:2px solid rgba(59,130,246,.2);
}

.latest-blog-item{
  display:flex;gap:12px;
  margin-bottom:16px;padding-bottom:16px;
  border-bottom:1px solid rgba(59,130,246,.1);
  text-decoration:none;color:inherit;
  transition:transform .25s;
}

.latest-blog-item:last-child{
  margin-bottom:0;padding-bottom:0;border-bottom:none;
}

.latest-blog-item:hover{
  transform:translateX(4px);
}

.latest-blog-thumb{
  width:60px;min-width:60px;height:60px;
  border-radius:8px;overflow:hidden;
  background:linear-gradient(135deg,#2563eb,#1e40af);
}

.latest-blog-thumb img{
  width:100%;height:100%;object-fit:cover;
}

.latest-blog-info{
  display:flex;flex-direction:column;gap:4px;flex:1;
}

.latest-blog-info-title{
  font-size:.9rem;font-weight:600;color:#f1f5f9;
  line-height:1.3;
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}

.latest-blog-info-date{
  font-size:.8rem;color:#94a3b8;
}

/* ── Empty Latest Blogs ── */
.no-latest-blogs{
  padding:24px;text-align:center;color:#94a3b8;
  font-size:.95rem;
}

/* ── Share Buttons ── */
.blog-share-section{
  margin-top:32px;padding:24px;
  background:rgba(15,23,42,.8);border:1px solid rgba(59,130,246,.15);
  border-radius:12px;
}

.blog-share-title{
  font-size:.95rem;font-weight:700;color:#f1f5f9;
  margin-bottom:14px;
}

.blog-share-buttons{
  display:flex;gap:10px;flex-wrap:wrap;
}

.share-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;
  border-radius:10px;text-decoration:none;
  font-weight:600;font-size:.8rem;
  border:1px solid rgba(59,130,246,.2);
  transition:all .25s;
  cursor:pointer;
}

.share-btn:hover{transform:translateY(-2px);box-shadow:0 8px 16px rgba(0,0,0,.3);}

.share-btn-facebook{background:#1877f2;border-color:#1877f2;color:#fff;}
.share-btn-facebook:hover{background:#165ec4;}

.share-btn-twitter{background:#1da1f2;border-color:#1da1f2;color:#fff;}
.share-btn-twitter:hover{background:#1a8cd8;}

.share-btn-linkedin{background:#0a66c2;border-color:#0a66c2;color:#fff;}
.share-btn-linkedin:hover{background:#084d9e;}

.share-btn-whatsapp{background:#25d366;border-color:#25d366;color:#fff;}
.share-btn-whatsapp:hover{background:#1fa857;}

.share-btn-telegram{background:#0088cc;border-color:#0088cc;color:#fff;}
.share-btn-telegram:hover{background:#006ab3;}

.share-btn-email{background:#ea4335;border-color:#ea4335;color:#fff;}
.share-btn-email:hover{background:#d33426;}

.share-btn-copy{background:rgba(96,165,250,.2);border-color:rgba(96,165,250,.4);color:#60a5fa;}
.share-btn-copy:hover{background:rgba(96,165,250,.3);border-color:rgba(96,165,250,.5);}

.share-btn-tooltip{
  position:relative;
  font-size:.75rem;
}

.share-btn-tooltip::after{
  content:attr(data-tooltip);
  position:absolute;bottom:100%;left:50%;
  transform:translateX(-50%);
  background:#1e293b;padding:6px 10px;
  border-radius:6px;white-space:nowrap;
  opacity:0;pointer-events:none;
  transition:opacity .25s;
  margin-bottom:6px;
  border:1px solid rgba(59,130,246,.2);
}

.share-btn-tooltip:hover::after{opacity:1;}

/* ── Responsive ── */
@media(max-width:1024px){
  .blog-detail-page .container{padding:0 3%;}
  .blog-detail-wrapper{grid-template-columns:1fr;gap:24px;}
  .blog-sidebar{position:static;}
  .blog-article-title{font-size:2rem;}
}

@media(max-width:768px){
  .blog-detail-page{padding:80px 4% 40px;}
  .blog-article-title{font-size:1.8rem;}
  .blog-detail-wrapper > article{overflow:hidden;}
  .blog-article-content{font-size:1rem;overflow-x:hidden;}
  .blog-article-content h2{font-size:1.4rem;}
  .blog-featured-image{max-height:300px;}
  .blog-article-meta{flex-direction:column;align-items:flex-start;}
  .blog-share-buttons{gap:8px;}
  .share-btn{width:40px;height:40px;font-size:.7rem;}
  .sidebar-widget{padding:18px;}

  /* Mobile image fix for CKEditor content */
  .blog-article-content img,
  .blog-article-content figure img,
  .blog-article-content .image-style-align-left,
  .blog-article-content .image-style-align-center,
  .blog-article-content .image-style-align-right,
  .blog-article-content img[style],
  .blog-article-content figure img[style],
  .blog-article-content figure,
  .blog-article-content iframe,
  .blog-article-content video,
  .blog-article-content embed{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:220px !important;
    object-fit:cover;
    border-radius:12px;
    margin:20px auto !important;
  }

  /* CKEditor content responsive fixes */
  .blog-article-content table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    width:100%;
    margin:20px 0;
  }

  .blog-article-content iframe,
  .blog-article-content video,
  .blog-article-content embed{
    max-width:100% !important;
    height:auto;
    display:block;
  }

  /* Responsive iframe wrapper */
  .blog-article-content .ck-embed-placeholder,
  .blog-article-content figure.media iframe{
    width:100%;
    height:auto;
  }

  /* Handle CKEditor figure and media elements */
  .blog-article-content figure{
    max-width:100%;
    margin:20px 0;
  }

  .blog-article-content figure img,
  .blog-article-content figure video{
    max-width:100%;
    height:auto;
    display:block;
  }

  /* Prevent horizontal overflow from code blocks and pre elements */
  .blog-article-content pre,
  .blog-article-content code{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    max-width:100%;
  }

  .blog-article-content pre{
    display:block;
    padding:12px;
    background:rgba(2,6,23,.5);
    border-radius:6px;
  }

  /* Handle divs with inline styles that might have fixed widths */
  .blog-article-content div{
    max-width:100%;
  }

  /* Ensure all content respects container width */
  .blog-article-content *{
    max-width:100%;
    word-wrap:break-word;
    overflow-wrap:break-word;
  }
}
