
/* ============================================================
   Clean Conscious Beauty - Global Blog Stylesheet
   Paste into Appearance > Customize > Additional CSS, or enqueue
   as a stylesheet. Posts use ccb-* classes only (no inline CSS,
   no per-post <style> block). IDs are used only as scroll anchors.
   Theme: Maktub. Content container is div.text.
   ============================================================ */

/* ---- Theme spacing normalization (Maktub adds padding-top:8px
        and margin-bottom:24px to every p/figure/iframe in div.text) ---- */
div.text p, div.text figure, div.text img {
	padding-top: 0 !important;
}

/* Maktub also styles every heading: div.text h2 { padding-top:14.4px;
   margin-bottom:17.6px; line-height:1.4 }. Neutralize the stray
   padding-top and let the ccb heading classes own margin + line-height. */
div.text h2, div.text h3 {
	padding-top: 0 !important;
}

/* Cross-page anchor landings (e.g. /post/#doping-in-sunscreens-section)
   sit clear of the sticky header. Covers WP auto heading IDs too. */
div.text h2, div.text h3 {
	scroll-margin-top: 125px;
}

/* ---- Typography ---- */
div.text .ccb-hero {
	font-size: 24px !important;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 32px;
	color: #03396b;
	padding-bottom: 0 !important;
}

div.text .ccb-label {
	font-size: 18px;
	font-weight: 600;
	color: #006fdd;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin: 0;
	padding-bottom: 0 !important;
}

div.text .ccb-heading {
	font-size: 28px !important;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
	color: #03396b;
	padding-bottom: 0 !important;
}

div.text .ccb-text {
	color: #333;
	line-height: 1.7;
	margin-bottom: 24px;
	padding-bottom: 0 !important;
}

div.text .ccb-text:last-child {
	margin-bottom: 0;
}

div.text .ccb-text-tight {
	margin: 0;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: 1.6;
	color: #333;
}

.ccb-lead {
	color: #03396b;
}

div.text .ccb-note {
	color: #555;
	line-height: 1.7;
	font-style: italic;
	padding-bottom: 0 !important;
	margin-top: 8px;
	margin-bottom: 0;
}

.ccb-mt {
	margin-top: 24px !important;
}

/* ---- Intro + generic block wrapper (drives the big section gap) ---- */
.ccb-block {
	margin-bottom: 44px !important;
}

/* ---- Stats bar ---- */
.ccb-stats {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 1px !important;
	background: #e5e7eb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 44px !important;
}

.ccb-stat {
	background: #fff;
	padding: 28px 24px;
	text-align: center;
}

.ccb-stat-num {
	font-size: 42px;
	font-weight: 800;
	color: #006fdd;
	line-height: 1;
	margin-bottom: 10px;
}

.ccb-stat-desc {
	color: #333;
	line-height: 1.45;
}

/* ---- Jump navigation ---- */
.ccb-jumpnav {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 28px;
	margin-bottom: 44px !important;
	background: #fff;
}

div.text .ccb-jumpnav-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: #6b7280;
	margin: 0 0 14px;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.ccb-jumpnav-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ccb-jump-tag {
	display: inline-block;
	padding: 8px 18px;
	border: 2px solid #03396b !important;
	border-radius: 100px;
	color: #03396b;
	font-weight: 500;
	text-decoration: none !important;
	transition: background .2s ease, color .2s ease;
	line-height: 1.4em;
	font-size: 16px;
}

.ccb-jump-tag:hover {
	background: #03396b !important;
	color: #fff !important;
	text-decoration: none !important;
}

.ccb-jump-tag-cta {
	display: inline-block;
	padding: 8px 18px;
	border: 2px solid #006fdd !important;
	border-radius: 100px;
	color: #006fdd;
	font-weight: 500;
	text-decoration: none !important;
	transition: background .2s ease, color .2s ease;
	line-height: 1.4em;
	font-size: 16px;
}

.ccb-jump-tag-cta:hover {
	background: #006fdd !important;
	color: #fff !important;
	text-decoration: none !important;
}

/* ---- Section wrapper (scroll offset + big gap) ---- */
.ccb-section {
	scroll-margin-top: 125px;
	margin-bottom: 44px !important;
}

/* ---- Links ---- */
.ccb-link {
	color: #006fdd;
	text-decoration: underline;
}

.ccb-link:hover {
	text-decoration: none !important;
}

.ccb-pink-link {
	color: #f91a96;
	text-decoration: underline;
}

.ccb-pink-link:hover {
	color: #000;
}

.ccb-link-on-dark {
	color: #fff;
}

/* ---- Checklist ---- */
.ccb-checklist {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

.ccb-check-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.ccb-check-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #006fdd;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
}

/* ---- Spec list (product attributes, etc.) ---- */
.ccb-spec-list {
	margin: 12px 0 0 !important;
	padding-left: 22px !important;
	list-style: disc !important;
}

.ccb-spec-list li {
	list-style: disc !important;
	list-style-position: outside !important;
	line-height: 1.65;
	color: #333;
	margin-bottom: 6px;
	padding-bottom: 0 !important;
}

.ccb-spec-list li:last-child {
	margin-bottom: 0;
}

/* ---- Numbered steps ---- */
.ccb-steps {
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
	margin-top: 24px;
}

.ccb-step {
	display: grid !important;
	grid-template-columns: 30px 1fr !important;
	align-items: start !important;
	gap: 18px !important;
	padding: 22px 26px !important;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
}

.ccb-step-last {
	display: grid !important;
	grid-template-columns: 30px 1fr !important;
	align-items: start !important;
	gap: 18px !important;
	padding: 22px 26px !important;
	background: #fff;
}

.ccb-step-num {
	font-size: 26px;
	font-weight: 800;
	color: #006fdd;
	line-height: 1;
}

.ccb-step-title {
	font-weight: 700;
	margin-bottom: 6px;
	line-height: 1.5em;
	color: #111;
}

.ccb-alt {
	margin-top: 14px;
	padding: 14px 16px;
	background: #f5f7fa;
	border-left: 3px solid #006fdd;
	border-radius: 8px;
}

div.text .ccb-alt-lead {
	color: #6b7280;
	line-height: 1.6;
	margin: 0 0 6px;
	padding-bottom: 0 !important;
}

/* ---- Product cards + two-column image layout ---- */
.ccb-products {
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
	margin-top: 24px;
}

.ccb-product-row {
	padding: 22px 26px;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
}

.ccb-product-row-last {
	padding: 22px 26px;
	background: #fff;
}

.ccb-product-name {
	font-weight: 700;
	color: #03396b;
	margin-bottom: 10px;
	line-height: 1.5;
}

.ccb-product {
	display: flex;
	align-items: flex-start;
	gap: 22px;
}

.ccb-product-text {
	flex: 1 1 auto;
	min-width: 0;
}

.ccb-product-media {
	flex: 0 0 200px;
	max-width: 200px;
}

.ccb-product-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
}

/* ---- Two-image gallery ---- */
.ccb-gallery {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 16px !important;
	margin-top: 16px !important;
}

.ccb-gallery img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
}

.ccb-figure {
	text-align: center;
	margin-top: 24px;
}

.ccb-figure img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	vertical-align: bottom;
}

.ccb-figure small {
	display: block;
	margin-top: 8px;
	color: #6b7280;
	margin-bottom: 15px;
}

/* ---- Responsive video embed ---- */
.ccb-video {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 10px;
	margin-top: 24px;
}

.ccb-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	padding-top: 0 !important;
}

/* ---- Callout (highlight_sentence) ---- */
.highlight_sentence, .ccb-callout {
	margin: 24px 0 !important;
	padding: 20px !important;
	background: #e8f1fb;
	border-left: 4px solid #006fdd;
	border-radius: 12px;
}

.highlight_sentence > p, .ccb-callout > p {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.7;
	color: #333;
}

.ccb-callout-quote > p {
	font-style: italic;
}

/* ---- Optional: feature cards + phase blocks ---- */
.ccb-features {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 14px !important;
	margin-top: 24px !important;
}

.ccb-phases {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 24px;
}

.ccb-phase {
	display: grid !important;
	grid-template-columns: 160px 1fr !important;
	gap: 20px !important;
	align-items: start !important;
	padding: 22px 24px !important;
	background: #f5f7fa;
	border-radius: 12px;
	border-left: 3px solid #03396b;
}

.ccb-phase-head {
	line-height: 1.4;
}

.ccb-phase-label {
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #006fdd;
}

.ccb-phase-name {
	font-weight: 700;
	color: #03396b;
}

/* ---- CTA ---- */
.ccb-cta {
	background: #03396b;
	border-radius: 16px;
	padding: 52px 48px;
	text-align: center;
	margin-top: 44px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}

div.text .ccb-cta-heading {
	font-size: 28px !important;
	font-weight: 700;
	line-height: normal;
	color: #fff;
	margin: 0 0 12px;
	padding-bottom: 0 !important;
}

div.text .ccb-cta-text {
	color: #fff;
	margin: 0;
	padding-bottom: 1em !important;
}

div.text .ccb-cta-button-wrap {
	margin: 0;
	padding-bottom: 0 !important;
}

.ccb-nectar-button {
	display: inline-block !important;
	padding: 14px 32px !important;
	border-radius: 4px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	line-height: normal !important;
	color: #03396b !important;
	background: #fff !important;
	background-color: #fff !important;
	border: 2px solid #fff !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease !important;
}

.ccb-nectar-button:hover {
	color: #fff !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 2px solid #fff !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

/* ---- Sponsored disclosure ---- */
div.text .ccb-sponsored {
	color: #555;
	line-height: 1.7;
	font-style: italic;
	padding-bottom: 0 !important;
	margin-top: 32px;
	margin-bottom: 0;
}

/* ---- FAQ ---- */
.ccb-faq-item {
	margin-top: 24px;
}

/* ---- In-content ad spacing (both placement classes), tied to
        the section gap so spacing stays consistent wherever the
        ad lands (margin-collapse takes the larger value). ---- */
div.text .itsad-in-between-post-content, div.text .itsad-in-between-post-content-2 {
	display: block;
	margin-top: 44px !important;
	margin-bottom: 44px !important;
	text-align: center;
	clear: both;
}

/* ============================================================
   RESPONSIVE - media queries come AFTER the desktop rules above
   so they win at their breakpoints (equal specificity + !important
   resolves by source order).
   ============================================================ */
@media (max-width: 768px) {
	.ccb-section, .ccb-block, .ccb-stats, .ccb-jumpnav {
		margin-bottom: 32px !important;
	}
	
	div.text .ccb-text {
		margin-bottom: 18px;
	}
	
	div.text .ccb-text:last-child {
		margin-bottom: 0;
	}
	
	.ccb-hero {
		margin-bottom: 24px !important;
	}
	
	.ccb-checklist {
		margin-top: 18px !important;
	}
	
	.ccb-cta {
		padding: 44px 32px !important;
		margin-top: 32px !important;
	}
	
	.ccb-stats > div {
		padding: 22px 16px !important;
	}
	
	.ccb-phase {
		grid-template-columns: 130px 1fr !important;
		gap: 16px !important;
		padding: 18px 20px !important;
	}
	
	.ccb-features {
		grid-template-columns: 1fr !important;
	}
	
	.ccb-product {
		flex-direction: column !important;
		gap: 14px !important;
	}
	
	.ccb-product-media {
		flex: 1 1 auto !important;
		max-width: 100% !important;
		width: 100% !important;
	}
	
	.ccb-gallery {
		grid-template-columns: 1fr !important;
		gap: 14px !important;
	}
	
	.ccb-jumpnav {
		padding: 18px 20px !important;
	}
	
	.ccb-callout, .highlight_sentence {
		padding: 18px !important;
	}
	
	.ccb-product-row, .ccb-product-row-last {
		padding: 20px !important;
	}
	
	.ccb-step, .ccb-step-last {
		padding: 20px !important;
	}
	
	div.text .itsad-in-between-post-content, div.text .itsad-in-between-post-content-2 {
		margin-top: 32px !important;
		margin-bottom: 32px !important;
	}
}

@media (max-width: 480px) {
	.ccb-section, .ccb-block, .ccb-stats, .ccb-jumpnav {
		margin-bottom: 28px !important;
	}
	
	div.text h2, div.text h3 {
		scroll-margin-top: 50px;
	}
	
	.ccb-section {
		scroll-margin-top: 50px !important;
	}
	
	.ccb-cta {
		padding: 32px 20px !important;
		border-radius: 12px !important;
	}
	
	.ccb-stats {
		grid-template-columns: 1fr !important;
	}
	
	.ccb-stats > div {
		border-bottom: 1px solid #e5e7eb !important;
	}
	
	.ccb-stats > div:last-child {
		border-bottom: none !important;
	}
	
	.ccb-step, .ccb-step-last {
		grid-template-columns: 24px 1fr !important;
		gap: 12px !important;
		padding: 16px !important;
	}
	
	.ccb-phase {
		grid-template-columns: 1fr !important;
		gap: 6px !important;
		padding: 16px !important;
	}
	
	.ccb-jumpnav {
		padding: 16px !important;
	}
	
	.ccb-callout, .highlight_sentence {
		padding: 16px !important;
	}
	
	.ccb-product-row, .ccb-product-row-last {
		padding: 16px !important;
	}
	
	div.text .itsad-in-between-post-content, div.text .itsad-in-between-post-content-2 {
		margin-top: 28px !important;
		margin-bottom: 28px !important;
	}
}
