/* WP Nitin: blog, single posts, search and 404 (loaded only on those views). */
/* ==========================================================================
   Blog: post cards, single posts, author box, related posts, comments, search, 404
   ========================================================================== */
.wpn-post-list { padding: 64px 0 96px; }
.wpn-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wpn-post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--wpn-border); border-radius: 22px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.wpn-post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(17,27,41,.07); }
.wpn-post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f3f6f9; }
.wpn-post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s ease; }
.wpn-post-card:hover .wpn-post-thumb img { transform: scale(1.03); }
.wpn-post-thumb-fallback { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 80% 20%, rgba(var(--wpn-accent-rgb),.18), transparent 45%), radial-gradient(circle at 15% 85%, rgba(18,178,166,.16), transparent 45%), linear-gradient(135deg, #f8fcfd, var(--wpn-accent-tint)); }
.wpn-post-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.wpn-post-cat { align-self: flex-start; margin-bottom: 10px; color: var(--wpn-accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.wpn-post-title { margin: 0 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.wpn-post-title a { color: var(--wpn-heading); text-decoration: none; }
.wpn-post-title a:hover { color: var(--wpn-accent); }
.wpn-post-excerpt { margin: 0 0 18px; color: #5d6e82; font-size: 14px; line-height: 1.6; }
.wpn-post-card .wpn-post-meta { margin: auto 0 0; }
.wpn-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 18px 0 0; color: #5d6f79; font-size: 13px; font-weight: 600; }
.wpn-post-meta .sep { color: #a5b0bb; }
.wpn-title-band .wpn-post-meta { font-size: 14px; }

/* Single post */
.single-post .wpn-page-title { max-width: 980px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; }
.wpn-featured-image { max-width: calc(var(--wpn-container) * .82 + var(--wpn-gutter) * 2); margin: 48px auto 0; padding-inline: var(--wpn-gutter); }
.wpn-featured-image img { display: block; width: 100%; height: auto; border: 1px solid #e0e6ec; border-radius: 22px; }
.wpn-featured-image + .entry-content { padding-top: 48px; }
.wpn-post-footer { max-width: var(--wpn-content); margin: 0 auto; padding: 0 var(--wpn-gutter) 72px; }
.wpn-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.wpn-post-tags a { padding: 7px 12px; border: 1px solid #d8e1e9; border-radius: 999px; color: #263548; font-size: 12px; font-weight: 700; text-decoration: none; }
.wpn-post-tags a:hover { border-color: var(--wpn-accent); color: var(--wpn-accent); }

.wpn-author-box { display: flex; gap: 20px; padding: 28px; border: 1px solid #e1e6eb; border-radius: 22px; background: #f7f9fb; }
.wpn-author-avatar { flex: 0 0 64px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--wpn-accent), var(--wpn-accent-deep)); color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.wpn-author-box p { margin: 0; }
.wpn-author-label { color: #6b7a8c; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.wpn-author-name { margin-top: 4px !important; color: var(--wpn-heading); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.wpn-author-role { color: #5d6f79; font-size: 14px; font-weight: 600; }
.wpn-author-bio { margin-top: 10px !important; color: #4d5f73; font-size: 15px; line-height: 1.65; }
.wpn-author-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px !important; font-size: 14px; font-weight: 700; }
.wpn-author-links a { color: var(--wpn-accent); text-decoration: none; }

.post-navigation { margin-top: 32px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-navigation a { display: block; height: 100%; padding: 18px 20px; border: 1px solid #e1e6eb; border-radius: 16px; text-decoration: none; transition: border-color .2s ease; }
.post-navigation a:hover { border-color: var(--wpn-accent); }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.post-navigation .nav-label { display: block; margin-bottom: 4px; color: #6b7a8c; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-navigation .nav-title { color: var(--wpn-heading); font-size: 15px; font-weight: 700; line-height: 1.4; }

.wpn-related-posts { padding: 80px 0 96px; border-top: 1px solid #e1e6eb; background: #f7f9fb; }
.wpn-related-posts h2 { margin: 0 0 28px; font-size: clamp(28px, 3vw, 40px); }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; place-items: center; padding: 0 14px; border: 1px solid #d8e1e9; border-radius: 12px; color: #263548; font-size: 14px; font-weight: 700; text-decoration: none; }
.pagination .page-numbers.current { border-color: var(--wpn-btn-bg); background: var(--wpn-btn-bg); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--wpn-btn-hover); background: var(--wpn-btn-hover); color: #fff; }

/* Search form */
.wpn-search-form { display: flex; gap: 8px; max-width: 560px; margin-top: 28px; }
.wpn-search-form input[type="search"] { flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; border: 1px solid #d5dfe9; border-radius: 12px; background: #fff; color: #111b29; font: inherit; font-size: 15px; }
.wpn-search-form input[type="search"]:focus { border-color: var(--wpn-accent); outline: 0; box-shadow: 0 0 0 4px rgba(var(--wpn-accent-rgb),.12); }
.wpn-search-form button { min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--wpn-btn-bg); color: #fff; font: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px rgba(17,27,41,.14); cursor: pointer; transition: background .2s ease; }
.wpn-empty { max-width: 640px; padding: 40px; border: 1px solid #e1e6eb; border-radius: 22px; background: #f7f9fb; }
.wpn-empty h2 { margin: 0 0 8px; font-size: 28px; }
.wpn-empty p { margin: 0; color: #5d6e82; }

/* 404 */
.wpn-404-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-block: 64px 96px; }
.wpn-404-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid #e1e6eb; border-radius: 20px; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.wpn-404-card:hover { transform: translateY(-3px); border-color: var(--wpn-accent); }
.wpn-404-card strong { color: var(--wpn-heading); font-size: 18px; }
.wpn-404-card span { color: #5d6e82; font-size: 14px; line-height: 1.5; }

/* Comments */
.wpn-comments { max-width: calc(var(--wpn-content) + var(--wpn-gutter) * 2); padding-block: 0 96px; }
.wpn-related-posts + .wpn-comments { padding-top: 72px; }
.wpn-comments h2, .comment-reply-title { margin: 0 0 20px; font-size: 26px; }
.comment-list { margin: 0 0 40px; padding: 0; list-style: none; }
.comment-list .comment { margin: 0 0 16px; }
.comment-list .children { margin: 16px 0 0 24px; padding: 0; list-style: none; }
.comment-body { padding: 20px 22px; border: 1px solid #e1e6eb; border-radius: 16px; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; font-size: 13px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: #6b7a8c; text-decoration: none; }
.comment-content p { margin: 0 0 10px; font-size: 15px; }
.reply a { font-size: 13px; font-weight: 700; color: var(--wpn-accent); text-decoration: none; }
.comment-form p { margin: 0 0 16px; }
.comment-form label { display: block; margin-bottom: 6px; color: #263548; font-size: 13px; font-weight: 700; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 15px; border: 1px solid #d5dfe9; border-radius: 12px; background: #f9fbfc; font: inherit; font-size: 15px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--wpn-accent); outline: 0; box-shadow: 0 0 0 4px rgba(var(--wpn-accent-rgb),.12); background: #fff; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 500; color: #5d6e82; }
.comment-form .submit { min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--wpn-btn-bg); color: #fff; font: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px rgba(17,27,41,.14); cursor: pointer; transition: background .2s ease; }

@media (max-width: 960px) {
	.wpn-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wpn-404-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.wpn-post-grid, .wpn-404-links { grid-template-columns: 1fr; }
	.wpn-featured-image { margin-top: 28px; }
	.wpn-featured-image img { border-radius: 16px; }
	.wpn-author-box { flex-direction: column; padding: 22px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; text-align: left; }
	.wpn-search-form { flex-direction: column; }
	.wpn-empty { padding: 26px; }
}

.wpn-search-form button:hover, .comment-form .submit:hover { background: var(--wpn-btn-hover); }
