/* ================================================================
   WINE EMBASSY CONTENT HUB · BLOG GRID
   Scoped frontend styles for Flatsome / UX Builder.
   ================================================================ */

.wech-blog,
.wech-blog * {
	box-sizing: border-box;
}

.wech-blog {
	--wech-blog-wine: #8d0b28;
	--wech-blog-wine-deep: #5c0718;
	--wech-blog-paper: #faf6ed;
	--wech-blog-cream: #f5efe5;
	--wech-blog-cream-warm: #f9f4ea;
	--wech-blog-ink: #1a1410;
	--wech-blog-ink-soft: #3a2f28;
	--wech-blog-muted: #7a6f62;
	--wech-blog-faint: #9c9286;
	--wech-blog-line: rgba(26, 20, 16, 0.1);
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px 20px 96px;
	color: var(--wech-blog-ink);
}

.wech-blog button,
.wech-blog input {
	font: inherit;
}

.wech-blog button {
	min-height: 0;
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
}

.wech-blog .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Toolbar: category tabs + search. */

.wech-blog__tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 34px;
}

.wech-blog__tabs {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 8px;
}

.wech-blog__tab {
	position: relative;
	padding: 9px 17px !important;
	color: var(--wech-blog-ink-soft) !important;
	background: var(--wech-blog-paper) !important;
	border: 1px solid var(--wech-blog-line) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	cursor: pointer;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wech-blog__tab:hover,
.wech-blog__tab:focus-visible {
	color: var(--wech-blog-wine) !important;
	border-color: var(--wech-blog-wine) !important;
}

.wech-blog__tab:focus-visible,
.wech-blog__search:focus-within,
.wech-blog__more:focus-visible {
	outline: 2px solid rgba(141, 11, 40, 0.35);
	outline-offset: 3px;
}

.wech-blog__tab.is-active {
	color: var(--wech-blog-cream) !important;
	background: var(--wech-blog-ink) !important;
	border-color: var(--wech-blog-ink) !important;
}

.wech-blog__tab:disabled {
	cursor: wait;
}

.wech-blog__search {
	position: relative;
	display: flex;
	flex: 0 1 340px;
	align-items: center;
	gap: 9px;
	min-width: 300px;
	margin: 0;
	padding: 10px 16px;
	color: var(--wech-blog-muted);
	background: var(--wech-blog-paper);
	border: 1px solid var(--wech-blog-line);
	border-radius: 999px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wech-blog__search:focus-within {
	border-color: rgba(141, 11, 40, 0.6);
	box-shadow: 0 0 0 3px rgba(141, 11, 40, 0.06);
}

.wech-blog__search svg {
	flex: 0 0 auto;
}

.wech-blog__search-input[type="search"] {
	width: 100%;
	height: auto;
	min-height: 20px;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--wech-blog-ink);
	background: transparent !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	line-height: 1.45;
}

.wech-blog__search-input::-webkit-search-cancel-button {
	display: none;
}

.wech-blog__search-input::placeholder {
	color: var(--wech-blog-muted);
	opacity: 1;
}

.wech-blog__search-input:focus {
	outline: 0;
}

.wech-blog__search-clear {
	display: inline-flex;
	flex: 0 0 24px;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0 !important;
	color: var(--wech-blog-muted) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	cursor: pointer;
	font-weight: 400;
	line-height: 1;
}

.wech-blog__search-clear:hover,
.wech-blog__search-clear:focus-visible {
	color: var(--wech-blog-wine) !important;
	background: rgba(141, 11, 40, 0.06) !important;
	outline: 0;
}

.wech-blog__search-clear[hidden] {
	display: none !important;
}

/* Post grid and cards. */

.wech-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.wech-blog.is-loading .wech-blog__grid {
	opacity: 0.5;
	transform: translateY(2px);
	pointer-events: none;
}

.wech-blog-card {
	min-width: 0;
	margin: 0;
	background: var(--wech-blog-paper);
	border: 1px solid var(--wech-blog-line);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.26s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}

.wech-blog-card:hover,
.wech-blog-card:focus-within {
	transform: translateY(-5px);
	border-color: var(--wech-blog-wine);
	box-shadow: 0 24px 52px -24px rgba(26, 20, 16, 0.3);
}

.wech-blog-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit !important;
	text-decoration: none !important;
}

.wech-blog-card__link:focus-visible {
	outline: 3px solid rgba(141, 11, 40, 0.35);
	outline-offset: -3px;
}

.wech-blog-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 190px;
	overflow: hidden;
	background: linear-gradient(150deg, #3a2f28, #5c0718);
}

.wech-blog-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(circle at 1.5px 1.5px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
	background-size: 9px 9px;
}

.wech-blog-card__media--winery,
.wech-blog-card__media--1 {
	background: linear-gradient(150deg, #3a2f28, #5c0718);
}

.wech-blog-card__media--knowledge,
.wech-blog-card__media--2 {
	background: linear-gradient(150deg, #8d0b28, #b01e3f);
}

.wech-blog-card__media--horeca,
.wech-blog-card__media--3 {
	background: linear-gradient(150deg, #1f4a7a, #1a1410);
}

.wech-blog-card__media--guide,
.wech-blog-card__media--4 {
	background: linear-gradient(150deg, #b89654, #7a6f62);
}

.wech-blog-card__media--event,
.wech-blog-card__media--5 {
	background: linear-gradient(150deg, #1d5f4f, #1a1410);
}

.wech-blog-card__image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s cubic-bezier(0.2, 0, 0, 1);
}

.wech-blog-card:hover .wech-blog-card__image,
.wech-blog-card:focus-within .wech-blog-card__image {
	transform: scale(1.035);
}

.wech-blog-card__mark {
	position: relative;
	z-index: 1;
	color: rgba(245, 239, 229, 0.92);
	font-style: italic;
	font-weight: 400;
	line-height: 1;
}

.wech-blog-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 24px;
}

.wech-blog-card__category {
	margin-bottom: 10px;
	color: var(--wech-blog-wine);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.wech-blog-card__title {
	margin: 0 0 9px;
	color: var(--wech-blog-ink);
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.02em;
}

.wech-blog-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	margin: 0 0 18px;
	color: var(--wech-blog-muted);
	line-height: 1.6;
}

.wech-blog-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	color: var(--wech-blog-faint);
	line-height: 1.4;
	letter-spacing: 0.04em;
}

.wech-blog-card__dot {
	width: 3px;
	height: 3px;
	background: currentColor;
	border-radius: 50%;
}

/* Empty state, errors and pagination. */

.wech-blog__empty {
	grid-column: 1 / -1;
	padding: 68px 20px;
	text-align: center;
	color: var(--wech-blog-muted);
	background: rgba(250, 246, 237, 0.55);
	border: 1px dashed rgba(26, 20, 16, 0.14);
	border-radius: 18px;
}

.wech-blog__empty h3 {
	margin: 0 0 8px;
	color: var(--wech-blog-ink);
	font-weight: 600;
	line-height: 1.25;
}

.wech-blog__empty p {
	margin: 0;
	line-height: 1.6;
}

.wech-blog__notice {
	margin-top: 18px;
	padding: 12px 16px;
	color: #7a1d2f;
	background: #fff3f5;
	border: 1px solid rgba(141, 11, 40, 0.2);
	border-radius: 10px;
	line-height: 1.5;
	text-align: center;
}

.wech-blog__footer {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

.wech-blog__footer[hidden],
.wech-blog__more[hidden] {
	display: none !important;
}

.wech-blog__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 190px;
	padding: 11px 20px !important;
	color: var(--wech-blog-ink-soft) !important;
	background: var(--wech-blog-paper) !important;
	border: 1px solid var(--wech-blog-line) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	cursor: pointer;
	font-weight: 600;
	line-height: 1.4;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wech-blog__more:hover,
.wech-blog__more:focus-visible {
	color: var(--wech-blog-cream) !important;
	background: var(--wech-blog-wine) !important;
	border-color: var(--wech-blog-wine) !important;
	transform: translateY(-1px);
}

.wech-blog__more:disabled {
	cursor: wait;
	opacity: 0.55;
}

.wech-blog__more svg {
	transition: transform 0.2s ease;
}

.wech-blog__more:hover svg {
	transform: translateY(2px);
}

/* Responsive layout. */

@media (max-width: 1000px) {
	.wech-blog__tools {
		align-items: flex-start;
		flex-direction: column;
	}

	.wech-blog__search {
		flex-basis: auto;
		width: min(100%, 440px);
	}

	.wech-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wech-blog {
		padding: 12px 20px 72px;
	}

	.wech-blog__tools {
		gap: 18px;
		margin-bottom: 26px;
	}

	.wech-blog__tabs {
		width: calc(100% + 40px);
		margin: 0 -20px;
		padding: 2px 20px 8px;
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scrollbar-width: none;
	}

	.wech-blog__tabs::-webkit-scrollbar {
		display: none;
	}

	.wech-blog__tab {
		padding: 8px 15px !important;
	}

	.wech-blog__search {
		width: 100%;
		min-width: 0;
		padding: 10px 15px;
	}

	.wech-blog__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.wech-blog-card__media {
		height: clamp(176px, 52vw, 220px);
	}

	.wech-blog-card__body {
		padding: 20px 21px 22px;
	}

	.wech-blog-card__title {
	}
}

@media (prefers-reduced-motion: reduce) {
	.wech-blog *,
	.wech-blog *::before,
	.wech-blog *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
