/*
 Theme Name:   Think Children
 Description:  Divi Child Theme
 Author:       The Big Idea
 Author URI:   http://www.bigidea-creative.co.uk
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

html, body {
  height: 100%;
}
h1, h2, h3, h4, h5, h6 {
	padding: 0.5em 0 0.5em;
	color: #2078a9;
	line-height:1.2em;
	font-weight:600;
}
h1 {
	font-size: 2.3em!important;
}
h2 {
	font-size: 1.7em!important;
}
h3 {
	font-size: 1.5em!important;
}
h4 {
	font-size: 1.3em!important;
}
h5 {
	font-size: 1.2em!important;
}
h6 {
	font-size: 1.1em!important;
}
#main-content {
	font-weight:400;
}
#main-content a {
	font-weight:500;
}
#main-content a.et_pb_button {
	font-weight:500;
}
hr {
	border: 0;
	height: 1px;
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0));
}
.coloured-box a {
	color:#fff;
	text-decoration:underline;
}
#left-area ul, .entry-content ul, .comment-content ul {
  list-style-type: none;
  list-style-image:url(https://thinkchildren.org.uk/wp-content/themes/ThinkChildren/images/bullet.png);
	padding: 0.25em 0 1em 1em;
}
#left-area ul li, .entry-content ul li, .comment-content ul li,
#left-area ol li, .entry-content ol li, .comment-content ol li {
	padding: 0.375em 0;
}
.et_pb_button {
	color:#fff!important;
	margin:0!important;
	border-radius:.4em!important;
}
.et_pb_button.red-button {
	background: #d4465d!important;
	border:2px solid #d4465d!important;
}
.et_pb_button.blue-button {
	background: #2078a9!important;
	border:2px solid #2078a9!important;
}
.et_pb_button:hover {
	background: #fff!important;
	color:#444!important;
}
.et_pb_button.red-button:hover {
	border:2px solid #d4465d!important;
}
.et_pb_button.blue-button:hover {
	border:2px solid #2078a9!important;
}
.button-small {
	font-size:.913em!important;
	padding: 0.25em .75em 0.325em!important;
}
.red-highlight {
	font-weight:600;
	color: #d4465d;
}
.blue-highlight {
	font-weight:600;
	color: #2078a9;
}
blockquote {
  position:relative;
  margin: 25px 4em 35px; 
  padding: 0 0 0 1em;
  font-size:1.125em;
  line-height:1.700em;
  font-style:italic;
	font-weight:bold;
	border-left:0;
}
.blockquote-credit {
  font-size: 0.825em;
	font-weight:normal;
  color:#d4465d;
	padding-right:4em;
}
.grid-image img {
	display:block;
	height:100%;
	width:100%!important;
	object-fit:cover;
}
.wp-pagenavi {
  background: #f1f1f8;
	border-top: 0;
	padding-top: 0;
	margin: 30px 0;
}

/* Header */

#site-header .et_pb_menu__menu > nav > ul > li {
    margin-top: 0;
}
#site-header .et_pb_menu .et_pb_menu__search-input {
	color: #fff;
	font-weight:500;
	padding-left:1em;
}

/* Inner Pages */

.inner-page #main-content {
	padding-bottom: 1.5vw;
	background-color:#f1f1f1;
}
.inner-page #main-content .container {
	padding-top: 1.5vw!important;
}
.inner-page #main-content #content-area {
	padding: 1vw 5% 2vw;
	background-color:#ffffff;
}
#inner-news-section.et_pb_section,
#inner-people-section.et_pb_section,
#inner-story-section.et_pb_section {
	padding:0!important;
}
#inner-news-section .et_pb_row,
#inner-people-section .et_pb_row,
#inner-story-section .et_pb_row {
	width:100%!important;
}
#inner-people-section .et_pb_row {
	background-color:#f1f1f1;
	background-image:url(../../uploads/2019/12/tc-logo.png);
	background-repeat:no-repeat;
	background-position:top 1.75em right 2%;
	background-size:9em;
	padding:1em 2% 2em;
	margin-bottom:3em;
}
#inner-people-section .listing-title {
	padding-bottom:0;
}
#inner-people-section .listing-role {
	color:#d4465d;
}
#inner-people-section .contact-block {
	margin-top:1.5em;
	text-align:right;
}
#inner-people-section .contact-block .et_pb_button {
	margin-left:.5em!important;
}
#inner-news-section .et_pb_column {
	box-shadow:0 0 .3em rgba(0,0,0,0.3);
}
#inner-news-section .post-content {
	padding: 0 5% 0;
}
#inner-news-section .read-more-button {
	padding: .75em 0;
}
#inner-story-section .et_pb_row .link-column {
	display:flex;
	flex-direction:column;
	justify-content:flex-end;
	align-items: flex-start;
}
#inner-story-section .et_pb_row .listing-title {
	padding-left:3em;
	background-image:url(https://thinkchildren.org.uk/wp-content/uploads/2021/02/book-icon.png);
	background-repeat:no-repeat;
	background-position:center left;
	background-size:2.5em;
}
.inner-page .story-category-box {
	position:absolute;
	top:calc(58px + 1em);
	right:5%;
	padding:0 .75em 1em;
	background:#2078a9;
}
.inner-page .story-category-box h3 {
	color:#ffffff;
}
.archive #inner-story-section .et_pb_row .et_pb_button {
	float:right;
	clear:both;
}

/* Footer */

#main-footer .container {
	background-color:#2078a9;
	padding-left:1em;
	padding-right:1em;
}
#footer-widgets {
	padding-top:1.5em;
}
.footer-widget h4 {
	color:#ffffff;
	font-weight:600;
}
#footer-bottom {
	padding-top:0;
	padding-bottom:0;
}
#footer-bottom #footer-info {
	width:100%;
	text-align:center;
	background-color:#2078a9;
}

/* Single Posts */

.single #main-content #content-area {
	background-color:transparent;
	padding:0;
}
.single #main-content #left-area {
	background-color:#ffffff;
	padding: 1vw 5% 2vw;
}
body.single article.has-post-thumbnail > img:nth-of-type(1) {
	width:auto !important;
	height:auto !important;
}
body.single article.has-post-thumbnail .et_post_meta_wrapper > img:nth-of-type(1) {
	width:auto !important;
	height:auto !important;
}

/* Sidebars */

#sidebar {
	padding-bottom: 0;
}
#sidebar .et_pb_widget {
	background-color:#ffffff;
	padding: 1em 5% 2em;
}
#sidebar .et_pb_widget:last-child {
	margin-bottom:0;
}
#sidebar .et_pb_widget .widgettitle {
	color:#d4465d;
}
#sidebar .post-meta {
	color:#2078a9!important;
	font-size:0.913em;
}

/* Forms */

div.wpcf7 {
	margin-top: 25px;
	margin-bottom: 50px!important;
}
.wpcf7-form {
	margin:0 auto;
	padding: 3em;
	box-sizing:border-box;
	background-color:#f1f1f1;
}
.home .wpcf7-form {
	width:100%;
	padding:0px;
	background:transparent;
}
select {
	-webkit-appearance: none; 
	-moz-appearance: none;
	appearance: none;
	font-size:1em!important;
	height:2em!important;
	border-radius:1em;
	padding: 0 2em 0 .5em;
	background:#fff;
	border:1px solid #ccc;
	color:#000;
	background-image:url(https://thinkchildren.org.uk/wp-content/themes/ThinkChildren/images/select-arrow.png);
	background-repeat:no-repeat;
	background-position:right 15px center;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
	font-size:1em!important;
	font-family:"Open Sans", Arial, sans-serif!important;
  padding: 12px 5px!important;
  color:#333!important;
	border-radius:0!important;
	border:1px solid #fff;
  margin: 0 0 20px 0!important;
	width:100%;
}
.wpcf7-acceptance .wpcf7-list-item-label {
	font-weight:600!important;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border:1px solid #ee5546;
}
.wpcf7-form input[type="submit"]:hover {
  cursor:pointer;
}
textarea {
  overflow: auto;
}
.wpcf7 .wpcf7-mail-sent-ok {
	border:2px solid #fff032;
	margin: 2em 0 1em;
}
.wpcf7 .wpcf7-validation-errors {
	border:2px solid #f00;
	margin: 2em 0 1em;
}

@media (max-width: 479px) {
	.et_mobile_menu {
    left: auto; right:0;
    width: 90%;
	}
	#inner-people-section .et_pb_row {
		background-image:none;
	}
	#inner-people-section .contact-block {
		text-align:center!important;
	}
	#inner-people-section .et_pb_button {
		font-size:.913em!important;
		padding: 0.25em .75em 0.325em!important;
		margin:0!important;
	}
	.wpcf7-form {
    padding: 1em;
	}
	.story-page #main-content .container {
		padding-bottom:6.75em!important;
	}
	.inner-page.story-page .story-category-box {
		top:auto;
		bottom:0;
		right:0;
		width:100%;
	}
}

@media (min-width: 480px) and (max-width: 678px) {
	.et_mobile_menu {
    left: auto; right:0;
    width: 75%;
	}
	#inner-people-section .et_pb_row {
		background-image:none;
	}
	.wpcf7-form {
    padding: 2em;
	}
	.story-page #main-content .container {
		padding-bottom:6.75em!important;
	}
	.inner-page.story-page .story-category-box {
		top:auto;
		bottom:0;
		right:0;
		width:100%;
	}
}

@media (min-width: 679px) and (max-width: 980px) {
	.et_mobile_menu {
    left: auto; right:0;
    width: 60%;
	}
	.story-page #main-content .container {
		padding-bottom:7em!important;
	}
	.inner-page.story-page .story-category-box {
		top:auto;
		bottom:0;
		right:0;
		width:100%;
	}
}

@media (max-width: 980px) {
	.et_pb_menu_0.et_pb_menu {
    background-color: transparent!important;
	}
	.mobile_menu_bar::before {
    font-size: 3em;
	}
	.et_pb_menu_0 .et_pb_menu__icon.et_pb_menu__search-button {
		display:none;
	}
	.et_pb_menu_0.et_pb_menu ul.et_mobile_menu li.current-menu-item a {
    color: #d4465d !important;
	}
}
@media (min-width: 981px) and (max-width: 1280px) {
	.inner-page.story-page .story-category-box {
		top:14px;
		right:0;
	}
}
/*
@media (min-width: 981px) and (max-width: 1679px) {
	.inner-page .menu-block .et_pb_module_header {
    font-size: 3.5vw !important;
	}
}

@media (min-width: 1680px) {
	.home .et_pb_section.leading-section .triptych {
		padding-top: 1vw!important;
	}
	.home .et_pb_section.leading-section .et_pb_blurb_content h1 {
		font-size: 3.25vw!important;
	}
	h1.ng-binding,
	.home .et_pb_section.welcome-message .et_pb_text h1,
	.home .et_pb_section.christmas-panel .et_pb_promo_description h1,
	.home .et_pb_section.story-panel .et_pb_promo_description h1,
	.home .et_pb_section.events-section .et_pb_text h1,
	.home .et_pb_section.feedback-form .et_pb_text h1,
	.inner-page .et_pb_section.bookings-section .et_pb_text h1 {
		font-size: 2.25vw!important;
	}
	.dmn-label-text,
	.home .et_pb_section.leading-section .et_pb_blurb_content p,
	.home .et_pb_section.welcome-message .et_pb_text p,
	.home .et_pb_section.christmas-panel .et_pb_promo_description p,
	.home .et_pb_section.story-panel .et_pb_promo_description p,
	.home .et_pb_section.feedback-form .et_pb_text p,
	.inner-page .et_pb_section.bookings-section .et_pb_text p {
		font-size: 0.875vw!important;
	}
}