.blog-detail-shell {
  max-width: 1200px;
}

.blog-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.blog-detail-main {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3vw, 2.6rem);
}

.blog-detail-article {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

.blog-detail-meta {
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.blog-detail-title,
.blog-detail-cover,
.blog-detail-content {
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.blog-detail-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.6rem, 1.4vw, 0.9rem);
}

.blog-detail-cover {
  margin-bottom: clamp(1.4rem, 2.4vw, 2rem);
}

.blog-detail-content {
  padding-bottom: clamp(1rem, 3vw, 1.6rem);
}

.blog-detail-main {
  gap: clamp(2rem, 3vw, 2.4rem);
}

.blog-detail-comments {
  margin-top: clamp(1rem, 2.5vw, 1.8rem);
}

.blog-detail-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.author-avatar {
  width: clamp(3rem, 7vw, 4rem);
  height: clamp(3rem, 7vw, 4rem);
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.15);
  flex-shrink: 0;
  clip-path: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.blog-detail-meta-text {
  min-width: 0;
  flex: 1;
}

.author-name {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.author-date {
  font-size: clamp(0.78rem, 1.7vw, 0.92rem);
  color: #475569;
}

.blog-detail-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: clamp(1rem, 2vw, 1.4rem);
  display: block;
  word-break: break-word;
}

.blog-detail-cover {
  margin-bottom: clamp(1.4rem, 2.4vw, 2rem);
}

.blog-cover-image {
  width: 100%;
  border-radius: 1.35rem;
  height: auto;
  max-height: none;
  -o-object-fit: contain;
     object-fit: contain;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
}

.blog-detail-source {
  font-size: 0.8rem;
  margin-top: 0.6rem;
  text-align: right;
  color: #475569;
  font-style: italic;
}

.blog-detail-source a {
  color: #1d4ed8;
  text-decoration: underline;
}

.blog-detail-content {
  font-size: 0.98rem;
  line-height: 1.62;
  color: #111827;
  max-width: none;
  letter-spacing: normal;
  word-spacing: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.blog-detail-content p {
  margin-bottom: 0.95rem;
  text-align: left !important;
  text-justify: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

.blog-detail-comments {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.blog-detail-share {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 1.5rem;
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(203, 213, 225, 0.4);
}

.blog-detail-share h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-share-rail {
  position: fixed;
  top: clamp(6rem, 10vw, 8rem);
  left: calc((100vw - 1200px) / 2 - clamp(3rem, 4.5vw, 3.8rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: clamp(2.2rem, 3.8vw, 2.6rem);
  padding-top: 0.1rem;
  z-index: 40;
}

.share-rail-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.4rem;
  text-align: center;
}

.blog-share-rail .share-button {
  padding: 0.34rem;
  width: clamp(1.7rem, 2.8vw, 1.95rem);
  height: clamp(1.7rem, 2.8vw, 1.95rem);
}

.share-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0f172a;
  opacity: 0.55;
  margin-bottom: 0.3rem;
}

.share-label--vertical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-icon-button {
  border-radius: 999px;
}

.share-icon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.18);
}

.share-total-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.6rem;
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1;
}

.share-total-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.share-total-number {
  font-size: 0.78rem;
}

.share-button--whatsapp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.share-button--facebook {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.share-button--twitter {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.share-button--telegram {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.share-button--linkedin {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.share-button--instagram {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976 45%, #962fbf 70%, #4f5bd5);
}

.share-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sidebar-navigation {
  margin-top: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sidebar-nav-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
}

.sidebar-nav-link,
.sidebar-nav-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-nav-link {
  color: #64748b;
}

.sidebar-nav-link:hover {
  color: #2563eb;
}

.sidebar-nav-all {
  color: #2563eb;
  font-weight: 700;
}

.sidebar-nav-all:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.blog-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.3rem);
  position: fixed;
  top: clamp(6rem, 10vw, 8rem);
  right: calc((100vw - 1200px) / 2);
  width: 320px;
  max-height: calc(100vh - clamp(7rem, 11vw, 9rem));
  overflow-y: auto;
  z-index: 40;
  padding-bottom: 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-detail-sidebar::-webkit-scrollbar {
  display: none;
}

.detail-sidebar-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.5rem;
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.9rem;
}

.detail-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.detail-card-underline {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.current-reading-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.current-reading-title {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.current-reading-meta {
  font-size: 0.85rem;
  color: #64748b;
}

.current-reading-link {
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 600;
}

.latest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.latest-item {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.latest-item:last-child {
  border-bottom: none;
}

.latest-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
}

.latest-link:hover {
  color: #2563eb;
}

.latest-item.has-thumb .latest-link {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.latest-thumb {
  width: 80px;
  height: 56px;
  border-radius: 0.75rem;
  -o-object-fit: cover;
     object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.latest-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.latest-title {
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.latest-meta {
  font-size: 0.78rem;
  color: #64748b;
  letter-spacing: 0.02em;
}

.empty {
  font-size: 0.9rem;
  color: #94a3b8;
}

.blog-detail-tags {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
}

.blog-detail-tags-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.blog-detail-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-detail-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  background-color: #f8fafc;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.blog-detail-tag-pill:hover,
.blog-detail-tag-pill:focus-visible {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
  outline: none;
}

@media (min-width: 980px) {
  .blog-detail-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .blog-detail-comments {
    grid-column: 1;
  }
}

@media (max-width: 1280px) and (min-width: 961px) {
  .blog-share-rail {
    left: 1rem;
  }

  .blog-detail-sidebar {
    right: 1rem;
  }
}

@media (max-width: 960px) {
  .blog-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    display: flex;
    flex-direction: column;
  }

  .blog-detail-main {
    order: 1;
  }

  .blog-share-rail {
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }

  .blog-detail-sidebar {
    order: 2;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100%;
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 0.4rem;
    gap: 1rem;
    z-index: 1 !important;
  }

  .blog-detail-comments {
    order: 3;
  }

  .blog-detail-sidebar .sidebar-card {
    min-width: 260px;
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .blog-share-rail {
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }

  .blog-detail-sidebar {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    z-index: 1 !important;
    padding-bottom: 0 !important;
  }

  .blog-detail-heading {
    position: relative;
    padding-left: 0;
    gap: 0;
    display: flex;
    flex-direction: column;
  }

  .blog-detail-meta {
    margin-bottom: 0.5rem;
  }

  .share-rail-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #64748b;
    margin-bottom: 0.5rem;
    padding-left: 0;
    display: block;
    width: 100%;
  }

  .share-label {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.05em;
    margin-bottom: 0;
  }

  .blog-share-rail {
    position: relative;
    top: auto;
    left: 0;
    display: block;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0 0 0.75rem;
    width: 100%;
  }

  .blog-share-rail .share-rail-label {
    display: block;
    margin-bottom: 0.5rem;
    padding-left: 0.6rem;
    text-align: left;
  }

  .blog-share-rail a {
    display: inline-flex;
    margin-right: 0.6rem;
  }

  .blog-share-rail a:first-of-type {
    margin-left: 0.4rem;
  }

  .blog-share-rail .share-button {
    width: 2rem;
    height: 2rem;
  }

  .share-label--vertical {
    height: auto;
  }

  .blog-detail-article,
  .blog-detail-comments {
    border-radius: 1.25rem;
    padding: 1.4rem;
  }

  .blog-detail-sidebar {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-height: none;
    flex-direction: column;
    overflow-x: visible;
    overflow-y: visible;
    gap: clamp(1rem, 3vw, 1.4rem);
  }

  .blog-detail-article {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .blog-detail-title {
    font-size: 1.32rem !important;
    line-height: 1.22 !important;
    margin-bottom: 0.7rem !important;
    letter-spacing: -0.016em !important;
  }

  .blog-detail-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.55rem !important;
    text-align: left !important;
  }

  .sidebar-nav-buttons {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .sidebar-nav-link {
    font-size: 0.85rem;
  }

  .author-name {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
  }

  .author-date {
    font-size: 0.78rem !important;
  }

  .blog-detail-content {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
  }

  .blog-detail-content p {
    margin-bottom: 0.65rem !important;
  }
}

.blog-detail-author-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.sidebar-card--author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: #0f172a;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.sidebar-card--author:hover,
.sidebar-card--author:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
  background-color: #f9fafb;
  outline: none;
}

.sidebar-author-avatar {
  width: clamp(2.8rem, 6vw, 3.5rem);
  height: clamp(2.8rem, 6vw, 3.5rem);
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid rgba(37, 99, 235, 0.28);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  flex-shrink: 0;
  clip-path: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.sidebar-author-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sidebar-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.sidebar-author-role {
  font-size: 0.8rem;
  color: #64748b;
}

.sidebar-author-cta {
  margin-top: 0.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563eb;
}

.sidebar-author-bio {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}.blog-detail-content a {
  color: #2563eb !important;
  text-decoration: underline !important;
  transition: color 0.2s;
}

.blog-detail-content a:visited {
  color: #7c3aed !important;
}

.blog-detail-content a:hover {
  color: #1d4ed8 !important;
}
