/*
  Theme Name:     Renew Wordpress Theme
  Theme URI:      http://shadiya.net
  Description:    Full custom Wordpress theme for Renew (ATA).  Modified 17-11-2023 for Wordpress 6.4 and PHP8.0
  Author:         Sanjay Hadiya
  Author URI:     http://shadiya.net
  Version:        1.0.4a
  License:        Creative Commons Attribution 4.0 International License
  License URI:    http://creativecommons.org/licenses/by/4.0/

  Modified Tim Meyer 17112023 to work with Wordpress 6.4
    functions.php - removed site_defer_parsing_of_js and fixed enqueue-scripts->defer parameter
    content-blocks/newsevents.php - fixed PHP warnings
    content-blocks/recent-articles.php- fixed PHP warnings
    functions/theme-helpers.php - fixed double ;;
    page-history.php - Added if at line 22 to foreach on boolean error when no group['timelines' does not exist
    page-renew-magazine.php - fixed PHP warnings

  Modified  1.0.2 - Tim Meyer 17112023 Added hide of google grecaptcha-badge
  Modified  1.0.3 - Tim Meyer 06122023 Restored default functioning of Contact Form 7 in functions.php and functions/cf7-config.php

  Modified  1.0.4 - Tim Meyer 10062024 Main Nav menu - modified layout (header.php, this style.css),
     modified show timing and added touch functioning (script-update.js

  Modified 1.0.5 - Tim Meyer 140082024 Added CSS to Remove Staff/Board tabs on Our Team page.
*/

.grecaptcha-badge { visibility: hidden; }

/* removes the tabs on our-people content block on the our-team page */
body.page-id-356 div.c-staffs:first-child {display:none;}

@media (max-width: 46.25em) {
    body.single-r_events #Main {margin-top:30px;}
}
@media (max-width: 61.25em) {
    body.single-r_events .c-magazine__btn {
    display:block;
    margin-top:35px!important;
    position: absolute;
    top: 60%;
    left: 50%;
    width: 100%;
    text-align: center;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    }
    body.single-r_events .c-event__toggle {
    display: block;
  }
 }

/* Mods for the banner size */
.header-container.nav {
  min-height:470px;
  position:absolute;
  top:0px;
  left:0px;
  width:100%;
  pointer-events:none;
}

.header-container.nav .c-header {
  position:sticky;
  margin-top:-5px;
  pointer-events:auto;
}

@media (min-width: 1138px) {
  .c-header.c-header .c-magazines--alt .c-magazines__container {
    padding:12px 24px;
  }
}

@media (min-width: 858px) {
  .c-secondary-nav.c-secondary-nav.c-mobile-header,
  .is-active .c-secondary-nav.c-secondary-nav.c-mobile-header
   {
    display:none;
  }
  .c-header__logo.c-header__logo {
    margin-top:0px;
  }
  .c-header__logo-wrap.c-header__logo-wrap {
    padding-top:5px;
  }
  .c-nav.c-nav, .c-nav.c-nav.is-active {
    padding:6px 0 0 0;
  }
  .c-nav .sub-menu.sub-menu a, .c-nav.is-active .sub-menu.sub-menu a {
    padding:0px 0;
  }
  .c-nav.c-nav .menu-item a, .c-nav.is-active .sub-menu.sub-menu a {
    padding:3px 0;
  }
  .c-nav.c-nav.is-active .c-nav__items .menu-item-has-children {
    margin-bottom:20px;
  }
  .c-top.c-top {
    padding-top: 95px;
  }
  .xc-nav.c-nav.is-active > ul > li.menu-item:not(.menu-item-has-children) {
    display:none;
  }
  .c-header.c-header .c-magazines--alt .c-magazines__container {
    padding:6px 6px 6px 0px;
  }
  .flexbox.flexbox .c-header__logo-wrap {
    flex:1 0 auto;
  }
  .is-active .c-header__magazines.c-header__magazines {
    flex:4 0 auto;
  }
  .is-active .c-magazines.c-magazines--alt.u-position-relative {
    margin: auto;
  }
  .header-container.nav {
    min-height:690px;
    position:absolute;
    top:0px;
    left:0px;
    width:100%;
  }
  .header-container.nav .c-header {
    position:sticky;
    margin-top:-95px;
  }	
  body.search  div.header-container.nav {
	min-height:112px!important
  }
}

/* CSS Code from the Wordpress Customiser - */
.donate-button-header {
  width: 100%;
	padding-top: 15px;
	padding-bottom: 20px;
  background-color: none;
  overflow: auto;
  height: auto;
	text-align: right !important;

}
.donate-links {
	margin-left: 5px;
  text-align: right !important;
  padding-left: 20px !important;
	padding-right: 20px !important;
	padding-top: 12px !important;
	padding-bottom: 10px!important;
	text-transform: uppercase;
  text-decoration: none;
  font-size: 17px;
	border: 1px solid #2b3990;
  border-radius: 50px;
  color:#2b3990;
	background: #FCD12A;
}
.donate-links:hover {
  background-color: rgba(129, 129, 129, 0.473);
}
.selected{
  background-color: rgb(33, 126, 255);
  color: rgb(255, 255, 255);
}


.links {
	margin-left: 5px;
  text-align: right !important;
  padding-left: 20px !important;
	padding-right: 20px !important;
	padding-top: 12px !important;
	padding-bottom: 10px!important;
	text-transform: uppercase;
  text-decoration: none;
  font-size: 17px;
  border-radius: 10px;
  color: #2b3990;
	border: 1px solid #2b3990;
  border-radius: 50px;
}
.links:hover {
  background-color: rgba(129, 129, 129, 0.473);
}
.selected{
  background-color: rgb(33, 126, 255);
  color: rgb(255, 255, 255);
}

.hellobareofy {
	background:#245C91;  
	width:100%;  
	text-align:center;
	color:#fff;  
	padding:2px;
	padding-top:12px;  
	height:60px;  
	z-index:1000;  
	font-size:14px;  
	line-height:30px;    
	border-bottom:0px solid rgb(255,255,255);  
	box-shadow:0 1px 5px rgba(0,0,0,.7)
}

.c-header__logo-wrapx {
  padding-top: 50px;

}

.hellobareofytext {
  padding:0;
  margin:0;
}

.eofybutton { 
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-left: 10px;
	padding-top: 7px;
	padding-bottom: 5px;
	padding-left: 15px;
	padding-right: 15px;
	border-radius: 12px;
  color: #2b3990;
	background: #FCD12A;
	border: 1px solid #2b3990;
  border-radius: 50px;
}

.eofybutton:hover {
  background-color: #fff;
}

body.post-type-archive-r_events img.c-post__img,
#news-events.c-news-events img.c-post__img {
	aspect-ratio:1.6;
	object-fit: cover;
}
