body {
  background:
    radial-gradient(circle at top right, rgba(255,204,0,.10), transparent 30%),
    radial-gradient(circle at bottom left, rgba(138,43,226,.12), transparent 34%),
    #0c0f16;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

#sidebar.collapsed { width: 80px !important; }
#sidebar.collapsed .menu-text { display: none !important; }

#sidebar.collapsed ~ .main-content,
body.sidebar-collapsed .main-content {
  margin-left: 80px !important;
  max-width: calc(100% - 80px) !important;
}

#sidebar.collapsed ~ .topbar,
body.sidebar-collapsed .topbar {
  left: 80px !important;
  width: calc(100% - 80px) !important;
}

@media (min-width: 993px) {
  .main-content {
    margin-left: 240px;
    max-width: calc(100% - 240px);
  }
}

@media (max-width: 992px) {
  #sidebar {
    left: -100% !important;
    width: 270px;
    max-width: 86vw;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 2500;
    transition: left .3s ease;
  }

  #sidebar.active,
  body.sidebar-open #sidebar { left: 0 !important; }

  .main-content,
  body.sidebar-collapsed .main-content,
  #sidebar.collapsed ~ .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
  }

  .topbar,
  body.sidebar-collapsed .topbar,
  #sidebar.collapsed ~ .topbar {
    left: 0 !important;
    width: 100% !important;
  }
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.68);
  visibility: hidden;
  opacity: 0;
  z-index: 2400;
  transition: opacity .25s ease, visibility .25s ease;
}

#overlay.active,
body.sidebar-open #overlay {
  visibility: visible;
  opacity: 1;
}

.main-content {
  position: relative;
  min-height: 100vh;
  padding: 105px 32px 45px;
  background: transparent;
  transition: margin-left .3s ease, max-width .3s ease;
}

.blog-detail-page {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

/* === HERO === */
.blog-detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at top right, rgba(255,204,0,.18), transparent 38%),
    radial-gradient(circle at bottom left, rgba(138,43,226,.18), transparent 36%),
    linear-gradient(135deg, rgba(18,24,42,.96), rgba(8,12,20,.98));
  box-shadow: 0 18px 42px rgba(0,0,0,.34);
  margin-bottom: 24px;
}

.blog-detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px;
}

.blog-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
  position: relative;
  z-index: 1;
}

.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff6d7;
  background: rgba(255,204,0,.10);
  border: 1px solid rgba(255,204,0,.20);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blog-eyebrow i { color: #ffcc00; }

.blog-hero-text h1 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 1000;
  letter-spacing: -.05em;
}

.blog-hero-text h1 span {
  color: #ffcc00;
  text-shadow: 0 0 22px rgba(255,204,0,.28);
}

.blog-hero-text p {
  margin: 16px 0 0;
  color: #aeb8c8;
  font-size: .98rem;
  line-height: 1.7;
  max-width: 720px;
}

.blog-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.blog-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #f5f8ff;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
  font-weight: 800;
}

.blog-meta-pill i { color: #ffcc00; }

.blog-hero-image {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
}

.blog-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  display: block;
  filter: brightness(.96) saturate(1.05);
}

.blog-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.25), transparent 50%);
}

.blog-image-empty {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa6b8;
  text-align: center;
  padding: 24px;
}

.blog-image-empty i {
  display: block;
  margin-bottom: 10px;
  color: #ffcc00;
  font-size: 2rem;
}

/* === LAYOUT === */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.blog-article-card,
.blog-sidebar-card,
.comments-card,
.comment-form-card,
.nav-card {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.085);
  background:
    radial-gradient(circle at top right, rgba(255,204,0,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.026));
  box-shadow: 0 16px 38px rgba(0,0,0,.24);
}

.blog-article-card {
  padding: 30px;
  overflow: hidden;
}

.article-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.article-title-small {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-title-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,204,0,.15), rgba(255,204,0,.04));
  border: 1px solid rgba(255,204,0,.16);
  box-shadow: 0 0 18px rgba(255,204,0,.08);
}

.article-title-icon i { color: #ffcc00; }
.article-title-small h2 { margin: 0; font-size: 1.15rem; font-weight: 950; }
.article-title-small p { margin: 4px 0 0; color: #8f9aaa; font-size: .82rem; }

.back-blog-btn {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  font-weight: 900;
  transition: .25s ease;
  white-space: nowrap;
}

.back-blog-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg,#8a2be2,#3b82f6);
}

.blog-content {
  color: #d8dee9;
  line-height: 1.85;
  font-size: 16px;
  word-break: break-word;
}

.blog-content p { margin: 0 0 18px; }
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  color: #fff;
  line-height: 1.25;
  margin: 26px 0 12px;
}
.blog-content a { color: #6fd2ff; text-decoration: none; font-weight: 800; }
.blog-content a:hover { text-decoration: underline; }
.blog-content img { max-width: 100%; height: auto; border-radius: 16px; margin: 18px 0; }
.blog-content ul,
.blog-content ol { padding-left: 22px; }
.blog-content li { margin-bottom: 8px; }
.blog-content blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid #ffcc00;
  border-radius: 14px;
  background: rgba(255,204,0,.06);
  color: #f3f4f6;
}

/* === SIDEBAR === */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.blog-sidebar-card {
  padding: 18px;
}

.sidebar-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 950;
}

.sidebar-card-title i { color: #ffcc00; }

.info-list {
  display: grid;
  gap: 10px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.065);
}

.info-row span {
  color: #9aa6b8;
  font-size: .78rem;
  font-weight: 800;
}

.info-row strong {
  color: #fff;
  font-size: .84rem;
  font-weight: 950;
  text-align: right;
}

.keyword-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-box span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff6d7;
  background: rgba(255,204,0,.09);
  border: 1px solid rgba(255,204,0,.16);
  font-size: .78rem;
  font-weight: 850;
}

/* === NAV === */
.nav-card {
  margin-top: 22px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.nav-link-card {
  min-height: 82px;
  padding: 14px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: .25s ease;
}

.nav-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,204,0,.24);
  background: rgba(255,255,255,.065);
}

.nav-link-card i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffcc00;
  background: rgba(255,204,0,.08);
  border: 1px solid rgba(255,204,0,.14);
}

.nav-link-card span {
  display: block;
  color: #9aa6b8;
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.nav-link-card strong {
  display: block;
  color: #fff;
  font-size: .86rem;
  font-weight: 950;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nav-placeholder {
  opacity: .45;
  pointer-events: none;
}

/* === COMMENTS === */
.comments-section {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.comments-card,
.comment-form-card {
  padding: 22px;
}

.comments-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.comments-title h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
}

.comments-title h3 i { color: #ffcc00; margin-right: 8px; }

.comment-count {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff6d7;
  background: rgba(255,204,0,.09);
  border: 1px solid rgba(255,204,0,.16);
  font-size: .76rem;
  font-weight: 900;
}

.comment-box {
  padding: 15px;
  border-radius: 16px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
}

.comment-box:last-child { margin-bottom: 0; }

.comment-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9aa6b8;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 7px;
}

.comment-meta i { color: #ffcc00; }

.comment-box p {
  margin: 0;
  color: #d8dee9;
  line-height: 1.6;
}

.empty-comments {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aa6b8;
  padding: 15px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.10);
}

.empty-comments i { color: #ffcc00; }

.comment-form-card h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
}

.comment-form-card h3 i { color: #ffcc00; margin-right: 8px; }

.form-message {
  margin-bottom: 12px;
  padding: 11px 12px;
  border-radius: 13px;
  font-size: .86rem;
  font-weight: 850;
}

.form-message.success {
  color: #dfffe9;
  background: rgba(74,222,128,.09);
  border: 1px solid rgba(74,222,128,.18);
}

.form-message.error {
  color: #ffdede;
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.18);
}

.comment-form-card input,
.comment-form-card textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
  font-size: .92rem;
  transition: .25s ease;
  box-sizing: border-box;
}

.comment-form-card input {
  height: 48px;
  padding: 0 14px;
  margin-bottom: 12px;
}

.comment-form-card textarea {
  min-height: 125px;
  resize: vertical;
  padding: 13px 14px;
  margin-bottom: 12px;
}

.comment-form-card input:focus,
.comment-form-card textarea:focus {
  border-color: rgba(255,204,0,.35);
  box-shadow: 0 0 0 4px rgba(255,204,0,.08);
}

.comment-form-card input::placeholder,
.comment-form-card textarea::placeholder {
  color: #8f9aaa;
}

.comment-form-card button {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg,#8a2be2,#3b82f6);
  font-size: .92rem;
  font-weight: 950;
  cursor: pointer;
  transition: .25s ease;
  box-shadow: 0 10px 22px rgba(59,130,246,.18);
}

.comment-form-card button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

/* === SOCIAL === */
.social-section {
  margin: 34px 0 60px;
}

.social-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.social-header .section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(111,210,255,.15), rgba(111,210,255,.04));
  border: 1px solid rgba(111,210,255,.16);
  box-shadow: 0 0 18px rgba(111,210,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}

.social-header .section-icon i { color: #6fd2ff; }
.social-header h2 { font-size: 18px; margin: 0; }
.social-header p { color: #aaa; font-size: 13px; margin: 4px 0 0; }

.social-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.social-box {
  display: flex;
  align-items: center;
  min-height: 86px;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.075);
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.045);
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
  transition: .25s ease;
}

.social-box:hover {
  background: rgba(255,255,255,.07);
  transform: translateY(-4px);
  border-color: rgba(111,210,255,.18);
}

.social-left {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
}

.social-left img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}

.social-right {
  margin-left: 13px;
  text-align: left;
  min-width: 0;
}

.social-right h3 {
  margin: 0 0 3px;
  font-size: .95rem;
  color: #fff;
  font-weight: 950;
}

.social-right p {
  margin: 0;
  color: #9aa6b8;
  font-size: .8rem;
  line-height: 1.35;
}

@media (max-width: 1200px) {
  .blog-detail-hero-inner,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: relative;
    top: auto;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .social-boxes {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 992px) {
  body { padding-bottom: 100px !important; }

  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 76px 14px 20px !important;
    transform: none !important;
    overflow: visible !important;
  }

  .blog-detail-page { max-width: 100%; }
  .blog-detail-hero,
  .blog-hero-image,
  .blog-article-card,
  .blog-sidebar-card,
  .comments-card,
  .comment-form-card,
  .nav-card {
    border-radius: 22px;
  }

  .blog-detail-hero-inner {
    padding: 20px;
  }

  .blog-hero-text,
  .blog-hero-image,
  .blog-hero-image img,
  .blog-image-empty {
    min-height: auto;
  }

  .blog-hero-image img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 700px) {
  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .nav-card {
    grid-template-columns: 1fr;
  }

  .article-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .back-blog-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .main-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .blog-detail-hero-inner,
  .blog-article-card,
  .comments-card,
  .comment-form-card,
  .blog-sidebar-card,
  .nav-card {
    padding: 16px;
  }

  .blog-hero-text h1 {
    font-size: 1.75rem;
  }

  .blog-hero-text p,
  .blog-content {
    font-size: .92rem;
  }

  .blog-meta-pills {
    gap: 8px;
  }

  .blog-meta-pill {
    width: 100%;
    justify-content: center;
  }

  .comments-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-boxes {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .social-box {
    min-height: 76px;
  }
}