/**
 * Courses landing template — matches Figma Courses Page (node 424:5056).
 */

.ph-courses-page {
	background: #fbfbfb;
}

.ph-courses-page__wrap {
	display: flex;
	flex-direction: column;
	gap: 2.9375rem;
	padding-bottom: 3.125rem;
}

.ph-courses-page .ph-container {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* ---- Hero ---- */
.ph-courses-hero {
	background: #fff;
	border: 0.0625rem solid #e0e0e0;
	border-radius: 2.5rem;
	box-shadow: 0 0.0625rem 0.0625rem rgba(0, 0, 0, 0.05);
	padding: 3.5rem 1.5rem;
	text-align: center;
	margin-top: 3rem;
}

.ph-courses-hero__kicker {
	margin: 0;
	font-size: 1.5625rem;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: 0.04375rem;
	text-transform: uppercase;
	color: var(--ph-green);
}

.ph-courses-hero__title {
	margin: 1rem auto 0;
	max-width: 56rem;
	font-size: 3.75rem;
	line-height: 1.1;
	font-weight: 700;
	color: #333;
}

.ph-courses-hero__subtitle {
	margin: 0.5rem auto 0;
	max-width: 42rem;
	font-size: 1.5625rem;
	line-height: 1.75;
	color: #555;
}

.ph-courses-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	align-items: center;
	padding-top: 1.5rem;
}

.ph-courses-hero__btn {
	font-size: 1.25rem;
	line-height: 1.75;
	padding: 0.7rem 2rem;
}

/* ---- Paths intro ---- */
.ph-courses-paths-intro {
	text-align: center;
	padding: 6rem 1rem 0rem;
}

.ph-courses-paths-intro__title {
	margin: 0;
	font-size: 3.125rem;
	line-height: 1.25;
	font-weight: 700;
	color: #333;
}

.ph-courses-paths-intro__subtitle {
	margin: 5px auto 0;
    max-width: 750px;
    font-size: 1.375rem;
    line-height: 1.75;
    color: #555;
    font-weight: 500;
}

/* ---- Path blocks ---- */
.ph-courses-path {
	position: relative;
	margin: 3rem auto
}

.ph-courses-path--1,
.ph-courses-path--2,
.ph-courses-path--3{
	background: #fff;
	border: 0.0625rem solid #e0e0e0;
	border-radius: 1.5rem;
	padding: 3rem;
}

.ph-courses-path--featured {
	background: #fff;
	border: 0.125rem solid var(--ph-green);
	border-radius: 2.5rem;
	box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.05);
	padding: 3rem;
	overflow: hidden;
}

.ph-courses-path__ribbon {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	background: var(--ph-green);
	color: #fff;
	font-size: 1.125rem;
	line-height: 1.25;
	padding: 0.5rem 1.5rem;
	border-bottom-left-radius: 1.5rem;
}

.ph-courses-path__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.ph-courses-path__grid--img-right .ph-courses-path__copy {
	order: 1;
}

.ph-courses-path__grid--img-right .ph-courses-path__media {
	order: 2;
}

.ph-courses-path__grid--img-left .ph-courses-path__media {
	order: 1;
}

.ph-courses-path__grid--img-left .ph-courses-path__copy {
	order: 2;
}

.ph-courses-path__label {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.0375rem;
	text-transform: uppercase;
	color: var(--ph-green);
}

.ph-courses-path__heading {
	margin: 0.5rem 0 0;
	font-size: 2.5rem;
	line-height: 1.125;
	font-weight: 700;
	color: #333;
}

.ph-courses-path__body {
	margin: 0.5rem 0 0;
	font-size: 1.25rem;
	line-height: 1.5;
	color: #555;
}

.ph-courses-path--2 .ph-courses-path__body {
	line-height: 1.46;
}

/* Path 1 — WYSIWYG (body / subsection / checks; label + title are outside this block) */
.ph-courses-path__prose--1 h4 {
	margin: 1rem 0 0;
	font-size: 1.25rem;
	line-height: 1.5;
	font-weight: 700;
	color: #333;
}

.ph-courses-path__prose--1 p {
	margin: 0.5rem 0 0;
	font-size: 1.25rem;
	line-height: 1.5;
	color: #555;
}

.ph-courses-path__prose--1 p strong,
.ph-courses-path__prose--1 p b {
	font-weight: 700;
	color: #333;
}

.ph-courses-path__prose--1 ul {
	list-style: none;
	margin: 0.75rem 0 1.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ph-courses-path__prose--1 ul > li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	font-size: 1.25rem;
	line-height: 1.5;
	color: #555;
}

.ph-courses-path__prose--1 ul > li::before {
	content: "";
	flex-shrink: 0;
	width: 1.1rem;
    height: 1.1rem;
	background: url("../icons/check-green-circle.svg") no-repeat center / contain;
}

.ph-courses-path__prose--1 li > ul {
	margin: 0.5rem 0 0;
	margin-bottom: 0;
	padding-left: 1.25rem;
	list-style: disc;
	display: block;
}

.ph-courses-path__prose--1 li > ul > li {
	display: list-item;
}

.ph-courses-path__prose--1 li > ul > li::before {
	display: none;
}

.ph-courses-path__prose--1 ol {
	margin: 0.5rem 0 1rem;
	padding-left: 1.25rem;
	font-size: 1.25rem;
	line-height: 1.5;
	color: #555;
}

.ph-courses-path__list-heading,
.ph-courses-path__includes-heading {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.5;
	font-weight: 700;
	color: #333;
}

.ph-courses-path--3 .ph-courses-path__list-heading {
	font-size: 1.375rem;
}

.ph-courses-path__list-block {
	padding-top: 1rem;
	padding-bottom: 1.5rem;
}

.ph-courses-path__checks {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0;
}

.ph-courses-path__checks li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.25rem;
	line-height: 1.5;
	color: #555;
}

.ph-courses-path__checks--compact li {
	font-size: 1.125rem;
	line-height: 1.5;
}

.ph-courses-path__check-ic {
	display: flex;
	flex-shrink: 0;
	width: 1.1rem;
    height: 1.1rem;
	align-items: center;
	justify-content: center;
}

.ph-courses-path__check-ic svg,
.ph-courses-path__check-ic img {
	width: 100%;
	height: auto;
	display: block;
}

.ph-courses-path__trend-ic {
	display: flex;
	flex-shrink: 0;
	width: 1.125rem;
	height: 1rem;
	align-items: center;
	justify-content: center;
}

.ph-courses-path__trend-ic svg,
.ph-courses-path__trend-ic img {
	width: 100%;
	height: auto;
	display: block;
}

.ph-courses-path__includes {
	margin-top: 0.5rem;
	padding: 2.5625rem 1.5625rem 1.5625rem;
	background: #fbfbfb;
	border: 0.0625rem solid #e0e0e0;
	border-radius: 1.5rem;
}

.ph-courses-path__includes .ph-courses-path__checks {
	gap: 0.75rem;
	margin-top: 1rem;
}

.ph-courses-path__includes-heading {
	font-size: 1.125rem;
}

.ph-courses-path__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 2rem;
}

.ph-courses-path__actions .ph-btn {
	font-size: 1.125rem;
	line-height: 1.5;
	padding: 0.875rem 2rem;
}

.ph-courses-path__pill {
	display: inline-flex;
	margin-top: 0.25rem;
	font-size: 1.25rem;
	line-height: 1.5;
	padding: 0.8125rem 1.5625rem;
}

.ph-courses-path__media {
	border-radius: 1.5rem;
	overflow: hidden;
	border: 0.0625rem solid #e0e0e0;
	min-height: 20rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fbfbfb;
}

.ph-courses-path__media--green {
	background: var(--ph-green);
	border: none;
	min-height: 26.5625rem;
	border-radius: 1.875rem;
}

.ph-courses-path__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---- Why ---- */
.ph-courses-why {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 1.5625rem 0;
}

.ph-courses-why__title {
	margin: 0;
	text-align: center;
	font-size: 2.5rem;
	line-height: 1.125;
	font-weight: 700;
	color: #333;
}

.ph-courses-why__subtitle {
	margin: 0;
	text-align: center;
	font-size: 1.375rem;
	line-height: 1.75;
	color: #555;
}

.ph-courses-why__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.ph-courses-why__card {
	background: #fff;
	border: 0.0625rem solid #e0e0e0;
	border-radius: 1.5rem;
	box-shadow: 0 0.0625rem 0.0625rem rgba(0, 0, 0, 0.05);
	padding: 1.5625rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.ph-courses-why__card--highlight {
	border-color: var(--ph-green);
}

.ph-courses-why__icon {
	display: flex;
	width: 1.5rem;
	height: 1.5rem;
	align-items: center;
	justify-content: flex-start;
	color: var(--ph-green);
}

.ph-courses-why__icon-svg {
	width: 2.5rem;
    height: 2.5rem;
    font-size: 2.5rem;
}

.ph-courses-why__card-text {
	margin: 0;
	font-size: 1.375rem;
	line-height: 1.5;
	color: #555;
}

.ph-courses-why__footer {
	margin: 0;
	text-align: center;
	font-size: 1.25rem;
	line-height: 1.5;
	color: #555;
}

/* ---- Featured ---- */
.ph-courses-featured {
	background: #fbfbfb;
	border-radius: 2.5rem;
	padding: 4rem 0 2rem;
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.ph-courses-featured__head {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	text-align: center;
}

.ph-courses-featured__title {
	margin: 0;
	font-size: 2.5rem;
	line-height: 1.125;
	font-weight: 700;
	color: #333;
}

.ph-courses-featured__subtitle {
	margin: 0;
	font-size: 1.375rem;
	line-height: 1.5;
	color: #555;
}

.ph-courses-featured__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.ph-courses-featured__card {
	background: #fff;
	border: 0.0625rem solid #e0e0e0;
	border-radius: 1.5rem;
	padding: 2.0625rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 18.4375rem;
}

.ph-courses-featured__badge {
	display: inline-block;
	align-self: flex-start;
	background: var(--ph-green);
	color: #fff;
	font-size: 0.875rem;
	line-height: 1;
	font-weight: 700;
	padding: 0.25rem 0.75rem;
	border-radius: 624.9375rem;
	margin-bottom: 0.5rem;
}

.ph-courses-featured__card-title {
	margin: 0.5rem 0 0;
	font-size: 1.625rem;
	line-height: 1.125;
	font-weight: 700;
	color: #333;
}

.ph-courses-featured__card-title-link {
	color: inherit;
	text-decoration: none;
}

.ph-courses-featured__card-title-link:hover,
.ph-courses-featured__card-title-link:focus {
	color: var(--ph-green);
}

p.ph-courses-featured__card-desc {
	margin: 0.75rem 0;
	font-size: 1rem;
	line-height: 1.25;
	color: #555;
}

.ph-courses-featured__card-foot {
	margin-top: auto;
	padding-top: 1.5rem;
	border-top: 0.0625rem solid #e0e0e0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ph-courses-featured__meta {
	margin: 0;
	font-size: 1rem;
	line-height: 1.25;
	color: #333;
}

.ph-courses-featured__meta-k {
	font-weight: 400;
	color: #333;
}

.ph-courses-featured__meta-v {
	color: #555;
}

.ph-courses-featured__more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #111;
	text-decoration: none;
	color: var(--ph-green);
}

.ph-courses-featured__more:hover {
		color: var(--ph-green-dark);
}

.ph-courses-featured__more svg {
	flex-shrink: 0;
}

/* ---- How ---- */
.ph-courses-how {
	background: #fff;
	border: 0.0625rem solid #e0e0e0;
	border-radius: 1.5rem;
	box-shadow: 0 0.0625rem 0.0625rem rgba(0, 0, 0, 0.05);
	padding: 2.5625rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 2rem;
}

.ph-courses-how__title {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.15;
	font-weight: 700;
	color: #333;
}

.ph-courses-how__intro {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.5;
	color: #555;
}

.ph-courses-how__list {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.ph-courses-how__item {
	display: flex;
	align-items: center;
	gap: 0;
}

.ph-courses-how__num {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	margin: 0.25rem 1rem 0 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 624.9375rem;
	background: var(--ph-green);
	border: 0.0625rem solid #e0e0e0;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
}

.ph-courses-how__item:nth-child(2) .ph-courses-how__num {
	border-color: var(--ph-green);
}

.ph-courses-how__text {
	margin: 0;
	flex: 1;
	font-size: 1.125rem;
	line-height: 1.5;
	padding-top: 0.125rem;
	color: #555;
}

/* ---- Related (uses ph-related-ac) ---- */
.ph-courses-related-wrap {
	border-top: 0.0625rem solid #e0e0e0;
    padding: 3.3125rem 0 2.875rem;
    margin: 0 auto;
    margin-top: 0.5rem;
    width: 100%;
    max-width: var(--ph-container);
}

.ph-courses-related__title {
	margin: 0 0 2.5rem;
	font-size: 2.1875rem;
	line-height: 1.125;
	font-weight: 700;
	color: #333;
}

/* ---- FAQ ---- */
.ph-courses-faq {
	padding: 2rem 0 4rem;
}

.ph-courses-faq__title {
	margin: 0 0 2rem;
	font-size: 2.5rem;
	line-height: 1.125;
	font-weight: 700;
	color: #333;
}

.ph-courses-faq__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ph-courses-faq__item {
	background: #fff;
	border: 0.0625rem solid #e0e0e0;
	border-radius: 1.5rem;
	overflow: hidden;
}

.ph-courses-faq .ph-faq__check {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ph-courses-faq .ph-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	cursor: pointer;
	color: #333;
	padding: 1.25rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5rem;
}

.ph-courses-faq .ph-faq__toggle {
	position: relative;
	width: 0.875rem;
	height: 0.875rem;
	flex: 0 0 auto;
}

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

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

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

.ph-courses-faq .ph-faq__answer {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	padding: 0 1.5rem;
	transform: translateY(-0.375rem);
	transition: max-height .42s cubic-bezier(.25,.8,.25,1), opacity .28s ease, transform .42s cubic-bezier(.25,.8,.25,1), padding .42s cubic-bezier(.25,.8,.25,1);
}

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

.ph-courses-faq .ph-faq__check:checked + .ph-faq__question + .ph-faq__answer {
	max-height: 31.25rem;
	opacity: 1;
	transform: translateY(0);
	padding: 0 1.5rem 1.25rem;
}

.ph-courses-page__cta.ph-cta {
	padding-top: 2rem;
	padding-bottom: 6rem;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
	.ph-courses-hero__title {
		font-size: 2.75rem;
	}

	.ph-courses-path__grid,
	.ph-courses-why__grid,
	.ph-courses-featured__grid {
		grid-template-columns: 1fr;
	}
	.ph-courses-path--1, .ph-courses-path--2, .ph-courses-path--3{
		padding: 3rem 2rem;
	}

	.ph-courses-path__grid--img-right .ph-courses-path__copy,
	.ph-courses-path__grid--img-right .ph-courses-path__media,
	.ph-courses-path__grid--img-left .ph-courses-path__copy,
	.ph-courses-path__grid--img-left .ph-courses-path__media {
		order: unset;
	}

	.ph-courses-path__media {
		min-height: 16rem;
		order: -1;
	}

	.ph-courses-path__grid--img-left .ph-courses-path__media {
		order: -1;
	}

	.ph-courses-paths-intro__title,
	.ph-courses-why__title,
	.ph-courses-featured__title,
	.ph-courses-faq__title {
		font-size: 2rem;
	}

	.ph-courses-path__heading {
		font-size: 2rem;
	}
}

@media (max-width: 600px) {
	.ph-courses-hero {
		padding: 2.5rem 1.25rem;
		border-radius: 1.5rem;
	}

	.ph-courses-hero__title {
		font-size: 2.125rem;
	}

	.ph-courses-hero__kicker,
	.ph-courses-hero__subtitle {
		font-size: 1.25rem;
	}
}
