/* assets/css/blog-modal.css */
.blog-details {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-areas: "stack";
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.blog-details.is-open {
  visibility: visible;
  opacity: 1;
}
.blog-details .details-backdrop {
  grid-area: stack;
  background: rgba(0, 0, 0, 0.85);
}
.blog-details .details-box {
  grid-area: stack;
  margin: auto;
  width: min(900px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.blog-details .close-btn {
  position: sticky;
  top: 10px;
  float: right;
  border: none;
  background: #f3f4f6;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 22px;
  cursor: pointer;
}
.badge {
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 20px;
  margin-right: 6px;
  font-size: 12px;
}
.badge-accent {
  background: #e6f3f1;
  color: #2b6f65;
  border: 1px solid #cfe7e3;
}
.blog-details h2 {
  margin: 12px 0;
  font-size: clamp(20px, 2.5vw, 28px);
  color: #0f172a;
}
.blog-details img {
  width: 100%;
  border-radius: 12px;
  margin: 12px 0 18px;
}
.blog-details #blog-content h4 {
  margin: 12px 0 6px;
  color: #0f172a;
  font-size: 18px;
}
.blog-details #blog-content p {
  color: #334155;
  line-height: 1.6;
}
