/* ==========================================================================
   „Czytaj więcej” na dole wpisu ([rmc_czytaj_wiecej]) – Figma: WPIS BLOGOWY.
   ========================================================================== */

.rmc-cw {
	--rmc-cw-karta: 630px;
	--rmc-cw-gap: 20px;
	position: relative;
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	font-family: "ff-utility-web-pro", sans-serif;
}

.rmc-cw__tytul {
	margin: 0 0 51px;
	font-family: "ddt", sans-serif;
	font-weight: 300;
	font-size: 56px;
	line-height: 1.2;
	text-transform: uppercase;
	color: #013462;
}

/* ---------- Taby ---------- */
.rmc-cw__taby {
	display: flex;
	gap: 55px;
	margin-bottom: 52px;
	overflow-x: auto;
	scrollbar-width: none;
}

.rmc-cw__taby::-webkit-scrollbar {
	display: none;
}

.rmc-cw button.rmc-cw__tab {
	position: relative;
	flex-shrink: 0;
	padding: 0 0 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: "ff-utility-web-pro", sans-serif;
	font-weight: 400;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #013462;
	cursor: pointer;
	transition: color 0.25s ease;
}

.rmc-cw button.rmc-cw__tab::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: #00B6F1;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.rmc-cw button.rmc-cw__tab:hover,
.rmc-cw button.rmc-cw__tab:focus-visible,
.rmc-cw button.rmc-cw__tab.is-active {
	color: #00B6F1;
	background: transparent;
}

.rmc-cw button.rmc-cw__tab.is-active::after {
	transform: scaleX(1);
}

.rmc-cw__panel[hidden] {
	display: none;
}

/* ---------- Tor kart: wychodzi do prawej krawędzi okna, jak w projekcie ---------- */
.rmc-cw__tor {
	display: flex;
	gap: var(--rmc-cw-gap);
	margin-right: calc(50% - 50vw);
	padding-right: max(20px, calc(50vw - 50%));
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.rmc-cw__tor::-webkit-scrollbar {
	display: none;
}

.rmc-cw__karta {
	display: flex;
	flex: 0 0 var(--rmc-cw-karta);
	align-items: center;
	gap: 36px;
	min-width: 0;
	padding: 24px;
	border: 1px solid #fff;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.15);
	scroll-snap-align: start;
	transition: background 0.3s ease;
}

.rmc-cw__karta:hover {
	background: rgba(255, 255, 255, 0.5);
}

.rmc-cw__zdjecie {
	flex: 0 0 183px;
	height: 183px;
	overflow: hidden;
	border-radius: 12px;
	background: #00182D;
}

.rmc-cw__zdjecie img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.rmc-cw__karta:hover .rmc-cw__zdjecie img {
	transform: scale(1.05);
}

.rmc-cw__tresc {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.rmc-cw__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-weight: 500;
	font-size: 10px;
	letter-spacing: 0.8em;
	color: #00B6F1;
}

/* Znaczek „Nowy wpis” w narożnikach – te same nawiasy co w ikonach z ramką. */
.rmc-cw__nowy {
	position: relative;
	padding: 6px 14px;
	font-weight: 400;
	letter-spacing: 0.67em;
	text-transform: uppercase;
	white-space: nowrap;
}

.rmc-cw__nowy::before,
.rmc-cw__nowy::after {
	content: "";
	position: absolute;
	top: 0;
	width: 6px;
	height: 100%;
	border: 1px solid #00B6F1;
	border-radius: 3px;
}

.rmc-cw__nowy::before {
	left: 0;
	border-right: 0;
	border-radius: 3px 0 0 3px;
}

.rmc-cw__nowy::after {
	right: 0;
	border-left: 0;
	border-radius: 0 3px 3px 0;
}

.rmc-cw__naglowek {
	margin: 0;
	font-family: "ddt", sans-serif;
	font-weight: 300;
	font-size: 20px;
	line-height: 1.1;
	color: #013462;
}

.rmc-cw__naglowek a {
	color: inherit;
	text-decoration: none;
}

.rmc-cw__naglowek a:hover {
	color: #00B6F1;
}

.rmc-cw__zajawka {
	margin: 16px 0 0;
	overflow: hidden;
	font-weight: 300;
	font-size: 14px;
	line-height: 1.8;
	color: #002146;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rmc-cw__link {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 16px;
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #013563;
	text-decoration: none;
}

.rmc-cw__link svg {
	transition: transform 0.25s ease;
}

.rmc-cw__link:hover svg {
	transform: translateX(4px);
}

/* ---------- Nawigacja: strzałki + pasek z segmentem na każdą pozycję ---------- */
.rmc-cw__nawigacja {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 44px;
	margin-top: 72px;
}

.rmc-cw__nawigacja[hidden] {
	display: none;
}

.rmc-cw button.rmc-cw__strzalka {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.rmc-cw button.rmc-cw__strzalka:hover,
.rmc-cw button.rmc-cw__strzalka:focus {
	background: transparent;
}

.rmc-cw button.rmc-cw__strzalka--wstecz svg {
	transform: rotate(180deg);
}

.rmc-cw button.rmc-cw__strzalka:disabled {
	opacity: 0.3;
	cursor: default;
}

.rmc-cw__postep {
	display: flex;
	gap: 8px;
	width: 590px;
	max-width: 50vw;
}

.rmc-cw__segment {
	flex: 1;
	height: 2px;
	background: #C5DCE3;
	transition: background 0.3s ease;
}

.rmc-cw__segment.is-active {
	background: #00B6F1;
}

/* ---------- Tablet i telefon ---------- */
@media (max-width: 1024px) {
	.rmc-cw__tytul {
		font-size: 40px;
		margin-bottom: 32px;
	}
}

@media (max-width: 767px) {
	.rmc-cw {
		--rmc-cw-karta: 86vw;
	}

	.rmc-cw__tytul {
		font-size: 32px;
	}

	.rmc-cw__taby {
		gap: 32px;
		margin-bottom: 32px;
	}

	.rmc-cw__karta {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 16px;
	}

	.rmc-cw__zdjecie {
		flex-basis: auto;
		height: 200px;
	}

	.rmc-cw__nawigacja {
		gap: 20px;
		margin-top: 40px;
	}
}
