/* --------------------------------------------------------------------------
   ACF Blocks – shared layout (matches --viotia-content-width)
   -------------------------------------------------------------------------- */

:root {
	--viotia-block-title-height: clamp( 2rem, 3vw, 2.75rem );
}

.site-main--homepage {
	padding: 32px 0 48px;
}

.entry-content--blocks {
	width: 100%;
	max-width: none;
}

.entry-content--blocks > .viotia247-block,
.entry-content--blocks > [class*="wp-block-acf-"] {
	width: var( --viotia-content-width );
	max-width: var( --viotia-container );
	margin-left: auto;
	margin-right: auto;
}

.entry-content--blocks > .viotia247-block + .viotia247-block,
.entry-content--blocks > [class*="wp-block-acf-"] + [class*="wp-block-acf-"],
.entry-content--blocks > [class*="wp-block-acf-"] + .viotia247-block {
	margin-top: 32px;
}

/* Blocks with section background – full viewport bleed via pseudo-element */
.viotia247-block--full-bleed {
	position: relative;
	z-index: 0;
	border-radius: 0;
	background: transparent !important;
	box-sizing: border-box;
}

.viotia247-block--full-bleed::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	background: var( --viotia-block-bg, var( --viotia247-fpa-bg, #ffffff ) );
}

.viotia247-stories.viotia247-block--full-bleed {
	--viotia-block-bg: #f9f7f2;
}

.viotia247-four-posts.viotia247-block--full-bleed {
	--viotia-block-bg: #ffffff;
}

/* Block section titles – same scale as Stories Grid */
.viotia247-stories__title,
.viotia247-four-posts__title,
.viotia247-featured-posts-ad__title {
	font-size: var( --viotia-block-title-height );
	font-weight: 700;
	line-height: 1;
}

.viotia247-block__title-icon {
	display: block;
	width: auto;
	height: var( --viotia-block-title-height );
	max-width: min( 320px, 70vw );
	object-fit: contain;
	object-position: left center;
}

.viotia247-stories__title-link,
.viotia247-four-posts__title-link {
	display: inline-flex;
	align-items: flex-end;
	line-height: 1;
	text-decoration: none;
}

.viotia247-block__title--has-icon {
	line-height: 0;
}

.viotia247-featured-posts-ad__title-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

/* Section title trailing dot – bottom-aligned with heading text */
.viotia247-stories__title-text,
.viotia247-four-posts__title-text {
	display: inline-flex;
	align-items: flex-end;
	gap: 4px;
	line-height: 1;
}

.viotia247-stories__title-text::after,
.viotia247-four-posts__title-text::after {
	content: "";
	display: block;
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 999px;
}

.viotia247-stories__title-text::after {
	background: var( --viotia247-stories-accent, #f97316 );
}

.viotia247-four-posts__title-text::after {
	background: var( --viotia247-four-posts-accent, #f97316 );
}

/* Block ads – sticky on desktop when shorter than scroll area (see block-sticky-ads.js). */
@media screen and ( min-width: 992px ) {
	:root {
		--viotia-ad-sticky-top: 16px;
	}

	[data-viotia-sticky-ad-container] {
		align-items: stretch;
	}

	.viotia247-hero-row__ad,
	.viotia247-featured-posts-ad__ad {
		align-self: stretch;
	}

	.viotia247-hero-row__ad.viotia247-block-ad--sticky-host {
		justify-content: flex-start;
	}

	[data-viotia-sticky-ad].viotia247-block-ad--sticky {
		position: sticky;
		top: var( --viotia-ad-sticky-top );
		z-index: 2;
	}
}

@media screen and ( max-width: 767px ) {
	.site-main--homepage {
		padding: 20px 0 32px;
	}

	:root {
		--viotia-block-title-height: clamp( 1.5rem, 6vw, 2rem );
	}

	.viotia247-stories__title,
	.viotia247-four-posts__title,
	.viotia247-featured-posts-ad__title {
		font-size: var( --viotia-block-title-height );
	}

	.entry-content--blocks > .viotia247-block + .viotia247-block,
	.entry-content--blocks > [class*="wp-block-acf-"] + [class*="wp-block-acf-"],
	.entry-content--blocks > [class*="wp-block-acf-"] + .viotia247-block {
		margin-top: 24px;
	}
}

.viotia247-block--placeholder,
.viotia247-hero-row__ad-placeholder {
	padding: 24px;
	border: 1px dashed rgba( 15, 23, 42, 0.25 );
	border-radius: 10px;
	background: #f8fafc;
	color: #475569;
	text-align: center;
}

/* Post thumbnail hover – subtle slow zoom (ACF blocks) */
@media ( prefers-reduced-motion: no-preference ) {
	.viotia247-stories__featured-image:not( .viotia247-stories__featured-image--placeholder ),
	.viotia247-stories__card-image:not( .viotia247-stories__card-image--placeholder ),
	.viotia247-stories__compact-image:not( .viotia247-stories__compact-image--placeholder ),
	.viotia247-four-posts__image:not( .viotia247-four-posts__image--placeholder ),
	.viotia247-featured-posts-ad__image:not( .viotia247-featured-posts-ad__image--placeholder ),
	.viotia247-carousel__image:not( .viotia247-carousel__image--placeholder ) {
		transition: transform 0.7s ease;
	}

	.viotia247-stories__featured-media:hover .viotia247-stories__featured-image:not( .viotia247-stories__featured-image--placeholder ),
	.viotia247-stories__card-media:hover .viotia247-stories__card-image:not( .viotia247-stories__card-image--placeholder ),
	.viotia247-stories__compact-media:hover .viotia247-stories__compact-image:not( .viotia247-stories__compact-image--placeholder ),
	.viotia247-four-posts__media:hover .viotia247-four-posts__image:not( .viotia247-four-posts__image--placeholder ),
	.viotia247-featured-posts-ad__media:hover .viotia247-featured-posts-ad__image:not( .viotia247-featured-posts-ad__image--placeholder ),
	.viotia247-carousel__link:hover .viotia247-carousel__image:not( .viotia247-carousel__image--placeholder ) {
		transform: scale( 1.05 );
	}
}

/* --------------------------------------------------------------------------
   Hero row: 70% carousel + 30% ad (90vh)
   -------------------------------------------------------------------------- */

.viotia247-hero-row {
	height: 80vh;
	min-height: 80vh;
	height: 80dvh;
	min-height: 80dvh;
}

.viotia247-hero-row__layout {
	display: grid;
	grid-template-columns: minmax( 0, 7fr ) minmax( 0, 3fr );
	gap: 40px;
	align-items: stretch;
	height: 100%;
	min-height: 0;
}

.viotia247-hero-row__carousel,
.viotia247-hero-row__ad {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	min-height: 0;
}

.viotia247-hero-row__ad {
	justify-content: center;
	align-items: center;
}

.viotia247-hero-row__ad-inner,
.viotia247-hero-row__ad-placeholder {
	width: 100%;
	max-width: 100%;
}

.viotia247-hero-row__ad-inner {
	display: flex;
	align-items: center;
	justify-content: center;
}

.viotia247-hero-row__ad-inner > * {
	max-width: 100%;
}

.viotia247-hero-row__ad-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
}

/* --------------------------------------------------------------------------
   Carousel
   -------------------------------------------------------------------------- */

.viotia247-carousel {
	position: relative;
	overflow: hidden;
	flex: 1;
	height: 100%;
	min-height: 0;
	border-radius: 10px;
	background: #000b2b;
	isolation: isolate;
}

.viotia247-carousel__viewport {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.viotia247-carousel__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.viotia247-carousel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0.45s ease;
}

.viotia247-carousel__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.viotia247-carousel__link {
	display: block;
	width: 100%;
	height: 100%;
	color: #fff;
	text-decoration: none;
}

.viotia247-carousel__media {
	position: absolute;
	inset: 0;
}

.viotia247-carousel__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.viotia247-carousel__image--placeholder {
	background: linear-gradient( 135deg, #001540 0%, #000b2b 100% );
}

.viotia247-carousel__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba( 0, 11, 43, 0 ) 0%,
		rgba( 0, 11, 43, 0.04 ) 33%,
		rgba( 0, 11, 43, 0.52 ) 68%,
		rgba( 0, 11, 43, 0.97 ) 100%
	);
}

.viotia247-carousel__footer {
	position: absolute;
	right: 24px;
	bottom: 72px;
	left: 24px;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	pointer-events: none;
}

.viotia247-carousel__content {
	max-width: calc( 100% - 120px );
	pointer-events: auto;
}

.viotia247-carousel__category {
	display: inline-block;
	margin-bottom: 12px;
	padding: 6px 12px;
	border-radius: 4px;
	background: rgba( 0, 11, 43, 0.88 );
	color: #fff;
	font-family: var( --viotia-font );
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
}

.viotia247-carousel__title {
	margin: 0;
	font-family: var( --viotia-font );
	font-size: clamp( 1.25rem, 2.2vw, 2rem );
	font-weight: 700;
	line-height: 1.25;
}

.viotia247-carousel__title a,
.viotia247-carousel__title a:visited,
.viotia247-carousel__title a:hover,
.viotia247-carousel__title a:focus,
.viotia247-carousel__title a:active {
	color: #fff;
	text-decoration: none;
}

.viotia247-carousel__title a:hover,
.viotia247-carousel__title a:focus {
	opacity: 0.88;
}

.viotia247-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transform: translateY( -50% );
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.viotia247-carousel__arrow:hover,
.viotia247-carousel__arrow:focus {
	opacity: 0.85;
	background: rgba( 0, 11, 43, 0.28 );
	outline: none;
}

.viotia247-carousel__arrow svg {
	display: block;
	filter: drop-shadow( 0 1px 2px rgba( 0, 0, 0, 0.45 ) );
}

.viotia247-carousel__arrow--prev {
	left: 16px;
}

.viotia247-carousel__arrow--next {
	right: 16px;
}

.viotia247-carousel__dots {
	position: absolute;
	right: 24px;
	bottom: 28px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
}

.viotia247-carousel__dot {
	width: 28px;
	height: 3px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: rgba( 255, 255, 255, 0.4 );
	cursor: pointer;
	transition: background-color 0.2s ease, width 0.2s ease, opacity 0.2s ease;
}

.viotia247-carousel__dot.is-active {
	width: 40px;
	background: #fff;
}

@media screen and ( max-width: 991px ) {
	.viotia247-hero-row {
		height: auto;
		min-height: 0;
	}

	.viotia247-hero-row__layout {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		gap: 28px;
		min-height: 0;
	}

	.viotia247-hero-row__carousel {
		min-height: 52vh;
	}

	.viotia247-carousel {
		min-height: 52vh;
	}

	.viotia247-hero-row__ad {
		flex: 0 0 auto;
		width: 100%;
		min-height: 0;
	}

	.viotia247-carousel__content {
		max-width: calc( 100% - 80px );
	}

	.viotia247-carousel__footer {
		bottom: 56px;
	}

	.viotia247-carousel__arrow {
		width: 40px;
		height: 40px;
	}

	.viotia247-carousel__arrow svg {
		width: 22px;
		height: 22px;
	}

	.viotia247-carousel__arrow--prev {
		left: 10px;
	}

	.viotia247-carousel__arrow--next {
		right: 10px;
	}

	.viotia247-carousel__dots {
		right: 16px;
		bottom: 18px;
	}
}

@media screen and ( max-width: 767px ) {
	.viotia247-hero-row__layout {
		gap: 20px;
	}

	.viotia247-hero-row__carousel,
	.viotia247-carousel {
		min-height: 300px;
	}

	.viotia247-carousel__footer {
		right: 16px;
		bottom: 48px;
		left: 16px;
		gap: 16px;
	}

	.viotia247-carousel__content {
		max-width: calc( 100% - 64px );
	}

	.viotia247-carousel__category {
		margin-bottom: 8px;
		padding: 5px 10px;
		font-size: 0.625rem;
	}

	.viotia247-carousel__title {
		font-size: 1.125rem;
	}

	.viotia247-carousel__arrow {
		width: 36px;
		height: 36px;
	}

	.viotia247-carousel__dots {
		right: 12px;
		bottom: 14px;
		gap: 8px;
	}

	.viotia247-carousel__dot {
		width: 22px;
	}

	.viotia247-carousel__dot.is-active {
		width: 32px;
	}

	.viotia247-hero-row__ad-placeholder {
		min-height: 120px;
	}
}

/* --------------------------------------------------------------------------
   Stories Grid (1 + 3 + 3)
   -------------------------------------------------------------------------- */

.viotia247-stories {
	padding-block: 40px;
	background: #f9f7f2;
	border-radius: 0;
}

.viotia247-stories__header {
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid #111;
}

.viotia247-stories__title {
	display: flex;
	align-items: flex-end;
	margin: 0;
	font-family: var( --viotia-font );
	color: #111;
}

.viotia247-stories__title-link,
.viotia247-stories__title-link:visited,
.viotia247-stories__title-link:hover,
.viotia247-stories__title-link:focus,
.viotia247-stories__title-link:active {
	color: #111;
	text-decoration: none;
}

.viotia247-stories__featured {
	display: grid;
	grid-template-columns: minmax( 0, 1.15fr ) minmax( 0, 0.85fr );
	gap: 28px;
	margin-bottom: 36px;
}

.viotia247-stories__featured-media {
	display: block;
	color: inherit;
	text-decoration: none;
}

.viotia247-stories__featured-image-wrap {
	overflow: hidden;
	background: #e7e5e4;
	min-height: 320px;
}

.viotia247-stories__featured-image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
}

.viotia247-stories__featured-image--placeholder {
	width: 100%;
	min-height: 320px;
	background: linear-gradient( 135deg, #d6d3d1 0%, #a8a29e 100% );
}

.viotia247-stories__featured-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.viotia247-stories__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	color: #6b7280;
	font-size: 0.8125rem;
}

.viotia247-stories__comments {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var( --viotia247-stories-accent, #f97316 );
	font-weight: 600;
	background: transparent;
}

.viotia247-stories__comments svg {
	flex-shrink: 0;
	background: transparent;
}

.viotia247-stories__featured-title {
	margin: 0 0 16px;
	font-family: var( --viotia-font );
	font-size: clamp( 1.5rem, 2.2vw, 2.125rem );
	font-weight: 800;
	line-height: 1.15;
}

.viotia247-stories__featured-title a,
.viotia247-stories__featured-title a:visited,
.viotia247-stories__featured-title a:hover,
.viotia247-stories__featured-title a:focus,
.viotia247-stories__featured-title a:active,
.viotia247-stories__card-title a,
.viotia247-stories__card-title a:visited,
.viotia247-stories__card-title a:hover,
.viotia247-stories__card-title a:focus,
.viotia247-stories__card-title a:active,
.viotia247-stories__compact-title a,
.viotia247-stories__compact-title a:visited,
.viotia247-stories__compact-title a:hover,
.viotia247-stories__compact-title a:focus,
.viotia247-stories__compact-title a:active {
	color: #111;
	text-decoration: none;
}

.viotia247-stories__featured-excerpt {
	color: #374151;
	font-size: 0.9375rem;
	line-height: 1.65;
}

.viotia247-stories__row {
	display: grid;
	gap: 28px;
}

.viotia247-stories__row--cards {
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	margin-bottom: 28px;
}

.viotia247-stories__row--compact {
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	padding-top: 28px;
	border-top: 1px solid #d6d3d1;
}

.viotia247-stories__card-media {
	display: block;
	overflow: hidden;
	margin-bottom: 14px;
	aspect-ratio: 16 / 10;
	background: #e7e5e4;
}

.viotia247-stories__card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.viotia247-stories__card-image--placeholder,
.viotia247-stories__compact-image--placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, #d6d3d1 0%, #a8a29e 100% );
}

.viotia247-stories__card-title {
	margin: 0;
	font-family: var( --viotia-font );
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.35;
}

.viotia247-stories__compact {
	display: grid;
	grid-template-columns: 92px minmax( 0, 1fr );
	gap: 14px;
	align-items: start;
	padding-bottom: 18px;
	border-bottom: 1px solid #e7e5e4;
}

.viotia247-stories__compact-media {
	display: block;
	overflow: hidden;
	width: 92px;
	height: 92px;
	background: #e7e5e4;
}

.viotia247-stories__compact-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.viotia247-stories__compact-title {
	margin: 0;
	font-family: var( --viotia-font );
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.35;
}

.viotia247-stories__compact .viotia247-stories__meta {
	margin-bottom: 8px;
	font-size: 0.75rem;
}

@media screen and ( max-width: 1199px ) {
	.viotia247-stories__row--cards,
	.viotia247-stories__row--compact {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media screen and ( max-width: 991px ) {
	.viotia247-stories {
		padding-block: 32px;
	}

	.viotia247-stories__featured {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-bottom: 28px;
	}

	.viotia247-stories__row--cards,
	.viotia247-stories__row--compact {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.viotia247-stories__row--compact {
		padding-top: 24px;
	}

	.viotia247-stories__compact {
		border-bottom: 1px solid #e7e5e4;
	}

	.viotia247-stories__compact:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}
}

@media screen and ( max-width: 767px ) {
	.viotia247-stories {
		padding-block: 28px;
	}

	.viotia247-stories__header {
		margin-bottom: 20px;
		padding-bottom: 12px;
	}

	.viotia247-stories__featured-image-wrap,
	.viotia247-stories__featured-image,
	.viotia247-stories__featured-image--placeholder {
		min-height: 220px;
	}

	.viotia247-stories__featured-title {
		font-size: clamp( 1.25rem, 5vw, 1.625rem );
	}

	.viotia247-stories__meta {
		flex-wrap: wrap;
		gap: 8px;
	}

	.viotia247-stories__compact {
		grid-template-columns: 72px minmax( 0, 1fr );
		gap: 12px;
	}

	.viotia247-stories__compact-media {
		width: 72px;
		height: 72px;
	}
}

/* --------------------------------------------------------------------------
   4 posts grid
   -------------------------------------------------------------------------- */

.viotia247-four-posts {
	padding-block: 40px;
	background: #fff;
	border-radius: 0;
}

.viotia247-four-posts__header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 28px;
}

.viotia247-four-posts__title {
	flex-shrink: 0;
	margin: 0;
	font-family: var( --viotia-font );
	color: #111;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.viotia247-four-posts__title-link,
.viotia247-four-posts__title-link:visited,
.viotia247-four-posts__title-link:hover,
.viotia247-four-posts__title-link:focus,
.viotia247-four-posts__title-link:active {
	color: #111;
	text-decoration: none;
}

.viotia247-four-posts__header-line {
	flex: 1;
	height: 1px;
	background: #d1d5db;
}

.viotia247-four-posts__grid {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 24px;
}

.viotia247-four-posts__item {
	display: flex;
	flex-direction: column;
	padding-bottom: 18px;
	border-bottom: 1px solid #e5e7eb;
}

.viotia247-four-posts__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	margin-bottom: 14px;
	color: inherit;
	text-decoration: none;
	background: #e7e5e4;
}

.viotia247-four-posts__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to left,
		rgba( 0, 0, 0, 0.42 ) 0%,
		rgba( 0, 0, 0, 0.18 ) 38%,
		rgba( 0, 0, 0, 0 ) 72%
	);
	pointer-events: none;
}

.viotia247-four-posts__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.viotia247-four-posts__image--placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, #d6d3d1 0%, #a8a29e 100% );
}

.viotia247-four-posts__rank {
	position: absolute;
	right: 10px;
	top: 50%;
	z-index: 2;
	transform: translateY( -50% );
	font-family: var( --viotia-font );
	font-size: clamp( 3.5rem, 6vw, 5.5rem );
	font-weight: 800;
	line-height: 1;
	color: #fff;
	text-shadow: 0 2px 16px rgba( 0, 0, 0, 0.35 );
	pointer-events: none;
}

.viotia247-four-posts__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
}

.viotia247-four-posts .viotia247-stories__comments {
	color: var( --viotia247-four-posts-accent, #f97316 );
}

.viotia247-four-posts__item-title {
	margin: 0;
	font-family: var( --viotia-font );
	font-size: clamp( 0.9375rem, 1.2vw, 1.0625rem );
	font-weight: 800;
	line-height: 1.35;
}

.viotia247-four-posts__item-title a,
.viotia247-four-posts__item-title a:visited,
.viotia247-four-posts__item-title a:hover,
.viotia247-four-posts__item-title a:focus,
.viotia247-four-posts__item-title a:active {
	color: #111;
	text-decoration: none;
}

@media screen and ( max-width: 1199px ) {
	.viotia247-four-posts {
		padding-block: 32px;
	}

	.viotia247-four-posts__grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 20px;
	}
}

@media screen and ( max-width: 767px ) {
	.viotia247-four-posts {
		padding-block: 28px;
	}

	.viotia247-four-posts__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 20px;
	}

	.viotia247-four-posts__header-line {
		width: 100%;
	}

	.viotia247-four-posts__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.viotia247-four-posts__item {
		padding-bottom: 16px;
	}

	.viotia247-four-posts__item:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.viotia247-four-posts__rank {
		right: 8px;
		font-size: clamp( 2.75rem, 14vw, 4rem );
	}
}

/* --------------------------------------------------------------------------
   Ads block
   -------------------------------------------------------------------------- */

.viotia247-ads-block {
	padding-block: 32px;
	padding-inline: 0;
}

.viotia247-ads-block__inner,
.viotia247-ads-block__grid {
	display: flex;
	justify-content: center;
	width: 100%;
}

.viotia247-ads-block__grid {
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}

.viotia247-ads-block__item {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.viotia247-ads-block__item .viotia-ad-slot,
.viotia247-ads-block__item .viotia-ad,
.viotia247-ads-block__item .viotia-ad__link,
.viotia247-ads-block__item .viotia-ad__image {
	max-width: 100%;
	height: auto;
}

.viotia247-ads-block--single .viotia247-ads-block__item--leaderboard {
	width: 100%;
	max-width: 970px;
}

.viotia247-ads-block--quad .viotia247-ads-block__item--mpu {
	flex: 0 1 300px;
	width: 100%;
	max-width: 300px;
}

@media screen and ( max-width: 767px ) {
	.viotia247-ads-block__grid {
		gap: 16px;
	}

	.viotia247-ads-block--quad .viotia247-ads-block__item--mpu {
		flex: 0 1 calc( 50% - 8px );
		max-width: calc( 50% - 8px );
		min-width: 140px;
	}
}

@media screen and ( max-width: 479px ) {
	.viotia247-ads-block--quad .viotia247-ads-block__item--mpu {
		flex: 0 1 100%;
		max-width: 300px;
	}
}

/* --------------------------------------------------------------------------
   3 Posts + Ad
   -------------------------------------------------------------------------- */

.viotia247-featured-posts-ad {
	--viotia247-fpa-text: #fff;
	--viotia247-fpa-text-muted: rgba( 255, 255, 255, 0.82 );
	--viotia247-fpa-text-subtle: rgba( 255, 255, 255, 0.55 );
	--viotia247-fpa-text-faint: rgba( 255, 255, 255, 0.65 );
	--viotia247-fpa-border: rgba( 255, 255, 255, 0.12 );
	--viotia247-fpa-border-strong: rgba( 255, 255, 255, 0.25 );
	--viotia247-fpa-media-bg: rgba( 255, 255, 255, 0.08 );
	--viotia247-fpa-scrollbar: rgba( 255, 255, 255, 0.35 );
	--viotia247-fpa-placeholder-bg: linear-gradient( 135deg, #001540 0%, #000b2b 100% );
	padding-block: 32px;
	background: var( --viotia247-fpa-bg, var( --viotia-color-header, #000b2b ) );
	color: var( --viotia247-fpa-text );
	border-radius: 0;
}

.viotia247-featured-posts-ad.viotia247-block--full-bleed {
	background: transparent !important;
}

.viotia247-featured-posts-ad--text-black {
	--viotia247-fpa-text: #111;
	--viotia247-fpa-text-muted: rgba( 17, 17, 17, 0.78 );
	--viotia247-fpa-text-subtle: rgba( 17, 17, 17, 0.55 );
	--viotia247-fpa-text-faint: rgba( 17, 17, 17, 0.65 );
	--viotia247-fpa-border: rgba( 17, 17, 17, 0.12 );
	--viotia247-fpa-border-strong: rgba( 17, 17, 17, 0.25 );
	--viotia247-fpa-media-bg: rgba( 17, 17, 17, 0.08 );
	--viotia247-fpa-scrollbar: rgba( 17, 17, 17, 0.35 );
	--viotia247-fpa-placeholder-bg: linear-gradient( 135deg, #e5e7eb 0%, #f3f4f6 100% );
}

@media screen and ( min-width: 992px ) {
	.viotia247-featured-posts-ad {
		display: flex;
		flex-direction: column;
		height: 85vh;
		max-height: 85vh;
		height: 85dvh;
		max-height: 85dvh;
		padding-block: 24px;
		overflow: visible;
		box-sizing: border-box;
	}
}

.viotia247-featured-posts-ad__header {
	margin-bottom: 24px;
}

.viotia247-featured-posts-ad__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: var( --viotia-font );
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.viotia247-featured-posts-ad__title-bar {
	flex-shrink: 0;
	width: 4px;
	height: var( --viotia-block-title-height );
	background: var( --viotia247-fpa-accent, #c8102e );
}

.viotia247-featured-posts-ad__title-link,
.viotia247-featured-posts-ad__title-link:visited,
.viotia247-featured-posts-ad__title-link:hover,
.viotia247-featured-posts-ad__title-link:focus,
.viotia247-featured-posts-ad__title-link:active,
.viotia247-featured-posts-ad__featured-title a,
.viotia247-featured-posts-ad__featured-title a:visited,
.viotia247-featured-posts-ad__featured-title a:hover,
.viotia247-featured-posts-ad__featured-title a:focus,
.viotia247-featured-posts-ad__featured-title a:active,
.viotia247-featured-posts-ad__compact-title a,
.viotia247-featured-posts-ad__compact-title a:visited,
.viotia247-featured-posts-ad__compact-title a:hover,
.viotia247-featured-posts-ad__compact-title a:focus,
.viotia247-featured-posts-ad__compact-title a:active {
	color: var( --viotia247-fpa-text );
	text-decoration: none;
}

.viotia247-featured-posts-ad__layout {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 280px );
	gap: 24px;
	align-items: stretch;
}

@media screen and ( min-width: 992px ) {
	.viotia247-featured-posts-ad__header {
		flex-shrink: 0;
		margin-bottom: 16px;
	}

	.viotia247-featured-posts-ad__layout {
		flex: 1;
		min-height: 0;
		height: 100%;
		overflow: hidden;
	}

	.viotia247-featured-posts-ad__posts {
		height: 100%;
		min-height: 0;
		align-items: stretch;
	}

	.viotia247-featured-posts-ad__featured,
	.viotia247-featured-posts-ad__secondary {
		height: 100%;
		min-height: 0;
	}

	.viotia247-featured-posts-ad__featured {
		display: flex;
		flex-direction: column;
	}

	.viotia247-featured-posts-ad__secondary {
		gap: 12px;
	}

	.viotia247-featured-posts-ad__compact {
		flex: 1 1 0;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.viotia247-featured-posts-ad__media--featured {
		flex: 1 1 0;
		min-height: 0;
		height: auto;
		max-height: none;
		aspect-ratio: unset;
		margin-bottom: 10px;
		display: flex;
	}

	.viotia247-featured-posts-ad__media--featured .viotia247-featured-posts-ad__image,
	.viotia247-featured-posts-ad__media--featured .viotia247-featured-posts-ad__image--placeholder {
		flex: 1 1 auto;
		width: 100%;
		height: 100%;
		min-height: 0;
		object-fit: cover;
	}

	.viotia247-featured-posts-ad__media--compact {
		flex: 1 1 0;
		min-height: 0;
		aspect-ratio: auto;
		margin-bottom: 8px;
	}

	.viotia247-featured-posts-ad__featured-title {
		flex-shrink: 0;
		margin-bottom: 8px;
		font-size: clamp( 1.1875rem, 2.4vh, 1.75rem );
		line-height: 1.2;
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
	}

	.viotia247-featured-posts-ad__featured-excerpt {
		flex-shrink: 0;
		margin-bottom: 0;
		font-size: clamp( 0.8125rem, 1.2vh, 0.875rem );
		line-height: 1.45;
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.viotia247-featured-posts-ad__compact-title {
		flex-shrink: 0;
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		font-size: clamp( 0.875rem, 1.3vh, 1rem );
	}

	.viotia247-featured-posts-ad__ad {
		max-height: 100%;
		overflow: hidden;
	}

	.viotia247-featured-posts-ad__ad-inner,
	.viotia247-featured-posts-ad__ad-inner .viotia-ad,
	.viotia247-featured-posts-ad__ad-inner .viotia-ad__image {
		max-height: 100%;
	}

	.viotia247-featured-posts-ad__image--placeholder {
		min-height: 0;
	}

	.viotia247-featured-posts-ad__ad--news-feed {
		align-items: stretch;
		justify-content: flex-start;
	}

	.viotia247-featured-posts-ad__news-feed {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 300px;
		height: 100%;
		min-height: 0;
	}
}

.viotia247-featured-posts-ad__posts {
	display: grid;
	grid-template-columns: minmax( 0, 1.45fr ) minmax( 0, 1fr );
	gap: 20px;
	min-width: 0;
}

.viotia247-featured-posts-ad__media {
	display: block;
	overflow: hidden;
	line-height: 0;
	background: var( --viotia247-fpa-media-bg );
}

.viotia247-featured-posts-ad .viotia247-stories__meta {
	margin-bottom: 12px;
	color: var( --viotia247-fpa-text-subtle );
}

.viotia247-featured-posts-ad .viotia247-stories__comments {
	color: var( --viotia247-fpa-accent, #c8102e );
}

.viotia247-featured-posts-ad__compact .viotia247-stories__meta {
	margin-bottom: 8px;
	font-size: 0.75rem;
}

.viotia247-featured-posts-ad__media--featured {
	margin-bottom: 16px;
}

@media screen and ( max-width: 991px ) {
	.viotia247-featured-posts-ad__media--featured {
		aspect-ratio: 16 / 6.7;
	}
}

.viotia247-featured-posts-ad__media--compact {
	margin-bottom: 12px;
	aspect-ratio: 16 / 10;
}

.viotia247-featured-posts-ad__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.viotia247-featured-posts-ad__image--placeholder {
	width: 100%;
	height: 100%;
	min-height: 120px;
	background: var( --viotia247-fpa-placeholder-bg );
}

.viotia247-featured-posts-ad__featured-title {
	margin: 0 0 12px;
	font-family: var( --viotia-font );
	font-size: clamp( 1.125rem, 2vw, 1.625rem );
	font-weight: 800;
	line-height: 1.25;
}

.viotia247-featured-posts-ad__featured-excerpt {
	margin: 0;
	color: var( --viotia247-fpa-text-muted );
	font-size: 0.9375rem;
	line-height: 1.55;
}

.viotia247-featured-posts-ad__secondary {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.viotia247-featured-posts-ad__compact-title {
	margin: 0;
	font-family: var( --viotia-font );
	font-size: clamp( 0.9375rem, 1.4vw, 1.0625rem );
	font-weight: 800;
	line-height: 1.35;
}

.viotia247-featured-posts-ad__ad {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
}

.viotia247-featured-posts-ad__ad-inner,
.viotia247-featured-posts-ad__ad-placeholder {
	width: 100%;
	max-width: 300px;
}

.viotia247-featured-posts-ad__ad-inner {
	display: flex;
	justify-content: center;
	line-height: 0;
}

.viotia247-featured-posts-ad__ad-inner .viotia-ad-slot,
.viotia247-featured-posts-ad__ad-inner .viotia-ad,
.viotia247-featured-posts-ad__ad-inner .viotia-ad__image {
	max-width: 100%;
	height: auto;
}

.viotia247-featured-posts-ad__ad-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 250px;
	padding: 24px;
	border: 1px dashed var( --viotia247-fpa-border-strong );
	border-radius: 8px;
	color: var( --viotia247-fpa-text-faint );
	text-align: center;
}

.viotia247-featured-posts-ad__news-feed-header {
	padding-right: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var( --viotia247-fpa-border );
}

.viotia247-featured-posts-ad__news-feed-title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-family: var( --viotia-font );
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1.2;
	color: var( --viotia247-fpa-accent, #c8102e );
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.viotia247-featured-posts-ad__news-feed-title-arrow {
	font-size: 1.125em;
	line-height: 1;
	color: var( --viotia247-fpa-accent, #c8102e );
}

.viotia247-featured-posts-ad__news-feed-list {
	list-style: none;
	margin: 0;
	padding: 0 14px 0 0;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var( --viotia247-fpa-scrollbar ) transparent;
}

.viotia247-featured-posts-ad__news-feed-list::-webkit-scrollbar {
	width: 4px;
}

.viotia247-featured-posts-ad__news-feed-list::-webkit-scrollbar-thumb {
	background: var( --viotia247-fpa-scrollbar );
	border-radius: 999px;
}

.viotia247-featured-posts-ad__news-feed-item {
	margin: 0;
}

.viotia247-featured-posts-ad__news-feed-item a,
.viotia247-featured-posts-ad__news-feed-item a:visited,
.viotia247-featured-posts-ad__news-feed-item a:hover,
.viotia247-featured-posts-ad__news-feed-item a:focus,
.viotia247-featured-posts-ad__news-feed-item a:active {
	display: block;
	padding: 14px 0;
	border-bottom: 1px solid var( --viotia247-fpa-border );
	color: inherit;
	text-decoration: none;
}

.viotia247-featured-posts-ad__news-feed-item:last-child a {
	border-bottom: 0;
}

.viotia247-featured-posts-ad__news-feed-item-title {
	display: block;
	margin: 0 0 8px;
	font-family: var( --viotia-font );
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	color: var( --viotia247-fpa-text );
}

.viotia247-featured-posts-ad__news-feed-time {
	display: block;
	font-family: var( --viotia-font );
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.3;
	color: var( --viotia247-fpa-text-subtle );
}

.viotia247-featured-posts-ad__news-feed-item a:hover .viotia247-featured-posts-ad__news-feed-item-title,
.viotia247-featured-posts-ad__news-feed-item a:focus .viotia247-featured-posts-ad__news-feed-item-title {
	color: var( --viotia247-fpa-text-muted );
}

@media screen and ( max-width: 1199px ) {
	.viotia247-featured-posts-ad__layout {
		grid-template-columns: minmax( 0, 1fr ) minmax( 0, 240px );
		gap: 20px;
	}
}

@media screen and ( max-width: 991px ) {
	.viotia247-featured-posts-ad {
		height: auto;
		max-height: none;
		overflow: visible;
	}

	.viotia247-featured-posts-ad {
		padding-block: 24px;
	}

	.viotia247-featured-posts-ad__layout {
		grid-template-columns: 1fr;
	}

	.viotia247-featured-posts-ad__posts {
		grid-template-columns: 1fr;
	}

	.viotia247-featured-posts-ad__secondary {
		display: grid;
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 16px;
	}

	.viotia247-featured-posts-ad__ad {
		justify-content: center;
	}

	.viotia247-featured-posts-ad__ad-inner,
	.viotia247-featured-posts-ad__ad-placeholder,
	.viotia247-featured-posts-ad__news-feed {
		max-width: 320px;
	}
}

@media screen and ( max-width: 767px ) {
	.viotia247-featured-posts-ad {
		padding-block: 20px;
	}

	.viotia247-featured-posts-ad__secondary {
		grid-template-columns: 1fr;
	}
}
