/**
 * CoParents Blog — lightweight stylesheet
 * Scoped to blog content only (header/footer are BuddyBoss native)
 */

/* Container */
.cp-blog-active .cp-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.cp-blog-active .cp-container * { box-sizing: border-box; }

/* Breadcrumbs */
.cp-breadcrumbs { font-size: 12px; color: #888; padding: 16px 0 8px; line-height: 1.4; }
.cp-breadcrumbs a { color: #666; text-decoration: none; }
.cp-breadcrumbs a:hover { color: #E4007C; text-decoration: underline; }
.cp-breadcrumbs .cp-breadcrumbs-sep { color: #ccc; margin: 0 4px; }
.cp-breadcrumbs .cp-breadcrumbs-current { color: #1a1f3a; font-weight: 500; }

/* ==================== LISTING (home.php + category.php) ==================== */
.cp-listing { padding: 32px 0 48px; }
.cp-listing-header { margin-bottom: 24px; }
.cp-listing-title { font-size: 28px; font-weight: 600; margin: 0 0 8px; line-height: 1.2; color: #1a1f3a; }
.cp-listing-desc { font-size: 15px; color: #555; line-height: 1.6; margin: 0 0 20px; max-width: 640px; }

/* Category pills */
.cp-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cp-pill { font-size: 13px; padding: 7px 14px; background: #f3f3f3; color: #1a1f3a; border-radius: 999px; text-decoration: none; transition: background 0.15s; display: inline-block; }
.cp-pill:hover { background: #e5e5e5; color: #1a1f3a; }
.cp-pill.cp-pill-active { background: #E4007C; color: #fff; font-weight: 500; }
.cp-pill.cp-pill-active:hover { background: #c30069; color: #fff; }

/* Hero card */
.cp-hero { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; margin-bottom: 20px; display: block; text-decoration: none; color: inherit; transition: border-color 0.15s; }
.cp-hero:hover { border-color: #ddd; color: inherit; }
.cp-hero-inner { display: grid; grid-template-columns: 1fr; gap: 0; }
.cp-hero-img-wrap { aspect-ratio: 16/9; background: #f3f3f3; overflow: hidden; }
.cp-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-hero-body { padding: 20px; }
.cp-hero-cat { font-size: 11px; color: #E4007C; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 8px; }
.cp-hero-title { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 0 0 10px; color: #1a1f3a; }
.cp-hero-excerpt { font-size: 14px; line-height: 1.6; color: #555; margin: 0 0 12px; }
.cp-hero-meta { font-size: 12px; color: #888; }

@media (min-width: 768px) {
	.cp-hero-inner { grid-template-columns: 1fr 1fr; }
	.cp-hero-img-wrap { aspect-ratio: auto; min-height: 280px; }
	.cp-hero-title { font-size: 24px; }
}

/* Cards grid */
.cp-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .cp-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cp-grid { grid-template-columns: 1fr 1fr 1fr; } }

.cp-card { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.15s; display: flex; flex-direction: column; }
.cp-card:hover { border-color: #ddd; color: inherit; }
.cp-card-img-wrap { aspect-ratio: 16/10; background: #f3f3f3; overflow: hidden; }
.cp-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-img-placeholder { display: block; width: 100%; height: 100%; background: #f3f3f3; }
.cp-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.cp-card-cat { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.cp-card-title { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0 0 8px; color: #1a1f3a; }
.cp-card-excerpt { font-size: 13px; line-height: 1.55; color: #555; margin: 0; }

/* Pagination */
.cp-pagination { display: flex; justify-content: center; gap: 6px; margin: 40px 0 16px; flex-wrap: wrap; }
.cp-pagination a,
.cp-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; font-size: 14px; border: 1px solid #ddd; border-radius: 999px; text-decoration: none; color: #1a1f3a; background: #fff; }
.cp-pagination a:hover { border-color: #E4007C; color: #E4007C; }
.cp-pagination .current { background: #E4007C; color: #fff; border-color: #E4007C; }
.cp-pagination .dots { border: none; background: transparent; }

/* ==================== SINGLE ARTICLE ==================== */
.cp-single { padding: 24px 0 48px; }
.cp-single-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) {
	.cp-single-layout { grid-template-columns: 1fr 260px; gap: 40px; }
}

.cp-article-cat { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.cp-article-cat a { color: inherit; text-decoration: none; }
.cp-article-title { font-size: 26px; font-weight: 600; line-height: 1.25; margin: 0 0 12px; color: #1a1f3a; }
.cp-article-meta { font-size: 13px; color: #888; margin-bottom: 18px; }
.cp-article-featured { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 20px; display: block; }

@media (min-width: 768px) {
	.cp-article-title { font-size: 30px; }
}

/* Article content */
.cp-article-content { font-size: 16px; line-height: 1.75; color: #1a1f3a; }
.cp-article-content p { margin: 0 0 18px; }
.cp-article-content h2 { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 30px 0 14px; color: #1a1f3a; }
.cp-article-content h3 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 24px 0 12px; color: #1a1f3a; }
.cp-article-content a { color: #E4007C; text-decoration: underline; }
.cp-article-content a:hover { color: #c30069; }
.cp-article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.cp-article-content ul,
.cp-article-content ol { margin: 0 0 18px; padding-left: 24px; }
.cp-article-content li { margin-bottom: 6px; }
.cp-article-content blockquote { border-left: 3px solid #E4007C; padding: 8px 0 8px 18px; margin: 20px 0; font-style: italic; color: #555; }
.cp-article-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.cp-article-content th,
.cp-article-content td { padding: 10px 12px; border: 1px solid #eee; text-align: left; }
.cp-article-content th { background: #f9f9f9; font-weight: 600; }

/* ==================== CTA INLINE ==================== */
.cp-blog-active .cp-cta-inline { margin: 28px 0; padding: 22px 20px; background: #FFF0F6; border: 1px solid #FBD0E2; border-radius: 12px; text-align: center; }
.cp-blog-active .cp-cta-inline-title { font-size: 16px; font-weight: 600; color: #8A1F4C; margin: 0 0 6px; }
.cp-blog-active .cp-cta-inline-text { font-size: 14px; color: #8A1F4C; opacity: 0.85; margin: 0 0 14px; line-height: 1.5; }
.cp-blog-active .cp-cta-inline-btn,
.cp-blog-active a.cp-cta-inline-btn { display: inline-block; background: #E4007C !important; color: #ffffff !important; font-size: 14px; font-weight: 600; padding: 12px 28px; border-radius: 999px; text-decoration: none !important; transition: background 0.15s; }
.cp-blog-active .cp-cta-inline-btn:hover,
.cp-blog-active a.cp-cta-inline-btn:hover { background: #c30069 !important; color: #ffffff !important; }
.cp-blog-active .cp-cta-inline-trust { font-size: 11px; color: #8A1F4C; opacity: 0.7; margin-top: 12px; }

.cp-blog-active .cp-cta-end { margin: 36px 0 28px; padding: 28px 22px; background: #FFF0F6; border: 1px solid #FBD0E2; border-radius: 14px; text-align: center; }
.cp-blog-active .cp-cta-end-icon { font-size: 28px; margin-bottom: 10px; }
.cp-blog-active .cp-cta-end-title { font-size: 20px; font-weight: 600; color: #8A1F4C; margin: 0 0 8px; }
.cp-blog-active .cp-cta-end-text { font-size: 15px; color: #8A1F4C; opacity: 0.85; margin: 0 0 18px; line-height: 1.55; }
.cp-blog-active .cp-cta-end-btn,
.cp-blog-active a.cp-cta-end-btn { display: inline-block; background: #E4007C !important; color: #ffffff !important; font-size: 16px; font-weight: 600; padding: 14px 34px; border-radius: 999px; text-decoration: none !important; transition: background 0.15s; }
.cp-blog-active .cp-cta-end-btn:hover,
.cp-blog-active a.cp-cta-end-btn:hover { background: #c30069 !important; color: #ffffff !important; }
.cp-blog-active .cp-cta-end-trust { font-size: 12px; color: #8A1F4C; opacity: 0.7; margin-top: 14px; }

/* ==================== SIDEBAR ==================== */
.cp-sidebar { display: none; }
@media (min-width: 900px) { .cp-sidebar { display: block; } }
.cp-sidebar-sticky { position: sticky; top: 90px; }

.cp-sidebar-cta { background: #FFF0F6; border: 1px solid #FBD0E2; border-radius: 12px; padding: 20px 16px; text-align: center; margin-bottom: 24px; }
.cp-sidebar-cta-icon { font-size: 22px; margin-bottom: 6px; }
.cp-sidebar-cta-title { font-size: 14px; font-weight: 600; color: #8A1F4C; line-height: 1.35; margin: 0 0 6px; }
.cp-sidebar-cta-text { font-size: 12px; color: #8A1F4C; opacity: 0.8; margin: 0 0 14px; }
.cp-sidebar-cta-btn,
a.cp-sidebar-cta-btn { display: block; background: #E4007C !important; color: #ffffff !important; font-size: 13px; font-weight: 600; padding: 11px 16px; border-radius: 999px; text-decoration: none !important; margin-bottom: 14px; transition: background 0.15s; }
.cp-sidebar-cta-btn:hover,
a.cp-sidebar-cta-btn:hover { background: #c30069 !important; color: #ffffff !important; }
.cp-sidebar-cta-trust { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: #8A1F4C; opacity: 0.8; text-align: left; }

.cp-sidebar-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #888; margin-bottom: 12px; }

.cp-related { margin: 0; padding: 0; list-style: none; }
.cp-related li { margin: 0 0 14px; }
.cp-related-item { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: inherit; }
.cp-related-item:hover .cp-related-title { color: #E4007C; }
.cp-related-img { width: 56px; height: 56px; background: #f3f3f3; object-fit: cover; border-radius: 8px; flex-shrink: 0; display: block; }
.cp-related-img.cp-img-placeholder { background: #f3f3f3; }
.cp-related-title { font-size: 13px; line-height: 1.4; font-weight: 500; color: #1a1f3a; margin: 0; transition: color 0.15s; }

.cp-categories-list { list-style: none; margin: 0; padding: 0; }
.cp-categories-list li { margin-bottom: 8px; }
.cp-categories-list a { font-size: 13px; color: #555; text-decoration: none; display: block; padding: 6px 0; }
.cp-categories-list a:hover { color: #E4007C; }

/* ==================== COMMENTS ==================== */
.cp-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid #eee; }
.cp-comments-title { font-size: 20px; font-weight: 600; margin: 0 0 20px; color: #1a1f3a; }

/* Notice: comment pending moderation */
.cp-comment-notice { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: #E8F5E9; border-left: 4px solid #2E7D32; border-radius: 8px; margin-bottom: 24px; }
.cp-comment-notice-icon { background: #2E7D32; color: #fff; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 14px; }
.cp-comment-notice p { margin: 0; color: #1B5E20; font-size: 14px; line-height: 1.5; }

.cp-comment { padding: 18px 0; border-top: 1px solid #f0f0f0; list-style: none; }
.cp-comment:first-of-type { border-top: none; padding-top: 0; }
.cp-comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cp-comment-avatar { width: 36px; height: 36px; border-radius: 50%; background: #f3f3f3; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: #888; text-transform: uppercase; flex-shrink: 0; }
.cp-comment-meta-wrap { flex: 1; }
.cp-comment-author { font-size: 14px; font-weight: 600; color: #1a1f3a; margin: 0; }
.cp-comment-date { font-size: 12px; color: #888; margin: 0; }
.cp-comment-body { font-size: 15px; line-height: 1.6; margin: 0 0 8px 48px; color: #1a1f3a; }
.cp-comment-reply { margin-left: 48px; }
.cp-comment-reply a { font-size: 13px; color: #E4007C; font-weight: 500; text-decoration: none; }
.cp-comment-reply a:hover { text-decoration: underline; }

.cp-comment .children { margin-left: 48px; margin-top: 16px; padding-left: 16px; border-left: 2px solid #f0f0f0; list-style: none; }

/* Comment form */
.cp-comment-form-wrap { margin-top: 28px; padding: 18px; background: #fafafa; border-radius: 10px; overflow: hidden; }
.cp-comment-form-title { font-size: 14px; color: #555; margin: 0 0 12px; font-weight: 500; }
.cp-comment-form input[type="text"],
.cp-comment-form input[type="email"],
.cp-comment-form input[type="url"],
.cp-comment-form textarea { width: 100%; max-width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; margin-bottom: 10px; background: #fff; box-sizing: border-box; }
.cp-comment-form textarea { min-height: 90px; resize: vertical; }
.cp-comment-form input:focus,
.cp-comment-form textarea:focus { outline: none; border-color: #E4007C; }
.cp-comment-form-fields { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 600px) { .cp-comment-form-fields { grid-template-columns: 1fr 1fr; gap: 10px; } }
.cp-comment-form-submit,
input.cp-comment-form-submit,
button.cp-comment-form-submit,
.cp-comment-form .cp-comment-form-submit { display: inline-block; background: #E4007C !important; color: #ffffff !important; font-size: 14px; font-weight: 600; padding: 10px 24px; border-radius: 999px; border: none; cursor: pointer; transition: background 0.15s; -webkit-appearance: none; appearance: none; }
.cp-comment-form-submit:hover,
input.cp-comment-form-submit:hover,
button.cp-comment-form-submit:hover { background: #c30069 !important; color: #ffffff !important; }
.cp-comments-closed { font-size: 13px; color: #888; font-style: italic; text-align: center; padding: 16px; }

/* Hide WP native elements that overflow or duplicate */
.cp-comment-form-wrap .comment-form-cookies-consent,
.cp-comment-form-wrap .comment-notes,
.cp-comment-form-wrap .logged-in-as,
.cp-comment-form-wrap .comment-form-url,
.cp-comment-form-wrap .comment-form-author > label,
.cp-comment-form-wrap .comment-form-email > label,
.cp-comment-form-wrap .comment-form-comment > label { display: none; }

/* Back-to-top button: styles moved inline (see class-cp-blog-assets.php) */
