/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Hero Slider */

div#n2-ss-1 .n2-thumbnail-dot.n2-active picture:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background-color: #555a62;
  animation: fillAnimation 8000ms linear forwards;
  height: 8px;
}

@keyframes fillAnimation {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}
/* Hero Slider End */

.CardWrapper:hover .CardImage{
	transform: translateX(0);
}

.CardWrapper:hover .CardImageWrapper{
	width: 150px;
}

.CardWrapper:hover .CardTextWrapper{
	  transform: translateX(20px);
}

.CardWrapper {
  position: relative;
  width: 300px;
  height: 200px;
  background-color: #003366;
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1rem;
  transition: padding 0.3s ease;
	margin: 50px;
	
}

.CardImageWrapper{
	flex-shrink: 0;
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
}

.CardImage {
  height: 200px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.CardTextWrapper{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  transition: transform 0.3s ease;
}

/* Nav Menu */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}
.inside-header {
  padding: 0 40px;
}
.main-navigation .main-nav ul li.menu-item-has-children > a {
  padding-right: 20px;
}
.main-navigation .main-nav ul li a {
  padding-top: 16px;
  padding-bottom: 16px;
}
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a {
  font-weight: 500;
}
.main-navigation ul ul {
  float: right;
  top: 92px;
}
.main-navigation .main-nav ul ul li a {
  padding: 8px;
}
.main-navigation.sub-menu-left .sub-menu {
  left: 0;
}
.menu-item-has-children .dropdown-menu-toggle {
  display: none;
}

/* MOBILE HEADER + NAV */
@media (max-width: 768px) {
  /* Logo lidt mindre */
  .site-header .header-image {
    width: 160px;
    max-width: 160px;
    height: auto;
  }

  /* Header som flex, så logo + burger + globus kan ligge på samme linje */
  .inside-header {
    padding: 0 16px;
    display: flex !important;
    align-items: center;
  }

  .inside-header .site-logo {
    flex: 0 1 auto;
  }

  /* Burger-knap */
  .mobile-menu-control-wrapper button.menu-toggle {
    padding: 0 12px !important;
  }

  #mobile-menu-control-wrapper {
    margin-left: auto;
    order: 2;
  }

  /* Widget med globus-ikon */
  .inside-header .header-widget {
    display: block !important;
    order: 3;
    margin-left: 8px !important;
    flex: 0 0 auto;
  }

  .menu-item-has-children .dropdown-menu-toggle {
    display: block;
  }

  .main-navigation.toggled .main-nav ul ul.toggled-on {
    padding-left: 2rem;
  }
}

/* Default header color */
.default-color {
  background-color: rgba(0, 49, 102, 0.95);
  transition: background-color 0.3s ease-in-out; /* Transition effect */
}

/* Color on scroll */
.scroll-color {
  background-color: #003065;
  transition: background-color 0.3s ease-in-out; /* Transition effect */
}

/* End Nav Menu */

/* Mobile Nav Menu */
.mobile-menu-control-wrapper button.menu-toggle {
  background-color: transparent;
  border-radius: 0;
  padding: 0 24px;
}

/* Mobile Nav Menu */

/* Form */

.kontakt-section .e-con-inner::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgb(0 0 0 / 0%));
}
.wpcf7-form {
  text-align: center;
}
.wpcf7-form .wpcf7-submit.btn-submit {
  background-image: url("/wp-content/uploads/2023/12/reshot-icon-right-arrow.svg");
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 64px;
  border-radius: 0;
  padding: 24px 48px;
  transition: all 300ms ease;
}

.wpcf7-form .wpcf7-submit.btn-submit:hover,
.wpcf7-form .wpcf7-submit.btn-submit:focus {
  background-color: transparent;
  background-size: 68px;
}

.wpcf7-not-valid-tip {
  text-align: left;
}
.wpcf7-spinner {
  display: block;
  margin: auto;
}

.wpcf7-form-control-wrap .wpcf7-form-control {
  border-radius: 8px;
  box-shadow: inset 2px 2px 5px #c9c9c9;
}
/* End Form */

/* Footer */
.footer-widgets-container {
  padding: 100px 16px 32px 16px;
}
.footer-widgets .widget {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-widget-2 aside {
  padding: 0 !important;
}
.footer-widget-2 img {
  width: 350px;
}
.footer-bar {
  padding-bottom: 24px;
}
.footer-bar .widget-title {
  display: inline-block;
  margin-bottom: 4px;
}
/* End Footer */

/*Teams Section */
.teams-wrapper,.news-wrapper {
  font-family: Montserrat, sans-serif;
  max-width: 1440px;
  margin: auto;
  text-align: center;
  padding: 32px 16px;
}
.teams-wrapper > h3 {
  margin-bottom: 48px;
  font-size: 42px;
}
.teams-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.teams-container .team-item{ 
  flex: 0 0 100%; 
  box-sizing: border-box;
  min-width: 300px;
  margin-bottom: 40px;
}

@media screen and (min-width: 769px) {
 .teams-container .team-item { 
  flex-basis:30%; 
 }
}

.team-item *{
    color:#303030;
}
.team-description {
  text-align: center;
}
.team-description h3 {
  font-size: 20px;
  margin-bottom: 0;
  font-weight:600;
}
.team-description p {
  margin-bottom: 0;
}

.team-item .circle {
  object-fit: cover;
  height: 300px;
  width: 300px;
  border-radius: 50%;
  margin-bottom: 32px;
}

/*Teams Section */

/* News */

.news-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;;
  justify-content: center;
  gap: 40px;
}
.news-container .news-item { 
  flex: 0 0 100%; 
  box-sizing: border-box;
}
@media screen and (min-width: 769px) {
 .news-container .news-item { 
  flex: 0 0 30%; 
}
}

.news-content h3 a{
	color:#003065;
}
.news-content{
	padding:16px;
	    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
	
}
.button.btn-round{
	background-color: #303030 ;
	color:#ffffff;
	padding:8px 56px;
	border-radius:25px;
	font-weight:600;
	text-transform:uppercase;
}
.button.btn-round:hover{
	background-color:#8DAB4A;
}
/* News */
.single-post .site-content .category-news{
	max-width: 800px;
	margin: 0 auto;
}

.wp-show-posts-read-more{
	border-radius: 3px !important;
	border: 1px solid !important;
}

.single-post .site-content .category-news .inside-article img{
	width: 100%;
    object-fit: cover;
    max-height: 400px;
	object-position: top;
}

.wp-show-posts-read-more:hover{
	background-color: #0C74BC !important;
	color: white !important;
}

h1.entry-title{
	font-size: 38px;
}

/* SIngle Post Page */
.single-post .site-content{
	margin-top: 64px;
}
.single-post .byline{
	display:none;
}
.author a{
	text-decoration:none;
	color: #575760;
}
/* SIngle Post Page */
.n2-ss-slider-controls .nextend-arrow-next>img,
.n2-ss-slider-controls .nextend-arrow-previous>img{
	display:none !important;
}
.n2-ss-slider-controls .nextend-arrow-next::after{
	content:"";
	display:block;
	width: 24px;
    height: 24px;
	position:relative;
	background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAyklEQVR4nO3YrUqFQRSG0Y0KIlgU1GQTbFbBK7R7AXaDXfBEtfkTBJtJsFj0ApaIk04X2cO76qQHZubb81VFRERERMQ/wjUesVud4cavJ2xXV9jB84h5wFZ1hT28jJhbbFZX2MfriFlgo7rCAd5GzBXWqysc4n3EXGKtusIRPkbMBVarKxzjc8ScY6W6wgm+RszZ8uLPjdDV6fJI0D9kmq3VhRkOuxmuXzN8EM0wophhaDTDGG+WhxXuZnnqLnDf/udDRERERET9hW+O88TtYu+D0QAAAABJRU5ErkJggg==") no-repeat;
	background-size:24px;
}

.n2-ss-slider-controls .nextend-arrow-previous::after{
    content:"";
	display:block;
	width: 24px;
    height: 24px;
	position:relative;
	background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAx0lEQVR4nO3YvyoHUBjH4RelmJTJpIw2g9XstmxuwOACLGaz8pPilyuwKZNFBoPpMTgLZVXv6fvcwafOn/ecqoiIiIiI+AXbuMNNdYUtPPr2UB1hE4sR8YSd6gYbuB4Rz9itbrCOqxHxgr3qBmu4HBGv2K9usIqLEfGGg+oGKzgfEe84rKYRZyPiA0fVEU5HxCeOqyOc6Ot2lpDFfEtrqs0+zfE71YU41Ygy1dA41Rg/1cPqj6fusib4fLj/MRJERERERET9vy9nDsTGhVq47AAAAABJRU5ErkJggg==") no-repeat;
	background-size:24px;
}

@media screen and (min-width: 426px) {
.n2-ss-slider-controls .nextend-arrow-previous::after,
.n2-ss-slider-controls .nextend-arrow-next::after{
	background-size:48px;
	width: 48px;
    height: 48px;
}
}
@media screen and (max-width: 425px) {
.n2-ss-slider .n2-ss-slider-controls-absolute-right-center>*{
	margin-right:8px !important;
}
.n2-ss-slider .n2-ss-slider-controls-absolute-left-center>*{
	margin-left:8px !important;
}
}

.custom-link{
	color: #6ec4e4;
}

.custom-link:hover{
	color: #C6E1EA;
}


.zoom-social-icons-list--with-canvas .socicon, .zoom-social-icons-list--with-canvas .dashicons, .zoom-social-icons-list--with-canvas .genericon, .zoom-social-icons-list--with-canvas .academicons, .zoom-social-icons-list--with-canvas .fa{
	background-color: white !important;
	color: #003065 !important;
}


/*White Button hover*/

#white-btn:focus {
	background-color: #ffffff!important;
}

#black-btn:focus {
	background-color: #000000!important;
}

/*Slide in box*/
.parent-container {
  display: flex;
  max-width: 536px;
  align-items: stretch;
  overflow: hidden;
}

.moving-section {
  display: flex;
  align-items: stretch;
  position: relative; 
}

.slide-in-box {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 250px;              
  color: white;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
}

.middle-box {
  flex: 0 0 auto;              
  transition: transform 0.4s ease;
  position: relative;
  z-index: 0;
}

.right-box {
  flex: 0 0 auto; 
	z-index: 1;
}

@media (min-width: 763px) {
	.parent-container {
		
	}
}

.parent-container:hover .slide-in-box {
  transform: translateX(0);  
}

.parent-container:hover .middle-box {
  transform: translateX(200px); 
}