/* ============================================================
   Single Problem — layout + sections (tokens from variables.css)
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.ph-problem-hero {
	padding-top: var(--ph-space-lg);
	margin-bottom: 50px;
}

.ph-problem-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: center;
}
.ph-problem-hero__head {
	margin-bottom: var(--ph-space-sm);
}

.ph-problem-hero__title {
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.15;
	margin: 0;
}

/* Same pill as painhunter cards (.ph-ph-card__spec in global.css) */
.ph-problem-hero__tags {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.ph-problem-hero__tags li {
	margin: 0;
	padding: 0;
}

.ph-problem-hero__desc {
	font-size: 21px;
	color: var(--ph-gray);
	line-height: 1.65;
	max-width: 520px;
	margin: 0 0 var(--ph-space-md);
	font-weight: var(--ph-fw-medium);
	margin-top: 40px;
}

.ph-problem-hero__desc p:first-child {
	margin-top: 0;
}

.ph-problem-hero__desc p:last-child {
	margin-bottom: 0;
}

.ph-problem-hero__desc a {
	color: var(--ph-green);
}

/* Hero description lists — inline SVG checklist (matches case single .ph-case-checklist) */
.ph-problem-hero__desc .ph-case-bullet-text {
	font-size: 1.2rem;
	line-height: 1.5;
	color: var(--ph-gray-dark);
}

.ph-problem-hero__desc .ph-case-checklist {
	list-style: none;
	margin: 0.75em 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.ph-problem-hero__desc .ph-case-checklist__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ph-problem-hero__desc .ph-case-checklist__icon {
	display: inline-flex;
}

.ph-problem-hero__desc .ph-case-checklist__icon svg {
	color: white;
	background: var(--ph-green);
	border-radius: 50%;
	width: 22px;
	height: 22px;
	padding: 4px;
}

.ph-problem-single .ph-problem-hero__desc ol {
	margin: 0.75em 0;
	padding-left: 1.35em;
}

.ph-problem-single .ph-problem-hero__desc ol > li {
	font-size: 1.2rem;
	line-height: 1.5;
	color: var(--ph-gray-dark);
}

.ph-problem-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ph-problem-hero__media {
	position: relative;
}

.ph-problem-hero__img {
	width: 100%;
	border-radius: 24px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	object-fit: cover;
}

.ph-problem-hero__img--placeholder {
	min-height: 320px;
	background: linear-gradient(135deg, var(--ph-green-light), var(--ph-gray-bg));
	border-radius: 24px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ── Signs (Figma: centered header, 3-col grid, white card) ─ */
.ph-problem-signs__header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto clamp(28px, 4vw, 40px);
}

.ph-problem-signs__title {
	font-size: clamp(28px, 3.5vw, 45px);
	font-weight: var(--ph-fw-extra);
	color: var(--ph-black);
	line-height: 1.2;
	letter-spacing: 0.72px;
	margin: 0 0 12px;
}


.ph-problem-signs .ph-container {
	background: var(--ph-white);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--ph-border);
    border-radius: 24px;
    padding: clamp(20px, 4.5vw, 60px);
}

.ph-problem-signs__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px 24px;
	align-items: start;
}

@media screen and (max-width: 768px) {
	.ph-problem-hero{
		padding-top: 20px;
	}
	.ph-problem-cases>.ph-container,
	.ph-problem-articles>.ph-container {
		padding: 0;
	}
}
@media (min-width: 640px) {
	.ph-problem-signs__grid {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 32px;
		row-gap: 24px;
	}
}

@media (min-width: 900px) {
	.ph-problem-signs__grid {
		grid-template-columns: repeat(3, 1fr);
		column-gap: 40px;
		row-gap: 28px;
	}
}

.ph-problem-signs__item {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: var(--ph-text-md);
	font-weight: var(--ph-fw-regular);
	color: var(--ph-black);
	line-height: 1.5;
}

.ph-problem-signs__check {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ph-green-light);
	color: var(--ph-green-dark);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ph-problem-signs__check svg {
	display: block;
}

/* ── Why pattern repeats (Figma: vertical stack — dashed top circle, arrow, solid green bottom) ─ */
.ph-problem-why .ph-container {
    padding-left: 0;
    padding-right: 0px;
}
.ph-problem-why__content {
    padding-right: 30px;
}

.ph-problem-why__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(36px, 5vw, 100px);
	align-items: center;
}


.ph-problem-why__visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.ph-problem-why__diagram {
	position: relative;
	width: 100%;
	padding: clamp(32px, 5vw, 44px) clamp(24px, 4vw, 32px);
	background: var(--ph-white);
	border-radius: 24px;
	border: 1px solid var(--ph-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.ph-problem-why__diagram::after {
	content: "";
	position: absolute;
	top: -18%;
	right: -12%;
	width: 55%;
	height: 55%;
	background: radial-gradient(circle, rgba(70, 159, 16, 0.12) 0%, transparent 68%);
	pointer-events: none;
}

.ph-problem-why__stack {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

/* Top: dashed circle, text centered (wraps to ~2 lines for default copy) */
.ph-problem-why__node--surface {
	width: 130px;
	height: 130px;
	border-radius: 50%;
	border: 2px dashed #d1d5db;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: clamp(14px, 4vw, 22px);
	box-sizing: border-box;
	flex-shrink: 0;
}

.ph-problem-why__node-label--surface {
	font-size: clamp(14px, 3.2vw, 16px);
	font-weight: var(--ph-fw-medium);
	color: var(--ph-gray-dark);
	line-height: 1.25;
	max-width: 78%;
}

/* Arrow between circles */
.ph-problem-why__connector {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 44px;
	flex-shrink: 0;
}

.ph-problem-why__connector-line {
	position: relative;
	width: 2px;
	height: 26px;
	background: #d1d5db;
	border-radius: 1px;
}

.ph-problem-why__connector-line::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -7px;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid #d1d5db;
}

/* Bottom: solid brand green, white bold text, lift shadow */
.ph-problem-why__node--root {
	width: 160px;
    height: 160px;
	border-radius: 50%;
	background: var(--ph-green);
	box-shadow: 0 10px 28px rgba(70, 159, 16, 0.38), 0 4px 12px rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: clamp(14px, 4vw, 22px);
	box-sizing: border-box;
	flex-shrink: 0;
}

.ph-problem-why__node-label--root {
	font-size: clamp(14px, 3.2vw, 16px);
	font-weight: var(--ph-fw-bold);
	color: var(--ph-white);
	line-height: 1.25;
	max-width: 78%;
}

.ph-problem-why__title {
	font-size: clamp(28px, 3.5vw, 45px);
	font-weight: var(--ph-fw-extra);
	color: var(--ph-black);
	line-height: 1.2;
	letter-spacing: 0.72px;
	margin: 0 0 var(--ph-space-md);
}

.ph-problem-why__content .ph-wysiwyg {
    font-size: 20px;
    color: var(--ph-gray);
    line-height: 1.2;
}


.ph-wysiwyg ul {
	list-style: disc;
	padding-left: 1.25em;
	margin: 0.75em 0;
}

.ph-wysiwyg a {
	color: var(--ph-green);
}

/* ── How solves ──────────────────────────────────────────── */

.ph-problem-how .ph-section-header {
	margin-bottom: var(--ph-space-lg);
}

.ph-problem-how__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--ph-space-md);
}

.ph-problem-how__card {
	background: var(--ph-white);
	border: 1px solid var(--ph-border);
	border-radius: 20px;
	padding: 26px 24px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ph-problem-how__card-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #f3faee;
	border: 1px solid rgba(70, 159, 16, 0.18);
	color: var(--ph-green);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.ph-problem-how__icon-svg {
	width: 18px;
	height: 18px;
	display: block;
}

.ph-problem-how__icon-svg.dashicons {
	font-size: 28px;
    width: 28px;
    height: 28px;
    line-height: 28px;
}

.ph-problem-how__icon-svg svg {
	width: 18px;
	height: 18px;
	display: block;
}

.ph-problem-how__card-title {
	min-height: 70px;
	font-size: 25px;
	font-weight: 700;
	margin-bottom: 8px;
}

.ph-problem-how__card-desc {
	font-size: var(--ph-text-lg);
	color: var(--ph-gray);
	line-height: 1.6;
	margin: 0;
}


.ph-problem-how .ph-container {
	background-color: var(--ph-green-bg);
    border-radius: 30px;
    box-shadow: inset 0 0 0 1px rgba(70, 159, 16, 0.3);
	padding: clamp(20px, 4.5vw, 80px);
}

/* ── Real Cases (Figma: white panel, 3-up grid, meta row, progress + arrow) ─ */
.ph-problem-cases__surface {
	background: var(--ph-white);
	border: 1px solid var(--ph-border);
	border-radius: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.04);
	padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px) clamp(24px, 4vw, 40px);
}

.ph-problem-cases__head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto clamp(28px, 4vw, 40px);
}

.ph-problem-cases__title {
	font-size: clamp(28px, 3.5vw, 45px);
	font-weight: var(--ph-fw-extra);
	color: var(--ph-black);
	line-height: 1.2;
	letter-spacing: 0.02em;
	margin: 0 0 12px;
}

.ph-problem-cases__subtitle {
	font-size: var(--ph-text-md);
	font-weight: var(--ph-fw-medium);
	color: var(--ph-gray);
	line-height: 1.65;
	margin: 0;
}

.ph-problem-cases__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 640px) {
	.ph-problem-cases__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 24px;
	}
}

@media (min-width: 1024px) {
	.ph-problem-cases__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
}

.ph-problem-cases-card {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

.ph-problem-cases-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 220px;
	background: var(--ph-white);
	border: 1px solid var(--ph-border);
	border-radius: 18px;
	padding: 22px 20px 20px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow var(--ph-transition), border-color var(--ph-transition);
}

.ph-problem-cases-card__link:hover {
	border-color: rgba(70, 159, 16, 0.35);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.ph-problem-cases-card__link--static {
	cursor: default;
	pointer-events: none;
}

.ph-problem-cases-card__meta {
	display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    min-height: 28px;
}

.ph-problem-cases-card__num {
	font-size: 14px;
	font-weight: var(--ph-fw-bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ph-gray-mid);
	line-height: 1.3;
}

.ph-problem-cases-card__num--empty {
	visibility: hidden;
}

.ph-problem-cases-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 58%;
	padding: 6px 10px;
	border-radius: var(--ph-border-radius-pill);
	background: var(--ph-green-light);
	color: var(--ph-green-dark);
	font-size: 12px;
	font-weight: var(--ph-fw-semi);
	line-height: 1.25;
}

.ph-problem-cases-card__badge-icon {
	flex-shrink: 0;
	display: flex;
	color: var(--ph-green);
}

.ph-problem-cases-card__badge-icon svg {
	display: block;
}

.ph-problem-cases-card__badge-text {
	hyphens: auto;
	overflow-wrap: anywhere;
}

.ph-problem-cases-card__title {
	font-size: clamp(17px, 2vw, 20px);
	font-weight: var(--ph-fw-bold);
	color: var(--ph-black);
	line-height: 1.35;
	margin: 0 0 auto;
	padding-bottom: 20px;
	flex: 1;
}

.ph-problem-cases-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 4px;
}

.ph-problem-cases-card__progress {
	margin: 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 8px;
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.3;
}

.ph-problem-cases-card__progress-label {
	font-weight: var(--ph-fw-extra);
	color: var(--ph-black);
}

.ph-problem-cases-card__progress-pct {
	font-weight: var(--ph-fw-bold);
	color: var(--ph-green);
}

.ph-problem-cases-card__arrow {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ph-green-light);
	color: var(--ph-green-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color var(--ph-transition), color var(--ph-transition);
}

.ph-problem-cases-card__link:hover .ph-problem-cases-card__arrow {
	background: rgba(70, 159, 16, 0.22);
	color: var(--ph-green);
}

.ph-problem-cases-card__arrow svg {
	display: block;
}

.ph-problem-cases__footer {
	text-align: center;
	margin-top: clamp(28px, 4vw, 36px);
	padding-top: 4px;
}

.ph-problem-cases__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 28px;
	border-radius: var(--ph-border-radius-pill);
	background: transparent;
	border: 1px solid var(--ph-black);
	color: var(--ph-black);
	font-size: var(--ph-text-sm);
	font-weight: var(--ph-fw-semi);
	text-decoration: none;
	transition: border-color var(--ph-transition), color var(--ph-transition), background-color var(--ph-transition);
}

.ph-problem-cases__all:hover {
	border-color: var(--ph-green);
	color: var(--ph-green);
	background: transparent;
}

/* ── Related Articles (Figma: white panel, intro + accent, stacked link cards) ─ */
.ph-problem-articles__surface {
	background: var(--ph-white);
	border: 1px solid var(--ph-border);
	border-radius: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.04);
	padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 48px);
}

.ph-problem-articles__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(28px, 5vw, 48px);
	align-items: start;
}

@media (min-width: 900px) {
	.ph-problem-articles__grid {
		grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
		gap: clamp(32px, 5vw, 56px);
		align-items: stretch;
	}
}

.ph-problem-articles__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 420px;
}

.ph-problem-articles__title {
	font-size: clamp(28px, 3.5vw, 45px);
	font-weight: var(--ph-fw-extra);
	color: var(--ph-black);
	line-height: 1.2;
	letter-spacing: 0.02em;
	margin: 0 0 14px;
}

.ph-problem-articles__lead {
	font-size: var(--ph-text-lg);
	font-weight: var(--ph-fw-medium);
	color: var(--ph-gray);
	line-height: 1.65;
	margin: 0 0 20px;
}

.ph-problem-articles__accent {
	display: block;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--ph-green);
}

.ph-problem-articles__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ph-problem-articles-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	background: var(--ph-white);
	border: 1px solid var(--ph-border);
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: border-color var(--ph-transition), box-shadow var(--ph-transition);
}

.ph-problem-articles-card:hover {
	border-color: rgba(70, 159, 16, 0.35);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.ph-problem-articles-card__main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
}

.ph-problem-articles-card__cat {
	font-size: 14px;
	font-weight: var(--ph-fw-bold);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ph-green);
	line-height: 1.2;
}

.ph-problem-articles-card__title {
	font-size: clamp(16px, 1.8vw, 18px);
	font-weight: var(--ph-fw-bold);
	color: var(--ph-black);
	line-height: 1.35;
}

.ph-problem-articles-card__go {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ph-green-light);
	color: var(--ph-green-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color var(--ph-transition), color var(--ph-transition);
}

.ph-problem-articles-card:hover .ph-problem-articles-card__go {
	background: rgba(70, 159, 16, 0.22);
	color: var(--ph-green);
}

.ph-problem-articles-card__go svg {
	display: block;
}

/* ── Final CTA ───────────────────────────────────────────── */
.ph-problem-final-cta {
	text-align: center;
	background: var(--ph-gray-bg);
}

.ph-problem-final-cta__title {
	font-size: clamp(26px, 3.2vw, 40px);
	font-weight: var(--ph-fw-extra);
	line-height: 1.25;
	margin-bottom: 12px;
}

.ph-problem-final-cta__accent {
	color: var(--ph-green);
	font-style: italic;
	font-weight: var(--ph-fw-bold);
	letter-spacing: 0.02em;
	display: inline-block;
	transform: rotate(-1.5deg);
}

.ph-problem-final-cta__subtitle {
	font-size: var(--ph-text-md);
	color: var(--ph-gray);
	max-width: 480px;
	margin: 0 auto var(--ph-space-md);
	line-height: 1.6;
}
main.ph-main.ph-problem-single .ph-painhunters.ph-section {
    padding-bottom: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
	.ph-problem-hero__grid {
		grid-template-columns: 1fr;
		gap: 50px;

	}

	.ph-problem-hero__media {
		order: -1;
	}
	.ph-problem-why__visual{
		order: 2;
	}

	.ph-problem-why__grid {
		grid-template-columns: 1fr;
	}

	.ph-problem-how__grid {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 600px) {
	.ph-problem-hero__actions .ph-btn {
		width: 100%;
		justify-content: center;
	}
}
