/* Q&A list page (route=qa/latest) — flat FAQ-style list, deliberately distinct
   from the blog grid it used to reuse (blog-short.twig / blog.css). */

.qa-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.qa-head .qa-total {
	color: #787878;
	font-size: 14px;
}

.qa-search {
	margin: 20px 0;
}

.qa-search .input-group {
	max-width: 560px;
}

.qa-search input[name="search"] {
	border-radius: 8px 0 0 8px;
	box-shadow: none;
}

.qa-search button {
	border-radius: 0 8px 8px 0;
	background-color: var(--color-yellow);
	border-color: var(--color-yellow);
	color: var(--color-dark);
	font-weight: 600;
}

.qa-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 25px;
	padding: 0;
	list-style: none;
}

.qa-tag {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 16px;
	background: #ebebed;
	color: var(--color-dark);
	font-size: 13px;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.qa-tag:hover {
	background: #dcdce0;
	color: var(--color-dark);
	text-decoration: none;
}

.qa-tag.active {
	background: var(--color-yellow);
	color: var(--color-dark);
	font-weight: 600;
}

.qa-list {
	border-top: 1px solid #ebebed;
}

.qa-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 4px;
	border-bottom: 1px solid #ebebed;
	color: var(--color-dark);
	text-decoration: none;
	transition: background-color .15s ease;
}

.qa-item:hover {
	background: #fafafa;
	color: var(--color-dark);
	text-decoration: none;
}

.qa-item__badge {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--color-yellow);
	color: var(--color-dark);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qa-item__thumb {
	flex: none;
	width: 64px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
}

.qa-item__body {
	flex: 1 1 auto;
	min-width: 0;
}

.qa-item__title {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 4px;
}

.qa-item__meta {
	font-size: 13px;
	color: #929292;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.qa-item__meta span {
	white-space: nowrap;
}

.qa-item__arrow {
	flex: none;
	font-size: 18px;
	color: #c7c7c7;
	transition: transform .15s ease, color .15s ease;
}

.qa-item:hover .qa-item__arrow {
	transform: translateX(4px);
	color: var(--color-dark);
}

.qa-empty {
	padding: 40px 0;
	text-align: center;
	color: #787878;
}

.qa-cta {
	margin-top: 35px;
	padding: 24px;
	border-radius: 10px;
	background: var(--color-dark);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.qa-cta__title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 4px;
}

.qa-cta__text {
	font-size: 14px;
	color: #c7c7c7;
	margin: 0;
}

.qa-cta .btn {
	flex: none;
	background: var(--color-yellow);
	border-color: var(--color-yellow);
	color: var(--color-dark);
	font-weight: 600;
}

@media (max-width: 767px) {
	.qa-item {
		gap: 12px;
	}

	.qa-item__thumb {
		width: 48px;
		height: 36px;
	}

	.qa-item__arrow {
		display: none;
	}

	.qa-item__title {
		font-size: 15px;
	}
}

/* Q&A article page (route=qa/article) */

.qa-article__head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 10px;
}

.qa-article__head h1 {
	margin-bottom: 4px;
}

.qa-article__head .qa-item__badge {
	margin-top: 6px;
}

.qa-answer__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #929292;
	margin-bottom: 10px;
}

.qa-cover-image {
	display: block;
	width: 70%;
	max-width: 100%;
	height: auto;
	margin: 1.5rem auto;
	border-radius: 8px;
}

.qa-answer {
	position: relative;
	background: #f7f7f8;
	border-left: 3px solid var(--color-yellow);
	border-radius: 6px;
	padding: 20px 24px;
	margin: 20px 0 30px;
}

.qa-answer #description img {
	display: block;
	width: 70%;
	max-width: 100%;
	height: auto;
	margin: 1.5rem auto;
	border-radius: 8px;
}

.qa-answer #description ol li {
	padding-left: 20px;
}

.qa-inline-cta {
	background: #fff;
	border-left: 3px solid var(--color-yellow);
	padding: 14px 20px;
	border-radius: 6px;
	font-weight: 500;
}

@media (max-width: 767px) {
	.qa-answer {
		padding: 16px 18px;
	}

	.qa-cover-image,
	.qa-answer #description img {
		width: 100%;
	}
}
