/**
 * Custom styles for the News & Insights page.
 * SAVE AS: inc/news-insights/assets/css/news-insights.css
 *
 * Enqueued only on that page -- see dhg_enqueue_news_insights_assets()
 * in inc/news-insights/templates-news-insights.php.
 *
 * NOTE: this duplicates the .dhg-project-card* rules from
 * inc/our-work/assets/css/our-work.css rather than sharing one file,
 * since the two modules are enqueued independently on their own
 * pages -- reusing the class names without duplicating the CSS here
 * would mean the cards render completely unstyled on this page. If
 * that duplication becomes annoying to keep in sync, the fix is
 * pulling shared card styles into one common stylesheet both modules
 * enqueue -- flagging that as a possible future cleanup, not doing it
 * now since neither module currently has a shared "inc/shared/" home.
 */

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

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

/* Hero banner (no sector tabs on this page -- simpler than Our Work's) */
.dhg-hero-banner {
	position: relative;
	background-color: var(--dhg-dark);
	background-size: cover;
	background-position: center;
	color: var(--dhg-text-light);
	padding: 50px 0;
	min-height: 582px;
	display: flex;
}

.dhg-hero-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	pointer-events: none;
}

.dhg-hero-banner .container {
	display: flex;
	align-items: center;
}

.dhg-hero-banner__inner {
	position: relative;
	width: 100%;
	max-width: 661px;
}

.dhg-hero-banner__inner h1 {
	margin-bottom: 30px;
	position: relative;
	padding-bottom: 25px;
	color: #fff;
}

.dhg-hero-banner__inner h1:after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 200px;
	height: 2px;
	background-color: var(--dhg-green);
}

.dhg-hero-banner__inner h1 span {
	color: var(--dhg-green);
}

.dhg-hero-banner__content {
	font-size: 18px;
	line-height: 1.6;
	color: #fff;
}

/* Featured story -- distinct 2-column design, not the same as Our
   Work's full-bleed dark-photo banner. */
.dhg-news-featured {
	background-color: var(--dhg-green);
	padding: 100px 0;
	margin-bottom: 30px;
}

.dhg-news-featured__label {
	display: block;
	position: relative;
	color: var(--dhg-black);
	font-size: 28px;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.dhg-news-featured__label::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 200px;
	height: 2px;
	background-color: #fff;
}

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

.dhg-news-featured__image {
	display: block;
	overflow: hidden;
}

.dhg-news-featured__image img {
	width: 100%;
	height: 469px;
	object-fit: cover;
	display: block;
}

.dhg-news-featured__title {
	color: var(--dhg-black);
	margin: 0 0 30px;
	position: relative;
	padding-bottom: 30px;
}

.dhg-news-featured__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 200px;
	height: 2px;
	background-color: #fff;
}

.dhg-news-featured__excerpt {
	font-size: 18px;
	line-height: 140%;
	color: var(--dhg-black);
	margin-bottom: 30px;
}

.dhg-news-featured__button {
	display: inline-block;
    padding: 9px 22px;
    border: 1px solid #fff;
    color: #fff !important;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    background-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dhg-news-featured__button:hover {
	background-color: #fff;
	color: var(--dhg-green) !important;
}

/* Alternating grid: flat container, CSS controls the 3-then-2 pattern
   via nth-child span widths on a 6-column base -- new cards (e.g. from
   "Load More") just get appended and the pattern continues on its own,
   no row-wrapper bookkeeping needed. Cycles every 5 cards (3 narrow +
   2 wide). */
.dhg-news-grid__items {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 50px 20px;
}

.dhg-news-grid__items > .dhg-project-card:nth-child(5n+1),
.dhg-news-grid__items > .dhg-project-card:nth-child(5n+2),
.dhg-news-grid__items > .dhg-project-card:nth-child(5n+3) {
	grid-column: span 2;
}

.dhg-news-grid__items > .dhg-project-card:nth-child(5n+4),
.dhg-news-grid__items > .dhg-project-card:nth-child(5n) {
	grid-column: span 3;
}

/* Project card -- duplicated from our-work.css, see note at top of file. */
.dhg-project-card {
	display: flex;
	flex-direction: column;
}

.dhg-project-card__image {
	display: block;
	/* aspect-ratio: 4 / 4; */
	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);
}

/* Pagination / Load More */
.dhg-pagination {
	margin-top: 60px;
	text-align: center;
}

.dhg-pagination .dhg-news-load-more__button {
	padding: 16px 14px;
    background-color: var(--dhg-green);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease;
    letter-spacing: 0.5px;
}

.dhg-pagination .dhg-news-load-more__button:hover {
	background-color: var(--dhg-dark);
}

/* CTA banner -- logo/title/WYSIWYG content only, no link buttons (a
   Gravity Forms embed goes in the content via shortcode instead). */
.dhg-cta-banner--news {
	background-color: var(--dhg-green);
	padding: 80px 0;
	margin-top: 70px;
}

.dhg-cta-banner--news .dhg-cta-banner__content__inner {
	color: #fff;
}

.dhg-cta-banner--news .dhg-cta-banner__logo {
	height: 49px;
	width: auto;
	margin-bottom: 20px;
	object-fit: contain;
	object-position: left;
}

.dhg-cta-banner--news h2 {
	font-size: 48px;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 700;
}

.dhg-cta-banner--news h2 span {
	color: var(--dhg-dark);
}

.dhg-cta-banner__text {
	font-size: 18px;
	line-height: 1.6;
	color: #fff;
}

.subscribe-form_wrapper .gform_heading {
	display: none;
}

body .gform_wrapper.gravity-theme.subscribe-form_wrapper input[type="email"] {
	border: none;
    background: #717171;
    border-radius: 5px;
    padding: 12px 15px;
    min-height: unset !important;
    line-height: 120% !important;
}

.subscribe-form {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	width: 100%;
    max-width: 844px;
	margin-top: 20px;
}

.subscribe-form .gform-body {
	width: 100%;
}

.subscribe-form_wrapper .gform-footer {
	margin: 0 !important;
    padding: 0 !important;
	margin: 0 !important;
    padding: 0 !important;
    left: -10px;
    position: relative;
}

.subscribe-form_wrapper .gform-footer .gform_button {
	margin-bottom: 0 !important;
    height: 47px;
    border: none !important;
    padding: 5px 10px !important;
    min-width: 115px !important;
    background-color: var(--dhg-dark);
    text-transform: none;
    font-size: 18px;
}

.subscribe-form_wrapper input::-webkit-input-placeholder { 
  color: #fff; 
  opacity: 0.35;
}
.subscribe-form_wrapper input::-moz-placeholder { color: var(--e-global-color-text); opacity: 0.35; }
.subscribe-form_wrapper input:-ms-input-placeholder{ color: var(--e-global-color-text); }



@media (max-width: 1024px) {
	.dhg-hero-banner {
		min-height: 500px;
	}

	.dhg-hero-banner__inner {
		max-width: 630px;
	}

	.dhg-news-featured {
		padding: 70px 0;
	}

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

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

	.dhg-news-grid__items > .dhg-project-card:nth-child(5n+1),
	.dhg-news-grid__items > .dhg-project-card:nth-child(5n+2),
	.dhg-news-grid__items > .dhg-project-card:nth-child(5n+3),
	.dhg-news-grid__items > .dhg-project-card:nth-child(5n+4),
	.dhg-news-grid__items > .dhg-project-card:nth-child(5n) {
		grid-column: span 1;
	}

	.dhg-news-featured__row {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

@media (max-width: 767px) {
	.dhg-hero-banner {
        min-height: 450px;
    }

	.dhg-news-featured {
        padding: 30px 0;
    }

	.dhg-hero-banner__inner h1 span {
		display: block;
	}

	.dhg-news-grid__items {
		grid-template-columns: 1fr;
	}

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

	.dhg-cta-banner--news {
		padding: 30px 0;
	}
}