/**
 * Elcogen News & Insights Widget Styles
 *
 * Minimal CSS - most styling controlled through Elementor controls
 *
 * @package Elcogen_Elementor_Widgets
 */

/* Root Container */
/* .elcogen-news-insights {
	width: 100%;
	max-width: 73.5rem !important;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}
.elcogen-news-insights__grid {
	width: 100% !important;
	max-width: 73.5rem !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 6rem !important;
	padding-right: 6rem !important;
	box-sizing: border-box !important;
	border-left: 4px solid #0c28c4 !important;
	margin-block: 4rem;
} */

/* Header Section */
.elcogen-news-insights__header {
	margin-bottom: var(--spacing-baseline-48);
}

.elcogen-news-insights__title {
	/* Typography now controlled by universal .elcogen-widget-title class in global CSS */
	padding: 0;
}

.elcogen-news-insights__subtitle-wrapper {
	/* Styling now controlled by universal .elcogen-widget-subtitle-wrapper class in global CSS */
}

.elcogen-news-insights__accent-bar-wrapper {
	/* Styling now controlled by universal .elcogen-accent-bar-wrapper class in global CSS */
}

.elcogen-news-insights__accent-bar {
	/* Styling now controlled by universal .elcogen-accent-bar class in global CSS */
}

.elcogen-news-insights__subtitle {
	/* Typography now controlled by universal .elcogen-widget-subtitle class in global CSS */
	padding: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Category Filter Bar */
.elcogen-news-insights__category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-baseline-12);
	margin-bottom: var(--spacing-baseline-32);
	align-items: center;
}

.elcogen-news-insights__filter-button {
	font-family: var(--font-family-body), sans-serif;
	font-weight: var(--font-weight-regular);
	font-size: var(--font-size-body-medium);
	line-height: var(--line-height-body-medium);
	color: var(--color-text-primary) !important;
	background-color: var(--color-light-blue-300);
	border: none;
	padding: var(--spacing-baseline-08) 1.25rem;
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: var(--transition-all);
	outline: none;
	text-decoration: none;
	white-space: nowrap;
}

.elcogen-news-insights__filter-button:hover {
	background-color: #0066FF;
	color: var(--color-white) !important;
	transform: translateY(-0.125rem);
	box-shadow: 0 0.25rem 0.5rem rgba(0, 102, 255, 0.2);
}

.elcogen-news-insights__filter-button:active {
	transform: translateY(0);
	box-shadow: 0 0.125rem 0.25rem rgba(0, 102, 255, 0.2);
}

.elcogen-news-insights__filter-button.active {
	background-color: #004CC0 !important;
	color: var(--color-white) !important;
	font-weight: var(--font-weight-bold);
}

.elcogen-news-insights__filter-button:focus {
	outline: 0.125rem solid #0066FF;
	outline-offset: 0.125rem;
}

/* Grid Layout */
.elcogen-news-insights__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--spacing-baseline-24);
}

/* Single Column Layout */
.elcogen-news-insights__grid--single-column {
	grid-template-columns: 1fr !important;
}

/* Card Link Wrapper - Makes entire card clickable */
.elcogen-news-insights__card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: var(--transition-background);
	background-color: transparent;
	cursor: pointer;
}

.elcogen-news-insights__card-link:hover {
	background-color: var(--color-light-blue-200);
}

/* Card Styles */
.elcogen-news-insights__card {
	display: flex;
	flex-direction: row;
	overflow: hidden;
}

/* Image Container */
.elcogen-news-insights__image {
	width: 17.375rem;
	height: 13rem;
	flex-shrink: 0;
	overflow: hidden;
	position: relative;
	/* Cut-off bottom-right corner to match design */
	clip-path: polygon(0 0, 100% 0, 100% 84.6%, 88.5% 100%, 0 100%);
}

.elcogen-news-insights__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Content Area */
.elcogen-news-insights__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: var(--spacing-baseline-08);
	min-width: 0;
	padding: .5rem var(--spacing-baseline-16) .5rem var(--spacing-baseline-24);
}

.elcogen-news-insights__article-title {
	font-family: var(--font-family-headings), sans-serif;
	font-weight: var(--font-weight-bold);
	font-size: 1.1875rem;
	line-height: 2rem;
	color: var(--color-text-primary);
	margin: 0;
	padding: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
	width: 100%;
}

.elcogen-news-insights__excerpt {
	margin: 0;
	padding: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
	
}
p.elcogen-news-insights__excerpt {
	font-size: var(--font-size-body-base);
}

/* Meta Section */
.elcogen-news-insights__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--spacing-baseline-16);
	margin: 0;
	width: 100%;
	justify-content: space-between;
	margin-top: auto;
}

.elcogen-news-insights__date {
	font-family: var(--font-family-body), sans-serif;
	font-weight: var(--font-weight-regular);
	font-size: var(--font-size-body-medium);
	line-height: var(--line-height-body-medium);
	color: var(--color-text-primary);
	margin: 0;
	padding: 0;
}

.elcogen-news-insights__tag {
	font-family: var(--font-family-body), sans-serif;
	font-weight: var(--font-weight-regular);
	font-size: var(--font-size-body-large);
	line-height: var(--line-height-body-large);
	color: var(--color-text-primary);
	display: inline-block;
	background-color: var(--color-light-blue-300);
	padding: 0 var(--spacing-baseline-16);
	border-radius: var(--radius-pill);
}

/* Arrow Button */
.elcogen-news-insights__button {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition-transform);
	flex-shrink: 0;
	margin-left: auto;
	text-decoration: none;
	background-color: var(--color-dark-neutral);
	color: var(--color-white);
}

.elcogen-news-insights__button svg {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
	fill: none;
	stroke: var(--color-white);
}

.elcogen-news-insights__button svg path {
	stroke: var(--color-white);
}

.elcogen-news-insights__card-link:hover .elcogen-news-insights__button {
	transform: translateX(0.25rem);
}

/* Footer */
.elcogen-news-insights__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: var(--spacing-baseline-24);
}

.elcogen-news-insights__see-all {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-baseline-16);
	padding: var(--spacing-baseline-04) var(--spacing-baseline-16);
	background-color: var(--color-dark-neutral);
	color: var(--color-white);
	border: var(--button-border-width) solid var(--color-dark-neutral);
	border-radius: var(--radius-pill);
	transition: var(--transition-all);
	font-weight: var(--font-weight-bold);
	font-size: var(--font-size-body-large);
	line-height: var(--line-height-body-large);
}

.elcogen-news-insights__see-all:hover {
	background-color: var(--color-cobalt-blue-400);
	border-color: var(--color-cobalt-blue-400);
}

.elcogen-news-insights__see-all svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: none;
	stroke: currentColor;
	transition: var(--transition-transform);
	flex-shrink: 0;
}

.elcogen-news-insights__see-all:hover svg {
	transform: translateX(0.25rem);
}

/* Tablet: Single column */
@media (max-width: 64rem) {
	.elcogen-news-insights__grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.elcogen-news-insights__image {
		width: 15rem;
		height: 11.25rem;
	}
}

/* Mobile: Show subtitle wrapper and vertical cards */
@media (max-width: 47.9375rem) {
	.elcogen-news-insights__title {
		/* Typography now controlled by universal .elcogen-widget-title class in global CSS */
	}

	.elcogen-news-insights__subtitle {
		/* Typography now controlled by universal .elcogen-widget-subtitle class in global CSS */
	}

	.elcogen-news-insights__category-filter {
		gap: var(--spacing-baseline-08);
		margin-bottom: var(--spacing-baseline-24);
	}

	.elcogen-news-insights__filter-button {
		font-size: 1rem;
		line-height: 1.5rem;
		padding: 0.375rem var(--spacing-baseline-16);
	}

	.elcogen-news-insights__grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-baseline-16);
	}

	.elcogen-news-insights__card {
		flex-direction: column;
		padding: var(--spacing-baseline-16);
	}

	.elcogen-news-insights__image {
		width: 100%;
		height: auto;
		aspect-ratio: 278 / 208;
	}

	.elcogen-news-insights__content {
		padding: var(--spacing-baseline-16);
	}

	.elcogen-news-insights__button {
		width: 2.25rem;
		height: 2.25rem;
	}

	.elcogen-news-insights__button svg {
		width: 1.5rem;
		height: 1.5rem;
	}

	.elcogen-news-insights__footer {
		justify-content: center;
	}
}
