/*
[Table of contents]
1. Typography ----------------
2. Skip Content --------------
3. Header --------------------
4. Sidebar -------------------
5. Hero ----------------------
6. Footer --------------------
7. Modal --------------------
8. Cookie Alert -------------
*/

:root {
	/*--primary-color: #249A52;*/
	--primary-color: #0A5B42;
	--secondary-color: #051223;
	--text-color: #000;
	--text-light-color: #fff;
	--highlight-color: #004770;
	--dark-primary-color: #0B5B42;
}
/******************************************************************************
  Typography
*******************************************************************************/
html {
	overflow-y: scroll;
}
body {
	font-family: Helvetica, sans-serif;
}

input, select, button {
	color: var(--text-color);
}

.btn-primary,
.btn-secondary,
.btn-highlight {
	min-width: 170px;
	padding-top: 12px;
	padding-bottom: 12px;
	border-radius: 0;
}

.btn-primary {
	color: var(--text-light-color);
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
	
	&:hover {
		color: var(--secondary-color);
		background-color: var(--text-light-color);
		border-color: var(--secondary-color);
	}
}

.btn-secondary {
	color: var(--text-color);
	background-color: var(--text-light-color);
	border-color: var(--text-light-color);
	
	&:hover {
		color: var(--text-light-color);
		background-color: var(--text-color);
		border-color: var(--text-light-color);
	}
}

.btn-highlight {
	color: var(--text-color) !important;
	background-color: var(--primary-color);
	border-color: var(--primary-color);

	&:hover {
		color: var(--primary-color) !important;
		background-color: var(--text-color);
		border-color: var(--primary-color);
	}
}

.btn-chevron {
	position: relative;

	.fa-chevron-right {
		position: absolute;
		right: 1rem;
		top: 50%;
		transform: translateY(-50%);
	}
}

.link-more {
	color: var(--text-color);
	text-decoration: none;
	font-weight: bold;
	font-size: 1.2rem;
}

.link-default {
	color: var(--highlight-color);
	font-weight: bold;
	text-decoration: none;
}

.link-more:hover,
.link-default:hover {
	color: var(--primary-color);
	
	.fa-arrow-right-long {
		animation: arrow-float 0.5s ease-in-out infinite;
	}
}

.bg-primary {
	background-color: var(--dark-primary-color) !important;
}
.bg-secondary {
	background-color: var(--secondary-color) !important;
}

@keyframes arrow-float {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 767.98px) {
	.btn-primary,
	.btn-secondary,
	.btn-highlight {
		min-width: 130px;
	}
}

/******************************************************************************
  Skip Content
*******************************************************************************/
a.skip {
	position: absolute;
	top: -1000px;
	left: -1000px;
	height: 1px;
	width: 1px;
	text-align: left;
	overflow: hidden;
	z-index: 999;
	
	&:active,
	&:focus,
	&:hover {
		left: 0;
		top: 0;
		width: auto;
		height: auto;
		overflow: visible;
		z-index: 1021;
	}
}

/******************************************************************************
  Header
*******************************************************************************/

.header-brand img {
	width: 200px;
	transition: opacity 500ms ease-out;
	
	&:hover {
		opacity: 0.8;
	}
}
.header-menu {
	display: flex;

	.navbar-toggler {
		background-color: var(--secondary-color);
		padding: 0 1.5rem;
		cursor: pointer;
		font-size: 36px;
		line-height: 0;
		border: none;
		box-shadow: none;
		border-radius: 0;
		color: var(--text-light-color);
	}
}

.header-link {
	width: 100%;
	text-transform: uppercase;
	/* 	border: none; */
}

.header-nav {
  	gap: 20px;
}
.header-nav a {
	font-size: 1.2rem;
	color: black;
	text-decoration: none;
	
	&:hover{
		text-decoration: underline;
		text-underline-offset: 0.2em;
	}
}

.navbar-menu {
	border: none;
	background: none;

	.fa-bars {
		font-size: 2rem;
	}
}

.navbar-toggler {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
	.header-navbar {
		padding-top: 1rem;
		padding-bottom: 1rem;
	}
	.header-brand img {
		width: 220px;
	}
	.header-link {
		width: 150px;
	}
}
/******************************************************************************
  Sidebar
*******************************************************************************/
.sidebar {
	height: 100%;
	width: 0;
	position: fixed;
	z-index: 5;
	top: 0;
	right: 0;
	background-color: var(--secondary-color);
	overflow-x: hidden;
	transition: 0.5s;
	padding-top: 60px;

	a {
		padding: 1rem 1rem 1rem 2rem;
		text-decoration: none;
		/* font-size: 25px; */
		color: #f1f1f1;
		display: block;
		transition: 0.3s;
		
		&:hover {
			/* color: #f1f1f1; */
			background-color: rgba(0, 0, 0, 0.2);
		}
	}

	.closebtn {
		position: absolute;
		top: 0;
		right: 0;
		padding: 1rem 2rem;
		font-size: 36px;
		line-height: 1;
		margin-left: 50px;
	}
}

/******************************************************************************
  Show
*******************************************************************************/
.breadcrumb {
	gap: 15px;
	text-underline-offset: 0.2em;
}

.responsive-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.container-show {
	max-width: 878px;
	
	a:not([class]) {
		color: var(--highlight-color);
		font-weight: bold;
		text-decoration: none;
		
		&:hover {
			color: var(--primary-color);
		}
	}
}

/******************************************************************************
  Footer
*******************************************************************************/
.footer {
/* 	border-top: 5px solid #ba8a40; */
	background-color: #5B5654;
	color: var(--text-light-color);
	text-align: center;

	.footer .address {
		font-size: 0.9rem;
	}
	li {
		margin-top: 0.2rem;
	}
	.link {
		position: relative;
		display: inline-block;
		padding-left: 1rem;
		color: var(--text-light-color);
		text-decoration: none;
		text-transform: capitalize;
		
		&:hover{
			text-decoration: underline;
			text-underline-offset: 0.2em;
		}
		
		&::before {
			content: "";
			position: absolute;
			left: 0;
			top: 50%;
			width: 5px;
			height: 5px;
			border: 1px solid var(--text-light-color);
			border-radius: 50%;
			transform: translateY(-50%);
			opacity: 0;
		}
	}
	.copy-right {
		padding: 1rem 0;
		background-color: var(--text-color);
		margin-bottom: 0;
		font-size: 0.7rem;
		text-align: center;
	}
}

@media (min-width: 768px) {
	.footer {
		text-align: left;
		li {
			margin-top: 0.7rem;
		}
		.copy-right {
			font-size: 0.9rem;
		}
		.link::before {
			opacity: 1;
		}
	}
}
@media (max-width: 767.98px) {
	.footer {
		.col-address {
			width: 100%;
			text-align: center;
		}
	}
}
/******************************************************************************
  Modal
*******************************************************************************/
.top-right {
	position: absolute;
	right: 0;
	top: 0;
}

/******************************************************************************
  Cookie Alert
*******************************************************************************/
.cookiealert {
    position: fixed !important;
    bottom: 0; 
    left: 0;
    width: 100%;
    margin: 0 !important;
    z-index: 999;
    opacity: 0;
    border-radius: 0 !important;
    transform: translateY(100%);
	transition: all 500ms ease-out;
    color: #ecf0f1;
    background-color: rgba(0,0,0,.9);
	font-size: 0.8rem;
}
@media (min-width: 768px) {
	.cookiealert,
	.cookiealert .btn {
		font-size: 1rem;
	}
}
.cookiealert.show {
    opacity: 1;
    transform: translateY(0%);
    transition-delay: 1000ms;
}
.cookiealert a {
    text-decoration: underline;
    color: var(--text-light-color) !important;
}
.cookiealert .acceptcookies {
    margin-left: 0px;
	min-width: 80px;
}
.cookiealert .declinecookies {
	min-width: 80px;
}
#cookie-popup-alert #decline-button.btn-cookies {
    padding: 0;
    text-decoration: underline !important;
}

/******************************************************************************
  Hero
*******************************************************************************/

/* homepage */
.homepage-main-hero {
	overflow: hidden;
	position: relative;
	height: 290px;
	z-index: 2;
	/* animation: fadein 2.5s; */
}

.bg-hero {
	background-color: var(--secondary-color);
}

.homepage-main-hero-image,
.sub-hero-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}

.homepage-main-hero-image {
	aspect-ratio: 26 / 10;
}

/* .homepage-main-hero-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('/images/new-big-hero-logo-homepage-for-sb.png');
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
} */
.homepage-main-hero:hover .homepage-main-hero-image {
	-webkit-transform: scale(1.05);
	transform: scale(1.05);
}
#worldimpact-main-hero .btn-more {
	font-size: 1.7rem;
}

#worldimpact-main-hero .bg-dark {
	background-color: var(--primary-color) !important;
}
/* mobile only */
@media (max-width: 767.98px) {
	#worldimpact-main-hero {
		position: relative;

		.container {
			position: relative;
			z-index: 2;
		}

		&::before {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 150px;
			background-color: var(--secondary-color);
			z-index: 1;
		}
	}
}
/* desktop only */
@media (min-width: 768px) {
	.bg-hero,
	#worldimpact-main-hero {
		background-image: url('/_resources/images/hero-background.webp');
		background-position: center;
		background-repeat: no-repeat;
		background-size: cover;
	}
	#worldimpact-main-hero {
		background-size: 100% 450px;
		background-position: center top;
	}
	#worldimpact-main-hero,
	.hero-show-page {
		background-color: transparent;
	}
	.hero-show-page {
		background-size: 100% 400px;
		background-position: center top;
	}
	.homepage-main-hero-text {
		max-width: 500px;
	}
	.homepage-main-hero {
		height: 500px;
		/* background-color: var(--secondary-color); */
	}
	.item3 {
		.sub-hero-text .text {
			display: none !important;
		}
	}
}

/******************************************************************************
  Grid Container
*******************************************************************************/
.grid-container {
	& > div {
		position: relative;
	}
	& > div:last-child {
		border: 15px solid var(--primary-color);
		background-color: var(--text-light-color);
		text-align: center;
	}
	.block {
		/* background-color: var(--primary-color); */
		background-color: rgba(10, 30, 59, 0.5);
	}
	.item1::before,
	.item2::before,
	.item3::before {
		content: '';
		display: block;
		width: 100%;
		height: 100%;
		background-color: var(--primary-color);
		opacity: 0.35;
		position: absolute;
		top: 0;
		left: 0;
		z-index: 1;
		display: none;
	}
}
/* mobile only */
@media (max-width: 767.98px) {
	.grid-container { 
		& > div {
			margin-bottom: 1rem;
		}
		.block {
			padding: 10px;
			min-height: 180px;
		}
	}
}
/* desktop only */
@media (min-width: 768px) {
	.grid-container {
		display: grid;
		grid-template-areas:
			'one one two two'
			'one one three four';
		grid-gap: 20px;
		grid-template-columns: calc(25% - 15px) calc(25% - 15px) calc(25% - 15px) calc(25% - 15px);
		/* 	background-color: var(--text-light-color); */

		.item1 { grid-area: one;}
		.item2 { grid-area: two;}
		.item3 { grid-area: three;}
		.item4 { grid-area: four;}

		& > div {
			overflow: hidden;
			min-height: 260px;
		}
		& > div:hover .sub-hero-image {
			-webkit-transform: scale(1.1);
			transform: scale(1.1);
		}

		.block {
			padding: 20px;
		}
	}
}

/******************************************************************************
  About
*******************************************************************************/
#homepage-about {
	position: relative;
	background-color: var(--secondary-color);

	.container {
		position: relative;
		z-index: 2;
	}
}
@media (min-width: 768px) {
	#homepage-about::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		opacity: 0.1;
		background-image: url('/_resources/images/world-map-background.webp');
		background-position: center;
		background-repeat: no-repeat;
		background-size: cover;
		z-index: 1;
	}
}

 /******************************************************************************
  Blockquote
*******************************************************************************/
blockquote {
	font-size: 1.5rem;

	&::before,	
	&::after {
		position: relative;
		display: inline-block;
		font-family: 'Font Awesome 6 Sharp';	
		font-weight: 900;
		font-size: 1.5em;
		color: var(--text-light-color);
		line-height: 1;
	}
	&::before {
		content: '\f10d';
		top: -1rem;
		margin-right: 0.5rem;
	}	
	&::after {
		content: '\f10e';
		bottom: -1rem;
		margin-left: 0.5rem;
	}
}
@media (min-width: 768px) {
	blockquote {
		font-size: 2rem;
	
		&::before,	
		&::after {
			font-size: 1.5em;
		}
	}
}

/******************************************************************************
  Support
*******************************************************************************/
#homepage-support .block{
	background-color: var(--secondary-color);
}
/******************************************************************************
  Resources
*******************************************************************************/
#homepage-resources .card-title{
	font-size: 1.25rem;
	font-weight: bold;
}
@media (min-width: 768px) {
	#homepage-resources .block-text {
		max-width: 60%;
	}
}

.card-resource {
	li {
		margin-bottom: 0.3rem;
		
		&::marker {
			color: #E4E4E4;
			font-size: 1.5rem;
		}
	}
	a {
		color: var(--highlight-color);
		font-weight: bold;
		text-decoration: none;
		
		&:hover {
			color: var(--primary-color);
		}
	}
}
	
/******************************************************************************
  Features
*******************************************************************************/
.box-feature {
	box-shadow: 3px 3px 16px rgba(0, 0, 0, 0.16);
	padding: 2rem 1.2rem;
	background-color: var(--text-light-color);
}

#feature-1 .display-5,
#feature-1 .lead {
	color: var(--dark-primary-color) !important;
}
#feature-2 {
	background-color: var(--dark-primary-color) !important;
}

@media (min-width: 768px) {
	.box-feature {
		padding: 1.3rem;
		background-position: right 20px bottom;
		background-repeat: no-repeat;
	}
	#feature-1 {
		background-image: url('/_resources/images/icon-prayer-hands.webp');
		background-size: 236px auto;
	}
	#feature-2 {
		background-image: url('/_resources/images/icon-donate-box.webp');
		background-size: 306px auto;
	}
}
/******************************************************************************
  Prayer Request
*******************************************************************************/
.sec-prayer-request + p { display: none; }
.sec-prayer-request-text {
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}
/******************************************************************************
  Video
*******************************************************************************/
.load-video {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 112px;
	height: 112px;
	cursor: pointer;

	.icon {
		width: 100%;
		height: 100%;
	}
}

/******************************************************************************
  About Page
*******************************************************************************/
.sec-about {
	overflow-x: hidden;
}
.sec-about-block {
	display: flex;
	align-items: center;
	justify-content: center;
}
.sec-about-text {
	padding: 1rem;
}
@media (min-width: 768px) {
	.hero-about {
		width: 60%;
		margin-left: auto;
		margin-right: auto;
	}
}
@media (min-width: 992px) and (max-width: 1199.98px) {
	.sec-about-text {
		width: 80%;
	}
}
@media (min-width: 1200px) {
	.sec-about-text {
		width: 60%;
	}
}
@media (min-width: 1920px) {
	.flex-row .sec-about-block {
		justify-content: start;
	}
	.flex-row-reverse .sec-about-block {
		justify-content: end;
	}
}
/******************************************************************************
  Recent Episode
*******************************************************************************/
#recentEpisode .row {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}
/* desktop only */
@media (max-width: 991.98px) {
	#recentEpisode .h5 {
		font-size: 1rem;
	}
}

.video-resources {
	.nav-link {
		color: var(--text-color);
		font-weight: bold;

		&.active {
			color: var(--dark-primary-color)
		}
	}
}
/******************************************************************************
  Shows
*******************************************************************************/
html.sr .js-reveal {
  visibility: hidden;
}
/******************************************************************************
  Search
*******************************************************************************/
/* Search Programs */
.programs-search {
	input, 
	select {
		width: 100%;
		padding: 1rem;
		border: none;
	}
	select {
		min-width: 200px;
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		cursor: pointer;
	}
	.text-input-wrapper {
		position: relative;
	}
	.icon {
		width: 16px;
		position: absolute;
		top: 50%;
		right: 1rem;
		transform: translateY(-50%);
		color: var(--color-black);
		pointer-events: none;
	}
}
@media (max-width: 575.98px) {
	.programs-search {
		input, 
		select {
			padding: 0.5rem;
		}
	}
}

/* shows list */
.all-shows {
	margin-left: -1rem;
	margin-right: -1rem;

	.card {
		border: none;
	}
	
	.figure {
		min-height: 100px;
		background-color: var(--text-light-color);
	}

	.mix {
		/* width: 100%; */
		width: calc(100% / 2 - ((0.3rem) / 2));
		display: inline-block;
		vertical-align: top;
		/* margin-bottom: 1rem; */
	}
	
	.fail-message {
		text-align: center;
		opacity: 0;
		visibility: hidden;
	}
	&.mixitup-container-failed {
		.fail-message {
			opacity: 1;
			visibility: visible;
		}
	}
}
@media (max-width: 991.98px) {
	.all-shows { 
		margin-left: -0.3rem;
		margin-right: -0.3rem;
		
		.card-body {
			padding: 0.4rem 0.3rem;
		}
	}
	
}
@media (min-width: 992px) and (max-width: 1199.98px) {
	.all-shows .mix {
		width: calc(100% / 3 - ((1rem) / 3));
	}
}
@media (min-width: 1200px) {
	.all-shows .mix {
		width: calc(100% / 4 - ((1rem) / 4));
	}
}

/******************************************************************************
  Image Hover Effects
*******************************************************************************/
.image-hover-01 {
	.figure {
		overflow: hidden;

		img {
			-webkit-transform: scale(1);
			transform: scale(1);
			-webkit-transition: .3s ease-in-out;
			transition: .3s ease-in-out;

			&:hover {
				-webkit-transform: scale(1.1);
				transform: scale(1.1);
			}
		}
	}
}

/* load-video */
.load-video {
	img {
		opacity: 1;
		-webkit-transition: .3s ease-in-out;
		transition: .3s ease-in-out;

		&:hover {
			opacity: 0.5;
		}
	}
}

/* scroll-margin-top */
.scroll-mt{
	scroll-margin-top: 60px;
	scroll-snap-margin-top: 60px; /* iOS 11 and older */
}
@media (min-width: 768px) {
	.scroll-mt  {
		scroll-margin-top: 80px;
	}
}

#directedit #de {
	color: var(--text-light-color);
	text-decoration: none;
	
	&:hover {
		text-decoration: underline;
	}
}