/*
Theme Name:  Peace Foundation
Theme URI:   https://www.peacefoundation.org.nz
Version:     1.0
Description: A child theme of Divi. This is a custom child theme created for our site www.peacefoundation.org.nz.
Author:      Inspired Earth
Author URI:  https://www.inspiredearth.nz
Template:    Divi
*/

/*- Add any CSS custom code for this child theme below this line -*/

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif;   
    color:  #035250;
}
 
h1 {
    font-size: 44px;
    font-weight: 800;
    text-transform: uppercase;
    /*margin: 40px 0px;*/
}
 
h2 {
    font-size: 40px;
	font-weight: 800;
    line-height: 1.1em;
	text-transform: uppercase;
}
 
h3 {
    font-size: 22px;
    line-height: 1em;
	font-weight: 700;
	text-transform: uppercase;
	
}
 
.propeacework-heading h2 {
	text-transform: unset !important;
}

/*********************************
change logo for fixed header (quick and easy way)
**********************************/
/*.et-fixed-header #logo {
	content: url(https://www.peacefoundation.org.nz/wp-content/uploads/2022/05/PFlogo_White.png);
}*/

/**** LOGO REPOSITION ****/
@media only screen and (min-width: 980px) and (max-width: 1140px)  {
	header#main-header:not(.et-fixed-header) div.logo_container img {
	  max-height: 120px !important;
	  margin-left: 7.5%
	}
}
@media only screen and (min-width: 981px) {
	header#main-header:not(.et-fixed-header) div.logo_container img {
		max-height: 150%;
		margin-left: 3%;
		margin-top: 40px;
	}

	header#main-header.et-fixed-header div.logo_container img {
		max-height: 90%;
		margin-top: unset;
		margin-left: 4.5%;
	}
}
/**** END - LOGO RESPOSITION ****/

/**** Button Hover shadow ****/
.et_pb_button:hover, .et_pb_module .et_pb_button:hover {
	box-shadow: 0px 2px 18px 0px #8f8f8f;
}

/**** Position Slider content homepage ****/
@media only screen and (min-width: 981px) {
	body.home .et_pb_slide_content {
		position: absolute;
		right: 0;
		bottom: -15vh;
	}
}
@media only screen and (max-width: 980px) {
	.et_pb_slide_content {
		position: absolute;
    	right: 0;
    	bottom: -28vh;
	}
}
/**** Customised slider navigation dots *****/
body.home .et-pb-controllers {
    left: 7%;
	text-align: left;
	bottom: 5%
}
.et-pb-controllers a {
	width: 16px;
	height: 16px;
}


/***** Home page slider scroll down icon ******/
/* arrow link wrapper */
.slider-down-arrow {
	position: absolute;
	z-index: 10;
	bottom: 30px;
	left: 0;
	width: 100%;
	text-align: center;
	font-size: 32px;
}
/* arrow link */
.slider-down-arrow a {
	line-height: 1em;
	display: inline-block;
	color: white;
	text-shadow: 0 1px 8px rgba(0,0,0,0.5);
	transition: all 0.2s ease;
}
/* animate the arrow link if not hovered,
note: this uses animation via Divi Booster */
.slider-down-arrow a:not(:hover) {
	animation: fullwidth-header-bounce 2.2s ease-out infinite;
}
/* add hover effect on arrow link */
.slider-down-arrow a:hover {
	text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

@media (min-width: 1200px) {
	/* increase arrow size, and adjust positioning, for larger screens */
	.slider-down-arrow {
		bottom: 30px;
		font-size: 48px;
	}	
}

@media (max-width: 980px) {
	/* hide arrow when stuff stacks */
	.slider-down-arrow {
		display: none;	
	}
}

/*** Row modules same height ***/
.flex-SameSize .et_pb_column_1_3, .flex-SameSize .et_pb_column_1_4,
.flex-SameSize .et_pb_column_1_5, .flex-Samesize {
	display: flex;
}
/*** Row modules same height - end ***/



/** Menu typography customisations **/
#top-menu li li {
	padding-bottom: 10px;
}
.nav li li {
	line-height: 1em;
	padding-bottom: 10px;
}

/*** Blank accordion ***/
.accordion-white > .et_pb_toggle_close {
    background-color: unset;
}
/*** Blank accordion - end ***/

@media only screen and (min-width: 981px) {
	#top-menu>li:last-child ul.sub-menu {
    	right: 0;
	}
	#top-menu>li:last-child ul.sub-menu ul.sub-menu {
    left: -240px;
	}
}

/* Logo Change on homepage */
body.home img#logo {
content: url(https://www.peacefoundation.org.nz/wp-content/uploads/2022/05/PFLogo_White.png);
}

/*** Subscribe Form Homepage ***/
.wpcf7-form .one_half, .wpcf7-form .one_half_last, .wpcf7-form #form-email {
    margin-bottom: 14px !important;
  /*  margin-top: 0 !important; */
}

form.wpcf7-form .clear {
    clear: unset;
}


/* post table pro  */
.posts-data-table thead {
	display: none;
}

@media screen and (min-width: 600px) {
	.posts-table-controls .posts-table-swtabs-filters:first-child
	{
		margin-left: 0;
		margin-right: auto;
	}
}

.posts-table-controls .posts-table-select-filters {
	margin-bottom: 3px;
	max-width: 100%;
}

.posts-table-swtabs-filters button {
	display: inline-block;
	cursor: pointer;
	font-weight: 600;
	box-shadow: none;
	padding: 7px 12px;
	margin: 0 5px 5px 0;
	width: auto;
	height: auto;
	line-height: normal;
	transition: .3s;

	background: #ffffff;
	border: 1px solid #07534e;
	border-radius: 0;
	color: #07534e;
}
.posts-table-swtabs-filters button.current {
	background: #07534e;
	color: #f8f8f8;
}
.posts-table-swtabs-filters button:hover {
	color: #fff;
	background-color: #2e6e6a;
	text-decoration: none;
}
