/* CC Child Pages — theme-owned styles (florida-adoption)
   Replaces the plugin stylesheets. Colors and type match Additional CSS. */

/* Landing page 3-column cards */
#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: 40px 2%;
	width: 90%;
	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: #fff;
	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;
	background-color: rgba(244, 240, 240, 0.9);
}

#child-pages .cell-text-block {
	flex: 0 0 auto;
	background: #fff;
}

#child-pages h3,
#child-pages .ccchildpage-title,
#child-pages h3.ccchildpage-title {
	background: #fff;
	font-size: 14px;
	letter-spacing: 1.4pt;
	text-transform: uppercase;
	font-weight: 800;
	text-align: left;
	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: #ffb87b !important;
	text-decoration: none !important;
	background: transparent;
}

#child-pages .ccpages_excerpt {
	display: block;
	font-size: 10pt;
	letter-spacing: 0.65pt;
	line-height: 20px;
	color: #000;
	font-weight: 300;
	padding: 0 30px;
	margin: 0;
}

#child-pages .ccpages_more {
	display: block;
	text-align: left !important;
	font-size: 11pt;
	font-style: normal !important;
	width: 100%;
	padding: 20px 30px;
	margin: 0;
	background: #fff;
}

#child-pages .ccpages_more a {
	display: inline-block;
	padding: 7px 20px;
	color: #ffb87b !important;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-size: 12px;
	font-weight: 800 !important;
	text-decoration: none !important;
	transition: all 0.15s linear;
}

#child-pages .ccpages_more a:hover {
	background-color: #f1eae2 !important;
}

/* Article sidebar: thumbnail plus dark green title bar */
.sidebar .ccchildpages,
.sidebar .ccchildpages.cclegacy {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	float: none;
}

.sidebar .ccchildpage,
.sidebar .simple .ccchildpage {
	box-sizing: border-box;
	width: 100% !important;
	float: none !important;
	display: block;
	margin: 0 0 10px !important;
	padding: 0;
	background: #fff;
	border-radius: 0;
}

.sidebar .cc-child-pages-thumb,
.sidebar .ccchildpage img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
}

.sidebar .ccpages_excerpt,
.sidebar .ccpages_more,
.sidebar .cell-text-block {
	display: none !important;
}

.sidebar .ccchildpage-title,
.sidebar h3,
.sidebar h3.ccchildpage-title {
	background-color: #334444;
	padding: 13px !important;
	margin: 0 !important;
	text-align: center;
	font-size: 14px;
	letter-spacing: 1.4pt;
	text-transform: uppercase;
}

.sidebar .ccchildpage-title a,
.sidebar .simple .ccchildpage a,
.entry .entry-content .sidebar .ccchildpage-title a {
	display: block;
	color: #ffb87b !important;
	text-decoration: none !important;
	background: transparent;
}

@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 {
		width: 90% !important;
		margin: 0 auto 50px !important;
	}
}

@media screen and (max-width: 500px) {
	#child-pages .ccchildpages,
	#child-pages .ccchildpages.cclegacy,
	#child-pages .threecol,
	#child-pages .ccchildpage,
	#child-pages .threecol .ccchildpage {
		width: 100% !important;
	}

	.sidebar .ccchildpage-title,
	.sidebar h3 {
		text-align: center !important;
	}
}
