.prose {
  color: #212529;
  line-height: 1.65;
  font-size: 1.05rem;
  max-width: 680px;
}

/* 이미지 최적화 */
.prose img {
  max-width: 100%;
  height: auto;
  display: block;
}

.prose picture {
  display: block;
  width: 100%;
}

.prose figure {
  margin: 1.5rem 0;
}

.prose figure img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #6c757d;
  text-align: center;
  font-style: italic;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }

.prose p { margin: 0.5rem 0 1rem; }

.prose a {
  color: #0d6efd;
  position: relative;
  text-decoration: none;
  border-bottom: 0.1rem solid #0d6efd;
  transition: border-bottom-color 300ms;
  background: transparent;
  background-origin: border-box;
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 0 0.1rem;
}
.prose a:hover, .prose a:focus {
  border-bottom-color: transparent;
  background-image: linear-gradient(90.68deg, #b439df 0.26%, #e5337e 102.37%);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.1rem;
  transition-property: background-position, background-size, border-bottom-color;
  transition-duration: 300ms;
}

/* External link indicator - exclude bookmark cards */
.prose a[href^="http"]:not(.bookmark-link):not(.bookmark-card a)::after {
  content: '↗';
  font-size: 0.85em;
  margin-left: 0.2em;
}

/* Callout (blockquote) */
.prose blockquote {
  background: #f8f9fa;
  border-left: 2px solid #ff3c00;
  padding: 0.2em 0.75em;
  border-radius: 6px;
  margin: 1.25rem 0;
  line-height: 1.3;
  font-style: italic;
  font-size: 1em;
}
.prose blockquote p { margin: 0; }

/* Code */
.prose code {
  background: rgba(249, 250, 251, 1);
  border: 1px solid rgba(229, 231, 235, 1);
  color: #495057;
  padding: 0.1rem 0.35rem;
  border-radius: 0.375rem;
}
/* .prose details { border: 1px solid #e9ecef; border-radius: 10px; background: #fff; margin: 0.75rem 0; } */
/* .prose details[open] { background: #f6f7f9; } */
.prose details > summary { cursor: pointer; list-style: none; padding: 0.6rem 0.85rem; margin: 0; font-weight: inherit; display: block; }
.prose details > summary::-webkit-details-marker { display: none; }
.prose details > summary::before { content: ''; display: inline-block; vertical-align: middle; width: 0; height: 0; border-left: 6px solid #6b7280; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-right: 0.35rem; transition: transform .15s ease; }
.prose details[open] > summary::before { transform: rotate(90deg); }
.prose details > *:not(summary) { padding: 0 0.85rem 0.85rem; }
.prose details > summary > h2,
.prose details > summary > h3,
.prose details > summary > h4 { display: inline; margin: 0; font-weight: 700; }
.prose details > summary > h2 + *,
.prose details > summary > h3 + *,
.prose details > summary > h4 + * { display: inline; }

/* Ensure toggle content flows as a single column and wraps */
.prose details .callout,
.prose details p,
.prose details ul,
.prose details ol,
.prose details blockquote,
.prose details div { white-space: normal; }
.prose details details { margin-left: 0.75rem; }
.prose details:hover { box-shadow: 0 1px 2px rgba(16,24,40,0.04); }
.prose details[open] { border-color: #e5e7eb; }

/* Callout and toggle body text color alignment */
.prose blockquote, .prose details { color: #111827; }
.prose .callout { border-radius: 12px; padding: 0.875rem 1rem; display: flex; align-items: flex-start; gap: 0.5rem; box-shadow: 0 1px 2px rgba(16,24,40,0.04); margin: 0.5rem 0;}
.prose .callout-emoji { font-size: 1.25rem; line-height: 1; }
.prose .callout-content { flex: 1 1 auto; white-space: normal; }

/* Remove old left-border style from blockquote to avoid confusion with callout */
/* .prose blockquote { border-left-color: #e5e7eb; } */

/* Ensure toggle body is not all bold */
.prose details p,
.prose details li,
.prose details div,
.prose details blockquote { font-weight: 400; }
.prose details strong { font-weight: 700; }
.prose details h4 { font-weight: 600; margin: 1rem 0 0.5rem; }
.prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
}
.prose pre code { background: transparent; color: inherit; padding: 0; }

/* Table */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.98rem;
}
.prose th, .prose td {
  border: 1px solid #e9ecef;
  padding: 0.625rem 0.75rem;
  vertical-align: top;
}
.prose th {
  background: #f1f3f5;
  font-weight: 600;
}
.prose tr:nth-child(even) { background: #fafbfc; }

/* Images */
.prose img { max-width: 100%; height: auto; }

/* Lists */
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin: 0.25rem 0; }

/* Horizontal rule */
.prose hr { border: 0; border-top: 1px solid #e9ecef; margin: 2rem 0; }

/* Bookmark card: paragraph that only contains a single external link */
/* Modern browsers support :has. If unsupported, it gracefully degrades to normal link. */
.prose p:has(> a[href^="http"]:only-child) {
  display: block;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 0.875rem 1rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.prose p:has(> a[href^="http"]:only-child) > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.prose p:has(> a[href^="http"]:only-child) > a:hover { text-decoration: underline; }

/* Text highlight backgrounds if author uses <mark> */
.prose mark { 
  background: #fff3bf; 
  padding: 0 0.5rem;
  margin: 0 -0.5rem 0 -0.25rem;
  border-radius: 0.5rem;
  border-bottom-left-radius: 0.125rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Color highlight variants */
.prose .notion-yellow_background {
  background-image: linear-gradient(119deg, rgba(255,255,255,0.8), #fff697 10.5%, #fdf59d 85.29%, rgba(255,255,255,0.8));
  padding: 0 0.5rem;
  margin: 0 -0.5rem 0 -0.25rem;
  border-radius: 0.5rem;
  border-bottom-left-radius: 0.125rem;
  box-decoration-break: clone;
}

.prose .notion-pink_background {
  background-image: linear-gradient(119deg, rgba(255,255,255,0.8), #f5b8d1 10.5%, #f9bcd3 85.29%, rgba(255,255,255,0.8));
  padding: 0 0.5rem;
  margin: 0 -0.5rem 0 -0.25rem;
  border-radius: 0.5rem;
  border-bottom-left-radius: 0.125rem;
  box-decoration-break: clone;
}

.prose .notion-blue_background {
  background-image: linear-gradient(119deg, rgba(255,255,255,0.8), #adedfc 10.5%, #adebfd 85.29%, rgba(255,255,255,0.8));
  padding: 0 0.5rem;
  margin: 0 -0.5rem 0 -0.25rem;
  border-radius: 0.5rem;
  border-bottom-left-radius: 0.125rem;
  box-decoration-break: clone;
}

.prose .notion-red_background {
  background-image: linear-gradient(119deg, rgba(255,255,255,0.8), #f5c4ff 10.5%, #e7a8fc 85.29%, rgba(255,255,255,0.8));
  padding: 0 0.5rem;
  margin: 0 -0.5rem 0 -0.25rem;
  border-radius: 0.5rem;
  border-bottom-left-radius: 0.125rem;
  box-decoration-break: clone;
}

.prose .notion-green_background {
  background-image: linear-gradient(119deg, rgba(255,255,255,0.8), #d4eabc 10.5%, #d2eabc 85.29%, rgba(255,255,255,0.8));
  padding: 0 0.5rem;
  margin: 0 -0.5rem 0 -0.25rem;
  border-radius: 0.5rem;
  border-bottom-left-radius: 0.125rem;
  box-decoration-break: clone;
}


/* Progressive Image Loading Styles */
.progressive-image-wrapper {
  position: relative;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progressive-image {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.progressive-image.loaded {
  opacity: 1;
}

.progressive-image-wrapper.loaded {
  background: none;
  animation: none;
}

/* --- Blog header with cover and icon --- */
.blog-header-wrapper {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-cover-image {
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
  position: relative;
  border-radius: 25px;
  margin: 0 auto;
  aspect-ratio: 20 / 5;
}

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

.blog-header-content {
  text-align: center;
  position: relative;
  margin-top: -60px; /* 아이콘 높이의 절반만큼 위로 올림 */
  padding: 0 1rem;
  max-width: 1100px;
  width: 100%;
  z-index: 10;
}

@media (max-width: 1100px) {
  .blog-cover-image {
    border-radius: 0;
  }
}

.blog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: #000;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border: 4px solid #fff;
}

.blog-icon-emoji {
  font-size: 4rem;
  line-height: 1;
}

.blog-icon-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.blog-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .blog-main-title {
    font-size: 1.75rem;
  }
  
  .blog-icon {
    width: 80px;
    height: 80px;
    border-width: 3px;
  }
  
  .blog-icon-emoji {
    font-size: 2.5rem;
  }
  
  .blog-icon-img {
    width: 80px;
    height: 80px;
  }
  
  .blog-header-content {
    margin-top: -40px; /* 모바일에서 아이콘 높이의 절반 */
  }
}

/* --- Blog list: cards, filters, utilities --- */
.blog-index-page {
  max-width: 1100px !important;
}


.blog-card { 
  transition: transform .2s ease, box-shadow .2s ease, filter 150ms linear; 
  border-radius: 16px;
  overflow: visible;
  border: none !important;
  box-shadow: none !important;
}
.blog-card:hover { 
  transform: translateY(-4px); 
  box-shadow: none !important;
}
.blog-card:hover .ratio-16x9 {
  box-shadow: 2px 2px 8px 4px rgba(15, 15, 15, 0.1);
}
.blog-card:hover img {
  filter: brightness(120%);
  transition: filter 150ms linear;
}
.blog-card .ratio-16x9 {
  box-shadow: 2px 2px 8px 4px rgba(15, 15, 15, 0.1);
  transition: box-shadow 150ms linear, filter 150ms linear;
  border-radius: 16px;
}

.blog-card .card-body {
  padding: 10px;
}

/* Page link card - icon with title inline */
.page-link-card {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
  border-radius: 8px;
}

.page-link-card:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Reduce spacing for page sections */
.blog-section.mb-2 {
  margin-bottom: 0.5rem !important;
}

.blog-section.mb-2 .row {
  row-gap: 0.25rem !important;
}

.page-icon-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-icon-small {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.page-icon-small-img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.page-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
}

.page-link-card:hover .page-title {
  color: #0d6efd;
}

.ratio-16x9 { 
  position: relative; 
  width: 100%; 
  padding-top: 56.25%; 
  overflow: hidden; 
  border-radius: 16px;
}
.ratio-16x9 > img { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  transition: filter 150ms linear;
}

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; color: #6c757d; font-size: 0.875rem; }
.meta-row .dot { width: 4px; height: 4px; background: #ced4da; border-radius: 50%; display: inline-block; }

.load-more { display: block; width: 100%; text-align: center; padding: 0.625rem 1rem; border: 1px solid #e9ecef; border-radius: 8px; background: #fff; }
.load-more:hover { background: #f8f9fa; }

/* --- Blog Post Layout --- */
.blog-post-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.blog-post-container {
  display: grid;
  grid-template-columns: minmax(0, 680px) 260px;
  gap: 2.5rem;
  justify-content: center;
}

.blog-post-content {
  min-width: 0;
  width: 100%;
}

.blog-post-sidebar {
  /* Remove position and height to allow sticky to work */
}

.blog-post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-post-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.blog-post-header .meta-row {
  justify-content: center;
}

.blog-post-cover {
  text-align: center;
}

.blog-post-cover img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-section {
  display: flex;
  justify-content: center;
}

.content-divider {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid #e9ecef;
}

.blog-post-navigation {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .blog-post-navigation {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-post-navigation .nav-link-item {
  display: block;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: all 0.2s ease;
}

.blog-post-navigation .nav-link-item:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blog-newsletter-box {
  margin: 3rem 0 0;
  background: linear-gradient(135deg, #ff4400 0%, #FF8551 100%);
  border-radius: 16px;
  padding: 2.5rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 68, 0, 0.25);
}

@media (max-width: 1024px) {
  .blog-post-container {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .blog-post-sidebar {
    display: none !important;
  }
  
  .blog-post-content {
    max-width: 680px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .blog-post-layout {
    padding: 1rem;
  }
  
  .blog-post-title {
    font-size: 1.75rem;
  }
  
  .blog-newsletter-box {
    padding: 2rem 1.5rem;
  }
}

/* --- Blog detail: TOC, progress bar, share, prev-next --- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1030;
  background: linear-gradient(90deg, #0d6efd, #FF8551);
}

.toc-container { 
  position: -webkit-sticky;
  position: sticky; 
  top: 100px;
  z-index: 10;
  will-change: transform;
}

.toc-card { 
  border: 1px solid #e9ecef; 
  border-radius: 12px; 
  padding: 1.25rem; 
  background: #fff; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  max-height: calc(100vh - 120px); 
  overflow-y: auto;
}

.toc-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Custom scrollbar for TOC */
.toc-card::-webkit-scrollbar {
  width: 6px;
}

.toc-card::-webkit-scrollbar-track {
  background: transparent;
}

.toc-card::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.toc-card::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}
.toc-title { 
  font-size: 0.95rem; 
  font-weight: 600; 
  margin-bottom: 0.5rem; 
  color: #212529;
}
.toc-list { 
  list-style: none; 
  padding-left: 0; 
  margin: 0; 
}
.toc-list a { 
  display: block; 
  padding: 0.25rem 0; 
  color: #495057; 
  text-decoration: none;
  transition: color 0.2s ease;
}
.toc-list a:hover {
  color: #0d6efd;
}
.toc-list a.active { 
  color: #0d6efd; 
  font-weight: 600;
}
.toc-list .depth-2 { 
  padding-left: 0.75rem; 
  font-size: 0.95em; 
}
.toc-list .depth-3 { 
  padding-left: 1.25rem; 
  font-size: 0.9em; 
}

.toc-mobile-toggle {
  display: block;
  margin-bottom: 0.75rem;
}

@media (min-width: 992px) {
  .toc-mobile-toggle {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .toc-container { 
    position: static; 
    max-height: none;
    overflow-y: visible;
  }
}

.share-btn { 
  display: inline-flex; 
  align-items: center; 
  gap: 0.35rem; 
  border: 1px solid #e9ecef; 
  border-radius: 999px; 
  padding: 0.5rem 1rem; 
  background: #fff; 
  transition: all 0.2s ease;
}
.share-btn:hover { 
  background: #f8f9fa; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Image blocks */
.prose figure {
  margin: 1.5rem 0;
}

.prose figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.875em;
  color: #6c757d;
  text-align: center;
  font-style: italic;
}

/* Video blocks */
.prose .video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.prose .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.prose video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* File blocks */
.prose .file-block {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.prose .file-block:hover {
  background: #e9ecef;
}

.prose .file-block a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #495057;
  font-weight: 500;
}

.prose .file-block svg {
  flex-shrink: 0;
}

/* Bookmark blocks - Enhanced bookmark cards */
.prose .bookmark {
  margin: 1rem 0;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.prose .bookmark:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prose .bookmark a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  gap: 1rem;
}

.prose .bookmark-info {
  flex: 1;
  min-width: 0;
}

.prose .bookmark-title {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Enhanced bookmark cards (from style.css) */
.prose .bookmark-card {
  margin: 16px 0;
  border-radius: var(--border-radius, 12px);
  border: 1px solid var(--border-color, #e9ecef);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--background-white, #fff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 600px;
}

.prose .bookmark-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color, #ff4400);
}

.prose .bookmark-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.prose .bookmark-content {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 120px;
}

.prose .bookmark-thumbnail {
  flex-shrink: 0;
  width: 160px;
  height: 100%;
  overflow: hidden;
  background: var(--background-light, #f8f9fa);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.prose .bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.prose .bookmark-info {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.prose .bookmark-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #212529);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prose .bookmark-description {
  font-size: 15px;
  color: var(--text-secondary, #6c757d);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prose .bookmark-url {
  font-size: 13px;
  color: var(--text-light, #868e96);
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Mobile responsive for enhanced bookmarks */
@media (max-width: 768px) {
  .prose .bookmark-card {
    max-width: 100%;
  }

  .prose .bookmark-card .bookmark-content {
    height: 100px;
  }

  .prose .bookmark-thumbnail {
    width: 120px;
  }

  .prose .bookmark-info {
    padding: 12px 16px;
    gap: 4px;
  }

  .prose .bookmark-title {
    font-size: 16px;
    -webkit-line-clamp: 2;
  }

  .prose .bookmark-description {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .prose .bookmark-url {
    font-size: 12px;
  }
}

/* Embed blocks */
.prose .embed {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.prose .embed iframe {
  width: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}

.prose .embed a {
  display: block;
  padding: 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
}

.prose .embed a:hover {
  background: #e9ecef;
}

/* Author Section */
.authors-section {
  padding:0;
  margin: 2.5rem 0;
  border-radius: 16px;
}

.authors-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1.5rem;
  text-align: center;
}

.authors-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.author-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.author-avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #e9ecef;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4400 0%, #FF8551 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.25rem;
}

.author-introduce {
  font-size: 0.95rem;
  color: #495057;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.author-email {
  font-size: 0.85rem;
  color: #6c757d;
}

@media (max-width: 768px) {
  .author-avatar {
    width: 50px;
    height: 50px;
  }
  
  .author-avatar-placeholder {
    font-size: 1.25rem;
  }
  
  .author-name {
    font-size: 1rem;
  }
  
  .author-introduce {
    font-size: 0.9rem;
  }
  
  .author-email {
    font-size: 0.8rem;
  }
}

/* Newsletter Subscription Box */

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.newsletter-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.newsletter-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form .form-group {
  margin: 0;
}

.newsletter-form .form-control {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
  outline: none;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.newsletter-form .form-control::placeholder {
  color: #999;
}

.btn-subscribe {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #ff4400;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-subscribe:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #242424;
  color: #fff;
}

.btn-subscribe:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.form-message.error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #fff;
}

/* Privacy Consent Checkbox */
.privacy-consent {
  margin-top: 1rem;
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  margin: 0;
}

.privacy-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #fff;
}

.privacy-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.5;
}

.privacy-policy-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.privacy-policy-link:hover {
  opacity: 0.8;
  color: #fff;
}

/* Privacy Policy Modal */
.privacy-policy-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.privacy-policy-content h6 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #212529;
}

.privacy-policy-content h6:first-of-type {
  margin-top: 0.5rem;
}

.privacy-policy-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
}

.privacy-policy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.privacy-policy-content p {
  margin-bottom: 1rem;
}

.privacy-policy-content > p:first-child {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #ff4400;
  margin-bottom: 1.5rem;
}

#privacyModal .modal-header {
  background: linear-gradient(135deg, #ff4400 0%, #ff6b35 100%);
  color: #fff;
  border-bottom: none;
}

#privacyModal .modal-title {
  font-weight: 700;
}

#privacyModal .btn-close {
  filter: brightness(0) invert(1);
}

#privacyModal .modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
}

@media (max-width: 767.98px) {
  .newsletter-box {
    padding: 2rem 1.5rem;
  }
  
  .newsletter-title {
    font-size: 1.5rem;
  }
  
  .newsletter-description {
    font-size: 1rem;
  }
  
  .privacy-label {
    align-items: flex-start;
  }
  
  .privacy-text {
    font-size: 0.9rem;
  }
  
  #privacyModal .modal-dialog {
    margin: 0.5rem;
  }
}

