.blog-page {
  min-height: 100vh;
  background: #fff;
}

.blog-page .header .nav .nav-link.is-active {
  color: #1677ff;
}

.blog-main {
  background: #fff;
}

.blog-hero {
  padding: 128px 0 40px;
  text-align: center;
  background: #fff;
}

.blog-hero__label {
  display: inline-flex;
  margin-bottom: 10px;
  color: #1677ff;
  font-size: 16px;
  font-weight: 700;
}

.blog-hero__title {
  margin: 0 0 14px;
  color: #101828;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.22;
}

.blog-hero__desc {
  margin: 0;
  color: #667085;
  font-size: 18px;
  line-height: 1.65;
}

.blog-list-section {
  padding: 16px 0 96px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
}

.blog-card {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.blog-card:hover .blog-card__title {
  color: #1677ff;
}

.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-card__thumb {
  position: relative;
  aspect-ratio: 9 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: #eef2f6;
}

.blog-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__thumb--empty {
  background: linear-gradient(135deg, #edf2ff 0%, #e8f7ff 55%, #f5f8fb 100%);
}

.blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 18px 2px 0;
}

.blog-card__title {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: #101828;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-card__summary {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: #667085;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  color: #98a2b3;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.blog-card__meta time,
.blog-card__meta span {
  color: inherit;
}

.blog-state {
  grid-column: 1 / -1;
  padding: 64px 20px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  color: #667085;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.blog-state--error {
  color: #d92d20;
}

@media screen and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 20px;
  }
}

@media screen and (max-width: 768px) {
  .blog-hero {
    padding: 104px 0 32px;
  }

  .blog-hero__title {
    font-size: 32px;
  }

  .blog-hero__desc {
    font-size: 16px;
  }

  .blog-list-section {
    padding-bottom: 64px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .blog-card__title {
    font-size: 18px;
  }

  .blog-card__summary {
    font-size: 14px;
  }
}

.blog-detail-main {
  background: #f7f8fb;
}

.blog-detail-hero {
  position: relative;
  padding: 128px 0 72px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.blog-detail-hero--cover {
  background-color: #101828;
}

.blog-detail-hero--cover::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(
    180deg,
    rgba(16, 24, 40, 0.62) 0%,
    rgba(16, 24, 40, 0.82) 55%,
    rgba(16, 24, 40, 0.94) 100%
  );
  pointer-events: none;
}

.blog-detail-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.blog-detail__back {
  display: inline-flex;
  margin-bottom: 28px;
  color: #1677ff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.blog-detail-hero--cover .blog-detail__back {
  color: #fff;
}

.blog-detail__back::before {
  content: "<";
  margin-right: 8px;
}

.blog-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
  color: #667085;
  font-size: 15px;
  font-weight: 700;
}

.blog-detail-hero--cover .blog-detail__meta {
  color: rgba(255, 255, 255, 0.78);
}

.blog-detail__title {
  max-width: 860px;
  margin: 0 0 20px;
  color: #101828;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.24;
}

.blog-detail-hero--cover .blog-detail__title {
  color: #fff;
}

.blog-detail__lead {
  max-width: 780px;
  margin: 0;
  color: #475467;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
}

.blog-detail-hero--cover .blog-detail__lead {
  color: rgba(255, 255, 255, 0.88);
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding: 56px 0 96px;
}

.blog-detail-content {
  min-width: 0;
}

.blog-detail-cover {
  position: relative;
  min-height: 360px;
  margin-bottom: 42px;
  padding: 44px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(94, 46, 255, 0.96), rgba(0, 96, 196, 0.82)),
    url("../assets/images/landing/landing-visual.png") center / cover;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.14);
}

.blog-detail-cover::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.blog-detail-cover .blog-card__tag,
.blog-detail-cover .blog-card__visual-title {
  position: relative;
  z-index: 1;
}

.blog-detail-cover .blog-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.blog-detail-cover .blog-card__visual-title {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
}

.blog-detail-cover--image {
  background-position: center;
  background-size: cover;
}

.blog-detail-section {
  margin-bottom: 42px;
  color: #344054;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.85;
}

.blog-detail-body {
  overflow-x: auto;
}

/* UA 기본 p 마진(margin-block 1em 등) 제거 */
.blog-detail-body p {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  unicode-bidi: normal;
}

/* Quill 빈 줄 `<p><br></p>` — 본문 line-height보다 간격만 축소 */
/* .blog-detail-body p:empty,
.blog-detail-body p:has(> br:only-child) {
  height: 0.55em;
  line-height: 0.55em;
  overflow: hidden;
} */

.blog-detail-section h2 {
  margin: 0 0 18px;
  color: #101828;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}

.blog-detail-section__p {
  margin: 0 0 18px;
}

.blog-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog-detail-body a {
  color: #1677ff;
  font-weight: 700;
}

.blog-detail-body ul,
.blog-detail-body ol {
  margin: 0 0 22px;
  padding-left: 1.5em;
}

.blog-detail-body li {
  margin: 0 0 8px;
  padding-left: 0.35em;
  list-style-position: outside;
}

/* Quill 2: 글머리/번호 목록 모두 <ol> + data-list 로 저장됨 */
.blog-detail-body ul > li,
.blog-detail-body li[data-list="bullet"] {
  list-style-type: disc;
}

.blog-detail-body ol > li:not([data-list]),
.blog-detail-body li[data-list="ordered"] {
  list-style-type: decimal;
}

.blog-detail-body li[data-list="checked"],
.blog-detail-body li[data-list="unchecked"] {
  list-style-type: none;
}

/* 에디터 전용 마커 span — 공개 페이지에서는 숨기고 네이티브 마커 사용 */
.blog-detail-body li > .ql-ui {
  display: none;
}

.blog-detail-body .ql-indent-1 {
  padding-left: 3em;
}

.blog-detail-body .ql-indent-2 {
  padding-left: 6em;
}

.blog-detail-body .ql-indent-3 {
  padding-left: 9em;
}

.blog-detail-body .ql-align-center {
  text-align: center;
}

.blog-detail-body .ql-align-right {
  text-align: right;
}

.blog-detail-body .ql-align-justify {
  text-align: justify;
}

.blog-detail-body table {
  width: 100%;
  max-width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  table-layout: fixed;
  overflow-wrap: break-word;
}

.blog-detail-body th,
.blog-detail-body td {
  border: 1px solid #d0d5dd;
  padding: 10px 14px;
  vertical-align: top;
  color: #344054;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  word-break: keep-all;
}

.blog-detail-body th {
  background: #f9fafb;
  color: #101828;
  font-weight: 700;
  text-align: left;
}

.blog-detail-body thead th {
  background: #f2f4f7;
}

.blog-detail-body h1,
.blog-detail-body h2,
.blog-detail-body h3 {
  margin: 36px 0 16px;
  color: #101828;
  font-weight: 700;
  line-height: 1.35;
}

.blog-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-detail-list li {
  position: relative;
  padding-left: 26px;
}

.blog-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1677ff;
}

.blog-detail-highlight {
  padding: 32px;
  border: 1px solid #d7e7ff;
  border-radius: 16px;
  background: #fff;
}

.blog-detail-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-detail-steps div {
  padding: 22px;
  border-radius: 14px;
  background: #f7faff;
}

.blog-detail-steps span {
  display: block;
  margin-bottom: 14px;
  color: #1677ff;
  font-size: 14px;
  font-weight: 900;
}

.blog-detail-steps strong {
  display: block;
  margin-bottom: 8px;
  color: #101828;
  font-size: 18px;
  font-weight: 700;
}

.blog-detail-steps p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.65;
}

.blog-detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.blog-detail-panel {
  padding: 24px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.blog-detail-panel__label {
  margin: 0 0 10px;
  color: #1677ff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-detail-panel h2 {
  margin: 0 0 18px;
  color: #101828;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.blog-detail-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.blog-detail-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
}

.blog-detail-panel dt {
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.blog-detail-panel dd {
  margin: 0;
  color: #101828;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.blog-detail-panel--cta {
  background: #101828;
}

.blog-detail-panel--cta h2,
.blog-detail-panel--cta p {
  color: #fff;
}

.blog-detail-panel--cta p:not(.blog-detail-panel__label) {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.65;
}

.blog-detail-panel--cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

@media screen and (max-width: 1024px) {
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }

  .blog-detail-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

  @media screen and (max-width: 768px) {
  .blog-detail-hero {
    padding: 104px 0 48px;
  }

  .blog-detail__title {
    font-size: 32px;
  }

  .blog-detail__lead {
    font-size: 17px;
  }

  .blog-detail-layout {
    padding: 36px 0 64px;
  }

  .blog-detail-cover {
    min-height: 280px;
    padding: 28px;
  }

  .blog-detail-cover .blog-card__visual-title {
    font-size: 34px;
  }

  .blog-detail-section {
    font-size: 16px;
  }

  .blog-detail-highlight {
    padding: 24px;
  }

  .blog-detail-steps,
  .blog-detail-side {
    grid-template-columns: 1fr;
  }
}
