/*
Theme Name: Democracy In Action Now
Theme URI: https://daicnow.org
Author: Democracy in Action Now
Author URI: https://daicnow.org
Description: A civic-advocacy theme built for Elementor and the ECC Element Ultra add-on. Ships a navy-and-red brand system, a full-width sticky header with a Join the Movement call to action, four-column pillar footer, and a library of helper classes you can drop into any Elementor widget.
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: democracy-in-action
Tags: elementor, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, full-width-template, block-styles, translation-ready
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
	--dia-navy: #0f2a5f;
	--dia-navy-dark: #0a1e47;
	--dia-navy-deep: #071634;
	--dia-navy-tint: #1a3a77;
	--dia-red: #c8102e;
	--dia-red-dark: #9e0c24;
	--dia-ink: #1b2434;
	--dia-body: #465064;
	--dia-muted: #6b7688;
	--dia-line: #e2e7f0;
	--dia-light: #f4f6fa;
	--dia-white: #ffffff;

	--dia-font-display: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--dia-font-body: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;

	--dia-width: 1240px;
	--dia-width-narrow: 860px;
	--dia-gutter: 24px;
	--dia-radius: 4px;
	--dia-shadow: 0 12px 30px rgba(10, 30, 71, .10);
	--dia-shadow-lg: 0 18px 45px rgba(10, 30, 71, .16);
	--dia-header-h: 84px;
	--dia-transition: .22s ease;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--dia-font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--dia-body);
	background: var(--dia-white);
	/* `clip` prevents sideways scroll WITHOUT disabling position: sticky
	   on the header the way `hidden` does. */
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--dia-font-display);
	color: var(--dia-navy);
	font-weight: 700;
	line-height: 1.18;
	margin: 0 0 .6em;
	letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--dia-navy); text-decoration: none; transition: color var(--dia-transition); }
a:hover, a:focus { color: var(--dia-red); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.25em; }

blockquote {
	margin: 1.75em 0;
	padding: .35em 0 .35em 1.5em;
	border-left: 4px solid var(--dia-red);
	font-size: 1.1rem;
	color: var(--dia-ink);
}

hr { border: 0; border-top: 1px solid var(--dia-line); margin: 2.5em 0; }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
pre { background: var(--dia-light); padding: 1.25em; overflow: auto; border-radius: var(--dia-radius); }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { border: 1px solid var(--dia-line); padding: .7em .9em; text-align: left; }
th { background: var(--dia-light); color: var(--dia-navy); font-family: var(--dia-font-display); }

:focus-visible { outline: 3px solid var(--dia-red); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 9999;
	width: auto; height: auto; clip: auto; clip-path: none;
	background: var(--dia-red); color: #fff; padding: 12px 20px; border-radius: var(--dia-radius);
}

/* =========================================================
   3. Layout helpers
   ========================================================= */
.dia-container {
	width: 100%;
	max-width: var(--dia-width);
	margin: 0 auto;
	padding: 0 var(--dia-gutter);
}
.dia-container--narrow { max-width: var(--dia-width-narrow); }

.dia-main { padding: 60px 0 80px; }
.dia-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
body.has-sidebar .dia-layout { grid-template-columns: minmax(0, 1fr) 320px; }

.dia-section { padding: 80px 0; }
.dia-section--tight { padding: 48px 0; }
.dia-section--navy { background: var(--dia-navy); color: rgba(255, 255, 255, .82); }
.dia-section--navy h1, .dia-section--navy h2, .dia-section--navy h3, .dia-section--navy h4 { color: #fff; }
.dia-section--light { background: var(--dia-light); }

/* =========================================================
   4. Buttons
   ========================================================= */
.dia-btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--dia-font-display);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	line-height: 1;
	padding: 15px 26px;
	border: 2px solid var(--dia-navy);
	border-radius: var(--dia-radius);
	background: var(--dia-navy);
	color: #fff;
	cursor: pointer;
	transition: background var(--dia-transition), color var(--dia-transition), border-color var(--dia-transition), transform var(--dia-transition);
}
.dia-btn:hover, .dia-btn:focus,
input[type="submit"]:hover, button[type="submit"]:hover {
	background: var(--dia-navy-dark);
	border-color: var(--dia-navy-dark);
	color: #fff;
	transform: translateY(-1px);
}

.dia-btn--red { background: var(--dia-red); border-color: var(--dia-red); }
.dia-btn--red:hover, .dia-btn--red:focus { background: var(--dia-red-dark); border-color: var(--dia-red-dark); }

.dia-btn--outline { background: transparent; color: var(--dia-navy); border-color: var(--dia-navy); }
.dia-btn--outline:hover { background: var(--dia-navy); color: #fff; }

.dia-btn--white { background: #fff; color: var(--dia-navy); border-color: #fff; }
.dia-btn--white:hover { background: transparent; color: #fff; border-color: #fff; }

.dia-btn--ghost-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.dia-btn--ghost-white:hover { background: #fff; color: var(--dia-navy); border-color: #fff; }

.dia-btn--sm { padding: 11px 18px; font-size: .72rem; }
.dia-btn--lg { padding: 18px 34px; font-size: .85rem; }

/* Text link with arrow — matches the "Learn More →" pattern */
.dia-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--dia-font-display);
	font-weight: 700;
	font-size: .85rem;
	color: var(--dia-navy);
}
.dia-link-arrow::after { content: "→"; transition: transform var(--dia-transition); }
.dia-link-arrow:hover::after { transform: translateX(4px); }
.dia-link-arrow--red { color: var(--dia-red); }
.dia-link-arrow--white { color: #fff; }

/* =========================================================
   5. Forms
   ========================================================= */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="password"], input[type="search"], input[type="number"], select, textarea {
	width: 100%;
	padding: 13px 15px;
	font-family: var(--dia-font-body);
	font-size: .95rem;
	color: var(--dia-ink);
	background: #fff;
	border: 1px solid var(--dia-line);
	border-radius: var(--dia-radius);
	transition: border-color var(--dia-transition), box-shadow var(--dia-transition);
}
input:focus, select:focus, textarea:focus {
	border-color: var(--dia-navy);
	box-shadow: 0 0 0 3px rgba(15, 42, 95, .12);
	outline: none;
}
label { display: block; font-family: var(--dia-font-display); font-size: .8rem; font-weight: 600; color: var(--dia-navy); margin-bottom: 6px; }

/* =========================================================
   6. Header
   ========================================================= */
.dia-header {
	position: relative;
	z-index: 999;
	background: #fff;
	border-bottom: 1px solid var(--dia-line);
	isolation: isolate;
}
.dia-header--sticky { position: sticky; top: 0; }
.admin-bar .dia-header--sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .dia-header--sticky { top: 46px; } }

.dia-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--dia-header-h);
	padding-top: 10px;
	padding-bottom: 10px;
}

.dia-header__brand { flex: 0 0 auto; margin-right: auto; }
.dia-header__brand img { max-height: 56px; width: auto; }

/* Wordmark fallback when no logo is uploaded */
.dia-wordmark { display: inline-block; line-height: 1; }
.dia-wordmark__name {
	display: block;
	font-family: var(--dia-font-display);
	font-weight: 800;
	font-size: 1.55rem;
	letter-spacing: -.02em;
	color: var(--dia-navy);
	text-transform: uppercase;
}
.dia-wordmark__rule { display: block; height: 4px; background: var(--dia-red); margin: 5px 0 4px; }
.dia-wordmark__tag {
	display: block;
	font-family: var(--dia-font-display);
	font-weight: 700;
	font-size: .62rem;
	letter-spacing: .34em;
	color: var(--dia-navy);
	text-transform: uppercase;
}

/* Primary navigation */
.dia-nav ul { list-style: none; margin: 0; padding: 0; }
.dia-nav > ul { display: flex; align-items: center; gap: 30px; }
.dia-nav > ul > li { position: relative; }
.dia-nav a {
	display: inline-block;
	font-family: var(--dia-font-display);
	font-size: .88rem;
	font-weight: 600;
	color: var(--dia-ink);
	padding: 8px 0;
	position: relative;
}
.dia-nav > ul > li > a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--dia-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dia-transition);
}
.dia-nav > ul > li:hover > a::after,
.dia-nav > ul > li.current-menu-item > a::after,
.dia-nav > ul > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.dia-nav > ul > li.current-menu-item > a { color: var(--dia-navy); }

.dia-nav .sub-menu {
	position: absolute;
	top: 100%; left: -18px;
	min-width: 232px;
	background: #fff;
	border-top: 3px solid var(--dia-red);
	box-shadow: var(--dia-shadow);
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all var(--dia-transition);
}
.dia-nav li:hover > .sub-menu,
.dia-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dia-nav .sub-menu a { display: block; padding: 10px 18px; font-weight: 500; font-size: .85rem; }
.dia-nav .sub-menu a:hover { background: var(--dia-light); color: var(--dia-red); }
.dia-nav .sub-menu .sub-menu { top: 0; left: 100%; }

.dia-header__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

/* The in-menu CTA is for the mobile drawer only. */
.dia-header .dia-nav .dia-nav-mobile-cta { display: none !important; }

.dia-search-toggle {
	width: 38px; height: 38px;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 0; padding: 0; cursor: pointer;
	color: var(--dia-navy); border-radius: 50%;
	transition: background var(--dia-transition), color var(--dia-transition);
}
.dia-search-toggle:hover { background: var(--dia-light); color: var(--dia-red); }
.dia-search-toggle svg { width: 19px; height: 19px; }

.dia-search-panel {
	display: none;
	border-top: 1px solid var(--dia-line);
	background: var(--dia-light);
	padding: 22px 0;
}
.dia-search-panel.is-open { display: block; }
.dia-search-panel form { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }

/* Mobile toggle */
.dia-nav-toggle {
	display: none;
	width: 44px; height: 44px;
	background: transparent; border: 0; padding: 0; cursor: pointer;
	color: var(--dia-navy);
}
.dia-nav-toggle span {
	display: block; width: 24px; height: 2px; margin: 5px auto;
	background: currentColor; transition: transform var(--dia-transition), opacity var(--dia-transition);
}
.dia-nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dia-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.dia-nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.dia-submenu-toggle {
	display: none;
	width: 34px; height: 34px;
	background: transparent; border: 0; cursor: pointer; color: var(--dia-navy);
	font-size: 1rem; line-height: 1;
}

@media (max-width: 1024px) {
	.dia-header__actions .dia-btn { display: none; }
}

@media (max-width: 991px) {
	.dia-nav-toggle { display: block; order: 3; }
	.dia-nav {
		display: none;
		order: 4;
		width: 100%;
		border-top: 1px solid var(--dia-line);
		padding: 8px 0 18px;
	}
	.dia-nav.is-open { display: block; }
	.dia-header__inner { flex-wrap: wrap; gap: 8px; }
	.dia-nav > ul { display: block; }
	.dia-nav li { position: relative; border-bottom: 1px solid var(--dia-line); }
	.dia-nav li:last-child { border-bottom: 0; }
	.dia-nav a { display: block; padding: 13px 0; }
	.dia-nav > ul > li > a::after { display: none; }
	.dia-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border-top: 0; display: none; padding: 0 0 8px 16px;
	}
	.dia-nav .sub-menu.is-open { display: block; }
	.dia-submenu-toggle { display: block; position: absolute; top: 6px; right: 0; }
	.dia-header__actions { order: 2; }
	.dia-header .dia-nav .dia-nav-mobile-cta { display: inline-flex !important; margin-top: 16px; }
}

/* =========================================================
   7. Page header (non-Elementor pages)
   ========================================================= */
.dia-page-header {
	background: var(--dia-light);
	border-bottom: 1px solid var(--dia-line);
	padding: 56px 0;
}
.dia-page-header--navy {
	background: var(--dia-navy);
	border-bottom: 0;
	background-image: linear-gradient(120deg, var(--dia-navy-deep) 0%, var(--dia-navy) 55%, var(--dia-navy-tint) 100%);
}
.dia-page-header--navy .dia-page-header__title,
.dia-page-header--navy .dia-breadcrumb,
.dia-page-header--navy .dia-breadcrumb a { color: #fff; }
.dia-page-header__title { margin: 0; }
.dia-page-header__intro { margin-top: 12px; max-width: 680px; }
.dia-breadcrumb { font-size: .8rem; letter-spacing: .04em; color: var(--dia-muted); margin-bottom: 10px; }

/* =========================================================
   8. Content / posts
   ========================================================= */
.dia-entry + .dia-entry { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--dia-line); }
.dia-entry__thumb { margin-bottom: 22px; }
.dia-entry__thumb img { width: 100%; border-radius: var(--dia-radius); }
.dia-entry__title { margin-bottom: .35em; }
.dia-entry__meta {
	font-family: var(--dia-font-display);
	font-size: .78rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--dia-muted);
	margin-bottom: 16px;
}
.dia-entry__meta a { color: var(--dia-red); }

.dia-pagination { margin-top: 56px; }
.dia-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px; margin-right: 6px;
	border: 1px solid var(--dia-line); border-radius: var(--dia-radius);
	font-family: var(--dia-font-display); font-weight: 600; font-size: .85rem;
}
.dia-pagination .page-numbers.current,
.dia-pagination .page-numbers:hover { background: var(--dia-navy); border-color: var(--dia-navy); color: #fff; }

.dia-post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--dia-line); font-family: var(--dia-font-display); font-weight: 600; font-size: .9rem; }

/* Sidebar */
.dia-sidebar .widget { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--dia-line); }
.dia-sidebar .widget:last-child { border-bottom: 0; }
.dia-sidebar .widget-title {
	font-size: .95rem; text-transform: uppercase; letter-spacing: .08em;
	color: var(--dia-navy); margin-bottom: 16px; position: relative; padding-bottom: 12px;
}
.dia-sidebar .widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--dia-red); }
.dia-sidebar ul { list-style: none; padding: 0; margin: 0; }
.dia-sidebar li { padding: 8px 0; border-bottom: 1px dotted var(--dia-line); }
.dia-sidebar li:last-child { border-bottom: 0; }

/* =========================================================
   9. Footer
   ========================================================= */
.dia-footer {
	background: var(--dia-navy-dark);
	color: rgba(255, 255, 255, .74);
	font-size: .88rem;
}
.dia-footer a { color: rgba(255, 255, 255, .74); }
.dia-footer a:hover { color: #fff; }

.dia-footer__top { padding: 58px 0 42px; }
.dia-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1fr;
	gap: 36px;
}
.dia-footer__brand img { max-height: 54px; width: auto; margin-bottom: 16px; }
.dia-footer__logo { max-height: 62px; width: auto; }
.dia-footer__brand .dia-wordmark__name,
.dia-footer__brand .dia-wordmark__tag { color: #fff; }
.dia-footer__tagline { max-width: 260px; line-height: 1.65; margin-top: 14px; }

.dia-footer__heading {
	font-family: var(--dia-font-display);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 16px;
}
.dia-footer ul { list-style: none; margin: 0; padding: 0; }
.dia-footer ul li { margin-bottom: 9px; }
.dia-footer .sub-menu { display: none; }

.dia-social { display: flex; flex-wrap: wrap; gap: 10px; }
.dia-social a {
	width: 34px; height: 34px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	transition: background var(--dia-transition), transform var(--dia-transition);
}
.dia-social a:hover { background: var(--dia-red); transform: translateY(-2px); }
.dia-social svg { width: 15px; height: 15px; fill: currentColor; }

.dia-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .14);
	padding: 18px 0;
	font-size: .78rem;
}
.dia-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.dia-footer__legal { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }

/* Red partner band that sits above the footer */
.dia-partner-band {
	background: var(--dia-red);
	color: #fff;
	padding: 34px 0;
}
.dia-partner-band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.dia-partner-band__text { display: flex; align-items: center; gap: 22px; }
.dia-partner-band h2, .dia-partner-band h3 { color: #fff; margin: 0 0 6px; font-size: 1.4rem; }
.dia-partner-band p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .92); }
.dia-partner-band .dia-icon-ring { border-color: rgba(255, 255, 255, .7); color: #fff; flex: 0 0 auto; }

@media (max-width: 1100px) {
	.dia-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
	.dia-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.dia-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   10. Elementor helper classes
   Add these in any widget's Advanced → CSS Classes field.
   ========================================================= */

/* Eyebrow label */
.dia-eyebrow {
	display: inline-block;
	font-family: var(--dia-font-display);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--dia-red);
	margin-bottom: 10px;
}
.dia-eyebrow--navy { color: var(--dia-navy); }
.dia-eyebrow--white { color: rgba(255, 255, 255, .75); }

/* Stacked hero headline: every other line picks up the red accent */
.dia-headline-stack { line-height: 1.12; }
.dia-headline-stack .accent-red { color: var(--dia-red); display: block; }
.dia-headline-stack .accent-navy { color: var(--dia-navy); display: block; }

/* Rule under a heading */
.dia-rule-red::after {
	content: "";
	display: block;
	width: 68px;
	height: 4px;
	background: var(--dia-red);
	margin-top: 18px;
}
.dia-rule-red--center::after { margin-left: auto; margin-right: auto; }

/* Diagonal brand stripes — drop on any section or image container */
.dia-diagonal { position: relative; overflow: hidden; }
.dia-diagonal::before,
.dia-diagonal::after {
	content: "";
	position: absolute;
	bottom: -30%;
	width: 46%;
	height: 170%;
	transform: skewX(-18deg);
	pointer-events: none;
	z-index: 1;
}
.dia-diagonal::before { left: -14%; background: linear-gradient(200deg, var(--dia-navy) 0%, var(--dia-navy-tint) 100%); opacity: .95; }
.dia-diagonal::after { left: 8%; width: 16%; background: var(--dia-red); opacity: .95; }
.dia-diagonal--right::before { left: auto; right: -14%; }
.dia-diagonal--right::after { left: auto; right: 8%; }
.dia-diagonal > * { position: relative; z-index: 2; }

/* Navy gradient background */
.dia-bg-navy-gradient {
	background-image: linear-gradient(115deg, var(--dia-navy-deep) 0%, var(--dia-navy) 50%, var(--dia-navy-tint) 100%);
	color: rgba(255, 255, 255, .85);
}
.dia-bg-navy-gradient :is(h1, h2, h3, h4, h5, h6) { color: #fff; }

/* Pillar strip — the four-across navy band under the hero */
.dia-pillar-strip { background: var(--dia-navy); color: rgba(255, 255, 255, .8); }
.dia-pillar-strip .dia-pillar { padding: 38px 30px; border-right: 1px solid rgba(255, 255, 255, .16); text-align: center; }
.dia-pillar-strip .dia-pillar:last-child { border-right: 0; }
.dia-pillar__icon { color: #fff; margin-bottom: 14px; }
.dia-pillar__icon svg { width: 42px; height: 42px; margin: 0 auto; }
.dia-pillar__title {
	color: #fff;
	font-size: .95rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 10px;
}
.dia-pillar__text { font-size: .85rem; line-height: 1.6; }

/* Pillar card — white card with a red top edge */
.dia-card {
	background: #fff;
	border: 1px solid var(--dia-line);
	border-radius: var(--dia-radius);
	padding: 30px 26px;
	height: 100%;
	transition: transform var(--dia-transition), box-shadow var(--dia-transition);
}
.dia-card:hover { transform: translateY(-4px); box-shadow: var(--dia-shadow-lg); }
.dia-card--pillar { border-top: 5px solid var(--dia-red); text-align: center; }
.dia-card--flat:hover { transform: none; box-shadow: none; }
.dia-card__icon { color: var(--dia-red); margin-bottom: 16px; }
.dia-card__icon svg { width: 40px; height: 40px; margin: 0 auto; }
.dia-card__title { font-size: 1.15rem; margin-bottom: 10px; }
.dia-card__text { font-size: .92rem; }

/* Icon in a circle / ring */
.dia-icon-ring {
	width: 62px; height: 62px;
	border: 2px solid var(--dia-red);
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--dia-red);
}
.dia-icon-ring svg { width: 28px; height: 28px; }
.dia-icon-ring--navy { border-color: var(--dia-navy); color: var(--dia-navy); }
.dia-icon-ring--filled { background: var(--dia-navy); border-color: var(--dia-navy); color: #fff; }

/* Icon + text row, like Our Mission / Our Vision / Our Story */
.dia-media-row { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 30px; }
.dia-media-row__icon { flex: 0 0 auto; }
.dia-media-row__body h3, .dia-media-row__body h4 { margin-bottom: 8px; }

/* Bulleted list with brand markers */
.dia-list { list-style: none; padding: 0; margin: 0; }
.dia-list li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.dia-list li::before {
	content: ""; position: absolute; left: 0; top: .62em;
	width: 7px; height: 7px; border-radius: 50%; background: var(--dia-red);
}
.dia-list--check li::before {
	content: "✓"; width: auto; height: auto; background: none;
	color: var(--dia-red); font-weight: 700; top: 0; line-height: 1.7;
}
.dia-list--white li::before { background: #fff; }

/* News / resource card */
.dia-news-card {
	background: #fff;
	border: 1px solid var(--dia-line);
	border-radius: var(--dia-radius);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--dia-transition), transform var(--dia-transition);
}
.dia-news-card:hover { transform: translateY(-4px); box-shadow: var(--dia-shadow-lg); }
.dia-news-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dia-news-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.dia-news-card__date { font-family: var(--dia-font-display); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dia-muted); }
.dia-news-card__title { font-size: 1.05rem; margin: 0; }
.dia-news-card__title a { color: var(--dia-navy); }
.dia-news-card__title a:hover { color: var(--dia-red); }
.dia-news-card__excerpt { font-size: .9rem; margin: 0; }
.dia-news-card .dia-link-arrow { margin-top: auto; }

/* Numbered / lettered approach list (Grassroots page) */
.dia-step { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--dia-line); }
.dia-step:last-child { border-bottom: 0; }
.dia-step__marker {
	flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
	background: var(--dia-light); color: var(--dia-navy);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--dia-font-display); font-weight: 700;
}
.dia-step__title { font-size: 1.02rem; margin-bottom: 6px; }
.dia-step__text { font-size: .9rem; margin: 0; }

/* Contact detail row */
.dia-contact-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.dia-contact-row__icon { color: var(--dia-navy); flex: 0 0 auto; }
.dia-contact-row__icon svg { width: 22px; height: 22px; }
.dia-contact-row__label { font-family: var(--dia-font-display); font-weight: 700; color: var(--dia-navy); font-size: .9rem; margin-bottom: 2px; }

/* Newsletter / stay connected block */
.dia-subscribe { background: var(--dia-navy); color: rgba(255, 255, 255, .82); padding: 42px 40px; border-radius: var(--dia-radius); }
.dia-subscribe h2, .dia-subscribe h3 { color: #fff; }
.dia-subscribe form { display: flex; gap: 10px; margin-top: 18px; }
.dia-subscribe input[type="email"] { border: 0; }
@media (max-width: 560px) { .dia-subscribe form { flex-direction: column; } }

/* Quote / spotlight band */
.dia-spotlight { background: var(--dia-red); color: #fff; padding: 46px 0; }
.dia-spotlight :is(h1, h2, h3) { color: #fff; }

/* Utility */
.dia-text-center { text-align: center; }
.dia-text-white { color: #fff; }
.dia-text-red { color: var(--dia-red); }
.dia-text-navy { color: var(--dia-navy); }
.dia-bg-light { background: var(--dia-light); }
.dia-bg-navy { background: var(--dia-navy); color: rgba(255, 255, 255, .82); }
.dia-bg-red { background: var(--dia-red); color: #fff; }
.dia-shadow { box-shadow: var(--dia-shadow); }
.dia-radius { border-radius: var(--dia-radius); overflow: hidden; }
.dia-uppercase { text-transform: uppercase; letter-spacing: .08em; }
.dia-lift { transition: transform var(--dia-transition), box-shadow var(--dia-transition); }
.dia-lift:hover { transform: translateY(-5px); box-shadow: var(--dia-shadow-lg); }

/* Hero image column: fill the height of the text column beside it */
.dia-hero__image,
.dia-hero__image .elementor-widget-container,
.dia-hero__image figure,
.dia-hero__image figure > a { height: 100%; }
.dia-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.dia-hero > .e-con-inner > .e-con,
.dia-hero > .e-con { min-height: 480px; }


/* =========================================================
   10b. Elementor Button widget bridge
   Elementor puts CSS Classes on the widget WRAPPER, but the visible
   control is the inner <a class="elementor-button">. These rules pass
   the dia-btn styling down to it so the class works as documented.
   ========================================================= */
.elementor-widget-button.dia-btn,
.elementor-widget-button[class*="dia-btn--"] {
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
}

.elementor-widget-button.dia-btn .elementor-button,
.elementor-widget-button[class*="dia-btn--"] .elementor-button {
	font-family: var(--dia-font-display) !important;
	font-size: .78rem !important;
	font-weight: 700 !important;
	letter-spacing: .09em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	padding: 15px 26px !important;
	border: 2px solid var(--dia-navy) !important;
	border-radius: var(--dia-radius) !important;
	background-color: var(--dia-navy) !important;
	color: #fff !important;
	transition: background-color var(--dia-transition), color var(--dia-transition), border-color var(--dia-transition);
}
.elementor-widget-button.dia-btn .elementor-button:hover {
	background-color: var(--dia-navy-dark) !important;
	border-color: var(--dia-navy-dark) !important;
}

.elementor-widget-button.dia-btn--red .elementor-button {
	background-color: var(--dia-red) !important;
	border-color: var(--dia-red) !important;
	color: #fff !important;
}
.elementor-widget-button.dia-btn--red .elementor-button:hover {
	background-color: var(--dia-red-dark) !important;
	border-color: var(--dia-red-dark) !important;
}

.elementor-widget-button.dia-btn--outline .elementor-button {
	background-color: transparent !important;
	border-color: var(--dia-navy) !important;
	color: var(--dia-navy) !important;
}
.elementor-widget-button.dia-btn--outline .elementor-button:hover {
	background-color: var(--dia-navy) !important;
	color: #fff !important;
}

.elementor-widget-button.dia-btn--white .elementor-button {
	background-color: #fff !important;
	border-color: #fff !important;
	color: var(--dia-navy) !important;
}
.elementor-widget-button.dia-btn--ghost-white .elementor-button {
	background-color: transparent !important;
	border-color: rgba(255, 255, 255, .65) !important;
	color: #fff !important;
}
.elementor-widget-button.dia-btn--ghost-white .elementor-button:hover {
	background-color: #fff !important;
	color: var(--dia-navy) !important;
	border-color: #fff !important;
}


/* Icon-ring bridge: when dia-icon-ring is applied to an Elementor widget
   (Shortcode/Icon/HTML), the class lands on the wrapper while the SVG sits
   two levels deeper. Push the centering down so the glyph sits dead centre. */
.elementor-widget.dia-icon-ring {
	/* Elementor stretches widget wrappers to the column width, which turns the
	   50% border-radius into an oval. Lock the wrapper to a square. */
	width: 62px !important;
	height: 62px !important;
	min-width: 62px;
	max-width: 62px;
	aspect-ratio: 1 / 1;
	flex: 0 0 62px !important;
	align-self: flex-start;
	box-sizing: border-box;
	padding: 0;
}
.elementor-widget.dia-icon-ring.dia-icon-ring--sm {
	width: 48px !important;
	height: 48px !important;
	min-width: 48px;
	max-width: 48px;
	flex-basis: 48px !important;
}
.elementor-widget.dia-icon-ring.dia-icon-ring--lg {
	width: 78px !important;
	height: 78px !important;
	min-width: 78px;
	max-width: 78px;
	flex-basis: 78px !important;
}
.elementor-widget.dia-icon-ring > .elementor-widget-container,
.elementor-widget.dia-icon-ring .elementor-shortcode,
.elementor-widget.dia-icon-ring .elementor-icon-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	line-height: 0;
}
.elementor-widget.dia-icon-ring svg {
	display: block;
	flex: 0 0 auto;
}

/* Elementor container safety net */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--dia-width); }
.dia-elementor-page .dia-main { padding: 0; }
.dia-elementor-page .dia-layout { display: block; }
/* Never cage an Elementor-built layout inside the theme's 1240px wrapper. */
.dia-elementor-page .dia-container.dia-main {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

/* Keep Elementor headings on brand unless overridden in the kit */
.elementor-widget-heading .elementor-heading-title { font-family: var(--dia-font-display); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 991px) {
	body.has-sidebar .dia-layout { grid-template-columns: minmax(0, 1fr); }
	.dia-section { padding: 56px 0; }
	.dia-pillar-strip .dia-pillar { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
	.dia-partner-band__inner { flex-direction: column; align-items: flex-start; }
}
