/* Noticies Grid Widget Styles */

.noticies-grid-widget {
	display: grid;
	gap: 0;
	width: 100%;
}

.noticies-grid-widget[data-columns="1"] {
	grid-template-columns: 1fr;
}

.noticies-grid-widget[data-columns="2"] {
	grid-template-columns: repeat(2, 1fr);
}

.noticies-grid-widget[data-columns="3"] {
	grid-template-columns: repeat(3, 1fr);
}

.noticies-grid-widget[data-columns="4"] {
	grid-template-columns: repeat(4, 1fr);
}

/* Noticia Card */
.noticia-card {
	background: #f8f9fa !important;
	border-radius: 0;
	overflow: hidden;
	transition: all 0.3s;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.noticia-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-4px);
}

/* Card 1 y 3: Fondo gris, texto negro */
.noticia-card:nth-child(odd) {
	background: #f3f4f6 !important;
}

.noticia-card:nth-child(odd) .noticia-card-category {
	background: transparent !important;
	color: #2252AC !important;
	border: 2px solid #2252AC !important;
}

.noticia-card:nth-child(odd) .noticia-card-title,
.noticia-card:nth-child(odd) .noticia-card-title a {
	color: #111827;
}

.noticia-card:nth-child(odd) .noticia-card-date {
	color: #2252AC;
}

.noticia-card:nth-child(odd) .noticia-card-excerpt {
	color: #1f2937;
}

.noticia-card:nth-child(odd) .esb-main-button {
	background: #2252AC;
	color: white;
}

.noticia-card:nth-child(odd) .esb-main-button:hover {
	background: #1d4ed8;
}

.noticia-card:nth-child(odd) .esb-socials a {
	color: #fff;
}

/* Card 2: Fondo azul, texto blanco */
.noticia-card:nth-child(2) {
	background: #2252AC !important;
}

.noticia-card:nth-child(2) .noticia-card-category {
	background: transparent !important;
	color: white !important;
	border: 2px solid white !important;
}

.noticia-card:nth-child(2) .noticia-card-title,
.noticia-card:nth-child(2) .noticia-card-title a {
	color: white;
}

.noticia-card:nth-child(2) .noticia-card-date {
	color: white;
}

.noticia-card:nth-child(2) .noticia-card-excerpt {
	color: white;
}

/* Botón invertido en card 2 */
.noticia-card:nth-child(2) .esb-main-button {
	background: white;
	color: #2252AC;
}

.noticia-card:nth-child(2) .esb-main-button:hover {
	background: #1d4ed8;
	color: white;
	border: 2px solid white;
}

.noticia-card:nth-child(2) .esb-socials a {
	color: #fff;
}

.noticia-card-content {
	padding: 40px 35px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	min-height: 500px;
}

.noticia-card-category {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 25px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	margin-bottom: 15px;
	align-self: flex-start;
	text-transform: uppercase;
}

.noticia-card-title {
	font-size: 24px;
	font-weight: 400;
	margin: 0 0 15px 0;
	line-height: 1.3;
}

.noticia-card-title a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s;
}

.noticia-card-title a:hover {
	opacity: 0.8;
}

.noticia-card-date {
	font-size: 16px;
	margin-bottom: 18px;
	font-weight: 400;
}

.noticia-card-excerpt {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 25px;
	flex-grow: 1;
}

.noticia-card-footer {
	margin-top: auto;
}

/* Share Button Styles en el widget */
.noticia-card-footer .esb-share-wrapper {
	display: inline-flex;
	align-items: center;
	background: #222;
	border-radius: 40px;
	padding: 6px;
	gap: 6px;
}

.noticia-card-footer .esb-main-button {
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s ease;
	white-space: nowrap;
	padding: 14px 32px;
	border-radius: 40px;
	font-size: 13px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.noticia-card-footer .esb-main-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.noticia-card-footer .esb-socials {
	display: flex;
	gap: 12px;
	padding: 0 12px;
}

.noticia-card-footer .esb-socials a {
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	opacity: 0.8;
	transition: opacity 0.2s ease;
	font-weight: 500;
}

.noticia-card-footer .esb-socials a:hover {
	opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
	.noticies-grid-widget[data-columns="4"] {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.noticies-grid-widget[data-columns="3"] {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.noticies-grid-widget[data-columns="4"],
	.noticies-grid-widget[data-columns="3"],
	.noticies-grid-widget[data-columns="2"] {
		grid-template-columns: 1fr;
	}
	
	.noticia-card-content {
		padding: 30px 25px;
		min-height: auto;
	}
	
	.noticia-card-title {
		font-size: 20px;
	}
}
