/* =========================================================
   KLASSEINNDELING
========================================================= */

.klasseinndeling-section {
	position: relative;
}


/* Bredere container kun på denne siden */

.klasseinndeling-container {
	width: 100%;
	max-width: 1540px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}


/* =========================================================
   OVERSKRIFT
========================================================= */

.klasseinndeling-heading {
	max-width: 760px;
	margin: 0 auto 50px;
	text-align: center;
}

.klasseinndeling-label {
	display: block;
	margin-bottom: 10px;

	color: #FF2D75;

	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.13em;
}

.klasseinndeling-heading h2 {
	margin: 0;

	color: #FFFFFF;

	font-size: clamp(40px, 5vw, 62px);
	font-weight: 800;
	line-height: 1.05;
}

.klasseinndeling-heading .pinkline {
	margin-left: auto;
	margin-right: auto;
}

.klasseinndeling-heading p {
	max-width: 620px;
	margin: 24px auto 0;

	color: rgba(255, 255, 255, 0.60);

	font-size: 17px;
	line-height: 1.65;
}


/* =========================================================
   GRID
========================================================= */

.klasseinndeling-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}


/* =========================================================
   KLASSEKORT
========================================================= */

.klassekort {
	position: relative;

	display: flex;
	flex-direction: column;

	min-width: 0;
	overflow: hidden;

	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 24px;

	background: rgba(255, 255, 255, 0.045);

	box-shadow:
		0 24px 65px rgba(0, 0, 0, 0.20),
		inset 0 1px 0 rgba(255, 255, 255, 0.035);

	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);

	transition:
		transform 0.25s ease,
		border-color 0.25s ease,
		background 0.25s ease,
		box-shadow 0.25s ease;
}

.klassekort:hover {
	transform: translateY(-5px);

	border-color: rgba(255, 45, 117, 0.35);
	background: rgba(255, 255, 255, 0.06);

	box-shadow:
		0 30px 75px rgba(0, 0, 0, 0.27),
		0 0 30px rgba(255, 45, 117, 0.07);
}


/* =========================================================
   BILDE
========================================================= */

.klassekort-image {
	position: relative;

	display: block;
	overflow: hidden;

	aspect-ratio: 4 / 3;

	background: #14192F;
	text-decoration: none;
}

.klassekort-image img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition:
		transform 0.55s ease,
		filter 0.55s ease;
}

.klassekort:hover .klassekort-image img {
	transform: scale(1.04);
	filter: brightness(1.05);
}

.klassekort-image-overlay {
	position: absolute;
	inset: 0;

	background:
		linear-gradient(
			to top,
			rgba(20, 25, 47, 0.70) 0%,
			rgba(20, 25, 47, 0.12) 48%,
			transparent 72%
		);

	pointer-events: none;
}

.klassekort-image-label {
	position: absolute;
	left: 20px;
	bottom: 18px;
	z-index: 2;

	padding: 7px 11px;

	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 999px;

	background: rgba(27, 27, 46, 0.72);
	color: rgba(255, 255, 255, 0.78);

	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.10em;

	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}


/* =========================================================
   INNHOLD
========================================================= */

.klassekort-content {
	display: flex;
	flex: 1;
	flex-direction: column;

	padding: 25px;
}

.klassekort-heading {
	margin-bottom: 23px;
	padding-bottom: 20px;

	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.klassekort-overline {
	display: block;
	margin-bottom: 6px;

	color: #FF2D75;

	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.11em;
}

.klassekort-heading h3 {
	margin: 0;

	font-size: 25px;
	font-weight: 750;
	line-height: 1.18;
}

.klassekort-heading h3 a {
	color: #FFFFFF;
	text-decoration: none;

	transition: color 0.2s ease;
}

.klassekort-heading h3 a:hover {
	color: #FF5A93;
}


/* =========================================================
   INFORMASJON
========================================================= */

.klassekort-info {
	display: grid;
	gap: 13px;

	margin-bottom: 25px;
}

.klassekort-info-row {
	display: grid;
	grid-template-columns: 35px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
}

.klassekort-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 35px;
	height: 35px;

	border-radius: 10px;

	background: rgba(255, 45, 117, 0.10);
	color: #FF2D75;

	font-size: 13px;
}

.klassekort-info-row > div:last-child {
	min-width: 0;
}

.klassekort-info-row span {
	display: block;
	margin-bottom: 2px;

	color: rgba(255, 255, 255, 0.40);

	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.075em;
}

.klassekort-info-row strong {
	display: block;

	overflow-wrap: anywhere;

	color: rgba(255, 255, 255, 0.78);

	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}


/* =========================================================
   KNAPP
========================================================= */

.klassekort-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;

	width: 100%;
	margin-top: auto;

	padding: 0.78rem 1.2rem;

	font-size: 12px;
}

.klassekort-button i {
	font-size: 11px;

	transition: transform 0.2s ease;
}

.klassekort-button:hover i {
	transform: translateX(3px);
}


/* =========================================================
   TOMT RESULTAT
========================================================= */

.klasseinndeling-empty {
	grid-column: 1 / -1;

	padding: 55px 30px;

	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 22px;

	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.55);

	text-align: center;
}

.klasseinndeling-empty i {
	margin-bottom: 12px;

	color: #FF2D75;
	font-size: 28px;
}

.klasseinndeling-empty p {
	margin: 0;
}


/* =========================================================
   RESPONSIVT – MINDRE DESKTOP OG NETTBRETT
========================================================= */

@media (max-width: 1199px) {

	.klasseinndeling-container {
		max-width: 1120px;
	}

	.klasseinndeling-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

}


/* =========================================================
   RESPONSIVT – MOBIL
========================================================= */

@media (max-width: 767px) {

	.klasseinndeling-container {
		max-width: none;
		padding-left: 16px;
		padding-right: 16px;
	}

	.klasseinndeling-heading {
		margin-bottom: 36px;
		text-align: left;
	}

	.klasseinndeling-heading .pinkline {
		margin-left: 0;
		margin-right: 0;
	}

	.klasseinndeling-heading p {
		margin-left: 0;
		margin-right: 0;
	}

	.klasseinndeling-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.klassekort {
		border-radius: 20px;
	}

	.klassekort-content {
		padding: 22px 20px;
	}

	.klassekort-heading h3 {
		font-size: 23px;
	}

	.klassekort-image {
		aspect-ratio: 4 / 3;
	}

}