/* Blog Hub — from Blog_Hub.html */

.agp-blog-hub-widget {
	--teal: #1aa18c;
	--teal-dark: #148a77;
	--teal-light: #e6f7f5;
	--navy: #0d1b2a;
	--gray: #6b7280;
	--light: #f9fafb;
	--white: #fff;
	--border: #e5e7eb;
	font-family: Sora, sans-serif;
	color: var(--navy);
	-webkit-font-smoothing: antialiased;
}

.agp-blog-hub-widget .hero {
	background: var(--light);
	border-bottom: 1px solid var(--border);
	padding: 72px 48px 56px;
	text-align: center;
}

.agp-blog-hub-widget .tag {
	display: inline-block;
	background: var(--teal-light);
	color: var(--teal-dark);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 100px;
	margin-bottom: 18px;
}

.agp-blog-hub-widget .hero h1 {
	font-size: 40px;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 14px 0;
}

.agp-blog-hub-widget .hero p {
	font-size: 16px;
	color: var(--gray);
	line-height: 1.7;
	max-width: 500px;
	margin: 0 auto 32px;
}

.agp-blog-hub-widget .tabs {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.agp-blog-hub-widget .tab {
	display: inline-block;
	padding: 7px 18px;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 600;
	border: 1.5px solid var(--border);
	background: var(--white);
	color: var(--gray);
	cursor: pointer;
	font-family: Sora, sans-serif;
	transition: all 0.15s;
	text-decoration: none;
	box-sizing: border-box;
}

.agp-blog-hub-widget .tab.on {
	background: var(--teal);
	color: #fff;
	border-color: var(--teal);
}

.agp-blog-hub-widget .tab:hover:not(.on) {
	border-color: var(--teal);
	color: var(--teal);
}

.agp-blog-hub-widget .tab:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 2px;
}

.agp-blog-hub-widget .wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 56px 48px 80px;
}

.agp-blog-hub-widget .grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 64px;
}

.agp-blog-hub-widget .card {
	border: 1px solid var(--border);
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	background: var(--white);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s, transform 0.2s;
	color: inherit;
}

.agp-blog-hub-widget .card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.agp-blog-hub-widget .thumb-wrap {
	width: 100%;
	aspect-ratio: 1.91 / 1;
	overflow: hidden;
	flex-shrink: 0;
}

.agp-blog-hub-widget .thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.agp-blog-hub-widget .thumb.agp-blog-hub-no-thumb {
	background: var(--light);
	min-height: 100%;
}

.agp-blog-hub-widget .body {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.agp-blog-hub-widget .cat {
	font-size: 10px;
	font-weight: 700;
	color: var(--teal);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.agp-blog-hub-widget .title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--navy);
	margin: 8px 0 10px;
}

.agp-blog-hub-widget .excerpt {
	font-size: 13px;
	color: var(--gray);
	line-height: 1.6;
	flex: 1;
	margin-bottom: 18px;
}

.agp-blog-hub-widget .card-footer {
	border-top: 1px solid var(--border);
	padding-top: 14px;
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.agp-blog-hub-widget .meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.agp-blog-hub-widget .avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid var(--border);
	flex-shrink: 0;
}

.agp-blog-hub-widget .byline {
	font-size: 12px;
	color: var(--gray);
	line-height: 1.35;
}

.agp-blog-hub-widget .byline strong {
	color: var(--navy);
	font-weight: 600;
	display: block;
	font-size: 12px;
}

.agp-blog-hub-widget .read {
	font-size: 12px;
	font-weight: 700;
	color: var(--teal);
	text-decoration: none;
	white-space: nowrap;
}

@media (max-width: 860px) {
	.agp-blog-hub-widget .grid {
		grid-template-columns: 1fr 1fr;
	}
	.agp-blog-hub-widget .wrap {
		padding: 40px 24px 64px;
	}
	.agp-blog-hub-widget .hero {
		padding: 56px 24px 44px;
	}
	.agp-blog-hub-widget .hero h1 {
		font-size: 28px;
	}
}

@media (max-width: 560px) {
	.agp-blog-hub-widget .grid {
		grid-template-columns: 1fr;
	}
}
