/*
Theme Name: Maryland Horse Shows Association
Template: yootheme
*/

/** STRUCTURE **/
.uk-section:not(:last-of-type) {
    padding-bottom: 0;
}

/** NEWS LIST ITEM **/
.news-list-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #7F7F7F;
}

.news-icon {
    flex: 0 0 60px;
    margin-right: 20px;
}

.news-icon img {
    width: 60px;
	object-fit: contain;
}

.news-category-label {
    color: #7F7F7F;
    text-transform: capitalize;
    font-size: 17px;
    display: block;
}

.news-title {
	color: #000;
    margin: 5px 0;
}

.news-cta {
    color: #AA1F25;
    text-decoration: none;
}

.news-post-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 40px 0;
}

/* Ensure the container stays full width in the YOOtheme layout */
.news-post-pagination .nav-next {
    text-align: right;
    margin-left: auto;
}

.news-post-pagination .uk-button-text {
	color: #7F7F7F;
    font-family: 'Oswald';
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 31px;
}

/** LINKS **/
.psc-icon-bucket-link {
    border:solid 1px rgba(170, 31, 37, 1);
    border-radius: 5px;
	position: relative;
	overflow: hidden;
	a {
		padding: 24px 41px;
	}
	&:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: #FBB040;
        opacity: 0;
        transform: translateY(5px);
        transition: opacity 0.3s ease, transform 0.3s ease;
	}
	&.active, &:hover {
		&:after {
			opacity: 1;
            transform: translateY(0);
		}
	}
}
.bucket-link {
	min-height: 315px;
	> .uk-flex {
		border-radius: 5px;
		border: 2px solid #AA1F25;		
		text-align: center;	
		h3 {
			color: #fff;
		}
		a {
			display: flex;
  			flex-direction: column;
  			justify-content: center;
			padding: 70px 40px;
		}
		.uk-background-cover {
			position: relative;
			&:before {
				content: "";
				position: absolute;
				top: 0;
				left: 0;
				right: 0;
				bottom: 0;
				background: linear-gradient(180deg, rgba(127, 127, 127, 0.00) 0%, #7F7F7F 100%);
				mix-blend-mode: multiply; 
				z-index: 0;
			}
		}
	}
}

#contentToggle .uk-grid-margin > div > div {
	position: relative;
}

#contentToggle a:after {
	content: '';
    height: 12px;
    background-color: #FBB040;
    position: absolute;
	width: 100%;
    left: 0;
	opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

#contentToggle .uk-grid-margin > div:first-of-type a:after {
    bottom: -12px;
}

#contentToggle .uk-grid-margin > div:nth-of-type(2) a:after {
    bottom: -22px;
}

#contentToggle .active:after {
    opacity: 1;
}

/** ABOUT SUBNAV **/
#aboutSubnav {
	.uk-flex-column:not(:first-of-type) {
		padding-left: 15px;
	}
	.uk-grid {
		.uk-flex-column {
			a {
				justify-content: center;
				align-items: center;
				display: flex;
				flex-direction: column;
				img {
					height: 100px;
    				object-fit: fill;
				}
			}
			&:last-of-type {
				flex: 0 0 15%;
			}
			.psc-icon-bucket-link {
				flex-grow: 1;
			}
		}
	}
}

/* Mobile Horizontal Scroll for Buckets */
@media (max-width: 959px) {
    /* 1. Target the grid container and prevent wrapping */
    .psc-mobile-scroll.uk-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch; /* Momentum scrolling for iOS */
        padding-bottom: 20px; /* Space for potential scrollbar */
        scroll-snap-type: x mandatory;
        margin-left: 0; /* Align to container edge */
    }

    /* 2. Target the immediate child columns */
    .psc-mobile-scroll.uk-grid > div {
        flex: 0 0 180px !important; /* Forces fixed width so they don't shrink */
        max-width: 180px !important;
        padding-left: 15px; /* Re-apply grid spacing manually */
        scroll-snap-align: start;
    }

    /* 3. Hide scrollbar for a cleaner mobile look */
    .psc-mobile-scroll::-webkit-scrollbar {
        display: none;
    }
	.psc-mobile-scroll.uk-grid a {
		padding: 10px;
	}
	.psc-mobile-scroll.uk-grid a img {
		width: 50px;
		height: 50px;
	}
	.psc-mobile-scroll.uk-grid a h3 {
		font-size: 16px;
	}
}

/* Scale the toggle icon wrapper */
.uk-navbar-toggle-icon svg {
	margin-bottom: 5px;
    transform: scale(2.5);
    /* Ensure the scaling doesn't get cut off by the container */
    transform-origin: center;
}

/* Optional: Adjust the toggle container size to accommodate the larger icon */
.uk-navbar-toggle {
    min-height: 80px; /* Adjust based on your header height */
    padding: 0 30px;  /* Give it more "hit area" for fingers */
}

/* HALL OF FAME BUTTONS */
#hallOfFameFfilterAndSortButtons {
	justify-content: center;
	& > div {
		flex: 0 0 30%;
		.button-wrapper {
			padding-left: 5px;
		}
	}
	.uk-button {
		border: 1px solid #aa1f25;
		color: #aa1f25;
		background: transparent;
	}
	.el-content.active, .uk-button-primary {
		background-color: #aa1f25 !important;
		color: #fff !important;
	}
	.filter-container, .sort-container {
		align-items: center;
	}
	@media (max-width: 960px) {
		flex-direction: column;
		padding: 0 15px;
	}
}

/** FONTS **/
.body-copy-large {
	font-size: 19.5px;
	line-height: 30px;
}
@media (min-width:960px) and (max-width:1199.98px) {
	h1 {
		font-size: 50px;
	}
	h2 {
		font-size: 40px;
	}
}
/** FACETS **/
/* Container for the facet */
.facetwp-facet-news_categories {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
}

/* Individual Button Styling */
.facetwp-facet-news_categories .facetwp-radio {
    background: #fff;
    border: 1px solid #AA1F25;
    color: #AA1F25;
    padding: 10px 25px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
}

/* Active/Checked Button */
.facetwp-facet-news_categories .facetwp-radio.checked {
    background: #AA1F25;
    color: #fff;
}

.facetwp-facet-news_pagination {
	margin-top: 35px;
    text-align: center;
}

.facetwp-facet-news_pagination .facetwp-page {
	background: #fff;
    border: 1px solid #AA1F25;
    color: #AA1F25;
    padding: 10px 25px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
	text-decoration: none;
}

.facetwp-facet-news_pagination .facetwp-page.active {
	border-width: 4px;
}

/** FORMS **/
.nf-form-fields-required {
	display: none;
}
.html-label {
	margin-bottom: 10px !important;
}

.html-label .nf-field-element p {
	font-weight: 400 !important;
    text-transform: uppercase;
	margin-bottom: 0;
}
.nf-field label {
	font-weight: 400 !important;
    text-transform: uppercase;
}
.nf-field-element input:not([type="submit"]), .nf-field-element select, .nf-field-element textarea {
	background: #E5E5E5;
    border-radius: 5px;
    border: solid 1px #000000;
    padding: 15px;
	color: #000;
	font-family: Lato;
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
}

.nf-element::placeholder {
	color: #000;
	font-family: Lato;
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
}

.nf-field-container .nf-field-element input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    height: 28px;
    width: 28px;
    background-color: #E3E5E8;
    border: 2px solid rgba(251, 176, 64, 1);
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.nf-field-container .nf-field-element input[type="checkbox"]:checked::after {
    content: '✔';
    font-size: 28px;
    color: #333;
    position: absolute;
    top: -5px;
    left: 5px;
}

.checkbox-wrap label {
	margin-left: 10px !important;
}

.nf-field-element input[type="submit"] {
	min-width: 150px !important;
}
 
/** HEADER **/
header {
	position: relative;
	z-index: 1;
}
.tm-page {
	padding-top: 15px;
}
@media(min-width: 960px) {
	.uk-navbar-item.uk-logo {
		height: 150px;
		width: 150px;
		margin: -30px 0 -40px 0;
	}

	.uk-responsive-height.uk-logo-inverse {
		max-height: 150px;
	}
}
.uk-navbar-center {
	img {
		@media (max-width: 400px) {
			width: 115px;
		}
		@media (max-width: 959.98px) {
		  width: 135px;
		}
	}
}
.uk-navbar-right .uk-button-primary {
	@media (max-width: 400px) {
			font-size: 14px;
    padding: 5px 10px;
		}
}
.uk-navbar-center-right {
	ul li {
		align-items: center;
    	display: flex;
		&:last-of-type a {
			background-color: #aa1f25;
			color: #fff;
			border: 1px solid transparent;
			margin: 0;
			overflow: visible;
			font: inherit;
			text-transform: none;
			-webkit-appearance: none;
			box-sizing: border-box;
			padding-left: 20px;
			padding-right: 20px;
			line-height: 48px;
			vertical-align: middle;
			font-size: 18px;
			text-align: center;
			text-decoration: none;
			transition: .1s ease-in-out;
			transition-property: color, background-color, background-position, background-size, border-color, box-shadow;
			font-family: Oswald;
			font-weight: 300;
			text-transform: capitalize;
			letter-spacing: 0;
			border-radius: 5px;
			background-origin: border-box;
			height: auto;
			min-height: 0;
		}
	}
}

.uk-navbar-dropdown-nav {
	li:not(:last-of-type) {
		a {
			border-bottom: solid 1px #AA1F25;
		}
	}
}

#tm-dialog-mobile {
	z-index: -1;
	background: rgba(0,0,0,.85);
}
#tm-dialog-mobile .uk-nav-default {
	margin-top: 50px;
}
#tm-dialog-mobile .uk-nav-default > li > a {
    color: #FBB040 !important;
    font-family: "Oswald";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
}
#tm-dialog-mobile .uk-nav-default > li {
	border-bottom: solid 1px #AA1F25;
}
#tm-dialog-mobile .uk-nav-sub a {
	color: #FFF !important;
	font-family: "Oswald";
	font-size: 17px;
	font-style: normal;
	font-weight: 400;
	line-height: 41px;
}
#tm-dialog-mobile .uk-nav-parent-icon {
	color: #fff;
	svg {
		width: 25px;
	}
}

@media (min-width: 960px) {
	.hide-on-desktop {
		display: none;
	}
}
@media (max-width: 959.98px) {
	.hide-on-mobile {
		display: none;
	}
}
.uk-navbar-toggle {
	display: flex;
	flex-direction: column;
}

.uk-navbar-toggle span {
	margin-left: 0 !Important;
}

.uk-navbar-toggle-icon {
	fill: rgba(170, 31, 37, 1) !important;
}

/** HOMEPAGE **/
.home {	
	#imageLinks {
		.uk-panel {
			align-items: center;
  			display: flex;
  			justify-content: center;
			h2 {
				display: inline-flex;
    			align-items: center;
			}
		}
		.uk-background-cover {
			@media (max-width:576px) {
				background-position: top center;
			}
			position: relative;
			&:before {
				content: "";
				position: absolute;
				top: 0;
				left: 0;
				right: 0;
				bottom: 0;
				background: linear-gradient(180deg, rgba(127, 127, 127, 0.00) 0%, #7F7F7F 100%);
				mix-blend-mode: multiply; 
				z-index: 0;
			}
		}
	}
}

/* HEROS */
.homepage-hero {
	z-index: 0;
	.hero-button {
		position: absolute;
		bottom: -25px;
		z-index: 1;
		left: 50%;
		transform: translateX(-50%);
	}
}
.subpage-hero {
	overflow: hidden;
}
.homepage-hero, .subpage-hero {
	position: relative;
}
.homepage-hero:after, .subpage-hero:after {
	content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url('/wp-content/uploads/2026/04/swoop.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: 0;
}
.homepage-hero h1, .subpage-hero h1 {
	background-color: rgba(44, 44, 44, .8);
  	padding: 35px;
}

.homepage-hero h1 {
	margin-bottom: 0;
	position: absolute;
	bottom: 0;
	width: 100%;
	padding-bottom: 50px;
}

/** MEMBERSHIP TABLES **/
.membership-table {
	@media (min-width: 960px) {
    	max-width: 60%;
    	margin: 0 auto;
	}
	.membership-table-row {
		margin-left: 15px;
		margin-right: 15px;
		.uk-h2 {
			margin-bottom: 5px;
			color: #000;
		}
		.uk-first-column {
			width: 40%;
		}
		> div > div:nth-of-type(2) {
			width: 30%;
			font-size: 24px;
			span {
				font-size: 16px;
			}
		}
		> div > div:last-of-type {
			width: 20%;
			text-align: right;
			.uk-button {
				padding-left: 50px;
				padding-right: 50px;
				text-transform: capitalize;
			}
			.hide {
				.uk-button {
					cursor: not-allowed;
					opacity: 0.6;
					pointer-events: none;
				}
			}
		}
	}
}

/** MEMBERSHIP FORM PAGES **/
.membership-form-template {
	.membership-form-sidebar {
		width: 28%;
		h2 {
			margin-bottom: 5px;
		}
		.price {
			color: #000;
		}
		.callout-box {
			padding: 20px 20px;
			border-radius: 5px;
			border: 2px solid #FBB040;
			span {
				color: #AA1F25;
			}
		}
	}
}

/** FORM PAGE **/
.form-table {
	.form-table-row {
		margin-left: 15px;
		margin-right: 15px;
		h2 {
			color: #000;
		}
	}
}

/** MEMBERS & POINTS **/
#memberPointsBucketLinks {
	.uk-flex-column:not(:first-of-type) {
		padding-left: 15px;
	}
	.uk-grid {
		> .uk-flex-column {
			a {
				justify-content: center;
				align-items: center;
				display: flex;
				flex-direction: column;
				img {
					height: 100px;
    				object-fit: fill;
				}
			}
			&:last-of-type {
				flex: 0 0 15%;
				a {
					padding: 24px 20px;
				}
			}
		}
	}
}

/** OUR MISSION & HISTORY **/
@media (min-width: 960px) {
    /* Target the image in the first column */
    #imageFlushLeft .uk-first-column .el-image {
        width: calc(50vw + 50%);
        margin-left: calc(-50vw + 50%);
        max-width: none;
        object-fit: cover;
        display: block;
        max-height: 350px;
        object-position: center top;
    }

    /* Optional: Ensure the container doesn't hide the overflow */
    .uk-section {
        overflow-x: hidden;
    }
}

/** MHSA RULEBOOK **/
#mhsaRegularRulebook, #mhsaRegionalRulebook {
	display: none;
}

#mhsaRegularRulebook {
	padding-bottom: 70px;
}

/* HALL OF FAME **/
.page-id-12 .uk-accordion {
	li {
		.uk-accordion-title {
			text-decoration: none;
			&:hover {
				color: #aa1f25;
			}
		}
		hr {
			border-color: #AA1F25;
			margin-bottom: 30px;
		}
	}
	& >li:not(:last-of-type) {
		margin-bottom: 50px;
	}
	/* Standard state: Pointing UP when closed */
	.uk-accordion-title .decade-caret {
		transition: transform 0.3s ease-in-out;
		transform: rotate(180deg);
		color: #aa1f25;
	}

	/* Open state: Pointing DOWN when open */
	.uk-open > .uk-accordion-title .decade-caret {
		transform: rotate(0deg);
	}

	/* Optional: Hide the default UIkit accordion icon if it's appearing */
	.uk-accordion-title::after {
		display: none !important;
	}
}
.hof-card {
	.uk-background-muted {
		width: 149px;
  		height: 149px;
		.icon {
			width: 65px;
			height: 98px;
			object-fit: contain;
		}
	}
	.body-copy-large {
		color: #AA1F25;	
		margin-bottom: 5px;
	}
	hr {
		border-color: #000 !important;
		opacity: 1;
		margin: 0;
	}
}

/**  CALENDARS & PRIZE LIST **/
.psc-event-item {
	padding-bottom: 25px;
	border-bottom: solid 2px #AA1F25;
	padding: 20px 10px;
	&:not(:last-of-type) {
		margin-bottom: 25px;
	}
	.psc-pill-wrapper {
		display: flex;
	}
	.psc-pill {
		font-size: 11px;
		padding: 5px 20px;
		border-radius: 100px;
		font-weight: 500;
		font-family: 'oswald';
	}
	.event-date {
		color: #AA1F25;
	}
	.event-title, .event-title a {
		color: #000;
		margin: 0;
		text-decoration: none;
		transition: all .5s ease-in-out;
	}
	.event-title a {
		position: relative;
		&:after {
			content: '';
			bottom: -3px;
			position: absolute;
			width: 100%;
			height: 3px;
			left: 0;
			display: block;
			background-color: transparent;
			transition: all .5s ease-in-out;
		}
		&:hover {
			color: #AA1F25;
		}
		&:hover:after {
			background-color: #AA1F25;
		}
	}
	.contact-name {
		margin: 0;
	}
	.psc-org-details {
		margin-top: 5px;
		a {
			text-decoration: none;
		}
	}
	.event-details-heading {
		color: #7F7F7F;
		font-size: 18px;
	}
	&.pending {
		background: rgba(251, 176, 64, 0.3);
	}
}
.tribe-events-l-container {
	padding: 0 !important;
}

.tribe-events-calendar-month {
	border: solid 2px #aa1f25 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
	border-radius: 0 0 5px 5px !important;
}

.tribe-events-header__messages {
	margin: 0 !important;
}

.tribe-events-calendar-month__multiday-event-hidden-link {
	cursor: default !important;
}

.tribe-events-calendar-month__multiday-event-bar:before {
	width: 100% !important;
	z-index: -1 !important;
}

.tribe-common-h3 {
	font-family: "Oswald";
	color: #fff !important;
}

.tribe-common-c-svgicon path {
	fill: #fff !important;
}

.tribe-events-c-top-bar__today-button {
	color: #aa1f25 !important;
    border: solid 2px #fff !important;
    font-family: "Oswald" !important;
    font-size: 18px !important;
}

.tribe-events-calendar-month__multiday-event-bar-title, .tribe-events-c-top-bar__datepicker span {
	font-family: "Oswald" !important;
}

.tribe-events .datepicker .day.active.focused, .tribe-events .datepicker .day.active:focus, .tribe-events .datepicker .month.active.focused, .tribe-events .datepicker .month.active:focus, .tribe-events .datepicker .year.active.focused, .tribe-events .datepicker .year.active:focus {
	background: #AA1F25 !important;
}

.tribe-events-c-top-bar {
	padding: 13px 15px !important;
    margin-bottom: 0 !important;
    background: #AA1F25 !important;
	border-radius: 5px 5px 0 0 !important;
}

.tribe-events-c-top-bar .table-condensed {
	width: 100%;
}

.tribe-events-c-top-bar__datepicker-desktop.tribe-common-a11y-hidden {
	display: block !important;
	visibility: visible !important;
}

.tribe-events-c-top-bar__datepicker-mobile {
	display: none !important;
	visibility: hidden !important;
}

.tribe-events-calendar-month__multiday-event-wrapper {
	z-index: 0 !important;
}

.tribe-events-c-messages__message-list-item-link {
	color: #AA1F25 !important;
	border-bottom: 1px solid #AA1F25 !important;
}

/* 1. Ensure the table allows border radius */
.tribe-events-calendar-month {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 0 0 5px 5px !important;
    overflow: hidden !important;
    border: 1px solid #e5e5e5; /* Match your grid color */
}

/* 2. Target the last row's first cell (Bottom Left) */
.tribe-events-calendar-month__body tr:last-child td:first-child {
    border-bottom-left-radius: 5px !important;
}

/* 3. Target the last row's last cell (Bottom Right) */
.tribe-events-calendar-month__body tr:last-child td:last-child {
    border-bottom-right-radius: 5px !important;
}

/* 4. Remove the double border at the bottom if necessary */
.tribe-events-calendar-month__body tr:last-child td {
    border-bottom: none !important;
}

.tribe-events-header__messages {
	display: none !important;
}

.tribe-events-calendar-month__header > tr {
	justify-items: center !important;
    border-bottom: solid 1px #e5e5e5 !important;
	padding-top: 5px !important;
	padding-bottom: 5px !important;
}

.tribe-events-calendar-month__header .tribe-events-calendar-month__header-column {
	padding-bottom: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.tribe-events-calendar-month__header-column-title span {
	font-size: 16px !important;
}

.tec-events-category-color-filter__dropdown {
	border: solid 1px #000 !important;
}

/* The "Called Out" Event Style */
.psc-highlighted-event {
    border: 2px solid #8B2323; /* Using your red */
    background-color: rgba(139, 35, 35, 0.05); /* Very light red tint */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: scale(1.02); /* Slightly pops the item out */
    transition: all 0.3s ease;
}

/* EVENT SEARCH RESULTS */
.search-input-container {
    display: flex;
    align-items: center;
    border: 1px solid #AA1F25;
    border-radius: 8px;
    padding: 5px 15px;
    background: #fff;
}

.search-input-container input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    flex-grow: 1;
    padding: 8px 0;
    font-size: 1.1rem;
}

.search-input-container input::placeholder {
    color: #AA1F25 !important;
    opacity: 1;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.search-input-container input:-ms-input-placeholder {
    color: #AA1F25 !important;
}

.search-submit-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #AA1F25;
    padding: 0 0 0 10px;
    display: flex;
    align-items: center;
}

.search-submit-icon .uk-icon svg {
    color: #AA1F25;
}
@media (min-width: 960px) {
	.custom-event-results-grid {
		display: flex;
		column-gap: 30px;
		.psc-event-item {
			flex: 50%;
		}
	}
}