/* =========================================================
   RKS RADOMSKO
   NEWSCARD2
   EDITORIAL NEWS SECTION
========================================================= */

/* =========================================================
   SECTION
========================================================= */

.newscard2-section {
	position: relative;
	isolation: isolate;

	padding: clamp(52px, 6vh, 78px) 30px clamp(64px, 7vh, 92px);

	background: #fff;

	overflow: hidden;
}

/* =========================================================
   SUBTLE WATERMARK
========================================================= */

.newscard2-section::before {
	content: "";

	position: absolute;
	inset: -10%;

	z-index: 0;

	pointer-events: none;

	background-image: url("../img/rks-herb-kontur-bialy.svg");

	background-repeat: no-repeat;

	background-position: 86% 18%;

	background-size: clamp(520px, 58vw, 980px);

	opacity: 0.022;

	filter: grayscale(1) brightness(0);

	transform: rotate(-8deg);
}

.newscard2-section > * {
	position: relative;
	z-index: 1;
}

/* =========================================================
   CONTAINER
========================================================= */

.newscard-container {
	position: relative;

	width: 100%;
	max-width: 1720px;

	margin: 0 auto;

	padding: clamp(24px, 2.5vh, 36px) clamp(24px, 2.6vw, 42px);
}

/* =========================================================
   HEADER
========================================================= */

.newscard2-header {
	display: flex;

	align-items: center;
	justify-content: space-between;

	gap: 24px;
}

.newscard2-title-box {
	margin: 0 40px clamp(32px, 3.5vh, 48px);

	color: #082448;

	font-family: "Arial Black", "Montserrat", sans-serif;

	font-size: clamp(44px, 5vw, 66px);

	font-weight: 900;

	line-height: 0.92;

	letter-spacing: -0.02em;

	text-transform: uppercase;
}

/* =========================================================
   COMMON CARD
========================================================= */

.newscard2-item {
	min-width: 0;
}

.newscard2-card {
	display: block;

	width: 100%;

	color: inherit;

	text-decoration: none;
}

/* =========================================================
   IMAGE
========================================================= */

.newscard2-image-wrap {
	position: relative;

	width: 100%;

	overflow: hidden;

	background: #e5e8ec;

	border-radius: 4px;
}

.newscard2-image-wrap img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.newscard2-card:hover .newscard2-image-wrap img {
	transform: scale(1.035);
}

/* =========================================================
   DATE
========================================================= */

.newscard2-date-box {
	position: absolute;

	top: 0;
	left: 20px;

	z-index: 5;

	display: flex;
	flex-direction: column;

	align-items: center;
	justify-content: center;

	min-width: 54px;

	padding: 11px 10px 12px;

	background: rgba(255, 255, 255, 0.97);

	color: #69727d;

	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
}

.newscard2-date-box__day {
	font-size: 1.1rem;
	font-weight: 700;

	line-height: 1;
}

.newscard2-date-box__month {
	margin-top: 5px;

	font-size: 0.62rem;
	font-weight: 900;

	line-height: 1;

	letter-spacing: 0.12em;

	text-transform: uppercase;
}

/* =========================================================
   CATEGORY ON IMAGE
========================================================= */

.newscard2-image-category {
	position: absolute;

	right: 18px;
	bottom: 18px;

	z-index: 5;

	display: inline-flex;

	align-items: center;
	justify-content: center;

	min-height: 28px;

	padding: 0 12px;

	border-radius: 999px;

	background: rgba(13, 110, 253, 0.95);

	color: #fff;

	font-size: 0.64rem;
	font-weight: 900;

	line-height: 1;

	letter-spacing: 0.4px;

	text-transform: uppercase;

	box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);

	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

/* =========================================================
   ARROW
========================================================= */

.newscard2-image-arrow {
	position: absolute;

	top: 18px;
	right: 18px;

	z-index: 5;

	display: flex;

	align-items: center;
	justify-content: center;

	width: 42px;
	height: 42px;

	border-radius: 50%;

	background: rgba(255, 255, 255, 0.96);

	color: #0d6efd;

	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);

	transition:
		transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.25s ease,
		color 0.25s ease;
}

.newscard2-card:hover .newscard2-image-arrow {
	transform: translateX(4px);

	background: #0d6efd;

	color: #fff;
}

/* =========================================================
   FEATURED LAYOUT
========================================================= */

.newscard2-featured {
	display: grid;

	grid-template-columns:
		minmax(0, 1.55fr)
		minmax(330px, 0.9fr);

	gap: clamp(40px, 3vw, 58px);

	align-items: start;

	margin-bottom: clamp(64px, 6vh, 90px);
}

/* =========================================================
   MAIN IMAGE
========================================================= */

.newscard2-image-wrap--featured {
	height: clamp(360px, 40vh, 460px);
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.newscard2-content--featured {
	padding: 28px 5px 0;
}

.newscard2-heading--featured {
	max-width: 940px;

	margin: 0;

	color: #082448;

	font-size: clamp(2.05rem, 2.4vw, 3.05rem);

	font-weight: 900;

	line-height: 1.04;

	letter-spacing: -0.045em;

	text-transform: uppercase;

	overflow-wrap: anywhere;
}

/* =========================================================
   MAIN EXCERPT
========================================================= */

.newscard2-excerpt--featured {
	max-width: 850px;

	margin: 16px 0 0;

	color: #707985;

	font-size: clamp(0.98rem, 0.9vw, 1.06rem);

	font-weight: 400;

	line-height: 1.65;
}

/* =========================================================
   SECONDARY IMAGE
========================================================= */

.newscard2-image-wrap--secondary {
	height: clamp(300px, 33vh, 375px);
}

/* =========================================================
   SECONDARY CONTENT
========================================================= */

.newscard2-content--secondary {
	padding: 25px 4px 0;
}

.newscard2-heading--secondary {
	max-width: 600px;

	margin: 0;

	color: #082448;

	font-size: clamp(1.5rem, 1.65vw, 2.05rem);

	font-weight: 900;

	line-height: 1.08;

	letter-spacing: -0.035em;

	text-transform: uppercase;

	overflow-wrap: anywhere;
}

/* =========================================================
   SECONDARY EXCERPT
========================================================= */

.newscard2-excerpt--secondary {
	max-width: 560px;

	margin: 14px 0 0;

	color: #707985;

	font-size: 0.96rem;

	font-weight: 400;

	line-height: 1.6;
}

/* =========================================================
   COMMON EXCERPT
========================================================= */

.newscard2-excerpt {
	color: #707985;

	overflow-wrap: anywhere;

	display: -webkit-box;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;

	line-clamp: 3;

	overflow: hidden;
}

/* =========================================================
   REGULAR GRID
========================================================= */

.newscard2-grid {
	display: grid;

	grid-template-columns: repeat(3, minmax(0, 1fr));

	column-gap: clamp(36px, 3vw, 52px);

	row-gap: clamp(64px, 6vh, 84px);

	align-items: start;
}

/* =========================================================
   REGULAR IMAGE
========================================================= */

.newscard2-grid .newscard2-image-wrap {
	height: clamp(235px, 24vh, 300px);
}

/* =========================================================
   REGULAR CONTENT
========================================================= */

.newscard2-grid .newscard2-content {
	padding: 22px 4px 0;
}

/* =========================================================
   REGULAR HEADING
========================================================= */

.newscard2-grid .newscard2-heading {
	margin: 0;

	color: #082448;

	font-size: clamp(1.16rem, 1.15vw, 1.48rem);

	font-weight: 900;

	line-height: 1.12;

	letter-spacing: -0.025em;

	text-transform: uppercase;

	overflow-wrap: anywhere;

	display: -webkit-box;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;

	line-clamp: 3;

	overflow: hidden;
}

/* =========================================================
   REGULAR EXCERPT
========================================================= */

.newscard2-grid .newscard2-excerpt {
	max-width: 96%;

	margin: 13px 0 0;

	color: #747d88;

	font-size: 0.93rem;

	font-weight: 400;

	line-height: 1.58;

	-webkit-line-clamp: 3;

	line-clamp: 3;
}

/* =========================================================
   TEXT HOVER
========================================================= */

.newscard2-heading {
	transition: color 0.25s ease;
}

.newscard2-card:hover .newscard2-heading {
	color: #0d6efd;
}

/* =========================================================
   CTA WRAPPER
========================================================= */

.newscard-button {
	display: flex;

	align-items: center;
	justify-content: center;

	margin: clamp(56px, 6vh, 82px) 0 0;
}

/* =========================================================
   CTA
========================================================= */

.newscard2-more {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	gap: 12px;

	padding: 15px 24px;

	background: linear-gradient(135deg, #0d6efd 0%, #0757c8 100%);

	color: #fff;

	text-decoration: none;

	font-size: 0.9rem;
	font-weight: 900;

	line-height: 1;

	letter-spacing: 0.35px;

	text-transform: uppercase;

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.newscard2-more:hover {
	transform: translateY(-2px);

	box-shadow: 0 10px 24px rgba(13, 110, 253, 0.22);
}

/* =========================================================
   EMPTY
========================================================= */

.newscard2-empty {
	color: #687384;

	font-size: 1rem;
}

/* =========================================================
   <= 1400
========================================================= */

@media (max-width: 1400px) {
	.newscard2-featured {
		grid-template-columns:
			minmax(0, 1.4fr)
			minmax(300px, 0.9fr);

		gap: 42px;
	}

	.newscard2-grid {
		column-gap: 34px;
	}
}

/* =========================================================
   <= 1100
========================================================= */

@media (max-width: 1100px) {
	.newscard2-featured {
		gap: 34px;
	}

	.newscard2-image-wrap--featured {
		height: 350px;
	}

	.newscard2-image-wrap--secondary {
		height: 300px;
	}

	.newscard2-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));

		column-gap: 34px;

		row-gap: 58px;
	}
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {
	.newscard2-section {
		padding: 48px 18px 64px;
	}

	.newscard-container {
		padding: 22px 18px;
	}

	.newscard2-title-box {
		margin: 0 0 36px;

		font-size: clamp(42px, 7vw, 56px);
	}

	/* Main i secondary jeden pod drugim */

	.newscard2-featured {
		grid-template-columns: 1fr;

		gap: 54px;

		margin-bottom: 64px;
	}

	/* MAIN nadal mocno wyróżniony */

	.newscard2-image-wrap--featured {
		height: clamp(340px, 50vw, 450px);
	}

	.newscard2-heading--featured {
		font-size: clamp(2rem, 5vw, 2.75rem);
	}

	/* SECONDARY trochę mniejszy */

	.newscard2-image-wrap--secondary {
		height: clamp(290px, 43vw, 370px);
	}

	.newscard2-heading--secondary {
		font-size: clamp(1.55rem, 4vw, 2.1rem);
	}
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
	.newscard2-section {
		padding: 42px 10px 56px;
	}

	.newscard-container {
		padding: 12px 10px;
	}

	.newscard2-title-box {
		margin: 0 2px 32px;

		font-size: clamp(37px, 11vw, 48px);
	}

	/* =====================================================
	   FEATURED
	===================================================== */

	.newscard2-featured {
		gap: 50px;

		margin-bottom: 58px;
	}

	/* =====================================================
	   MAIN
	===================================================== */

	.newscard2-image-wrap--featured {
		height: clamp(270px, 70vw, 350px);
	}

	.newscard2-content--featured {
		padding: 22px 2px 0;
	}

	.newscard2-heading--featured {
		font-size: clamp(1.65rem, 7vw, 2.2rem);

		line-height: 1.06;
	}

	.newscard2-excerpt--featured {
		margin-top: 13px;

		font-size: 0.95rem;

		line-height: 1.58;
	}

	/* =====================================================
	   SECONDARY
	===================================================== */

	.newscard2-image-wrap--secondary {
		height: clamp(235px, 62vw, 310px);
	}

	.newscard2-content--secondary {
		padding: 21px 2px 0;
	}

	.newscard2-heading--secondary {
		font-size: clamp(1.4rem, 6vw, 1.8rem);
	}

	.newscard2-excerpt--secondary {
		margin-top: 12px;

		font-size: 0.92rem;

		line-height: 1.56;
	}

	/* =====================================================
	   REGULAR
	===================================================== */

	.newscard2-grid {
		grid-template-columns: 1fr;

		row-gap: 48px;
	}

	.newscard2-grid .newscard2-image-wrap {
		height: clamp(215px, 58vw, 290px);
	}

	.newscard2-grid .newscard2-content {
		padding: 19px 2px 0;
	}

	.newscard2-grid .newscard2-heading {
		font-size: clamp(1.15rem, 5vw, 1.42rem);

		line-height: 1.12;
	}

	.newscard2-grid .newscard2-excerpt {
		margin-top: 10px;

		font-size: 0.91rem;

		line-height: 1.55;
	}

	/* =====================================================
	   DATE
	===================================================== */

	.newscard2-date-box {
		left: 12px;

		min-width: 48px;

		padding: 9px 8px 10px;
	}

	.newscard2-date-box__day {
		font-size: 1rem;
	}

	.newscard2-date-box__month {
		font-size: 0.58rem;
	}

	/* =====================================================
	   CATEGORY
	===================================================== */

	.newscard2-image-category {
		right: 12px;
		bottom: 12px;

		min-height: 26px;

		padding: 0 10px;

		font-size: 0.58rem;
	}

	/* =====================================================
	   ARROW
	===================================================== */

	.newscard2-image-arrow {
		top: 12px;
		right: 12px;

		width: 36px;
		height: 36px;
	}

	/* =====================================================
	   CTA
	===================================================== */

	.newscard-button {
		margin-top: 54px;
	}

	.newscard2-more {
		width: 100%;
		max-width: 360px;
	}
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
	.newscard2-section {
		padding-left: 6px;
		padding-right: 6px;
	}

	.newscard-container {
		padding-left: 7px;
		padding-right: 7px;
	}

	.newscard2-title-box {
		font-size: clamp(35px, 11vw, 43px);
	}

	/* MAIN */

	.newscard2-image-wrap--featured {
		height: clamp(245px, 72vw, 315px);
	}

	/* SECONDARY */

	.newscard2-image-wrap--secondary {
		height: clamp(215px, 64vw, 280px);
	}

	/* REGULAR */

	.newscard2-grid .newscard2-image-wrap {
		height: clamp(200px, 60vw, 260px);
	}

	/* DATE */

	.newscard2-date-box {
		left: 10px;
	}

	/* CATEGORY */

	.newscard2-image-category {
		right: 10px;
		bottom: 10px;
	}

	/* ARROW */

	.newscard2-image-arrow {
		top: 10px;
		right: 10px;

		width: 34px;
		height: 34px;
	}
}
