.ph-course-pt-single {
	background: var(--ph-white);
}

.cpt-pt-hero {
	padding: 3rem 0 0;
	background: #fbfbfb;
}

.cpt-pt-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;
}

.cpt-pt-hero__title {
	margin: 0;
	font-size: 4.5rem;
	font-weight: 800;
	color: #333;
	line-height: 1.05;
	text-align: center;
}

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

/* Problem categories — solid green pills, white label (no icon) */
.cpt-pt-hero__problem-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0;
}

.ph-course-pt-single .ph-rs-hero__problem-cats.ph-case-hero__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	align-items: center;
	justify-content: center;
}

.ph-course-pt-single .ph-rs-hero__problem-cats li {
	margin: 0;
	padding: 0;
}

.ph-course-pt-single .ph-case-hero__pill {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--ph-green-bg);
    border: none;
    color: var(--ph-green);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

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

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

.cpt-pt-block {
	padding: 4rem 0;
	background: #fbfbfb;
}

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

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

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

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

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

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

.cpt-pt-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;
}

.cpt-pt-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;
}

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

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

.cpt-pt-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;
}

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

.cpt-pt-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;
}

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

.cpt-pt-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;
}

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

.cpt-pt-structure {
	background: #fbfbfb;
}

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

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

.cpt-pt-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;
}

.cpt-pt-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. */
.cpt-pt-modules > .cpt-pt-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). */

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

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

.cpt-pt-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;
}

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

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

.cpt-pt-cert__right {
	background: rgba(251, 251, 251, 0.5);
}

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

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

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

.cpt-pt-cert__seal svg {
	width: 6rem;
	height: auto;
	display: block;
}

.cpt-pt-cert__seal-img {
	width: 6rem;
	height: auto;
	display: block;
}

.cpt-pt-cert__right > h3 {
	margin: 0 0 2rem;
	font-size: 2.375rem;
	font-weight: 800;
	color: #333;
	line-height: 1.1;
}

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

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

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

.cpt-pt-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;
}

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

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

.cpt-pt-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;
}

.cpt-pt-testimonials {
	padding: 6.5rem 0;
	background: #fbfbfb;
}

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

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

.cpt-pt-faq {
	padding: 2rem 0 2rem;
	background: #fbfbfb;
}

.cpt-pt-faq::before {
	display: none;
}

.cpt-pt-faq .ph-faq__header {
	margin-bottom: 0;
}

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

.cpt-pt-faq .ph-faq__grid {
	gap: 1rem;
}

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

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

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

.cpt-pt-faq .ph-faq__toggle::before,
.cpt-pt-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);
}

.cpt-pt-faq .ph-faq__toggle::after {
	display: none;
}

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

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

.cpt-pt-faq .ph-faq__answer {
	padding: 0 1.5rem;
}

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

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

/**
 * Course tariffs section (shared markup: .cpt-pt-tariffs* from certifications layout).
 */

.cpt-pt-tariffs {
	margin-top: 5rem;
}

#tariffs.cpt-pt-tariffs {
	scroll-margin-top: calc(80px + 1.25rem);
}

body.admin-bar #tariffs.cpt-pt-tariffs {
	scroll-margin-top: calc(80px + 1.25rem + 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar #tariffs.cpt-pt-tariffs {
		scroll-margin-top: calc(80px + 1.25rem + 46px);
	}
}

.cpt-pt-tariffs__title {
	font-size: 2.5rem;
	font-weight: 800;
	color: #333;
	text-align: center;
	margin: 0;
}

.cpt-pt-tariffs__subtitle {
	margin: 1.25rem auto 0;
	max-width: 45rem;
	text-align: center;
	font-size: 1.25rem;
	color: #555;
}

.cpt-pt-tariffs__grid {
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 1.25rem;
	/* Set inline on grid: --ph-tariff-count (number of cards). Fallback 4 for older markup. */
	--ph-tariff-count: 4;
}

.cpt-pt-tariff-card {
	background: linear-gradient(180deg, #0b0b0b 0%, #050505 100%);
	color: #fff;
	border-radius: 1.5rem;
	padding: 2rem 1.875rem 1.75rem;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
	gap: 2rem;
	/* Mobile: 1 per row */
	flex: 1 1 100%;
	max-width: min(31.25rem, 100%);
	min-width: 0;
}

/* Tablet: 1–2 columns from actual count; width grows when fewer cards (cap 500px). */
@media (min-width: 768px) and (max-width: 1024px) {
	.cpt-pt-tariffs__grid .cpt-pt-tariff-card {
		--ph-tariff-cols: min(2, var(--ph-tariff-count));
		flex: 1 1 calc((100% - (var(--ph-tariff-cols) - 1) * 1.25rem) / var(--ph-tariff-cols));
		max-width: min(
			31.25rem,
			calc((100% - (var(--ph-tariff-cols) - 1) * 1.25rem) / var(--ph-tariff-cols))
		);
	}
}

/* Desktop: 1–4 columns from actual count; width grows when fewer cards (cap 500px). */
@media (min-width: 1025px) {
	.cpt-pt-tariffs__grid .cpt-pt-tariff-card {
		--ph-tariff-cols: min(4, var(--ph-tariff-count));
		flex: 1 1 calc((100% - (var(--ph-tariff-cols) - 1) * 1.25rem) / var(--ph-tariff-cols));
		max-width: min(
			36rem,
			calc((100% - (var(--ph-tariff-cols) - 1) * 1.25rem) / var(--ph-tariff-cols))
		);
	}
}

.cpt-pt-tariff-card__name {
	margin: 0;
	font-size: 2rem;
	line-height: 1.35;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #fff !important;
	text-align: center;
}

.cpt-pt-tariff-card__content {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.95) !important;
}

.cpt-pt-tariff-card__content,
.cpt-pt-tariff-card__content * {
	color: inherit !important;
}

.cpt-pt-tariff-card__content p {
	margin: 0 0 0.625rem;
}

.cpt-pt-tariff-card__content ul {
	margin: 0.25rem 0 0.875rem;
	padding-left: 0;
	list-style: none;
}

.cpt-pt-tariff-card__content li {
	margin-bottom: 0.3rem;
	position: relative;
	padding-left: 1.6rem;
}

.cpt-pt-tariff-card__content li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25rem;
	width: 1.25rem;
	height: 1.25rem;
	background: url("../icons/check-green-circle.svg") no-repeat center / contain;
}

.cpt-pt-tariff-card__btn {
	font-size: 1.4rem;
	align-self: center;
	min-width: 11.25rem;
}

.cpt-pt-tariff-card__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
}

.cpt-pt-tariff-card__btn--consult {
	min-width: 11.25rem;
}

.cpt-pt-tariff-card__footer {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cpt-pt-tariff-card__prices {
	margin-top: 1rem;
	text-align: center;
}

.cpt-pt-tariff-card__regular {
	font-size: 1.4rem;
	line-height: 1.2;
	text-decoration: line-through;
	color: rgba(255, 255, 255, 0.85) !important;
}

.cpt-pt-tariff-card__active {
	margin-top: 0.25rem;
	font-size: 1.5rem;
	line-height: 1.2;
	font-weight: 800;
	color: #fff !important;
}

