/**
 * Post Grid Col — rejilla Bootstrap, extracto 3 líneas, paginador.
 */

:root {
	--post-grid-col-accent: #f28e3d;
	--post-grid-col-radius: 10px;
}

.post-grid-col {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #111827;
	padding-top: 0.5rem;
	padding-bottom: 2rem;
	box-sizing: border-box;
}

.post-grid-col__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin-bottom: 1.5rem;
}

.post-grid-col__header-left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.post-grid-col__header-icon {
	display: block;
	width: 27px;
	height: 27px;
	object-fit: contain;
	flex-shrink: 0;
}

.post-grid-col__heading {
	font-size: clamp(1.2rem, 2.2vw, 1.65rem);
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

.post-grid-col__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fd780f;
	flex-shrink: 0;
}

.post-grid-col__cta:hover,
.post-grid-col__cta:focus-visible {
	text-decoration: underline;
	color: #dd670d;
}

.post-grid-col__cta-icon {
	display: block;
	flex-shrink: 0;
}

@media (max-width: 767.98px) {
	.post-grid-col--mobile-max-1 .post-grid-col__col:nth-child(n + 2),
	.post-grid-col--mobile-max-2 .post-grid-col__col:nth-child(n + 3),
	.post-grid-col--mobile-max-3 .post-grid-col__col:nth-child(n + 4),
	.post-grid-col--mobile-max-4 .post-grid-col__col:nth-child(n + 5),
	.post-grid-col--mobile-max-5 .post-grid-col__col:nth-child(n + 6),
	.post-grid-col--mobile-max-6 .post-grid-col__col:nth-child(n + 7),
	.post-grid-col--mobile-max-7 .post-grid-col__col:nth-child(n + 8),
	.post-grid-col--mobile-max-8 .post-grid-col__col:nth-child(n + 9),
	.post-grid-col--mobile-max-9 .post-grid-col__col:nth-child(n + 10),
	.post-grid-col--mobile-max-10 .post-grid-col__col:nth-child(n + 11),
	.post-grid-col--mobile-max-11 .post-grid-col__col:nth-child(n + 12),
	.post-grid-col--mobile-max-12 .post-grid-col__col:nth-child(n + 13) {
		display: none !important;
	}
}

.post-grid-col__card {
	display: flex;
	flex-direction: column;
}

.post-grid-col__media {
	display: block;
	position: relative;
	border-radius: var(--post-grid-col-radius);
	overflow: hidden;
	background: #e5e7eb;
	margin-bottom: 0.75rem;
	text-decoration: none;
}

.post-grid-col__item-icon {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 35px;
	height: 35px;
	z-index: 1;
	object-fit: contain;
	pointer-events: none;
}

.post-grid-col__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
	transition: opacity 0.2s ease;
}

.post-grid-col__media:hover .post-grid-col__img {
	opacity: 0.92;
}

.post-grid-col__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	min-height: 9rem;
	background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

.post-grid-col__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.4rem;
}

.post-grid-col__title a {
	color: inherit;
	text-decoration: none;
}

.post-grid-col__title a:hover {
	text-decoration: underline;
}

.post-grid-col__author {
	font-size: 0.875rem;
	margin: 0 0 0.4rem;
}

.post-grid-col__author-name {
	font-weight: 700;
}

.post-grid-col__excerpt p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #374151;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
}

.post-grid-col__empty {
	text-align: center;
	color: #6b7280;
	margin: 1rem 0;
}

/* Paginador */
.post-grid-col__nav {
	margin-top: 2rem;
	text-align: center;
}

.post-grid-col__pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 6px;
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
}

.post-grid-col__pager-control,
.post-grid-col__pager-num,
.post-grid-col__pager-gap {
	list-style: none;
	margin: 0;
	padding: 0;
}

.post-grid-col__pager-btn,
.post-grid-col__pager-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 10px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	color: #111827;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.post-grid-col__pager-btn:hover,
.post-grid-col__pager-page:hover {
	background: #e5e7eb;
	color: #111827;
}

.post-grid-col__pager-btn.is-disabled {
	color: #9ca3af;
	background: #f9fafb;
	border-color: #e5e7eb;
	cursor: not-allowed;
	opacity: 0.85;
}

.post-grid-col__pager-page.is-active {
	background: var(--post-grid-col-accent);
	color: #fff;
	border-color: var(--post-grid-col-accent);
}

.post-grid-col__pager-gap span {
	padding: 0 4px;
	color: #9ca3af;
}

.post-grid-col__range {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: #374151;
}
