/* CC Child Pages — theme-owned styles (illinoisadopt)
   Replaces the plugin stylesheets. Colors and type match the existing theme rules. */

#child-pages {
	background-color: #fff;
	width: 80%;
	margin: auto;
	padding: 0;
	box-sizing: border-box;
}

#child-pages .ccchildpages,
#child-pages .ccchildpages.cclegacy,
#child-pages .threecol {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 2em 2%;
	width: 100%;
	max-width: 1600px;
	margin: 0 auto !important;
	padding: 0 !important;
	float: none !important;
	box-sizing: border-box;
}

#child-pages .ccchildpage,
#child-pages .simple .ccchildpage,
#child-pages .threecol .ccchildpage {
	box-sizing: border-box;
	width: calc((100% - 4%) / 3) !important;
	float: none !important;
	display: flex !important;
	flex-direction: column;
	margin: 0 !important;
	padding: 0;
	background: rgb(244, 240, 240);
	border-radius: 0;
	font-size: 11pt;
	letter-spacing: 1px;
	line-height: 26px;
	color: #fff;
}

#child-pages .cc-child-pages-thumb,
#child-pages .ccchildpage img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
}

#child-pages .cell-text-block {
	flex: 0 0 auto;
	background: rgb(244, 240, 240);
}

#child-pages h3,
#child-pages .ccchildpage-title,
#child-pages h3.ccchildpage-title {
	background: rgb(244, 240, 240);
	font-family: "proxima nova", sans-serif;
	color: #434fad;
	font-size: 12pt;
	letter-spacing: 1.4pt;
	text-transform: uppercase;
	font-weight: bold;
	text-align: left !important;
	padding: 0 30px;
	margin: 30px 0 20px;
}

#child-pages .ccchildpage-title a,
#child-pages .simple .ccchildpage a,
.entry .entry-content #child-pages .ccchildpage-title a {
	color: #434fad !important;
	text-decoration: none !important;
	background: transparent;
}

#child-pages .ccpages_excerpt {
	display: block;
	font-size: 11pt;
	padding: 0 30px;
	margin: 0;
	color: #000;
	background: rgb(244, 240, 240);
	font-family: "proxima nova", sans-serif;
	letter-spacing: 0.65pt !important;
	line-height: 20px;
}

#child-pages .ccpages_more {
	display: block;
	text-align: left !important;
	font-size: 11pt;
	font-style: normal !important;
	width: 100%;
	padding: 40px 30px 20px;
	margin: 0;
	background: rgb(244, 240, 240);
	box-sizing: border-box;
}

#child-pages .ccpages_more a {
	display: inline-block;
	color: #434fad !important;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: bold;
	text-decoration: none !important;
}

@media screen and (max-width: 768px) {
	#child-pages {
		width: 90%;
	}

	#child-pages .ccchildpages,
	#child-pages .ccchildpages.cclegacy,
	#child-pages .threecol {
		width: 100%;
		gap: 0;
	}

	#child-pages .ccchildpage,
	#child-pages .simple .ccchildpage,
	#child-pages .threecol .ccchildpage,
	#child-pages .threecol .ccchildpage:nth-child(2n) {
		width: 90% !important;
		margin: 0 auto 2em !important;
		float: none !important;
		padding: 0;
	}
}
