.ph-books-catalog {
	background: #fbfbfb;
	padding: 50px 0 50px;
}

.ph-books-catalog__container {
	max-width: 1280px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.ph-books-catalog__hero {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 40px;
	box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
	padding: 81px;
	text-align: center;
}

.ph-books-catalog__hero-title {
	margin: 0;
	font-size: 3.75rem;
	line-height: 3.75rem;
	color: #333;
}

.ph-books-catalog__hero-sub {
	max-width: 768px;
	margin: 16px auto 0;
	font-size: 1.375rem;
	line-height: 1.75rem;
	color: #555;
}

.ph-books-catalog__hero-actions {
	margin-top: 24px;
	display: flex;
	gap: 16px;
	justify-content: center;
}

.ph-books-catalog__list-head {
	text-align: center;
	margin-top: 50px;
}

.ph-books-catalog__list-head h2 {
	margin: 0;
	font-size: 2.75rem;
	line-height: 2.5rem;
}

.ph-books-catalog__list-head p {
	margin: 16px auto 0;
	max-width: 768px;
	font-size: 1.375rem;
	line-height: 1.75rem;
	color: #555;
}

/* Featured books — brand panel, pill, CTAs, learn-more link */
.ph-books-featured {
	width: 100%;
}

.ph-books-featured__stack {
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 4vw, 40px);
}

.ph-books-featured__card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 40px;
	box-shadow: 0 24px 80px -24px rgba(15, 23, 42, 0.1);
	padding: clamp(32px, 5vw, 56px) clamp(28px, 5vw, 64px);
}

.ph-books-featured__layout {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}

/* Left: soft brand-green panel + cover */
.ph-books-featured__visual {
	position: relative;
	flex: 0 0 auto;
	width: min(100%, 45%);
	align-self: stretch;
	min-height: 320px;
	background: linear-gradient(165deg, var(--ph-green-light) 0%, var(--ph-green-bg) 42%, var(--ph-white) 100%);
	border: 1px solid rgba(70, 159, 16, 0.14);
	border-radius: 24px;
	padding: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 32px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ph-books-featured__cover-frame {
	position: relative;
	z-index: 1;
	display: block;
	width: min(240px, 78%);
	text-decoration: none;
	color: inherit;
	filter: drop-shadow(0 14px 28px rgba(70, 159, 16, 0.12));
}

.ph-books-featured__cover-frame img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 3px 14px 14px 3px;
}

.ph-books-featured__cover-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	min-height: 220px;
	border-radius: 3px 14px 14px 3px;
	background: linear-gradient(160deg, var(--ph-white) 0%, var(--ph-green-light) 100%);
	border: 1px solid rgba(70, 159, 16, 0.1);
}

/* Right column */
.ph-books-featured__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ph-books-featured__badge {
	margin: 0 0 14px;
	display: inline-flex;
	align-items: center;
	width: fit-content;
	font-size: 12px;
	font-weight: var(--ph-fw-bold);
	letter-spacing: 0.04em;
	color: #469f10;
	background: rgba(70, 159, 16, 0.12);
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(70, 159, 16, 0.32);
	line-height: 1.2;
}

.ph-books-featured__title {
	margin: 0;
	font-size: clamp(28px, 3vw, 36px);
	font-weight: var(--ph-fw-bold);
	line-height: 1.2;
	color: #333;
}

.ph-books-featured__title-link {
	color: inherit;
	text-decoration: none;
	transition: color var(--ph-transition);
}

.ph-books-featured__title-link:hover,
.ph-books-featured__title-link:focus-visible {
	color: var(--ph-green);
}

.ph-books-featured__lede {
	margin: 12px 0 0;
	max-width: 450px;
	font-size: 1rem;
	font-weight: var(--ph-fw-regular);
	line-height: 1.55;
	color: #666;
}

.ph-books-featured__highlights {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	width: 100%;
	max-width: 40rem;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ph-books-featured__highlight {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	font-size: 1rem;
	font-weight: var(--ph-fw-regular);
	line-height: 1.45;
	color: #333;
}

.ph-books-featured__check {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin-top: 1px;
}

.ph-books-featured__highlight-text {
	flex: 1;
	min-width: 0;
}

.ph-books-featured__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
}

.ph-books-featured__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-size: 1rem;
	font-weight: 800;
	padding: 14px 28px;
}

.ph-books-catalog__btn-ic {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
}

.ph-books-catalog__btn-ic--printed {
	color: #fff;
}

.ph-books-catalog__btn-ic--amazon {
	color: #000;
}

.ph-books-catalog__btn-ic--audio {
	color: #469f10;
}

.ph-books-catalog__btn-ic--ebook {
	color: #469f10;
}

.ph-books-catalog__btn-ic--read-sample {
	color: #333;
}
.ph-books-catalog__btn-ic--read-sample path {
	fill: white;
}

.ph-books-catalog__read-sample {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.ph-books-catalog__buy-printed,
.ph-books-catalog__buy-ebook,
.ph-books-catalog__buy-amazon,
.ph-books-catalog__buy-audio {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.ph-books-catalog__card-actions .ph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	max-width: 100%;
	text-align: center;
	white-space: normal;
	font-size: 15px;
	padding: 12px 16px;
}

.ph-books-featured__more {
	margin-top: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 1rem;
	font-weight: var(--ph-fw-bold);
	color: #469f10;
	text-decoration: none;
	line-height: 1.3;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.ph-books-featured__more:hover {
	color: #357d0c;
	text-decoration: underline;
}

.ph-books-featured__more-arrow {
	font-size: 1.125rem;
	line-height: 1;
}

@media (max-width: 900px) {
	.ph-books-featured__layout {
		flex-direction: column;
		align-items: stretch;
	}

	.ph-books-featured__visual {
		width: 100%;
		min-height: 280px;
	}

	.ph-books-featured__cover-frame {
		width: min(260px, 70%);
	}

	.ph-books-featured__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ph-books-featured__btn {
		width: 100%;
		justify-content: center;
	}
}

.ph-books-catalog__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.ph-books-catalog__cat {
	padding: 10px 20px;
	border: 1px solid #e0e0e0;
	background: #fff;
	border-radius: 9999px;
	font-size: 1rem;
	line-height: 1.25rem;
	color: #333;
	cursor: pointer;
}

.ph-books-catalog__cat.is-active {
	background: #469f10;
	color: #fff;
	border-color: #469f10;
}

.ph-books-catalog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.ph-books-catalog__card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 24px;
	padding: 25px;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

/* Matches homepage / about `.ph-book-card__cover` + img hover (homepage.css). */
.ph-books-catalog__card-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 20px;
	overflow: visible;
	background: #f3f5f4;
	border: 1px solid #e8ece9;
	border-radius: 24px;
	text-decoration: none;
	box-sizing: border-box;
}

.ph-books-catalog__card-media img {
	object-fit: contain;
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}

.ph-books-catalog__card-media:hover img {
	transform: scale(1.1);
}

.ph-books-catalog__card-placeholder {
	width: 100%;
	height: 100%;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ph-books-catalog__card h3 {
	margin: 18px 0 0;
	font-size: 1.5rem;
	line-height: 1.75rem;
}

.ph-books-catalog__card h3 a {
	color: #333;
	text-decoration: none;
}
.ph-books-catalog__card h3 a:hover{
	color: var(--ph-green);
}

.ph-books-catalog__card p {
	margin: 12px 0 0;
	font-size: 1.125rem;
	line-height: 1.45rem;
	color: #555;
}

.ph-books-catalog__tags {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ph-books-catalog__tags span {
	padding: 6px 10px;
	background: #f9fafb;
	border-radius: 9999px;
	font-size: 0.875rem;
	line-height: 1rem;
	color: #555;
}

.ph-books-catalog__card-actions {
	margin-top: auto;
	padding-top: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	min-width: 0;
}

.ph-books-catalog__card-actions--single .ph-btn {
	flex: 1 1 100%;
}

.ph-books-catalog__info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.ph-books-catalog__info-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 24px;
	padding: 28px 28px 32px;
	box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.06);
}

.ph-books-catalog__info-card--why {
	text-align: left;
}

.ph-books-catalog__info-card--how {
	text-align: left;
}

.ph-books-catalog__info-icon {
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	background: #469f10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.ph-books-catalog__info-card h3 {
	margin: 18px 0 0;
	font-size: 1.5rem;
	line-height: 1.75rem;
}

.ph-books-catalog__wysiwyg {
	margin-top: 12px;
	font-size: 1rem;
	line-height: 1.5rem;
	color: #555;
}


.ph-books-catalog__wysiwyg--why > p:first-child {
	margin-top: 0;
}

.ph-books-catalog__wysiwyg--why ul {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.ph-books-catalog__wysiwyg--why li {
	position: relative;
	margin: 0;
	padding: 10px 0 10px 36px;
	font-size: 1rem;
	line-height: 1.45rem;
	color: #444;
}

.ph-books-catalog__wysiwyg--why li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.ph-books-catalog__wysiwyg--why li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	background: url('../images/figma-check-green.svg') no-repeat center / contain;
}

/* Quote / blockquote from editor = “how to read” cards */
.ph-books-catalog__wysiwyg--how blockquote {
	margin: 12px 0 0;
	padding: 16px 18px;
	background: var(--ph-gray-bg);
	border: 1px solid var(--ph-gray-light);
	border-radius: 16px;
	font-size: 1rem;
	line-height: 1.5rem;
	color: #444;
}

.ph-books-catalog__wysiwyg--how blockquote:first-of-type {
	margin-top: 4px;
}

.ph-books-catalog__wysiwyg--how blockquote p {
	margin: 0;
}

.ph-books-catalog__wysiwyg--how blockquote p + p {
	margin-top: 8px;
}

.ph-books-catalog__wysiwyg--how > p:first-child {
	margin-top: 0;
}

.ph-books-catalog__try {
	background: #f6fbf2;
	border: 1px solid rgba(70, 159, 16, 0.2);
	border-radius: 24px;
	padding: 36px;
	text-align: center;
}

.ph-books-catalog__try-icon {
	width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #469f10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ph-books-catalog__try h3 {
	margin: 14px 0 0;
    font-size: 2.75rem;
    line-height: 1.5;
}

.ph-books-catalog__try p {
	margin: 10px auto 30px;
    font-size: 1.35rem;
    line-height: 1.5rem;
    color: var(--ph-gray);
    max-width: 650px;
    text-align: center;
}

.ph-books-catalog__try-links {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.ph-books-catalog__try-links a,
.ph-books-catalog__try-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 20px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e0e0e0;
	font-size: 1.125rem;
	line-height: 1.5rem;
	color: var(--ph-black);
	text-decoration: none;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.ph-books-catalog__try-link:hover,
.ph-books-catalog__try-links a:hover {
	background: var(--ph-green-light);
	border-color: rgba(70, 159, 16, 0.45);
	color: var(--ph-green);
	box-shadow: 0 4px 16px rgba(70, 159, 16, 0.15);
	transform: translateY(-1px);
}

.ph-books-catalog__try-link:focus-visible,
.ph-books-catalog__try-links a:focus-visible {
	outline: 2px solid var(--ph-green);
	outline-offset: 2px;
}

.ph-books-catalog__try-link .ph-books-catalog__try-book-icon path {
	transition: fill 0.2s ease;
}

.ph-books-catalog__try-link:hover .ph-books-catalog__try-book-icon path {
	fill: var(--ph-green);
}

.ph-books-catalog__try-link-icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	flex-shrink: 0;
}

.ph-books-catalog__try-book-icon {
	width: 16px;
	display: block;
	flex-shrink: 0;
	margin-top: 2px;
}

.ph-books-catalog__buying {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 24px;
	padding: 24px;
	margin-bottom: 20px;
}

.ph-books-catalog__buying-head {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ph-books-catalog__buying-heading-icon {
	display: inline-flex;
	line-height: 0;
	flex-shrink: 0;
}

.ph-books-catalog__buying-head h3 {
	margin: 0;
	font-size: 1.75rem;
	line-height: 2rem;
}

.ph-books-catalog__buying-grid {
	margin-top: 20px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.ph-books-catalog__buying-grid article {
	background: #f9fafb;
	border-radius: 16px;
	padding: 16px;
}

.ph-books-catalog__buying-grid h4 {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.25rem;
	color: #333;
}

.ph-books-catalog__buying-grid p {
	margin: 8px 0 0;
	font-size: 0.9375rem;
	line-height: 1.25rem;
	color: #555;
}

/* Author — card matches catalog hero: 40px radius + primary drop shadow; photo has layered shadow (Figma-style). */
.ph-books-catalog__author {
	background: #fff;
	border: 1px solid #e0e0e0;
    margin: 80px auto 0;
	border-radius: 40px;
	box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
	padding: 48px 56px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 40px;
}

.ph-books-catalog__author-avatar {
	flex-shrink: 0;
    width: 220px;
    height: 220px;
    line-height: 0;
    border-radius: 999px;
    padding: 10px;
    border: 1px solid var(--ph-border);
    position: relative;
    overflow: hidden;
}

.ph-books-catalog__author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 999px;
	display: block;
	background-color: var(--ph-green-light);
	box-shadow: 0px 16px 50px 10px rgba(235, 245, 225, 0.5);
}

.ph-books-catalog__author-content {
	flex: 1;
	min-width: 0;
	padding-top: 4px;
}

.ph-books-catalog__author-content h3 {
	margin: 0;
	font-size: 2.5rem;
	line-height: 1.1;
	font-weight: 700;
	color: #333;
}

.ph-books-catalog__author-sub {
	margin: 10px 0 0;
	font-size: 0.9375rem;
	line-height: 1.35rem;
	font-weight: 600;
	color: #469f10;
}

.ph-books-catalog__author-desc {
	margin: 18px 0 0;
    max-width: 580px;
    font-size: 1.125rem;
    line-height: 1.65rem;
    color:var(--ph-gray);
}

.ph-books-catalog__author-actions {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

@media (max-width: 1024px) {
	.ph-books-catalog__hero {
		padding: 44px 28px;
	}

	.ph-books-catalog__grid,
	.ph-books-catalog__buying-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ph-books-catalog__info-grid {
		grid-template-columns: 1fr;
	}

	.ph-books-catalog__author {
		padding: 40px 36px;
		gap: 32px;
	}
}

@media (max-width: 767px) {

	.ph-books-catalog__hero-title {
		font-size: 2.5rem;
		line-height: 2.5rem;
	}

	.ph-books-catalog__hero-sub {
		font-size: 1rem;
		line-height: 1.5rem;
	}

	.ph-books-catalog__hero-actions,
	.ph-books-catalog__author-actions {
		flex-direction: column;
	}

	.ph-books-catalog__grid,
	.ph-books-catalog__buying-grid {
		grid-template-columns: 1fr;
	}

	.ph-books-catalog__author {
		flex-direction: column;
		align-items: center;
		padding: 36px 24px;
		gap: 24px;
		text-align: center;
	}

	.ph-books-catalog__author-content {
		padding-top: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.ph-books-catalog__author-content h3 {
		font-size: 2rem;
		line-height: 1.15;
	}

	.ph-books-catalog__author-desc {
		max-width: none;
	}

	.ph-books-catalog__author-actions {
		justify-content: center;
		width: 100%;
		margin-top: 24px;
	}
}
