.blog .infomation {
  display: flex;
  justify-content: space-between;
}
.blog .blog-header {
  margin-top: var(--space-2);
}
.blog .blog-header a {
  font-family: "Raleway";
  color: #0369a1;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
  transition: color 200ms ease;
}
.blog .blog-header a:hover {
  color: #0ea5e9;
}
.blog .blog-body {
  text-align: left;
  line-height: 1.7;
  overflow-wrap: break-word;
  color: #555;
  margin-top: var(--space-1);
}
.blog .blog-tag {
  position: relative;
  font-size: 0.85rem;
  text-align: left;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog .blog-tag .badge {
  padding: 4px 8px;
  font-size: 0.75rem;
  background-color: #999;
  color: #fff;
  border: none;
}
.blog .blog-date-time {
  margin-top: var(--space-2);
  padding-top: var(--space-1);
  border-top: 1px solid #f0f0f0;
}
.blog .blog-date-time .blog-date {
  font-size: 0.75rem;
  color: #999;
}
.blog .body img {
  max-width: 100%;
}

.blog-masonry {
  -moz-column-count: 3;
       column-count: 3;
  -moz-column-gap: var(--space-3);
       column-gap: var(--space-3);
}

.blog-card {
  -moz-column-break-inside: avoid;
       break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: var(--space-3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: var(--radius-card);
  padding: var(--space-2);
  transition: box-shadow 300ms, transform 300ms;
}
.blog-card:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: var(--shadow-soft);
}
.blog-card img {
  border-radius: 6px;
  width: 100%;
  display: block;
}

.tags-panel {
  position: sticky;
  top: 110px;
}

.tags .tags_box,
.tags_box {
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-card);
  padding: var(--space-2);
}

.tags-title {
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  color: #0369a1;
  font-weight: 600;
}

.tags-chip-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  /* Hide scrollbar on mobile */
  scrollbar-width: none;
}
.tags-chip-list::-webkit-scrollbar {
  display: none;
}

.tag-chip {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 0.86rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.tag-chip:hover, .tag-chip:focus-visible {
  color: #075985;
  border-color: #0ea5e9;
  background: #e0f2fe;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
  transform: translateY(-1px);
}
.tag-chip.active {
  background: rgba(14, 165, 233, 0.16);
  border-color: #0ea5e9;
  color: #0369a1;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.tag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.16);
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 600;
}

.blog-detail .blog-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.blog-detail .blog-title .badge {
  height: 1.2rem;
}

div.pagination {
  position: sticky;
  bottom: 10px;
}

/* 
@media only screen and (min-width: 1528px) {
    .tags {
        right: calc(10vw - 100px);
    }
}
@media only screen and (max-width: 1527px) {
    .content_box {
        max-width: calc(100vw - 400px);
    }
}

@media only screen and (max-width: 1200px) {
    .content_box {
        max-width: calc(100vw - 360px);
    }
}
@media only screen and (max-width: 992px) {
    .content_box {
        max-width: calc(100vw);
    }
}
 */
@media only screen and (max-width: 767.98px) {
  .blog {
    text-align: left;
  }
  .blog .blog-header a {
    font-size: 1.05rem;
  }
  .blog .blog-body {
    font-size: 0.95rem;
  }
  .blog-masonry {
    -moz-column-count: 1;
         column-count: 1;
    -moz-column-gap: 0;
         column-gap: 0;
  }
  .tags-panel {
    position: static;
  }
  .tags-chip-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 991.98px) {
  .blog-masonry {
    -moz-column-count: 2;
         column-count: 2;
    -moz-column-gap: 20px;
         column-gap: 20px;
  }
}
