/* =============================================
   Blog Detail / Single Page
   ============================================= */

.page-blog-detail {
  background: var(--color-white);
  color: var(--color-black);
}

/* ---- Hero ---- */

.page-hero--detail {
  min-height: 480px;
}

.page-hero-overlay--detail {
  background: rgba(0, 0, 0, 0.72);
}

.page-hero-content--detail {
  max-width: 980px;
  margin: 0 auto;
}

.page-hero-title--detail {
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.page-hero--detail .page-breadcrumb {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.35rem;
}

.page-hero--detail .page-breadcrumb span:last-child {
  color: rgba(255, 255, 255, 0.92);
}

/* ---- Main Article ---- */

.blog-detail-main {
  padding: 4rem 0 5rem;
  background: var(--color-white);
}

.blog-detail-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.blog-detail-featured {
  overflow: hidden;
  margin-bottom: 2rem;
}

.blog-detail-featured img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Meta row */

.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
}

.blog-detail-meta-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.blog-detail-meta-sep {
  opacity: 0.45;
}

/* Content typography */

.blog-detail-content {
  color: rgba(17, 17, 17, 0.72);
}

.blog-detail-content p {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.blog-detail-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-black);
  margin: 2.5rem 0 1.25rem;
}

.blog-detail-gallery {
  margin: 2rem 0;
}

.blog-detail-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Pull quote */

.blog-detail-quote {
  position: relative;
  margin: 2.75rem 0;
  padding: 2rem 2rem 2rem 4.5rem;
  border: 1px solid rgba(var(--color-accent-rgb), 0.35);
  border-left: 3px solid var(--color-accent);
  background: #fafafa;
}

.blog-detail-quote-icon {
  position: absolute;
  top: 1.5rem;
  left: 1.35rem;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-accent);
}

.blog-detail-quote p {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.75;
  color: rgba(17, 17, 17, 0.78);
  margin: 0 0 1rem;
}

.blog-detail-quote cite {
  display: block;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-black);
}

/* Post navigation */

.blog-detail-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-detail-nav-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  gap: 0.35rem 1rem;
  padding: 1.25rem;
  text-decoration: none;
  background: #f5f5f5;
  transition: background 0.35s ease, transform 0.35s ease;
}

.blog-detail-nav-item:hover {
  background: #eeeeee;
  transform: translateY(-2px);
}

.blog-detail-nav-item img {
  grid-row: 1 / 3;
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.blog-detail-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.blog-detail-nav-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-black);
}

.blog-detail-nav-item--next {
  grid-template-columns: 1fr 72px;
}

.blog-detail-nav-item--next img {
  grid-column: 2;
  grid-row: 1 / 3;
}

.blog-detail-nav-item--next .blog-detail-nav-label,
.blog-detail-nav-item--next .blog-detail-nav-title {
  grid-column: 1;
  text-align: right;
}

/* ---- Comments ---- */

.blog-comments {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-comments-title,
.blog-reply-title {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 2rem;
}

.blog-comment {
  display: flex;
  gap: 1.25rem;
}

.blog-comment-avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-comment-body {
  flex: 1;
  min-width: 0;
}

.blog-comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.blog-comment-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 0.25rem;
}

.blog-comment-date {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.45);
}

.blog-comment-reply {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border: none;
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-accent);
  cursor: pointer;
  transition: background 0.35s ease;
}

.blog-comment-reply:hover {
  background: var(--color-accent-hover);
}

.blog-comment-text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(17, 17, 17, 0.68);
  margin: 0;
}

/* ---- Reply Form ---- */

.blog-reply {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-reply-field input,
.blog-reply-field textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  color: var(--color-black);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.35s ease;
  resize: vertical;
}

.blog-reply-field input::placeholder,
.blog-reply-field textarea::placeholder {
  color: rgba(17, 17, 17, 0.4);
}

.blog-reply-field input:focus,
.blog-reply-field textarea:focus {
  border-bottom-color: var(--color-accent);
}

.blog-reply-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.62);
  cursor: pointer;
}

.blog-reply-check input {
  margin-top: 0.25rem;
  accent-color: var(--color-accent);
}

.blog-reply-submit {
  display: inline-block;
  padding: 1.05rem 2.25rem;
  border: none;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-accent);
  cursor: pointer;
  transition: background 0.35s ease, transform 0.35s ease;
}

.blog-reply-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* ---- Responsive ---- */

@media (max-width: 767.98px) {
  .page-hero--detail {
    min-height: 380px;
  }

  .blog-detail-main {
    padding: 2.5rem 0 4rem;
  }

  .blog-detail-nav {
    grid-template-columns: 1fr;
  }

  .blog-detail-nav-item--next {
    grid-template-columns: 72px 1fr;
  }

  .blog-detail-nav-item--next img {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .blog-detail-nav-item--next .blog-detail-nav-label,
  .blog-detail-nav-item--next .blog-detail-nav-title {
    grid-column: 2;
    text-align: left;
  }

  .blog-comment {
    flex-direction: column;
  }

  .blog-comment-head {
    flex-direction: column;
  }
}
