/*
Theme Name: Fastighetsbranschens Utbildningsnämnd
Theme URI: https://fastun.se/
Description: OceanWP WordPress theme example child theme.
Author: STHLM Web Design
Author URI: https://sthlmwebdesign.com/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */


/* GENERAL, RESET, & HELPER ELEMENTS
----------------------------------------------------------------------------------------*/

/* HEADER ELEMENTS 
----------------------------------------------------------------------------------------*/

/* MAIN BODY ELEMENTS
----------------------------------------------------------------------------------------*/

.page-template-front-page .page-header {display: none !important;}
.page-header-title, .page-header-title {display: none !important;}

.content-area {border-right: none !important;}

.page.content-max-width .thumbnail, 
.page.content-max-width .entry-header, 
.page.content-max-width ul.meta, 
.page.content-max-width .entry-content p, 
.page.content-max-width .entry-content h1, 
.page.content-max-width .entry-content h2, 
.page.content-max-width .entry-content h3, 
.page.content-max-width .entry-content h4, 
.page.content-max-width .entry-content h5, 
.page.content-max-width .entry-content h6, 
.page.content-max-width .wp-block-image, 
.page.content-max-width .wp-block-gallery, 
.page.content-max-width .wp-block-video, 
.page.content-max-width .wp-block-quote, 
.page.content-max-width .wp-block-text-columns, 
.page.content-max-width .entry-content ul, 
.page.content-max-width .entry-content ol, 
.page.content-max-width .wp-block-cover-text, 
.page.content-max-width .post-tags, 
.page.content-max-width .comments-area, 
.wp-block-separator.is-style-wide {
	max-width: 800px; margin-left: auto; margin-right: auto;
}
.page.content-max-width .thumbnail, .page.content-max-width .wp-block-cover-text.alignwide, .page.content-max-width .wp-block-image.alignwide, .page.content-max-width .wp-block-gallery.alignwide, .page.content-max-width .wp-block-text-columns.alignwide, .page.content-max-width .entry-share, .page.content-max-width nav.post-navigation, .page.content-max-width #author-bio, .page.content-max-width #related-posts {
margin: 1.5em auto;
max-width: 1100px;
}

.page #content header h1 {
font-family: trade-gothic-next;
font-weight: 800;
font-size: 48px;
color: #424242;
line-height: 1.1;
letter-spacing: 0.5px;
padding: 0 0 20px;
margin: 0 0 15px;
margin-bottom: 1em;
border-bottom: 1px solid #f1f1f1;
}

.page .entry-share {display: none; }

.entry-content > p:first-child {font-size: 22px !important; font-weight: 300; line-height: 30px; }

.blog-entry-summary { font-size: 18px; }

/* FOOTER ELEMENTS
----------------------------------------------------------------------------------------*/


#footer .textwidget h3 {
	margin-top: 50px;
	text-align: center !important;
	font-weight: bold; 
	font-size: 24px;
	line-height: 31px;
	color: #424242;}

#footer .textwidget p {
	text-align: center;
	font-weight: normal;
	font-size: 18px; 
	line-height: 28px; 
	color: #727272;
}
#footer #nav_menu-2 ul {
	margin: 0 auto; 
	max-width: 600px; 
	font-size: 18px;
	line-height: 28px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-content: stretch;
    align-items: flex-start;
}
#footer #nav_menu-2 ul li {
	text-align: center; 
	border-bottom: none !important; 
	order: 0;
    flex: 0 1 auto;
    align-self: auto;
}
#footer #nav_menu-2 ul li:first-child {border-top: none;}
#footer #nav_menu-2 ul li a {color: #424242 !important;}
#footer #nav_menu-2 ul li a:hover {color: #424242; text-decoration: underline;}

#footer .widget-oceanwp-social {width: 140px; margin: 0 auto;}

#footer #copyright {line-height: 16px;}
#footer #copyright a {color: #FFF !important;}
#footer #copyright a:hover {text-decoration: underline;}

@media screen and (max-width: 414px) { 
	#footer .textwidget h3 { margin-top: 40px; }
	#footer #nav_menu-2 ul { overflow: auto; max-width: 100%; display: block;}
	#footer #nav_menu-2 ul li {width: 50%; float: left;}
}

/* FRONT PAGE ELEMENTS
----------------------------------------------------------------------------------------*/

.home #main #content-wrap {padding-bottom: 20px;}

.home aside { border-left: none !important; }

/* ----------- Slider -------------*/

#slider {
	border-bottom: .5px solid #e9e9e9;
	padding: 0;
	margin: 0;
	text-align: center;
}

/* ----------- Posts -------------*/



.front-page-header {height: 50px;}
.front-page-header h2 {
	font-size: 38px; 
	line-height: 49px; 
	color: #424242;
	position: relative;	
}
.front-page-header h2::before {
	border-bottom: 3px solid;
	border-image: linear-gradient(150deg, rgba(238,224,30,1) 0%, rgba(88,155,80,1) 40%, rgba(11,93,131,1) 73%) 1;
	content: "";
	position: absolute;
	bottom: .625rem;
	width: 100%;
	z-index: -1;
}
.front-page-header span {
	background-color: #fff;
	z-index: 1;
	padding-right: 1rem;
}

.entry-cont {
	border-bottom: 1px solid #f1f1f1;
	margin-top: 1.25em;
	padding-bottom: 1.25em;
	margin-bottom: 1.25em;
	display: flex;
}

.entry-thumbnail {width: 100%; border: 1px solid #f1f1f1;}
.entry-thumbnail img {width: 100%; height: auto;}

.entry-items { width: 100%; padding: 0 20px;}
.entry-items .meta {
	color: #c8c8c8!important;
	margin-top: 5px; 
	margin-bottom: 0; 
	font-size: 14px; 
	line-height: 32px;
	}
.entry-items h2 {font-size: 24px; margin-bottom: 10px;}
.entry-items h2 a { color: #1d1d1b; }
.entry-items h2 a:hover {text-decoration: underline;}

.entry-items .blog-entry-summary {
	font-size: 16px !important; 
	color: #000!important; 
	line-height: 28px;
	margin-bottom: 15px !important;
}


.entry-items .blog-entry-readmore {
	display: inline-block;
	font-weight: 700;
	font-size: 13px;
	line-height: 32px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.entry-items .blog-entry-readmore a {color: #0b5d83 !important;}
.entry-items .blog-entry-readmore a:hover {text-decoration: underline;}


.more-news-btn {
	background: linear-gradient(150deg, rgba(238,224,30,1) 0%, rgba(88,155,80,1) 40%, rgba(11,93,131,1) 73%);	
	color: #fff;
	display: inline-block;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase; 
	letter-spacing: 2px;
	white-space: nowrap;
	padding: 12px 32px;
	font-size: 14px;
	line-height: 24px;
	border-radius: 56px;
	margin: 0;
}
.more-news-btn:hover {
	background: #000;
	color: #fff;
}



/* ----------- Newsletter -------------*/

#newsletter-container {
	background: #0b5d83;
	padding: 60px 30px;
	font-family: trade-gothic-next;
	font-size: 18px;
	line-height: 1.42857;
	color: #FFF;
	margin-top: 80px;
}

#newsletter-container h3 {
	color: #FFF;
	font-weight: bold;
	line-height: 1.3;
	font-size: 34px;
	width: 65%; 
	float: left;
	margin-bottom: 40px;
}

#newsletter-container .fa-envelope {
	font-size: 85px;
	float: right;
	transform: rotate(-12deg);
}
.form-control {
	display: block;
	width: 100%;
	height: 57px;
	padding: 15px 20px;
	font-size: 18px;
	line-height: 1.42857;
	background-color: #fff;
	background-image: none;
	border: 1px solid #FFF;
	border-radius: 50px;
	-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
	-webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
	-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
	transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}
.form-group {margin-bottom: 10px;}

.material-input input {
	display: inline-block;
	box-shadow: none;
	border: none !important;
	border-radius: 0 !important;
	border-bottom: 2px solid #FFF !important;
	padding: 0 !important;
	color: #FFF !important;
	font-weight: bold;
	border-radius: 0;
	transition: box-shadow .1s ease-in-out;
	-webkit-transition: box-shadow .1s ease-in-out;
	font-size: 18px;
}
.material-input input::placeholder { color: #FFF; transition: color 0.2s ease;}
.material-input input:focus::placeholder { color:transparent !important; }



#newsletter-container .btn-default {
	background: #000;
	border: 1px solid #000;
	color: #fff;
	display: inline-block;
	font-weight: normal;
	text-align: center;
	cursor: pointer;
	padding: 12px 32px;
	font-size: 18px;
	letter-spacing: 2px;
	line-height: 24px;
	border-radius: 56px;
	text-transform: uppercase;
	font-family: trade-gothic-next;
	margin-top: 20px;
}
#newsletter-container .btn-default:hover {
	background: linear-gradient(150deg, rgba(238,224,30,1) 0%, rgba(88,155,80,1) 40%, rgba(11,93,131,1) 73%);	
	border: 1px solid #fff;
}

@media screen and (max-width: 414px) {
	#newsletter-container{ margin-top: 1.25em; padding: 30px 15px;} 
	#newsletter-container .fa-envelope { margin-top: 60px; font-size: 75px; }
	#newsletter-container h3 {width: 75%; }
}


/* ----------- Yrkes Grid -------------*/



#yrkes-grid { max-width: 1200px; margin: 0 auto; }
#yrkes-grid hr { margin-bottom: 50px; border-top-color: #f1f1f1;}

#yrkes-grid .front-page-header { margin-bottom: 1.25em; }

#yrkes-grid-cont { 
	margin: 0; 
	padding-bottom: 60px; 
	display: flex;
	flex-direction: row;
  	flex-wrap: wrap;
  	justify-content: space-between; }

.yrkes-grid-item { 
	display: flex;
	flex-direction: column;
	flex: 0 1 calc(33.3% - 1em); 
  	position: relative;
  	margin-bottom: 2em;
}
yrkes-grid-img { line-height: 0;}
.yrkes-grid-img img {
  	width: 100%;
  	height: auto;
	margin: 0; 
	padding: 0;
	border-radius: 10px;
}
.yrkes-grid-title {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: rgba(0,0,0,0.15);
	display: flex;
  	align-items: center;
  	justify-content: center;	
  	border-radius: 10px;
} 
.yrkes-grid-item:hover .yrkes-grid-title {background: rgba(0,0,0,0.65);}
.yrkes-grid-title h3 {
	font-family: trade-gothic-next;	
	font-weight: bold;
	font-size: 30px;
	color: #FFF !important;
}
.yrkes-grid-item:hover .yrkes-grid-title h3 {font-size: 36px;}

@media screen and (max-width: 414px) {
#yrkes-grid-cont { 
	padding: 0px 15px 60px 15px;
}
#yrkes-grid .front-page-header { padding: 0 15px 0 15px;}
	
}

@media screen and (min-width: 630px) and (max-width: 1020px) {
	.yrkes-grid-item { flex: 0 1 calc(50% - 1em); } 
}
@media screen and (max-width: 629px) {
	.yrkes-grid-item { flex: 0 1 calc(100%); }
}

/* AKUELT PAGE 
----------------------------------------------------------------------------------------*/



.blog .blog-entry .meta {
	color: #c8c8c8!important;
	margin-top: 5px; 
	margin-bottom: 0; 
	font-size: 14px; 
	line-height: 32px;
}

.blog h2.blog-entry-title {font-size: 24px; margin-bottom: 10px;}
.blog h2.blog-entry-title a { color: #1d1d1b; }
.blog h2.blog-entry-title a:hover {color: #1d1d1b!important; text-decoration: underline;}

.blog .blog-entry-summary {
	font-size: 16px !important; 
	color: #000!important; 
	line-height: 28px;
	margin-bottom: 15px !important;
}
.blog .blog-entry-readmore {padding: 0;margin:0;}
.blog .blog-entry-readmore a {
	color: #0b5d83 !important;
	font-weight: 700;
	font-size: 13px !important;
	border: 0!important; 
	padding: 0 !important;
	line-height: 32px;
	text-transform: uppercase !important;
	letter-spacing: 1px;
	margin-bottom: 0px;
}
.blog .blog-entry-readmore a:hover {text-decoration: underline;}
.blog .blog-entry.large-entry .blog-entry-readmore .fa-angle-right {display: none!important;}

aside {border-left: 1px solid #f1f1f1; }

aside .widget-title {
	text-transform: none !important;
	font-size: 24px; 
	line-height: 33px; 
	color: #424242;
	border: none; 
	padding-left: 0;
	position: relative; 
	overflow: hidden;
}
aside .widget-title::after {
	content: "";
	border-bottom: 3px solid;
	border-image: linear-gradient(150deg, rgba(238,224,30,1) 0%, rgba(88,155,80,1) 40%, rgba(11,93,131,1) 73%) 1;
	position: absolute;
	bottom: .625rem;
	width: 100%;
	z-index: -1;
}
aside .widget_archive li { border-bottom: 1px solid #f1f1f1 !important; }
aside .widget_archive li:first-child {border-top: none;}

.error404 form {display: none; }

/* GUTENBERG ELEMENTS
----------------------------------------------------------------------------------------*/

/* ----------- Coloumns -------------*/

.wp-block-columns {max-width: 800px; margin: 0 auto;}
.wp-block-columns.alignwide {max-width: 1200px;} 
.wp-block-columns.alignfull {max-width: 100% !important; padding: 0 20px;}

@media screen and (min-width: 320px) and (max-width: 1040px)  {
	.wp-block-columns.alignfull {padding: 0;}
}

/* ----------- Lists -------------*/

.entry-content ol:not([class]) {list-style-type: decimal;}
.entry-content ul:not([class]) {list-style-type: disc;}
.entry-content ul:not([class]) li ul {list-style-type: circle;}

.entry-content ol:not([class]), .entry-content ul:not([class]) { 
	max-width: 768px;
	margin: 1em auto; 
	padding-left: 1em; 
	font-size: 16px;
	list-style-position: inside;
}
.entry-content ol:not([class]) {
  list-style: none;
  counter-reset: my-awesome-counter;
}
.entry-content ol:not([class]) li {
  counter-increment: my-awesome-counter;
  margin-bottom: 0.5rem;
}
.entry-content ol:not([class]) li::before {
  content: counter(my-awesome-counter);
  font-weight: bold;
  margin-right: 0.8rem;
  line-height: 1;
}
.entry-content ol:not([class]) li, .entry-content ul:not([class]) li {margin: 10px 0;}
.entry-content ol:not([class]) li ol, .entry-content ul:not([class]) li ul {margin: 10px 0 10px 25px;}

@media screen and (max-width: 767px) { 
	.entry-content ol:not([class]), .entry-content ul:not([class]) { max-width: 240px; font-size: 14px; margin: 1em 0 !important;  }
}

/* ----------- Tables -------------*/

.entry-content .wp-block-table { 
	max-width: 768px;
	width: 100%;
	margin: 0 auto 40px auto; 
	border-spacing: 0;
	border-collapse: collapse;
	padding: 10px 20px;
}

.wp-block-table th, .wp-block-table td { padding: 10px 20px !important; }

@media screen and (max-width: 414px) {	
	.entry-content .wp-block-table,
	.entry-content .wp-block-table.alignwide,
	.entry-content .wp-block-table.alignfull { 
		width: 90% !important;
		font-size: 10px;
	}
	.wp-block-table th, .wp-block-table td { padding: 5px 10px; }
}
@media screen and (min-width: 414px) and (max-width: 1024px) { 
	.entry-content .wp-block-table,
	.entry-content .wp-block-table.alignwide,
	.entry-content .wp-block-table.alignfull { 
		width: 90% !important;
	}
}


/* ----- YouTube ----- */
