/**
 * Advies template – search, popular terms, section grids
 */

.advies-page {
	padding-bottom: 2rem;
}

.advies-header {
	margin-bottom: 0.5rem;
}

.advies-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	color: #393939;
	margin: 0 0 1rem 0;
}

/* ----- Search bar ----- */
.advies-search-form {
	display: flex;
	max-width: 600px;
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.advies-search-input {
	flex: 1;
	border: 0;
	padding: 14px 18px;
	font-size: 16px;
	color: #393939;
	background: #fff;
	outline: none;
}

.advies-search-input::placeholder {
	color: #757575;
	font-style: italic;
}

.advies-search-btn {
	width: 52px;
	border: 0;
	background: #00ae69;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	transition: background 0.2s ease;
}

.advies-search-btn:hover {
	background: #00985b;
}

/* ----- Popular terms (pills) ----- */
.advies-terms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.advies-terms-label {
	font-size: 0.95rem;
	color: #555;
	font-weight: 500;
	margin-right: 0.25rem;
}

.advies-terms-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.advies-term-pill {
	display: inline-block;
	padding: 8px 16px;
	background: #f0f0f0;
	color: #393939;
	text-decoration: none;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}

.advies-term-pill:hover {
	background: #00ae69;
	color: #fff;
}

.advies-terms-more {
	margin-left: auto;
	font-size: 0.9rem;
	color: #00ae69;
	text-decoration: none;
	font-weight: 600;
}

.advies-terms-more:hover {
	text-decoration: underline;
}

/* ----- Section block ----- */
.advies-section-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.advies-section-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #393939;
	margin: 0;
}

.advies-section-link {
	font-size: 0.95rem;
	color: #00ae69;
	text-decoration: none;
	font-weight: 600;
}

.advies-section-link:hover {
	text-decoration: underline;
}

/* ----- Card grid ----- */
.advies-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	border: none;
}

.advies-card {
	margin: 0;
}

.advies-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.advies-card-link:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

.advies-card-label {
	display: inline-block;
	padding: 4px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 12px 0 0 12px;
	border-radius: 4px;
	color: #fff;
}

.advies-card-label--nieuws {
	background: #7b4d9e;
}

.advies-card-label--tips {
	background: #00ae69;
}

.advies-card-label--inspiratie {
	background: #e91e8c;
}

.advies-card-image {
	position: relative;
	padding-top: 56%;
	overflow: hidden;
	background: #f5f5f5;
	margin-top: 8px;
}

.advies-card-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.advies-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 14px 14px 8px;
	line-height: 1.35;
	color: #393939;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.advies-card-excerpt {
	font-size: 0.9rem;
	color: #666;
	line-height: 1.5;
	margin: 0 14px 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.advies-card-more {
	display: inline-block;
	margin: 0 14px 14px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #00ae69;
}

.advies-card-link:hover .advies-card-more {
	text-decoration: underline;
}

.advies-no-posts {
	color: #757575;
	font-size: 0.95rem;
	margin: 0;
	padding: 1rem 0;
}

/* Category archive (Bekijk alles) */
.category-archive .advies-section {
	margin-bottom: 2rem;
}

/* Pagination below grid: no border, compact spacing so no visible "line" */
.category-archive .advies-grid+div.tablenav {
	margin-top: 1.5rem;
	padding-top: 0;
	border: none;
	background: transparent;
}

.category-archive .tablenav-pages {
	border: none;
}

/* ----- Responsive ----- */
@media (max-width: 1000px) {
	.advies-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.advies-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.advies-terms {
		flex-direction: column;
		align-items: flex-start;
	}

	.advies-terms-more {
		margin-left: 0;
	}

	.advies-search-form {
		width: 100%;
	}
}