/* Wymuszenie dopasowania widżetu do ramki / kontenera nadrzędnego */
.elementor-widget-rbm_today_box,
.elementor-widget-rbm_today_box > .elementor-widget-container {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

/* Główna karta boksu */
.rbm-tbox-card {
	--rbm-tbox-bg: #f7faff;
	--rbm-tbox-img-h: 215px;
	--rbm-tbox-top-offset: 115px;

	position: relative;
	width: 100%;
	height: 100%;
	min-height: 380px;
	background-color: var(--rbm-tbox-bg);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Sekcja zdjęcia w tle u góry */
.rbm-tbox-media {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--rbm-tbox-img-h, 215px);
	overflow: hidden;
	z-index: 1;
	pointer-events: none;
}

.rbm-tbox-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* Styl 1: Fala / Malarski łuk (jak na wzorze) */
.rbm-tbox-wave-svg {
	position: absolute;
	left: -2%;
	right: -2%;
	bottom: -2px;
	width: 104%;
	height: 82%;
	display: block;
	z-index: 2;
}

.rbm-tbox-wave-fill {
	fill: var(--rbm-tbox-bg, #f7faff);
}

/* Dodatkowe zmiękczenie prawego dolnego brzegu zdjęcia */
.rbm-tbox-mask-brush .rbm-tbox-media::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 36px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--rbm-tbox-bg, #f7faff) 100%);
	z-index: 3;
}

/* Styl 2: Płynny gradient */
.rbm-tbox-mask-gradient .rbm-tbox-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		170deg,
		rgba(255, 255, 255, 0) 15%,
		var(--rbm-tbox-bg, #f7faff) 88%
	);
	z-index: 2;
}

/* Styl 3: Proste odcięcie pod obrazkiem */
.rbm-tbox-mask-none .rbm-tbox-media {
	position: relative;
	flex-shrink: 0;
}

/* Kontener treści (Nagłówek, Data, Kafelki poziome) */
.rbm-tbox-content {
	position: relative;
	z-index: 4;
	margin-top: var(--rbm-tbox-top-offset, 115px);
	padding: 20px 28px 26px 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
	box-sizing: border-box;
}

.rbm-tbox-mask-none .rbm-tbox-content {
	margin-top: 0 !important;
}

/* Nagłówek ("Dzisiaj w ZSP") */
.rbm-tbox-title {
	margin: 0 0 4px 0 !important;
	font-size: 27px;
	font-weight: 800;
	color: #0b4a8b;
	line-height: 1.18;
	letter-spacing: -0.2px;
}

/* Bieżąca data ("17 października 2025") */
.rbm-tbox-date {
	margin: 0 0 22px 0;
	font-size: 16.5px;
	font-weight: 700;
	color: #135293;
	line-height: 1.3;
}

/* Lista poziomych kafelków */
.rbm-tbox-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Pojedynczy kafelek poziomy (Ikona | Godziny | Tekst) */
.rbm-tbox-row {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none !important;
	transition: transform 0.18s ease, background-color 0.18s ease;
	box-sizing: border-box;
}

a.rbm-tbox-row:hover {
	transform: translateX(4px);
}

/* Ikona po lewej stronie */
.rbm-tbox-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	flex: 0 0 28px;
	font-size: 22px;
	color: #0b4a8b;
	line-height: 1;
	text-align: center;
}

.rbm-tbox-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	display: block;
}

/* Godziny */
.rbm-tbox-hours {
	flex: 0 0 auto;
	min-width: 105px;
	font-size: 15.5px;
	font-weight: 600;
	color: #2a649e;
	line-height: 1.35;
	white-space: nowrap;
}

/* Tekst po prawej stronie */
.rbm-tbox-text {
	flex: 1;
	min-width: 0;
	font-size: 15.5px;
	font-weight: 500;
	color: #2a649e;
	line-height: 1.35;
}

/* Responsywność na węższych ekranach telefonów */
@media (max-width: 480px) {
	.rbm-tbox-content {
		padding: 16px 18px 22px 18px;
	}

	.rbm-tbox-title {
		font-size: 23px;
	}

	.rbm-tbox-date {
		font-size: 15px;
		margin-bottom: 16px;
	}

	.rbm-tbox-row {
		gap: 10px;
	}

	.rbm-tbox-hours {
		min-width: 92px;
		font-size: 14px;
	}

	.rbm-tbox-text {
		font-size: 14px;
	}
}