/* ============================================================
 * v3.1.2 — Últimas Notícias (PREMIUM A+++)
 * Layout: thumb 200px à esquerda + título/excerpt/meta à direita
 * Refinos: ranking numerado, badge dourada, hover cinematográfico,
 * separador degradê, tipografia neo-grotesca, dark accents.
 * Mantém o mesmo HTML do front-page.php — só estilo.
 * ============================================================ */

.cdp-latest{
	background:
		radial-gradient(1200px 600px at 100% 0%, rgba(31,78,163,.045), transparent 60%),
		radial-gradient(900px 500px at 0% 100%, rgba(212,175,55,.04), transparent 60%),
		linear-gradient(180deg,#fafbfd 0%, #f4f6fa 100%);
	padding:clamp(36px,5vw,72px) 0;
	border-top:1px solid rgba(14,26,43,.08);
	position:relative;
}
.cdp-latest::before{
	content:"";
	position:absolute; inset:0 0 auto 0; height:3px;
	background:linear-gradient(90deg,#1f4ea3 0%, #d4af37 50%, #0E1A2B 100%);
	opacity:.85;
}

/* ----- Cabeçalho da seção ----- */
.cdp-latest .cdp-section-title.cdp-latest__title-bar{
	display:flex;
	align-items:center;
	gap:14px;
	font-family:'Bebas Neue','Inter Tight','Inter',system-ui,sans-serif;
	font-size:clamp(24px,2.4vw,34px);
	font-weight:800;
	letter-spacing:.02em;
	text-transform:uppercase;
	color:#0E1A2B;
	margin:0 0 26px;
	padding-bottom:16px;
	position:relative;
	border:none;
}
.cdp-latest .cdp-section-title.cdp-latest__title-bar::after{
	content:"";
	position:absolute; left:0; right:0; bottom:0; height:2px;
	background:linear-gradient(90deg,#0E1A2B 0%, #1f4ea3 35%, transparent 75%);
	border-radius:2px;
}
.cdp-latest__bar{
	display:inline-block;
	width:6px; height:30px;
	background:linear-gradient(180deg,#d4af37 0%, #1f4ea3 50%, #0E1A2B 100%);
	border-radius:3px;
	flex-shrink:0;
	box-shadow:0 4px 12px rgba(31,78,163,.35);
}
.cdp-latest .cdp-section-title .more{
	margin-left:auto;
	font-family:'Inter Tight','Inter',system-ui,sans-serif;
	font-size:13px;
	font-weight:700;
	color:#1f4ea3;
	text-decoration:none;
	letter-spacing:.05em;
	text-transform:uppercase;
	padding:8px 14px;
	border:1.5px solid rgba(31,78,163,.25);
	border-radius:999px;
	transition:all .25s ease;
	background:#fff;
}
.cdp-latest .cdp-section-title .more:hover{
	color:#fff;
	background:#0E1A2B;
	border-color:#0E1A2B;
	transform:translateY(-1px);
	box-shadow:0 8px 20px rgba(14,26,43,.18);
}

/* ----- Lista ----- */
.cdp-latest__list{
	list-style:none;
	margin:0; padding:0;
	display:flex;
	flex-direction:column;
	gap:0;
	counter-reset:cdpLatest;
}

.cdp-latest__item{
	counter-increment:cdpLatest;
	display:grid;
	grid-template-columns:210px minmax(0,1fr);
	gap:24px;
	padding:22px;
	border-radius:14px;
	background:#fff;
	border:1px solid rgba(14,26,43,.06);
	box-shadow:0 1px 0 rgba(14,26,43,.02);
	margin-bottom:14px;
	align-items:stretch;
	position:relative;
	transition:transform .35s cubic-bezier(.2,.7,.2,1),
	           box-shadow .35s ease,
	           border-color .35s ease;
	overflow:hidden;
}
.cdp-latest__item::before{
	content:"";
	position:absolute; left:0; top:0; bottom:0; width:3px;
	background:linear-gradient(180deg,#1f4ea3 0%, #0E1A2B 100%);
	opacity:0; transition:opacity .3s ease;
}
.cdp-latest__item:hover{
	transform:translateY(-3px);
	box-shadow:0 18px 40px -18px rgba(14,26,43,.22), 0 6px 14px -6px rgba(31,78,163,.12);
	border-color:rgba(31,78,163,.2);
}
.cdp-latest__item:hover::before{ opacity:1; }
.cdp-latest__item:last-child{ margin-bottom:0; }

/* Ranking numerado discreto */
.cdp-latest__item .cdp-latest__body::after{
	content:counter(cdpLatest,decimal-leading-zero);
	position:absolute;
	top:14px; right:18px;
	font-family:'Bebas Neue','Inter Tight',system-ui,sans-serif;
	font-size:34px;
	font-weight:800;
	line-height:1;
	color:transparent;
	-webkit-text-stroke:1.4px rgba(31,78,163,.18);
	letter-spacing:.04em;
	pointer-events:none;
	transition:all .3s ease;
}
.cdp-latest__item:hover .cdp-latest__body::after{
	-webkit-text-stroke-color:rgba(212,175,55,.55);
	transform:scale(1.05);
}

/* ----- Thumb ----- */
.cdp-latest__thumb{
	display:block;
	position:relative;
	width:100%;
	aspect-ratio:16/10;
	overflow:hidden;
	border-radius:10px;
	background:#0E1A2B;
	box-shadow:0 6px 18px -8px rgba(14,26,43,.35);
}
.cdp-latest__thumb::after{
	content:"";
	position:absolute; inset:0;
	background:linear-gradient(180deg,transparent 55%, rgba(14,26,43,.45) 100%);
	opacity:.7;
	transition:opacity .35s ease;
	pointer-events:none;
}
.cdp-latest__thumb img{
	width:100%; height:100%;
	object-fit:cover;
	display:block;
	transition:transform .6s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.cdp-latest__item:hover .cdp-latest__thumb img{
	transform:scale(1.07);
	filter:saturate(1.08);
}
.cdp-latest__item:hover .cdp-latest__thumb::after{ opacity:.45; }
.cdp-latest__thumb-fb{
	width:100%; height:100%;
	background:
		radial-gradient(circle at 30% 30%, rgba(212,175,55,.25), transparent 60%),
		linear-gradient(135deg,#1f4ea3,#0E1A2B);
}

/* ----- Body ----- */
.cdp-latest__body{
	min-width:0;
	position:relative;
	padding-right:56px; /* espaço para o número de ranking */
	display:flex;
	flex-direction:column;
	justify-content:center;
}

.cdp-latest__headline{
	font-family:'Inter Tight','Inter','Montserrat',system-ui,sans-serif !important;
	font-size:clamp(18px,1.55vw,23px) !important;
	font-weight:800 !important;
	line-height:1.2 !important;
	letter-spacing:-.018em !important;
	margin:0 0 10px !important;
}
.cdp-latest__headline a{
	color:#0E1A2B !important;
	text-decoration:none !important;
	background:none !important;
	background-image:linear-gradient(90deg,#1f4ea3,#1f4ea3) !important;
	background-size:0% 2px !important;
	background-repeat:no-repeat !important;
	background-position:0 100% !important;
	transition:background-size .35s ease, color .25s ease !important;
	padding-bottom:2px !important;
}
.cdp-latest__item:hover .cdp-latest__headline a,
.cdp-latest__headline a:hover{
	color:#1f4ea3 !important;
	background-size:100% 2px !important;
	text-decoration:none !important;
}

.cdp-latest__excerpt{
	font-family:'Inter','Roboto',system-ui,sans-serif;
	font-size:15px;
	line-height:1.5;
	color:#4a5568;
	margin:0 0 12px;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
}

.cdp-latest__meta{
	font-family:'Inter','Roboto',system-ui,sans-serif;
	font-size:12px;
	color:#7a8699;
	display:flex;
	gap:8px;
	flex-wrap:wrap;
	align-items:center;
	letter-spacing:.02em;
}
.cdp-latest__meta time{
	color:#0E1A2B;
	font-weight:700;
}
.cdp-latest__cat{
	display:inline-flex;
	align-items:center;
	gap:4px;
	font-weight:700;
	font-size:11px;
	text-transform:uppercase;
	letter-spacing:.08em;
	color:#1f4ea3;
	background:linear-gradient(180deg, rgba(31,78,163,.10), rgba(31,78,163,.04));
	border:1px solid rgba(31,78,163,.18);
	padding:3px 9px;
	border-radius:999px;
}
.cdp-latest__cat::first-letter{ text-transform:uppercase; }

/* ----- Destaque do primeiro item (card hero) ----- */
.cdp-latest__item:first-child{
	grid-template-columns:300px minmax(0,1fr);
	background:linear-gradient(135deg,#fff 0%, #f8faff 100%);
	border-color:rgba(31,78,163,.18);
	box-shadow:0 10px 30px -18px rgba(14,26,43,.18);
}
.cdp-latest__item:first-child::before{ opacity:1; width:4px; }
.cdp-latest__item:first-child .cdp-latest__headline{
	font-size:clamp(20px,1.85vw,28px) !important;
}
.cdp-latest__item:first-child .cdp-latest__thumb{
	aspect-ratio:16/11;
	box-shadow:0 12px 32px -14px rgba(14,26,43,.45);
}

/* ----- Responsivo ----- */
@media (max-width:900px){
	.cdp-latest__item{
		grid-template-columns:160px minmax(0,1fr);
		gap:16px;
		padding:16px;
	}
	.cdp-latest__item:first-child{ grid-template-columns:200px minmax(0,1fr); }
	.cdp-latest__body{ padding-right:44px; }
	.cdp-latest__item .cdp-latest__body::after{ font-size:28px; top:10px; right:12px; }
}

@media (max-width:560px){
	.cdp-latest{ padding:32px 0; }
	.cdp-latest__item,
	.cdp-latest__item:first-child{
		grid-template-columns:1fr;
		gap:12px;
		padding:14px;
		margin-bottom:12px;
	}
	.cdp-latest__thumb{ aspect-ratio:16/9; }
	.cdp-latest__body{ padding-right:0; }
	.cdp-latest__item .cdp-latest__body::after{
		position:static;
		display:block;
		font-size:22px;
		margin-bottom:4px;
		-webkit-text-stroke-width:1px;
	}
	.cdp-latest__headline,
	.cdp-latest__item:first-child .cdp-latest__headline{
		font-size:17px !important;
		line-height:1.25 !important;
	}
	.cdp-latest__excerpt{ font-size:13.5px; -webkit-line-clamp:3; }
	.cdp-latest__meta{ font-size:11.5px; }
}

/* Reduce motion */
@media (prefers-reduced-motion:reduce){
	.cdp-latest__item,
	.cdp-latest__thumb img,
	.cdp-latest__headline a{
		transition:none !important;
	}
	.cdp-latest__item:hover{ transform:none; }
	.cdp-latest__item:hover .cdp-latest__thumb img{ transform:none; }
}
