/**
 * Frontend CSS for AHC Paylocity Job Feed.
 *
 * The legacy AHCFacilities.com presentation is bundled here so the shortcode
 * remains styled even when inline custom CSS is blocked, delayed, or printed
 * after the theme head. Site-specific overrides are still managed from
 * Paylocity Feed > Styles and printed as inline CSS by the shortcode.
 */
.ahc-paylocity-job-feed {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    clear: both;
}

.ahc-paylocity-job-feed *,
.ahc-paylocity-job-feed *::before,
.ahc-paylocity-job-feed *::after {
    box-sizing: inherit;
}

.ahc-paylocity-job-feed .paylocity-loading,
.ahc-paylocity-job-feed .paylocity-error,
.ahc-paylocity-job-feed .paylocityNoJobsFound {
    margin: 0 0 1rem;
}

/* Filters Styling */
.ahc-paylocity-job-feed .filters {
	display: flex;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
	justify-content: space-around;
	gap: 0.5rem;
	padding: 1rem 0rem;
	padding-bottom: 1.75rem;
}
	
.ahc-paylocity-job-feed .filters select {
    width: 100%;
    padding: 0rem;
    font-size: 14px;
    padding-left: 0.5rem;
	padding-right: 0.5rem;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 400 !important;
    color: #666666;
	min-height: 4rem;
	border: 1px solid #BBBBBBED;
}

/* Force Filter Sizes */
.ahc-paylocity-job-feed .filters select.ahc-paylocity-state-dropdown {
    width: calc(150px - 0.5rem);
}
.ahc-paylocity-job-feed .filters select.ahc-paylocity-department-dropdown {
	width: calc(425px - 0.5rem);
}
.ahc-paylocity-job-feed .filters select.ahc-paylocity-position-dropdown {
	width: calc(425px - 0.5rem);
}
.ahc-paylocity-job-feed .filters select.ahc-paylocity-hours-dropdown {
    width: calc(160px - 0.5rem);
}

.ahc-paylocity-job-feed button.ahc-paylocity-reset-filters {
    border-radius: 3px;
    padding: 0rem;
    border: 1px solid #BBBBBBED;
    background-color: #2C3D6010;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2C3D60CC;
    min-height: 2.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
	width: 140px;
}
					 
.ahc-paylocity-job-feed button.ahc-paylocity-reset-filters:hover {
	border:1px solid #2C3D60ED !important;
	background-color:#2C3D60ED !important;
	color: #f2f2f2f2;
	font-weight: 600 !important;
	transition: background-color 0.5s ease-in-out;
}

.ahc-paylocity-job-feed .no-results-message {
	display: none;
	padding: 25px;
	background-color: #f8d7da;
	color: #1B2740;
	border: 1px solid #f5c6cb;
	border-radius: 5px;
	margin: 0 50px 20px 50px;
}

.ahc-paylocity-job-feed .jobs-feed {
	padding-left: 0px;
	padding-right: 0px;
}

/* Videos */
.ahc-paylocity-job-feed .job-video-container {
	margin-top: 20px;
}

.ahc-paylocity-job-feed .job-video-frame {
	width: 640px; /* Standard video width */
	height: 360px; /* Standard video height */
	background-color: transparent;
	border: none;
	display: block; /* Ensures proper centering with margin auto if needed */
}

.ahc-paylocity-job-feed .paylocity-job-description {
	margin-top: 5px;
}
					 
/* Evergreen listing styling */
.ahc-paylocity-job-feed .paylocity-job-card.acf-job-card .paylocity-job-right,
.ahc-paylocity-job-feed .paylocity-job-card.evergreen-job-card .paylocity-job-right {
    padding-bottom: 0rem;
}

/* Default state for 'Read Full Job Description' button */
.ahc-paylocity-job-feed .paylocity-full-description-link {
	background-color: #2C3D6010;
    color: #2C3D60CC;
    border: 1px solid #2C3D60CC !important;
    text-align: center;
    padding: 0rem;
    border-radius: 4px;
    width: auto;
    margin-top: 0rem;
    transition: background-color 0.3s ease;
    min-height: 2.5rem;
    font-family: 'Open Sans';
    font-size: 15px;
    display: flex;
    justify-content: center;
    font-weight: 400;
    flex-direction: column;
    min-height: 4rem;
}

/* Hover state for 'Read Full Job Description' button */
.ahc-paylocity-job-feed .paylocity-full-description-link:hover {
	background-color: #2C3D60CC !important;
	color: #f2f2f2f2 !important;
	border: 1px solid #2C3D60CC !important;
}

/* Base styles for other buttons (Apply Now) */
.ahc-paylocity-job-feed .paylocity-apply-link {
    background-color: #2C3D60CC;
    color: #f2f2f2f2;
    border: 1px solid #2C3D60CC !important;
    text-align: center;
    padding: 0rem;
    border-radius: 4px;
    width: auto;
    margin-top: 0rem;
    transition: background-color 0.3s ease;
    min-height: 2.5rem;
    font-family: 'Open Sans';
    font-size: 15px;
    display: flex;
    justify-content: center;
    font-weight: 500;
    flex-direction: column;
    font-style: normal;
    min-height: 4rem;
}

/* Hover state for Apply Now button */
.ahc-paylocity-job-feed .paylocity-apply-link:hover {
	background-color: #2C3D60ED !important;
	color: #f2f2f2f2;
	border: 1px solid #2C3D60ED !important;
}

.ahc-paylocity-job-feed .paylocity-job-card {
    border: 1px solid #BBBBBBBB;
    border-radius: 3px;
    padding: 0.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 1px 1px 6px -2px rgba(0, 0, 0, 0.1);
    font-family: 'Open Sans', Arial, sans-serif;
    color: #141414ed;
}
.ahc-paylocity-job-feed .paylocity-job-card:nth-of-type(even) {
	background-color: #f7f7f775;
}
/* Title Container */
.ahc-paylocity-job-feed .paylocity-job-title-container {
    border-bottom: 1px solid #DDDDDDED;
    width: calc(100% - 2rem);
    margin: auto;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}
.ahc-paylocity-job-feed .paylocity-job-title-container .paylocity-job-title {
	margin: 0;
}
.ahc-paylocity-job-feed .paylocity-job-title-container h2.paylocity-job-title {
    font-family: 'Open Sans';
    font-size: 24px;
    font-weight: 400;
    margin-left: 0rem !important;
    margin-bottom: 0.75rem;
    margin-top: 0.4rem;
}

/* Job details container */
.ahc-paylocity-job-feed .paylocity-job-details {
	display: flex;
	flex-wrap: wrap;
}
.ahc-paylocity-job-feed .paylocity-job-details-expanded {
    display: none;
    margin-top: 0rem;
    color: #141414ED;
    font-family: 'Open Sans';
    font-size: 17px !important;
    font-weight: 300 !important;
	margin-bottom: 1.5rem;
	/* Animated Expand/Collapse */
	overflow: hidden;
    max-height: 3000px;
    transition: max-height 1.0s ease;
	display: none;
}
.ahc-paylocity-job-feed .paylocity-job-details-expanded p {
    display: flex;
	flex-direction: column;
    margin: 0rem;
	margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.ahc-paylocity-job-feed .paylocity-job-details-expanded p:empty,
.ahc-paylocity-job-feed .paylocity-job-details-expanded br {
    display: none;
}
.ahc-paylocity-job-feed .paylocity-job-details-expanded br + * {
    margin-top: 0.5rem;
}
.ahc-paylocity-job-feed .paylocity-job-details-expanded ul,
.ahc-paylocity-job-feed .paylocity-job-details-expanded ol {
	margin-left: 1rem;
	margin-bottom: 0rem;
}
.ahc-paylocity-job-feed .paylocity-job-details-expanded li {
	margin-bottom: 0.15rem;
}
.ahc-paylocity-job-feed .paylocity-job-details-expanded li::marker {
	font-size: 13px;
}
.ahc-paylocity-job-feed .paylocity-job-details-expanded strong,
.ahc-paylocity-job-feed .paylocity-job-details-expanded h2 strong,
.ahc-paylocity-job-feed .paylocity-job-details-expanded h3 strong,
.ahc-paylocity-job-feed .paylocity-job-details-expanded h4 strong,
.ahc-paylocity-job-feed .paylocity-job-details-expanded h5 strong,
.ahc-paylocity-job-feed .paylocity-job-details-expanded h6 strong,
.ahc-paylocity-job-feed .paylocity-job-details-expanded p strong {
	font-weight: 400 !important;
	font-size: 16px !important;
	text-transform: none !important;
}
.ahc-paylocity-job-feed .paylocity-job-details-expanded p strong,
.ahc-paylocity-job-feed .paylocity-job-details-expanded h2,
.ahc-paylocity-job-feed .paylocity-job-details-expanded h3,
.ahc-paylocity-job-feed .paylocity-job-details-expanded h4,
.ahc-paylocity-job-feed .paylocity-job-details-expanded h5,
.ahc-paylocity-job-feed .paylocity-job-details-expanded h6 {
	margin-bottom: 0.25rem !important;
	margin-top: 0.25rem !important;
}

.ahc-paylocity-job-feed button:focus,
.ahc-paylocity-job-feed button:hover {
    color: inherit;
    background-color: inherit !important;
    border-color: inherit !important;
}

/* Left Column Styles */
.ahc-paylocity-job-feed .paylocity-job-left {
	flex: 1 1 100%; 
	max-width: 33%;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-top: 0rem;
}
.ahc-paylocity-job-feed .paylocity-job-left p.paylocity-job-meta {
    margin-bottom: 1rem;
    font-family: 'Open Sans';
    font-weight: 300;
    font-size: 17px;
}
.ahc-paylocity-job-feed .paylocity-job-left p.paylocity-job-meta > strong {
    display: inline-block;
    margin-bottom: 0rem;
}
.ahc-paylocity-job-feed .paylocity-job-left p.paylocity-job-meta strong {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 15px;
}

/* Right Column Styles */
.ahc-paylocity-job-feed .paylocity-job-right {
	flex: 2 1 100%;
	max-width: 66%;
	padding: 1rem;
	padding-right: 0rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-top: 0.5rem;
}
.ahc-paylocity-job-feed .paylocity-job-right .paylocity-job-description,
.ahc-paylocity-job-feed .paylocity-job-right .paylocity-job-description strong {
    margin-top: 0.25rem;
    padding-bottom: 1rem;
    font-size: 17px;
    font-family: 'Open Sans';
    font-weight: 300;
	text-transform: none;
}
.ahc-paylocity-job-feed .paylocity-job-right strong {
	font-size: 15px;
    font-weight: 400;
	text-transform: uppercase;
}

.ahc-paylocity-job-feed .job-requirements-separator {
	margin-top: 1.5rem !important;
	margin-bottom: 1.5rem !important;
}

.ahc-paylocity-job-feed .paylocity-loading,
.ahc-paylocity-job-feed .paylocity-error {
    padding: 1rem;
    border: 1px solid #BBBBBBED;
    border-radius: 3px;
    margin-bottom: 1rem;
}

/* Media query to stack columns when viewport is less than 769px */
@media (max-width: 768px) {
	.ahc-paylocity-job-feed .filters {
		display: flex;
		flex-wrap: wrap; /* Allow items to wrap onto the next line */
		gap: 12px; /* Add some space between the filter columns */
		padding-right: 20px;
		padding-left: 20px;
	}
	.ahc-paylocity-job-feed .filters select {
		font-size: 15px;
		text-indent: 5px;
		color: #333;
		border: 1px solid #333;
		border-radius: 4px;
		background-color: #fff;
		height:55px;
	}
	.ahc-paylocity-job-feed .jobs-feed,
	.ahc-paylocity-job-feed .no-results-message {
		padding-right: 20px;
		padding-left: 20px;
	}
	.ahc-paylocity-job-feed button.ahc-paylocity-reset-filters {
		color: #333;
		padding: 15px;
	}
	.ahc-paylocity-job-feed .ahc-paylocity-reset-filters {
		width: 100% !important;
	}
					 
	/* Added in v1.29, */
	/* Force Filter Sizes */
	.ahc-paylocity-job-feed .filters select.ahc-paylocity-state-dropdown {
		width: 100% !important;
	}
	.ahc-paylocity-job-feed .filters select.ahc-paylocity-department-dropdown {
		width: 100% !important;
	}
	.ahc-paylocity-job-feed .filters select.ahc-paylocity-position-dropdown {
		width: 100% !important;
	}
	.ahc-paylocity-job-feed .filters select.ahc-paylocity-hours-dropdown {
		width: 100% !important;
	}

	.ahc-paylocity-job-feed .paylocity-job-left, 
	.ahc-paylocity-job-feed .paylocity-job-right,
	.ahc-paylocity-job-feed .filter-column {
		flex: 1 1 100% !important; /* Make each column take full width */
		max-width: 100% !important; /* Ensure no columns exceed full width */
	}
	.ahc-paylocity-job-feed .filter-column {
		width: 100%;
	}

	.ahc-paylocity-job-feed h2.paylocity-job-title {
		font-size: calc(1.3rem + .9vw);
	}
	.ahc-paylocity-job-feed .paylocity-job-card {
		padding-left: 5px;
		padding-right: 5px;
		padding-bottom: 5px;
	}
}

/* v0.8.1: restore page-container spacing so location pages match the legacy snippet layout more closely. */
.ahc-paylocity-job-feed {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.ahc-paylocity-job-feed .filters,
.ahc-paylocity-job-feed .jobs-feed {
    max-width: 100%;
}

@media (max-width: 768px) {
    .ahc-paylocity-job-feed {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
