/***
 * Theme Name:	CDR Astra Theme
 * Author:	CDR IT Team
 * Author URI:	https://richmonddiocese.org/office/office-of-information-technology/
 * Description:	Based on the latest version of WP Astra, this allows you to customize a theme without affecting the parent theme's base files. This also means that WordPress updates to the parent theme will not break the site or child theme files. 
 * Version:	1.0.0
 * License:	GNU General Public License v2 or later
 * License URI:	http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:	cdrastra
 * Template:	astra
 *
 * SITE COLORS
 *
 *	Blue	#0d5ba6
 *	Gold	#ecd563
 *	Black	#727272
 */
.ast-left-sidebar #primary, .ast-left-sidebar #secondary, .ast-right-sidebar #primary, .ast-right-sidebar #secondary {
	border: 0px !important;
}

.noTitle .widget-title {
	display: none;
}

.smButton {
	display: inline-block;
	padding: 3px 13px;
	font-size: 16px;
	font-weight: bold;
	line-height: 16px;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	vertical-align: middle;
	-ms-touch-action: manipulation;
	touch-action: manipulation;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-border-radius: 20;
	-moz-border-radius: 20;
	border-radius: 20px;
}

.topButton {
	color: #fff;
	background-color: #0d5ba6;
	border: 1px solid #fff;
}

.topButton:hover {
	color: #0d5ba6;
	background-color: #ecd563;
	border: 1px solid #fff;
}

.blueButton {
	color: #0d5ba6;
	background-color: #ffffff;
	border: 1px solid #0d5ba6;
}

.blueButton:hover {
	color: #0d5ba6;
	background-color: #ecd563;
	border: 1px solid #0d5ba6;
}

.noMarg, .noBMarg {
	margin-bottom: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: bold !important;
}

.site-footer-section aside .widget-title {
	display: none;
}

/* Container holding all boxes */
.fp-boxes-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

/* Each box */
.fp-box {
	position: relative;
	width: calc(25% - 20px); /* 4 per row with spacing */
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: stretch;
	transition: transform 0.3s ease; /* Smooth transform on hover */
}

/* Responsive: 2 per row on tablets */
@media (max-width: 1200px) {
	.fp-box {
		width: calc(50% - 20px);
	}
}

/* Responsive: full width on phones */
@media (max-width: 600px) {
	.fp-box {
		width: 100%;
	}
}

/* Background blur layer */
.fp-box::before {
	content: "";
	position: absolute;
	inset: 0;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	background-color: rgba(0, 0, 0, 0.25);
	z-index: 1;
	pointer-events: none;
	transition: background-color 0.3s ease;
}

/* Slightly darken blur layer on hover */
.fp-box:hover::before {
	background-color: rgba(0, 0, 0, 0.35);
}

/* Colored overlay for hover */
.fp-overlay {
	position: absolute;
	inset: 0;
	background-color: transparent;
	transition: background-color 0.3s ease;
	z-index: 2;
	pointer-events: none;
}

.fp-box:hover .fp-overlay {
	background-color: #ecd563;
}

/* Lift effect on hover */
.fp-box:hover {
	transform: translateY(-5px);
}

/* Content area */
.fp-content {
	position: relative;
	z-index: 3;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	color: white;
	box-sizing: border-box;
	padding: 0 10px;
	transition: color 0.3s ease;
}

/* Post title */
.fp-title {
	margin-top: 50px;
	font-size: 1.3em !important;
	font-weight: bold;
	color: white !important;
	margin-bottom: 0 !important;
	transition: color 0.3s ease;
}

/* Optional subtitle */
.fp-subtitle {
	color: #ecd563;
	font-size: 1.2em !important;
	font-weight: bold;
	transition: color 0.3s ease;
}

/* Link near bottom */
.fp-link {
	position: relative;
	margin-top: auto;
	margin-bottom: 25px;
	color: #fff;
	text-align: center;
	font-weight: bold;
	font-size: 1.13em;
	cursor: pointer;
	padding: 3px 7px;
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
	text-decoration: none !important;
	border: 1px solid #fff;
	background-color: transparent;
	z-index: 3;
}

.fp-link::before {
	content: "";
	position: absolute;
	inset: 0;
	background: transparent;
	transition: background-color 0.3s ease;
	z-index: -1;
}

.fp-link:hover {
	background-color: rgba(255, 255, 255, 0.9);
	color: #0d5ba6;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	/* Removed transform: translateY(-5px) to prevent sliding */
}

.fp-link:hover::before {
	background-color: transparent;
}

/* Make all text inside .fp-box change color on hover */
.fp-box:hover * {
	color: #0d5ba6 !important;
}

/***
 * Responsive CSS flex boxes
 */
.mTop {
	margin-top: 20px !important;
}

.borderMe {
	border: 1px solid #cfc984;
}

.cdrFlexFour {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 20px;
	margin: 0 auto;
	max-width: 1200px;
	padding: 0 20px;
}

.cdrFlexFour .box {
	flex: 1 1 calc(25% - 20px); /* 4 per row with 20px gap */
	max-width: calc(25% - 20px);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 200px;
	box-sizing: border-box;
}

.cdrFlexFour .box .boxContent {
	padding: 0 5px;
}

.cdrFlexFour .box h5 {
	margin: 0 0 7px 0;
}

/* Three per row at <= 750px */
@media (max-width: 750px) {
	.cdrFlexFour .box {
		flex: 1 1 calc(33.333% - 20px);
		max-width: calc(33.333% - 20px);
	}
}

/* Two per row at <= 600px */
@media (max-width: 600px) {
	.cdrFlexFour .box {
		flex: 1 1 calc(50% - 20px);
		max-width: calc(50% - 20px);
	}
}

/* One per row at <= 350px */
@media (max-width: 350px) {
	.cdrFlexFour .box {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

.cdrFlexThree {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 20px;
	margin: 0 auto;
	max-width: 1200px;
	padding: 0 20px;
}

.cdrFlexThree .box {
	flex: 1 1 calc(33.333% - 20px); /* 3 per row with gap */
	max-width: calc(33.333% - 20px);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 200px;
	box-sizing: border-box;
}

.cdrFlexThree .box .boxContent {
	padding: 0 5px;
}

.cdrFlexThree .box h5 {
	margin: 0 0 7px 0;
}

/* Two per row at <= 600px */
@media (max-width: 600px) {
	.cdrFlexThree .box {
		flex: 1 1 calc(50% - 20px);
		max-width: calc(50% - 20px);
	}
}

/* One per row at <= 350px */
@media (max-width: 350px) {
	.cdrFlexThree .box {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

.staffImg {
	border-radius: 13px;
	-khtml-border-radius: 13px;
	-moz-border-radius: 13px;
	-webkit-border-radius: 13px;
	box-shadow: 5px 5px 2px #ccc;
	-khtml-box-shadow: 5px 5px 2px #ccc;
	-moz-box-shadow: 5px 5px 2px #ccc;
	-webkit-box-shadow: 5px 5px 2px #ccc;
	max-height: 360px;
	margin-bottom: 13px;
}

.fancyHR {
	width: 75%;
	overflow: visible;
	height: 30px;
	border-style: solid;
	border-color: #ecd563;
	border-width: 2px 0 0 0;
	border-radius: 13px;
	background: transparent !important;
	margin: 0 auto;
}

.fancyHR:before {
	margin: 0 auto;
	background: transparent !important;
	display: block;
	content: "";
	height: 30px;
	margin-top: -31px;
	border-style: solid;
	border-color: #0d5ba6;
	border-width: 0 0 2px 0;
	border-radius: 13px;
}

.cdrFlexTwo .box, .cdrFlexThree .box, .cdrFlexFour .box {
	min-width: 300px;
}