/* =========================================================
   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: #e8e8e8;
}

.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-radius: 22px;

	/*
	   Overstyrer card-glass litt slik at backnew
	   synes tydeligere gjennom kortene.
	*/

	background:
		linear-gradient(
			145deg,
			rgba(255,255,255,.025) 0%,
			rgba(255,255,255,.008) 50%,
			rgba(255,255,255,0) 100%
		),
		rgba(12,12,12,.32) !important;

	border: 1px solid rgba(255,255,255,.085) !important;

	box-shadow:
		0 14px 38px rgba(0,0,0,.12);

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

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

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

	background:
		linear-gradient(
			145deg,
			rgba(255,255,255,.035) 0%,
			rgba(255,255,255,.012) 50%,
			rgba(255,255,255,0) 100%
		),
		rgba(12,12,12,.40) !important;

	border-color: rgba(214,152,65,.18) !important;

	box-shadow:
		0 22px 48px rgba(0,0,0,.22);
}


/* =========================================================
   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: "";

	position: absolute;

	left: 0;
	right: 0;
	bottom: 0;

	height: 34%;

	background:
		linear-gradient(
			to bottom,
			rgba(0,0,0,0),
			rgba(0,0,0,.15)
		);

	pointer-events: 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: #e8e8e8;
}

.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;
}


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

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

.tosk-news-modal .modal-dialog {
	position: relative;

	z-index: 1056;

	max-width: 820px;
}


/* =========================================================
   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;

	/*
	   Gjør selve modalflaten lettere og mer transparent
	   enn standard card-glassmodal.
	*/

	background:
		linear-gradient(
			145deg,
			rgba(255,255,255,.035) 0%,
			rgba(255,255,255,.008) 100%
		),
		rgba(12,12,12,.64) !important;

	border: 1px solid rgba(255,255,255,.09) !important;

	box-shadow:
		0 30px 90px rgba(0,0,0,.52);

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


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

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

	width: 100%;

	aspect-ratio: 16 / 8.5;

	overflow: hidden;

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

.tosk-news-modal-image {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
}

.tosk-news-modal-image-wrap::after {
	content: "";

	position: absolute;

	left: 0;
	right: 0;
	bottom: 0;

	height: 24%;

	background:
		linear-gradient(
			to bottom,
			rgba(0,0,0,0),
			rgba(0,0,0,.16)
		);

	pointer-events: none;
}


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

.tosk-news-modal .modal-header {
	display: flex;
	align-items: flex-start;

	padding: 25px 27px 20px;

	border: 0;

	background: transparent !important;
}

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

	min-width: 0;

	padding-right: 20px;
}

.tosk-news-modal-title {
	margin: 0 0 9px;

	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;

	color: #e8e8e8 !important;
}

.tosk-news-modal-meta {
	display: flex;
	flex-wrap: wrap;

	gap: 7px 14px;

	font-size: 12px;

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

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

	gap: 6px;
}

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


/* =========================================================
   LUKKEKNAPP
   ========================================================= */

.tosk-news-modal .btn-close {
	flex: 0 0 auto;

	margin: 1px 0 0;

	opacity: .66;

	filter: invert(1);

	transition:
		opacity .20s ease,
		transform .20s ease;
}

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

	transform: scale(1.08);
}


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

.tosk-news-modal .modal-body {
	padding: 0 27px 30px;

	background: transparent !important;

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

.tosk-news-modal-divider {
	width: 45px;
	height: 3px;

	margin: 5px 0 23px;

	background: #A71916;
}

.tosk-news-modal-text {
	margin: 0;

	font-size: 15px;
	line-height: 1.75;

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

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


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

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

	padding: 17px 27px;

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

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

	gap: 9px;
}


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

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

	min-height: 42px;

	padding: 0 17px;

	border-radius: 9px;

	border: 1px solid rgba(255,255,255,.10);

	background: rgba(255,255,255,.055);

	color: #e8e8e8 !important;

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

	text-decoration: none !important;

	cursor: pointer;

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

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

	background: rgba(255,255,255,.11);

	border-color: rgba(255,255,255,.16);

	color: #fff !important;
}

.tosk-news-modal-btn-primary {
	border-color: rgba(214,152,65,.50);

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

	color: #d69841 !important;
}

.tosk-news-modal-btn-primary:hover {
	background: #d69841;

	border-color: #d69841;

	color: #111 !important;
}


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

@media (max-width: 991px) {

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

}


/* =========================================================
   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: 18px;
	}

	.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;
	}


	/* 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: 21px 20px 17px;
	}

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

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

	.tosk-news-modal .modal-body {
		padding: 0 20px 24px;
	}

	.tosk-news-modal-divider {
		margin-bottom: 19px;
	}

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

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

		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-modal-btn,
	.tosk-news-modal .btn-close {
		transition: none;
	}

}