
/* Hide Astra/WordPress page title only on the page containing the shortcode. */
.ardic-insights-page .entry-header,
.ardic-insights-page .entry-title,
.ardic-insights-page .ast-page-builder-template .entry-header {
	display: none !important;
}

.ardic-insights-page .site-content,
.ardic-insights-page .ast-container,
.ardic-insights-page .content-area,
.ardic-insights-page .site-main,
.ardic-insights-page article.page,
.ardic-insights-page .entry-content {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.ardic-insights {
	--ardic-primary: #6f1836;
	--ardic-accent: #173c32;
	color: #202421;
	overflow: hidden;
}

.ardic-insights *,
.ardic-insights *::before,
.ardic-insights *::after {
	box-sizing: border-box;
}

.ardic-insights__hero-shell {
	position: relative;
	width: 100vw;
	min-height: min(680px, calc(100vh - 90px));
	margin-left: calc(50% - 50vw);
	background-image:
		linear-gradient(120deg, rgba(9, 31, 25, .88), rgba(45, 20, 31, .70)),
		var(--ardic-hero-image, linear-gradient(135deg, #173c32, #5f1733));
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
}

.ardic-insights__hero-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 80% 15%, rgba(255,255,255,.16), transparent 35%),
		linear-gradient(to bottom, transparent 65%, rgba(0,0,0,.15));
	pointer-events: none;
}

.ardic-insights__hero-inner {
	position: relative;
	z-index: 1;
	width: min(1240px, calc(100% - 40px));
	margin: 0 auto;
	padding: clamp(24px, 3.6vw, 48px) 0 76px;
}

.ardic-insights__subscription {
	display: grid;
	grid-template-columns: minmax(280px, .85fr) minmax(430px, 1.15fr);
	gap: clamp(24px, 4vw, 54px);
	align-items: center;
	padding: clamp(24px, 4vw, 42px);
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 16px;
	background: rgba(13, 43, 35, .74);
	box-shadow: 0 20px 55px rgba(0,0,0,.22);
	backdrop-filter: blur(12px);
	color: #fff;
}

.ardic-insights__subscription h2 {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(1.7rem, 3.2vw, 3rem);
	line-height: 1.08;
	letter-spacing: -.035em;
}

.ardic-insights__subscription p {
	margin: 0;
	color: rgba(255,255,255,.82);
	font-size: 1.05rem;
	line-height: 1.65;
}

.ardic-insights__form {
	padding: 18px;
	border-radius: 12px;
	background: rgba(255,255,255,.96);
	color: #202421;
	box-shadow: 0 10px 28px rgba(0,0,0,.13);
}

.ardic-insights__filters {
	display: grid;
	grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(165px, 1fr)) auto;
	gap: 12px;
	align-items: center;
	padding: 16px;
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 12px;
	background: rgba(255,255,255,.92);
	box-shadow: 0 14px 36px rgba(0,0,0,.17);
}

.ardic-insights__filters input,
.ardic-insights__filters select {
	width: 100%;
	min-height: 50px;
	border: 1px solid #d4d9d5;
	border-radius: 7px;
	background: #fff;
	padding: 0 14px;
	font: inherit;
	color: #202421;
}

.ardic-insights__filters input:focus,
.ardic-insights__filters select:focus {
	outline: 2px solid rgba(23,60,50,.18);
	border-color: var(--ardic-accent);
}

.ardic-insights__apply,
.ardic-insights__clear,
.ardic-page {
	min-height: 46px;
	border: 1px solid #d4d9d5;
	border-radius: 7px;
	background: #fff;
	padding: 0 16px;
	cursor: pointer;
	font: inherit;
}

.ardic-insights__clear::before {
	content: "↺";
	margin-right: 6px;
}

.ardic-insights__apply {
	border-color: var(--ardic-primary);
	background: var(--ardic-primary);
	color: #fff;
	font-weight: 700;
}

.ardic-insights__filter-actions {
	display: flex;
	gap: 8px;
}

.ardic-insights__apply:hover,
.ardic-insights__clear:hover,
.ardic-page:hover,
.ardic-page.is-active {
	border-color: var(--ardic-primary);
	color: #fff;
	background: var(--ardic-primary);
}

.ardic-insights__content {
	width: min(1240px, calc(100% - 40px));
	margin: 0 auto;
	padding: 56px 0 84px;
}

.ardic-insights__status {
	min-height: 22px;
	margin-bottom: 12px;
	color: #666d67;
}

.ardic-insights__results.is-loading {
	opacity: .45;
	pointer-events: none;
}

.ardic-insights__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.ardic-card {
	overflow: hidden;
	border: 1px solid #e1e5e1;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(30,45,37,.07);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.ardic-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 38px rgba(30,45,37,.12);
}

.ardic-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eef1ed;
}

.ardic-card__image img,
.ardic-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 200ms ease;
}

.ardic-card:hover .ardic-card__image img {
	transform: scale(1.025);
}

.ardic-card__placeholder {
	background:
		linear-gradient(135deg, rgba(29,58,50,.08), rgba(111,24,54,.10)),
		#f1f3f0;
}

.ardic-card__body { padding: 22px; }

.ardic-card__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	font-size: .76rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #6c726c;
}

.ardic-card__meta span {
	color: var(--ardic-primary);
	font-weight: 700;
}

.ardic-card h2 {
	margin: 0 0 12px;
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	line-height: 1.25;
}

.ardic-card h2 a { color: #202421; text-decoration: none; }
.ardic-card p { margin: 0 0 18px; color: #626862; line-height: 1.65; }
.ardic-card__read { color: var(--ardic-accent); font-weight: 700; text-decoration: none; }

.ardic-insights__pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 34px;
}

.ardic-insights__empty {
	padding: 56px 24px;
	text-align: center;
	border: 1px dashed #cfd5cf;
	border-radius: 10px;
}

/* Native two-step subscription form */
.ardic-native-form__step--one {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
}

.ardic-native-form input,
.ardic-native-form select {
	width: 100%;
	min-height: 50px;
	border: 1px solid #d4d9d5;
	border-radius: 7px;
	background: #fff;
	padding: 0 14px;
	font: inherit;
	color: #202421;
}

.ardic-native-form button {
	min-height: 50px;
	border: 1px solid var(--ardic-primary);
	border-radius: 7px;
	background: var(--ardic-primary);
	color: #fff;
	padding: 0 20px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ardic-native-form__step--two[hidden] { display: none !important; }

.ardic-native-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 10px;
}

.ardic-native-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 14px 0;
	font-size: .84rem;
	line-height: 1.45;
	color: #505650;
}

.ardic-native-form__consent input {
	width: 18px;
	min-height: 18px;
	margin-top: 2px;
	flex: 0 0 auto;
}

.ardic-native-form__consent a {
	color: var(--ardic-primary);
}

.ardic-native-form__actions {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.ardic-native-form__back {
	color: var(--ardic-primary) !important;
	background: #fff !important;
}

.ardic-native-form__message {
	min-height: 20px;
	margin: 10px 0 0;
	font-size: .9rem;
}

.ardic-native-form__message.is-error { color: #a52323; }
.ardic-native-form__message.is-success { color: #176b39; }

.ardic-insights__subscription--post {
	max-width: 920px;
	margin: 48px auto 0;
	background: var(--ardic-accent);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0,0,0,0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 980px) {
	.ardic-insights__subscription {
		grid-template-columns: 1fr;
	}
	.ardic-insights__filters {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
	.ardic-insights__filters input {
		grid-column: 1 / -1;
	}
	.ardic-insights__grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
}

@media (max-width: 680px) {
	.ardic-insights__hero-shell {
		min-height: auto;
	}
	.ardic-insights__hero-inner,
	.ardic-insights__content {
		width: min(100% - 28px, 1240px);
	}
	.ardic-insights__subscription {
		padding: 22px;
		border-radius: 12px;
	}
	.ardic-native-form__step--one,
	.ardic-native-form__grid,
	.ardic-insights__filters,
	.ardic-insights__grid {
		grid-template-columns: 1fr;
	}
	.ardic-insights__filters input {
		grid-column: auto;
	}
	.ardic-insights__heading h1 {
		align-items: flex-start;
	}
}


.ardic-subscription-bulb {
	display: inline-block;
	margin-left: 12px;
	font-size: .72em;
	vertical-align: .06em;
	filter: drop-shadow(0 5px 12px rgba(0,0,0,.22));
}

@media (max-width: 980px) {
	.ardic-insights__filter-actions {
		grid-column: 1 / -1;
	}
	.ardic-insights__filter-actions > button {
		flex: 1;
	}
}

@media (max-width: 680px) {
	.ardic-insights__filter-actions {
		grid-column: auto;
	}
}


/* v1.3 layout refinements */
.ardic-insights__subscription--hero {
	margin-top: -8px;
}

.ardic-insights__filters {
	grid-template-columns: minmax(300px, 2.2fr) minmax(190px, .95fr) auto auto minmax(175px, .85fr);
	gap: 12px;
	align-items: stretch;
	margin-top: 46px;
}

.ardic-insights__search-field,
.ardic-insights__sort-field {
	display: flex;
	align-items: stretch;
}

.ardic-insights__search-field input,
.ardic-insights__sort-field select {
	height: 100%;
	min-height: 62px;
}

.ardic-insights__taxonomy-stack {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.ardic-insights__taxonomy-stack select {
	min-height: 27px;
	height: 27px;
	padding-top: 0;
	padding-bottom: 0;
}

.ardic-insights__apply,
.ardic-insights__clear {
	align-self: stretch;
	min-width: 86px;
}

.ardic-insights__clear {
	border-color: var(--ardic-primary) !important;
	background: #fff !important;
	color: var(--ardic-primary) !important;
	font-weight: 700;
}

.ardic-insights__clear:hover,
.ardic-insights__clear:focus {
	background: #f8f1f4 !important;
	color: var(--ardic-primary) !important;
}

.ardic-insights__content {
	position: relative;
	z-index: 3;
	margin-top: -78px;
	padding-top: 0;
}

@media (max-width: 980px) {
	.ardic-insights__filters {
		grid-template-columns: minmax(0, 1.5fr) minmax(180px, 1fr) auto auto;
	}
	.ardic-insights__sort-field {
		grid-column: 1 / -1;
	}
	.ardic-insights__sort-field select {
		min-height: 50px;
	}
	.ardic-insights__content {
		margin-top: -52px;
	}
}

@media (max-width: 680px) {
	.ardic-insights__subscription--hero {
		margin-top: 0;
	}
	.ardic-insights__filters {
		grid-template-columns: 1fr;
		margin-top: 30px;
	}
	.ardic-insights__search-field,
	.ardic-insights__sort-field {
		grid-column: auto;
	}
	.ardic-insights__taxonomy-stack select {
		min-height: 48px;
		height: 48px;
	}
	.ardic-insights__apply,
	.ardic-insights__clear {
		min-height: 48px;
	}
	.ardic-insights__content {
		margin-top: -28px;
	}
}


/* v1.4 positioning and controls */
.ardic-insights__hero-inner {
	padding-top: 10px !important;
}

.ardic-insights__subscription--hero {
	margin-top: -20px !important;
}

.ardic-insights__content {
	margin-top: -150px !important;
}

.ardic-insights__sort-stack {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 8px;
	min-width: 205px;
}

.ardic-insights__sort-stack > select {
	min-height: 27px;
	height: 27px;
	padding-top: 0;
	padding-bottom: 0;
}

.ardic-insights__show-row {
	display: grid;
	grid-template-columns: auto minmax(56px, 1fr) 34px 34px;
	align-items: center;
	gap: 6px;
	color: #3b413d;
	font-size: .88rem;
}

.ardic-insights__show-row select {
	min-height: 27px;
	height: 27px;
	padding: 0 6px;
}

.ardic-insights__page-nav {
	min-height: 27px;
	height: 27px;
	padding: 0;
	border: 1px solid #d4d9d5;
	border-radius: 6px;
	background: #fff;
	color: var(--ardic-primary);
	font-weight: 700;
	cursor: pointer;
}

.ardic-insights__page-nav:hover,
.ardic-insights__page-nav:focus {
	border-color: var(--ardic-primary);
	background: var(--ardic-primary);
	color: #fff;
}

.ardic-global-insights-button {
	position: fixed;
	top: 18px;
	right: 24px;
	z-index: 99999;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 16px;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 9px;
	background: rgba(13,43,35,.90);
	box-shadow: 0 8px 24px rgba(0,0,0,.18);
	backdrop-filter: blur(10px);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}

.ardic-global-insights-button:hover,
.ardic-global-insights-button:focus {
	background: rgba(13,43,35,1);
	transform: translateY(-1px);
}

@media (max-width: 980px) {
	.ardic-insights__content {
		margin-top: -110px !important;
	}
	.ardic-insights__sort-stack {
		grid-column: 1 / -1;
	}
	.ardic-global-insights-button {
		top: 12px;
		right: 12px;
		padding: 9px 12px;
		font-size: .9rem;
	}
}

@media (max-width: 680px) {
	.ardic-insights__content {
		margin-top: -72px !important;
	}
	.ardic-insights__subscription--hero {
		margin-top: 0 !important;
	}
	.ardic-global-insights-button {
		position: absolute;
		top: 10px;
		right: 10px;
	}
}


/* v1.5 hero spacing */
.ardic-insights__hero-inner {
	padding-top: 0 !important;
	padding-bottom: 110px !important;
}

.ardic-insights__subscription--hero {
	margin-top: -54px !important;
}

.ardic-insights__filters {
	margin-top: 68px !important;
}

/* Pull the first article row roughly one-third over the hero boundary. */
.ardic-insights__content {
	margin-top: -205px !important;
	padding-top: 0 !important;
}

/* The header button is rendered inside Astra Header Builder via shortcode. */
.ardic-global-insights-button {
	display: none !important;
}

.ardic-header-insights-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 15px;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 8px;
	background: rgba(13,43,35,.94);
	box-shadow: 0 6px 18px rgba(0,0,0,.14);
	color: #fff !important;
	font-size: .92rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none !important;
	transition: transform 160ms ease, background 160ms ease;
}

.ardic-header-insights-button:hover,
.ardic-header-insights-button:focus {
	background: #0d2b23;
	color: #fff !important;
	transform: translateY(-1px);
}

@media (max-width: 980px) {
	.ardic-insights__subscription--hero {
		margin-top: -30px !important;
	}
	.ardic-insights__filters {
		margin-top: 52px !important;
	}
	.ardic-insights__content {
		margin-top: -145px !important;
	}
}

@media (max-width: 680px) {
	.ardic-insights__hero-inner {
		padding-top: 20px !important;
		padding-bottom: 78px !important;
	}
	.ardic-insights__subscription--hero {
		margin-top: 0 !important;
	}
	.ardic-insights__filters {
		margin-top: 38px !important;
	}
	.ardic-insights__content {
		margin-top: -88px !important;
	}
	.ardic-header-insights-button {
		width: 100%;
		min-height: 44px;
	}
}


/* v1.6 responsive sort/show/pagination controls */
.ardic-insights__sort-stack {
	min-width: 0 !important;
	width: 100%;
}

.ardic-insights__sort-stack > select {
	width: 100%;
	min-width: 0;
}

.ardic-insights__show-row {
	min-width: 0;
	width: 100%;
	grid-template-columns: auto minmax(58px, 1fr) 36px 36px;
}

.ardic-insights__show-row select {
	width: 100%;
	min-width: 0;
}

.ardic-insights__page-nav {
	width: 36px;
	min-width: 36px;
}

@media (max-width: 1180px) {
	.ardic-insights__filters {
		grid-template-columns:
			minmax(260px, 1.65fr)
			minmax(185px, .9fr)
			minmax(82px, auto)
			minmax(82px, auto);
	}

	.ardic-insights__sort-stack {
		grid-column: 1 / -1;
		grid-template-columns: minmax(220px, 1fr) minmax(250px, auto);
		grid-template-rows: 1fr;
		align-items: center;
		gap: 14px;
	}

	.ardic-insights__sort-stack > select {
		min-height: 44px;
		height: 44px;
	}

	.ardic-insights__show-row {
		justify-self: end;
		max-width: 310px;
	}
}

@media (max-width: 820px) {
	.ardic-insights__filters {
		grid-template-columns: minmax(0, 1fr) minmax(170px, .8fr);
	}

	.ardic-insights__search-field {
		grid-column: 1 / -1;
	}

	.ardic-insights__apply,
	.ardic-insights__clear {
		min-height: 46px;
	}

	.ardic-insights__sort-stack {
		grid-column: 1 / -1;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		gap: 9px;
	}

	.ardic-insights__show-row {
		justify-self: stretch;
		max-width: none;
		grid-template-columns: auto minmax(64px, 1fr) 42px 42px;
	}

	.ardic-insights__page-nav {
		width: 42px;
		min-width: 42px;
		height: 40px;
	}

	.ardic-insights__show-row select {
		height: 40px;
		min-height: 40px;
	}
}

@media (max-width: 520px) {
	.ardic-insights__filters {
		grid-template-columns: 1fr;
	}

	.ardic-insights__search-field,
	.ardic-insights__taxonomy-stack,
	.ardic-insights__apply,
	.ardic-insights__clear,
	.ardic-insights__sort-stack {
		grid-column: 1;
		width: 100%;
	}

	.ardic-insights__show-row {
		grid-template-columns: auto minmax(56px, 1fr) 44px 44px;
		gap: 7px;
	}

	.ardic-insights__show-row span {
		white-space: nowrap;
	}

	.ardic-insights__page-nav {
		width: 44px;
		min-width: 44px;
	}

	.ardic-insights__sort-stack > select,
	.ardic-insights__show-row select,
	.ardic-insights__page-nav {
		font-size: 16px;
	}
}


/* v1.7 header button and article card refinements */

/* Match the visual scale of the primary navigation and align vertically. */
.ardic-header-insights-button {
	position: relative;
	top: 7px;
	min-height: 54px !important;
	padding: 14px 22px !important;
	border-radius: 9px;
	font-size: clamp(1.02rem, 1.15vw, 1.18rem) !important;
	font-weight: 700;
	letter-spacing: -0.01em;
	gap: 10px;
	box-shadow: 0 8px 22px rgba(0,0,0,.17);
}

.ardic-header-insights-button:hover,
.ardic-header-insights-button:focus {
	transform: translateY(-1px);
}

/* Help Astra's widget wrapper keep the shortcode button centered in the row. */
.ast-header-widget-area .widget:has(.ardic-header-insights-button),
.site-header-section .widget:has(.ardic-header-insights-button) {
	display: flex;
	align-items: center;
	margin: 0;
}

/* Reduce the image area to roughly half of the previous 16:10 height. */
.ardic-card__image {
	aspect-ratio: 16 / 5 !important;
	min-height: 118px;
	max-height: 150px;
}

/* Give the editorial copy more room and improve long-excerpt readability. */
.ardic-card__body {
	padding: 24px 24px 26px;
}

.ardic-card p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow: hidden;
	min-height: calc(1.65em * 4);
	margin-bottom: 20px;
}

/* Keep cards visually balanced even when excerpts differ slightly. */
.ardic-card {
	display: flex;
	flex-direction: column;
}

.ardic-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.ardic-card__read {
	margin-top: auto;
}

@media (max-width: 980px) {
	.ardic-header-insights-button {
		top: 4px;
		min-height: 50px !important;
		padding: 12px 18px !important;
		font-size: 1rem !important;
	}

	.ardic-card__image {
		aspect-ratio: 16 / 6 !important;
		max-height: 165px;
	}
}

@media (max-width: 680px) {
	.ardic-header-insights-button {
		top: 0;
		width: 100%;
		min-height: 48px !important;
	}

	.ardic-card__image {
		aspect-ratio: 16 / 7 !important;
		min-height: 130px;
		max-height: 180px;
	}

	.ardic-card p {
		-webkit-line-clamp: 6;
	}
}


/* v1.8 article image and title refinements */

/* Increase the card image area by approximately 50% compared with v1.7. */
.ardic-card__image {
	aspect-ratio: 16 / 7.5 !important;
	min-height: 178px !important;
	max-height: 225px !important;
}

/* Remove underline from article titles in all states. */
.ardic-card h2 a,
.ardic-card h2 a:link,
.ardic-card h2 a:visited,
.ardic-card h2 a:hover,
.ardic-card h2 a:focus,
.ardic-card h2 a:active {
	text-decoration: none !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

@media (max-width: 980px) {
	.ardic-card__image {
		aspect-ratio: 16 / 8 !important;
		min-height: 190px !important;
		max-height: 245px !important;
	}
}

@media (max-width: 680px) {
	.ardic-card__image {
		aspect-ratio: 16 / 9 !important;
		min-height: 190px !important;
		max-height: 280px !important;
	}
}
