/*
Theme Name: FKT
Theme URI: http://www.osberget.no/
Author: Magne Grimstad at Osberget AS, Maxim Kukulinsky at RASAMAX SIA
Author URI: http://www.osberget.no/
Description: Forum for kontroll og tilsyn Wordpress theme
Version: 2.1.1
Tags: fkt osberget rasamax
Text Domain: fkt
*/
/**
 * Reset CSS instead of Normalize inside of Bootstrap
 */

/* Page commons */
body {
	font-family: "Roboto", sans-serif;
	font-size: 15px;
	color: #000000;
}

* > p:first-child {
	margin-top: 0;
}

* > p:last-child {
	margin-bottom: 0;
}

/* Page stretch to 100% screen height */
main {
	min-height: calc(100vh - 184px - 826px);
}

body.admin-bar main {
	min-height: calc(100vh - 184px - 826px - 32px);
}

/* General text styles */
.button {
	font-size: 16px;
	font-weight: 500;
	border: 2px solid #9d2235;
	padding: 10px 25px;
	border-radius: 50rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.button:hover {
	color: #872235;
}

.button:focus {
    outline-offset: 4px;
}

button:focus {
    outline-offset: 4px;
}

.text-decoration-custom,
a.text-decoration-custom-hover:hover,
a:hover .text-decoration-custom-hover,
.footer-slider a,
.footer-menu a:not(.button):not(.text-decoration-none),
.post-content a:not(.button):not(.text-decoration-none) {
	text-decoration: none;
	background-position: left bottom;
	background-repeat: repeat-x;
	background-clip: content-box;
	background-size: 0.082em;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"><rect width="1" height="1" style="fill:rgb(0 0 0);" /></svg>');
}

a.latest-news-item:hover .text-decoration-custom-hover,
.text-red.text-decoration-custom,
.text-red.text-decoration-custom-hover:hover,
.text-red .text-decoration-custom,
.text-red .text-decoration-custom-hover:hover,
.text-red a:hover .text-decoration-custom-hover,
.post-content a:not(.button):not(.text-decoration-none),
.post-content.text-red a:not(.button):not(.text-decoration-none),
.post-content .text-red a:not(.button):not(.text-decoration-none) {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"><rect width="1" height="1" style="fill:rgb(135 34 53);" /></svg>');
}

body .post-content .attachment-button a:hover {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"><rect width="1" height="1" style="fill:rgb(135 34 53);" /></svg>') !important;
}

.text-white .text-decoration-custom,
.text-white .text-decoration-custom-hover:hover,
.text-white a:hover .text-decoration-custom-hover,
.footer-slider a,
.post-content.text-white a:not(.button):not(.text-decoration-none),
.post-content .text-white a:not(.button):not(.text-decoration-none) {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"><rect width="1" height="1" style="fill:rgb(255 255 255);" /></svg>');
}


.big-text {
	font-size: 18px;
}

.regular-text {
	font-size: 15px;
}

.small-text {
	/*font-family: Verdana;*/
	font-size: 12px;
}


.big-heading {
	font-size: 30px;
	/*letter-spacing: 2px; */
	/*line-height: 28px; */
}

.medium-heading {
	font-size: 24px;
	/*letter-spacing: 2px; */
	/*line-height: 28px; */
}

.small-heading {
	font-size: 20px;
	/*letter-spacing: 2px; */
	/*line-height: 28px; */
}



@media (min-width: 768px) {
	.medium-md-heading {
		font-size: 24px;
	}
}

.button.big-button {
	padding: 3px 30px;
	border-radius: 7px
}

.button.link {
	position: relative;
	padding: 7px 25px 7px 10px;
}

.button.link:after {
	content: '';
	position: absolute;
	width: 7px;
	height: 7px;
	border-top: 2px solid;
	border-right: 2px solid;
	border-color: inherit;
	box-sizing: content-box;
	top: 15px;
	right: 10px;
	transform: rotate(45deg);
}

.font-weight-medium {
	font-weight: 500;
}

a:hover {
	color: inherit;
}

.bg-red {
	background-color: #a8393c;
}

.bg-dark-red {
	background-color: #923437;
}

.bg-gray {
	background-color: #dde9f0;
}

.border-red {
	border-color: #9f2427;
}

.bg-hover-yellow {
	-webkit-transition: background-color .5s;
	-moz-transition: background-color .5s;
	transition: background-color .5s;
}

.bg-hover-yellow:hover {
	background-color: rgba(226,147,49,0.75);
}

.text-gray {
	color: #c2c3c4;
}

.text-red {
	color: #9f2427 !important;
}

.hover-yellow:hover {
	color: #ffbe31 !important;
	border-color: #ffbe31 !important;
}

.hover-red:hover {
	color: #9f2427;
	border-color: #9f2427;
}



.alignleft {
	float: left;
	margin: 0 20px 10px 0;
}

.alignright {
	float: right;
	margin: 0 0 10px 20px;
}

.aligncenter {
	margin: 0 auto 10px auto;
	display: block;
}

.bg-cover {
	background: center no-repeat;
	background-size: cover;
}

.bg-contain {
	background: center no-repeat;
	background-size: contain;
}

/* Fixed aspect ratio images */
.fixed-aspect-ratio-image {
	display: block !important;
	padding-top: 100%;
	background: center no-repeat;
	background-size: cover;
}

.fixed-aspect-ratio-image.r-60 {
	padding-top: 60%;
}

.fixed-aspect-ratio-image.r-75 {
	padding-top: 75%;
}

.fixed-aspect-ratio-image.r-67 {
	padding-top: 67%;
}


#go-to-top {
	position: fixed;
	width: 64px;
	right: 20px;
	bottom: 20px;
	opacity: 0;
	max-width: 0;
	transition: opacity .5s, max-width .0s .5s;
	z-index: 3;
}

#go-to-top.visible {
	opacity: 1;
	max-width: 64px;
	transition: opacity .5s, max-width .0s;
}

.accessible-hidden {
	width: 0;
	height: 0;
	opacity: 0;
	outline: 0;
    overflow: hidden;
    position: absolute;
}

.skip-link {
	position: absolute;
	outline-offset: -1px;
	border: none;
	border: none;
	text-decoration: none;
	background: 0 0;
	width: 0;
	height: 0;
	overflow: hidden;
}

.skip-link:focus {
	left: 6px;
	height: auto;
	width: auto;
	display: block;
	font-size: 14px;
	font-weight: 600;
	padding: 15px 23px 14px;
	background: #f1f1f1;
	color: #9d2235;
	z-index: 100000;
	line-height: normal;
	text-decoration: none;
	box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
}


/* Header */
#header {
	display: flex;
/*    background: url(images/top_line.jpg) no-repeat scroll center top;
	-webkit-background-size: 100% auto;
	background-size: 100% auto;*/
}

/* Logo */
@media(max-width: 767px) {
	.header-logo img {
		width: auto;
		height: 40px;
	}
}


/* Search bar */
.searchform {
	padding-top: 35px;
	padding-bottom: 30px;
}

.searchform #search {
	width: 266px;
	color: #1d1d1b;
	line-height: 2.25;
	padding: 4px 27px 4px 10px;
	border: 1px solid black;
	border-radius: 10px;
	outline: none;
}

.searchform #search::-webkit-input-placeholder { /* Edge */
	color: black;
}

.searchform #search:-ms-input-placeholder { /* Internet Explorer 10-11 */
	color: black;
}

.searchform #search::placeholder {
	color: black;
}

.searchform #searchsubmit {
	font-size: 0;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 1px;
    width: 42px;
    height: 42px;
	margin: auto;
	background: url(images/search_icon.svg?1) no-repeat center center;
	background-size: 20px 20px;
	cursor: pointer;
	box-shadow: none;
	border: none;
    background-color: #9d2235;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Menu */
#menu-button {
	border: 0;
    padding: 0;
    background: none;
    margin-bottom: 35px;
}

.menu-button-icon {
	display: inline-block;
	width: 50px;
	height: 50px;
	padding: 13px 10px 0 10px;
	background: #9d2235;
}

.menu-button-icon > div {
	height: 3px;
	margin-bottom: 7px;
	background: #fff;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	transition: transform .5s .2s;
}

#menu-button.checked .menu-button-icon > div:nth-child(1) {
	transform: translate(0,10px) rotate(45deg);}

#menu-button.checked .menu-button-icon > div:nth-child(2) {
	transform: scale(0,0);
}

#menu-button.checked .menu-button-icon > div:nth-child(3) {
	transform: translate(0,-10px) rotate(-45deg);
}

.menu-button-text {
	vertical-align: top;
	line-height: 50px;
}

#main-navigation-container {
	position: absolute;
	top: 100%;
	right: 0;
	width: min-content;
	max-height: 0;
	overflow: hidden;
	transition: max-height .7s cubic-bezier(0, 1, 0, 1), visibility 0s .7s;
	z-index: 100;
	background-color: #9d2235;
	visibility: hidden;
}

#menu-button.checked ~ #main-navigation-container {
	max-height: 3000px;
	transition: max-height .7s cubic-bezier(1, 0, 1, 0), visibility 0s;
	visibility: visible;
}


/* Menu */
#menu-primary {
	list-style: none;
}

#menu-primary li {
	position: relative;
	margin: 0;
	border-bottom: 1px solid #e5e5e5;
}

#menu-primary li > a {
	display: block;
	width: 100%;
	padding: 30px;
	line-height: 20px;
	text-transform: uppercase;
	transition: background-color .5s;
}

#menu-primary li > a:focus {
    outline-offset: -4px;
}

#menu-primary li.menu-item-has-children > a {
	padding-right: 74px;
}
#menu-primary a:hover {
	text-decoration: none;
}

.menu-item-has-children > .submenu-expand-button {
	display: block;
    position: absolute;
    top: 0;
    right: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 50px;
    height: 80px;
    /* padding: 34px 15px 0px 0px; */
    padding: 0 10px;
    margin-right: 15px;
    -webkit-transition: background-color .5s;
    -moz-transition: background-color .5s;
    transition: background-color .5s;
    /* outline: none; */
    background: none;
    font-size: 0;
    border: 0;
    outline-offset: -4px;
}

.menu-item-has-children > .submenu-expand-button:before,
.menu-item-has-children > .submenu-expand-button:after {
	content: "";
	display: block;
	height: 4px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
	background: #fff;
	transition: transform .5s;
}

.menu-item-has-children > .submenu-expand-button:before {
	transform: translate(0,3px) rotate(90deg);
}

#menu-primary .sub-menu {
	width: 100%;
	max-height: 0;
	padding: 0;
	overflow: hidden;
	background-color: rgba(16,8,16, 0.11);
	transition: max-height .7s cubic-bezier(0, 1, 0, 1), visibility 0s .7s;
    visibility: hidden;
}

#menu-primary .sub-menu a {
	padding-left: 45px;
}
#menu-primary .sub-menu > li:first-child {
	border-top: 1px solid #e5e5e5;
}
#menu-primary .sub-menu > li:last-child {
	border-bottom: none;
}

#menu-primary li.expanded > .sub-menu {
	max-height: 2000px;
	transition: max-height .7s cubic-bezier(1, 0, 1, 0), visibility 0s;
    visibility: visible;
}

#menu-primary li a:hover,
#menu-primary li.menu-item-has-children > .submenu-expand-button:hover ~ a,
#menu-primary li.menu-current-item > a {
	background-color: #872235;
}

.menu-item-has-children.expanded > .submenu-expand-button:before {
	transform: translate(0,3px);
}

@media (max-width: 889px) {
	#main-navigation-container {
		width: 100%;
	}

	#menu-primary li {
		border-color: #b1595d;
	}

	#menu-primary li a {
		padding: 20px;
		text-transform: initial;
	}

	.menu-item-has-children > .submenu-expand-button {
		height: 67px;
		width: 84px;
		padding: 30px 30px 0px;
		border-left: 1px solid;
		border-color: inherit;
	}
}


/* Front page - latest news */
.latest-news-item {
	border-radius: 0 20px 0 20px;
	background-color: rgba(158,47,53,0.8);
	-moz-transition: background-color .5s;
	-webkit-transition: background-color .5s;
	transition: background-color .5s;
}

.latest-news-item:hover {
	color: #9d2235;
}


/* Footer */
.footer-top-border {
	max-width: 1100px;
	margin: auto;
	border-color: black;
	border-width: 4px;
}

.footer-section-dark {
	background-color: #1c1f2a;
}

.yellow-links a {
	color: #ffbe31;
}

.footer-menu ul {
	list-style: none;
	padding: 0;
}

.footer-contact-info {
	background-color: white;
	color: black;
}

@media (min-width: 890px) {
	.footer-contact-info {
		line-height: 2;
		background-color: transparent;
		color: inherit;
	}
}

#footer .button.big-button,
.footer-menu .button {
	border-color: white;
	text-decoration: none;
}

.footer-menu .button {
	border: 0;
	background: #923437;
	color: white;
	padding: 15px 30px;
}

.footer-slider-wrapper .bx-pager {
	padding-top: 20px;
}

.footer-slider-wrapper .bx-pager-item {
	display: inline-block;
}

.footer-slider-wrapper .bx-pager.bx-default-pager a {
	background: transparent;
	text-indent: -9999px;
	display: block;
	width: 10px;
	height: 10px;
	margin: 0 8px;
	outline: 0;
	box-sizing: content-box;
	border: 3px solid white;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-transition: background-color .5s;
	-moz-transition: background-color .5s;
	transition: background-color .5s;
}

.footer-slider-wrapper .bx-pager-item:first-child a {
	margin-left: 0;
}

.footer-slider-wrapper .bx-pager.bx-default-pager a:hover,
.footer-slider-wrapper .bx-pager.bx-default-pager a.active,
.footer-slider-wrapper .bx-pager.bx-default-pager a:focus {
	background-color: white;
}

.footer-slider-wrapper .bx-pager.bx-default-pager a:focus {
	outline: 2px solid white;
	outline-offset: 2px;
}


/* Category */
.side-navigation-menu a:hover {
	color: #9f2427;
}

.post-content a {
	color: #9d2235;
}

.post-content a:hover {
	color: #872235;
}


.small-tag-button {
	padding: 3px 7px;
	margin-top: 10px;
	margin-right: 10px;
}

.pagination {
	justify-content: center;
}

.pagination .screen-reader-text {
	height: 0;
	width: 0;
	overflow: hidden;
}

.pagination .nav-links > * {
	margin: 0 5px;
}

.pagination .current {
	font-weight: bold;
}


.bottom-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1;
	background-color: #9d2235;
	box-shadow: 0 0 10px rgba(0,0,0,0.75);
}

.attachment-button {
	width: 270px;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}
.attachment-button a {
	position: relative;
	padding-left: 30px;
	text-decoration: none !important;
}
.attachment-button a:before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	height: 20px;
	width: 18px;
	background-image: url(images/dokument_icon.png);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
	line-height: 1.5;
	margin: 1rem 0;
}
.post-content h1 {
	font-size: 30px;
}
.post-content h2 {
	font-size: 24px;
}
.post-content h3 {
	font-size: 20px;
}
.post-content h4 {
	font-size: 18px;
}
/*

.post-gallery {
	margin-bottom: 0 !important;
}


.lSSlideOuter .lSPager.lSGallery li.active,
.lSSlideOuter .lSPager.lSGallery li:hover {
	border-radius: 0;
}

.lSSlideOuter .lSPager.lSGallery li.active {
	border: 2px solid #00afea;
}

.lSPrev, .lSNext {
	background-color: rgba(0,0,0,.25);
	border-radius: 14.5px;
	box-shadow: 0 0 18px 0 rgba(0,0,0,.4);
}*/

@media print {
	header,
	footer, 
	.side-navigation-menu,
	.wp-edit-button,
	.no-print,
	.bottom-banner {
		display: none !important;
	}
}

.cursor-pointer {
	cursor: pointer;
}

.object-fit-cover {
	object-fit: cover;
}


/* Front page - Warning */
#warning {
	background: #9d2235;
}

/* Hide Google reCaptcha after 1s */
@keyframes hide_after_1s {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(100px);
	}
}

.grecaptcha-badge {
	animation-name: hide_after_1s;
	animation-delay: 3s;
	animation-duration: 1s;
	animation-fill-mode: forwards;
}

.grecaptcha-badge:focus {
	animation-name: unset;
}

/* WP Popup */
/* Popup email field */
.newsletter-form input[type="email"] {
	border: none;
	padding: 10px 30px;
	border-bottom: 4px solid black;
}

.newsletter-form input[type="email"]::-webkit-input-placeholder { /* Edge */
	color: black;
}

.newsletter-form input[type="email"]:-ms-input-placeholder { /* Internet Explorer 10-11 */
	color: black;
}

.newsletter-form input[type="email"]::placeholder {
	color: black;
}

/* Popup submit button */
.newsletter-form button[type="submit"] {
	background: black;
	color: white;
	text-transform: uppercase;
	padding: 10px 15px 10px 30px;
	border: none;
	border-radius: 100px;
	display: flex;
	align-items: center;
}

.newsletter-form button[type="submit"]:after {
	content: url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"26.805\" height=\"22.788\" viewBox=\"0 0 26.805 22.788\"><g id=\"Group_1\" data-name=\"Group 1\" transform=\"translate(-1390.407 -619.106)\"><line id=\"Line_1\" data-name=\"Line 1\" x2=\"23.186\" transform=\"translate(1391.907 630.5)\" fill=\"none\" stroke=\"white\" stroke-linecap=\"round\" stroke-width=\"3\"/><line id=\"Line_2\" data-name=\"Line 2\" x2=\"10.047\" y2=\"9.274\" transform=\"translate(1405.046 621.226)\" fill=\"none\" stroke=\"white\" stroke-linecap=\"round\" stroke-width=\"3\"/><line id=\"Line_3\" data-name=\"Line 3\" y1=\"9.274\" x2=\"10.047\" transform=\"translate(1405.046 630.5)\" fill=\"none\" stroke=\"white\" stroke-linecap=\"round\" stroke-width=\"3\"/></g></svg>");
	height: 23px;
	margin-left: 15px;
}

/* Popup close button */
#spu-5669 .spu-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: white;
	color: black;
	font-size: 50px;
	text-shadow: none;
	border-radius: 100%;
	transform: translate(30px, -30px);
	box-shadow: -5px 5px 11px rgba(0, 0, 0, 0.16);
	transition: transform .25s;
}

#spu-5669 .spu-close:hover {
	transform: translate(30px, -30px) scale(1.1);
}

@media screen and (max-width: 768px) {
	body #spu-5669 .spu-container {
		padding: 20px;
	}
}

/* Breadcrumbs */
#breadcrumbs a {
    color: #9d2235;
    text-decoration: underline;'
}

/* Contact form 7 */
.wpcf7 p {
    margin: 0;
}

.wpcf7 br {
    display: none;
}

.wpcf7 label {
	cursor: pointer;
}

.wpcf7-not-valid-tip {
    position: absolute;
    right: 0;
    padding: 2px 10px;
    border: 1px solid #9d2235;
    border-radius: 5px;
    background: white;
}

.wpcf7-not-valid-tip:before {
    content: '⚠';
    margin-right: 10px;
}

.wpcf7-form-control::-webkit-input-placeholder { /* Edge */
	color: #928f8f;
}

.wpcf7-form-control:-ms-input-placeholder { /* Internet Explorer 10-11 */
	color: #928f8f;
}

.wpcf7-form-control::placeholder {
	color: #928f8f;
}


/* CookieBot style */
body {
	--bs-secondary: #9d2235;
	#CybotCookiebotDialog input:checked+.CybotCookiebotDialogBodyLevelButtonSlider,
	#CookiebotWidget #CookiebotWidget-buttons #CookiebotWidget-btn-change,
	#CybotCookiebotDialogFooter .CybotCookiebotDialogBodyButton,
	#CybotCookiebotDialogFooter #CybotCookiebotDialogBodyLevelButtonCustomize, #CybotCookiebotDialogFooter #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection,
	#CybotCookiebotDialogFooter #CybotCookiebotDialogBodyButtonAccept, #CybotCookiebotDialogFooter #CybotCookiebotDialogBodyLevelButtonAccept, #CybotCookiebotDialogFooter #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll {
		background-color: var(--bs-secondary);
		border-color: var(--bs-secondary);
		color: #fff;
	}

	#CookiebotWidget #CookiebotWidget-buttons #CookiebotWidget-btn-withdraw {
		border-color: var(--bs-secondary);
	}

	#CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink.CybotCookiebotDialogActive {
		border-bottom: 2px solid var(--bs-secondary);
	}

	#CookiebotWidget .CookiebotWidget-logo svg circle {
		fill: var(--bs-secondary);
	}

	#CookiebotWidget .CookiebotWidget-logo svg path {
		fill: #fff;
	}

	#CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink.CybotCookiebotDialogActive {
		border-color: transparent;
		border-bottom: 1px solid var(--bs-secondary);
		color: var(--bs-secondary);
	}
	
	#CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink:hover {
		color: var(--bs-secondary);
	}
	
	#CookiebotWidget .CookiebotWidget-body .CookiebotWidget-consents-list li.CookiebotWidget-approved svg {
		fill: var(--bs-secondary);
	}
	
	#CookiebotWidget .CookiebotWidget-consent-details button {
		color: var(--bs-secondary);
	}
}