/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */
/* SUB PAGE HEADER */
/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */
.subpage-header {
	color: #fff;
	padding: 6rem 1rem;
	--color-link: #fff;
	position: relative;
	z-index: 2;
	background-image: url(../../img/association-theme-bg-header.jpg);
	background-image: url(../../img/association-theme-bg-header.webp);
	background-color: var(--accent);
	background-blend-mode: multiply;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.subpage-header .subpage-group-title {
	font-size: clamp(1.5rem, 6.5vw, 5.5rem);
	font-style: italic;
}

.subpage-content {
	margin: 2rem 0 4rem 0;
	min-height: calc(100vh - var(--headerHeight) - var(--subHeaderHeight) - var(--footerHeight));
}
.admin-bar .subpage-content {
	min-height: calc(
		100vh - var(--headerHeight) - var(--subHeaderHeight) - var(--footerHeight) - 46px
	);
}
.subpage-content:has(.post-grid) {
	margin-top: 0;
}

@media screen and (max-width: 768px) {
	.subpage-header {
		display: none;
	}

	.subpage-content {
		margin-top: 0;
		padding-top: 2rem;
	}
}

/* ----------------------------------------------------------------------- */
/* Mobile Menu Divider - Sub page Header Replacement */
/* ----------------------------------------------------------------------- */

.mobile-subpage-divider {
	height: 1rem;
	width: 100%;
	position: relative;
	z-index: 90;
	background-image: url(../../img/association-theme-bg-header.jpg);
	background-image: url(../../img/association-theme-bg-header.webp);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}
.mobile-subpage-divider::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	mix-blend-mode: multiply;
	background-color: var(--accent);
	z-index: -1;
}

@media screen and (min-width: 769px) {
	.mobile-subpage-divider {
		display: none;
	}
}

/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */
/* SUB PAGE STRUCTURE*/
/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */

main > .container > .row {
	display: grid;
	grid-template-columns: 1.5fr 3.5fr;
	gap: 3rem;
	width: 100%;
	align-items: start;
	grid-template-areas:
		'aside main'
		'aside main';
}

main > .container > .row .col-md-3 {
	grid-area: aside;
}
main > .container > .row .col-md-9 {
    width: 100%;
	grid-area: main;
    min-width: 0; 
}
@media (min-width: 1099px) {
	.subpage-sidebar {
		width: 330px;
	}
}

@media screen and (max-width: 1100px) and (min-width: 769px) {
	.subpage-sidebar {
		width: 300px;
	}
	main > .container > .row {
		grid-template-columns: 1fr 3fr;
	}
}

@media screen and (max-width: 768px) {
	main > .container > .row {
		display: block;
	}
}
