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

.wech-news,
.wech-news *,
.wech-news-lightbox,
.wech-news-lightbox *,
[id^="wech-news-"][id$="-registration"],
[id^="wech-news-"][id$="-registration"] * {
	box-sizing: border-box;
}

.wech-news {
	--wech-news-cream: #f5efe5;
	--wech-news-cream-soft: #ede5d3;
	--wech-news-cream-warm: #f9f4ea;
	--wech-news-paper: #faf6ed;
	--wech-news-ink: #1a1410;
	--wech-news-ink-soft: #3a2f28;
	--wech-news-muted: #7a6f62;
	--wech-news-faint: #a69b8e;
	--wech-news-wine: #8d0b28;
	--wech-news-wine-deep: #5c0718;
	--wech-news-wine-bright: #b01e3f;
	--wech-news-gold: #b89654;
	--wech-news-gold-soft: #d4b87a;
	--wech-news-green: #1d5f4f;
	--wech-news-blue: #1f4a7a;
	--wech-news-line: rgba(26, 20, 16, 0.1);
	--wech-news-line-soft: rgba(26, 20, 16, 0.05);
	width: 100%;
	margin: 0;
	color: var(--wech-news-ink);
	background: var(--wech-news-cream);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.wech-news img {
	display: block;
	max-width: 100%;
}

.wech-news a {
	color: inherit;
	text-decoration: none;
}

.wech-news button,
.wech-news input,
.wech-news textarea,
.wech-news select,
.wech-news-lightbox button,
.wech-news-lightbox input,
.wech-news-lightbox textarea,
.wech-news-lightbox select {
	font: inherit;
}

.wech-news__inner {
	width: min(1280px, calc(100% - 64px));
	margin-right: auto;
	margin-left: auto;
}

/* Chronological feed. */

.wech-news-feed {
	padding: 20px 0 100px;
	background: var(--wech-news-cream);
}

.wech-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

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

.wech-news-card[hidden] {
	display: none !important;
}

.wech-news-card.wech-news-card--revealed {
	animation: wech-news-card-in 0.42s cubic-bezier(0.2, 0, 0, 1) both;
}

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

.wech-news-card__media {
	position: relative;
	height: 190px;
	min-height: 190px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: linear-gradient(150deg, var(--wech-news-ink-soft), var(--wech-news-wine-deep));
}

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

.wech-news-card__media--dinner {
	background: linear-gradient(150deg, var(--wech-news-green), var(--wech-news-ink));
}

.wech-news-card__media--training {
	background: linear-gradient(150deg, var(--wech-news-wine-deep), var(--wech-news-wine-bright));
}

.wech-news-card__media--trade {
	background: linear-gradient(150deg, var(--wech-news-ink), var(--wech-news-ink-soft));
}

.wech-news-card__media--campaign {
	background: linear-gradient(150deg, var(--wech-news-wine-bright), var(--wech-news-gold));
}

.wech-news-card__media--partner {
	background: linear-gradient(150deg, var(--wech-news-blue), var(--wech-news-ink));
}

.wech-news-card__media--company {
	background: linear-gradient(150deg, var(--wech-news-gold), var(--wech-news-muted));
}

.wech-news-card__media--winery {
	background: linear-gradient(150deg, var(--wech-news-ink-soft), var(--wech-news-wine-deep));
}

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

.wech-news-card:hover .wech-news-card__image {
	transform: scale(1.035);
}

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

.wech-news-card__body {
	min-width: 0;
	padding: 22px 24px 24px;
	display: flex;
	flex: 1;
	flex-direction: column;
}

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

.wech-news-card__title {
	margin: 0 0 9px !important;
	color: var(--wech-news-ink);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.22;
	text-transform: none;
}

.wech-news-card__title a {
	color: inherit !important;
}

.wech-news-card__title a:hover,
.wech-news-card__title a:focus-visible {
	color: var(--wech-news-wine) !important;
}

.wech-news-card__excerpt {
	margin: 0 0 18px !important;
	color: var(--wech-news-muted);
	line-height: 1.6;
}

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

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

.wech-news-card__registration {
	margin-top: 18px;
	padding-top: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	border-top: 1px solid var(--wech-news-line);
}

.wech-news-card__registration > span {
	color: var(--wech-news-wine);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.wech-news-card__register,
.wech-news-more {
	min-height: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
}

.wech-news-card__register {
	flex: none;
	padding: 9px 15px;
	color: #fff !important;
	background: var(--wech-news-wine);
	border: 1px solid var(--wech-news-wine);
	border-radius: 999px;
	transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.wech-news-card__register:hover,
.wech-news-card__register:focus-visible {
	color: #fff !important;
	background: var(--wech-news-wine-deep);
	border-color: var(--wech-news-wine-deep);
	transform: translateY(-1px);
}

.wech-news-card__register:focus-visible,
.wech-news-more:focus-visible {
	outline: 2px solid var(--wech-news-wine);
	outline-offset: 3px;
}

/* Empty/admin messages and load more. */

.wech-news-empty {
	grid-column: 1 / -1;
	padding: 60px 20px;
	text-align: center;
	color: var(--wech-news-muted);
}

.wech-news-empty h2 {
	margin: 0 0 8px !important;
	color: var(--wech-news-ink);
	font-weight: 600;
}

.wech-news-empty p {
	margin: 0 !important;
}

.wech-news-admin-message {
	margin-bottom: 24px;
	padding: 13px 16px;
	color: #4d3913;
	background: #fff8df;
	border: 1px solid rgba(184, 150, 84, 0.38);
	border-radius: 12px;
	line-height: 1.55;
}

.wech-news-admin-message a {
	color: var(--wech-news-wine);
	font-weight: 600;
	text-decoration: underline;
}

.wech-news-feed__footer {
	padding-top: 42px;
	display: flex;
	justify-content: center;
}

.wech-news-more {
	padding: 13px 22px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	color: var(--wech-news-ink) !important;
	background: var(--wech-news-paper) !important;
	border: 1px solid var(--wech-news-line) !important;
	border-radius: 999px !important;
	cursor: pointer;
	transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.wech-news-more:hover {
	color: var(--wech-news-wine) !important;
	border-color: var(--wech-news-wine) !important;
	transform: translateY(-2px);
}

.wech-news-more svg {
	transition: transform 0.22s ease;
}

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

/* Flatsome Lightbox + Contact Form 7. */

.wech-news-lightbox,
[id^="wech-news-"][id$="-registration"] {
	--wech-news-paper: #faf6ed;
	--wech-news-cream-warm: #f9f4ea;
	--wech-news-ink: #1a1410;
	--wech-news-ink-soft: #3a2f28;
	--wech-news-muted: #7a6f62;
	--wech-news-wine: #8d0b28;
	--wech-news-wine-deep: #5c0718;
	--wech-news-line: rgba(26, 20, 16, 0.1);
	padding: 0 !important;
	overflow: hidden;
	background: var(--wech-news-paper) !important;
	border-radius: 22px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.wech-news-lightbox .mfp-close,
[id^="wech-news-"][id$="-registration"] .mfp-close {
	top: 19px !important;
	right: 18px !important;
	width: 38px !important;
	height: 38px !important;
	min-height: 38px !important;
	padding: 0 !important;
	color: var(--wech-news-ink) !important;
	background: rgba(26, 20, 16, 0.055) !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	font-weight: 300 !important;
	line-height: 38px !important;
	opacity: 1 !important;
}

.wech-news-lightbox .mfp-close:hover,
[id^="wech-news-"][id$="-registration"] .mfp-close:hover {
	color: #fff !important;
	background: var(--wech-news-wine) !important;
}

.wech-news-register-panel {
	max-height: calc(100vh - 48px);
	overflow-x: hidden;
	overflow-y: auto;
	color: var(--wech-news-ink);
	background: var(--wech-news-paper);
}

.wech-news-register-panel__head {
	padding: 32px 78px 24px 32px;
	background:
		radial-gradient(480px 200px at 20% -30%, rgba(184, 150, 84, 0.2), transparent 68%),
		var(--wech-news-paper);
	border-bottom: 1px solid var(--wech-news-line);
}

.wech-news-register-panel__head small {
	display: block;
	margin-bottom: 7px;
	color: var(--wech-news-wine);
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.wech-news-register-panel__head h2 {
	margin: 0 !important;
	color: var(--wech-news-ink);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.08;
	text-transform: none;
}

.wech-news-register-panel__meta,
.wech-news-register-panel__price,
.wech-news-register-panel__note {
	margin: 10px 0 0 !important;
	line-height: 1.55;
}

.wech-news-register-panel__meta {
	color: var(--wech-news-muted);
}

.wech-news-register-panel__price {
	color: var(--wech-news-wine-deep);
	font-weight: 650;
}

.wech-news-register-panel__note {
	padding: 10px 12px;
	color: var(--wech-news-ink-soft);
	background: rgba(141, 11, 40, 0.04);
	border-left: 2px solid var(--wech-news-wine);
	border-radius: 0 8px 8px 0;
}

.wech-news-register-panel__meta:empty,
.wech-news-register-panel__price[hidden],
.wech-news-register-panel__note[hidden] {
	display: none !important;
}

.wech-news-register-panel__form {
	padding: 26px 32px 32px;
}

.wech-news-register-panel .wpcf7,
.wech-news-register-panel .wpcf7-form {
	margin: 0;
}

.wech-news-register-panel .wech-news-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.wech-news-register-panel .wech-news-field,
.wech-news-register-panel .wpcf7-form label {
	display: grid;
	gap: 7px;
	margin: 0;
	color: var(--wech-news-ink-soft);
	font-weight: 600;
	line-height: 1.45;
}

.wech-news-register-panel .wech-news-field--full {
	grid-column: 1 / -1;
}

.wech-news-register-panel .wpcf7-form-control-wrap {
	display: block;
}

.wech-news-register-panel input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wech-news-register-panel textarea,
.wech-news-register-panel select {
	width: 100%;
	min-height: 46px;
	margin: 0 !important;
	padding: 11px 13px !important;
	color: var(--wech-news-ink);
	background: #fff !important;
	border: 1px solid var(--wech-news-line) !important;
	border-radius: 11px !important;
	box-shadow: none !important;
	line-height: 1.4;
	outline: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wech-news-register-panel textarea {
	min-height: 104px;
	resize: vertical;
}

.wech-news-register-panel input:focus,
.wech-news-register-panel textarea:focus,
.wech-news-register-panel select:focus {
	border-color: var(--wech-news-wine) !important;
	box-shadow: 0 0 0 3px rgba(141, 11, 40, 0.09) !important;
}

.wech-news-register-panel .wpcf7-not-valid-tip {
	margin-top: 5px;
	color: #9b2c2c;
	font-weight: 500;
}

.wech-news-register-panel .wpcf7-submit,
.wech-news-register-panel .wech-news-form-submit {
	width: 100%;
	min-height: 48px;
	margin: 20px 0 0 !important;
	padding: 13px 22px !important;
	color: #fff !important;
	background: var(--wech-news-wine) !important;
	border: 1px solid var(--wech-news-wine) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wech-news-register-panel .wpcf7-submit:hover,
.wech-news-register-panel .wech-news-form-submit:hover {
	background: var(--wech-news-wine-deep) !important;
	border-color: var(--wech-news-wine-deep) !important;
	transform: translateY(-1px);
}

.wech-news-register-panel .wpcf7-spinner {
	margin: 12px auto 0;
	display: block;
}

.wech-news-register-panel .wpcf7-response-output {
	margin: 18px 0 0 !important;
	padding: 11px 13px !important;
	border-radius: 10px;
	line-height: 1.5;
}

@keyframes wech-news-card-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1000px) {
	.wech-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wech-news__inner {
		width: calc(100% - 40px);
	}

	.wech-news-feed {
		padding-top: 18px;
		padding-bottom: 72px;
	}

	.wech-news-grid {
		grid-template-columns: 1fr;
	}

	.wech-news-card__media {
		height: 168px;
		min-height: 168px;
	}

	.wech-news-card__mark {
	}

	.wech-news-card__registration {
		align-items: flex-start;
		flex-direction: column;
	}

	.wech-news-card__register {
		width: 100%;
		text-align: center;
	}

	.wech-news-lightbox {
		width: 100vw !important;
		max-width: none !important;
		border-radius: 0;
	}

	.wech-news-register-panel {
		min-height: 100dvh;
		max-height: 100dvh;
	}

	.wech-news-register-panel__head {
		padding: 26px 68px 20px 20px;
	}

	.wech-news-register-panel__form {
		padding: 22px 20px 28px;
	}

	.wech-news-register-panel .wech-news-form-grid {
		grid-template-columns: 1fr;
	}

	.wech-news-register-panel .wech-news-field--full {
		grid-column: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wech-news-card,
	.wech-news-card__image,
	.wech-news-card__register,
	.wech-news-more,
	.wech-news-more svg {
		animation: none !important;
		transition: none !important;
	}
}
