/* =========================================================
   NYHETER.PHP
   Mørk, solid kortdesign + levende mørk bakgrunn
   Modal beholder glass-effekt
   ========================================================= */


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

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

.tosk-news-page-title {
	margin: 0;
	font-size: clamp(30px, 3vw, 44px);
	line-height: 1.05;
	font-weight: 400;
	color: #fafaf6;
}

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

.tosk-news-page-divider {
	width: 54px;
	height: 3px;
	margin-top: 20px;
	background: #c82026;
}

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

.tosk-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	border: 0;
	border-radius: 20px;
	background:
		linear-gradient(
			145deg,
			#1b1e21 0%,
			#171a1d 38%,
			#14171a 68%,
			#121416 100%
		);

	box-shadow:
		0 20px 48px rgba(0,0,0,.22),
		0 6px 18px rgba(0,0,0,.10);
	transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.tosk-news-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 16%;
	z-index: 3;
	width: 68%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
	pointer-events: none;
}

.tosk-news-card:hover {
	transform: translateY(-5px);
	background:
		linear-gradient(
			145deg,
			#1e2226 0%,
			#1a1d20 38%,
			#16191c 68%,
			#131517 100%
		);

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

.tosk-news-card-image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #0f1113;
}

.tosk-news-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

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

.tosk-news-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 23px 23px 22px;
	background: transparent;
}

.tosk-news-card-title {
	margin: 0 0 11px;
	font-size: 20px;
	line-height: 1.22;
	font-weight: 750;
	color: #fafaf6;
}

.tosk-news-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 15px;
	margin-bottom: 15px;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(255,255,255,.50);
}

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

.tosk-news-card-meta i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	line-height: 1;
	color: #d69841;
}

.tosk-news-card-divider {
	width: 34px;
	height: 2px;
	margin-bottom: 15px;
	background: rgba(214,152,65,.58);
}

.tosk-news-card-excerpt {
	margin: 0 0 19px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255,255,255,.60);
}

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

.tosk-news-more-btn,
.tosk-news-modal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.tosk-news-more-btn {
	border: 1px solid rgba(214,152,65,.65);
	background: transparent;
	color: #d69841;
}

.tosk-news-more-btn:hover {
	transform: translateY(-1px);
	background: #d69841;
	border-color: #d69841;
	color: #111;
}

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

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

.tosk-news-archive-action {
	margin-top: 30px;
}

.tosk-news-archive-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	border: 1px solid rgba(214,152,65,.45);
	border-radius: 11px;
	background: rgba(8,10,12,.34);
	color: #d69841 !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.tosk-news-archive-link:hover {
	background: #d69841;
	border-color: #d69841;
	color: #111 !important;
}

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

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

.tosk-news-modal .modal-header,
.tosk-news-modal .modal-body,
.tosk-news-modal .modal-footer {
	background: transparent !important;
}

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

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

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

.tosk-news-modal .btn-close {
	opacity: .72;
	filter: invert(1);
}

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

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

.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-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255,255,255,.68);
}

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

.tosk-news-modal .modal-footer {
	padding: 17px 24px;
	border-top: 1px solid rgba(255,255,255,.08);
	gap: 8px;
}

@media (max-width: 991px) {
	.tosk-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

@media (max-width: 767px) {
	.tosk-news-page {
		padding: 48px 0 54px;
	}

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

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

	.tosk-news-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

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

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

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

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

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

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

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

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

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

@media (max-width: 390px) {
	.tosk-news-card-body {
		padding: 18px 16px 17px;
	}

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

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


/* =========================================================
   LENKE TIL NYHETSARKIV
   ========================================================= */

.tosk-news-archive-action {
	display: flex;
	justify-content: flex-end;
	margin-top: 34px;
}

.tosk-news-archive-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;

	width: auto;
	min-height: 0;
	padding: 6px 0;

	border: 0;
	background: transparent;

	color: #d69841 !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;

	transition: color .2s ease;
}

.tosk-news-archive-link i {
	font-size: 12px;
	transition: transform .2s ease;
}

.tosk-news-archive-link:hover {
	background: transparent;
	color: #fafaf6 !important;
}

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