/* ===== Author Page Pro ===== */

.apf-wrap {
	max-width: 900px;
	margin: 40px auto;
	padding: 0 20px;
}

/* Author card */
.apf-author-card {
	background: #f7f7f8;
	border: 1px solid #ececec;
	border-radius: 16px;
	padding: 40px 30px;
	text-align: center;
	margin-bottom: 40px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.apf-author-photo img,
.apf-author-photo .avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 16px;
	display: block;
}

.apf-author-name {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 12px;
}

.apf-author-bio {
	max-width: 600px;
	margin: 0 auto 20px;
	color: #444;
	line-height: 1.6;
	font-size: 15px;
}

.apf-view-all-btn {
	display: inline-block;
	background: #111;
	color: #fff !important;
	padding: 10px 22px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	margin-bottom: 20px;
	transition: background 0.2s ease;
}
.apf-view-all-btn:hover {
	background: #333;
}

.apf-social-icons {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.apf-social-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.apf-fb   { background: #1877f2; }
.apf-ig   { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.apf-li   { background: #0a66c2; }
.apf-yt   { background: #ff0000; }
.apf-x    { background: #000000; }
.apf-rd   { background: #ff4500; }
.apf-tt   { background: #010101; }
.apf-mail { background: #6b7280; }

/* Article By box (end of single post) */
.apf-endbox-label {
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 12px;
	font-weight: 600;
	color: #999;
	margin: 40px 0 14px;
}

.apf-author-card.apf-endbox {
	padding: 30px 30px 26px;
	margin-bottom: 20px;
}

.apf-author-photo.apf-square img,
.apf-author-photo.apf-square .avatar {
	width: 90px;
	height: 90px;
	border-radius: 12px;
	object-fit: cover;
	margin: 0 auto 16px;
	display: block;
}

.apf-endbox .apf-author-name {
	font-size: 20px;
}

.apf-endbox .apf-author-bio {
	font-size: 14.5px;
}

.apf-endbox-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.apf-endbox-actions .apf-view-all-btn {
	margin-bottom: 0;
}

.apf-endbox-actions .apf-social-icons {
	gap: 8px;
}

.apf-endbox-actions .apf-social-icon {
	width: 32px;
	height: 32px;
}

/* Post list - grid layout */
.apf-wrap .apf-post-list {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 28px !important;
}

.apf-wrap .apf-post-item {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #eee !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	background: #fff !important;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.apf-wrap .apf-post-thumb {
	flex: none !important;
	width: 100% !important;
	max-width: 100% !important;
	border-radius: 0 !important;
	display: block !important;
}

.apf-wrap .apf-post-thumb img,
.apf-wrap .apf-post-thumb-placeholder {
	width: 100% !important;
	max-width: 100% !important;
	height: 190px !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
}

.apf-wrap .apf-post-content {
	flex: 1 !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 16px 18px 20px !important;
	box-sizing: border-box !important;
}

.apf-wrap .apf-post-title {
	font-size: 18px !important;
	line-height: 1.35 !important;
	margin: 0 0 10px !important;
}

.apf-wrap .apf-post-excerpt {
	font-size: 14px !important;
	line-height: 1.55 !important;
}

.apf-wrap .apf-pagination {
	grid-column: 1 / -1 !important;
	justify-content: center !important;
}

@media (max-width: 782px) {
	.apf-wrap .apf-post-list {
		grid-template-columns: 1fr !important;
	}
}

/* Pagination */
.apf-pagination {
	margin-top: 10px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.apf-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 6px;
	background: #f2f2f2;
	color: #111;
	text-decoration: none;
	font-size: 14px;
}

.apf-pagination .page-numbers.current {
	background: #111;
	color: #fff;
}

.apf-pagination .page-numbers:hover {
	background: #ddd;
}

