/*
 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
*/

.hidden {
	display: none !important;
}

.title-image {
	margin: 0 -45px;
	max-width: calc(100% + 90px);
}
.title-wrapper {
	position: relative;
	text-align: right;
}
.title {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	max-width: 650px;
	text-align: left;
	background: rgba(255, 255, 255, .7);
	padding: 3rem;
	padding-left: 0;
}
.title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #2788B5;
    margin: 30px 0;
}
.subtitle {
	color: #fff;
	font-size: 30px;
	font-family: "PT Serif", serif;
	margin-bottom: 0;
}
.text-big {
	line-height: 1.8;
}
.after-line:after {
	content: '';
	display: block;
	width: 50px;
	height: 3px;
	background: #2788B5;
	margin: 30px 0;
}
.after-line.centered:after {
	margin: 30px auto;
}
.entry-content .wp-block-button__link,
.read-more-container .read-more {
    color: #000 !important;
    background-color: transparent !important;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    padding: 10px 0;
    font-size: 1rem;
	text-transform: uppercase;
	transition: all .3s ease-in-out;
}
.entry-content .wp-block-button__link:hover,
.read-more-container .read-more:hover {
    color: #2788B5 !important;
    text-decoration: none;
}
.entry-content .wp-block-button__link:after,
.read-more-container .read-more:after {
	content: '';
	display: block;
	max-width: 50px;
	height: 3px;
	background: #2788B5;
	margin: 5px 0;
	animation: growWidth .3s forwards;
	transition: all .3s ease-in-out;
}
.entry-content .wp-block-button__link:hover:after,
.read-more-container .read-more:hover:after {
	max-width: 75px;
}
.site-header {
	border-bottom: 1px solid #e6e6e6;
}

/* animate width */
@keyframes growWidth {
  from {
    width: 50px;
  }
  to {
    width: 75px;
  }
}

/* main navigation */
.main-navigation ul.menu > li.current-menu-item > a:after,
.main-navigation ul.menu > li.current-menu-parent > a:after {
	content: '';
    display: block;
    width: calc(100% - 30px);
    height: 3px;
    background: #2788B5;
    position: absolute;
    bottom: 10px;
}
.main-navigation ul ul {
	width: 200px;
	padding: 10px 0;
	box-shadow: none;
}
.menu-item-has-children .dropdown-menu-toggle {
    padding-left: 5px;
}
.wp-image-79 {
	position: relative;
	top: -3px;
}
.widget_polylang li {
	display: inline-block;
	padding: 8px 5px 0 0;
}
.widget_polylang li:last-child {
	padding-right: 0;
}
.widget_polylang li a {
	color: #B3B3B3;
	text-decoration: none;
}
.widget_polylang li a:hover {
	color: #000;
	text-decoration: none;
}
.widget_polylang li.current-lang a {
	color: #000;
	font-weight: 600;
}

/* hp post loop */
.post-loop {
	flex-wrap: nowrap !important;
	margin-top: 3.5rem;
}
.post-loop .gb-query-loop-item:before,
.block-list .gb-grid-column:before {
	content: '';
	display: block;
	width: 110px;
	height: 110px;
	background: #C4E6EC;
	position: relative;
	z-index: 1;
}
.post-loop .gb-query-loop-item > div,
.block-list .gb-grid-column > div {
	position: relative;
	z-index: 2;
	margin-top: -100px;
	padding: 0 55px;
}
.block-list .gb-grid-column > div {
	padding-top: 30px;
}
.post-loop p {
	margin-bottom: 0 !important;
	line-height: 1.3;
}
.post-loop time {
	font-size: 1.8rem;
	font-family: "PT Serif", serif;
	margin-bottom: 0 !important;
	margin-left: -35px;
}
.post-loop h4 {
	font-size: 1rem;
	font-weight: 700;
	font-family: "Open Sans", sans-serif;
	margin-bottom: 0 !important;
}
.post-loop h4 a {
	color: #000;
	text-decoration: none;
	transition: all .3s ease-in-out;
}
.post-loop h4 a:hover {
	color: #2788B5;
	text-decoration: none;
}
.post-loop .read-more {
	color: #2788B5;
	text-decoration: none;
	transition: all .3s ease-in-out;
}
.post-loop .read-more:hover {
	color: #000;
	text-decoration: none;
}

/* helpers */
.thin-block {
    max-width: 1000px;
    margin: 0 auto;
}
.ultra-thin-block {
    max-width: 800px;
    margin: 0 auto;
}

/* blocquote */
blockquote {
    border: 0;
    padding: 20px;
    font-size: 48px;
	font-style: normal;
    font-family: "PT Serif", serif;
	line-height: 1.5;
}
blockquote p {
    margin-bottom: 1.5rem;
}
blockquote p:before {
	content: '';
	display: inline-block;
	width: 25px;
	height: 22px;
	background: url('/wp-content/uploads/2022/12/blockquote-start.png') no-repeat center center;
	margin-bottom: -10px;
    margin-right: 10px;
}
blockquote p:after {
	content: '';
	display: inline-block;
	width: 25px;
	height: 22px;
	background: url('/wp-content/uploads/2022/12/blockquote-end.png') no-repeat center center;
	margin-bottom: 10px;
    margin-left: 10px;
}

.team-position {
	color: #2788B5;
	text-transform: uppercase;
	margin-bottom: 10px;
}
.reverse-cols .wp-block-image .alignright,
.wp-block-image .alignright {
	margin: 0.5rem 0;
}

.block-link {
	margin-bottom: 30px;
}
.big-welcome {
	font-family: "PT Serif", serif;
}
.values-number {
	background: #D3EAF2;
	width: 48px;
	height: 48px;
	line-height: 48px;
	text-align: center;
	border-radius: 50%;
}

.values .gb-grid-column > div {
	padding-right: 60px;
}
.values .value-number {
	font-size: 1.8rem;
	font-family: "PT Serif", serif;
	background: #D3EAF2;
	color: #000;
	border-radius: 50%;
	display: block;
	width: 60px;
	height: 60px;
	line-height: 60px;
	text-align: center;
	margin-bottom: 30px;
}

/* cta */
.cta-wrapper {
	border-top: 1px solid #E6E6E6;
	border-bottom: 1px solid #E6E6E6;
	padding: 50px 30px;
    margin: 0 -40px;
}
.cta-wrapper p {
	margin-bottom: 0;
}
.cta-text {
	font-size: 24px;
	font-family: "PT Serif", serif;
	line-height: 1.5;
	padding-top: 5px;
}
.cta-link a {
	font-size: 20px;
	background: #2788B5;
	color: #fff;
	padding: 5px 25px;
	float: right;
	text-decoration: none;
	transition: all .3s ease-in-out;
}
.cta-link a:hover {
	background: #21779B;
}

/* block-items */
.block-item {
	min-height: 230px;
	width: 100%;
}
.block-item > div {
	display: flex;
	flex-direction: column;
	min-height: 230px;
}
.block-item > div h3 {
	flex-grow: 2;
}
.block-row > div,
.block-row > div > div {
	display: flex;
	width: 100%;
}
.block-row > div > div > div {
	display: flex;
	flex-grow: 2;
	width: 100%;
}
.block-row > div {
	padding-bottom: 30px;
}

/* blog */
.blog .site-content {
	padding: 15px;
	margin-top: 2rem;
}
.blog article {
	padding: 15px;
}
.blog .inside-article {
	padding: 15px;
	transition: all .5s ease-in-out;
}
.blog .inside-article:hover {
	background: #D3EAF2;
}
.single .site-content {
	max-width: 900px;
	margin: 2rem auto;
}
.blog .entry-summary {
	font-size: 14px;
}
.single header .entry-meta,
.single header .entry-title {
	text-align: center;
}
.entry-meta time {
	color: #2788B5;
	font-size: 18px;
}
.blog .masonry-container {
	margin-top: 8rem;
}
.blog .masonry-container h1 {
	position: relative;
	top: -120px;
}
.blog .site-info,
.single .site-info {
	border-top: 1px solid #e6e6e6;
	margin-top: 2rem;
}

.rank-math-breadcrumb {
	text-align: center;
}

/* search */
.search-field {
	color: #000 !important;
}
.search-results h1 {
	margin: 3rem 0 !important;
}
.search-results h2 {
	font-size: 30px;
}
.search-results .entry-summary {
	margin-top: 1rem;
}
.page-header, .sidebar .widget, .site-main>* {
    margin-bottom: 30px;
}

/* counter */
.counter {
	text-align: center;
}
.counter > div {
	border-right: 1px solid #e6e6e6;
}
.counter > div:last-child {
	border: none !important;
}
.kb-count-up-number {
	font-size: 64px;
	font-weight: 700;
	font-family: "PT Serif", serif;
	color: #2788B5;
}
.kb-count-up-title {
	font-size: 1rem !important;
	font-family: "PT Serif", serif;
	text-transform: uppercase;
}

/* newsletter */
.newsletter {
	background: #f7f8f9;
	text-align: center;
	padding: 4rem 1rem;
	margin-top: 4rem;
}
.newsletter form {
	display: inline-flex;
}
.newsletter form h3 {
	margin: 0 30px;
}
.newsletter form p {
	margin: 0;
	color: #999;
}
.newsletter form span[data-name="newsletter-email"] input {
	background-color: transparent;
    border-color: transparent;
	border-bottom: 2px solid #000;
	margin-right: 15px;
}
.newsletter form span[data-name="newsletter-email"] input:focus {
	border-color: #f7f8f9;
	border-bottom: 2px solid #2788B5;
}

/* footer */
.footer-widgets-container {
	border-top: 1px solid #e6e6e6;
	border-bottom: 1px solid #e6e6e6;
}
.footer-widgets-container h4 {
	font-size: 18px;
	font-weight: 700;
	font-family: "Open Sans", sans-serif;
}
.footer-widgets-container p {
	color: #757575;
	line-height: 40px;
}
.footer-widgets-container p a {
	text-decoration: none;
	color: #000;
}
.footer-widgets-container p a:hover {
	text-decoration: none;
	color: #757575;
}
.footer-widgets-container ul li a {
	text-decoration: none;
	color: #757575;
}
.footer-widgets-container ul li a:hover {
	text-decoration: none;
	color: #2788B5;
}
.footer-widget-4 a {
	margin-right: 1rem;
	text-decoration: none;
}

/* tabs */
.kt-tabs-title-list {
	justify-content: center;
	margin-bottom: 2rem !important;
}
.kt-tabs-title-list li a {
	font-size: 12px !important;
	text-transform: uppercase;
	background: #fff !important;
}
.kt-tabs-title-list li. a:hover {
	background: #D3EAF2 !important;
}
.kt-tabs-title-list li.kt-tab-title-active a {
	background: #2788B5 !important;
}

/* table */
.event-table table {
	border: none;
}
.event-table table td {
	border: none;
	border-bottom: 1px solid #e6e6e6;
	padding: 1.5rem;
}
.contact-table table {
	border: none;
}
.contact-table table td {
	border: none;
	vertical-align: top;
}

/* contact */
input[type=email], input[type=number], input[type=password], input[type=tel], input[type=text], input[type=url], select, textarea {
	background-color: transparent;
    border-color: transparent;
	border-bottom: 2px solid #000;
	margin-right: 15px;
}
input[type=email]:focus, input[type=number]:focus, input[type=password]:focus, input[type=tel]:focus, input[type=text]:focus, input[type=url]:focus, select:focus, textarea:focus {
	border-color: #f7f8f9;
	border-bottom: 2px solid #2788B5;
	background-color: transparent;
}

/* media-queries */

@media (min-width: 768px) {
	.reverse-cols > div:first-child {
		order: 2;
	}
	.reverse-cols > div:last-child {
		order: 1;
	}
}
@media (min-width: 992px) {
	.contact-form .row {
		display: flex;
	}
	.contact-form .row .col-6 {
		width: calc(50% - 15px);
	}
	.contact-form .row .col-6:first-child {
		margin-right: 30px;
	}
	.contact-form .row .col-12 {
		width: 100%;
	}
	.contact-box {
		margin: -100px 0 0 0;
	}
}
@media (min-width: 1200px) {
	.contact-box {
		margin: -100px 100px 0 100px;
	}
}
@media (max-width: 1199px) {
	.navigation-branding img, .site-logo.mobile-header-logo img {
		height: auto !important;
    	max-width: 270px;
	}
	.newsletter form span[data-name="newsletter-email"] input {
		max-width: 300px;
	}
}
@media (max-width: 991px) {
	.site-content {
		padding: 30px !important;
		padding-top: 0 !important;
	}
	.subtitle {
		font-size: 20px;
	}
	.text-big {
		font-size: 20px !important;
	}
	h2,
	blockquote p {
		font-size: 42px !important;
	}
	.post-loop .gb-query-loop-item > div, 
	.block-list .gb-grid-column > div {
		padding: 0 5px 0 30px;
	}
	.cta-text {
		font-size: 22px;
	}
	.post-loop time {
		margin-left: 0;
	}
	.values .gb-grid-column > div {
		padding-right: 0;
	}
	.block-row > div {
		width: 50% !important;
	}
	.newsletter form {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	.newsletter form h3 {
		flex: 1 0 100%;
    	margin-bottom: 30px;
	}
	.wpcf7-spinner {
		display: none !important;
	}
	.title-image {
		margin: 0 -30px;
		max-width: calc(100% + 60px);
	}
	.title-image img {
		width: 100%;
	}
}
@media (min-width: 768px) and (max-width: 991px) {
	.title {
		left: -30px;
		max-width: 660px;
		padding: 2rem !important;
	}
}
@media (max-width: 767px) {
	.post-loop {
		flex-wrap: wrap !important;
	}
	.title,
	.subtitle {
		color: #222;
	}
	h1 {
		font-size: 48px !important;
	}
	h2 {
		font-size: 36px !important;
	}
	blockquote {
		padding: 20px 0;
	}
	blockquote p {
		font-size: 30px !important;
	}
	.cta-wrapper > div {
		text-align: center;
	}
	.cta-link {
		padding-top: 15px;
	}
	.cta-link a {
		float: none;
	}
	.block-row > div {
		width: 100% !important;
	}
	.post-loop .gb-query-loop-item > div, 
	.block-list .gb-grid-column > div {
		padding: 30px 5px 0 30px;
	}
	.newsletter form .wpcf7-submit {
		margin-top: 30px;
	}
	.counter > div {
		border-right: none;
		border-bottom: 1px solid #e6e6e6;
		padding-bottom: 30px;
	}
	.contact-box {
		margin: 0;
	}
	.contact-box > div:first-child .gb-inside-container {
		padding: 30px 0 !important;
	}
	.title-wrapper {
		position: static;
		text-align: left;
	}
	.title {
		position: relative;
		top: 0;
		left: 0;
		transform: none;
		max-width: none;
		text-align: left;
		background: transparent;
		padding: 2rem 3rem 0;
		padding-left: 0;
		margin-bottom: -3rem;
	}
}
