/* =========================================================
   TOSK - NYHETER
   Brukes på forside og nyhetssider
   Bygger videre på card-glass / card-glassmodal i tosk.css
   ========================================================= */


/* =========================================================
   SEKSJON
   ========================================================= */

.tosk-news {
	position: relative;
	padding: 64px 0 72px;
}

.tosk-news-heading {
	margin-bottom: 30px;
}

.tosk-news-label {
	display: block;
	margin-bottom: 8px;

	font-size: 11px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;

	color: #d69841;
}

.tosk-news-title {
	margin: 0;

	font-size: clamp(30px, 3vw, 44px);
	line-height: 1.05;
	font-weight: 400;

	color: #fafaf6;
}

.tosk-news-title strong {
	font-weight: 800;
}

.tosk-news-heading-line {
	width: 54px;
	height: 3px;

	margin-top: 20px;

	background: #A71916;
}


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

.tosk-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	align-items: stretch;
}


/* =========================================================
   NYHETSKORT
   card-glass ligger også på elementet i HTML
   ========================================================= */

.tosk-news-card {
	position: relative;

	display: flex;
	flex-direction: column;

	min-width: 0;
	height: 100%;

	padding: 0;

	overflow: hidden;

	border: 0 !important;
	border-radius: 22px;

	background:
		linear-gradient(
			145deg,
			#1b1e21 0%,
			#171a1d 38%,
			#14171a 68%,
			#121416 100%
		) !important;

	box-shadow:
		0 20px 48px rgba(0,0,0,.22),
		0 6px 18px rgba(0,0,0,.10);

	backdrop-filter: none;
	-webkit-backdrop-filter: none;

	transition:
		transform .28s ease,
		box-shadow .28s ease,
		background .28s ease;
}

.tosk-news-card:hover {
	transform: translateY(-5px);

	background:
		linear-gradient(
			145deg,
			#1e2226 0%,
			#1a1d20 38%,
			#16191c 68%,
			#131517 100%
		) !important;

	box-shadow:
		0 28px 62px rgba(0,0,0,.28),
		0 8px 22px rgba(0,0,0,.13);
}


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

.tosk-news-image-wrap {
	position: relative;

	width: 100%;

	aspect-ratio: 16 / 10;

	overflow: hidden;

	background: rgba(255,255,255,.025);
}

.tosk-news-image {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition:
		transform .45s ease,
		filter .45s ease;
}

.tosk-news-card:hover .tosk-news-image {
	transform: scale(1.035);
}

.tosk-news-image-wrap::after {
	content: none;
	display: none;
}


/* =========================================================
   KORTINNHOLD
   ========================================================= */

.tosk-news-card-body {
	display: flex;
	flex-direction: column;

	flex: 1;

	padding: 25px 25px 24px;
}

.tosk-news-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;

	gap: 7px 14px;

	margin-bottom: 13px;

	font-size: 12px;
	line-height: 1.4;

	color: rgba(232,232,232,.48);
}

.tosk-news-meta span {
	display: inline-flex;
	align-items: center;

	gap: 6px;
}

.tosk-news-meta i {
	color: rgba(214,152,65,.78);
}

.tosk-news-card-title {
	margin: 0;

	font-size: 21px;
	line-height: 1.25;
	font-weight: 700;

	color: #fafaf6;
}

.tosk-news-card-divider {
	width: 42px;
	height: 3px;

	margin: 20px 0;

	background: #A71916;
}

.tosk-news-excerpt {
	margin: 0 0 23px;

	font-size: 14px;
	line-height: 1.65;

	color: rgba(232,232,232,.67);
}

.tosk-news-card-action {
	margin-top: auto;
}


/* =========================================================
   LES MER
   ========================================================= */

.tosk-news-readmore {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 39px;

	padding: 0 15px;

	border-radius: 9px;

	border: 1px solid rgba(214,152,65,.50);

	background: rgba(214,152,65,.025);

	color: #d69841 !important;

	font-size: 13px;
	font-weight: 600;

	text-decoration: none !important;

	cursor: pointer;

	transition:
		background-color .20s ease,
		color .20s ease,
		border-color .20s ease,
		transform .20s ease;
}

.tosk-news-readmore:hover {
	transform: translateY(-1px);

	background: #d69841;
	border-color: #d69841;

	color: #111 !important;
}


/* =========================================================
   ALLE NYHETER
   ========================================================= */

.tosk-news-all {
	display: flex;
	justify-content: flex-end;

	margin-top: 24px;
}

.tosk-news-all-link {
	display: inline-flex;
	align-items: center;

	gap: 8px;

	font-size: 13px;
	font-weight: 600;

	color: rgba(214,152,65,.72) !important;

	text-decoration: none !important;

	transition:
		color .20s ease,
		gap .20s ease,
		opacity .20s ease;
}

.tosk-news-all-link i {
	font-size: 11px;

	transition:
		transform .20s ease;
}

.tosk-news-all-link:hover {
	gap: 11px;

	color: #d69841 !important;
}

.tosk-news-all-link:hover i {
	transform: translateX(2px);
}


/* =========================================================
   NYHETSMODAL
   Mørklegging / blur kommer allerede fra tosk.css
   ========================================================= */

.tosk-news-modal {
	z-index: 1055 !important;
}

.tosk-news-modal .modal-dialog {
	max-width: 760px;
}


/* =========================================================
   MODAL - SELVE KORTET
   card-glassmodal ligger også på modal-content
   ========================================================= */

.tosk-news-modal .modal-content {
	position: relative;
	width: 100%;
	max-width: 100%;
	padding: 0;
	overflow: hidden;
	border-radius: 22px;
	background:
		linear-gradient(145deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,.012) 55%, rgba(255,255,255,.004) 100%),
		rgba(12,12,12,.52) !important;
	border: 1px solid rgba(255,255,255,.11) !important;
	box-shadow: 0 30px 90px rgba(0,0,0,.48);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}


/* =========================================================
   MODALBILDE
   ========================================================= */

.tosk-news-modal-image-wrap {
	position: relative;

	width: 100%;

	overflow: hidden;

	background: rgba(255,255,255,.025);
}

.tosk-news-modal-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
}

.tosk-news-modal-image-wrap::after {
	content: none;
	display: none;
}


/* =========================================================
   MODAL HEADER
   ========================================================= */

.tosk-news-modal .modal-header {
	padding: 22px 24px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}

.tosk-news-modal-header-content {
	flex: 1;

	min-width: 0;

	padding-right: 0;
}

.tosk-news-modal-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 750;
	color: #fafaf6 !important;
}

.tosk-news-modal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 20px;
	font-size: 13px;
	color: rgba(255,255,255,.55);
}

.tosk-news-modal-meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.tosk-news-modal-meta i {
	color: #d69841;
}



.tosk-news-modal .modal-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 750;
	color: #fafaf6 !important;
}


.tosk-news-modal .btn-close {
	opacity: .72;
	filter: invert(1);
	box-shadow: none !important;
}

.tosk-news-modal .btn-close:hover {
	opacity: 1;
}


/* =========================================================
   MODAL BODY
   ========================================================= */

.tosk-news-modal .modal-body {
	padding: 18px 24px 24px;
	color: rgba(255,255,255,.72);
	background: transparent !important;
}

.tosk-news-modal-divider {
	width: 36px;
	height: 2px;

	margin: 0 0 20px;

	background: #d69841;
}

.tosk-news-modal-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255,255,255,.68);
}

.tosk-news-modal-link {
	margin-top: 22px;
}


/* =========================================================
   MODAL FOOTER
   ========================================================= */

.tosk-news-modal .modal-footer {
	display: flex;

	padding: 17px 24px;

	border-top: 1px solid rgba(255,255,255,.08);

	background: transparent !important;

	gap: 8px;
}


/* =========================================================
   MODAL-KNAPPER
   ========================================================= */

.tosk-news-modal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 7px;

	min-height: 40px;
	padding: 0 16px;

	border: 1px solid rgba(255,255,255,.08) !important;
	border-radius: 9px;

	background: rgba(255,255,255,.07) !important;

	color: #fafaf6 !important;

	font-size: 13px;
	font-weight: 600;

	text-decoration: none !important;

	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;

	box-shadow: none !important;

	transition:
		background-color .2s ease,
		border-color .2s ease,
		color .2s ease,
		transform .2s ease;
}

.tosk-news-modal-btn:hover {
	transform: translateY(-1px);

	background: #d69841 !important;
	border-color: #d69841 !important;

	color: #111 !important;
}

.tosk-news-modal-btn-primary {
	border: 1px solid rgba(255,255,255,.08) !important;
	background: rgba(255,255,255,.07) !important;
	color: #fafaf6 !important;
}

.tosk-news-modal-btn-primary:hover {
	background: #d69841 !important;
	border-color: #d69841 !important;
	color: #111 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

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


	/*
	   På tablet og mindre viser vi kun de
	   to nyeste nyhetene på forsiden.
	*/

	.tosk-news-card:nth-child(n+3) {
		display: none;
	}


	/* modal */

	.tosk-news-modal .modal-dialog {
		width: auto;
		max-width: 760px;

		margin-left: auto;
		margin-right: auto;
	}

}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 767px) {

	.tosk-news {
		padding: 50px 0 55px;
	}

	.tosk-news-heading {
		margin-bottom: 25px;
	}

	.tosk-news-title {
		font-size: 32px;
	}

	.tosk-news-grid {
		grid-template-columns: 1fr;

		gap: 18px;
	}

	.tosk-news-card {
		border-radius: 22px;
	}

	.tosk-news-image-wrap {
		aspect-ratio: 16 / 9;
	}

	.tosk-news-card-body {
		padding: 21px 20px;
	}

	.tosk-news-card-title {
		font-size: 19px;
	}

	.tosk-news-card-divider {
		margin: 17px 0;
	}

	.tosk-news-excerpt {
		font-size: 13px;
		line-height: 1.6;
	}


	/* alle nyheter */

	.tosk-news-all {
		justify-content: flex-start;

		margin-top: 20px;
	}


	/* modal */

	.tosk-news-modal .modal-dialog {
		margin: 14px;
	}

	.tosk-news-modal .modal-content {
		border-radius: 18px;
	}

	.tosk-news-modal-image-wrap {
		aspect-ratio: 16 / 9;
	}

	.tosk-news-modal .modal-header {
		padding: 19px;
	}

	.tosk-news-modal-header-content {
		padding-right: 0;
	}

	.tosk-news-modal-title {
		font-size: 20px;
	}

	.tosk-news-modal .modal-body {
		padding: 20px 19px 22px;
	}

	.tosk-news-modal-divider {
		margin: 0 0 18px;
	}

	.tosk-news-modal-text {
		font-size: 14px;
		line-height: 1.7;
	}

	.tosk-news-modal .modal-footer {
		padding: 15px 19px;

		justify-content: flex-start;
	}

}


/* =========================================================
   LITEN MOBIL
   ========================================================= */

@media (max-width: 480px) {

	.tosk-news-modal .modal-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.tosk-news-modal-btn {
		width: 100%;
	}

}


/* =========================================================
   REDUSERT BEVEGELSE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.tosk-news-card,
	.tosk-news-image,
	.tosk-news-readmore,
	.tosk-news-all-link,
	.tosk-news-all-link i,
	.tosk-news-modal-btn {
		transition: none;
	}

}