/* Home page (Tamfis Magazine design): hero slider with side cards and latest-stories grid */
:root { --tamfis-primary: #ab052d; --tamfis-card: #ffffff; --tamfis-border: #dddcdc; --tamfis-title: #121213; --tamfis-text: #616c74; }
.fvh-home { background: #ffffff; }
.fvh-section { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.fvh-section h2 { font-size: 1.5rem; font-weight: 800; margin: 36px 0 18px; color: #121213; border-left: 4px solid var(--tamfis-primary); padding-left: 10px; }
.fvh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0 0 40px; }
.fvh-card { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--tamfis-border); border-radius: 6px; overflow: hidden; text-decoration: none; color: #121213; }
.fvh-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #7f7f7f; }
.fvh-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.fvh-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin: 0; }
.fvh-card-meta { font-size: .8rem; color: #616c74; }
.fvh-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.fvh-cats a { display: inline-block; padding: 8px 14px; border: 1px solid var(--tamfis-border); border-radius: 999px; color: #121213; text-decoration: none; font-weight: 600; font-size: .9rem; }
.fvh-cats a:hover { background: var(--tamfis-primary); color: #ffffff; border-color: var(--tamfis-primary); }
@media (max-width: 899px) { .fvh-grid { grid-template-columns: 1fr; } }

/* Homepage hero: slider in the centre, two stacked cards on each side */
.fv-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
	gap: 20px;
	align-items: stretch;
	max-width: 1240px;
	margin: 24px auto 8px;
	padding: 0 16px;
}

.fv-hero-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.fv-hero-card {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-height: 210px;
	border-radius: 6px;
	overflow: hidden;
	background: #7f7f7f center / cover no-repeat;
	color: #ffffff;
	text-decoration: none;
}

.fv-hero-card::after,
.fv-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .85) 100%);
}

.fv-hero-card-inner {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fv-hero-cat {
	align-self: flex-start;
	background: var(--tamfis-primary);
	color: #ffffff;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 2px;
}

.fv-hero-title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
}

.fv-hero-date {
	font-size: .75rem;
	color: rgba(255, 255, 255, .8);
}

.fv-hero-center {
	min-width: 0;
}

.fv-hero-slider {
	height: 100%;
	min-height: 460px;
	border-radius: 6px;
	overflow: hidden;
	background: #111111;
}

.fv-slide {
	position: relative;
	display: block;
	height: 100%;
	min-height: 460px;
	color: #ffffff;
	text-decoration: none;
}

.fv-slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fv-slide-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 28px 32px 52px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fv-slide-title {
	font-size: clamp(1.4rem, 2.6vw, 2.1rem);
	font-weight: 800;
	line-height: 1.2;
	color: #ffffff;
}

.fv-hero-slider .swiper-pagination { bottom: 16px; }

.fv-hero-slider .swiper-pagination-bullet {
	background: #ffffff;
	opacity: .6;
}

.fv-hero-slider .swiper-pagination-bullet-active {
	background: var(--tamfis-primary);
	opacity: 1;
}

.fv-hero-slider .swiper-button-next,
.fv-hero-slider .swiper-button-prev {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	color: #ffffff;
}

.fv-hero-slider .swiper-button-next::after,
.fv-hero-slider .swiper-button-prev::after {
	font-size: 16px;
}

@media (max-width: 899px) {
	.fv-hero {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.fv-hero-center { order: -1; }
	.fv-hero-slider,
	.fv-slide { min-height: 340px; }
	.fv-hero-side {
		flex-direction: row;
		gap: 12px;
	}
	.fv-hero-side .fv-hero-card { min-height: 170px; }
	.fv-slide-text { padding: 20px 20px 46px; }
}

@media (min-width: 900px) {
	.fv-hero-slider,
	.fv-slide { min-height: 580px; }
	.fv-hero-card { min-height: 270px; }
}

@media (min-width: 900px) {
	.fv-hero {
		width: 100vw;
		max-width: none;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		margin-top: 20px;
		padding: 0 clamp(16px, 2.2vw, 40px);
		grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1fr);
	}
	.fv-hero-slider,
	.fv-slide { min-height: 680px; }
	.fv-hero-card { min-height: 330px; }
}

@media (max-width: 899px) {
	.fv-hero-center { height: auto; }
	.fv-hero-slider { height: 340px; min-height: 0; }
	.fv-slide { height: 340px; min-height: 0; }
	.fv-hero-slider .swiper-pagination { bottom: 12px; }
}

/* The slider and its centre column are positioned containers, so dots and arrows sit on the slider */
.fv-hero-center,
.fv-hero-slider { position: relative; }

/* Full-width hero: padding stays inside the viewport width */
.fv-hero { box-sizing: border-box; max-width: 100vw; }
