/* ==========================================================================
   Blog Posts Grid (344dacee)
   Every rule is scoped under .bpg-wrapper-344dacee so nothing leaks into the
   theme or other Elementor elements. Elementor controls override the CSS
   variables / properties below via higher-specificity selectors.
   ========================================================================== */

.bpg-wrapper-344dacee {
	/* Layout */
	--bpg-cols: 3;
	--bpg-col-gap: 40px;
	--bpg-row-gap: 56px;
	--bpg-align: left;
	--bpg-justify: flex-start;
	--bpg-card-dir: column;
	--bpg-img-basis: 100%;
	--bpg-img-width: 40%;
	--bpg-img-gap: 28px;
	--bpg-img-display: block;

	/* Image */
	--bpg-img-ratio: 16 / 9;
	--bpg-img-height: auto;
	--bpg-img-radius: 12px;
	--bpg-img-fit: cover;
	--bpg-zoom: 1.07;
	--bpg-zoom-dur: 500ms;
	--bpg-shine-color: rgba(255, 255, 255, 0.28);
	--bpg-shine-dur: 900ms;

	/* Palette — dark, editorial, gold accent */
	--bpg-accent: #dba24f;
	--bpg-accent-hover: #f2c877;
	--bpg-text: #ffffff;
	--bpg-muted: rgba(255, 255, 255, 0.7);
	--bpg-line: rgba(219, 162, 79, 0.45);
	--bpg-error: #ff7b7b;

	/* Parts */
	--bpg-meta-gap: 10px;
	--bpg-rm-align: var(--bpg-justify);
	--bpg-rm-icon-gap: 6px;
	--bpg-pag-align: center;
	--bpg-pag-gap: 8px;
	--bpg-lm-align: center;

	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	color: var(--bpg-text);
}

.bpg-wrapper-344dacee *,
.bpg-wrapper-344dacee *::before,
.bpg-wrapper-344dacee *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------- Grid */

.bpg-wrapper-344dacee .bpg-grid-344dacee {
	display: grid;
	grid-template-columns: repeat(var(--bpg-cols), minmax(0, 1fr));
	column-gap: var(--bpg-col-gap);
	row-gap: var(--bpg-row-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
	min-width: 0;
	transition: opacity 0.25s ease;
}

.bpg-wrapper-344dacee.is-loading .bpg-grid-344dacee {
	opacity: 0.55;
	pointer-events: none;
}

/* Masonry: cards keep natural height, JS assigns row spans. */
.bpg-wrapper-344dacee .bpg-grid-344dacee.is-masonry {
	grid-auto-rows: 8px;
	align-items: start;
}

.bpg-wrapper-344dacee .bpg-empty {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--bpg-muted);
	text-align: center;
}

/* --------------------------------------------------------------- Card */

.bpg-wrapper-344dacee .bpg-card-344dacee {
	display: block;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
}

.bpg-wrapper-344dacee .bpg-grid-344dacee.is-masonry .bpg-card-344dacee {
	height: auto;
	align-self: start;
}

.bpg-equal-yes .bpg-wrapper-344dacee .bpg-grid-344dacee:not(.is-masonry) .bpg-card-inner {
	height: 100%;
}

.bpg-wrapper-344dacee .bpg-card-inner {
	display: flex;
	flex-direction: var(--bpg-card-dir);
	gap: var(--bpg-img-gap);
	height: auto;
	min-width: 0;
	background: transparent;
	text-align: var(--bpg-align);
}

.bpg-wrapper-344dacee .bpg-content {
	display: flex;
	flex-direction: column;
	align-items: var(--bpg-justify);
	flex: 1 1 auto;
	min-width: 0;
}

/* -------------------------------------------------------------- Image */

.bpg-wrapper-344dacee .bpg-image-wrap {
	position: relative;
	display: var(--bpg-img-display);
	flex: 0 0 var(--bpg-img-basis);
	width: var(--bpg-img-basis);
	max-width: 100%;
	height: var(--bpg-img-height);
	aspect-ratio: var(--bpg-img-ratio);
	margin: 0;
	overflow: hidden;
	border-radius: var(--bpg-img-radius);
	background: rgba(255, 255, 255, 0.04);
	isolation: isolate;
	transform: translateZ(0); /* keeps rounded corners clipping during zoom (Safari) */
	-webkit-mask-image: -webkit-radial-gradient(#fff, #000);
	text-decoration: none;
	line-height: 0;
}

.bpg-wrapper-344dacee .bpg-image-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: var(--bpg-img-fit);
	transform: scale(1);
	transform-origin: center center;
	transition: transform var(--bpg-zoom-dur) cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
	backface-visibility: hidden;
}

/* Hover zoom — image only, card size never changes. */
.bpg-wrapper-344dacee .bpg-image-wrap:hover img,
.bpg-wrapper-344dacee .bpg-card-inner:focus-within .bpg-image-wrap img {
	transform: scale(var(--bpg-zoom));
}

/* Shine / light sweep (left → right) via pseudo-element. */
.bpg-wrapper-344dacee .bpg-image-wrap::after {
	content: "";
	position: absolute;
	top: -25%;
	bottom: -25%;
	left: 0;
	width: 45%;
	background: linear-gradient(
		105deg,
		rgba(255, 255, 255, 0) 0%,
		var(--bpg-shine-color) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: translateX(-160%) skewX(-18deg);
	opacity: 0;
	pointer-events: none;
	z-index: 2;
}

.bpg-shine-on .bpg-wrapper-344dacee .bpg-image-wrap:hover::after,
.bpg-shine-on .bpg-wrapper-344dacee .bpg-card-inner:focus-within .bpg-image-wrap::after {
	animation: bpg-shine-344dacee var(--bpg-shine-dur) ease-in-out forwards;
}

@keyframes bpg-shine-344dacee {
	0% {
		transform: translateX(-160%) skewX(-18deg);
		opacity: 0;
	}
	15% {
		opacity: 1;
	}
	85% {
		opacity: 1;
	}
	100% {
		transform: translateX(360%) skewX(-18deg);
		opacity: 0;
	}
}

/* --------------------------------------------------------------- Meta */

.bpg-wrapper-344dacee .bpg-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--bpg-justify);
	gap: var(--bpg-meta-gap);
	margin: 0 0 12px;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--bpg-accent);
	line-height: 1.4;
}

.bpg-wrapper-344dacee .bpg-meta-item {
	white-space: nowrap;
}

.bpg-wrapper-344dacee .bpg-meta-sep {
	opacity: 0.6;
}

/* -------------------------------------------------------------- Title */

.bpg-wrapper-344dacee .bpg-title {
	margin: 0 0 14px;
	padding: 0;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--bpg-text);
	overflow-wrap: anywhere;
}

.bpg-wrapper-344dacee .bpg-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.bpg-wrapper-344dacee .bpg-title a:hover,
.bpg-wrapper-344dacee .bpg-title a:focus-visible {
	color: var(--bpg-accent);
}

/* ------------------------------------------------------------ Excerpt */

.bpg-wrapper-344dacee .bpg-excerpt {
	margin: 0 0 16px;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.65;
	color: var(--bpg-muted);
	overflow-wrap: anywhere;
}

/* ---------------------------------------------------------- Read More */

.bpg-wrapper-344dacee .bpg-read-more {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--bpg-rm-icon-gap);
	align-self: var(--bpg-rm-align);
	margin-top: 0;
	padding-bottom: 2px;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--bpg-accent);
	text-decoration: none;
	transition: color 0.3s ease;
}

.bpg-equal-yes .bpg-wrapper-344dacee .bpg-grid-344dacee:not(.is-masonry) .bpg-read-more {
	margin-top: auto;
}

.bpg-wrapper-344dacee .bpg-read-more::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.35s ease;
}

.bpg-wrapper-344dacee .bpg-read-more:hover,
.bpg-wrapper-344dacee .bpg-read-more:focus-visible {
	color: var(--bpg-accent-hover);
}

.bpg-rm-underline-on .bpg-wrapper-344dacee .bpg-read-more:hover::after,
.bpg-rm-underline-on .bpg-wrapper-344dacee .bpg-read-more:focus-visible::after {
	transform: scaleX(1);
}

.bpg-wrapper-344dacee .bpg-rm-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	transition: transform 0.3s ease;
}

.bpg-wrapper-344dacee .bpg-rm-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.bpg-wrapper-344dacee .bpg-read-more:hover .bpg-rm-icon {
	transform: translateX(3px);
}

/* --------------------------------------------------------- Pagination */

.bpg-wrapper-344dacee .bpg-pagination-wrap-344dacee {
	width: 100%;
}

.bpg-wrapper-344dacee .bpg-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--bpg-pag-align);
	gap: var(--bpg-pag-gap);
	margin: 56px 0 0;
	padding: 0;
}

.bpg-wrapper-344dacee .bpg-page-btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 10px 20px;
	border: 1px solid var(--bpg-line);
	border-radius: 4px;
	background: transparent;
	color: var(--bpg-accent);
	font: inherit;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.bpg-wrapper-344dacee .bpg-page-btn:not(:disabled):not(.is-active):hover,
.bpg-wrapper-344dacee .bpg-page-btn:focus-visible {
	color: var(--bpg-accent-hover);
	border-color: var(--bpg-accent);
	background: rgba(219, 162, 79, 0.1);
}

.bpg-wrapper-344dacee .bpg-page-btn.is-active {
	background: var(--bpg-accent);
	border-color: var(--bpg-accent);
	color: #1a0808;
	cursor: default;
}

.bpg-wrapper-344dacee .bpg-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.bpg-wrapper-344dacee .bpg-page-btn:focus-visible,
.bpg-wrapper-344dacee .bpg-load-more-btn:focus-visible,
.bpg-wrapper-344dacee .bpg-read-more:focus-visible,
.bpg-wrapper-344dacee .bpg-title a:focus-visible,
.bpg-wrapper-344dacee .bpg-image-wrap:focus-visible {
	outline: 2px solid var(--bpg-accent);
	outline-offset: 3px;
}

.bpg-wrapper-344dacee .bpg-dots {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 4px;
	color: var(--bpg-muted);
	user-select: none;
}

/* --------------------------------------------------- View More button */

.bpg-wrapper-344dacee .bpg-load-more-wrap {
	display: flex;
	justify-content: var(--bpg-lm-align);
	margin: 56px 0 0;
}

.bpg-wrapper-344dacee .bpg-load-more-btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 16px 44px;
	border: 1px solid var(--bpg-accent);
	border-radius: 2px;
	background: transparent;
	color: var(--bpg-accent);
	font: inherit;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.bpg-wrapper-344dacee .bpg-load-more-btn:not(:disabled):hover,
.bpg-wrapper-344dacee .bpg-load-more-btn:focus-visible {
	background: var(--bpg-accent);
	color: #1a0808;
}

.bpg-wrapper-344dacee .bpg-load-more-btn:disabled {
	cursor: wait;
	opacity: 0.8;
}

.bpg-wrapper-344dacee .bpg-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: bpg-spin-344dacee 0.7s linear infinite;
}

@keyframes bpg-spin-344dacee {
	to {
		transform: rotate(360deg);
	}
}

/* ------------------------------------------------------------ Messages */

.bpg-wrapper-344dacee .bpg-message {
	margin: 32px 0 0;
	text-align: center;
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bpg-muted);
}

.bpg-wrapper-344dacee .bpg-message[hidden] {
	display: none;
}

.bpg-wrapper-344dacee .bpg-error {
	color: var(--bpg-error);
	text-transform: none;
	letter-spacing: 0;
}

/* --------------------------------------------------------- Animations */

.bpg-wrapper-344dacee .bpg-card-344dacee.bpg-enter {
	animation: bpg-fade-up-344dacee 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes bpg-fade-up-344dacee {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ------------------------------------------------------- Accessibility */

.bpg-wrapper-344dacee .bpg-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.bpg-wrapper-344dacee .bpg-image-wrap img,
	.bpg-wrapper-344dacee .bpg-image-wrap::after,
	.bpg-wrapper-344dacee .bpg-card-344dacee.bpg-enter,
	.bpg-wrapper-344dacee .bpg-read-more::after,
	.bpg-wrapper-344dacee .bpg-rm-icon {
		animation: none !important;
		transition: none !important;
	}
	.bpg-wrapper-344dacee .bpg-image-wrap:hover img {
		transform: none;
	}
}

/* --------------------------------------------------------- Responsive */

@media (max-width: 767px) {
	.bpg-wrapper-344dacee .bpg-title {
		font-size: 26px;
	}
	.bpg-wrapper-344dacee .bpg-page-btn {
		min-width: 40px;
		min-height: 40px;
		padding: 0 12px;
	}
	.bpg-wrapper-344dacee .bpg-load-more-btn {
		width: 100%;
		max-width: 360px;
	}
}