/* Telecel Liberia — Blog (blog page, categories, single posts) */

/* Astra: full width, no boxed container */
.tcl-blog .site-content > .ast-container { max-width: none; padding: 0; display: block; }
.tcl-blog #primary, .tcl-blog .site-main { margin: 0; padding: 0; width: 100%; }

/* ---------- Shared ---------- */
.tb-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--tcl-muted); margin-bottom: 22px; }
.tb-crumbs a { color: var(--tcl-muted); transition: color .2s; }
.tb-crumbs a:hover { color: var(--tcl-red); }
.tb-crumbs svg { width: 14px; height: 14px; opacity: .6; }
.tb-crumbs span { color: var(--tcl-ink); font-weight: 700; }

/* ---------- Blog page hero ---------- */
#tcl-blog-hero { padding: clamp(44px, 5.4vw, 76px) 0 clamp(28px, 3.4vw, 40px); }
#tcl-blog-list { padding-top: clamp(36px, 4.4vw, 56px); }
#tcl-blog-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); margin: 0 0 14px; }
#tcl-blog-hero .tcl-lead { margin: 0; max-width: 640px; }
.tb-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: clamp(26px, 3vw, 34px); }
.tb-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--tcl-line); font-size: .9rem; font-weight: 700; color: var(--tcl-ink); transition: border-color .2s, background .2s, color .2s; }
.tb-cats a small { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tcl-off); display: grid; place-items: center; font-size: .72rem; color: var(--tcl-muted); }
.tb-cats a:hover { border-color: var(--tcl-red); }
.tb-cats a[aria-current="page"] { background: var(--tcl-ink); border-color: var(--tcl-ink); color: #fff; }
.tb-cats a[aria-current="page"] small { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Cards ---------- */
.tb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tb-card { display: flex; flex-direction: column; border-radius: 24px; background: #fff; border: 1px solid var(--tcl-line); overflow: hidden; transition: transform .3s var(--tcl-ease), box-shadow .3s, border-color .3s; }
.tb-card:hover { transform: translateY(-5px); box-shadow: var(--tcl-shadow-lg); border-color: rgba(227,37,38,.35); }
.tb-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tcl-coal); }
.tb-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--tcl-ease); }
.tb-card:hover .tb-media img { transform: scale(1.04); }
.tb-new { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: var(--tcl-red); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tb-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.tb-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--tcl-muted); margin-bottom: 12px; }
.tb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tb-meta svg { width: 14px; height: 14px; color: var(--tcl-red); }
.tb-cat { padding: 4px 10px; border-radius: 999px; background: #FFF5F5; color: var(--tcl-red); font-weight: 700; font-size: .74rem; letter-spacing: .04em; }
.tb-cat:hover { background: var(--tcl-red); color: #fff; }
.tb-title { font-size: 1.2rem; line-height: 1.35; margin: 0 0 10px; }
.tb-title a { color: var(--tcl-ink); transition: color .2s; }
.tb-title a:hover { color: var(--tcl-red); }
.tb-excerpt { margin: 0 0 18px; color: var(--tcl-muted); font-size: .93rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tb-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--tcl-ink); }
.tb-more svg { width: 16px; height: 16px; color: var(--tcl-red); transition: transform .3s; }
.tb-card:hover .tb-more svg { transform: translateX(4px); }

/* Featured (latest) post */
.tb-card--big { flex-direction: row; margin-bottom: 22px; border-radius: 28px; }
.tb-card--big .tb-media { flex: 0 0 56%; aspect-ratio: auto; min-height: 380px; }
.tb-card--big .tb-body { padding: clamp(26px, 3.4vw, 44px); justify-content: center; }
.tb-card--big .tb-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; margin-bottom: 14px; }
.tb-card--big .tb-excerpt { font-size: 1rem; -webkit-line-clamp: 4; margin-bottom: 24px; }
.tb-card--big .tb-more { margin-top: 0; padding: 12px 20px; border-radius: 999px; background: var(--tcl-red); color: #fff; align-self: flex-start; box-shadow: 0 14px 26px -14px rgba(227,37,38,.8); }
.tb-card--big .tb-more svg { color: #fff; }

/* Pagination + empty */
.tb-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.tb-pages .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1.5px solid var(--tcl-line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--tcl-ink); }
.tb-pages a.page-numbers:hover { border-color: var(--tcl-red); color: var(--tcl-red); }
.tb-pages .current { background: var(--tcl-red); border-color: var(--tcl-red); color: #fff; }
.tb-empty { max-width: 560px; margin: 0 auto; padding: 40px; border-radius: 24px; background: #fff; border: 1px dashed var(--tcl-line); text-align: center; }
.tb-empty p { color: var(--tcl-muted); margin: 0 0 20px; }

/* ---------- Single post ---------- */
#tcl-post-hero { padding: clamp(44px, 5.4vw, 72px) 0 clamp(36px, 4.4vw, 60px); }
#tcl-post-hero:not(.has-img) { padding-bottom: clamp(24px, 3vw, 36px); }
.tp-head { max-width: 860px; }
/* With a featured image: title and meta on the left, image on the right */
#tcl-post-hero.has-img .tp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
#tcl-post-hero.has-img .tp-head { max-width: none; }
#tcl-post-hero.has-img h1 { font-size: clamp(2rem, 3.4vw, 3rem); }
.tp-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tp-cats a { padding: 6px 12px; border-radius: 999px; background: #FFF5F5; color: var(--tcl-red); font-size: .78rem; font-weight: 700; letter-spacing: .04em; transition: background .2s, color .2s; }
.tp-cats a:hover { background: var(--tcl-red); color: #fff; }
#tcl-post-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.1; margin: 0 0 22px; }
.tp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--tcl-muted); }
.tp-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.tp-meta svg { width: 16px; height: 16px; color: var(--tcl-red); }
.tp-by img { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: #fff; border: 1px solid var(--tcl-line); object-fit: contain; }
.tp-by b { color: var(--tcl-ink); }
.tp-cover { margin: 0; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--tcl-line); box-shadow: 0 30px 60px -36px rgba(28,27,27,.45); position: relative; z-index: 1; }
.tp-cover img { display: block; width: 100%; height: auto; }
#tcl-post { padding-top: clamp(32px, 4vw, 56px); }

.tp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.tp-side { position: sticky; top: 110px; display: grid; gap: 14px; }

/* Article text */
.tp-body { max-width: 760px; font-size: 1.08rem; line-height: 1.85; color: #3B3838; }
.tp-body > *:first-child { margin-top: 0; }
.tp-body p { margin: 0 0 1.3em; }
.tp-body h2, .tp-body h3, .tp-body h4, .tp-body h5, .tp-body h6 { color: var(--tcl-ink); line-height: 1.3; margin: 1.9em 0 .7em; letter-spacing: -.01em; }
.tp-body h2 { font-size: 1.8rem; }
.tp-body h3 { font-size: 1.5rem; }
.tp-body h4 { font-size: 1.32rem; padding-left: 16px; border-left: 4px solid var(--tcl-red); }
.tp-body h5 { font-size: 1.08rem; color: var(--tcl-red); text-transform: none; }
.tp-body h4 strong, .tp-body h5 strong { font-weight: inherit; }
.tp-body p.has-large-font-size { font-size: 1.4rem !important; line-height: 1.4 !important; }
.tp-body p.has-medium-font-size { font-size: 1.25rem !important; line-height: 1.4; margin-top: 1.4em; padding-top: 0 !important; }
.tp-body strong { color: var(--tcl-ink); }
.tp-body .has-text-color strong, .tp-body [style*="color"] strong { color: inherit; }
.tp-body a { color: var(--tcl-red); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tp-body ul, .tp-body ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.tp-body ul { list-style: disc; }
.tp-body ol { list-style: decimal; }
.tp-body li { margin-bottom: .55em; padding-left: .2em; }
.tp-body li::marker { color: var(--tcl-red); font-weight: 700; }
.tp-body li[style] { padding-bottom: 0 !important; }
.tp-body figure, .tp-body .wp-block-image { margin: 2em 0; }
.tp-body img { max-width: 100%; height: auto !important; border-radius: 20px; display: block; }
.tp-body .wp-block-image.is-resized img { width: auto; }
.tp-body figcaption { margin-top: 10px; font-size: .86rem; color: var(--tcl-muted); text-align: center; }
.tp-body blockquote { margin: 2em 0; padding: 22px 26px; border-radius: 20px; background: var(--tcl-off); border-left: 4px solid var(--tcl-red); font-size: 1.15rem; color: var(--tcl-ink); }
.tp-body blockquote p:last-child { margin: 0; }
.tp-body hr { border: 0; height: 1px; background: var(--tcl-line); margin: 2.4em 0; }
.tp-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.tp-body th, .tp-body td { padding: 10px 12px; border: 1px solid var(--tcl-line); text-align: left; }
.tp-body th { background: var(--tcl-off); }

/* End of article: share */
.tp-end { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 2.4em; padding-top: 24px; border-top: 1px solid var(--tcl-line); }
.tp-end-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tcl-muted); }
.tp-share { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-s { width: 44px; height: 44px; margin: 0 !important; padding: 0 !important; border-radius: 12px !important; border: 1.5px solid var(--tcl-line) !important; background: #fff !important; color: var(--tcl-ink) !important; display: inline-grid; place-items: center; cursor: pointer; box-shadow: none !important; text-decoration: none !important; transition: background .2s, border-color .2s, color .2s; }
.tp-s svg { width: 18px; height: 18px; }
.tp-s:hover { background: var(--tcl-ink) !important; border-color: var(--tcl-ink) !important; color: #fff !important; }
.tp-s--whatsapp:hover { background: #25D366 !important; border-color: #25D366 !important; }
.tp-copy { width: auto; padding: 0 14px !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit !important; font-size: .86rem !important; font-weight: 700 !important; }
.tp-copy.is-ok { border-color: #1FAA59 !important; color: #1FAA59 !important; }

/* Side panel */
.tp-box { position: relative; padding: 26px; border-radius: 24px; background: var(--tcl-coal); color: #fff; overflow: hidden; }
.tp-box::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 50% at 100% 0%, rgba(227,37,38,.4), transparent 70%); }
.tp-box > * { position: relative; }
.tp-box i { width: 48px; height: 48px; border-radius: 14px; background: var(--tcl-red); display: grid; place-items: center; font-style: normal; margin-bottom: 18px; }
.tp-box i svg { width: 22px; height: 22px; }
.tp-box h2 { color: #fff; font-size: 1.3rem; line-height: 1.25; margin: 0 0 8px; }
.tp-box p { color: rgba(255,255,255,.68); font-size: .92rem; line-height: 1.6; margin: 0 0 20px; }
.tp-box .tcl-btn { width: 100%; justify-content: center; }
.tp-box-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.85); }
.tp-box-wa:hover { color: #3DDC84; }
.tp-box-wa svg { width: 18px; height: 18px; color: #3DDC84; }
.tp-side-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px; border-radius: 20px; background: var(--tcl-off); border: 1px solid var(--tcl-line); }
.tp-side-share > span { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tcl-muted); margin-right: auto; }
.tp-side-share .tp-s { width: 38px; height: 38px; padding: 0 !important; border-radius: 10px !important; }
.tp-side-share .tp-copy { gap: 0; }
.tp-side-share .tp-s svg { width: 17px; height: 17px; }

/* Previous / next */
.tp-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 5vw, 60px); padding-top: 32px; border-top: 1px solid var(--tcl-line); }
.tp-nav a { display: block; padding: 20px 22px; border-radius: 20px; background: var(--tcl-off); border: 1px solid var(--tcl-line); transition: border-color .2s, transform .2s; }
.tp-nav a:hover { border-color: var(--tcl-red); transform: translateY(-2px); }
.tp-nav small { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tcl-red); margin-bottom: 6px; }
.tp-nav b { display: block; color: var(--tcl-ink); font-size: 1rem; line-height: 1.4; }
.tp-nav-next { text-align: right; grid-column: 2; }

/* Related */
.tb-rel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(26px, 3vw, 36px); }
.tb-rel-head h2 { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.tb-grid { grid-template-columns: repeat(2, 1fr); }
	.tp-grid { grid-template-columns: 1fr; }
	.tp-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
	.tp-body { max-width: none; }
}
@media (max-width: 860px) {
	.tb-card--big { flex-direction: column; }
	.tb-card--big .tb-media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
	.tp-side { grid-template-columns: 1fr; }
	.tp-side-share { display: none; }
}
@media (max-width: 900px) {
	#tcl-post-hero.has-img .tp-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.tb-grid { grid-template-columns: 1fr; }
	.tb-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--tcl-gutter, 20px)); margin-right: calc(-1 * var(--tcl-gutter, 20px)); padding: 0 var(--tcl-gutter, 20px) 4px; }
	.tb-cats::-webkit-scrollbar { display: none; }
	.tb-cats a { flex: none; }
	.tp-cover { border-radius: 18px; }
	.tp-body { font-size: 1.02rem; line-height: 1.8; }
	.tp-body h4 { font-size: 1.18rem; }
	.tp-nav { grid-template-columns: 1fr; }
	.tp-nav-next { grid-column: auto; text-align: left; }
	.tp-end { flex-direction: column; align-items: flex-start; }
}
