/* [geno-blog] shortcode styles */

/*
 * Force Century Gothic on every element inside the shortcode.
 * Theme stylesheets commonly target h1-h6, p, input, button, a by element
 * name with enough specificity to beat an inherited font — so we set it
 * explicitly on every selector rather than relying on inheritance.
 */
.geno-blog-wrap,
.geno-blog-wrap *,
.geno-blog-wrap *::before,
.geno-blog-wrap *::after {
	font-family: 'Century Gothic', Helvetica, Arial, Lucida, sans-serif !important;
}

.geno-blog-wrap {
	width: 100%;
}

/* -----------------------------------------------------------------------
   Search bar
----------------------------------------------------------------------- */
.geno-blog-search-bar {
	margin-bottom: 36px;
}

.geno-blog-search-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 520px;
	padding: 13px 16px;
	border: 1.5px solid #e0dbd6;
	border-radius: 10px;
	background: #fff;
	transition: border-color 0.18s;
}

.geno-blog-search-wrap:focus-within {
	border-color: #8C1D2C;
}

.geno-blog-search-icon {
	display: flex;
	align-items: center;
	color: #aaa;
	flex-shrink: 0;
	transition: color 0.18s;
}

.geno-blog-search-wrap:focus-within .geno-blog-search-icon {
	color: #8C1D2C;
}

.geno-blog-search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 15px;
	color: #1a1a1a;
	-webkit-appearance: none;
	appearance: none;
}

.geno-blog-search-input::placeholder {
	color: #bbb;
}

.geno-blog-search-input::-webkit-search-cancel-button,
.geno-blog-search-input::-webkit-search-decoration {
	-webkit-appearance: none;
}

.geno-blog-search-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 50%;
	background: #f0ece8;
	color: #888;
	font-size: 12px;
	cursor: pointer;
	flex-shrink: 0;
	padding: 0;
	transition: background 0.15s, color 0.15s;
}

.geno-blog-search-clear[hidden] {
	display: none !important;
}

.geno-blog-search-clear:hover {
	background: #8C1D2C;
	color: #fff;
}

/* -----------------------------------------------------------------------
   Post grid
----------------------------------------------------------------------- */
.geno-blog-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 32px 24px;
}

/* -----------------------------------------------------------------------
   Post card
----------------------------------------------------------------------- */
.geno-blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #ede8e3;
	transition: box-shadow 0.22s, transform 0.22s;
}

.geno-blog-card:hover {
	box-shadow: 0 8px 32px rgba( 0, 0, 0, 0.09 );
	transform: translateY( -3px );
}

/* Image */
.geno-blog-image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3ede8;
	flex-shrink: 0;
}

.geno-blog-image--empty {
	display: flex;
	align-items: center;
	justify-content: center;
}

.geno-blog-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.32s ease;
}

.geno-blog-card:hover .geno-blog-img {
	transform: scale( 1.04 );
}

/* Card body */
.geno-blog-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px;
	gap: 10px;
}

/* Category */
.geno-blog-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.geno-blog-cat {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: #f3ede8;
	color: #8C1D2C;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.18s, color 0.18s;
}


/* Title */
.geno-blog-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: #1a1a1a;
}

.geno-blog-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s;
}

.geno-blog-title a:hover {
	color: #8C1D2C;
}

/* Excerpt */
.geno-blog-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	flex: 1;
}

/* Footer row */
.geno-blog-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 4px;
	border-top: 1px solid #f0ece8;
}

.geno-blog-date {
	font-size: 12px;
	color: #aaa;
}

.geno-blog-read-more {
	font-size: 13px;
	font-weight: 600;
	color: #8C1D2C;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.18s;
}

.geno-blog-read-more:hover {
	opacity: 0.75;
}

/* No posts message */
.geno-no-posts {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 0;
	color: #888;
	font-size: 15px;
}

/* -----------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------- */
@media ( max-width: 980px ) {
	.geno-blog-grid {
		grid-template-columns: repeat( 2, 1fr );
		gap: 24px 20px;
	}
}

@media ( max-width: 640px ) {
	.geno-blog-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.geno-blog-search-wrap {
		max-width: 100%;
	}

	.geno-blog-body {
		padding: 16px;
	}
}
