/**
 * Portal Devocão – Cards de posts
 */

.pdv-wrap {
	--pdv-gold: #c5a059;
	--pdv-gold-line: #d4af37;
	--pdv-navy: #1a243e;
	--pdv-navy-deep: #0d1b2a;
	--pdv-muted: #8a8f9c;
	--pdv-card-h: 100px;
	--pdv-cols-desktop: 3;
	--pdv-cols-tablet: 2;
	--pdv-cols-mobile: 1;
	width: 100%;
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.pdv-wrap.is-loading .pdv-grid {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.pdv-grid {
	display: grid;
	grid-template-columns: repeat(var(--pdv-cols-mobile), minmax(0, 1fr));
	gap: 1.25rem;
	justify-content: center;
	justify-items: center;
	width: 100%;
}

@media (min-width: 768px) {
	.pdv-grid {
		grid-template-columns: repeat(var(--pdv-cols-tablet), minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.pdv-grid {
		grid-template-columns: repeat(var(--pdv-cols-desktop), minmax(0, 1fr));
	}
}

/* Card */
.pdv-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	max-width: 500px;
	height: var(--pdv-card-h);
	min-height: var(--pdv-card-h);
	max-height: var(--pdv-card-h);
	padding: 0 0.85rem 0 0;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 20px rgb(0 0 0 / 10%) !important;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	overflow: hidden;
}

.pdv-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 20px 30px rgb(0 0 0 / 15%);
	color: inherit;
}

.pdv-card:focus-visible {
	outline: 2px solid var(--pdv-gold);
	outline-offset: 2px;
}

/* Fundo section-icon.svg = mesma altura do card (80px) */
.pdv-card__icon {
	position: relative;
	flex: 0 0 auto;
	width: auto;
	height: var(--pdv-card-h);
	aspect-ratio: 195 / 246;
	display: flex;
	align-items: stretch;
	justify-content: center;
	align-self: stretch;
}

.pdv-card__icon-shape {
	width: 100%;
	height: 100%;
	object-fit: fill;
	display: block;
	position: relative;
	z-index: 1;
}

/* Imagem destacada por cima do fundo fixo */
.pdv-card__icon-front-wrap {
	position: absolute;
	inset: 14% 14% 14% 4%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.pdv-card__icon-front {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.pdv-card__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.1rem;
	padding: 0.35rem 0;
	overflow: hidden;
}

.pdv-card__cat {
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--pdv-gold);
	line-height: 1.15;
	text-transform: uppercase;
}

.pdv-card__title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--pdv-navy);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pdv-card__sep {
	position: relative;
	flex-shrink: 0;
	width: 100%;
	min-height: 12px;
	height: 12px;
	margin: 0.4rem 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pdv-card__sep-line {
	display: block;
	width: 100%;
	height: 2px;
	min-height: 2px;
	max-height: 2px;
	object-fit: fill;
	object-position: center;
	flex-shrink: 0;
}

.pdv-card__sep-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
	pointer-events: none;
}

.pdv-card__excerpt {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.3;
	color: var(--pdv-muted);
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pdv-card__arrow {
	flex: 0 0 auto;
	width: 25px;
	height: 25px;
	box-sizing: border-box;
	color: var(--pdv-gold);
	border: 1.5px solid var(--pdv-gold);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 0.35rem;
}

.pdv-card__arrow svg {
	width: 15px;
	height: 15px;
	display: block;
}

/* Paginação */
.pdv-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.75rem;
	flex-wrap: wrap;
}

.pdv-pagination__list {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pdv-pagination__btn,
.pdv-pagination__num {
	appearance: none;
	border: 1px solid #e2e5eb !important;
	background: #fff;
	color: var(--pdv-navy);
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pdv-pagination__num:hover,
.pdv-pagination__btn:hover,
.pdv-pagination__num:focus,
.pdv-pagination__btn:focus {
	background: var(--pdv-navy);
	border-color: var(--pdv-navy);
	color: #fff;
}

.pdv-pagination__num.is-active {
	background: var(--pdv-navy);
	border-color: var(--pdv-navy);
	color: #fff;
	cursor: default;
}

.pdv-pagination__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.pdv-empty {
	margin: 0;
	padding: 1.5rem;
	text-align: center;
	color: var(--pdv-muted);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
