/* =========================================================
   CHAFFEY UNIVERSAL HERO
========================================================= */

.archive-hero,
.universal-hero {
	position: relative;
	min-height: 500px;
	overflow: hidden;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	align-items: center;
	display: flex;
}

.archive-hero-overlay,
.universal-hero-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	background:
		linear-gradient(
			90deg,
			rgba(0, 0, 0, 0.60) 0%,
			rgba(0, 0, 0, 0.40) 20%,
			rgba(0, 0, 0, 0.20) 35%,
			rgba(0, 0, 0, 0.06) 50%
		);
}
.blog .archive-hero-overlay,
.blog .universal-hero-overlay {
	background:
		linear-gradient(
			270deg,
			rgba(0, 0, 0, 0.60) 0%,
			rgba(0, 0, 0, 0.40) 20%,
			rgba(0, 0, 0, 0.20) 35%,
			rgba(0, 0, 0, 0.06) 50%
		);
}

.archive-hero .wrap,
.universal-hero .wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	text-align: left;
	padding-left: max(
		30px,
		calc((97vw - 1440px) / 2 + 30px)
	);

	padding-right: 30px;
	width: min(100% - 40px, 1440px);
}

.universal-hero-content {
	max-width: 720px;
}

.archive-hero-title,
.universal-hero-title {
	max-width: 480px;
	margin: 0 0 20px;
	color: #fff;
	font-weight: 500;
	line-height: 1.20;
	font-size: clamp(36px, 3vw, 40px);
}
 
.archive-hero-subtitle,
.universal-hero-subtitle {
	max-width: 680px;
	margin: 0 0 28px;
	color: #fff;
	font-size: 2rem;
	line-height: 1.4;
	font-family: 'Open Sans', sans-serif;
}

.archive-hero-button,
.universal-hero-button {
	display: inline-flex;
	align-items: center;
	width: auto;
	max-width: max-content;
	margin: 0;
	background: #004f3d;
	color: #fff;
}

/* Shared hero eyebrow: matches the approved FAQ styling. */
p.universal-hero-eyebrow {
    font-size: 1.4rem !important;
    letter-spacing: 2.4px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 18px;
}

p.universal-hero-eyebrow::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    background: #fff;
    margin-top: 12px;
}

@media only screen and (max-width: 900px) {

	.universal-hero {
		min-height: 480px;
	}

	.universal-hero-overlay {
		/*
		background:
			linear-gradient(
				90deg,
				rgba(10, 24, 40, 0.84) 0%,
				rgba(10, 24, 40, 0.66) 58%,
				rgba(10, 24, 40, 0.24) 100%
			);
			*/
	}

	.universal-hero-content {
		max-width: 620px;
	}

}

@media only screen and (max-width: 650px) {

	.universal-hero {
		min-height: 440px;
	}
	
	.archive-hero .wrap, .universal-hero .wrap {
		padding: 0 20px;
	}

	.universal-hero-overlay {
		/*
		background: linear-gradient(
			180deg,
			rgba(10, 24, 40, 0.28) 0%,
			rgba(10, 24, 40, 0.52) 52%,
			rgba(10, 24, 40, 0.70) 100%
		);
		*/
	}

	.universal-hero-content {
		max-width: none;
	}

	.universal-hero-subtitle {
		font-size: 19px;
	}

}

@media only screen and (max-width: 800px) {
	.archive-hero,
	.universal-hero {
		min-height: 400px;
	}
	.archive-hero .wrap,
	.universal-hero .wrap {
	
	}
}

@media only screen and (max-width: 550px) {
	.archive-hero,
	.universal-hero {
		min-height: 480px;
	}

	.archive-hero .wrap,
	.universal-hero .wrap {
		padding-left: 20px;
		padding-right: 20px;
		transform: translateY(70px);
		width: 100%;
	}
	.archive-hero-title,
	.universal-hero-title {
		font-size: 3.2rem;
	}
	.archive-hero-overlay, .universal-hero-overlay { 
        background: linear-gradient(0deg,
            rgba(0, 0, 0, .80) 0%,
            rgba(0, 0, 0, .60) 20%,
            rgba(0, 0, 0, .30) 35%,
            rgba(0, 0, 0, .04) 60%);
 
    }
}

/* News & Insights only: right-positioned content and reversed overlay. */
@media only screen and (min-width: 901px) {
    .blog-hero .universal-hero-overlay {
	   /*
        background: linear-gradient(0deg,
            rgba(0, 0, 0, .80) 0%,
            rgba(0, 0, 0, .60) 20%,
            rgba(0, 0, 0, .30) 35%,
            rgba(0, 0, 0, .04) 50%);
 */
    }
    .blog-hero .wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        box-sizing: border-box;
        width: min(100%, 1440px);
        margin: 0 auto;
        padding-left: clamp(30px, 70%, 975px);
        padding-right: 30px;
    }
    .blog-hero .universal-hero-title,
    .blog-hero .universal-hero-subtitle {
        max-width: 650px;
    }
}
