/*
 Theme Name:        Uptown Charity Theme
 Text Domain:       uptown-child-charity
 Author:            April Auger
 Author URI:        https://aprilauger.com
 Description:       Charity is a child theme designed to be used alongside the Uptown theme.
 Template:          uptown
 Version:           1.0.0
 Requires at least: 6.4
 Tested up to:      6.4
 Requires PHP:      8.0
 License:           GNU General Public License v2 or later
 License URI:       http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Buttons */
.btn-primary,
.gform_button,
.post-list-terms li,
.cat-links a,
.post-terms a,
.search-wrapper .search-field {
	border-radius: 2rem;
}

.btn-primary,
.gform_button {
	border: 1px solid var(--xui-primary) !important;
	font-size: var(--xui-font-size-xs);
}

.btn-primary:hover {
	border: 1px solid var(--xui-secondary) !important;
}

a.wp-block-button__link.has-white-background-color:hover {
	border: 2px solid var(--xui-white) !important;
	background: transparent !important;
	color: var(--xui-white) !important;
}

/* Images */
.post-image {
	border-radius: 1.5rem;
}

.staff__content {
	margin-bottom: 1.75rem;
	text-align: center;
}

@media (max-width: 991.98px) {
	.staff-list .staff__photo img.staff__img.w-100.wp-post-image {
		max-width: 250px;
	}
}

.staff__media img {
	border-radius: 50%;
	max-width: 300px;
}

/* Forms */
.gform_wrapper.gravity-theme .gform_fields {
	grid-row-gap: 2.5rem !important;
}

.button-2 .btn-primary {
	background: #df7214;
	border: 1px solid #df7214 !important;
}

.btn-primary:hover {
	background: #fa941f !important;
}

.header__navbar {
	border-top: 1px solid #eee;
}

@media (min-width: 1200px) {
	.header__logo {
		margin-top: -25px;
	}

	#header .header__wrapper .header__logo img {
		max-height: 100px;
	}
}

@media (min-width: 1400px) {
	.header__logo {
		margin-top: -35px;
	}

	#header .header__wrapper .header__logo img {
		max-height: 110px;
	}
}

.post-image {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.post-meta {
	font-size: var(--xui-font-size-xs);
}

.post-meta a {
	color: var(--xui-body);
}

.post-list-button {
	border-radius: 2rem;
}

/* Small screens: make it full width */
@media (max-width: 781px) {
	.sidebar-nav {
		max-width: 100%;
	}
}

/* Title blocks */
#title-block.no-bkg-img {
	background: var(--xui-gray-100);
	margin-bottom: 2rem;
	padding-bottom: 2rem;
}

#title-block.bkg-img .tb-wrapper::before {
	background: transparent
		linear-gradient(
			90deg,
			var(--unnamed-color-00131f) 0%,
			#0a1c28ee 32%,
			#5461696e 100%
		)
		0% 0% no-repeat padding-box;
	background: transparent
		linear-gradient(90deg, #00131f 0%, #0a1c28ee 32%, #5461696e 100%) 0% 0%
		no-repeat padding-box;
	opacity: 0.7;
}

/* Staff */
.staff__title .dashicons::before {
	color: var(--xui-primary);
}

.staff__board-title {
	color: #686858;
	font-family: var(--xui-font-base);
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

.staff__job-title {
	font-size: var(--xui-font-size-xs);
	font-weight: 600;
}

.staff__title {
	font-size: 1.1rem;
}

.staff__title .dashicons:hover::before {
	color: var(--xui-primary-dark);
}

.kt-svg-icon-list-text a {
	font-weight: 600 !important;
}

/* Press Releases */
.press-releases p {
	margin-bottom: 0;
}

.press-releases .has-x-small-font-size {
	color: var(--xui-gray-700);
	font-size: var(--xui-font-size-xs);
	margin-bottom: 0.5rem;
}

.press-releases h3 {
	font-size: 1.25rem;
}

.page-id-209 strong {
	font-weight: 600 !important;
}

/* Buttons */
.has-secondary-dark-background-color {
	border-color: var(--xui-secondary-dark);
	color: #ffffff !important;
}

.has-secondary-dark-background-color:hover {
	background: var(--xui-secondary) !important;
	border-color: var(--xui-secondary);
	color: #ffffff !important;
}

@media (max-width: 1199.98px) {
	.buttons {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
		gap: 0.75rem;
		margin-bottom: 1rem;
	}

	.buttons > div {
		display: flex;
		flex: 1 1 220px;
		/* wrap threshold */
		min-width: 220px;
	}

	.buttons > div > a {
		text-align: center;
		width: 100%;
	}
}

/* Footer */
#footer {
	padding-bottom: 3rem;
	padding-top: 3rem;
}

@media (min-width: 792px) {
	#footer {
		padding-bottom: 5rem;
		padding-top: 5rem;
	}

	#footer .row > .column:first-child {
		flex: 0 0 35% !important;
		max-width: 35% !important;
	}

	#footer .row > .column:nth-child(2),
	#footer .row > .column:nth-child(3),
	#footer .row > .column:nth-child(4) {
		flex: 0 0 21.6667% !important;
		max-width: 21.6667% !important;

		#footer .row > .column {
			flex: 0 0 100% !important;
			max-width: 100% !important;
		}
	}

	@media (min-width: 992px) {
		.buttons .btn-primary {
			min-width: 130px;
		}
	}
}

.ft-copy {
	font-size: var(--xui-font-size-xs);
}

/* Smart search styles */
.smart-search-root .smart-search-pagination {
	gap: 0.75rem;
}

@media (max-width: 575.99px) {
	.smart-search-root .smart-search-form {
		flex-direction: column;
	}

	.smart-search-root .smart-search-form .smart-search-submit {
		flex-direction: column;
	}
}

/* Kadence Advanced Table styles */
.kb-table td,
.kb-table th,
.kb-table tr {
	border-collapse: collapse;
	padding: 0;
	vertical-align: top;
}

/* Kadence Advanced Table wrapper */
.wp-block-kadence-table .kb-table {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0;
	font-size: 16px;
	line-height: 1.5;
	background: #ffffff;
}

/* Header cells */
.wp-block-kadence-table .kb-table th,
.wp-block-kadence-table .kb-table thead th,
.wp-block-kadence-table .kb-table .kb-table-data th,
.wp-block-kadence-table .kb-table tr:first-child th {
	background: #f5f7fb !important;
	text-align: left;
	padding: 16px 18px !important;
	border-bottom: 2px solid #d9dee7 !important;
}

/* Body cells */
.wp-block-kadence-table .kb-table td,
.wp-block-kadence-table .kb-table .kb-table-data {
	background: #ffffff;
	padding: 16px 18px !important;
	border-bottom: 1px solid #e5e7eb !important;
}

/* Zebra rows */
.wp-block-kadence-table .kb-table tbody tr:nth-child(even) td {
	background: #fafbfc !important;
}

/* Paragraph spacing inside cells */
.wp-block-kadence-table .kb-table p {
	margin: 0 0 12px;
}

.wp-block-kadence-table .kb-table p:last-child {
	margin-bottom: 0;
}

/* Buttons inside table */
.wp-block-kadence-table .kb-table .wp-block-buttons {
	gap: 10px;
	margin-top: 12px;
}

.wp-block-kadence-table .kb-table .wp-block-button__link {
	border-radius: 8px !important;
	padding: 10px 14px !important;
	font-size: 14px;
	font-weight: 600;
}

/* Mobile */
@media (max-width: 767.98px) {
	.wp-block-kadence-table .kb-table {
		min-width: 800px;
		font-size: 15px;
	}

	.wp-block-kadence-table .kb-table th,
	.wp-block-kadence-table .kb-table td,
	.wp-block-kadence-table .kb-table .kb-table-data {
		padding: 14px !important;
	}
}

@media (min-width: 1200px) {
	.dropdown-menu.show {
		box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
	}
}

.dropdown-menu li {
	position: relative;
}

.dropdown-menu:first-of-type {
	left: 0;
	right: auto;
	top: 100%;
}

/* every nested / later dropdown opens to the side */
.dropdown-menu .dropdown-menu,
.dropdown-menu:not(:first-of-type) {
	top: 0;
	left: 95%;
	right: auto;
	margin-top: 0;
	margin-left: 0.125rem;
}

/* optional: flip to the left when near the edge */
.dropdown-menu.open-left,
.dropdown-menu .dropdown-menu.open-left {
	left: auto;
	right: 100%;
	margin-left: 0;
	margin-right: 0.125rem;
}

.dropdown-menu li {
	position: relative;
}

.dropdown-menu:first-of-type {
	left: 0;
	right: auto;
	top: 100%;
}

/* hidden state */
.dropdown-menu .dropdown-menu,
.dropdown-menu:not(:first-of-type) {
	top: 0;
	left: 95%;
	right: auto;
	margin-top: 0;
	margin-left: 0.125rem;

	opacity: 0;
	visibility: hidden;
	transform: translateX(-10px);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0.2s ease;
	pointer-events: none;
}

/* visible state */
.dropdown-menu .dropdown-menu.show {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	pointer-events: auto;
}

@media (min-width: 992px) {
	.text-start .staff__content {
		text-align: left !important;
	}
}
