/* 
Theme Name:		 Analysis Child Theme
Theme URI:		 https://www.dennisdevogel.nl/
Description:	 Themed by <a href=\"https://dennisdevogel.nl/\">https://dennisdevogel.nl/</a>
Author:			 Dennis de Vogel commissioned by Analysing
Author URI:		 https://analysisnetworking.com/
Template:		 twentytwentythree
Version:		 1.0.0
Text Domain:	 Twenty Twenty-Two-child
-------------------------------------------------------------- */ 

/* DDV-GD :: Theme customization
------------------------------------------------------- */

/* FONT REPLACEMENT FOR HARFANG : */

body{
	padding-left: 0 !important;
	padding-right: 0!important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.wp-block-template-part .is-layout-constrained .alignwide {
    max-width: 90vw !important;
	background-image: url('./images/top_background_green-line.png') !important;
	background-repeat: repeat-x;
	padding-right: 15px !important; /* DDV prevents topmenu can hover over the 'solutions by measuring'label */
    margin-right: 150px !important; /* DDV prevents topmenu can hover over the 'solutions by measuring'label */
}

.wp-block-post-title {
    /*visibility: hidden; DDV WANTS TO UNDO TITLE ON THE HOMEPAGE - SELECT */
}

h1{
	color: #006847;
}

a{
	text-decoration: none; 
}

a:hover{
	text-decoration: none;
}

.wp-site-blocks {
    padding-top: 0px !important; /* DDV top of the page */
    padding-bottom: 0px !important; /* DDV bottom of the page */
}

.wp-header-group{
	background-color: white;
}

@media (max-width: 699px){
header {
	height: 90px;
	clear: both;
    font-size: 1.2rem;
    max-width: 100%;
    margin: 0 !important; /* DDV no distance left and right like original */
    padding: 0 !important; /* DDV no distance left and right like original */
    position: relative;
    color: #000;
	/* DDV Measuring-by-solution horizontal line */
	background-image: none !important;
	background-repeat: no-repeat;
	background-position: top 0% right 0%;
}
.wp-site-blocks > * {
    padding-top: 40px;
}
}

@media (min-width: 700px){
header {
	height: 120px;
	clear: both;
    font-size: 1.2rem;
    max-width: 100%;
    margin: 0 !important; /* DDV no distance left and right like original */
    padding: 0 !important; /* DDV no distance left and right like original */
    position: relative;
    color: #000;
	/* DDV Measuring-by-solution horizontal line */
	background-image: url('./images/Header_background_Solution-by-measuring.png') !important;
	background-repeat: no-repeat;
	background-position: top 0% right 0%;
}
.wp-site-blocks > * {
    padding-top: 0px;
}
}

@media (min-width: 1200px){
header {
	max-width: 1600px;
	margin-left: auto !important;
	margin-right: auto !important;
	height: 120px;
	clear: both;
    font-size: 1.2rem;
    padding: 0 !important; /* DDV no distance left and right like original */
    position: relative;
    color: #000;
	/* DDV Measuring-by-solution horizontal line */
	background-image: url('./images/Header_background_Solution-by-measuring.png') !important;
	background-repeat: no-repeat;
	background-position: top 0% right 0%;
}
.wp-site-blocks > * {
    padding-top: 0px;
}
}

.wp-block-navigation {
    display: block;
    font-weight: 600;
    text-decoration: none;
	z-index: 9;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    right: -1px !important;
	left:auto !important;
    background-color: #006847 !important;
    Color: #fff !important;
    margin-top: -8px !important;
	border: none !important;
}

.wp-block-navigation a:hover{
	text-decoration: none;
}

.mega-menu-item .mega-menu-item-type-widget .widget_media_image {
    height: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
    text-align: center !important;
}


@media only screen and (max-width: 768px){
#mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle + #mega-menu-max_mega_menu_1 {
    z-index: 999;
	}
	
.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container{
	right:auto;
	}
}

lo, li { 
	padding-bottom: 1em !important;
}

/* DDV :: SET THE FEATURED HEADER 50PX LOWE FOR VISIBILITY MENU BELOW LINE - ANALYSISNETWORKING */
@media (max-width: 1127px){
.wp-block-post-featured-image {
    position: relative;
    padding-top: 10px;
	z-index: 0;
}

.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50 {
    opacity: .5;
    margin-top: 10px;
	z-index: 0;
}
}

/* DDV :: POST TITLE LES DISTANCE TO CONTENT: -20px - ANALYSISNETWORKING */
.wp-block-post-title {
    word-break: break-word;
    box-sizing: border-box;
    margin-bottom: -20px !important;
}


/* DDV :: BLOG POST ITEMS - ANALYSISNETWORKING */
.wp-block-latest-posts.wp-block-latest-posts__list li {
    clear: both;
    background-color: #f5f5f5;
}

.wp-block-latest-posts__post-title{
	font-size:22px;
	font-weight:600;
}

.wp-block-latest-posts__post-date {
    padding: 10px;
}

.wp-block-latest-posts__post-excerpt {
    margin-bottom: 1em;
    margin-top: .5em;
	padding: 10px;
}

.wp-block-post-author {
    display: none;
}


/* Remove meta data */
.entry-meta .byline, .entry-meta .cat-links { display: none; }
 
.entry-meta .posted-on { display: none; }


/* DDV :: OTHER CHANGES - ANALYSISNETWORKING */

.wp-block-site-tagline{
	font-weight: 100;
}

/* DDV :: SMALL CSS EFFECTS - ANALYSISNETWORKING */

/* DDV fade-in effect */
.fade-in {
	opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 2s;
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

/* DDV grow-by-hover effect */
.grow {
  	transform: scale(0.9) !important;
  	transition: transform .4s !important; /* Animation */
}

.grow:hover {
  	transform: scale(1.0) !important; /* (20% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

/* DDV smooth-scroll effect */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html{
    scroll-behavior: auto;
  }
}

/* DDV :: FOOTER CUSTOM CHANCHED ELEMENT - ANALYSISNETWORKING */
.wp-footer-group {
	color: #ffffff;
	background-color: #006847;
	font-style: none;
	padding-bottom: 25px;
}

.wp-footer-group a{
	color: white;
	font-style: none;
}

:root {
    background-color: #006847;
}

/* Zorg dat het navigatiemenu horizontaal getoond wordt */
.wp-block-navigation__container {
  display: flex;
  flex-direction: row;
  gap: 2rem; /* optioneel: afstand tussen menu-items */
}

/* Optioneel: submenu's goed positioneren */
.wp-block-navigation__submenu-container {
  position: absolute;
  background: white; /* Of je eigen achtergrondkleur */
  display: none;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.wp-block-navigation__submenu:hover > .wp-block-navigation__submenu-container,
.wp-block-navigation__submenu:focus-within > .wp-block-navigation__submenu-container {
  display: block;
}