/* Kayleen static fleet — carousel, home columns, sidebar featured stack */

/* ----- Kenzo / carousel hero (no Elementor Swiper init) ----- */
.rivax-posts-carousel-wrapper .swiper-container,
.rivax-posts-carousel-wrapper .swiper {
	overflow: visible;
	min-height: 200px;
}

.rivax-posts-carousel-wrapper .swiper-wrapper {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	transform: none !important;
	width: 100% !important;
	height: auto !important;
}

@media (max-width: 1023px) {
	.rivax-posts-carousel-wrapper .swiper-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rivax-posts-carousel-wrapper .swiper-wrapper {
		grid-template-columns: 1fr;
	}
}

.rivax-posts-carousel-wrapper .swiper-slide {
	width: auto !important;
	height: auto !important;
}

.rivax-posts-carousel-wrapper .post-item .image-wrapper img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* When fleet JS initializes Swiper, slides still need visible images */
.rivax-posts-carousel-wrapper.swiper-initialized .swiper-wrapper {
	display: flex !important;
}

/* ----- Main blog + sticky sidebar row ----- */
@media (min-width: 1024px) {
	.elementor-element-00961b4 > .elementor-container {
		flex-wrap: nowrap;
		align-items: flex-start;
	}

	.elementor-element-00961b4 .elementor-element-8c3a63d {
		width: 66.666% !important;
		flex: 0 0 66.666%;
		max-width: 66.666%;
	}

	.elementor-element-00961b4 .elementor-element-898d7c0,
	.elementor-element-00961b4 .rivax-sticky-column {
		width: 33.333% !important;
		flex: 0 0 33.333%;
		max-width: 33.333%;
	}
}

/* Main grid: 2 columns on desktop */
.elementor-element-e351d7c .rivax-posts-wrapper.layout-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 20px;
}

@media (max-width: 767px) {
	.elementor-element-e351d7c .rivax-posts-wrapper.layout-grid {
		grid-template-columns: 1fr;
	}
}

/* Featured posts in sidebar — vertical stack, not horizontal grid */
.elementor-element-5178d6c .rivax-posts-wrapper.layout-grid {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.elementor-element-5178d6c .rivax-posts-wrapper .post-item {
	width: 100%;
	max-width: 100%;
}

.elementor-element-5178d6c .rivax-posts-wrapper .image-wrapper img {
	width: 100%;
	height: auto;
}

/* Affiliate / promo images in sidebar */
.rivax-sticky-column img {
	max-width: 100%;
	height: auto;
}

/* ----- Static contact form (Elementor contact page) ----- */
.fleet-kayleen-contact-form-wrap {
	max-width: 640px;
	margin: 2rem auto 3rem;
}

.fleet-kayleen-contact-form-wrap .wpcf7-form p {
	margin-bottom: 1.25rem;
}

.fleet-kayleen-contact-form-wrap label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 500;
}

.fleet-kayleen-contact-form-wrap input[type='text'],
.fleet-kayleen-contact-form-wrap input[type='email'],
.fleet-kayleen-contact-form-wrap textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font: inherit;
}

.fleet-kayleen-contact-form-wrap button[type='submit'] {
	cursor: pointer;
	padding: 0.75rem 1.75rem;
	border: 0;
	border-radius: 4px;
	background: var(--rivax-accent, #5916c6);
	color: #fff;
	font-weight: 600;
}

.fleet-kayleen-contact-form-wrap .wpcf7-response-output {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border-radius: 4px;
}

.fleet-kayleen-contact-form-wrap .wpcf7-mail-sent-ok {
	background: #ecfdf3;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

/* Layout chrome header still exports rivax-post-elastic on some builds */
body.archive.category #site-header .rivax-post-elastic-widget {
	display: none !important;
}

/* ----- Bets category component (main + featured sidebar) ----- */
@media (min-width: 1024px) {
	.fleet-kayleen-bets-archive .fleet-kayleen-bets-row {
		display: flex;
		flex-wrap: nowrap;
		align-items: flex-start;
	}

	.fleet-kayleen-bets-archive .fleet-kayleen-bets-main {
		width: 66.666% !important;
		flex: 0 0 66.666%;
		max-width: 66.666%;
	}

	.fleet-kayleen-bets-archive .fleet-kayleen-featured-sidebar {
		width: 33.333% !important;
		flex: 0 0 33.333%;
		max-width: 33.333%;
	}
}

.fleet-kayleen-bets-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 20px;
}

@media (max-width: 767px) {
	.fleet-kayleen-bets-grid {
		grid-template-columns: 1fr;
	}
}

.fleet-kayleen-bets-grid .image-wrapper img,
.fleet-kayleen-bets-grid .fleet-kayleen-card-placeholder {
	width: 100%;
	min-height: 180px;
	object-fit: cover;
	display: block;
}

.fleet-kayleen-card-placeholder {
	background: linear-gradient(135deg, #5916c6 0%, #2d0b63 100%);
}

/* Featured sidebar — single column list (bets archive component) */
@media (min-width: 1024px) {
	.fleet-kayleen-featured-sidebar {
		position: sticky;
		top: 24px;
		align-self: flex-start;
	}
}

.fleet-kayleen-featured-list {
	margin: 0;
	padding: 0;
}

.fleet-kayleen-featured-list__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.fleet-kayleen-featured-list__item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fleet-kayleen-featured-list__item:first-child .fleet-kayleen-featured-card {
	padding-top: 0.25rem;
}

.fleet-kayleen-featured-list__item:last-child {
	border-bottom: none;
}

.fleet-kayleen-featured-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 1rem 0;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
}

.fleet-kayleen-featured-card:hover {
	opacity: 0.88;
}

.fleet-kayleen-featured-card__media {
	flex: 0 0 96px;
	width: 96px;
	height: 72px;
	border-radius: 6px;
	overflow: hidden;
	background: #f0f0f2;
	display: block;
}

.fleet-kayleen-featured-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fleet-kayleen-featured-card__media--empty {
	background: linear-gradient(135deg, #e8e8ec 0%, #d4d4dc 100%);
}

.fleet-kayleen-featured-card__body {
	flex: 1;
	min-width: 0;
}

.fleet-kayleen-featured-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: 0.9375rem;
	line-height: 1.45;
	font-weight: 600;
	color: #1a1a1a;
	transition: color 0.2s ease;
}

.fleet-kayleen-featured-card:hover .fleet-kayleen-featured-card__title {
	color: var(--rivax-accent, #5916c6);
}

@media (max-width: 1023px) {
	.fleet-kayleen-featured-sidebar {
		margin-top: 2.5rem;
	}

	.fleet-kayleen-featured-card__media {
		flex: 0 0 80px;
		width: 80px;
		height: 60px;
	}
}
