/* ============================================================
   BLOG DETAIL – MINIMALIST & MODERN
   Inter + Lora · 2-column with clean sidebar
   ============================================================ */

:root {
  --m-text: #1a1a1a;
  --m-sub: #6b6b6b;
  --m-line: #e5e7eb;
  --m-bg: #ffffff;
  --m-bg2: #f7f7f7;
  --m-red: #dc2626;
  --m-blue: #2563eb;
  --m-accent: #2563eb;
  --m-r: 8px;
  --m-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --m-serif: "Lora", Georgia, serif;
}

/* ── Reading Progress ── */
.m-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--m-blue);
  z-index: 9999;
  pointer-events: none;
  transition: width 0.12s linear;
}

/* ── Page Wrapper ── */
.m-page {
  width: 100%;
  padding: 2rem 2.5rem 3rem;
  font-family: var(--m-sans);
  color: var(--m-text);
  box-sizing: border-box;
}

/* ── Breadcrumb ── */
.m-crumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--m-sub);
  margin-bottom: 2rem;
}

.m-crumb a {
  color: var(--m-sub);
  text-decoration: none;
}

.m-crumb a:hover {
  color: var(--m-text);
}

.m-crumb span {
  opacity: 0.4;
}

/* ── Category Pills ── */
.m-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.m-cats a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--m-red);
  background: transparent;
  border: 1px solid var(--m-red);
  border-radius: 2rem;
  text-decoration: none;
  transition: all 0.2s;
}

.m-cats a:hover {
  background: var(--m-red);
  color: #fff;
  border-color: var(--m-red);
}

/* ── Title ── */
.m-title {
  font-family: var(--m-serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--m-text);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

/* ── Subtitle ── */
.m-subtitle {
  font-family: var(--m-serif);
  font-size: 1.1rem;
  color: var(--m-sub);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 700px;
}

/* ── Meta Line ── */
.m-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--m-line);
  border-bottom: 1px solid var(--m-line);
  margin-bottom: 1.75rem;
}

.m-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.m-author img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.m-author strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--m-red);
}

.m-author span {
  display: block;
  font-size: 0.75rem;
  color: var(--m-sub);
}

.m-share-mini {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.m-share-mini a,
.m-share-mini button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--m-sub);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s;
}

.m-share-mini a:hover,
.m-share-mini button:hover {
  color: var(--m-text);
  background: var(--m-bg2);
}

/* ── Hero Image ── */
.m-hero {
  margin: 0 0 2rem;
  border-radius: var(--m-r);
  overflow: hidden;
  aspect-ratio: 1920 / 600;
}

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2-COLUMN GRID
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.m-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.m-main {
  min-width: 0;
}

/* ── Body Content ── */
.m-body {
  font-family: var(--m-serif);
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--m-text);
  margin-bottom: 2rem;
}

.m-body p {
  margin: 0 0 1.4rem;
}

.m-body h2 {
  font-family: var(--m-sans);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.m-body h3 {
  font-family: var(--m-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
}

.m-body blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--m-blue);
  font-style: italic;
  color: var(--m-sub);
}

.m-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--m-r);
  margin: 1.5rem 0;
  display: block;
}

.m-body figure.image {
  margin: 1.5rem 0;
  padding: 0;
}

.m-body figure.image img {
  margin: 0;
  border-radius: var(--m-r);
}

.m-body figure.image-style-inline {
  display: inline;
  margin: 0.5rem 0;
}

.m-body figure.image-style-inline img {
  display: inline;
  max-width: 100%;
  height: auto;
  margin: 0;
  vertical-align: middle;
}

.m-body figure.image-style-side {
  float: right;
  margin: 0.5rem 0 1rem 1.25rem;
  max-width: 45%;
}

.m-body figure.image-style-side img {
  display: block;
}

.m-body figure.image-style-block {
  display: block;
  text-align: center;
  margin: 1.5rem auto;
  max-width: 85%;
}

.m-body figure.image-style-block img {
  display: block;
  margin: 0 auto;
}

.m-body figure.image-style-full {
  display: block;
  text-align: center;
  margin: 1.5rem 0;
  max-width: 100%;
}

.m-body figure.image-style-full img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.m-body figure.image figcaption {
  font-size: 0.85rem;
  color: var(--m-sub);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.m-body ul,
.m-body ol {
  padding-left: 1.4rem;
  margin: 0 0 1.5rem;
}

.m-body li {
  margin-bottom: 0.4rem;
}

.m-body a {
  color: var(--m-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--m-line);
}

.m-body a:hover {
  text-decoration-color: var(--m-blue);
  color: var(--m-blue);
}

.m-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: var(--m-sans);
  font-size: 0.9rem;
}

.m-body th,
.m-body td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--m-line);
  text-align: left;
}

.m-body th {
  font-weight: 600;
  border-bottom-width: 2px;
}

/* ── Tags ── */
.m-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.m-tags a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-family: var(--m-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--m-sub);
  background: var(--m-bg2);
  border-radius: 2rem;
  text-decoration: none;
  transition: all 0.15s;
}

.m-tags a:hover {
  background: var(--m-red);
  color: #fff;
}

/* ── Share Footer ── */
.m-share-footer {
  text-align: center;
  margin-bottom: 2rem;
}

.m-share-footer p {
  font-size: 0.85rem;
  color: var(--m-sub);
  margin: 0 0 0.6rem;
}

.m-share-row {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.m-share-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  font-family: var(--m-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--m-text);
  border: 1px solid var(--m-line);
  border-radius: 2rem;
  text-decoration: none;
  transition: all 0.2s;
}

.m-share-row a:hover {
  background: var(--m-blue);
  color: #fff;
  border-color: var(--m-blue);
}

.m-divider {
  border: none;
  border-top: 1px solid var(--m-line);
  margin: 0 0 2rem;
}

/* ── Author Bio ── */
.m-bio {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.m-bio-img img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.m-bio-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--m-sub);
  margin: 0 0 0.1rem;
}

.m-bio-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.m-bio-desc {
  font-size: 0.85rem;
  color: var(--m-sub);
  line-height: 1.5;
  margin: 0;
}

/* ── Comments ── */
.m-comments {
  margin-bottom: 1.5rem;
}

.m-comments h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.m-cform textarea,
.m-cform input[type="text"],
.m-cform-name input,
.m-reply-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  font-size: 0.88rem;
  font-family: var(--m-sans);
  color: var(--m-text);
  margin-bottom: 0.5rem;
  box-sizing: border-box;
  background: var(--m-bg);
}

.m-cform textarea:focus,
.m-reply-form textarea:focus {
  outline: none;
  border-color: var(--m-blue);
}

.m-cform button,
.m-reply-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--m-r);
  background: var(--m-red);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--m-sans);
  cursor: pointer;
}

.m-cform button:hover,
.m-reply-form button:hover {
  opacity: 0.85;
}

.m-login-hint {
  font-size: 0.88rem;
  color: var(--m-sub);
  margin-bottom: 1.5rem;
}

.m-login-hint a {
  color: var(--m-text);
  font-weight: 600;
  text-decoration: underline;
}

.m-clist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.m-comment {
  padding: 1rem;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  background: var(--m-bg);
}

.m-comment-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.m-avatar {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 50%;
  background: var(--m-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
}

.m-avatar-sm {
  width: 1.6rem;
  height: 1.6rem;
  min-width: 1.6rem;
  font-size: 0.68rem;
}

.m-comment-top strong {
  font-size: 0.85rem;
}

.m-comment-top time {
  display: block;
  font-size: 0.7rem;
  color: var(--m-sub);
}

.m-comment p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.m-reply-btn {
  margin-top: 0.4rem;
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--m-sub);
  cursor: pointer;
  font-family: var(--m-sans);
}

.m-reply-btn:hover {
  color: var(--m-text);
}

.m-reply-form {
  margin-top: 0.6rem;
  padding: 0.75rem;
  background: var(--m-bg2);
  border-radius: var(--m-r);
}

.m-replies {
  margin-top: 0.5rem;
  margin-left: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--m-line);
}

.m-comment-nested {
  border: none;
  padding: 0.75rem;
  background: var(--m-bg2);
}

.m-no-comments {
  font-size: 0.88rem;
  color: var(--m-sub);
  text-align: center;
  padding: 2rem 1rem;
  background: var(--m-bg2);
  border-radius: var(--m-r);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SIDEBAR – Clean Minimalist Cards
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.m-sidebar {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.m-card {
  background: var(--m-bg);
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  padding: 1.1rem;
}

.m-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--m-blue);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--m-line);
}

/* Category List */
.m-catlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-catlist li {
  border-bottom: 1px solid var(--m-line);
}

.m-catlist li:last-child {
  border-bottom: none;
}

.m-catlist a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.84rem;
  color: var(--m-text);
  text-decoration: none;
  transition: padding-left 0.15s;
}

.m-catlist a:hover {
  padding-left: 0.3rem;
  color: var(--m-red);
}

.m-catlist a span {
  font-size: 0.7rem;
  color: #fff;
  background: var(--m-blue);
  padding: 0.12rem 0.4rem;
  border-radius: 2rem;
  font-weight: 600;
}

/* Recent Posts */
.m-recent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--m-line);
  transition: transform 0.15s;
}

.m-recent:last-child {
  border-bottom: none;
}

.m-recent:hover {
  transform: translateX(2px);
}

.m-recent-thumb {
  width: 52px;
  min-width: 52px;
  height: 40px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--m-bg2);
}

.m-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m-recent h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--m-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-recent span {
  font-size: 0.67rem;
  color: var(--m-sub);
}

/* Newsletter Card */
.m-card-nl {
  background: var(--m-bg2);
  border-color: var(--m-line);
}

.m-card-nl p {
  font-size: 0.82rem;
  color: var(--m-sub);
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.m-nl-side {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.m-nl-side input[type="email"] {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  font-size: 0.82rem;
  font-family: var(--m-sans);
  color: var(--m-text);
  background: var(--m-bg);
  width: 100%;
  box-sizing: border-box;
}

.m-nl-side input[type="email"]:focus {
  outline: none;
  border-color: var(--m-blue);
}

.m-nl-side button {
  padding: 0.55rem;
  border: none;
  border-radius: var(--m-r);
  background: var(--m-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--m-sans);
  cursor: pointer;
}

.m-nl-side button:hover {
  opacity: 0.85;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RELATED POSTS (full width)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.m-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--m-line);
}

.m-related h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1.15rem;
}

.m-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

a.m-rcard {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--m-r);
  overflow: hidden;
  border: 1px solid var(--m-line);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

a.m-rcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.m-rcard-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.m-rcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

a.m-rcard:hover .m-rcard-img img {
  transform: scale(1.03);
}

.m-rcard-text {
  padding: 0.8rem 0.95rem;
}

.m-rcard-cat {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--m-blue);
  margin-bottom: 0.2rem;
}

.m-rcard-text h3 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--m-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

a.m-rcard:hover .m-rcard-text h3 {
  color: var(--m-blue);
}

.m-rcard-date {
  font-size: 0.7rem;
  color: var(--m-sub);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 960px) {
  .m-grid {
    grid-template-columns: 1fr;
  }

  .m-sidebar {
    position: static;
  }

  .m-title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .m-page {
    padding: 1.25rem 1rem 2rem;
  }

  .m-title {
    font-size: 1.55rem;
  }

  .m-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .m-related-grid {
    grid-template-columns: 1fr;
  }

  .m-bio {
    flex-direction: column;
  }

  .m-share-row {
    flex-direction: column;
    align-items: stretch;
  }

  .m-share-row a {
    justify-content: center;
  }
}
