/* ============================================================
   POST CARD (shared — archive + related posts)
   ============================================================ */

.post-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

/* Image */
.post-card__img-link { display: block; }
.post-card__img-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f8f8;
}
.post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.post-card:hover .post-card__img {
    transform: scale(1.04);
}
.post-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

/* Body */
.post-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category badge with colored dot */
.post-card__cat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--cat-color, var(--color-primary));
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.post-card__cat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cat-color, var(--color-primary));
    flex-shrink: 0;
}

/* Title — max 2 lines */
.post-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}
.post-card__title a:hover { color: var(--color-primary); }

/* Excerpt — max 3 lines */
.post-card__excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 0.9rem;
    flex: 1;
}

/* Meta */
.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 1rem;
}
.post-card__meta > span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Read more link */
.post-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s;
}
.post-card__read-more:hover { gap: 0.7rem; }

/* ============================================================
   BLOG ARCHIVE PAGE
   ============================================================ */

.blog-archive { padding: 3rem 0 5rem; }

/* Search results header */
.search-header {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}
.search-header__label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semi);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}
.search-header__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-black);
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.search-header__count {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    color: var(--color-muted);
}

/* Archive header */
.archive-header {
    text-align: center;
    padding: 2.5rem 0 2rem;
    max-width: 640px;
    margin: 0 auto;
}
.archive-header__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.archive-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.archive-header__desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Category filter pills */
.blog-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.blog-cat-filter__pill {
    padding: 0.45rem 1rem;
    border-radius: 0;
    border: 1.5px solid #e0e0e0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.blog-cat-filter__pill:hover,
.blog-cat-filter__pill.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

/* Blog layout: grid + sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr 240px; gap: 2rem; }
}
@media (max-width: 768px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { display: none; } /* mobile: sidebar hidden by default */
}

/* Posts grid: 3 columns */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* Empty state */
.blog-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #888;
}
.blog-empty svg { display: block; margin: 0 auto 1rem; }
.blog-empty p { margin-bottom: 1.5rem; }

/* Blog pagination */
.blog-pagination { margin-top: 3rem; }
.blog-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}
.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    border: 1.5px solid #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.blog-pagination .page-numbers li a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.blog-pagination .page-numbers li span.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ============================================================
   BLOG SIDEBAR + WIDGETS
   ============================================================ */

.blog-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0;
    padding: 1.25rem 1.5rem;
}

.blog-widget__title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #f0f0f0;
    color: #1a1a1a;
}

/* Recent posts list */
.blog-widget__post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.blog-widget__post-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.blog-widget__post-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
}
.blog-widget__post-item div { flex: 1; min-width: 0; }
.blog-widget__post-item a {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.2rem;
    transition: color 0.2s;
}
.blog-widget__post-item a:hover { color: var(--color-primary); }
.blog-widget__post-item time {
    font-size: 0.72rem;
    color: #aaa;
}

/* Categories list */
.blog-widget__cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-widget__cat-list li {
    border-bottom: 1px solid #f5f5f5;
}
.blog-widget__cat-list li:last-child { border-bottom: none; }
.blog-widget__cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: #444;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}
.blog-widget__cat-list a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}
.blog-widget__cat-list .count {
    font-size: 0.75rem;
    color: #bbb;
    background: #f5f5f5;
    padding: 1px 6px;
    border-radius: 0;
}

/* Tags */
.blog-widget__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.blog-tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 0;
    border: 1.5px solid #e8e8e8;
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.blog-tag:hover {
    border-color: var(--color-primary);
    background: var(--pink-light);
    color: var(--color-primary);
}

/* ============================================================
   SINGLE POST
   ============================================================ */

.single-post { padding-bottom: 5rem; }

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(250,214,73,0.15);
    z-index: 9999;
    pointer-events: none;
}
.reading-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--pink-light));
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* Hero */
.single-post__hero {
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.single-post__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Breadcrumb */
.single-post__breadcrumb { padding: 1.25rem 0 0.25rem; }
.breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #999;
}
.breadcrumb a { color: #888; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb__sep { color: #ccc; }
.breadcrumb [aria-current="page"] { color: #1a1a1a; font-weight: 600; }

/* Layout: article (2fr) + sidebar (1fr) */
.single-post__layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3.5rem;
    align-items: start;
    margin-top: 1.5rem;
}
@media (max-width: 1024px) {
    .single-post__layout { grid-template-columns: 1fr 240px; gap: 2rem; }
}
@media (max-width: 768px) {
    .single-post__layout { grid-template-columns: 1fr; }
    .single-post__layout .blog-sidebar { display: none; }
}

/* Article header */
.single-post__header { margin-bottom: 2rem; }

.single-post__cat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cat-color, var(--color-primary));
    text-decoration: none;
    margin-bottom: 0.75rem;
}
.single-post__cat-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cat-color, var(--color-primary));
}

.single-post__title {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1rem;
    color: #1a1a1a;
}

/* Meta */
.single-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 1.25rem;
}
.single-post__meta > span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.single-post__meta a { color: inherit; text-decoration: none; }
.single-post__meta a:hover { color: var(--color-primary); }

/* ============================================================
   ARTICLE CONTENT TYPOGRAPHY
   ============================================================ */

.single-post__content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}
.single-post__content p {
    margin: 0 0 1.5rem;
}
.single-post__content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}
.single-post__content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2rem 0 0.75rem;
    position: relative;
    padding-left: 1rem;
}
.single-post__content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 3px;
    background: var(--color-primary);
    border-radius: 0;
}
.single-post__content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1.5rem 0 0.5rem;
}
.single-post__content ul,
.single-post__content ol {
    padding-left: 1.5rem;
    margin: 0 0 1.5rem;
}
.single-post__content li { margin-bottom: 0.4rem; line-height: 1.7; }
.single-post__content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--color-primary);
    background: var(--pink-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.05rem;
    color: #555;
}
.single-post__content blockquote p { margin: 0; }
.single-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 1.5rem 0;
}
.single-post__content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.single-post__content a:hover { text-decoration: none; }
.single-post__content code {
    background: #f5f5f5;
    padding: 0.15em 0.4em;
    border-radius: 0;
    font-size: 0.9em;
    color: #c7254e;
}
.single-post__content pre {
    background: #1a1a1a;
    color: #f8f8f8;
    padding: 1.25rem 1.5rem;
    border-radius: 0;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.88rem;
    line-height: 1.6;
}
.single-post__content pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.single-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.single-post__content th {
    background: #f8f8f8;
    font-weight: 700;
    padding: 0.6rem 0.9rem;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}
.single-post__content td {
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}
.single-post__content hr {
    border: none;
    border-top: 2px solid #f0f0f0;
    margin: 2.5rem 0;
}

/* Tags */
.single-post__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}
.single-post__tags-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Share buttons */
.single-post__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.single-post__share--bottom {
    padding: 1.5rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-top: 2rem;
}
.single-post__share-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 0.25rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 0;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    line-height: 1;
}
.share-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.share-btn--fb  { background: #1877f2; color: #fff; }
.share-btn--wa  { background: #25d366; color: #fff; }
.share-btn--copy { background: #f0f0f0; color: #444; }

/* Top share: icon-only */
.single-post__share--top .share-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* Author box */
.single-post__author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--pink-light);
    border-radius: 0;
    padding: 1.5rem;
    margin-top: 2.5rem;
}
.single-post__author-avatar {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.single-post__author-info { flex: 1; }
.single-post__author-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin: 0 0 0.25rem;
}
.single-post__author-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
}
.single-post__author-name:hover { color: var(--color-primary); }
.single-post__author-bio {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Post navigation */
.single-post__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}
.single-post__nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem;
    border: 1.5px solid #eee;
    border-radius: 0;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.single-post__nav-link:hover {
    border-color: var(--color-primary);
    background: var(--pink-light);
}
.single-post__nav-link--next { text-align: right; }
.single-post__nav-dir {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-primary);
}
.single-post__nav-link--next .single-post__nav-dir { justify-content: flex-end; }
.single-post__nav-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Comments */
.single-post__comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */

.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}
.related-posts__heading {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}
.related-posts__heading::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 0;
}
.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .related-posts__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .post-card,
    .post-card__img,
    .reading-progress__bar,
    .share-btn { transition: none !important; }
}
