/* Vardo ბლოგი — the blog cards: carousel, grid, "featured + list"; card style stack (picture above the text) or overlay
   (the text over the picture). These are only the defaults: the Elementor widget's Style tab sets every property with a
   stronger selector. The carousel behaves like the services one (Vardo სერვისები): one card centred on a phone. */
.vardo-blog {
	--vbl-cols: var(--vbl-cols-d, 4); /* --vbl-cols-d: the shortcode's cols (desktop) */
	--vbl-gap: 20px;
	--vbl-row-gap: var(--vbl-gap);
	--vbl-lift: -3px;
	--vbl-zoom: 1.04;
	--vbl-title-lines: 3;
	--vbl-ex-lines: 3;
	--vbl-accent: #fa036b;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.4;
}
.vardo-blog *, .vardo-blog *::before, .vardo-blog *::after { box-sizing: border-box; }

/* ------------------------------------------------ the card */
.vardo-blog .vbl-card {
	position: relative;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .07);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: #222;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.vardo-blog a.vbl-card:hover { transform: translateY(var(--vbl-lift)); box-shadow: 0 10px 28px rgba(0, 0, 0, .11); }
.vardo-blog a.vbl-card:focus-visible { outline: 2px solid var(--vbl-accent); outline-offset: 3px; }
.vardo-blog .vbl-pic { position: relative; display: block; aspect-ratio: var(--vbl-ratio, 4 / 3); overflow: hidden; background: #f3eef1; }
.vardo-blog .vbl-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transition: transform .35s ease, opacity .2s ease;
}
.vardo-blog a.vbl-card:hover .vbl-img { transform: scale(var(--vbl-zoom)); }
.vardo-blog .vbl-badge {
	position: absolute;
	left: 12px;
	top: 12px;
	z-index: 1;
	padding: 4px 10px;
	border-radius: 12px;
	background: #fff;
	color: #e60061;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}
.vardo-blog .vbl-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; }
.vardo-blog .vbl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #5c5c66; }
.vardo-blog .vbl-title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	color: #222;
	display: -webkit-box;
	-webkit-line-clamp: var(--vbl-title-lines);
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .15s ease;
}
.vardo-blog .vbl-excerpt {
	font-size: 14px;
	line-height: 1.55;
	color: #5c5c66;
	display: -webkit-box;
	-webkit-line-clamp: var(--vbl-ex-lines);
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.vardo-blog .vbl-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--vbl-accent); transition: color .15s ease; }
.vardo-blog .vbl-more::after { content: "→"; display: inline-block; margin-left: 6px; transition: transform .15s ease; }
.vardo-blog a.vbl-card:hover .vbl-more::after { transform: translateX(3px); }

/* the text over the picture: a tall photo card, darker at the bottom */
.vardo-blog.vbl-overlay .vbl-card { aspect-ratio: var(--vbl-ratio, 4 / 5); justify-content: flex-end; color: #fff; }
.vardo-blog.vbl-overlay .vbl-pic { position: absolute; inset: 0; aspect-ratio: auto; }
.vardo-blog.vbl-overlay .vbl-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--vbl-shade, rgba(20, 10, 16, .82)) 0%, rgba(20, 10, 16, .35) 45%, rgba(20, 10, 16, 0) 70%);
	pointer-events: none;
}
.vardo-blog.vbl-overlay .vbl-body { position: relative; z-index: 1; flex: 0 0 auto; padding: 20px; }
.vardo-blog.vbl-overlay .vbl-meta { color: rgba(255, 255, 255, .85); }
.vardo-blog.vbl-overlay .vbl-title { color: #fff; font-size: 17px; }

/* ------------------------------------------------ grid */
.vardo-blog.vbl-grid { --vbl-cols: var(--vbl-cols-d, 3); display: grid; grid-template-columns: repeat(var(--vbl-cols), minmax(0, 1fr)); column-gap: var(--vbl-gap); row-gap: var(--vbl-row-gap); }

/* ------------------------------------------------ carousel: a scroll-snap row (swipe on phones); blog.js: arrows, dots, autoplay, loop */
.vardo-blog .vbl-row { position: relative; display: flex; align-items: center; gap: 12px; }
.vardo-blog .vbl-track {
	flex: 1;
	min-width: 0;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--vbl-cols) - 1) * var(--vbl-gap)) / var(--vbl-cols));
	gap: var(--vbl-gap);
	align-items: stretch;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	/* room for the cards' shadow (the strip clips what is outside it); the side edges fade out */
	padding: var(--vbl-pad-t, 16px) var(--vbl-pad-r, 20px) var(--vbl-pad-b, 32px) var(--vbl-pad-l, 20px);
	scroll-padding: 0 var(--vbl-pad-r, 20px) 0 var(--vbl-pad-l, 20px);
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--vbl-pad-l, 20px), #000 calc(100% - var(--vbl-pad-r, 20px)), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 var(--vbl-pad-l, 20px), #000 calc(100% - var(--vbl-pad-r, 20px)), transparent 100%);
	scrollbar-width: none;
}
.vardo-blog .vbl-track::-webkit-scrollbar { display: none; }
.vardo-blog .vbl-track > .vbl-card { scroll-snap-align: start; }
.vardo-blog .vbl-arrow {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #e6e6ea;
	border-radius: 50%;
	background: #fff;
	color: var(--vbl-accent);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.vardo-blog .vbl-arrow::before {
	content: "";
	width: var(--vbl-arrow-icon, 9px);
	height: var(--vbl-arrow-icon, 9px);
	border: solid currentColor;
	border-width: 0 0 2px 2px;
	transform: translateX(2px) rotate(45deg);
}
.vardo-blog .vbl-next::before { transform: translateX(-2px) rotate(-135deg); }
.vardo-blog .vbl-arrow:disabled { opacity: .35; cursor: default; }
.vardo-blog .vbl-arrow:hover:not(:disabled) { border-color: var(--vbl-accent); }
.vardo-blog .vbl-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.vardo-blog .vbl-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #e3d6dc; cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.vardo-blog .vbl-dot.is-active { width: 22px; background: var(--vbl-accent); }

/* ------------------------------------------------ featured + list: the latest big, the next ones in rows beside it */
.vardo-blog.vbl-featured { display: grid; grid-template-columns: minmax(0, var(--vbl-lead, 1.15fr)) minmax(0, 1fr); gap: 28px; align-items: start; }
.vardo-blog.vbl-featured > .vbl-card { --vbl-ratio: 16 / 9; }
.vardo-blog.vbl-featured > .vbl-card .vbl-body { padding: 22px 24px 26px; gap: 10px; }
.vardo-blog.vbl-featured > .vbl-card .vbl-title { font-size: 22px; line-height: 1.35; }
.vardo-blog.vbl-featured > .vbl-card .vbl-excerpt { font-size: 15px; }
.vardo-blog .vbl-side { display: flex; flex-direction: column; gap: 16px; }
.vardo-blog .vbl-item { flex-direction: row; align-items: center; gap: 16px; padding: 12px; }
.vardo-blog .vbl-item .vbl-pic { flex: 0 0 var(--vbl-row-img, 150px); width: var(--vbl-row-img, 150px); aspect-ratio: 3 / 2; border-radius: 10px; }
.vardo-blog .vbl-item .vbl-body { padding: 0; gap: 6px; min-width: 0; }
.vardo-blog .vbl-item .vbl-title { font-size: 16px; }

/* ------------------------------------------------ the filter bar: category chips + search (blog.js puts the answer in place) */
.vbl-wrap { box-sizing: border-box; }
.vbl-wrap .vbl-tools { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.vbl-wrap .vbl-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.vbl-wrap .vbl-chip {
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid #f0dce5;
	border-radius: 20px;
	background: #fff;
	color: #222;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.vbl-wrap .vbl-chip:hover { border-color: #fa036b; color: #e60061; }
.vbl-wrap .vbl-chip.is-active { background: #fa036b; border-color: #fa036b; color: #fff; }
.vbl-wrap .vbl-chip:focus-visible, .vbl-wrap .vbl-search .vbl-input:focus-visible { outline: 2px solid #fa036b; outline-offset: 2px; }
.vbl-wrap .vbl-search { position: relative; flex: 0 0 320px; width: 320px; max-width: 100%; margin: 0; }
.vbl-wrap .vbl-search .vbl-input {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 16px 0 42px;
	border: 1px solid #e6e6ea;
	border-radius: 22px;
	background: #fff;
	color: #222;
	font: inherit;
	font-size: 15px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.vbl-wrap .vbl-search .vbl-input:focus { border-color: #fa036b; outline: none; }
.vbl-wrap .vbl-search .vbl-input::placeholder { color: #8a8a94; }
.vbl-wrap .vbl-search-ico { position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: #e60061; pointer-events: none; }
.vbl-wrap .vbl-search-ico::before { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; }
.vbl-wrap .vbl-search-ico::after { content: ""; position: absolute; left: 11px; top: 10px; width: 2px; height: 6px; background: currentColor; transform: rotate(-45deg); border-radius: 1px; }
/* „ბლოგის სრულად გაცნობა“ under the block (the brand's button, like the packages' „ფასის გამოთვლა“) */
.vbl-wrap .vbl-all-row { display: flex; justify-content: center; margin-top: 28px; }
.vbl-wrap .vbl-all-row .vbl-all {
	flex: var(--vbl-all-grow, 0) 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: #fa036b;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.vbl-wrap .vbl-all-row .vbl-all::after { content: "→"; transition: transform .15s ease; }
.vbl-wrap .vbl-all-row .vbl-all:hover { filter: brightness(1.08); color: #fff; }
.vbl-wrap .vbl-all-row .vbl-all:hover::after { transform: translateX(3px); }
.vbl-wrap .vbl-all-row .vbl-all:focus-visible { outline: 2px solid #fa036b; outline-offset: 3px; }

/* our own „×“ (the browser's one is blue and cannot be coloured) */
.vbl-wrap .vbl-search .vbl-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.vbl-wrap .vbl-search .vbl-input { padding-right: 44px; }
.vbl-wrap .vbl-clear {
	position: absolute;
	right: 8px;
	top: 50%;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #e60061;
	cursor: pointer;
}
.vbl-wrap .vbl-clear[hidden] { display: none; }
.vbl-wrap .vbl-clear:hover { background: #fbeef4; }
.vbl-wrap .vbl-clear::before, .vbl-wrap .vbl-clear::after { content: ""; position: absolute; left: 8px; top: 14px; width: 14px; height: 2px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.vbl-wrap .vbl-clear::after { transform: rotate(-45deg); }
.vbl-wrap .vbl-results { transition: opacity .15s ease; }
.vbl-wrap.is-loading .vbl-results { opacity: .45; pointer-events: none; }
.vbl-wrap .vbl-empty { margin: 0; padding: 32px 16px; border-radius: 14px; background: #fbf7f9; color: #5c5c66; font-size: 15px; text-align: center; }

/* default columns on smaller screens (the widget's tablet / mobile values override these) */
@media (max-width: 1024px) {
	.vbl-wrap .vbl-tools { flex-wrap: wrap; }
	.vardo-blog { --vbl-cols: 2; }
	.vardo-blog.vbl-grid { --vbl-cols: 2; }
	.vardo-blog.vbl-featured { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.vardo-blog { --vbl-gap: 12px; }
	.vardo-blog.vbl-grid { --vbl-cols: 1; }
	/* phone: one card at a time, centred between the arrows (16 px from the card); the gap is wider than the side room,
	   so the next card does not peek in */
	.vardo-blog.vbl-carousel { --vbl-cols: 1; --vbl-gap: 58px; --vbl-pad-l: 54px; --vbl-pad-r: 54px; }
	.vardo-blog.vbl-carousel .vbl-row { gap: 0; }
	.vardo-blog.vbl-carousel .vbl-arrow {
		position: absolute;
		top: 50%;
		z-index: 2;
		width: 36px;
		height: 36px;
		margin-top: -18px;
		background: rgba(255, 255, 255, .94);
		box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
	}
	.vardo-blog.vbl-carousel .vbl-prev { left: 2px; }
	.vardo-blog.vbl-carousel .vbl-next { right: 2px; }
	.vardo-blog.vbl-carousel .vbl-arrow:disabled { opacity: 0; pointer-events: none; }
	.vardo-blog.vbl-featured > .vbl-card .vbl-title { font-size: 17px; }
	.vardo-blog .vbl-item { padding: 8px; gap: 12px; }
	.vardo-blog .vbl-item .vbl-pic { --vbl-row-img: 104px; }
	.vardo-blog .vbl-item .vbl-title { font-size: 14px; }
	/* the bar: the search on top at full width, the chips one strip to swipe */
	.vbl-wrap .vbl-tools { flex-direction: column-reverse; align-items: stretch; gap: 12px; margin-bottom: 16px; }
	.vbl-wrap .vbl-search { flex: 0 0 auto; width: 100%; }
	.vbl-wrap .vbl-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
	.vbl-wrap .vbl-chips::-webkit-scrollbar { display: none; }
	.vbl-wrap .vbl-all-row { margin-top: 20px; --vbl-all-grow: 1; }
}
