/*
Theme Name: Infant Jesus Parish
Author: CDALogic
Description: Wordpress theme built with css grid framework
Version: 1.0
Date: September 2024
*/

:root {
	/* accent-color: red; */
	font-size: 10px;
	--black: #222123;
	--blue: #3067c3;
	--blue: #082a52;
	--cream: #fef5ee;
	--cream-dark: #fae1cd;
	--cadet-gray: #809eadff;
	--imperial-red: #f8333cff;
	--outer-space: #394648ff;
	--orange-web: #fea82f;
	--maize: #ffe74cff;
	--font-body: 'Montserrat', sans-serif;
	--font-headings: 'Montserrat Alternates', sans-serif;
	color: var(--black);
}
* {
	box-sizing:border-box;
	margin: 0;
	padding: 0;
	line-height: 1;
	outline: 0;
}
body {
	background: var(--cream);
	color: var(--black);
	font-family: var(--font-body);
	overflow-x: hidden;
}
/*
===================================================================================================================
FRAMEWORK
===================================================================================================================
*/
.container {	
	margin: 0 auto;
	max-width: 1200px;
	padding: 0 20px;
	position: relative;
}
.container-fluid {	
	margin: 0 auto;
	max-width: 100%;
	padding: 0 20px;
}
#page {
	background: var(--white);
	min-height: 100vh;
	padding: 0;
}
.row-grid-mobile {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-gap: 20px;
}
.no-gap {
	grid-gap: 0;
}
.big-gap {
	grid-gap: 60px;
}
/*
===================================================================================================================
TYPOGRAPHY
===================================================================================================================
*/
h1,
h2,
h3,
h4,
h5,
p,
ul,
dt,
dd,
.widget-title {
	margin-bottom: 20px;
}
.font-xl {
	font-size: 150%;
}
.font-l {
	font-size: 125%;
}
.font-s {
	font-size: 75%;
}
.font-xs {
	font-size: 50%;
}
.text-upp {
	text-transform: uppercase;
}
.font-700 {
	font-weight: 700;
}
/*
===================================================================================================================
HEADINGS
===================================================================================================================
*/
h1,
h2,
h3,
h4,
h5,
.widget-title {
	font-family: var(--font-headings);
	line-height: 1.2;
}
h1,
.h1 {
	font-size: clamp(4rem, 5vw, 10rem);
}
h2,
.h2 {
	font-size: clamp(3rem, 4vw, 5rem);
}
h3,
.h3,
.widget-title {
	font-size: clamp(2.5rem, 4vw, 2.5rem);
}
h4,
.h4 {
	font-size: clamp(1.2rem, 4vw, 2.2rem);
}
h5,
.h5 {
	font-size: clamp(1rem, 4vw, 2rem);
}
.pre-heading::before {
	color: var(--cream-dark);
	content: "Infant Jesus Parish Morley";
	display: block;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	font-weight: 700;
	text-align: center;
	text-shadow: 0 0 5px rgba(0,0,0,0.7);
}
/*
===================================================================================================================
PARAGRAPH TEXT
===================================================================================================================
*/
p {
	/* font-size: 1.7rem; */
	line-height: 1.4;
}
hr {
	margin: 20px auto !important;
	padding: 0;
}
/*
===================================================================================================================
IMAGES
===================================================================================================================
*/
img {
	height: auto;
	max-width: 100%;	
}
/*
===================================================================================================================
VIDEOS
===================================================================================================================
*/
.video-container {
	padding-bottom: 56.25%;
	padding-top: 30px; height: 0; overflow: hidden;
	position: relative;
}
.video-container iframe,
.video-container object,
.video-container embed {
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

/*
===================================================================================================================
LISTS
===================================================================================================================
*/
ul {
	list-style-type: none;
	padding-left: 0;
}
ul:after {
	clear: both;
	content: "";
	display: block;	
	float: none;
}
.list-bullet li {
	font-size: 1.7rem;
	line-height: 1.2;
	list-style-position: outside;
	list-style-type: disc;
	margin-left: 20px;
}
li,
dt,
dd {
	line-height: 1;
	margin-bottom: 10px;
}
li a {
	display: block;
}
figure {
	margin: 0;
}
/*
===================================================================================================================
LINKS
===================================================================================================================
*/
a, 
a:hover, 
a:active, 
a:focus {
	text-decoration: none;
  	transition: all 0.25s ease-in-out;
}
a {
	color: var(--blue);
	font-weight: bold;
}
a.btn,
.btn,
.elementor-button {
	border-radius: 40px;
	color: #fff;	
	display: inline-block;
	font-size: 2rem;
	margin: 0 auto 20px auto;
	max-width: max-content;
	padding: 20px;
	text-align: center;
	text-transform: uppercase;
}
a.btn:hover,
.btn:hover,
.elementor-button:hover {
	box-shadow: 0 5px 5px rgba(0,0,0,0.2);
	transform: scale(1.1);
}
.btn-alt {
	color: #fff;
	background: var(--orange-web);
}
/*
===================================================================================================================
FIXES
===================================================================================================================
*/
.clearfix,
.clear {
	clear: both;
	float: none;
}
.kc_row:not(.kc_row_inner),
.kc-elm {
	clear: both;
	float: none !important;
}
.kc_row:after {
	clear: both !important;
	content: "";
	display: block !important;
	float: none !important;
}
/*
===================================================================================================================
ALIGNMENTS
===================================================================================================================
*/
.center {
	text-align: center;
}
.right {
	text-align: right;
}
.align-middle {
	display: grid;
	align-content: center;
}
.align-bottom {
	display: grid;
	align-content: end;
}
.object-cover {
	object-fit: cover;
}
.center-center {
	align-items: center;
	display: flex;
	justify-content: center;
}
.align-center {
	align-items: center;
	display: flex;
}
/*
===================================================================================================================
FORM ELEMENTS
===================================================================================================================
*/
input[type="color"], 
input[type="date"], 
input[type="datetime"], 
input[type="datetime-local"], 
input[type="email"], 
input[type="month"], 
input[type="number"],
input[type="password"],  
input[type="tel"], 
input[type="text"], 
input[type="time"], 
input[type="url"], 
input[type="week"],
select,
textarea {
	background: rgba(255,255,255,1);
	border: 1px solid rgba(200,200,200,1);
	display: block;
	font-family: var(--font-primary);
	font-size: 1.6rem;
	height: auto;
	margin-bottom: 5px;
	padding: 20px;	
	width: 100%;
}
input[type="submit"] {
	border: 0;
	cursor: pointer;
	display: block;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 1px;		
	margin-bottom: 20px;
	padding: 20px;
	text-transform: uppercase;	
	width: auto;
}
textarea {
	min-height: 100px;
}
::placeholder {
    color: inherit;
	font-family: var(--font-primary);
    opacity: 0.7;
}
/*
===================================================================================================================
UP BUTTON
===================================================================================================================
*/
#up {	
	bottom: 10%;
	border: 5px solid var(--cream);
	background: var(--orange-web);
	opacity: 0.7;
	position: fixed;	
	right: 10px;	
	text-align: center;	
	z-index: 999;
}
#up a {
	color: var(--cream);
	display: flex;
	font-size: 3.5rem;
	height: 50px;
	justify-content: center;
	width: 50px;
}
#up a .fa {
	align-self: center;
}
/*
===================================================================================================================
MAIN NAVIGATION MENU
===================================================================================================================
*/
#top-bar {
	align-items: center;
	background: var(--blue);
	border-bottom: 1px solid var(--cream-dark);
	display: flex;
	justify-content: space-between;
	left: 0;
	/* padding-left: 20px; */
	position: fixed;
	top: 0;
	transition: all 0.25s ease-in-out;
	width: 100%;
	z-index: 999;
}
.menu-is-open #top-bar {
	transition: all 0.25s ease-in-out;
}
/* #menu-container {
	height: 100%;
	left: -100%;
	overflow-y: scroll;
	padding: 10px;
	position: fixed;
	text-align: center;
	transition: all 0.25s ease-in-out;
	width: 100%;
	z-index: 11;  	
} */
/* .open {
	left: 0 !important;
  	transition: all 0.25s ease-in-out;
} */
.show {
	display: block;
}
#main-menu {
	height: 100%;
	margin-bottom: 0;
	position: fixed;
	right: -100%;
	text-align: center;
	transition: all 0.25s ease-in-out;
	width: 100%;
}
.menu-is-open #main-menu {
	background: var(--blue);
	right: 0;
}
#main-menu li {
	margin-bottom: 0;
	position: relative;
}
#main-menu li a {
	color: var(--cream);
	font-size: 1.8rem;
	padding: 20px;
}
.menu-item-has-children > .sub-menu {
	display: none;
}
/* .sub-menu-is-open .sub-menu {
	display: block;
} */
.menu-item-has-children.sub-menu-open > .sub-menu {
    display: block;
}
.menu-item-has-children > a::after {
    content: " +";
    font-weight: bold;
    margin-left: 5px; /* Space between text and + */
}
/* Change '+' to '-' when the sub-menu is open */
.menu-item-has-children.sub-menu-open > a::after {
    content: " -";
}
#hamburger {
	align-content: space-between;
	background: var(--cream-dark);
	cursor: pointer;
	display: grid;
	height: 50px;
	padding: 10px;	
	transition: all 0.5s 0.5s ease-in-out;
	width: 50px;
	z-index: 999;
}
.bar {	
	border-bottom: 6px solid var(--blue);
	transition: all 0.25s ease-in-out;
  	width: 100%;
}
#bar-wrapper {
	position: relative;
}
#bar-2 {
	position: relative;

}
#bar-3 {
	left: 0;
	position: absolute;
	top: 0;
}
.bar.blackout {
	border-bottom: 3px solid transparent;
  	transition: all 0.5s ease-in-out;
}
.menu-is-open #bar-1,
.menu-is-open #bar-4 {
	border-color: transparent;
	box-shadow: none;
	transition: none;
}
.menu-is-open #bar-2 {
	transform: rotate(45deg);
}
.menu-is-open #bar-3 {
	transform: rotate(-45deg);
}
.menu-is-open #fly-out-overlay {
	background: rgba(0,0,0,0.5);
	cursor: pointer;
	display: block;
	height: 100%;
	left: 0;
	position: fixed;
	top: 0;
	transition: all 0.25s ease-in-out;
	width: 100%;
}
#logo,
.logo {
	/* background: var(--outer-space); */
	font-size: 2rem;
	font-weight: 700;
	max-width: 300px;
	padding: 20px;
}
#logo a {
	color: var(--cream);
	/* color: #abadb0;
	color: #4d4d4f; */
}
/*
===================================================================================================================
HERO
===================================================================================================================
*/
.hero {
	height: 100vh;
	width: 100%;
}
/*
===================================================================================================================
PARALLAX
===================================================================================================================
*/
.parallax-bg {
	background-position: center 0;
	background-repeat: no-repeat;
	background-size: cover;	
}
/*
===================================================================================================================
SLIDER
===================================================================================================================
*/
.flexslider {
	border: 0;
	border-radius: 0;	
	box-shadow: none;	
	margin: 0 auto;
	overflow: hidden;
	padding: 0;
	z-index: 1;
}
/*
===================================================================================================================
FLY OUT MENU
===================================================================================================================
*/
#fly-out-menu select,
#fly-out-menu input,
#fly-out-menu textarea {
	border:1px solid #222;
}
/* #fly-out-menu select,
#fly-out-menu input {
	height: 50px !important;
} */
.fly-out-open-button {
	cursor: pointer;
}
#fly-out-close-button {
	color: red;
	cursor: pointer;
	font-size: 48px;
	height: 50px;
	position: absolute;
	right: 20px;
	top: 20px;
	width: 50px;
	z-index: 999;
}
.fly-out-close {
	cursor: pointer;
}
#fly-out-menu {
	background: var(--cream);
	height: 100%;
	overflow-y: scroll;
	padding: 100px 40px;
	position: fixed;
	right: -100%;
	text-align: center;
	text-transform: capitalize;
	top: 0;
	transition: all 0.25s ease-in-out;
	width: 100%;
	z-index: 999;  	
}
#fly-out-overlay {
	background: rgba(0,0,0,0);
	cursor: pointer;
	display: none;
	height: 100%;
	left: 0;
	position: fixed;
	top: 0;
	transition: all 0.25s ease-in-out;
	width: 100%;
	z-index: 998;
}
.fly-out-open {
	right: 0 !important;
  	transition: all 0.25s ease-in-out;
}
.lights-out {
	background: rgba(0,0,0,0.8) !important;
	display: block !important;
	transition: all 0.25s ease-in-out;
}
.search-page .container {
	padding-top: 60px;
}
.search-form {
	display: flex;
}
.search-form label {
	width: 100%;
}
.search-field {
	display: inline-flex;
	font-size: 22px;
	padding: 15px;
	width: 100%;
}
.search-submit {
	align-items: center;
	display: flex;
	justify-content: center;
}
/*
===================================================================================================================
FOOTER
===================================================================================================================
*/
#footer-main {
	background: var(--blue);
	color: #fff;
	padding: 40px 0 0 0;
}
#footer-main li {
	font-size: 1.4rem;
	margin-bottom: 0;
}
#footer-main li:last-child {
	border-bottom: 0;
}
#footer-main li a,
#footer-main .fly-out-open-button {
	padding: 20px 0;
}
.footer-fixed {
	bottom: 0;
	left: 0;
	position: fixed;	
	width: 100%;
	z-index: -1;
}
#footer-legal {
	background: #072344;
	padding: 20px;
}
.footer-logo {
	max-width: 150px !important;
}
#footer-main a {
	color: var(--maize);
}
#footer-main .btn-alt {
	color: white;
}
/*
===================================================================================================================
NATIVE CONTENT
===================================================================================================================
*/
.pop-link {
	font-size: 2rem;
	font-weight: 600;
}
.pop {
	background: white;
	border-radius: 15px;
	box-shadow: 4px 4px 8px rgba(0,0,0,0.1);
	cursor: pointer;
	margin-bottom: 15px;
	padding: 20px;
	position: relative;
}
.pop:last-child {
	border-bottom: 1px solid #555;
}
.pop-content {
	font-size: 1.8rem;
	line-height: 1.4;
	margin-top: 10px;
}
.pop:hover {
	background: #eee;
}

.iframe-full {
	width: 100%;
}
.pop::after {
    content: "+";
    display: inline-flex;
    justify-self: flex-end;
    position: absolute;
    right: 10px;
    top: 50%;
    font-size: 30px;
    font-weight: 700;
    transform: translateY(-50%);
}
.pop.active::after {
    content: "-";
}


.single-featured-image {
	margin-bottom: 40px;
}
.bulletin-list article {
	border-bottom: 1px solid var(--cadet-gray);
	margin-bottom: 40px;
}
.article-footer {
    align-items: center;
    display: flex;
    justify-content: center;
	margin-bottom: 60px;
}
.prevnext {
    font-size: 22px;
}







/*
===================================================================================================================
MEDIA QUERIES
===================================================================================================================
*/
@media only screen and (min-width: 641px) {
	.row-grid {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
		grid-gap: 20px;
	}
	.span-1 {
		grid-column: span 1;
	}
	.span-2 {
		grid-column: span 2;
	}
	.span-3 {
		grid-column: span 3;
	}
	.span-4 {
		grid-column: span 4;
	}
	.span-5 {
		grid-column: span 5;
	}
	.span-6 {
		grid-column: span 6;
	}
	.span-7 {
		grid-column: span 7;
	}
	.span-8 {
		grid-column: span 8;
	}
	.span-9 {
		grid-column: span 9;
	}
	.span-10 {
		grid-column: span 10;
	}
	.span-11 {
		grid-column: span 11;
	}
	.span-12 {
		grid-column: span 12;
	}
}
@media only screen and (min-width: 900px) {

	#main-menu {
		display: flex;
		height: auto;
		right: auto;
		position: static;
		text-align: center;
		transition: all 0.25s ease-in-out;
		width: auto;
	}
	#hamburger {
		display: none;
	}
	#main-menu li a {
		display: flex;
		font-size: 14px;
		justify-content: center;
		position: relative;
	}
	#main-menu li a:after {
		background: transparent;
		border-radius: 5px;
		bottom: 10px;
		content: "";
		display: block;
		height: 10px;
		margin: 10px auto 0 auto;
		transition: all 0.25s ease-in-out;
		width: 0px;
		position: absolute;
	}
	#main-menu li:hover a:after {
		background: var(--cream);
		content: "";
		display: block;
		height: 10px;
		transition: all 0.25s ease-in-out;
		transform: scaleY(-50%);
		width: 100%;
	}
	#main-menu .sub-menu {
		background: var(--cream-dark);
		border-bottom: 1px solid var(--orange-web);
		border-left: 1px solid var(--orange-web);
		border-right: 1px solid var(--orange-web);
		display: none;
		/* padding: 10px; */
		position: absolute;
		text-align: center;
		z-index: 4;
	}
	#main-menu .sub-menu li {
		float: none;
	}
	#main-menu .sub-menu li:last-child a {
		padding-right: 20px;
	}
	#main-menu .sub-menu li a {
		color: var(--outer-space);
		text-shadow: 0;
	}
	#main-menu .sub-menu li a:hover {
		background: var(--outer-space);
		color: var(--cream);
		text-shadow: 0;
	}
	#main-menu li:hover .sub-menu li a:after {
		display: none !important;
	}
	#main-menu .menu-item-has-children:hover .sub-menu {
		display: block;
	}

}