/* ======================================================================
   FORTUNE HOME — BLOG SLIDER CARDS
   Layout: featured image, then title, 3-line description, Read More.
   Nothing is overlaid on the image.
   ====================================================================== */

.fhs-blog-carousel {
	position: relative;
	width: 100%;
}

.fhs-blog-carousel .swiper {
	width: 100%;
	padding-bottom: 4px;
}

/* ---- No-JS fallback ------------------------------------------------
   Until the script adds .is-ready, the slides lay out as a plain grid.
   If Swiper never loads, this is what the visitor sees — the posts are
   already in the HTML, so the section is never empty. ---------------- */

.fhs-blog-carousel:not(.is-ready) .swiper {
	overflow: visible;
}

.fhs-blog-carousel:not(.is-ready) .swiper-wrapper {
	display: grid;
	grid-template-columns: repeat(var(--fhs-blog-cols, 4), minmax(0, 1fr));
	gap: 24px;
	transform: none !important;
}

.fhs-blog-carousel:not(.is-ready) .swiper-slide {
	width: auto !important;
	margin: 0 !important;
}

.fhs-blog-carousel:not(.is-ready) .fhs-nav {
	display: none;
}

@media (max-width: 1200px) {
	.fhs-blog-carousel:not(.is-ready) .swiper-wrapper {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.fhs-blog-carousel:not(.is-ready) .swiper-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

@media (max-width: 680px) {
	.fhs-blog-carousel:not(.is-ready) .swiper-wrapper {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
}

/* ---- Swiper active ---- */

.fhs-blog-carousel.is-ready .swiper {
	overflow: hidden;
}

/* Slides stretch so every card in view matches the tallest one. */
.fhs-blog-carousel .swiper-wrapper {
	align-items: stretch;
}

.fhs-blog-carousel .swiper-slide {
	height: auto;
	display: flex;
}

/* ---------------------------------------------------------------- card */

.fhs-blog-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--fh-card, #fff);
	border: 1px solid var(--fh-line, #E8E6E1);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.fhs-blog-card:hover {
	border-color: var(--fh-gold, #B8922D);
	box-shadow: 0 16px 38px rgba(31, 36, 48, .13);
	transform: translateY(-4px);
}

/* ---------------------------------------------------------------- image */

.fhs-blog-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--fh-gold-soft, #FEF9E7);
	flex-shrink: 0;
}

.fhs-blog-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.fhs-blog-card:hover .fhs-blog-img {
	transform: scale(1.05);
}

.fhs-blog-img-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fh-gold, #B8922D);
	opacity: .3;
}

.fhs-blog-img-empty svg {
	width: 40px;
	height: 40px;
}

/* ---------------------------------------------------------------- body */

.fhs-blog-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px 18px 18px;
}

.fhs-blog-chip {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 5px 11px;
	margin-bottom: 11px;
	border-radius: 999px;
	background: var(--fh-gold-soft, #FEF9E7);
	color: var(--fh-gold-dark, #9A7826);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.fhs-blog-title {
	margin: 0 0 9px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--fh-ink, #1F2430);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fhs-blog-title a {
	color: inherit;
	text-decoration: none;
	transition: color .26s ease;
}

.fhs-blog-card:hover .fhs-blog-title a {
	color: var(--fh-gold, #B8922D);
}

/* Description — exactly three lines, then ellipsis. */
.fhs-blog-excerpt {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--fh-muted, #6B7280);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(3 * 1.65em);
}

/* ---------------------------------------------------------------- button */

.fhs-blog-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	align-self: flex-start;
	margin-top: auto;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--fh-gold, #B8922D);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background .26s ease, gap .26s ease, box-shadow .26s ease;
}

.fhs-blog-btn svg {
	width: 15px;
	height: 15px;
}

.fhs-blog-btn:hover,
.fhs-blog-btn:focus-visible {
	background: var(--fh-gold-dark, #9A7826);
	color: #fff;
	gap: 11px;
	box-shadow: 0 6px 16px rgba(184, 146, 45, .3);
}

/* ---------------------------------------------------------------- message */

.fhs-blog-msg {
	width: 100%;
	box-sizing: border-box;
	padding: 44px 20px;
	text-align: center;
	border: 1px dashed var(--fh-gold-line, rgba(184, 146, 45, .28));
	border-radius: 14px;
	background: var(--fh-gold-soft, #FEF9E7);
	color: var(--fh-muted, #6B7280);
	font-size: 14px;
}

/* ---------------------------------------------------------------- nav */

.fhs-blog-carousel .fhs-nav {
	display: none;
}

.fhs-blog-carousel.is-ready.has-nav .fhs-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 26px;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 680px) {
	.fhs-blog-body {
		padding: 17px 15px 15px;
	}

	.fhs-blog-title {
		font-size: 16px;
	}

	.fhs-blog-excerpt {
		font-size: 13.5px;
		margin-bottom: 15px;
	}

	.fhs-blog-btn {
		padding: 10px 20px;
	}

	.fhs-blog-card:hover {
		transform: none;
	}
}

/* ---------------------------------------------------------------- dark */

@media (prefers-color-scheme: dark) {
	.fhs-blog-card {
		background: #16181D;
		border-color: #2C2F36;
	}

	.fhs-blog-title {
		color: #F3F4F6;
	}

	.fhs-blog-excerpt {
		color: #A8ADB8;
	}

	.fhs-blog-chip {
		background: rgba(184, 146, 45, .16);
		color: #D8B653;
	}

}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
	.fhs-blog-card,
	.fhs-blog-img,
	.fhs-blog-title a,
	.fhs-blog-btn {
		transition: none !important;
	}

	.fhs-blog-card:hover {
		transform: none;
	}

	.fhs-blog-card:hover .fhs-blog-img {
		transform: none;
	}

}
