/* ===============================
   POSTS / NOTICIAS PAGE
================================ */

.posts-page {
	position: relative;
	z-index: 20;
	padding-top: 70px;
	padding-bottom: 80px;
	overflow: visible;
}

.posts-wrapper {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	position: relative;
}

/* ===============================
   HEADER
================================ */

.posts-title {
	margin-bottom: 8px;
	font-size: 54px;
	line-height: 1.05;
	font-weight: 950;
	letter-spacing: 0.5px;
	color: #fff;
	text-shadow:
		0 0 10px rgba(183, 31, 31, 0.80),
		0 0 24px rgba(183, 31, 31, 0.40),
		0 3px 8px rgba(0, 0, 0, 0.75);
}

.posts-subtitle {
	max-width: 760px;
	margin: 18px auto 34px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 17px;
	line-height: 1.6;
	font-weight: 600;
}

/* ===============================
   PANEL
================================ */

.posts-panel {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding: 30px;
	border-radius: 18px;
	background:
		linear-gradient(180deg, rgba(18, 18, 18, 0.94), rgba(6, 6, 6, 0.97));
	border: 1px solid rgba(183, 31, 31, 0.30);
	box-shadow:
		0 18px 42px rgba(0, 0, 0, 0.52),
		0 0 24px rgba(183, 31, 31, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.posts-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at top left, rgba(183, 31, 31, 0.18), transparent 36%),
		radial-gradient(circle at bottom right, rgba(212, 55, 55, 0.10), transparent 35%);
	z-index: 1;
}

.posts-panel > * {
	position: relative;
	z-index: 2;
}

.posts-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.posts-panel-header h3 {
	margin: 0 0 4px;
	color: #fff;
	font-size: 23px;
	font-weight: 950;
}

.posts-panel-header span {
	color: rgba(255, 255, 255, 0.62);
	font-size: 13px;
	font-weight: 650;
}

.posts-count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 13px;
	border-radius: 999px;
	background: rgba(183, 31, 31, 0.12);
	border: 1px solid rgba(183, 31, 31, 0.30);
	color: #fff;
	font-size: 14px;
	font-weight: 950;
}

.posts-count i {
	color: #d43737;
	filter: drop-shadow(0 0 8px rgba(183, 31, 31, 0.35));
}

/* ===============================
   LIST
================================ */

.posts-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.post-card {
	position: relative;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 22px;
	padding: 18px;
	border-radius: 16px;
	background:
		linear-gradient(180deg, rgba(10, 10, 10, 0.86), rgba(0, 0, 0, 0.66));
	border: 1px solid rgba(255, 255, 255, 0.075);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
	overflow: hidden;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease,
		box-shadow 0.2s ease;
}

.post-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, #d43737, #8f1515);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.post-card:hover {
	transform: translateY(-2px);
	background:
		linear-gradient(180deg, rgba(24, 12, 12, 0.88), rgba(0, 0, 0, 0.70));
	border-color: rgba(212, 55, 55, 0.30);
	box-shadow:
		0 12px 28px rgba(0, 0, 0, 0.34),
		0 0 18px rgba(183, 31, 31, 0.14);
}

.post-card:hover::before {
	opacity: 1;
}

/* ===============================
   IMAGE
================================ */

.post-image-link {
	display: block;
	text-decoration: none;
}

.post-image {
	position: relative;
	width: 100%;
	height: 155px;
	border-radius: 14px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	border: 1px solid rgba(183, 31, 31, 0.24);
	box-shadow:
		0 10px 22px rgba(0, 0, 0, 0.38),
		0 0 16px rgba(183, 31, 31, 0.10);
	transition:
		transform 0.25s ease,
		filter 0.25s ease;
}

.post-card:hover .post-image {
	transform: scale(1.015);
	filter: brightness(1.08);
}

.post-image-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62)),
		radial-gradient(circle at top left, rgba(183, 31, 31, 0.18), transparent 44%);
	pointer-events: none;
}

.post-category {
	position: absolute;
	left: 12px;
	top: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 28px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(183, 31, 31, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 11px;
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: 0.35px;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* ===============================
   CONTENT
================================ */

.post-content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	padding: 3px 0;
}

.post-title-link {
	display: inline-block;
	text-decoration: none;
}

.post-title-link h3 {
	margin: 0 0 12px;
	color: #fff;
	font-size: 25px;
	line-height: 1.22;
	font-weight: 950;
	text-shadow:
		0 0 10px rgba(183, 31, 31, 0.18),
		0 3px 6px rgba(0, 0, 0, 0.65);
	transition:
		color 0.2s ease,
		text-shadow 0.2s ease;
}

.post-title-link:hover h3 {
	color: #ffcdcd;
	text-shadow:
		0 0 12px rgba(183, 31, 31, 0.45),
		0 3px 6px rgba(0, 0, 0, 0.75);
}

.post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.post-meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 31px;
	padding: 6px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.075);
	color: rgba(255, 255, 255, 0.68);
	font-size: 12px;
	font-weight: 800;
}

.post-meta i {
	color: #d43737;
	font-size: 13px;
	filter: drop-shadow(0 0 7px rgba(183, 31, 31, 0.35));
}

/* ===============================
   ACTION
================================ */

.post-actions {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.post-read-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	padding: 8px 15px;
	border-radius: 999px;
	background:
		linear-gradient(180deg, rgba(183, 31, 31, 0.95), rgba(108, 18, 18, 0.98));
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff !important;
	text-decoration: none;
	font-size: 13px;
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	box-shadow:
		0 8px 18px rgba(0, 0, 0, 0.32),
		0 0 16px rgba(183, 31, 31, 0.20),
		inset 0 1px 0 rgba(255, 255, 255, 0.09);
	transition:
		transform 0.2s ease,
		filter 0.2s ease,
		box-shadow 0.2s ease;
}

.post-read-btn i {
	font-size: 18px;
	line-height: 1;
}

.post-read-btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
	box-shadow:
		0 10px 22px rgba(0, 0, 0, 0.38),
		0 0 20px rgba(183, 31, 31, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ===============================
   EMPTY
================================ */

.posts-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	padding: 55px 20px;
	text-align: center;
	border-radius: 15px;
	background: rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.07);
}

.posts-empty > i {
	font-size: 54px;
	color: #d43737;
	filter: drop-shadow(0 0 12px rgba(183, 31, 31, 0.45));
}

.posts-empty h3 {
	margin: 18px 0 8px;
	color: #fff;
	font-size: 24px;
	font-weight: 950;
}

.posts-empty p {
	margin: 0 auto;
	max-width: 420px;
	color: rgba(255, 255, 255, 0.66);
	font-size: 14px;
	font-weight: 600;
}

/* ===============================
   RESPONSIVO
================================ */

@media (max-width: 991px) {
	.posts-page {
		padding-top: 45px;
		padding-bottom: 60px;
	}

	.posts-title {
		font-size: 46px;
	}

	.posts-subtitle {
		font-size: 15px;
	}

	.posts-panel {
		padding: 22px;
	}

	.post-card {
		grid-template-columns: 240px 1fr;
		gap: 18px;
	}

	.post-image {
		height: 145px;
	}

	.post-title-link h3 {
		font-size: 22px;
	}
}

@media (max-width: 768px) {
	.posts-panel-header {
		flex-direction: column;
		text-align: center;
	}

	.post-card {
		grid-template-columns: 1fr;
	}

	.post-image {
		height: 210px;
	}

	.post-content {
		text-align: center;
		align-items: center;
	}

	.post-meta {
		justify-content: center;
	}

	.post-actions {
		justify-content: center;
	}
}

@media (max-width: 576px) {
	.posts-page {
		padding-top: 32px;
		padding-bottom: 45px;
	}

	.posts-title {
		font-size: 38px;
	}

	.posts-subtitle {
		font-size: 14px;
		margin-bottom: 24px;
	}

	.posts-panel {
		padding: 15px;
		border-radius: 15px;
	}

	.post-card {
		padding: 14px;
		border-radius: 14px;
	}

	.post-image {
		height: 180px;
		border-radius: 12px;
	}

	.post-title-link h3 {
		font-size: 20px;
	}

	.post-meta span {
		font-size: 11px;
	}

	.posts-empty {
		padding: 42px 15px;
	}

	.posts-empty h3 {
		font-size: 21px;
	}
}

/* ===============================
   POST DETAIL PAGE
================================ */

.post-detail-page {
	position: relative;
	z-index: 20;
	padding-top: 70px;
	padding-bottom: 80px;
	overflow: visible;
}

.post-detail-wrapper {
	width: 100%;
	max-width: 1050px;
	margin: 0 auto;
	position: relative;
}

/* ===============================
   HEADER
================================ */

.post-detail-header {
	margin-bottom: 34px;
}

.post-detail-category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 32px;
	margin-bottom: 18px;
	padding: 7px 14px;
	border-radius: 999px;
	background:
		linear-gradient(180deg, rgba(183, 31, 31, 0.34), rgba(75, 10, 10, 0.52));
	border: 1px solid rgba(255, 209, 102, 0.34);
	color: #ffd166;
	font-size: 11px;
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: 0.42px;
	box-shadow:
		0 6px 16px rgba(0, 0, 0, 0.42),
		0 0 14px rgba(183, 31, 31, 0.24),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.post-detail-category i {
	color: #ffd166;
	filter: drop-shadow(0 0 7px rgba(255, 209, 102, 0.26));
}

.post-detail-title {
	max-width: 940px;
	margin: 0 auto 8px;
	color: #fff;
	font-size: 52px;
	line-height: 1.08;
	font-weight: 950;
	letter-spacing: 0.35px;
	text-shadow:
		0 0 10px rgba(183, 31, 31, 0.80),
		0 0 24px rgba(183, 31, 31, 0.40),
		0 3px 8px rgba(0, 0, 0, 0.75);
}

.post-detail-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.post-detail-meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 32px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.075);
	color: rgba(255, 255, 255, 0.70);
	font-size: 12px;
	font-weight: 850;
}

.post-detail-meta i {
	color: #d43737;
	font-size: 13px;
	filter: drop-shadow(0 0 7px rgba(183, 31, 31, 0.35));
}

/* ===============================
   PANEL
================================ */

.post-detail-panel {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding: 30px;
	border-radius: 18px;
	background:
		linear-gradient(180deg, rgba(18, 18, 18, 0.94), rgba(6, 6, 6, 0.97));
	border: 1px solid rgba(183, 31, 31, 0.30);
	box-shadow:
		0 18px 42px rgba(0, 0, 0, 0.52),
		0 0 24px rgba(183, 31, 31, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.post-detail-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at top left, rgba(183, 31, 31, 0.18), transparent 36%),
		radial-gradient(circle at bottom right, rgba(212, 55, 55, 0.10), transparent 35%);
	z-index: 1;
}

.post-detail-panel > * {
	position: relative;
	z-index: 2;
}

/* ===============================
   COVER IMAGE
================================ */

.post-detail-cover {
	position: relative;
	width: 100%;
	height: 360px;
	margin-bottom: 28px;
	border-radius: 16px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	border: 1px solid rgba(183, 31, 31, 0.28);
	box-shadow:
		0 14px 28px rgba(0, 0, 0, 0.42),
		0 0 20px rgba(183, 31, 31, 0.12);
}

.post-detail-cover-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.58)),
		radial-gradient(circle at top left, rgba(183, 31, 31, 0.18), transparent 42%);
	pointer-events: none;
}

/* ===============================
   CONTENT
================================ */

.post-detail-content {
	padding: 8px 4px 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 16px;
	line-height: 1.78;
	font-weight: 500;
}

.post-detail-content h1,
.post-detail-content h2,
.post-detail-content h3,
.post-detail-content h4,
.post-detail-content h5,
.post-detail-content h6 {
	color: #fff;
	font-weight: 950;
	line-height: 1.22;
	margin: 26px 0 14px;
	text-shadow:
		0 0 10px rgba(183, 31, 31, 0.20),
		0 3px 6px rgba(0, 0, 0, 0.55);
}

.post-detail-content h1 {
	font-size: 34px;
}

.post-detail-content h2 {
	font-size: 29px;
}

.post-detail-content h3 {
	font-size: 24px;
}

.post-detail-content p {
	margin: 0 0 18px;
}

.post-detail-content a {
	color: #ff8b8b;
	font-weight: 850;
	text-decoration: none;
	border-bottom: 1px solid rgba(212, 55, 55, 0.35);
}

.post-detail-content a:hover {
	color: #fff;
	border-color: rgba(212, 55, 55, 0.75);
	text-shadow: 0 0 8px rgba(183, 31, 31, 0.55);
}

.post-detail-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 22px auto;
	border-radius: 14px;
	border: 1px solid rgba(183, 31, 31, 0.22);
	box-shadow:
		0 12px 28px rgba(0, 0, 0, 0.42),
		0 0 18px rgba(183, 31, 31, 0.10);
}

.post-detail-content ul,
.post-detail-content ol {
	margin: 0 0 22px 0;
	padding-left: 24px;
}

.post-detail-content li {
	margin-bottom: 8px;
}

.post-detail-content blockquote {
	margin: 24px 0;
	padding: 18px 20px;
	border-radius: 14px;
	background: rgba(183, 31, 31, 0.09);
	border-left: 4px solid #d43737;
	color: rgba(255, 255, 255, 0.86);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.post-detail-content table {
	width: 100%;
	margin: 24px 0;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-detail-content table th,
.post-detail-content table td {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	color: rgba(255, 255, 255, 0.78);
}

.post-detail-content table th {
	background: rgba(183, 31, 31, 0.18);
	color: #fff;
	font-weight: 950;
}

.post-detail-content table tr:last-child td {
	border-bottom: 0;
}

.post-detail-content hr {
	margin: 28px 0;
	border: 0;
	height: 1px;
	background:
		linear-gradient(90deg, transparent, rgba(183, 31, 31, 0.42), transparent);
	opacity: 1;
}

/* ===============================
   FOOTER
================================ */

.post-detail-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.post-detail-back-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	padding: 9px 18px;
	border-radius: 999px;
	background:
		linear-gradient(180deg, rgba(183, 31, 31, 0.95), rgba(108, 18, 18, 0.98));
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff !important;
	text-decoration: none;
	font-size: 13px;
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	box-shadow:
		0 8px 18px rgba(0, 0, 0, 0.32),
		0 0 16px rgba(183, 31, 31, 0.20),
		inset 0 1px 0 rgba(255, 255, 255, 0.09);
	transition:
		transform 0.2s ease,
		filter 0.2s ease,
		box-shadow 0.2s ease;
}

.post-detail-back-btn i {
	font-size: 20px;
	line-height: 1;
}

.post-detail-back-btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
	box-shadow:
		0 10px 22px rgba(0, 0, 0, 0.38),
		0 0 20px rgba(183, 31, 31, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ===============================
   RESPONSIVO
================================ */

@media (max-width: 991px) {
	.post-detail-page {
		padding-top: 45px;
		padding-bottom: 60px;
	}

	.post-detail-title {
		font-size: 44px;
	}

	.post-detail-panel {
		padding: 24px;
	}

	.post-detail-cover {
		height: 300px;
	}

	.post-detail-content {
		font-size: 15px;
	}
}

@media (max-width: 576px) {
	.post-detail-page {
		padding-top: 32px;
		padding-bottom: 45px;
	}

	.post-detail-title {
		font-size: 34px;
	}

	.post-detail-panel {
		padding: 16px;
		border-radius: 15px;
	}

	.post-detail-cover {
		height: 210px;
		border-radius: 13px;
		margin-bottom: 22px;
	}

	.post-detail-content {
		font-size: 14px;
		line-height: 1.7;
	}

	.post-detail-content h1 {
		font-size: 27px;
	}

	.post-detail-content h2 {
		font-size: 24px;
	}

	.post-detail-content h3 {
		font-size: 21px;
	}

	.post-detail-content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.post-detail-back-btn {
		width: 100%;
	}
}