/*
Theme Name: White Matter Brain Cancer Trust
Theme URI: http://www.avatar.co.nz
Description: White Matter Brain Cancer Trust by <a href="http://www.avatar.co.nz">Avatar</a>
Version: 1
Author: Avatar
Author URI: http://www.avatar.co.nz
Tags: avatar
*/


* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}

body {
	font-family: 'PT Sans', Arial, sans-serif;
	font-size: 18px;
	line-height: 1.5;
	color: #404041;
	background: #fff;
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.wrapper {
	width: 1120px;
	margin: 0 auto;
}
a img {
	border: none;
}

/* Header
-------------------------------------------------------------- */ 

#header {
	width: 100%;
	background: url(images/white-bg.png);
}
.home #header {
	position: absolute;
	z-index: 200;
}
#top-menu {
	width: 100%;
	background: #fff;
}
#logo-container {
	padding: 36px 0;
	position: relative;
}
#header .btn {
	padding: 16px 50px 28px;
}
.btn-support {
	float: left;
}
.btn-donation {
	float: right;
}
.btn-support:before, .btn-donation:before {
	content: '';
	position: relative;
	left: 0;
	top: 7px;
	width: 30px;
	height: 30px;
	margin-right: 15px;
	display: inline-block;
	background-repeat: no-repeat;
}
.btn-support:before {
	background: url(images/icon-support.svg);
	background-size: 30px 30px;
}
.btn-donation:before {
	background: url(images/icon-donation.svg);
	background-size: 30px 30px;
	top: 8px;
}
#logo {
	position: absolute;
	width: 250px;
	height: 250px;
	left: 50%;
	top: 20px;
	margin-left: -125px;
}
#mobile-logo {
	display: none;
}

/* Menu
-------------------------------------------------------------- */ 

#menu-container {
	float: left;
	position: relative;
	width: 100%;
}
#menu-container ul {
	float: left;
	list-style-type: none; 
	padding: 0; 
	margin: 0;
	width: 100%;
}
#menu-container ul li {
	float: left; 
	width: 14.28%;
	border-right: 1px solid #eee;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 200;
}
.home #menu-container ul li {
	width: 16.6%;
}
.home #menu-container ul li.sect-logo {
	display: none;
}
#menu-container ul li:first-child {
	border-left: 1px solid #eee;
}
#menu-container ul li a {
	display: block;
	width: 100%;
	padding: 25px 0;
	color: #404041;
	text-align: center;
	font-size: 16px;
	line-height: 20px;
	text-decoration: none;
	position: relative;
}
.home #menu-container ul li a {
	padding: 15px 0;
}
#menu-container ul li.sect-logo a {
	text-indent: -10000px;
}
#menu-container ul li.sect-logo a:after {
	position: absolute;
	content: '';
	width: 120px !important;
	height: 120px;
	background: url(images/sect-logo.png);
	left: 50%;
	top: 70px;
	margin-left: -60px;
	z-index: 1000;
}
#menu-container ul li a:after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	width: 0;
	height: 3px;
	margin: auto;
	background-color: #ef4036;
	-webkit-transition: width .2s ease-in-out;
	-moz-transition: width .2s ease-in-out;
	transition: width .2s ease-in-out;
}
#menu-container ul li:hover a::after {
	width: 100%;
}
#menu-container ul li a:hover {
	color: #404041;
	text-decoration: none;
	background: #fff;
}
#menu-container ul ul {
	display: none;
}

/* --------- Drop downs --------- */

#menu-container li ul.sub-menu {
	display: none;
	position: absolute;
	z-index: 200;
	clear: both;
	width: 159px;
	top: 70px;
	margin: 0;
}
.home #menu-container li ul.sub-menu {
	top: 50px;
	border-top: 1px solid #d73930;
	width: 185px;
}
#menu-container li ul.sub-menu:hover {
	display: block;
}
#menu-container li ul.sub-menu li {
	clear: both;
	padding: 0;
	margin: 0;
	float: left;
	border-left: none;
}
#menu-container li ul.sub-menu li:first-child {
	border-left: none;
}
#menu-container li ul.sub-menu li a {
	display: block;
	width: 159px;
	color: #fff;
	font-size: 15px;
	line-height: 1;
	padding: 15px 20px;
	font-weight: normal;
	text-align: center;
	text-decoration: none;
	background: #ef4036;
	border-left: 1px solid #d73930;
	border-right: 1px solid #d73930;
	border-bottom: 1px solid #d73930;
}
.home #menu-container li ul.sub-menu li a {
	width: 185px;
}
#menu-container li ul.sub-menu li a::after {
	content: none;
}
#menu-container li ul.sub-menu li a:hover, #menu-container li ul.sub-menu li.active a {
	color: #fff;
	text-decoration: none;
	background: #d73930;
}
#menu-container li ul.sub-menu ul {
	display: none;
	margin-left: 159px; /* ul width */
	top: 0;
}
.home #menu-container li ul.sub-menu ul {
	margin-left: 185px; /* ul width */
}
#menu-container li ul.sub-menu ul li a:hover {
	color: #fff;
}

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

#slider {
	width: 100%;
	height: auto;
	position: relative;
}
.bx-wrapper .bx-pager,
.bx-wrapper .bx-controls-auto {
	bottom: 65px !important;
	z-index: 100;
}
.banner-arrow {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 30px;
	z-index: 200;
	background: url(images/banner-arrow.png) bottom center;
}
#sect-banner {
	width: 100%;
}
#sect-banner img {
	width: 100%;
	height: auto;
	display: block;
}

/* Body
-------------------------------------------------------------- */

section {
	width: 100%;
	padding: 75px 0;
}
section.white {background: #fff;}
section.red {background: #ef4036; color: #fff;}
section.grey {background: #eee;}
section#quote {
	text-align: center;
	padding: 56px 0 71px;
	color: #ef4036;
}
section#quote h2 {
	margin: 0;
	color: #ef4036;
}
section#quote h2:before {
	content: '"';
	font-size: 100px;
	line-height: 15px;
	position: relative;
	left: -10px;
	top: 35px;
	width: 32px;
	height: 32px;
	margin: 0;
}
section#quote h2:after {
	content: '"';
	font-size: 100px;
	line-height: 15px;
	position: relative;
	right: -10px;
	top: 35px;
	width: 32px;
	height: 32px;
	margin: 0;
}
section#intro {
	font-size: 24px;
	text-align: center;
	padding: 122px 0 116px;
	background: #ef4036 url(images/watermark.png) no-repeat center center;
}
main {
	display: block;
}
h1 {
	color: #404041;
	font-size: 40px;
	line-height: 1.3;
	font-weight: bold;
	margin: 0 0 33px 0;
	padding: 0 0 21px;
	text-align: center;
	position: relative;
}
h1:after {
	content: '';
	width: 76px;
	height: 5px;
	position: absolute;
	left: 50%;
	bottom: 0;
	margin-left: -38px;
	background: #ef4036;
}
.home h1 {
	padding-top: 100px;
}
.home h1:before {
	content: '';
	width: 100px;
	height: 90px;
	position: absolute;
	left: 50%;
	top: 0;
	margin-left: -50px;
	background: url(images/icon-fact.png);
}
h2 {
	color: #ef4036;
	font-size: 32px;
	line-height: 1.3;
	font-weight: bold;
	margin: 30px 0 0 0;
}
h3 {
	color: #404041;
	font-size: 24px;
	font-weight: bold;
	margin: 30px 0 0 0;
}
p {
	margin: 10px 0 20px 0;
}
a {
	color: #ef4036;
	text-decoration: none;
}
a:hover {
	color: #ef4036;
	text-decoration: underline;
}
#body ul {
  list-style-type: none;
  margin: 10px 0 30px;
  padding: 0;
}
#body li { 
  margin: 0 0 10px;
  padding: 0 0 0 20px;
}
#body li:before {
  content: "";
  margin-right: 10px;
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ef4036;
  border-radius: 50%;
  margin: 0 10px 1px -20px;
}
hr {
    clear: both;
    border: none;
    height: 1px;
    color: #eee;
    background-color: #eee;
    margin: 30px 0;
}
a.btn {
	color: #fff;
	font-size: 20px;
	line-height: 1;
	font-weight: bold;
	text-transform: uppercase;
	display: inline-block;
	padding: 27px 50px 28px 50px;
	background: #ef4036;
	border-radius: 3px;
	text-decoration: none;
}
a.btn:hover {
	color: #fff;
	background-color: #d73930;
	text-decoration: none;
}
div.ddsg-wrapper h2, div.ddsg-wrapper p {
	display: none;
}
.post-container {
	border-bottom: 1px solid #eee;
	margin: 30px 0;
	padding-bottom: 20px;
}
.post-container h2 {
	margin: 0;
}
.post-thumb {
	float: left;
	margin: 5px 30px 0 0;
}
.date {
	color: #999;
}
.single .date {
	text-align: center;
}
a.phone-link {
	color: #333;
	text-decoration: none;
	cursor: default;
}
.left {
	float: left;
	margin: 0 5px 0 0;
}
.right {
	float: right;
	margin: 0 0 0 5px;
}
#breadcrumb-container {
	width: 100%;
	background: #eee;
	color: #404041;
	font-size: 14px;
	line-height: 1.5;
	padding: 14px 0 15px 0;
}
.clear-floats {
	clear: both;
}
.clearfix:before,
.clearfix:after {
    content:"";
    display:table;
}
.clearfix:after {
    clear:both;
}
.clearfix {
    zoom:1; /* For IE 6/7 (trigger hasLayout) */
}

/* CTAs
-------------------------------------------------------------- */

section#ctas {
	width: 100%;
	padding: 75px 0 55px 0;
}
#ctas a {
	float: left;
	display: block;
	max-width: 360px;
	width: 100%;
	margin: 0 20px 20px 0;
}
#ctas .cta-effect {
	position: relative;
	float: left;
	overflow: hidden;
	max-width: 360px;
	max-height: 239px;
	width: 100%;
	background: #ef4036;
	text-align: center;
	cursor: pointer;
}
#ctas a.last {
	margin-right: 0 !important;
}
div.cta-effect {
	background: #ef4036;
}
#ctas .cta-effect img {
	position: relative;
	display: block;
	height: auto;
	max-height: 100%;
	width: 100%;
	max-width: 100%;
	opacity: 1;
}
#ctas .cta-effect .cta-title {
	color: #fff;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
#ctas .cta-effect h2 {
	color: #fff;
	font-size: 24px;
	line-height: 1;
	font-weight: bold;
	margin: 0;
	padding: 13px 10px 22px 10px;
	width: 100%;
	background: url(images/red-85percent.png);
	background-size: 30px 30px;
	position: absolute;
}
#ctas h2:before {
	content: '';
	position: relative;
	left: 0;
	top: 7px;
	width: 30px;
	height: 30px;
	margin-right: 15px;
	display: inline-block;
	background-repeat: no-repeat;
}
#ctas .cta-support h2:before {
	background: url(images/icon-support.svg);
	background-size: 30px 30px;
}
#ctas .cta-donation h2:before {
	background: url(images/icon-donation.svg);
	background-size: 30px 30px;
	top: 8px;
}
#ctas .cta-events h2:before {
	background: url(images/icon-events.svg);
	background-size: 30px 30px;
}
div.cta-effect img,
div.cta-effect h2 {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
}
div.cta-effect img {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}
div.cta-effect h2 {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 25px;
}
div.cta-effect:hover img {
	opacity: 0.15 !important;
}
div.cta-effect:hover h2 {
	-webkit-transform: translate3d(0,-84px,0);
	transform: translate3d(0,-84px,0);
	background: none !important;
}

/* Forms
-------------------------------------------------------------- */

#body .gform_body ul, #sect-body .gform_body ul {
    margin: 0;
    padding: 0;
}
#body .gform_body ul li, #sect-body .gform_body ul li {
    background-image: none;
    margin: 0 0 10px 0;
    padding: 0;
}
#body .gform_body ul li:before {
  content: none;
}
#body .gform_body ul li li, #sect-body .gform_body ul li li {
    margin: 0;
}
#body .gform_body ul li.gfield.gfield_error, #sect-body .gform_body ul li.gfield.gfield_error, #body .gform_body ul li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning, #sect-body .gform_body ul li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning {
    background-color: #FFDFE0;
}
.gform_wrapper .top_label .gfield_label {
    margin-bottom: 0 !important;
}
.gform_wrapper input.medium {
    border: 1px solid #ddd;
}
.gform_wrapper textarea.medium {
    width: 100% !important;
	border: 1px solid #ccc;
}
.gform_confirmation_message {
	background: #eee;
	padding: 20px 40px 10px 40px;
	border: 3px solid #ccc;
	margin-top: 20px;
	display: inline-block;
}
#body .gform_body ul li#field_2_12 label { /* Hide catcha label */
	display: none;
}
.gform_button {
	color: #fff;
	font-size: 20px;
	line-height: 1;
	font-weight: bold;
	text-transform: uppercase;
	display: inline-block;
	padding: 27px 50px 28px 50px !important;
	background: #ef4036;
	border-radius: 3px;
	text-decoration: none;
	border: none;
	cursor: pointer;
    -webkit-appearance: none;
}
.gform_button:hover {
	color: #fff;
	background-color: #d73930;
	text-decoration: none;
	cursor: pointer;
}

/* WordPress Core
-------------------------------------------------------------- */

.alignnone {
    margin: 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 0 auto 30px auto;
}

.alignright {
    float:right;
    margin: 0 0 30px 30px;
}

.alignleft {
    float: left;
    margin: 0 30px 30px 0;
}

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

a img.alignright {
    float: right;
    margin: 0 0 30px 30px;
}

a img.alignnone {
    margin: 0;
}

a img.alignleft {
    float: left;
    margin: 0 30px 30px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 0 30px 30px 0;
}

.wp-caption.alignleft {
    margin: 0 30px 30px 0;
}

.wp-caption.alignright {
    margin: 5px 0 30px 30px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 12px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Responsive Images
-------------------------------------------------------------- */

.entry-content img,
.comment-content img,
#footer img,
.widget img {
	max-width: 100%; /* Fluid images for posts, comments, and widgets */
}
img[class*="align"],
img[class*="wp-image-"] {
	height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}
img.size-full, #body img {
	max-width: 100%;
	width: auto; /* Prevent stretching of full-size images with height and width attributes in IE8 */
	height: auto;
}

/* Footer
-------------------------------------------------------------- */

#footer-container {
	clear: both;
	width: 100%;
	background: #404041;
	padding: 30px 0 10px;
}
#footer {
	color: #fff;
	font-size: 15px;
}
#footer p {
	margin: 0 0 20px 0;
}
#footer a {
	color: #fff;
}
#footer a:hover {
	color: #fff;
}
#copyright {
	float: left;
	width: 45%;
}
#footer-links {
	float: right;
	width: 45%;
	text-align: right;
}
#footer-links a {
	margin: 0 0 0 15px;
}
#social-icons a {
	margin-left: 10px;
}
#social-icons img {
	width: 40px;
	height: 40px;
}
#social-icons a:hover img {
	opacity: 0.5;
}
#footer p#avatar-link {
	margin-top: 30px;
}
#avatar-link a {
	color: #999;
}
#avatar-link a:hover {
	color: #999;
}

/* Mobile Menu
-------------------------------------------------------------- */

#mobile-menu-btn, #mobile-menu-container {
	display: none;
}
#mobile-menu-btn {
	clear: both;
	margin: 0;
	color: #fff;
	font-weight: 400;
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
	text-align: center;
	padding: 13px 10px 12px;
	background: #ef4036;
	position: relative;
}
a#mobile-menu-btn:hover {
	color: #fff;
	background: #d73930;
	text-decoration: none;
}
@media screen and (max-width: 980px) {
	#mobile-menu-btn i.icon-menu {
		display: inline-block;
	}
	#mobile-menu-btn.selected i.icon-menu {
		display: none;
	}
	#mobile-menu-btn i.icon-cancel {
		display: none;
	}
	#mobile-menu-btn.selected i.icon-cancel {
		display: inline-block;
	}
	#mobile-menu-container ul, #mobile-menu-container ul li, .home #mobile-menu-container ul li {
		width: 100%;
		display: block;
		list-style: none;
		margin: 0;
		padding: 0;
	}
	#mobile-menu-container ul li {
		position: relative;
		border-right: none;
	}
	#mobile-menu-container ul li:first-child {
		border-left: none;
	}
	#mobile-menu-container ul li.sect-logo {
		display: none !important;
	}
	#mobile-menu-container ul li a, .home #mobile-menu-container ul li a {
		width: 100%;
		display: block;
		color: #fff;
		padding: 15px;
		text-align: center;
		font-size: 18px;
		line-height: 18px;
		text-decoration: none;
		border-top: 1px solid #d73930;
		background: #ef4036;
	}
	#mobile-menu-container ul li a::after {
		content: none;
	}
	#mobile-menu-container ul li a:hover {
		color: #fff;
		text-decoration: none;
		background: #d73930;
	}
	#mobile-menu-container ul li ul {
		display: none;
	}
	#mobile-menu-container ul li ul.sub-menu, .home #mobile-menu-container ul li ul.sub-menu {
		position: static;
		width: 100%;
		top: 0;
	}
	#mobile-menu-container ul li.current-menu-item ul, #mobile-menu-container ul li.current-menu-parent ul {
		/* display: block; */
	}
	#mobile-menu-container ul li ul.sub-menu li a, .home #mobile-menu-container ul li ul.sub-menu li a {
		font-size: 15px;
		line-height: 1;
		font-weight: normal;
		text-transform: none;
		text-align: center;
		width: 100%;
		background: #d73930;
		border-top: 1px solid #c1332b;
	}
	#mobile-menu-container li ul.sub-menu li a:hover, .home #mobile-menu-container li ul.sub-menu li a:hover {
		background: #c1332b;
	}
	#mobile-menu-container ul li span {
		position: absolute;
		z-index: 1;
		right: 0;
		top: 0;
		width: 50px;
		height: 50px;
		display: block;
		text-align: center;
		cursor: pointer;
		background: url(images/plus-icon.png) no-repeat center center;
	}
	#mobile-menu-container ul li span.active {
		background: url(images/minus-icon.png) no-repeat center center;
	}
}

/* Mobile
-------------------------------------------------------------- */

#view-full-site, #view-mobile-site {
	display: none;
}

@media screen and (max-width: 1140px) {
	.wrapper {
		width: 960px;
	}
}
@media screen and (max-width: 980px) {
	.wrapper {
		width: 90%;
	}
	#header, .home #header {
		position: static;
		margin-bottom: 20px;
	}
	#menu-container, #logo-container {
		display: none
	}
	#mobile-menu-btn {
		display: block;
	}
	#mobile-logo {
		width: 250px;
		height: 250px;
		display: block;
		margin: 20px auto;
	}
}
@media screen and (max-width: 670px) {
	.bx-wrapper .bx-pager,
	.bx-wrapper .bx-controls-auto {
		bottom: 35px !important;
	}
	#copyright, #footer-links {
		float: left;
		width: 100%;
		text-align: center;
	}
	#footer-links a {
		margin: 0 8px 0;
	}
	#footer p#avatar-link {
		margin-top: 20px;
	}
}
@media screen and (max-width: 500px) {
	section {
		padding: 50px 0;
	}
	section#quote {
		padding: 31px 0 46px;
	}
	section#intro {
		padding: 50px 0 30px;
	}
	section#ctas {
		padding: 50px 0 30px 0;
	}
	.alignleft, .alignright {
		display: block;
		float: none;
		margin: 5px auto 20px;
	}
	.gform_wrapper .top_label input.medium, .gform_wrapper .top_label select.medium {
		width: 100% !important;
	}
	#mobile-logo, #mobile-logo img {
		width: 150px;
		height: 150px;
	}
}