/* ============================================================
   BLOG  —  listing + single post
   (Header, footer, banner, breadcrumb, badges, helpers = global.css)
   ============================================================ */

/* ============================================================
   POST CARD  (reused: listing grid + related posts)
   ============================================================ */
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(16,30,55,.4); }
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-cream); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--color-muted-text);
}
.post-cat {
    color: var(--color-secondary);
    font-weight: 600;
}
.post-card h2,
.post-card h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: var(--color-primary);
    margin: 0;
}
.post-card h2 a:hover,
.post-card h3 a:hover { color: var(--color-secondary); }
.post-card p { font-size: 16px; line-height: 1.6; color: var(--color-body); margin: 0; }
.post-card .text-link { margin-top: auto; }

/* ============================================================
   BLOG LISTING
   ============================================================ */
.blog-listing-section { background: var(--color-cream-2); padding: 90px 0; }

/* Featured post — full-width split card */
.post-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 50px;
}
.post-featured .post-thumb { aspect-ratio: auto; height: 100%; min-height: 340px; }
.post-featured .post-body { padding: 46px; gap: 16px; justify-content: center; }
.post-featured h2 { font-size: 34px; line-height: 1.2; }

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

/* Pagination */
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 60px; }
.blog-pagination a,
.blog-pagination span {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 15px;
    color: var(--color-body);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.blog-pagination a:hover { border-color: var(--color-secondary); color: var(--color-secondary); }
.blog-pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-light);
}
.post-author .auth-img {
	width: 50px;
	height: 50px;
	position: relative;
	border: 1px solid var(--color-border);
	border-radius: 50px;
	overflow: hidden;
	background-color: var(--color-border);
}
.post-author .auth-img img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}
/* ============================================================
   SINGLE POST
   ============================================================ */
.post-single-section { background: var(--color-light); padding: 70px 0 90px; }
.post-single { max-width: 820px; margin: 0 auto; }
.post-single-header { margin-bottom: 30px; }
.post-single-header .post-meta { margin-bottom: 16px; }
.post-single-header h1 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 44px;
    line-height: 1.2;
    color: var(--color-primary);
    margin: 0;
}
.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
}
.post-author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-cream);
}
.post-author-name strong { display: block; font-size: 16px; color: var(--color-primary); }
.post-author-name span { font-family: var(--font-accent); font-size: 13px; color: var(--color-muted-text); }

.post-feature-image { margin: 0 0 36px; border-radius: 14px; overflow: hidden; }
.post-feature-image img { width: 100%; height: auto; display: block; }

/* Share row */
.post-share, .cta-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
.cta-social{margin-top: 0; border-top: 0; padding-top: 10px; justify-content: center;}
.post-share span, .cta-social span {
    font-family: var(--font-accent);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-muted-text);
}
.post-share a, .cta-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-body);
    font-size: 14px;
}
.cta-social a{border-color: transparent;}
.post-share a:hover, .cta-social a:hover { background: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-primary); }
.post-share svg path, .cta-social svg path {
    fill: #ddd;
}
.cta-social a:hover{border-color: #fff;}
.cta-social a svg{
    width: 15px;
    height: 15px;
}
.share-linkedin svg {
    width: 15px;
    height: 15px;
}

/* Related posts */
.related-section { background: var(--color-cream-2); padding: 90px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

/* ============================================================
   BLOG RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
    .blog-grid,
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .post-featured { grid-template-columns: 1fr; }
    .post-featured .post-thumb { min-height: 260px; }
    .post-featured .post-body { padding: 32px; }
}
@media (max-width: 640px) {
    .blog-grid,
    .related-grid { grid-template-columns: 1fr; }
    .post-single-header h1 { font-size: 32px; }
    .post-featured h2 { font-size: 26px; }
}
