/*
 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
*/

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

/* Accordion */
.kt-blocks-accordion-title {
	font-weight: 700;
}

/* Staff block */
.staff__company {
	font-style: italic;
	font-size: 0.95rem;
}

.staff.text-start .staff__title {
	text-align: left;
	justify-content: flex-start;
}

.staff.text-start h3 {
	margin-top: 0.5rem !important;
}

/* CTA button */
.cta-btn {
	background-color: var(--xui-primary);
	border-radius: 2rem;
	border: 1px solid var(--xui-primary);
	color: var(--xui-white);
	font-size: var(--xui-font-size-xs);
	font-weight: var(--xui-font-weight-semibold);
	line-height: 1;
	padding: 0.35rem 0.75rem;
	margin-bottom: 0.25rem;
	margin-top: 0.25rem;
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}

.cta-btn:hover {
	background-color: var(--xui-secondary);
	border-color: var(--xui-secondary);
	border-width: 1px;
	border-style: solid;
	color: var(--xui-white);
}

/* Add dashicon before the Login link */
#menu-item-249 > a {
	align-items: center;
	display: inline-flex;
	gap: 0.4rem;
}

#menu-item-249 > a::before {
	color: var(--xui-primary);
	content: '\f110';
	display: inline-block;
	font-family: dashicons;
	font-size: 18px;
	line-height: 1;
}

@media (max-width: 991.98px) {
	.cta-btn {
		text-align: center;
		width: 100%;
	}
}

/* Header */
#header .header__wrapper .header__top-bar .header__top-bar-menu > li.cta-btn > a {
	color: var(--xui-white);
}

@media (min-width: 1200px) {
	div#logo {
		margin-top: -2.5rem;
	}

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

/* Desktop navbar dropdown width */
.navbar .dropdown-menu {
	--bs-dropdown-min-width: 16rem !important;
	min-width: var(--bs-dropdown-min-width) !important;
	width: max-content;
}

.navbar .dropdown-menu .dropdown-item {
	white-space: nowrap;
}

/* Gravity Forms */
.gform_wrapper .gform_button {
	background: var(--xui-primary) !important;
	border-radius: 2rem !important;
	color: #fff !important;
	font-weight: var(--xui-font-weight-bold) !important;
}

.gform_wrapper .gform_button:hover {
	background: var(--xui-secondary) !important;
	border: 1px solid var(--xui-secondary);
}

/* Scroll offset for fixed header */
:root {
	--fixed-header-offset: 90px;
}

html,
body {
	scroll-padding-top: var(--fixed-header-offset);
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html,
	body {
		scroll-behavior: auto;
	}
}

/* Other styles */
@media (max-width: 767.98px) {
	.hero-image__wave-wrapper {
		height: 35px !important;
	}
}

.h4 {
	color: var(--xui-black);
	font-size: 1.1rem;
	font-size: var(--xui-font-size-sm) !important;
}

@media (min-width: 768px) {
	.row > .column:not(:first-child) {
		padding-top: 3rem;
	}

	footer .row > .column:first-child {
		flex: 0 0 auto;
		width: 33.333333%;
	}

	footer .row > .column:not(:first-child) {
		flex: 0 0 auto;
		width: 22.222222%;
	}
}

.news .post-title {
	color: var(xui-font-size-md);
	font-weight: 600;
	line-height: 1.2;
	margin: 0.5rem 0;
}

.news .post-date {
	align-items: center;
	display: inline-flex;
	font-size: var(--xui-font-size-xs);
}

.post-date .dashicons {
	align-items: center;
	display: inline-flex;
	height: 1em;
	justify-content: center;
	line-height: 1;
	width: 1em;
}

.news .dashicons::before {
	color: var(--xui-primary);
	font-size: var(--xui-font-size-xs);
}

.tribe-events,
.single-tribe_events {
	margin-top: 50px;
}

.cta-btn {
	padding-left: 1rem;
	padding-right: 1rem;
}

.single-staff {
	margin-top: 120px;
}

.kt-row-has-bg a:not(.wp-block-button__link) {
	text-decoration: underline;
	font-weight: 600;
}

.hero-content {
	max-width: 750px;
}
