/**
 * Front-end styles for the single blog post template.
 * SAVE AS: inc/news-insights/assets/css/single-post.css
 *
 * Duplicates the .dhg-project-card* rules from news-insights.css (and
 * originally our-work.css) for the Related Stories grid, same reason
 * as before: this stylesheet is enqueued separately from those, only
 * on single posts, so the shared class names need their own copy of
 * the rules here or the Related Stories cards render unstyled.
 */

:root {
	--dhg-green: #2A9E61;
	--dhg-dark: #2F2F2F;
	--dhg-black: #121D28;
}

.container {
	width: 100%;
	max-width: 1528px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.dhg-single-hero {
	padding: 100px 0;
	background-image: url(../../../../assets/images/dg.webp);
	background-repeat: no-repeat;
	background-size: 101% 100%;
	background-position: center;
}

.dhg-single-hero__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.dhg-single-hero__title {
	font-size: 40px !important;
    line-height: 120% !important;
	margin-bottom: 30px;
	color: var(--dhg-dark);
}

.dhg-single-hero__divider {
	width: 200px;
	height: 2px;
	background-color: var(--dhg-green);
	margin-bottom: 30px;
}

.dhg-single-hero__byline {
	font-size: 18px;
	color: var(--dhg-black);
	margin-bottom: 24px;
}

.dhg-single-hero__intro {
	font-size: 18px;
	line-height: 1.6;
	color: var(--dhg-dark);
	margin-bottom: 30px;
}

.dhg-single-hero__anchors {
	margin: 0;
	padding: 0 0 0 20px;
}

.dhg-single-hero__anchors li {
	margin-bottom: 8px;
}

.dhg-single-hero__anchors a {
	color: var(--dhg-green) !important;
	font-weight: 600;
	text-decoration: none;
}

.dhg-single-hero__anchors li::marker {
  color: var(--dhg-green);
}

.dhg-single-hero__anchors a:hover {
	text-decoration: underline;
}

.dhg-single-hero__image img {
	width: 100%;
	height: auto;
	display: block;
}

/* ── Sections (repeatable/reorderable blocks) ────────────────────────
   scroll-margin-top so anchor jumps (native or smooth-scrolled) clear
   a fixed header, applied to any section that has an id set. ── */

.dhg-section[id] {
	scroll-margin-top: 100px;
}

.dhg-section {
	padding: 100px 0;
}

.dhg-section__title {
	font-size: 28px !important;
	margin-bottom: 30px;
}

.dhg-section__content {
	font-size: 18px;
	line-height: 1.6;
}

.dhg-section__content p:last-child {
	margin-bottom: 0;
}

/* Section: Image + Content Block */
.dhg-section--image-content .dhg-section__logo {
	display: block;
	margin-bottom: 30px;
	max-width: 160px;
	height: auto;
}

.dhg-section--image-content .dhg-section__content {
	font-size: 18px
}

/* Section: Text + Button Block */

.dhg-section--text-button {
	background-color: #fff;
}

.dhg-section__button {
    display: inline-block;
	padding: 16px 28px;
    border-radius: 4px;
    background-color: var(--dhg-green);
    color: #fff !important;
    border: none;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 0.5px;
    margin-top: 50px;
}

.dhg-section__button:hover {
	background-color: var(--dhg-dark);
}

/* ── Related Stories ──────────────────────────────────────────────── */

.dhg-related-stories {
	padding-bottom: 100px;
}

.dhg-related-stories__title {
	font-size: 28px;
	margin: 0 0 32px;
}

.dhg-related-stories__items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 20px;
}

/* Project card -- duplicated, see note at top of file. */

.dhg-project-card {
	display: flex;
	flex-direction: column;
}

.dhg-project-card__image {
	display: block;
	overflow: hidden;
	margin-bottom: 16px;
	background-color: #eee;
}

.dhg-project-card__image img {
	width: 100%;
	height: 528px;
	object-fit: cover;
	display: block;
}

.dhg-project-card__sector {
	display: block;
	font-size: 16px;
	color: var(--dhg-dark);
	margin-bottom: 8px;
}

.dhg-project-card__title {
	margin: 0 0 8px;
	font-size: 26px !important;
	line-height: 120% !important;
}

.dhg-project-card__title a {
	color: var(--dhg-green) !important;
	text-decoration: none;
}

.dhg-project-card-content {
	padding-left: 20px;
	border-left: 2px solid var(--dhg-green);
	margin-bottom: 20px;
	flex-grow: 1;
}

.dhg-project-card__excerpt {
	font-size: 16px;
	line-height: 1.5;
	color: var(--dhg-dark);
}

.dhg-project-card__excerpt p {
	margin: 0;
}

.dhg-project-card__link {
	font-size: 16px;
	font-weight: 700;
	color: var(--dhg-green) !important;
	text-decoration: none;
	margin-top: auto;
	border-top: 2px solid var(--dhg-green);
	padding: 20px 0 0 15px;
	display: flex;
	gap: 12px;
}

.dhg-project-card__arrow {
	transition: all ease-in-out 0.3s;
	transform: rotate(0);
}

.dhg-project-card__arrow svg {
	width: 15px;
	height: 15px;
}

.dhg-project-card__link:hover .dhg-project-card__arrow {
	transform: rotate(45deg);
}

@media (max-width: 1700px) {
	.dhg-single-hero {
		background-size: cover;
	}
}

@media (max-width: 1200px) {
	.dhg-single-hero__row {
		grid-template-columns: 1fr;
	}

	.dhg-single-hero {
    	padding: 50px 0;
	}
}

@media (max-width: 1024px) {
	.dhg-project-card__image img {
		height: 476px;
	}

	.dhg-related-stories__items {
		grid-template-columns: repeat(2, 1fr);
	}

	.dhg-section {
		padding: 80px 0;
	}
}

@media (max-width: 767px) {
	.dhg-single-hero {
        padding: 30px 0;
    }

	.dhg-single-hero__row {
		gap: 40px;
	}

	.dhg-single-hero__image img {
		height: 360px;
    	object-fit: cover;
	}

    .dhg-related-stories__items {
		grid-template-columns: 1fr;
	}

	.dhg-project-card__image img {
		height: 461px;
	}

	.dhg-section {
		padding: 30px 0;
	}

	.dhg-related-stories {
		padding-bottom: 50px;
		padding-top: 30px;
	}
}
