/**
 * Page / Category / Tag Banner Styles
 * Place in: your-theme/assets/css/banner.css
 */

.wpf-page-banner {
    position: relative;
    overflow: hidden;
    background-color: var(--site_green);
    padding: clamp(48px, 7.36vw, 106px) 0px;
    min-height: clamp(240px, 22.22vw, 320px);
    display: flex;
    align-items: center;
}

.wpf-page-banner::before {
    content: '';
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 20%);
    position: absolute;
    left: 0;
    top: 0;
}

.wpf-banner-inner {
	position: relative;
	z-index: 2;
	max-width: clamp(360px, 38.89vw, 560px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.11vw, 16px);
}

.wpf-banner-title {
    font-family: var(--heading_font);
	font-size: clamp(28px, 2.78vw, 40px);
	font-weight: 500;
	color: #ffffff;
	line-height: 1.25;
    margin: 0;
}

.wpf-banner-description {
	font-size: clamp(14px, 1.11vw, 16px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	max-width: clamp(320px, 31.94vw, 460px);
}

.wpf-banner-description p {
	margin: 0;
}

/* Image variant: image sits on the right, allowed to bleed past the bottom edge */

.wpf-page-banner.wpf-has-image {
	overflow: visible;
}

.wpf-banner-image {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 100%;
    pointer-events: none;
}

.wpf-banner-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* No-image variant: plain green background, text only, no absolute image column */

.wpf-page-banner.wpf-no-image .wpf-banner-inner {
	max-width: 700px;
}