.huubstoryai-page {
	background: #f6f7f9;
	color: #111827;
}

.huubstoryai-container {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1180px;
	padding: 34px 22px 64px;
	width: 100%;
}

.huubstoryai-header {
	border-bottom: 1px solid #d7dde5;
	margin-bottom: 26px;
	padding-bottom: 12px;
}

.huubstoryai-header h1 {
	color: #111827;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.12;
	margin: 0;
}

.huubstoryai-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.huubstoryai-card {
	background: #111827;
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 12px;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
	isolation: isolate;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	position: relative;
	transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.huubstoryai-card-link {
	color: #ffffff;
	display: block;
	height: auto;
	min-height: 100%;
	overflow: hidden;
	padding-top: 155%;
	position: relative;
	text-decoration: none;
	width: 100%;
}

.huubstoryai-card-image,
.huubstoryai-card-placeholder {
	display: block;
	filter: saturate(1.06) brightness(0.9);
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	transition: filter 220ms ease, transform 220ms ease;
	width: 100%;
}

.huubstoryai-card-placeholder {
	background: linear-gradient(145deg, #14213d, #1b7f79 56%, #fca311);
}

.huubstoryai-card-link::after {
	background:
		linear-gradient(180deg, rgba(8, 13, 23, 0.08) 0%, rgba(8, 13, 23, 0.24) 42%, rgba(8, 13, 23, 0.9) 100%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18));
	content: "";
	inset: 0;
	position: absolute;
	transition: opacity 220ms ease;
	z-index: 1;
}

.huubstoryai-card:hover,
.huubstoryai-card:focus-within {
	border-color: rgba(17, 24, 39, 0.16);
	box-shadow: 0 24px 54px rgba(15, 23, 42, 0.2);
	transform: translateY(-4px);
}

.huubstoryai-card:hover .huubstoryai-card-image,
.huubstoryai-card:hover .huubstoryai-card-placeholder,
.huubstoryai-card:focus-within .huubstoryai-card-image,
.huubstoryai-card:focus-within .huubstoryai-card-placeholder {
	filter: saturate(1.12) brightness(1);
	transform: scale(1.045);
}

.huubstoryai-card:hover .huubstoryai-card-link::after,
.huubstoryai-card:focus-within .huubstoryai-card-link::after {
	opacity: 0.92;
}

.huubstoryai-card-link:focus-visible {
	outline: 3px solid #1b7f79;
	outline-offset: 3px;
}

.huubstoryai-card-overlay {
	align-items: stretch;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	inset: 0;
	padding: 18px;
	position: absolute;
	z-index: 2;
}

.huubstoryai-card-overlay h2 {
	color: #ffffff;
	display: -webkit-box;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
	max-height: 4.8em;
	overflow: hidden;
	text-align: left;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	text-transform: none;
	width: 100%;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.huubstoryai-card-overlay time {
	align-self: flex-start;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 999px;
	color: #111827;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.2;
	margin: 0 0 10px;
	padding: 6px 9px;
	text-align: left;
	text-shadow: none;
	width: auto;
}

.huubstoryai-pagination {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.huubstoryai-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.huubstoryai-pagination li {
	margin: 0;
}

.huubstoryai-pagination a,
.huubstoryai-pagination span {
	align-items: center;
	background: #ffffff;
	border: 1px solid #cfd7e3;
	border-radius: 999px;
	color: #111827;
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	height: 34px;
	justify-content: center;
	min-width: 34px;
	padding: 0 10px;
	text-decoration: none;
}

.huubstoryai-pagination .current,
.huubstoryai-pagination a:hover,
.huubstoryai-pagination a:focus {
	background: #111827;
	border-color: #111827;
	color: #ffffff;
}

.huubstoryai-empty {
	color: #4b5563;
	font-size: 16px;
	margin: 0;
}

@media (min-width: 1020px) {
	.huubstoryai-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.huubstoryai-container {
		padding: 22px 16px 44px;
	}

	.huubstoryai-header h1 {
		font-size: 28px;
	}

	.huubstoryai-grid {
		gap: 16px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.huubstoryai-card-overlay {
		padding: 12px;
	}

	.huubstoryai-card-overlay h2 {
		font-size: 14px;
		line-height: 1.22;
		max-height: 4.88em;
	}

	.huubstoryai-card-overlay time {
		font-size: 10px;
		margin-bottom: 8px;
		padding: 5px 7px;
	}
}
