/**
 * 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 (pill style, icon inside like reference) ----- */
.advies-search {
	display: flex;
	justify-content: center;
}

.advies-search-form {
	width: 100%;
	max-width: 75%;
}

.advies-search-field-wrap {
	display: flex;
	align-items: center;
	border: 1px solid #d8d8d8;
	border-radius: 9999px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.advies-search-input {
	flex: 1;
	border: 0;
	padding: 16px 20px 16px 24px;
	font-size: 16px;
	color: #393939;
	background: transparent;
	outline: none;
	min-width: 0;
}

.advies-search-input::placeholder {
	color: #9a9a9a;
	font-style: italic;
}

.advies-search-btn {
	width: 48px;
	min-width: 48px;
	height: 48px;
	border: 0;
	background: transparent;
	color: #888;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	padding: 0;
	transition: color 0.2s ease;
}

.advies-search-btn:hover {
	color: #555;
}

/* ----- 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;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	margin-bottom: 1.25rem;
}

.advies-section-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #393939;
	margin: 0;
}

.advies-section-head .advies-section-link {
	margin-top: 0.15rem;
}

.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.25rem;
	align-items: stretch;
	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: 3px 8px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 8px 0 0 8px;
	border-radius: 4px;
	color: #fff;
}

.advies-card-label--nieuws {
	background: #7b4d9e;
}

.advies-card-label--tips {
	background: #00ae69;
}

.advies-card-label--inspiratie {
	background: #e91e8c;
}

/* Fixed aspect-ratio box: same height for every card, full image visible (contain) */
.advies-card-image {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f0f0f0;
	margin-top: 6px;
}

.advies-card-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
}

.advies-card-title {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 10px 10px 6px;
	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.85rem;
	color: #666;
	line-height: 1.5;
	margin: 0 10px 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.advies-card-more {
	display: inline-block;
	margin: 0 10px 10px;
	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;
}

/* Search results on same page (advies) */
.advies-search-results .advies-section-title {
	margin-bottom: 1.25rem;
}

.advies-search-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.advies-search-item {
	border-bottom: 1px solid #eee;
	padding: 1rem 0;
}

.advies-search-item:last-child {
	border-bottom: none;
}

.advies-search-item-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 0.35rem 0;
	line-height: 1.35;
}

.advies-search-item-title a {
	color: #393939;
	text-decoration: none;
}

.advies-search-item-title a:hover {
	color: #00ae69;
}

.advies-search-item-excerpt {
	font-size: 0.9rem;
	color: #666;
	line-height: 1.5;
	margin: 0 0 0.5rem 0;
}

.advies-search-item-link {
	font-size: 0.9rem;
	font-weight: 600;
	color: #00ae69;
	text-decoration: none;
}

.advies-search-item-link:hover {
	text-decoration: underline;
}

.advies-no-results {
	color: #757575;
	font-size: 1rem;
	margin: 0;
	padding: 1rem 0;
}

.advies-search-loading {
	color: #666;
	font-size: 1rem;
	margin: 0;
	padding: 1.5rem 0;
}

.advies-search-results .tablenav {
	margin-top: 1.5rem;
}

/* Category archive (Bekijk alles) */
.category-archive .advies-section {
	margin-bottom: 2rem;
}

/* ----- Pagination: professional button-group style ----- */
.category-archive .advies-grid+div.tablenav {
	margin-top: 2rem;
	padding-top: 0;
	border: none;
	background: transparent;
}

.category-archive .tablenav-pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	border: none;
}

/* Range text "25 – 28 van 28123": readable spacing, not cramped */
.category-archive .tablenav-pages .displaying-num {
	display: inline-block;
	font-size: 0.95rem;
	color: #555;
	font-weight: 500;
	word-spacing: 0.35em;
	letter-spacing: 0.02em;
	margin-right: 0.5rem;
}

.category-archive .tablenav-pages .displaying-num strong {
	font-weight: 600;
	color: #393939;
}

/* Pagination button group: prev | 1 | 2 | 3 | ... | next */
.category-archive .tablenav-pages .prev.page-numbers,
.category-archive .tablenav-pages .next.page-numbers,
.category-archive .tablenav-pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: #00ae69;
	text-decoration: none;
	background: #fff;
	border: 1px solid #d0d0d0;
	position: relative;
	z-index: 1;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Overlap borders so we get single 1px lines between buttons */
.category-archive .tablenav-pages .page-numbers:not(.prev) {
	margin-left: -1px;
}

.category-archive .tablenav-pages .page-numbers.current,
.category-archive .tablenav-pages .page-numbers:hover {
	z-index: 2;
}

/* First nav item: left rounded corners */
.category-archive .tablenav-pages .prev.page-numbers {
	border-radius: 6px 0 0 6px;
}

/* Last nav item: right rounded corners */
.category-archive .tablenav-pages .next.page-numbers {
	border-radius: 0 6px 6px 0;
}

/* Middle page numbers: no rounding */
.category-archive .tablenav-pages .page-numbers:not(.prev):not(.next):not(.dots) {
	border-radius: 0;
}

.category-archive .tablenav-pages a.page-numbers:hover {
	background: #f5f5f5;
	color: #00985b;
	border-color: #b0b0b0;
}

/* Current page: highlighted state */
.category-archive .tablenav-pages .page-numbers.current {
	background: #e8e8e8;
	color: #393939;
	font-weight: 600;
	border-color: #c0c0c0;
	cursor: default;
}

/* Dots (...) between number groups */
.category-archive .tablenav-pages .page-numbers.dots {
	border: none;
	background: transparent;
	min-width: 1.5rem;
	color: #888;
	cursor: default;
}

.category-archive .tablenav-pages .prev.page-numbers[style*="display:none"],
.category-archive .tablenav-pages .next.page-numbers[style*="display:none"] {
	display: none !important;
}

/* ----- 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%;
		max-width: 100%;
	}
}