/*
 * RomaniaHUB – cardurile de articole (varianta C: banda închisă RomaniaHUB jos).
 */

.elementor-posts-container:has(> .rh-post) {
	row-gap: 24px !important;
	column-gap: 24px !important;
	align-items: stretch;
}

.rh-post {
	--rh-accent: #6c1cff;
	--rh-accent-ink: #5612d6;
	--rh-ink: #16141f;
	--rh-muted: #5b5870;
	position: relative;
	display: flex !important;
	flex-direction: column;
	height: 100%;
	margin: 0 !important;
	overflow: hidden;
	border: 1px solid #ebe8f3;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(18, 12, 38, .06);
	transition: transform .2s ease, box-shadow .2s ease;
}

.rh-post:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(18, 12, 38, .12);
}

.rh-post__top {
	position: relative;
}

.rh-post__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #ebe8f3;
}

.rh-post .rh-post__media img,
.rh-post__noimg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform .4s ease;
}

.rh-post__noimg {
	background: linear-gradient(135deg, #3d0aa3, #6c1cff);
}

.rh-post:hover .rh-post__media img {
	transform: scale(1.04);
}

/* Categoria: etichetă închisă care stă pe marginea pozei */
.rh-post__cat {
	position: absolute;
	left: 16px;
	bottom: -15px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	max-width: calc(100% - 32px);
	padding: 8px 12px;
	border-radius: 9px;
	background: #120c26;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none !important;
	box-shadow: 0 6px 14px rgba(18, 12, 38, .3);
}

.rh-post__cat i {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: #a98bff;
}

.rh-post__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	padding: 28px 18px 18px;
}

/* Titlurile lungi: cel mult 3 rânduri, restul cu „…” (titlul întreg apare la trecerea cu mouse-ul și în articol) */
.rh-post .rh-post__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.2px;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.rh-post .rh-post__title a {
	color: var(--rh-ink) !important;
	text-decoration: none !important;
}

.rh-post .rh-post__title a:hover {
	color: var(--rh-accent-ink) !important;
}

.rh-post__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.55;
	color: var(--rh-muted);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Banda închisă de jos, ca la cardul de firmă */
.rh-post__band {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 44px;
	padding: 0 18px;
	overflow: hidden;
	background: #120c26;
	color: #cfc8e6;
	font-size: 12px;
	font-weight: 600;
}

.rh-post__band::before {
	content: "";
	position: absolute;
	top: -60px;
	left: 50%;
	width: 160px;
	height: 160px;
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 50%;
	pointer-events: none;
}

.rh-post__band b {
	color: #fff;
	font-weight: 700;
}

.rh-post__band a {
	position: relative;
	flex: 0 0 auto;
	color: #fff !important;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none !important;
}

.rh-post__band a:hover {
	color: #c9b8ff !important;
}

@media (max-width: 767px) {
	.rh-post .rh-post__title {
		font-size: 17px;
	}
}

/* ---------- Articolele de pe prima pagină ([romaniahub_articole]) ---------- */

.rh-mag {
	--rh-ink: #16141f;
	--rh-muted: #5b5870;
}

.rh-mag__top {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 24px;
	margin-bottom: 24px;
}

.rh-mag__big {
	position: relative;
	display: block;
	min-height: 460px;
	overflow: hidden;
	border-radius: 20px;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 14px 34px rgba(18, 12, 38, .18);
}

.rh-mag .rh-mag__big img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform .5s ease;
}

.rh-mag__big:hover img {
	transform: scale(1.04);
}

.rh-mag__big::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 12, 38, 0) 25%, rgba(18, 12, 38, .6) 55%, rgba(18, 12, 38, .95) 100%);
}

.rh-mag__big-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 30px;
}

.rh-mag__chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 14px;
	padding: 8px 12px;
	border-radius: 9px;
	background: #120c26;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.rh-mag__chip i {
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: #a98bff;
}

.rh-mag__big-title {
	display: -webkit-box;
	margin-bottom: 14px;
	overflow: hidden;
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.5px;
	color: #fff;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

.rh-mag__line {
	width: 56px;
	height: 4px;
	margin-bottom: 14px;
	border-radius: 3px;
	background: linear-gradient(90deg, #6c1cff, #3b6cff);
}

.rh-mag__meta {
	font-size: 13px;
	font-weight: 700;
	color: #cfc6f5;
}

.rh-mag__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rh-mag__row {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	gap: 14px;
	padding: 10px;
	border: 1px solid #ebe8f3;
	border-radius: 20px;
	background: #fff;
	text-decoration: none !important;
	transition: box-shadow .2s ease;
}

.rh-mag__row:hover {
	box-shadow: 0 10px 24px rgba(18, 12, 38, .1);
}

.rh-mag .rh-mag__row img {
	flex: 0 0 auto;
	width: 130px !important;
	height: 92px !important;
	object-fit: cover;
	border-radius: 12px !important;
}

.rh-mag__row-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rh-mag__row-cat {
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #5612d6;
}

.rh-mag__row-title {
	display: -webkit-box;
	margin-bottom: 6px;
	overflow: hidden;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--rh-ink);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.rh-mag__row-meta {
	font-size: 12px;
	font-weight: 600;
	color: var(--rh-muted);
}

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

@media (max-width: 1024px) {
	.rh-mag__top {
		grid-template-columns: 1fr;
	}

	.rh-mag__big {
		min-height: 380px;
	}

	.rh-mag__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rh-mag__big {
		min-height: 320px;
	}

	.rh-mag__big-body {
		padding: 20px;
	}

	.rh-mag .rh-mag__row img {
		width: 100px !important;
		height: 76px !important;
	}

	.rh-mag__grid {
		grid-template-columns: 1fr;
	}
}
