/* Projects, documents and news (Pencil frames "Dự án", "Tài liệu", "Tin tức").
 * Everything is scoped under .pdn; shared tokens come from main.css. */

.pdn {
	--pdn-red: #e0142b;
	--pdn-mint: #ebf6f0;
}

.pdn .pdn__body {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding-top: 48px;
	padding-bottom: 80px;
}

.pdn-docs .pdn__body,
.pdn-news .pdn__body {
	gap: 36px;
}

/* Page head: title (with rule) left, stats / intro / action right */
.pdn-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.pdn-head .page-title {
	flex: 0 0 auto;
	width: 600px;
	max-width: 100%;
	margin-bottom: 0;
}

.pdn-projects .pdn-head .page-title {
	width: 520px;
}

.pdn .page-title__text {
	text-transform: capitalize;
}

.pdn-post .page-title__text,
.pdn-project .page-title__text,
.pdn-search-results .page-title__text {
	text-transform: none;
}

.pdn-head__intro {
	flex: 1;
	font-size: 14px;
	line-height: 1.65;
	color: var(--text-muted);
}

.pdn-head .btn-outline {
	flex-shrink: 0;
}

.pdn-stats {
	display: flex;
	align-items: flex-end;
	gap: 28px;
}

.pdn-stats li {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pdn-stats strong {
	font-family: var(--font-head);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1;
	color: var(--brand);
}

.pdn-stats span {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	line-height: 1;
	color: var(--text-muted);
}

.pdn-empty {
	padding: 40px 0;
	color: var(--text-muted);
}

/* Projects: filter chips */
.pdn-filter {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-block: 16px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.pdn-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pdn-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
}

.pdn-chip span {
	font-size: 11px;
	color: var(--text-muted);
}

.pdn-chip:hover {
	border-color: var(--brand);
	color: var(--brand-dark);
}

.pdn-chip.is-active {
	border-color: var(--brand);
	background: var(--brand);
	color: var(--text-invert);
}

.pdn-chip.is-active span {
	color: var(--text-invert);
}

.pdn-filter__note {
	margin-inline-start: auto;
	font-size: 11.5px;
	line-height: 1;
	color: var(--text-muted);
	white-space: nowrap;
}

/* Projects: groups and cards */
.pdn-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.pdn-group__heading {
	padding-bottom: 9px;
	border-bottom: 3px solid var(--brand);
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.7px;
	line-height: 1.2;
	color: var(--brand-dark);
}

.pdn-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px 24px;
	width: 100%;
}

.pdn-card__photo {
	position: relative;
	display: block;
	height: 168px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--surface-alt);
}

.pdn-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.pdn-card:hover .pdn-card__photo img {
	transform: scale(1.04);
}

.pdn-card__tag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 9px;
	border-radius: 99px;
	background: rgba(11, 21, 18, 0.8);
	font-family: var(--font-head);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.7px;
	line-height: 1;
	color: var(--text-invert);
}

.pdn-card__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px 2px 4px;
}

.pdn-card__name {
	font-family: var(--font-head);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.1px;
	line-height: 1.35;
	text-transform: uppercase;
}

.pdn-card__name a {
	color: var(--text);
	text-decoration: none;
}

.pdn-card__name a:hover {
	color: var(--brand-dark);
}

.pdn-card__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.pdn-card__meta div {
	display: flex;
	gap: 8px;
}

.pdn-card__meta dt {
	flex: 0 0 74px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.6px;
	line-height: 1.8;
	color: var(--text-muted);
}

.pdn-card__meta dd {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--text);
}

/* Single project */
.pdn-project__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: start;
	gap: 40px;
}

.pdn-project__photo {
	position: relative;
	margin: 0 0 32px;
	overflow: hidden;
	border-radius: 12px;
}

.pdn-project__photo img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.pdn-project__photo .pdn-card__tag {
	top: 16px;
	left: 16px;
	padding: 7px 12px;
	font-size: 11px;
}

.pdn-project__photo--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 260px;
	background: var(--surface-alt);
	color: var(--text-muted, #6b7773);
}

.pdn-project__photo--empty figcaption {
	font-size: 14px;
}

.pdn-card__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	color: var(--text-muted, #6b7773);
	font-size: 12px;
}

.pdn-project__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 32px;
}

.pdn-project__gallery figure {
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	background: var(--surface-alt);
}

.pdn-project__gallery a {
	display: block;
}

.pdn-project__gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.pdn-facts {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface-alt);
}

.pdn-facts__title {
	padding-bottom: 12px;
	border-bottom: 3px solid var(--brand);
	align-self: flex-start;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.7px;
	line-height: 1.2;
	color: var(--brand-dark);
}

.pdn-facts dl {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.pdn-facts dl div {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 4px 12px;
	padding-block: 14px;
	border-bottom: 1px solid var(--border);
}

.pdn-facts dl div:first-child {
	padding-top: 0;
}

.pdn-facts .icon {
	grid-row: span 2;
	margin-top: 1px;
	color: var(--brand);
}

.pdn-facts dt {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.6px;
	color: var(--text-muted);
}

.pdn-facts dd {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.pdn-prose {
	max-width: none;
}

.pdn-prose img {
	height: auto;
	margin-block: 8px;
	border-radius: 12px;
}

.pdn-prose h2,
.pdn-prose h3 {
	margin-top: 1.4em;
	font-family: var(--font-head);
	line-height: 1.25;
}

/* Articles written with the block editor (inc/editor.php). Classic articles carry none of these
   classes, so they are unaffected; wp-block-library is not loaded, the theme styles the blocks. */
.pdn-prose .wp-block-list {
	padding-left: 1.4em;
}

.pdn-prose ul.wp-block-list {
	list-style: disc;
}

.pdn-prose ol.wp-block-list {
	list-style: decimal;
	padding-left: 1.6em;
}

.pdn-prose .wp-block-list li + li {
	margin-top: 0.35em;
}

.pdn-prose .wp-block-image img,
.pdn-prose .wp-block-gallery img,
.pdn-prose .wp-block-media-text__media img {
	border-radius: 12px;
}

.pdn-prose .wp-block-image.aligncenter {
	text-align: center;
}

.pdn-prose .wp-block-image.aligncenter img {
	margin-inline: auto;
}

.pdn-prose .wp-block-table {
	margin-inline: 0;
}

.pdn-prose .wp-block-table table {
	border: 0;
}

.pdn-prose .wp-block-table td,
.pdn-prose .wp-block-table th {
	border: 0;
	border-bottom: 1px solid var(--border);
}

.pdn-prose .wp-block-table thead th {
	border-bottom: 2px solid var(--border-strong);
}

.pdn-prose .wp-block-pullquote {
	margin-inline: 0;
	padding: 1.2em 0;
	border-block: 2px solid var(--brand);
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 22px;
	line-height: 1.4;
	text-align: center;
}

.pdn-prose .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	color: inherit;
}

.pdn-prose .wp-block-pullquote cite {
	display: block;
	margin-top: 0.6em;
	font-family: var(--font-body);
	font-size: 14px;
	font-style: normal;
	color: var(--text-muted);
}

.pdn-prose .wp-block-spacer {
	clear: both;
}

.pdn-prose .wp-block-media-text {
	display: grid;
	grid-template-columns: 50% 1fr;
	gap: 0;
	align-items: center;
}

.pdn-prose .wp-block-media-text.has-media-on-the-right {
	grid-template-columns: 1fr 50%;
}

.pdn-prose .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
	order: 2;
}

.pdn-prose .wp-block-media-text__media {
	margin: 0;
}

.pdn-prose .wp-block-media-text__media img {
	width: 100%;
	height: auto;
}

.pdn-prose .wp-block-media-text__content {
	padding: 0 8%;
	min-width: 0;
}

.pdn-prose .wp-block-media-text__content > * + * {
	margin-top: 1em;
}

.pdn-prose .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface-alt);
}

.pdn-prose .wp-block-file a:not(.wp-block-file__button) {
	font-weight: 600;
}

.pdn-prose .wp-block-file__button {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--brand);
	color: var(--text-invert);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.pdn-prose .wp-block-embed iframe {
	border: 0;
	border-radius: 12px;
}

/* Editor palette (cads_editor_palette()). */
.pdn-prose .has-brand-color { color: #0d884a !important; }
.pdn-prose .has-ink-color { color: #0b1512 !important; }
.pdn-prose .has-grey-color { color: #5e6e66 !important; }
.pdn-prose .has-light-color { color: #f4f7f4 !important; }
.pdn-prose .has-brand-background-color { background-color: #0d884a !important; }
.pdn-prose .has-ink-background-color { background-color: #0b1512 !important; }
.pdn-prose .has-grey-background-color { background-color: #5e6e66 !important; }
.pdn-prose .has-light-background-color { background-color: #f4f7f4 !important; }

.pdn-prose p.has-background,
.pdn-prose .wp-block-column.has-background,
.pdn-prose .wp-block-media-text.has-background {
	padding: 1em 1.25em;
	border-radius: 10px;
}

@media (max-width: 640px) {
	.pdn-prose .wp-block-media-text.is-stacked-on-mobile,
	.pdn-prose .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right {
		grid-template-columns: 1fr;
	}

	.pdn-prose .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
		order: 0;
	}

	.pdn-prose .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		padding: 1em 0 0;
	}
}

/* Documents: search bar */
.pdn-search {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface-alt);
}

.pdn-search__field,
.pdn-search__select {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	color: var(--text-muted);
}

.pdn-search__field {
	flex: 1;
	min-width: 0;
}

.pdn-search__field:focus-within,
.pdn-search__select:focus-within {
	border-color: var(--brand);
}

.pdn-search input,
.pdn-search select {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font: 13.5px var(--font-body);
	color: var(--text);
}

.pdn-search input::placeholder {
	color: var(--text-muted);
}

.pdn-search__select {
	flex: 0 0 210px;
	padding: 0;
}

.pdn-search select {
	padding: 0 40px 0 14px;
	appearance: none;
	cursor: pointer;
}

.pdn-search__select .icon {
	position: absolute;
	right: 14px;
	pointer-events: none;
}

.pdn-search__submit {
	flex-shrink: 0;
	height: 46px;
	padding: 0 26px;
	border: 0;
	border-radius: 8px;
	background: var(--brand);
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.8px;
	color: var(--text-invert);
}

.pdn-search__submit:hover {
	background: var(--brand-dark);
}

.pdn-search--compact {
	flex: 0 1 520px;
}

.pdn-docs__reset {
	margin-top: -16px;
}

/* Documents: rows (.pdn-docgroup__head is still used by search.php) */
.pdn-docgroup__head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	padding-bottom: 15px;
	color: var(--brand);
}

.pdn-docgroup__head::before,
.pdn-docgroup__head::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
}

.pdn-docgroup__head::before {
	right: 0;
	background: var(--border);
}

.pdn-docgroup__head::after {
	width: 140px;
	background: var(--brand);
}

.pdn-docgroup__head h2 {
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.7px;
	line-height: 1;
	color: var(--brand-dark);
	text-transform: uppercase;
}

.pdn-docgroup__count {
	margin-inline-start: auto;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	color: var(--text-muted);
}

.pdn-doclist {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
}

.pdn-doc {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--border);
}

.pdn-doc:last-child {
	border-bottom: 0;
}

.pdn-doc__badge {
	display: flex;
	flex: 0 0 46px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	height: 54px;
	border-radius: 8px;
	background: var(--pdn-red);
	font-family: var(--font-head);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.6px;
	line-height: 1;
	color: var(--text-invert);
}

.pdn-doc__badge--sheet {
	background: var(--brand);
}

.pdn-doc__badge--archive {
	background: var(--brand-dark);
}

.pdn-doc__badge--doc {
	background: var(--ink);
}

.pdn-doc__info {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.pdn-doc__title {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
}

.pdn-doc__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	line-height: 1;
	color: var(--text-muted);
}

.pdn-doc__brand {
	padding: 4px 9px;
	border-radius: 99px;
	background: var(--brand-tint);
	font-size: 11px;
	font-weight: 600;
	color: var(--brand-dark);
}

.pdn-doc__dot {
	color: var(--border-strong);
}

.pdn-doc__download {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.6px;
	line-height: 1;
	color: var(--brand-dark);
	text-decoration: none;
	white-space: nowrap;
}

.pdn-doc__download .icon {
	color: var(--brand);
}

.pdn-doc__download:hover {
	border-color: var(--brand);
	background: var(--brand-tint);
}

/* Documents: help band */
.pdn-help {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 34px 36px;
	border-radius: 12px;
	background: var(--pdn-mint);
}

.pdn-help__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
}

.pdn-help__text h2 {
	font-family: var(--font-head);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.3px;
	line-height: 1.2;
}

.pdn-help__text p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-muted);
}

.pdn-help__phone,
.pdn-help__mail {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 9px;
	padding: 14px 22px;
	border-radius: 8px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.pdn-help__phone {
	background: var(--brand);
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 700;
	color: var(--text-invert);
}

.pdn-help__phone:hover {
	background: var(--brand-dark);
}

.pdn-help__mail {
	border: 1px solid var(--text-invert-muted);
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
}

.pdn-help__mail:hover {
	border-color: var(--brand);
	color: var(--brand-dark);
}

/* News: layout, sidebar */
.pdn-news__layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	align-items: start;
	gap: 36px;
}

.pdn-news__layout--reverse {
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
}

.pdn-news__main {
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
}

.pdn-news-side {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
}

.pdn-news-side__title {
	position: relative;
	padding: 20px 22px 31px;
	font-family: var(--font-head);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 0.4px;
	line-height: 1;
}

.pdn-news-side__title::before,
.pdn-news-side__title::after {
	content: "";
	position: absolute;
	bottom: 18px;
	left: 22px;
	height: 3px;
}

.pdn-news-side__title::before {
	right: 22px;
	background: var(--border);
}

.pdn-news-side__title::after {
	width: 90px;
	background: var(--brand);
}

.pdn-news-side__group summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 20px;
	border-top: 1px solid var(--border);
	background: var(--surface-alt);
	list-style: none;
	cursor: pointer;
}

.pdn-news-side__group summary::-webkit-details-marker {
	display: none;
}

.pdn-news-side__group summary .icon {
	color: var(--pdn-red);
}

.pdn-news-side__group summary a {
	display: inline-block;
	padding-block: 3px; /* 24px touch target */
	flex: 1;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--text);
	text-decoration: none;
	text-transform: uppercase;
}

.pdn-news-side__group summary a:hover,
.pdn-news-side__group summary.is-current a {
	color: var(--brand-dark);
}

.pdn-news-side__group li {
	display: flex;
	gap: 8px;
	padding: 13px 20px 13px 30px;
	border-top: 1px solid var(--border);
	font-size: 13px;
	line-height: 1.45;
}

.pdn-news-side__marker {
	color: var(--brand-dark);
}

.pdn-news-side__chevron {
	margin-top: 3px;
	color: var(--border-strong);
}

.pdn-news-side__group li a {
	flex: 1;
	color: var(--text-muted);
	text-decoration: none;
}

.pdn-news-side__group li a:hover,
.pdn-news-side__group li.is-current a {
	color: var(--brand-dark);
}

.pdn-news-side__group li.is-current a {
	font-weight: 600;
}

/* News: featured article */
.pdn-news-featured {
	display: grid;
	grid-template-columns: 430px minmax(0, 1fr);
	min-height: 306px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
}

.pdn-news-featured__photo {
	display: block;
	overflow: hidden;
	background: var(--surface-alt);
}

.pdn-news-featured__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.pdn-news-featured:hover .pdn-news-featured__photo img {
	transform: scale(1.03);
}

.pdn-news-featured__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 14px;
	padding: 30px 32px;
}

.pdn-news-featured__tag {
	padding: 5px 11px;
	border-radius: 99px;
	background: var(--brand-tint);
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.8px;
	line-height: 1;
	color: var(--brand-dark);
}

.pdn-news-featured__title {
	font-family: var(--font-head);
	font-size: 27px;
	font-weight: 700;
	letter-spacing: -0.4px;
	line-height: 1.25;
}

.pdn-news-featured__title a,
.pdn-news-card__title a {
	color: var(--text);
	text-decoration: none;
}

.pdn-news-featured__title a:hover,
.pdn-news-card__title a:hover {
	color: var(--brand-dark);
}

.pdn-news-featured__excerpt {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-muted);
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

.pdn-news-featured .pdn-news-card__foot {
	align-self: stretch;
}

/* News: cards */
.pdn-news__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
}

.pdn-news__grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdn-news-card {
	display: flex;
	flex-direction: column;
}

.pdn-news-card__photo {
	display: block;
	height: 180px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--surface-alt);
}

.pdn-news-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.pdn-news-card:hover .pdn-news-card__photo img {
	transform: scale(1.04);
}

.pdn-news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 18px 2px 4px;
}

.pdn-news-card__cat {
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.8px;
	line-height: 1.2;
	color: var(--brand-dark);
	text-transform: uppercase;
}

.pdn-news-card__title {
	display: -webkit-box;
	min-height: 68px;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.pdn-news-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.pdn-btn-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--brand);
	font-family: var(--font-head);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.7px;
	line-height: 1;
	color: var(--text-invert);
	text-decoration: none;
	white-space: nowrap;
}

.pdn-btn-more:hover {
	background: var(--brand-dark);
}

.pdn-btn-more--lg {
	gap: 7px;
	padding: 12px 18px;
	font-size: 12.5px;
}

.pdn-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	line-height: 1;
	color: var(--text-muted);
	white-space: nowrap;
}

.pdn-news-featured .pdn-date {
	font-size: 12.5px;
}

/* News: pagination */
.pdn-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding-top: 12px;
}

.pdn-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 6px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--text);
	text-decoration: none;
}

.pdn-pagination a.page-numbers:hover {
	border-color: var(--brand);
	color: var(--brand-dark);
}

.pdn-pagination .page-numbers.current {
	border-color: var(--brand);
	background: var(--brand);
	color: var(--text-invert);
}

.pdn-pagination .page-numbers.dots {
	border-color: transparent;
}

.pdn-pagination .page-numbers.is-disabled {
	color: var(--border-strong);
	cursor: default;
}

/* News: single post */
.pdn-post__meta {
	margin-bottom: 18px;
}

.pdn-post__meta .news-meta__cat {
	text-decoration: none;
}

.pdn-post .page-title__text {
	font-size: 38px;
}

.pdn-post__photo {
	margin: 0 0 32px;
	overflow: hidden;
	border-radius: 12px;
}

.pdn-post__photo img {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
}

.pdn-post .pdn-news-side {
	position: sticky;
	top: 24px;
}

.pdn-post__by::before {
	content: "\00b7";
	margin-right: 6px;
}

/* News: FAQ under the article */
.pdn-faq {
	margin-top: 40px;
	padding-top: 8px;
	border-top: 1px solid var(--border);
}

.pdn-faq__title {
	margin: 24px 0 16px;
	font-family: var(--font-head);
	font-size: 26px;
	line-height: 1.25;
}

.pdn-faq__item {
	border-bottom: 1px solid var(--border);
}

.pdn-faq__item summary {
	position: relative;
	padding: 16px 32px 16px 0;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.pdn-faq__item summary::-webkit-details-marker {
	display: none;
}

.pdn-faq__item summary::after {
	content: "+";
	position: absolute;
	top: 12px;
	right: 4px;
	font-size: 22px;
	font-weight: 400;
	color: var(--brand);
}

.pdn-faq__item[open] summary::after {
	content: "\2212";
}

.pdn-faq__item p {
	margin: 0 0 16px;
	color: var(--text-muted);
}

/* News: related products (cards come from products.css) */
.pdn-post__products {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding-top: 12px;
}

.pdn-post__products .pgrid,
.pdn-post__products .pchips {
	width: 100%;
	margin-top: 0;
}

.pdn-post__related {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding-top: 12px;
}

.pdn-post__related .pdn-news__grid {
	width: 100%;
}

/* Responsive */
@media (max-width: 1200px) {
	.pdn-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pdn-news-featured {
		grid-template-columns: 340px minmax(0, 1fr);
	}

	.pdn-news__grid--4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1100px) {
	.pdn-news__layout,
	.pdn-news__layout--reverse,
	.pdn-project__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.pdn-news__layout > .pdn-news-side {
		order: 2;
	}

	.pdn-post .pdn-news-side,
	.pdn-facts {
		position: static;
	}

	.pdn-search {
		flex-wrap: wrap;
	}

	.pdn-search__field {
		flex-basis: 100%;
	}

	.pdn-search__select {
		flex: 1 1 200px;
	}
}

@media (max-width: 900px) {
	.pdn-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.pdn-head .page-title,
	.pdn-projects .pdn-head .page-title {
		width: auto;
	}

	.pdn-grid,
	.pdn-news__grid,
	.pdn-news__grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pdn-news-featured {
		grid-template-columns: minmax(0, 1fr);
	}

	.pdn-news-featured__photo {
		height: 240px;
	}

	.pdn-filter {
		flex-direction: column;
		align-items: flex-start;
	}

	.pdn-filter__note {
		margin-inline-start: 0;
	}

	.pdn-help {
		flex-wrap: wrap;
		padding: 28px;
	}

	.pdn-help__text {
		flex-basis: 100%;
	}
}

@media (max-width: 640px) {
	.pdn .pdn__body {
		gap: 36px;
		padding-top: 32px;
		padding-bottom: 56px;
	}

	.pdn-stats {
		gap: 20px;
	}

	.pdn-stats strong {
		font-size: 24px;
	}

	.pdn-grid,
	.pdn-news__grid,
	.pdn-news__grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.pdn-filter__chips {
		flex-wrap: nowrap;
		max-width: 100%;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.pdn-card__photo {
		height: 200px;
	}

	.pdn-doc {
		flex-wrap: wrap;
		gap: 12px 14px;
		padding: 16px;
	}

	.pdn-doc__info {
		flex-basis: calc(100% - 60px);
	}

	.pdn-doc__download {
		margin-inline-start: 60px;
	}

	.pdn-docgroup__head h2 {
		font-size: 14px;
	}

	.pdn-news-featured__body {
		padding: 22px;
	}

	.pdn-news-featured__title {
		font-size: 22px;
	}

	.pdn-news-card__title {
		min-height: 0;
	}

	.pdn-post .page-title__text {
		font-size: 28px;
	}

	.pdn-help__phone,
	.pdn-help__mail {
		flex: 1 1 100%;
		justify-content: center;
	}
}

/* Search results: product tiles (products are queried separately, see search.php) */
.pdn-search-products {
	margin-bottom: 40px;
}

.pdn-search-results__head {
	margin-bottom: 20px;
}

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

.pdn-ptile a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pdn-ptile a:hover {
	border-color: var(--brand);
	box-shadow: 0 12px 28px rgba(11, 21, 18, 0.08);
	transform: translateY(-2px);
}

.pdn-ptile__img {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
}

.pdn-ptile__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pdn-ptile__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.pdn-ptile__meta {
	font-size: 12px;
	color: var(--text-muted);
}

.pdn-search-products__all {
	margin-top: 16px;
}

@media (max-width: 1100px) {
	.pdn-ptiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.pdn-ptiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}
