/* AK Urdu Publisher – Blog listing, share buttons, article navigation, back to top */
.akup-blog {
	--akb-green: #2E3D35;
	--akb-clay: #8A4A2C;
	--akb-ink: #1F2A24;
	--akb-muted: #5E6660;
	--akb-line: #E4E0D6;
	--akb-card: #FFFFFF;
	--akb-soft: #EEF1EC;
	color: var(--akb-ink);
	display: flex;
	flex-direction: column;
	gap: 36px;
	width: 100%;
	scroll-margin-top: 90px;
}
.akup-blog *, .akup-blog *::before, .akup-blog *::after { box-sizing: border-box; }
.akup-blog__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Category tabs + search */
.akup-blog__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.akup-blog__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.akup-blog__cats a {
	display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px;
	border-radius: 999px; border: 1px solid var(--akb-line); background: var(--akb-card);
	color: var(--akb-ink); text-decoration: none; font-size: 15px; font-weight: 500; transition: background .15s, border-color .15s;
}
.akup-blog__cats a:hover { border-color: var(--akb-green); }
.akup-blog__cats a[aria-current="page"] { background: var(--akb-green); border-color: var(--akb-green); color: #FFFFFF; }
.akup-blog__count { font-size: 12px; opacity: .7; }
.akup-blog__search { display: flex; gap: 6px; flex: 0 1 320px; }
.akup-blog__search input {
	flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--akb-line); border-radius: 10px;
	background: var(--akb-card); font-size: 15px; color: var(--akb-ink);
}
.akup-blog__search input:focus { outline: none; border-color: var(--akb-green); box-shadow: 0 0 0 3px rgba(46,61,53,.15); }
.akup-blog__search button { height: 44px; padding: 0 16px; border: none; border-radius: 10px; background: var(--akb-green); color: #FFFFFF; font-weight: 600; font-size: 15px; cursor: pointer; }
.akup-blog__filter { margin: -16px 0 0; font-size: 14px; color: var(--akb-muted); }
.akup-blog__filter a { margin-inline-start: 10px; color: var(--akb-clay); font-weight: 600; }
.akup-blog__empty { padding: 40px 0; text-align: center; color: var(--akb-muted); }

.akup-blog__heading { margin: 0 0 18px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--akb-clay); }

/* Latest cards */
.akup-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.akup-bcard {
	display: flex; flex-direction: column; background: var(--akb-card); border: 1px solid var(--akb-line); border-radius: 16px;
	overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.akup-bcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31,42,36,.10); }
.akup-bcard__img { display: block; aspect-ratio: 1 / 1; background: #ECE8DF; overflow: hidden; }
.akup-bcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.akup-bcard:hover .akup-bcard__img img { transform: scale(1.03); }
.akup-bcard__noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #E9E4D8, #DCE4DE); }
.akup-bcard__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1 1 auto; }
.akup-bcard__cat { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--akb-green); background: var(--akb-soft); padding: 3px 10px; border-radius: 999px; }
.akup-bcard__title { margin: 0; font-size: 21px; line-height: 1.6; font-weight: 700; unicode-bidi: plaintext; text-align: start; }
.akup-bcard__title a, .akup-brow__title a { color: var(--akb-ink); text-decoration: none; }
.akup-bcard__title a:hover, .akup-brow__title a:hover { color: var(--akb-clay); }
.akup-bcard__excerpt { margin: 0; font-size: 15px; line-height: 1.8; color: var(--akb-muted); unicode-bidi: plaintext; text-align: start; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.akup-bcard__meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--akb-muted); padding-top: 6px; }
.akup-bcard__more { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; background: var(--akb-green); color: #FFFFFF !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.akup-bcard__more:hover { background: #243029; }

/* Urdu titles and excerpts */
.akup-urdu-post .akup-bcard__title, .akup-urdu-post .akup-brow__title { font-family: var(--akup-font); font-weight: 700; line-height: 1.9; }
.akup-urdu-post .akup-bcard__excerpt, .akup-urdu-post .akup-brow__excerpt { font-family: var(--akup-font); line-height: 2; }

/* List */
.akup-blog__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.akup-brow { display: flex; gap: 18px; align-items: center; background: var(--akb-card); border: 1px solid var(--akb-line); border-radius: 14px; padding: 12px; margin: 0; }
.akup-brow__img { flex: 0 0 120px; width: 120px; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #ECE8DF; }
.akup-brow__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.akup-brow__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.akup-brow__title { margin: 0; font-size: 18px; line-height: 1.6; unicode-bidi: plaintext; text-align: start; }
.akup-brow__excerpt { margin: 0; font-size: 14px; line-height: 1.8; color: var(--akb-muted); unicode-bidi: plaintext; text-align: start; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.akup-brow__meta { font-size: 13px; color: var(--akb-muted); }

/* Pagination */
.akup-blog__pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.akup-blog__pg-nums { display: flex; flex-wrap: wrap; gap: 6px; }
.akup-blog__pager a, .akup-blog__pager span[aria-current], .akup-blog__pg-step {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px; border: 1px solid var(--akb-line); background: var(--akb-card); color: var(--akb-ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.akup-blog__pager a:hover { border-color: var(--akb-green); }
.akup-blog__pager span[aria-current] { background: var(--akb-green); border-color: var(--akb-green); color: #FFFFFF; }
.akup-blog__pg-step.is-disabled { opacity: .4; }
.akup-blog__dots { align-self: center; color: var(--akb-muted); }

/* ---------------- Article page ---------------- */
.akup-share {
	--akb-line: #E4E0D6;
	margin: 2.5em 0 1.5em; padding: 18px 0; border-top: 1px solid var(--akb-line); border-bottom: 1px solid var(--akb-line);
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px; direction: ltr;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.akup-share__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #8A4A2C; margin-inline-end: 4px; }
.akup-share__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.akup-share__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
	border: none; background: var(--akup-share-bg, #2E3D35); color: #FFFFFF !important; text-decoration: none !important;
	font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer;
	transition: transform .15s, box-shadow .15s, filter .15s;
}
.akup-share__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); filter: brightness(1.08); }
.akup-share__btn .akup-ico { width: 18px; height: 18px; flex: 0 0 auto; fill: currentColor; }
.akup-share__btn--facebook { --akup-share-bg: #1877F2; }
.akup-share__btn--whatsapp { --akup-share-bg: #1DA851; }
.akup-share__btn--x { --akup-share-bg: #111111; }
.akup-share__btn--linkedin { --akup-share-bg: #0A66C2; }
.akup-share__btn--telegram { --akup-share-bg: #1E88C7; }
.akup-share__btn--copy { --akup-share-bg: #5E6660; }
.akup-share__btn--native { --akup-share-bg: #2E3D35; }
.akup-share__btn.is-done { --akup-share-bg: #24553A; }
.akup-blog__range { margin-inline-start: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #5E6660; }

.akup-pnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.5em 0 2em; direction: ltr; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.akup-pnav__item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #E4E0D6; border-radius: 14px; background: #FFFFFF; text-decoration: none !important; color: #1F2A24 !important; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.akup-pnav__item:hover { border-color: #2E3D35; box-shadow: 0 8px 22px rgba(31,42,36,.08); }
.akup-pnav__item--next { flex-direction: row-reverse; text-align: right; }
.akup-pnav__item--empty { border: none; background: none; }
.akup-pnav__img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #ECE8DF; }
.akup-pnav__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.akup-pnav__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.akup-pnav__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: #8A4A2C; }
.akup-pnav__title { font-family: var(--akup-font, inherit); font-size: 16px; line-height: 1.8; unicode-bidi: plaintext; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.akup-totop {
	position: fixed; right: 20px; bottom: 24px; z-index: 9990; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%; border: none; background: #2E3D35; color: #FFFFFF; cursor: pointer;
	box-shadow: 0 8px 22px rgba(0,0,0,.22); opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s;
	font: 600 10px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.akup-totop.is-visible { opacity: 1; transform: none; }
.akup-totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.akup-totop:focus-visible, .akup-share__btn:focus-visible, .akup-blog a:focus-visible, .akup-pnav__item:focus-visible { outline: 3px solid #7FA08C; outline-offset: 2px; }

@media (max-width: 700px) {
	.akup-blog { gap: 28px; }
	.akup-blog__search { flex: 1 1 100%; }
	.akup-blog__cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; }
	.akup-blog__cats a { flex: 0 0 auto; }
	.akup-blog__grid { grid-template-columns: minmax(0, 1fr); }
	.akup-brow { gap: 12px; padding: 10px; }
	.akup-brow__img { flex-basis: 84px; width: 84px; }
	.akup-brow__title { font-size: 16px; }
	.akup-brow__excerpt { display: none; }
	.akup-pnav { grid-template-columns: minmax(0, 1fr); }
	.akup-totop { right: 14px; bottom: 16px; width: 48px; height: 48px; }
	/* Phones: round icon buttons, names stay available to screen readers */
	.akup-share__btn { width: 46px; height: 46px; padding: 0; justify-content: center; }
	.akup-share__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.akup-share__btn .akup-ico { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.akup-bcard, .akup-bcard__img img, .akup-totop { transition: none; }
}
