/**
 * Single course: Certifications / Certified Painhunter (`courses/certifications/single-course.php`).
 */

.ph-course-certifications,
.ph-certified-painhunter {
	background: var(--ph-white);
}

.cp-certified-hero {
	padding: 3rem 0 0;
	background: #fbfbfb;
}
.ph-cert-catalog-hero-title{
	font-size: 4rem;
}
.cp-certified-hero__card {
	background: var(--ph-white);
	border: 1.5px solid var(--ph-border);
	border-radius: 2.5rem;
	box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
	padding: 4.5rem 20px;
}

.cp-certified-hero__title {
	margin: 0;
	font-size: 4rem;
	font-weight: 800;
	color: #333;
	line-height: 1.05;
	text-align: center;
}

.cp-certified-hero__accent {
	color: var(--ph-green, #469f10);
}

.cp-certified-hero__subtitle {
	margin: 1.5rem auto;
	font-size: 1.5rem;
	line-height: 1.4;
	color: #555;
	text-align: center;
	max-width: 900px;
}

.cp-certified-hero__actions {
	display: flex;
	gap: 1.25rem;
	justify-content: center;
	padding-top: 1.5rem;
	flex-wrap: wrap;
}

.cp-certified-block {
	padding: 4rem 0;
	background: #fbfbfb;
}

.cp-certified-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6rem;
	max-width: 80rem;
	margin: 0 auto;
	align-items: center;
}

.cp-certified-def__title,
.cp-certified-who__title {
	font-size: 2.25rem;
	font-weight: 800;
	color: #333;
	margin: 0;
}

.cp-certified-def__bar {
	width: 3rem;
	height: 0.25rem;
	background: var(--ph-green, #469f10);
	border-radius: 9999px;
	margin: 1.25rem 0;
}

.cp-certified-def__text {
	font-size: 1.4375rem;
	color: #555;
	margin: 0;
	line-height: 1.5;
}

.cp-certified-who__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.25rem;
}

.cp-certified-who__grid > .cp-certified-who__item:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.cp-certified-who__item {
	background: var(--ph-white);
	border: 1.5px solid var(--ph-border);
	border-radius: 1.5rem;
	padding: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.95rem;
	min-height: 5.25rem;
}

.cp-certified-who__icon-wrap {
	border-radius: 9999px;
	background: var(--ph-green, #469f10);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
	width: 2.5rem;
    height: 2.5rem;
}

.cp-certified-who__icon-wrap .dashicons {
	color: #fff;
    width: 1.7rem;
    height: 1.7rem;
    font-size: 1.7rem;
}

.cp-certified-who__item-title {
	font-size: 1.25rem;
	color: #333;
	font-weight: 600;
}

.cp-certified-learn {
	max-width: 80rem;
	margin: 2.5rem auto 0;
	background: var(--ph-white);
	border: 1.5px solid var(--ph-border);
	border-radius: 1.5rem;
	padding: 2.25rem;
	display: grid;
	grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
	align-items: center;
	column-gap: 2rem;
}

.cp-certified-learn__title {
	font-size: 3rem;
	font-weight: 800;
	color: #333;
	margin: 0;
	line-height: 1;
}

.cp-certified-learn__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 2.5rem;
	row-gap: 0.75rem;
}

.cp-certified-learn__list li {
	position: relative;
	padding-left: 1.65rem;
	font-size: 1.2rem;
	color: #555;
}

.cp-certified-learn__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 1.25rem;
	height: 1.25rem;
	background: url("../icons/check-green-circle.svg") no-repeat center / contain;
}

.cp-certified-learn__empty {
	margin: 0;
	color: #777;
	font-size: 1rem;
	grid-column: 2 / 3;
}

.cp-certified-structure {
	background: #fbfbfb;
}

.cp-certified-structure__title {
	font-size: 2.5rem;
	font-weight: 800;
	color: #333;
	text-align: center;
	margin: 0;
}

.cp-certified-structure__subtitle {
	margin: 1.25rem auto 0;
	max-width: 45rem;
	text-align: center;
	font-size: 1.25rem;
	color: #555;
}

.cp-certified-modules {
	margin-top: 2.5rem;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
}

.cp-certified-module {
	background: var(--ph-white);
	border: 1.5px solid var(--ph-border);
	border-radius: 1.5rem;
	padding: 1.5rem 1.75rem;
	min-height: 7.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

/* If modules count is odd, center the last single row card like Figma. */
.cp-certified-modules > .cp-certified-module:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	justify-self: center;
	width: calc((100% - 1rem) / 2);
}

/* Tariffs: assets/css/course-tariffs.css (enqueued on all course singles). */

.cp-certified-module__label {
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 800;
	color: var(--ph-green, #469f10);
}

.cp-certified-module__heading p {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: #333;
}

.cp-certified-cert {
	margin-top: 4rem;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	border: 1px solid #e0e0e0;
	border-radius: 2rem;
	overflow: hidden;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.08);
	justify-items: center;
    align-items: center;
}

.cp-certified-cert__left,
.cp-certified-cert__right {
	background: #fff;
	padding: 4rem;
	padding-top: 6rem;
}

.cp-certified-cert__left {
	position: relative;
	border-right: 1px solid #e0e0e0;
}

.cp-certified-cert__right {
	background: rgba(251, 251, 251, 0.5);
}

.cp-certified-cert__left-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.cp-certified-cert__highlights-heading {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 2.5rem;
	font-weight: 800;
	color: #333;
	line-height: 1.1;
}

.cp-certified-cert__seal {
	flex-shrink: 0;
	margin-left: auto;
	opacity: 0.12;
	pointer-events: none;
	position: absolute;
    right: 20px;
    top: 20px;
}

.cp-certified-cert__seal svg {
	width: 6rem;
	height: auto;
	display: block;
}

.cp-certified-cert__seal-img {
	width: 6rem;
	height: auto;
	display: block;
}

.cp-certified-cert__right > h3 {
	margin: 0 0 2rem;
	font-size: 2.5rem;
	font-weight: 800;
	color: #333;
	line-height: 1.1;
}

.cp-certified-cert__text p {
	margin: 0 0 1.75rem;
	font-size: 1.25rem;
	color: #555;
	line-height: 1.46;
}

.cp-certified-cert__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.cp-certified-cert__list li {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
}

.cp-certified-cert__icon-wrap {
	width: 3rem;
	height: 3rem;
	border-radius: 9999px;
	border: 1px solid #e0e0e0;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cp-certified-cert__item-icon,
.cp-certified-cert__item-icon.dashicons {
	color: var(--ph-green, #469f10);
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1.8rem;
    line-height: 1;
}

.cp-certified-cert__item-text {
	font-size: 1.125rem;
	line-height: 1.55;
	color: #333;
}

.cp-certified-cert__fallback-check {
	width: 1.25rem;
	height: 1.25rem;
	display: inline-block;
	background: url("../icons/check-green-circle.svg") no-repeat center / contain;
	font-size: 0;
	line-height: 0;
}

.cp-certified-testimonials {
	padding: 6.5rem 0;
	background: #fbfbfb;
}

.cp-certified-testimonials .ph-section__header {
	margin-bottom: 2.25rem;
	text-align: center;
}

.cp-certified-testimonials .ph-results__title {
	text-align: center;
	font-size: 2.5rem;
}

.cp-certified-faq {
	padding: 2rem 0 2rem;
	background: #fbfbfb;
}

.cp-certified-faq::before {
	display: none;
}

.cp-certified-faq .ph-faq__header {
	margin-bottom: 0;
}

.cp-certified-faq .ph-section__title {
	color: #333;
	text-align: center;
	font-size: 2.5rem;
	line-height: 1.1;
	font-weight: 700;
	margin: 0 0 3rem;
}

.cp-certified-faq .ph-faq__grid {
	gap: 1rem;
}

.cp-certified-faq .ph-faq__item {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 1.5rem;
	overflow: hidden;
}

.cp-certified-faq .ph-faq__question {
	color: #333;
	padding: 1.25rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5rem;
}

.cp-certified-faq .ph-faq__toggle {
	width: 0.875rem;
	height: 0.875rem;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.cp-certified-faq .ph-faq__toggle::before,
.cp-certified-faq .ph-faq__toggle::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0.5rem;
	height: 0.5rem;
	border-right: 1.5px solid #6b7280;
	border-bottom: 1.5px solid #6b7280;
	background: transparent;
	transform: translate(-50%, -62%) rotate(45deg);
}

.cp-certified-faq .ph-faq__toggle::after {
	display: none;
}

.cp-certified-faq .ph-faq__check:checked + .ph-faq__question .ph-faq__toggle::before {
	transform: translate(-50%, -38%) rotate(-135deg);
}

.cp-certified-faq .ph-faq__answer p {
	color: #555;
	font-size: 1rem;
	line-height: 1.5rem;
	font-weight: 400;
	margin: 0;
}

.cp-certified-faq .ph-faq__answer {
	padding: 0 1.5rem;
}

.cp-certified-faq .ph-faq__check:checked + .ph-faq__question + .ph-faq__answer {
	padding: 0 1.5rem 1.25rem;
}

@media (max-width: 1024px) {
	.cp-certified-who__grid {
		grid-template-columns: 1fr;
	}
	.cp-certified-modules > .cp-certified-module:last-child:nth-child(odd) {
		width: 100%;
	}
	.cp-certified-two-col {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	.cp-certified-modules {
		grid-template-columns: 1fr;
	}
	.cp-certified-cert {
		grid-template-columns: 1fr;
	}
	.cp-certified-hero__card {
		padding: 3rem 1.75rem;
	}
	.cp-certified-hero__title {
		font-size: 2.6rem;
	}
	.cp-certified-learn {
		grid-template-columns: 1fr;
		row-gap: 1.25rem;
	}
	.cp-certified-cert__seal{
		right: 10px;
		top: 10px;
	}
	.cp-certified-cert__seal-img {
		width: 4rem;
	}
	.cp-certified-cert__left, .cp-certified-cert__right{
		padding: 2rem;
	}
	.cp-certified-learn__title {
		font-size: 2.4rem;
	}
	.cp-certified-learn__list {
		grid-template-columns: 1fr;
	}
	.cp-certified-learn__empty {
		grid-column: auto;
	}
}

