/* ==========================================================================
   Blog Hub — matches aqtos.com site theme (light)
   ========================================================================== */

/* ---------- Layout wrapper ---------- */
.aqtos-blog-hub {
	min-height: 100vh;
	padding: 120px 0 80px;
	color: #212529;
}

/* ---------- Header ---------- */
.aqtos-blog-hub__header {
	margin-bottom: 40px;
}

.aqtos-blog-hub__title {
	font-size: 3rem;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0;
	letter-spacing: -0.02em;
}

/* ---------- Nav row ---------- */
.aqtos-blog-hub__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 48px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding-bottom: 0;
	flex-wrap: wrap;
}

/* Tabs */
.aqtos-blog-hub__tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 8px;
}

.aqtos-blog-hub__tab {
	background: none;
	border: none;
	color: rgba(0, 0, 0, 0.45);
	font-size: 0.9rem;
	font-weight: 400;
	padding: 8px 12px 14px;
	cursor: pointer;
	position: relative;
	transition: color 0.2s;
	white-space: nowrap;
}

.aqtos-blog-hub__tab:hover {
	color: rgba(0, 0, 0, 0.75);
}

.aqtos-blog-hub__tab.is-active {
	color: #146a72;
	font-weight: 500;
}

.aqtos-blog-hub__tab.is-active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 12px;
	right: 12px;
	height: 1.5px;
	background: #54c5d0;
	border-radius: 1px;
}

/* Search + RSS */
.aqtos-blog-hub__search-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 10px;
}

.aqtos-blog-hub__search {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(0, 0, 0, 0.03);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 8px 14px;
	min-width: 200px;
	transition: border-color 0.2s;
}

.aqtos-blog-hub__search:focus-within {
	border-color: #54c5d0;
}

.aqtos-blog-hub__search i {
	color: rgba(0, 0, 0, 0.35);
	font-size: 0.85rem;
}

.aqtos-blog-hub__search input {
	background: none;
	border: none;
	outline: none;
	color: #212529;
	font-size: 0.85rem;
	flex: 1;
	min-width: 0;
}

.aqtos-blog-hub__search input::placeholder {
	color: rgba(0, 0, 0, 0.35);
}

.aqtos-blog-hub__rss {
	color: rgba(0, 0, 0, 0.4);
	font-size: 1.05rem;
	transition: color 0.2s;
	text-decoration: none;
}

.aqtos-blog-hub__rss:hover {
	color: #54c5d0;
}

/* ---------- Card grid ---------- */
.aqtos-blog-hub__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
	align-items: start;
}

.aqtos-blog-hub__card {
	display: flex;
	flex-direction: column;
}

.aqtos-blog-hub__card.is-hidden {
	display: none;
}

.aqtos-blog-hub__card-img-link {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f5f5f5;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.aqtos-blog-hub__card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.aqtos-blog-hub__card:hover .aqtos-blog-hub__card-img {
	transform: scale(1.03);
}

.aqtos-blog-hub__card-body {
	padding: 14px 0 0;
}

.aqtos-blog-hub__card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	color: rgba(0, 0, 0, 0.4);
	margin-bottom: 6px;
}

.aqtos-blog-hub__card-cat {
	color: #54c5d0;
	font-weight: 500;
}

.aqtos-blog-hub__card-title {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 8px;
}

.aqtos-blog-hub__card-title a {
	color: #1a1a2e;
	text-decoration: none;
	transition: color 0.2s;
}

.aqtos-blog-hub__card-title a:hover {
	color: #146a72;
}

.aqtos-blog-hub__card-excerpt {
	font-size: 0.85rem;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.55);
	margin: 0;
}

/* ---------- Changelog timeline ---------- */
.aqtos-blog-hub__timeline {
	max-width: 860px;
	padding-top: 16px;
}

.aqtos-blog-hub__tl-entry {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 40px;
	padding-bottom: 64px;
	position: relative;
}

/* Vertical line — runs from the dot down to the next entry only */
.aqtos-blog-hub__tl-entry::before {
	content: '';
	position: absolute;
	left: 200px;
	top: 13px;
	bottom: 0;
	width: 1px;
	background: rgba(0, 0, 0, 0.1);
}

.aqtos-blog-hub__tl-entry:last-child {
	padding-bottom: 0;
}

.aqtos-blog-hub__tl-entry:last-child::before {
	display: none;
}

.aqtos-blog-hub__tl-left {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-top: 4px;
	position: relative;
}

.aqtos-blog-hub__tl-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #54c5d0;
	flex-shrink: 0;
	margin-top: 5px;
	position: relative;
	z-index: 1;
}

.aqtos-blog-hub__tl-left time {
	font-size: 0.85rem;
	color: rgba(0, 0, 0, 0.5);
	white-space: nowrap;
}

.aqtos-blog-hub__tl-right {
	padding-left: 40px;
}

.aqtos-blog-hub__tl-title {
	font-size: 1.65rem;
	font-weight: 600;
	margin: 0 0 20px;
	line-height: 1.3;
}

.aqtos-blog-hub__tl-title a {
	color: #1a1a2e;
	text-decoration: none;
	transition: color 0.2s;
}

.aqtos-blog-hub__tl-title a:hover {
	color: #146a72;
}

.aqtos-blog-hub__tl-img-link {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 20px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	background: #f5f5f5;
}

.aqtos-blog-hub__tl-img {
	width: 100%;
	height: auto;
	display: block;
}

.aqtos-blog-hub__tl-excerpt {
	font-size: 0.95rem;
	line-height: 1.7;
	color: rgba(0, 0, 0, 0.55);
}

/* ---------- Press list (horizontal cards) ---------- */
.aqtos-blog-hub__press-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aqtos-blog-hub__press-item {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	text-decoration: none;
	transition: box-shadow 0.2s, transform 0.2s;
}

.aqtos-blog-hub__press-item:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
	transform: translateY(-1px);
}

.aqtos-blog-hub__press-logo-wrap {
	flex-shrink: 0;
	width: 150px;
	background: #1d3b50;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
}

.aqtos-blog-hub__press-logo {
	max-width: 120px;
	max-height: 50px;
	width: 120px;
	height: auto;
	object-fit: contain;
}

.aqtos-blog-hub__press-name {
	font-size: 0.85rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
}

.aqtos-blog-hub__press-body {
	flex: 1;
	padding: 20px 24px;
	background: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.aqtos-blog-hub__press-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.4;
	background: linear-gradient(135deg, #146a72, #54c5d0);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.aqtos-blog-hub__press-excerpt {
	font-size: 0.875rem;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.55);
	margin: 0;
}

/* ---------- Newsletter section ---------- */
.aqtos-blog-hub__newsletter-section {
	padding-bottom: 80px;
}

/* ---------- Pagination ---------- */
.aqtos-blog-hub__pagination {
	margin-top: 60px;
	display: flex;
	justify-content: center;
	gap: 4px;
}

.aqtos-blog-hub__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	font-size: 0.85rem;
	color: rgba(0, 0, 0, 0.5);
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.aqtos-blog-hub__pagination .page-numbers:hover {
	background: rgba(84, 197, 208, 0.1);
	color: #146a72;
}

.aqtos-blog-hub__pagination .page-numbers.current {
	background: rgba(84, 197, 208, 0.15);
	color: #146a72;
	font-weight: 500;
}

/* ---------- Empty state ---------- */
.aqtos-blog-hub__empty {
	color: rgba(0, 0, 0, 0.4);
	font-size: 1rem;
	text-align: center;
	padding: 80px 0;
}

/* ---------- No-results from search ---------- */
.aqtos-blog-hub__no-results {
	display: none;
	color: rgba(0, 0, 0, 0.4);
	font-size: 0.95rem;
	text-align: center;
	padding: 60px 0;
}

.aqtos-blog-hub__no-results.is-visible {
	display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.aqtos-blog-hub__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 991px) {
	.aqtos-blog-hub {
		padding: 100px 0 60px;
	}

	.aqtos-blog-hub__title {
		font-size: 2.25rem;
	}

	.aqtos-blog-hub__nav {
		gap: 16px;
		margin-bottom: 32px;
	}

	.aqtos-blog-hub__tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.aqtos-blog-hub__tabs::-webkit-scrollbar {
		display: none;
	}

	.aqtos-blog-hub__search-wrap {
		width: 100%;
		order: -1;
	}

	.aqtos-blog-hub__search {
		flex: 1;
	}

	/* Timeline stacks on mobile */
	.aqtos-blog-hub__tl-entry {
		grid-template-columns: 1fr;
		gap: 8px;
		padding-left: 24px;
	}

	.aqtos-blog-hub__tl-entry::before {
		left: 3px;
	}

	.aqtos-blog-hub__tl-left {
		position: relative;
	}

	.aqtos-blog-hub__tl-dot {
		position: absolute;
		left: -21px;
		top: 7px;
	}

	.aqtos-blog-hub__tl-right {
		padding-left: 0;
	}

	.aqtos-blog-hub__tl-title {
		font-size: 1.3rem;
	}
}

@media (max-width: 767px) {
	.aqtos-blog-hub__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.aqtos-blog-hub__press-logo-wrap {
		width: 90px;
		padding: 16px 12px;
	}

	.aqtos-blog-hub__press-logo {
		max-width: 80px;
		width: 80px;
	}

	.aqtos-blog-hub__card-title {
		font-size: 1rem;
	}
}
