/* ============================================================================
   Technology Inc. Insights
   ----------------------------------------------------------------------------
   TO MATCH YOUR BRAND, edit the two values below (--ti-brand and --ti-accent).
   Everything else is derived from them. Fonts intentionally inherit from your
   theme so the page matches the rest of technologyinc.org automatically.
   ========================================================================== */

.ti-insights,
.ti-single {
	/* ▼▼ EDIT THESE TWO TO MATCH YOUR SITE ▼▼ */
	--ti-brand:   #123A5A;   /* primary — deep navy */
	--ti-accent:  #C9A227;   /* accent  — gold      */
	/* ▲▲ ------------------------------------ ▲▲ */

	--ti-brand-2: #1E5A85;   /* lighter navy for gradients/hover */
	--ti-ink:     #1B2A38;   /* headings */
	--ti-body:    #465464;   /* body text */
	--ti-muted:   #6B7885;   /* meta / captions */
	--ti-line:    #E4EAF0;   /* hairlines / borders */
	--ti-surface: #FFFFFF;   /* cards */
	--ti-soft:    #EAF1F7;   /* soft brand tint (tags) */
	--ti-radius:  14px;
	--ti-shadow:  0 1px 2px rgba(18,40,58,.06), 0 16px 34px -14px rgba(18,40,58,.22);

	color: var(--ti-body);
	font-family: inherit;
	box-sizing: border-box;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 28px);
}

.ti-insights *,
.ti-single * {
	box-sizing: border-box;
}

/* -------------------------------------------------------- Page banner ----- */
/* Image header, matching the About Us page style.                            */
.ti-insights--bleed {
	padding-top: 0;
}

.ti-banner {
	position: relative;
	margin-bottom: clamp(28px, 4vw, 48px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	isolation: isolate;
	background-color: var(--ti-brand);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Width: full-bleed (edge to edge) vs aligned with the page content */
.ti-banner--w-full {
	left: 50%;
	right: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
}
.ti-banner--w-content {
	border-radius: var(--ti-radius);
}

/* Branded fallback when no image is chosen */
.ti-banner--nofill {
	background-image:
		radial-gradient(120% 140% at 15% 0%, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
		linear-gradient(135deg, var(--ti-brand) 0%, var(--ti-brand-2) 100%);
}

/* Darkening tint so the white title stays readable */
.ti-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(9,20,36,.18) 0%, rgba(9,20,36,.50) 65%, rgba(9,20,36,.66) 100%),
		radial-gradient(80% 85% at 28% 100%, rgba(9,20,36,.42), rgba(9,20,36,0) 72%);
}
.ti-banner--ov-light::before {
	background:
		linear-gradient(180deg, rgba(9,20,36,.08) 0%, rgba(9,20,36,.32) 65%, rgba(9,20,36,.46) 100%),
		radial-gradient(80% 85% at 28% 100%, rgba(9,20,36,.28), rgba(9,20,36,0) 72%);
}
.ti-banner--ov-dark::before {
	background:
		linear-gradient(180deg, rgba(9,20,36,.42) 0%, rgba(9,20,36,.70) 65%, rgba(9,20,36,.84) 100%),
		radial-gradient(80% 85% at 28% 100%, rgba(9,20,36,.52), rgba(9,20,36,0) 72%);
}

/* Heights */
.ti-banner--h-short    { min-height: clamp(180px, 26vw, 300px); }
.ti-banner--h-standard { min-height: clamp(240px, 34vw, 440px); }
.ti-banner--h-tall     { min-height: clamp(320px, 42vw, 560px); }

.ti-banner__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(26px, 5vw, 60px) clamp(18px, 5vw, 40px);
	padding-bottom: clamp(30px, 6vw, 68px);
}

.ti-insights .ti-banner .ti-banner__title {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	font-family: inherit;
	font-weight: 700 !important;
	line-height: 1.08 !important;
	letter-spacing: -0.01em;
	font-size: clamp(2rem, 1.1rem + 4.2vw, 4rem) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	text-decoration: none !important;
	background: none !important;
	text-shadow: 0 2px 6px rgba(0,0,0,.5), 0 8px 26px rgba(0,0,0,.35) !important;
}
.ti-insights .ti-banner .ti-banner__subtitle {
	margin-top: .55em !important;
	margin-bottom: 0 !important;
	max-width: 46ch;
	font-family: inherit;
	font-weight: 500 !important;
	font-size: clamp(1rem, .92rem + .55vw, 1.3rem) !important;
	line-height: 1.5 !important;
	color: rgba(255,255,255,.94) !important;
	-webkit-text-fill-color: rgba(255,255,255,.94) !important;
	text-shadow: 0 1px 3px rgba(0,0,0,.45), 0 2px 12px rgba(0,0,0,.3) !important;
}

/* Centered variant */
.ti-banner--center {
	align-items: center;
}
.ti-banner--center .ti-banner__inner {
	text-align: center;
}
.ti-banner--center .ti-banner__subtitle {
	margin-left: auto;
	margin-right: auto;
}

/* Hide the theme's built-in page title on the Insights page (banner replaces it) */
body.ti-hide-title .entry-header,
body.ti-hide-title .page-header,
body.ti-hide-title .page-title,
body.ti-hide-title .entry-title,
body.ti-hide-title .single-title,
body.ti-hide-title .nv-page-title,
body.ti-hide-title .nv-title-meta,
body.ti-hide-title #title-container,
body.ti-hide-title .elementor-page-title,
body.ti-hide-title .ast-archive-description,
body.ti-hide-title .page-header-title {
	display: none !important;
}

/* ---------------------------------------------------------------- Hero ---- */
.ti-hero {
	max-width: 860px;
	margin-bottom: clamp(28px, 4vw, 44px);
}
.ti-hero__eyebrow {
	margin: 0 0 14px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ti-accent);
	display: inline-flex;
	align-items: center;
}
.ti-hero__eyebrow::after {
	content: "";
	display: inline-block;
	width: 46px;
	height: 2px;
	margin-left: 14px;
	background: var(--ti-accent);
	opacity: .6;
}
.ti-hero__title {
	margin: 0 0 18px;
	font-family: inherit;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--ti-ink);
	font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
}
.ti-hero__lead {
	font-size: 1.075rem;
	line-height: 1.75;
	color: var(--ti-body);
}
.ti-hero__lead p { margin: 0 0 1em; }
.ti-hero__lead p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- Filters ---- */
.ti-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 22px;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--ti-line);
}
.ti-filter {
	font-family: inherit;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1;
	color: var(--ti-body);
	background: var(--ti-surface);
	border: 1px solid var(--ti-line);
	border-radius: 999px;
	padding: .62em 1.05em;
	cursor: pointer;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ti-filter:hover {
	color: var(--ti-brand);
	border-color: var(--ti-brand);
}
.ti-filter.is-active {
	color: #fff;
	background: var(--ti-brand);
	border-color: var(--ti-brand);
	box-shadow: 0 8px 18px -8px rgba(18,40,58,.45);
}

/* --------------------------------------------------------------- Grid ----- */
.ti-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 26px;
}

/* --------------------------------------------------------------- Card ----- */
.ti-card {
	display: flex;
	flex-direction: column;
	background: var(--ti-surface);
	border: 1px solid var(--ti-line);
	border-radius: var(--ti-radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ti-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ti-shadow);
	border-color: transparent;
}
.ti-card.is-hidden { display: none; }

.ti-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ti-soft);
}
.ti-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.ti-card:hover .ti-card__media img { transform: scale(1.045); }

/* Placeholder banner (no image set) */
.ti-ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 18px;
	color: #fff;
}
.ti-ph::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 120% at 20% 0%, rgba(255,255,255,.16), rgba(255,255,255,0) 55%);
	pointer-events: none;
}
.ti-ph__label {
	position: relative;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .01em;
	max-width: 90%;
}
.ti-ph__mark {
	position: relative;
	margin-top: 10px;
	font-size: .64rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	opacity: .72;
}

.ti-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px 22px 24px;
	flex: 1 1 auto;
}
.ti-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: .8rem;
	color: var(--ti-muted);
}
.ti-card__dot { opacity: .55; }
.ti-card__tag {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ti-brand);
	background: var(--ti-soft);
	padding: .32em .7em;
	border-radius: 999px;
}
.ti-card__title {
	margin: 0;
	font-family: inherit;
	font-size: 1.16rem;
	font-weight: 700;
	line-height: 1.32;
	color: var(--ti-ink);
}
.ti-card__title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--ti-accent), var(--ti-accent));
	background-size: 0% 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size .3s ease;
}
.ti-card__title a:hover { background-size: 100% 2px; }

.ti-card__abstract {
	margin: 0;
	font-size: .95rem;
	line-height: 1.62;
	color: var(--ti-body);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ti-card__more {
	margin: auto 0 0;
	padding-top: 4px;
}
.ti-card__more a {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	font-size: .9rem;
	font-weight: 700;
	color: var(--ti-brand);
	text-decoration: none;
}
.ti-card__arrow { transition: transform .2s ease; }
.ti-card__more a:hover { color: var(--ti-brand-2); }
.ti-card__more a:hover .ti-card__arrow { transform: translateX(4px); }

/* -------------------------------------------------------- Empty states ---- */
.ti-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--ti-muted);
	padding: 44px 24px;
	border: 1px dashed var(--ti-line);
	border-radius: var(--ti-radius);
	font-size: .98rem;
}

/* --------------------------------------------------------------- CTA ------ */
.ti-cta {
	position: relative;
	overflow: hidden;
	margin-top: clamp(40px, 5vw, 60px);
	padding: clamp(30px, 5vw, 52px);
	border-radius: 18px;
	background: linear-gradient(135deg, var(--ti-brand) 0%, var(--ti-brand-2) 100%);
	color: #fff;
}
.ti-cta::after {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(201,162,39,.28), rgba(201,162,39,0) 65%);
	pointer-events: none;
}
.ti-cta__inner {
	position: relative;
	max-width: 720px;
}
.ti-cta__eyebrow {
	margin: 0 0 12px;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ti-accent);
}
.ti-cta__title {
	margin: 0 0 14px;
	font-family: inherit;
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
}
.ti-cta__text {
	margin: 0 0 26px;
	font-size: 1.02rem;
	line-height: 1.7;
	color: rgba(255,255,255,.88);
}
.ti-cta__btn {
	display: inline-block;
	font-family: inherit;
	font-size: .95rem;
	font-weight: 700;
	color: var(--ti-ink);
	background: var(--ti-accent);
	padding: .9em 1.6em;
	border-radius: 999px;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
	box-shadow: 0 12px 26px -12px rgba(0,0,0,.5);
}
.ti-cta__btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	color: var(--ti-ink);
}

/* ==========================================================================
   Single article page
   ========================================================================== */
.ti-single {
	max-width: 820px;
}
.ti-single__media {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--ti-radius);
	overflow: hidden;
	margin-bottom: 28px;
	background: var(--ti-soft);
}
.ti-single__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ti-single__eyebrow {
	margin: 0 0 12px;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ti-accent);
}
.ti-single__eyebrow a { color: inherit; text-decoration: none; }
.ti-single__eyebrow a:hover { text-decoration: underline; }
.ti-single__title {
	margin: 0 0 14px;
	font-family: inherit;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ti-ink);
	font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
}
.ti-single__meta {
	margin: 0 0 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ti-line);
	font-size: .9rem;
	color: var(--ti-muted);
}
.ti-single__content {
	font-size: 1.08rem;
	line-height: 1.8;
	color: var(--ti-body);
}
.ti-single__content > *:first-child { margin-top: 0; }
.ti-single__content p { margin: 0 0 1.3em; }
.ti-single__content h2,
.ti-single__content h3 {
	color: var(--ti-ink);
	line-height: 1.3;
	margin: 1.8em 0 .6em;
}
.ti-single__content a {
	color: var(--ti-brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ti-single__content img { max-width: 100%; height: auto; border-radius: 10px; }
.ti-single__content blockquote {
	margin: 1.6em 0;
	padding: .4em 0 .4em 1.2em;
	border-left: 3px solid var(--ti-accent);
	color: var(--ti-ink);
	font-style: italic;
}

.ti-single__external {
	margin: 30px 0 0;
	padding: 18px 20px;
	background: var(--ti-soft);
	border-radius: var(--ti-radius);
	font-size: .98rem;
}
.ti-single__external a { color: var(--ti-brand); font-weight: 700; }

.ti-single__back {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	margin-top: 34px;
	font-weight: 700;
	font-size: .95rem;
	color: var(--ti-brand);
	text-decoration: none;
}
.ti-single__back:hover { color: var(--ti-brand-2); }

/* ------------------------------------------------------------ A11y/focus -- */
.ti-insights a:focus-visible,
.ti-insights button:focus-visible,
.ti-single a:focus-visible {
	outline: 2px solid var(--ti-brand);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ------------------------------------------------------------ Responsive -- */
@media (max-width: 600px) {
	.ti-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 18px;
	}
	.ti-filters::-webkit-scrollbar { display: none; }
	.ti-filter { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.ti-insights *,
	.ti-single * {
		transition: none !important;
		animation: none !important;
	}
	.ti-card:hover { transform: none; }
	.ti-card:hover .ti-card__media img { transform: none; }
}
