/*
Theme Name: religionhealth2025
Theme URI: https://www.religionandhealth.com
Author: Internet Imagineering, LLC
Author URI: https://www.iiweb.io
Description: Custom template for Religion and Health
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
Text Domain: religionandhealth.com
*/

/* CSS LAYERS: https://css-tricks.com/css-cascade-layers/ */

/* Establish CSS Layer priorities, lowest => highest */
@layer reset, theme;

/* Theme styles: colors, fonts, etc. */
@layer theme {
    :root {
    	/* CUSTOM SITE COLORS */
		--rh-blue: #58b6ef;
		--rh-dkblue: #0d537e;
		--rh-green: #41b689;
		--rh-yellow: #ddea14;
    
		/* STANDARD COLORS */
		--beige: #FF9900;
		--red: #459939;
		--dkred: #990000;
		--black: #333333;
		--ltgray: #e1e1e1;
		--midgray: #CCCCCC;
		--gray: #999999;
		--dkgray: #666666;
		--white: #ffffff;
    
        --content-width: 1440px;
    }

    body {
		background-color: #fff;
		margin: 0px 0px; 
		padding: 0px;
		font-family: 'Libertinus Serif', serif;
		color: #333;
		font-size: 14px;
	}

	.clear { clear: both;}
	ul {margin: 0; padding: 0;}
	ul li {margin: 0; padding: 0;}

	.imgFull {width: 100%;}
	img.imgFull {width: 100%;}
	
	.lightbox {display: none; padding: 30px;}
	
	i.iconSpace {margin: 0 10px;}
	
	/* TOPNAV LINK ANIMATION - MAIN BUTTONS */

	.TopBar-ConnectLink {font-family: 'Source Sans 3', sans-serif; font-size: 1rem; text-align: center; background-color: #333; padding: 24px 0; font-weight: 600;}
	.TopBar-ConnectLink:hover {background-color: var(--black);}

	a.linkTopBar {color: var(--white); text-decoration: none;}
	a.linkTopBar:visited {color: var(--white); text-decoration: none;}
	a.linkTopBar:hover {color: var(--white); text-decoration: none;}

	.TopBarAnimate {
	  color: inherit;
	  text-decoration: none;
	}

	.TopBarAnimate {
	  display: block;
	  position: relative;
	  padding: 0px 0;
	  color: var(--white);
	}

	.TopBarAnimate::after {
	  content: '';
	  position: absolute;
	  bottom: 0;
	  left: 0;
	  width: 100%;
	  height: 5px;
	  background-color: #000;
	  opacity: 1;
	  transition: opacity 300ms, transform 300ms;
	}

	.TopBarAnimate2::after {
	  content: '';
	  position: absolute;
	  bottom: 0;
	  left: 0;
	  width: 100%;
	  height: 4px;
	  background-color: var(--rh-green);
	  opacity: 1;
	  transition: opacity 300ms, transform 300ms;
	}

	.TopBarAnimate::after {opacity 1; transform: scale(0); transform-origin: center;}

	.TopBarAnimate:hover::after, .iiTopBarAnimate:focus::after {transform: scale(1);}

	/* iiMenu */
	.topnav {font-family: 'Source Sans 3', sans-serif; z-index: 99999;}
	
	i.iiMenuIcon {margin: 0 0 0 5px;}
	ul.iiMenu > li:hover i.iiMenuIcon { rotate: 180deg;}

	ul.iiMenu {display: flex; /*justify-content: none;*/ padding: 0 0 0 0px;}
	ul.iiMenu li {list-style-type: none; margin: 0; padding: 0;}

	ul.iiMenu > li {position: relative; padding: 25px 20px 25px 20px; height: 70px; margin: 0;}
	ul.iiMenu > li > a {font-size: 1rem; color: var(--white); text-decoration: none; text-transform: uppercase; font-weight: 500; } /* main menu */
	ul.iiMenu > li > a:hover {color: var(--white); text-decoration: none;} /* main menu hover */
	ul.iiMenu > li:hover {background-color: var(--rh-dkblue); color: var(--white); }
	ul.iiMenu > li:hover > a { color: var(--white);}

	ul.iiMenu > li > ul {position: absolute; background-color: var(--rh-dkblue); margin: 0; padding: 10px 20px; min-width: 240px; top: 70px; border-bottom: 10px solid var(--rh-green); left: 0px; justify-self: start;}
	ul.iiMenu > li > ul > li {justify-self: start; text-align: left;}
	ul.iiMenu ul {visibility: hidden; opacity: 0; transition: opacity 0.5s;}
	ul.iiMenu > li:hover > ul {visibility: visible; opacity: 1;}

	ul.iiMenu > li > ul a { display: block; color: var(--white); padding: 5px 0; margin: 0; font-weight: 600; text-decoration: none; font-size: 1rem; } /* subnav level 1 menu */
	ul.iiMenu > li > ul a:hover {color: var(--rh-yellow); text-decoration: none;}

	ul.iiMenu > li > ul:before {
		content: '';
		width: 0;
		height: 0;
		border-left: 0px solid transparent;
		border-right: 0px solid transparent;
		border-bottom: 0px solid var(--);
		top: -10px;
		left: 25px;
		position: absolute;
	}

	.scrolled ul.iiMenu > li {position: relative; padding: 20px 20px 20px 20px; height: 60px;}
	.scrolled ul.iiMenu > li > ul {top: 60px; }

	/* MOBILE SIDENAV */
	.mobileNav {display: none;}

	#sidenav {
		 position: fixed; 
		 /* switch "right" to "left" to switch sides: */
		 left: calc(-100vw - 10px); transition: left 0.5s;
		 top:0; bottom: 0;
		 width: 100vw; max-width: 500px; /* full screen on small screens */
		 z-index: 99999999999; box-shadow: 0 0 10px #0008;
		 background: var(--white); color: var(--ec-red);
		 font-size:1.2rem;
	 }
	 #sidenav.active { left: 0; } /* switch "right" to "left" */
	 #sidenav-header {margin: 20px 0 0 40px; width: 140px;}
	 #sidenav-header img { display: block; width:100%; }
	 #sidenav ul { 
	     padding: 0; 
             margin:0;
	 }
    
     #sidenav > ul { max-height: calc(100vh - 100px); margin: 30px 0 0 10px; padding-bottom: 150px; overflow: auto; border-top: 1px solid #444;}
     #sidenav li { list-style-type: none; margin: 0; padding: 5px 2rem; }
	 #sidenav > ul > li { border-bottom: 1px solid #444; }
	 #sidenav a, #sidenav a:visited, #sidenav a.active { color: var(--ec-red); text-decoration: none; }
	 #sidenav-close { 
		 /* reposition within the sidenav as needed */
		 position: absolute; 
		 right: 1rem; top:1rem; 
		 cursor: pointer; 
		 font-size:1.5em;
		 transition: all 0.2s; 
	 }
	 #sidenav-close:hover, #sidenav-close:active { color: white; text-shadow: 2px 2px 8px #0008; transform: translate(-2px, -2px); }
	 #sidenav-footer { position:absolute; bottom:0; left:0; right:0; height: 100px; display: flex; justify-content: center; align-items: center; background: var(--white); text-align: center; font-size: .8rem; color: var(--ec-black)}
 
	 .sidenav-request {margin: 40px;}
    
    /* TEXT */
	.textWhite {color: var(--white);}
	.textBlack {color: var(--black);}
	
	/* BACKGROUND COLORS */


	/* BUTTONS */
	a.buttonDkBlue {font-family: 'Source Sans 3', sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: #fff; background-color: var(--rh-dkblue); width: 100%; text-align: center; padding: 10px 0; display: block; text-decoration: none;}
	
	/* LINKS */
	a.linkNoStyle {text-decoration: none; color: #fff;}
	
	a.linkWhite {color: #fff; text-decoration: none;}
	a:visited.linkWhite {color: #fff; text-decoration: none;}
	a:hover.linkWhite {color: var(--rh-yellow); text-decoration: none;}
	
	.content a {color: var(--rh-green); text-decoration: none;}
	.content a:visited {color: var(--rh-green); text-decoration: none;}
	.content a:hover {color: var(--rh-green); text-decoration: underline;}
	
	.content ul {margin:  0 0 0 40px;}

	/* HEADINGS */
	
	h1.mastHeading {color: var(--white); font-size: 2.4rem; padding: 0; margin: 0; font-weight: 400;}
	
	h1.pageTitle {font-size: 2.2rem; margin: 0 0 40px 0; padding: 0; line-height: 2.4rem; font-weight: 400; }
	
	.content h3 {font-size: 1.6rem; margin: 20px 0; padding: 0; line-height: 1.8rem; font-weight: 600; color: var(--rh-dkblue);}
	
	h1.mainTitle {font-size: 2.2rem; margin: 0; padding: 0; line-height: 1.2rem; text-transform: uppercase;}
	h2.subTitle {font-size: 2rem; margin: 0; padding: 0; line-height: 1rem; text-transform: uppercase;}
	h3.sectionTitle {font-size: 1.8rem; margin: 0; padding: 0; line-height: .8rem; text-transform: uppercase;}
	h4.areaTitle {font-size: 1.6rem; margin: 0; padding: 0; line-height: .8rem; text-transform: uppercase;}

	/* HEADER */
	.headerWrapper {width: 100%; position: fixed; z-index: 99999;}
	.headerContainer {width: 100%; z-index: 99999;}
	.headerMast {width: 100%; background-color: var(--rh-dkblue); padding: 0px 0; display: grid; grid-template-columns: 360px auto 140px; align-items: center;}
	
	.mastTitle {text-align: center;}
	
	.headerSectionPic {position: relative; width: 100%; background: #fff url('images/header-1.jpg') no-repeat right; height: 270px; border-top: 70px solid var(--rh-dkblue); z-index: 8888;}
	.nameTitle {position: absolute; top: 50%; left: 0%; transform: translate(-0%, -50%);font-size: 1.2rem; color: var(--white); font-family: 'Source Sans 3', sans-serif; line-height: 1.4rem; background-color: var(--rh-green); padding: 20px 40px;}

	/* LAYOUT */
	.pageWrapper {width: 80%; margin: 100px auto;}
	
	.containerPageSidebar {width: 100%; display: grid; grid-template-columns: 250px auto; grid-column-gap: 80px;}
	
	.content {font-family: 'Source Sans 3', sans-serif; font-size: 1.2rem;} 
	.content p {margin: 0 0 20px 0;}
	
	.leftnavHolder {border: 2px solid var(--ltgray); padding: 20px; font-family: 'Source Sans 3', sans-serif;}
	.leftnavHolder ul {margin: 0; padding: 0;}
	.leftnavHolder ul li {list-style-type: none; margin: 0 0 10px 0; padding: 0; font-size: 1rem;}
	.leftnavHolder ul li a {color: var(--rh-dkblue); text-decoration: none;}
	.leftnavHolder ul li a:visited {color: var(--rh-dkblue); text-decoration: none;}
	.leftnavHolder ul li a:hover {color: var(--rh-blue); text-decoration: none;}
	
	.grid-1-1 {display: grid; grid-template-columns: 1fr 1fr; grid-column-gap: 30px; margin: 0 0 30px 0;}
	
	/* FRONT PAGE */
	.frontpageWrapper {width: 90%; display: grid; grid-template-columns: 1fr 2fr; grid-column-gap: 50px; margin: 100px auto; grid-row-gap: 50px;}
	.frontpageHolder {border: 2px solid var(--ltgray); padding: 40px 20px;}
	
	.fpMeet {grid-row: span 3;}
	
	.photoTitle {font-size: 1rem; font-weight: 800; color: var(--rh-dkblue); font-family: 'Source Sans 3', sans-serif; text-transform: uppercase; margin: 20px 0;}
	
	.booksContainer {width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-column-gap: 40px; grid-row-gap: 50px;}
	.bookHolder {width: 100%; text-align: center;}
	.book-image {width: 60%; margin: 0 auto;}
	h3.book-title {font-size: 1rem; font-weight: 800; color: var(--rh-dkblue); font-family: 'Source Sans 3', sans-serif; text-transform: uppercase; margin: 20px 0;}
	.book-desc {margin: 10px 0;}
	.book-button {margin: 20px 0 0 0;}
	
	.abstractHolder {border-bottom: 2px dotted var(--ltgray); padding: 0 0 30px 0; margin: 0 0 30px 0; font-family: 'Source Sans 3', sans-serif;}
	h3.abstract-title {font-size: 1rem; font-weight: 800; color: var(--rh-dkblue); font-family: 'Source Sans 3', sans-serif; text-transform: uppercase; margin: 20px 0;}

	/* CONTENT PAGE CUSTOM STYLES */
	
	
	/* FOOTER */
	.wrapperTestimonials {width: 100%; background-color: var(--ltgray); padding: 100px 0;}
	.containerTestimonials {width: 80%; margin: 0 auto; max-width: 1200px; text-align: center;}
	.quoteText {font-family: 'Source Sans 3', sans-serif; font-size: 1.6rem; font-weight: 400; color: var(--rh-dkblue);}
	.quotePerson {font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-family: 'Source Sans 3', sans-serif; margin: 20px 0 0 0;}
	
	.footerWrapper {width: 100%; background-color: var(--black); padding: 30px 0;}
	.footerContainer {width: 90%; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; font-family: 'Source Sans 3', sans-serif; align-items: center;}
	.copyright {font-size: .8rem; color: #fff;}
	.footerlinks {text-align: right;  font-size: 1rem;}
    
    
    @media only screen and (max-width: 1440px) {
		

	}

	@media only screen and (max-width: 1199px) {
		

	}

	@media only screen and (max-width: 1023px) {
	
	
		@media only screen and (max-width: 1023px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1) {
	
	
		}

	}

	@media only screen and (max-width: 767px) {
		
	
	}

	@media only screen and (max-width: 480px) {
	
	
	}
    
}

/* A CSS Reset */
@layer reset {
    *, *::before, *::after { box-sizing: border-box; }
    * {margin: 0; }
    @media (prefers-reduced-motion: no-preference) {
        html { interpolate-size: allow-keywords; }
    }
    body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
    img, picture, video, canvas, svg { display: block; max-width: 100%;  }
    input, button, textarea, select { font: inherit; }
    p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
    p { text-wrap: pretty; }
    h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
    #root, #__next { isolation: isolate; }
}
