/* ==========================================================================
   Home Redesign (Ranzim Inspired)
   ========================================================================== */

/* Globals for Home */
.nio-home-wrapper {
	width: min(100% - (var(--nio-gutter) * 2), var(--nio-content-width));
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 40px; /* Base rhythm */
	padding-bottom: 60px;
}

.nio-section-title {
	display: flex;
	align-items: center;
	margin-bottom: 24px;
	position: relative;
}
.nio-section-title__text {
	font-weight: 700;
	font-size: 20px;
	text-transform: uppercase;
	color: var(--nio-graphite);
	padding-right: 15px;
	background: var(--nio-white);
	z-index: 2;
}
.nio-section-title__line {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: var(--nio-color-line);
	z-index: 1;
}
.nio-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 60px;
	height: 2px;
	background: var(--nio-orange);
	z-index: 2;
}

/* Category Tag */
.nio-category-tag {
	display: inline-block;
	background: var(--nio-orange);
	color: var(--nio-white);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 8px;
	margin-bottom: 12px;
	letter-spacing: 0.05em;
}

/* 1. Ticker / Breaking News */
.nio-breaking-news {
	background: var(--nio-white);
	border: 1px solid var(--nio-color-line);
	border-radius: 4px;
	margin-top: 15px;
	overflow: hidden;
}
.nio-breaking-news__container {
	display: flex;
	align-items: center;
	min-height: 48px;
}
.nio-breaking-news__label {
	background: #181c20;
	color: var(--nio-white);
	font-weight: 800;
	font-size: 12px;
	padding: 12px 16px;
	text-transform: uppercase;
	white-space: nowrap;
	letter-spacing: 0.05em;
	display: inline-flex;
	align-items: center;
	align-self: stretch;
	flex-shrink: 0;
	z-index: 2;
	box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
}
.nio-breaking-news__ticker {
	flex: 1;
	overflow: hidden;
	padding: 4px 15px;
	position: relative;
}
.nio-breaking-news__list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	animation: nio-ticker 45s linear infinite;
	white-space: nowrap;
	align-items: center;
}
.nio-breaking-news__list:hover {
	animation-play-state: paused;
}
.nio-breaking-news__item {
	display: flex;
	align-items: center;
	font-size: 13.5px;
	flex-shrink: 0;
}
.nio-breaking-news__link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--nio-graphite);
	font-weight: 500;
	transition: color 0.2s ease;
}
.nio-breaking-news__link:hover {
	color: var(--nio-orange);
}
.nio-breaking-news__thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 34px;
	border-radius: 4px;
	overflow: hidden;
	margin-right: 10px;
	flex-shrink: 0;
	background: var(--nio-gray-bg);
	border: 1px solid rgba(0, 0, 0, 0.12);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.nio-breaking-news__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nio-breaking-news__link:hover .nio-breaking-news__img {
	transform: scale(1.15);
}
.nio-breaking-news__cat {
	font-weight: 700;
	color: var(--nio-orange);
	margin-right: 8px;
	transition: color 0.3s ease;
}
.nio-breaking-news__title {
	font-weight: 500;
}
.nio-breaking-news__separator {
	margin: 0 18px;
	color: var(--nio-color-line);
	font-size: 14px;
}
@keyframes nio-ticker {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* 2. Hero Section (1 Left Highlight + Right Subgrid: 2 Top + 1 Bottom Wide) */
.nio-hero {
	margin-top: 20px;
	margin-bottom: 20px;
}
.nio-hero__container {
	width: 100%;
}
.nio-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 992px) {
	.nio-hero__grid {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
		height: 480px;
	}
	.nio-hero__main {
		height: 100%;
		min-height: 0;
	}
	.nio-hero__main .nio-news-card-featured {
		height: 100%;
		min-height: 100%;
	}
	.nio-hero__sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr 1fr;
		gap: 16px;
		height: 100%;
		min-height: 0;
	}
	.nio-hero__card-side--1 {
		grid-column: 1;
		grid-row: 1;
		height: 100%;
		min-height: 0;
	}
	.nio-hero__card-side--2 {
		grid-column: 2;
		grid-row: 1;
		height: 100%;
		min-height: 0;
	}
	.nio-hero__card-side--3 {
		grid-column: 1 / span 2;
		grid-row: 2;
		height: 100%;
		min-height: 0;
	}
	/* Fallbacks if fewer than 3 side cards exist */
	.nio-hero__sidebar > :only-child {
		grid-column: 1 / -1;
		grid-row: 1 / -1;
	}
	.nio-hero__sidebar > :nth-child(1):nth-last-child(2) {
		grid-column: 1;
		grid-row: 1 / -1;
	}
	.nio-hero__sidebar > :nth-child(2):nth-last-child(1) {
		grid-column: 2;
		grid-row: 1 / -1;
	}
}

@media (min-width: 640px) and (max-width: 991px) {
	.nio-hero__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.nio-hero__main {
		height: 350px;
	}
	.nio-hero__sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
	.nio-hero__card-side--1,
	.nio-hero__card-side--2 {
		height: 210px;
		min-height: 210px;
	}
	.nio-hero__card-side--3 {
		grid-column: 1 / span 2;
		height: 210px;
		min-height: 210px;
	}
}

@media (max-width: 639px) {
	.nio-hero__grid {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.nio-hero__main {
		height: 280px;
	}
	.nio-hero__sidebar {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.nio-hero__card-side {
		height: 200px;
		min-height: 200px;
	}
}

/* Hero & Featured Card Component */
.nio-news-card-featured {
	position: relative;
	overflow: hidden;
	height: 100%;
	border-radius: 3px;
	background-color: var(--nio-navy);
}
.nio-news-card-featured__link {
	display: block;
	position: absolute;
	inset: 0;
	text-decoration: none;
	color: var(--nio-white);
}
.nio-news-card-featured__thumb {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
}
.nio-news-card-featured__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nio-news-card-featured:hover .nio-news-card-featured__image {
	transform: scale(1.06);
}
.nio-news-card-featured__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.25) 0%,
		rgba(0, 0, 0, 0.05) 35%,
		rgba(0, 0, 0, 0.65) 70%,
		rgba(0, 0, 0, 0.92) 100%
	);
	transition: background 0.3s ease;
}
.nio-news-card-featured:hover .nio-news-card-featured__overlay {
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.3) 0%,
		rgba(0, 0, 0, 0.1) 35%,
		rgba(0, 0, 0, 0.75) 70%,
		rgba(0, 0, 0, 0.96) 100%
	);
}

/* Badges: category tag (top-left) + lightning flash (top-right) */
.nio-news-card-featured__badges {
	position: absolute;
	top: 14px;
	left: 14px;
	right: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 3;
	pointer-events: none;
}
.nio-news-card-featured__tag {
	display: inline-block;
	background: #181c20;
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 4px 8px;
	border-radius: 2px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
	line-height: 1.2;
	max-width: 140px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nio-news-card-featured__flash-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: var(--nio-orange);
	color: #ffffff;
	border-radius: 2px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
	margin-left: auto;
}
.nio-news-card-featured__content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 14px 16px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
@media (min-width: 992px) {
	.nio-hero__card-main .nio-news-card-featured__content {
		padding: 24px;
	}
	.nio-hero__card-side--3 .nio-news-card-featured__content {
		padding: 16px 20px;
	}
}
.nio-news-card-featured__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 6px;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.nio-news-card-featured__author {
	font-weight: 700;
	color: #ffffff;
}
.nio-news-card-featured__dot {
	color: rgba(255, 255, 255, 0.6);
	font-size: 9px;
}
.nio-news-card-featured__title {
	color: #ffffff;
	font-family: var(--nio-font-headline);
	font-weight: 700;
	margin: 0;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
	transition: color 0.2s ease;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nio-news-card-featured:hover .nio-news-card-featured__title {
	color: #ffe6d0;
}

/* Scaled Typography per variant */
.nio-hero__card-main .nio-news-card-featured__title {
	font-size: clamp(20px, 2.2vw, 28px);
	line-height: 1.25;
	-webkit-line-clamp: 3;
}
.nio-hero__card-side--1 .nio-news-card-featured__title,
.nio-hero__card-side--2 .nio-news-card-featured__title {
	font-size: clamp(13px, 1.1vw, 15px);
	line-height: 1.25;
	-webkit-line-clamp: 2;
}
.nio-hero__card-side--3 .nio-news-card-featured__title {
	font-size: clamp(15px, 1.4vw, 18px);
	line-height: 1.25;
	-webkit-line-clamp: 2;
}

/* Category section featured card fallback */
.nio-category-asymmetric .nio-news-card-featured {
	min-height: 320px;
}
.nio-category-asymmetric .nio-news-card-featured__title {
	font-size: clamp(18px, 1.8vw, 24px);
	line-height: 1.25;
	-webkit-line-clamp: 3;
}

/* 3. Horizontal Card */
.nio-news-card-horizontal {
	display: flex;
	gap: 15px;
	background: var(--nio-white);
}
.nio-news-card-horizontal__thumb {
	flex: 0 0 120px;
	height: 90px;
	overflow: hidden;
}
.nio-news-card-horizontal__thumb > a {
	display: block;
	width: 100%;
	height: 100%;
}
.nio-news-card-horizontal__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.nio-news-card-horizontal__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.nio-news-card-horizontal__title {
	font-size: 15px;
	line-height: 1.3;
	margin: 0 0 8px;
}
.nio-news-card-horizontal__title a {
	color: var(--nio-graphite);
	text-decoration: none;
	font-weight: 700;
}
.nio-news-card-horizontal__title a:hover {
	color: var(--nio-orange);
}
.nio-news-card-horizontal__meta {
	font-size: 11px;
	color: var(--nio-color-muted);
}
.nio-news-card-horizontal__meta svg {
	width: 12px;
	height: 12px;
	vertical-align: middle;
	margin-right: 4px;
}

/* 4. Grid Card (Standard) */
.nio-news-grid-section {
	padding: 40px 0 20px;
}
.nio-news-grid--cols-3 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}
@media (min-width: 768px) {
	.nio-news-grid--cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.nio-news-grid--cols-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}
.nio-news-card {
	background: var(--nio-white);
	border: 1px solid var(--nio-color-line);
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.nio-news-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
	border-color: rgba(0, 0, 0, 0.12);
}

/* -------------------------------------------------------------
 * Ranzim-style Slide-Up "Leia Mais" Pop-up Panel
 * ----------------------------------------------------------- */
.nio-card-slideup {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #ffffff;
	z-index: 25;
	display: flex;
	flex-direction: column;
	transform: translateY(102%);
	opacity: 0;
	pointer-events: none;
	border-radius: inherit;
	transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.22s ease;
}

.nio-news-card.is-expanded .nio-card-slideup {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

/* Slide-up Top Header Bar (matches theme brand color) */
.nio-card-slideup__header {
	background: var(--nio-orange, #F58220);
	color: #ffffff;
	height: 48px;
	min-height: 48px;
	padding: 0 12px 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	transition: background 0.3s ease;
}

.nio-card-slideup__readmore {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.nio-card-slideup__readmore:hover {
	opacity: 0.9;
	transform: translateX(3px);
}

.nio-slideup-arrow {
	font-size: 17px;
	line-height: 1;
	font-weight: 700;
}

.nio-card-slideup__actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nio-slideup-btn {
	background: transparent;
	border: none;
	color: #ffffff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	outline: none;
	transition: background 0.2s ease, transform 0.15s ease;
}

.nio-slideup-btn:hover {
	background: rgba(255, 255, 255, 0.22);
	transform: scale(1.08);
}

.nio-slideup-btn--like.is-liked {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.28);
}
.nio-slideup-btn--like.is-liked svg {
	fill: #ffffff;
}

.nio-slideup-btn--close {
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	margin-left: 2px;
}

/* Slide-up 3-dots Share Dropdown Menu (Anchored under 3-dots with upward arrow) */
.nio-slideup-share-menu {
	position: absolute;
	top: calc(100% + 4px);
	right: 8px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
	padding: 6px;
	min-width: 165px;
	z-index: 35;
	display: flex;
	flex-direction: column;
	gap: 4px;
	animation: nioPopIn 0.18s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.nio-slideup-share-menu[hidden] {
	display: none !important;
}

.nio-slideup-share-menu__arrow {
	position: absolute;
	top: -5px;
	right: 42px;
	width: 8px;
	height: 8px;
	background: #ffffff;
	border-left: 1px solid rgba(0, 0, 0, 0.12);
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	transform: rotate(45deg);
}

/* Slide-up Body */
.nio-card-slideup__body {
	padding: 16px 18px 14px;
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.nio-card-slideup__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.32;
	margin: 0 0 8px;
}

.nio-card-slideup__title a {
	color: var(--nio-graphite, #181c20);
	text-decoration: none;
	transition: color 0.2s ease;
}

.nio-card-slideup__title a:hover {
	color: var(--nio-orange, #F58220);
}

.nio-card-slideup__time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--nio-color-muted, #718096);
	margin: 0 0 12px;
}

.nio-card-slideup__time svg {
	width: 13px;
	height: 13px;
	color: #94a3b8;
}

.nio-card-slideup__excerpt {
	font-size: 13.5px;
	line-height: 1.55;
	color: #4b5563;
	margin: 0 0 14px;
	flex: 1;
}

.nio-card-slideup__excerpt p {
	margin: 0;
}

.nio-card-slideup__footer {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 10px;
	border-top: 1px solid #f0f2f5;
	margin-top: auto;
}

.nio-news-card__thumb {
	position: relative;
	overflow: visible !important;
}

.nio-news-card__image-wrap {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 4px 4px 0 0;
	background: var(--nio-gray-bg, #f0f2f5);
}

.nio-news-card__image-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.nio-news-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nio-news-card:hover .nio-news-card__image {
	transform: scale(1.05);
}

/* Overlay Top Actions (Heart & 3-dots) */
.nio-card-overlay-actions {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
	z-index: 5;
}

.nio-card-overlay-btn {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(24, 28, 32, 0.6);
	backdrop-filter: blur(4px);
	color: #ffffff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nio-card-overlay-btn:hover {
	background: rgba(24, 28, 32, 0.9);
	transform: scale(1.1);
}

.nio-card-overlay-btn--like.is-liked {
	color: #f43f5e;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(244, 63, 94, 0.35);
}

/* Prominent '+' FAB Action Button */
.nio-news-card__action {
	position: absolute;
	right: 20px;
	bottom: -22px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--nio-orange, #F58220);
	color: #ffffff;
	border: 3px solid #ffffff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	z-index: 20;
	outline: none;
	transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease;
}

.nio-news-card__action:hover {
	transform: scale(1.12);
	background: var(--nio-orange-dark, #D96700);
	box-shadow: 0 6px 18px rgba(245, 130, 32, 0.45);
}

.nio-news-card__action.is-open {
	transform: rotate(45deg);
	background: #181c20;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.nio-news-card__action svg {
	width: 20px;
	height: 20px;
	display: block;
	pointer-events: none;
	transition: transform 0.25s ease;
}

/* Modern Share Popover */
.nio-card-share-popover {
	position: absolute;
	right: 12px;
	bottom: 28px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
	padding: 10px 12px;
	z-index: 30;
	min-width: 175px;
	animation: nioPopIn 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.nio-card-share-popover__arrow {
	position: absolute;
	bottom: -6px;
	right: 24px;
	width: 10px;
	height: 10px;
	background: #ffffff;
	border-right: 1px solid rgba(0, 0, 0, 0.12);
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	transform: rotate(45deg);
}

.nio-card-share-popover__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #f0f2f5;
}

.nio-card-share-popover__title {
	font-size: 0.7rem;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.nio-card-share-popover__close {
	background: none;
	border: none;
	font-size: 16px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 0;
	margin: 0;
}
.nio-card-share-popover__close:hover {
	color: #1e293b;
}

.nio-card-share-popover__items {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.nio-card-share-item {
	background: #f8fafc;
	color: #1e293b;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 6px 10px;
	font-size: 0.72rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	text-align: left;
	font-family: inherit;
	transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.nio-card-share-item:hover {
	transform: translateX(2px);
}
.nio-card-share-item--whatsapp:hover { background: #25D366; color: #ffffff; border-color: #25D366; }
.nio-card-share-item--facebook:hover { background: #1877F2; color: #ffffff; border-color: #1877F2; }
.nio-card-share-item--x:hover { background: #000000; color: #ffffff; border-color: #000000; }
.nio-card-share-item--copy:hover { background: var(--nio-orange, #F58220); color: #ffffff; border-color: var(--nio-orange, #F58220); }

/* Content & Meta */
.nio-news-card__content {
	padding: 26px 20px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.nio-news-card__title {
	font-size: 18px;
	line-height: 1.35;
	margin: 0 0 10px;
	font-weight: 700;
}
.nio-news-card__title a {
	color: var(--nio-graphite, #181c20);
	text-decoration: none !important;
	background-image: none !important;
	font-weight: 700;
	transition: color 0.25s ease;
}
.nio-news-card__title a:hover,
.nio-news-card:hover .nio-news-card__title a {
	color: var(--nio-orange, #F58220);
	text-decoration: none !important;
	background-image: none !important;
}

/* Hover reveal container for excerpt and CTA read more invite */
.nio-news-card__hover-reveal {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 0.32s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.24s ease;
}

.nio-news-card__hover-reveal-inner {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.nio-news-card:hover .nio-news-card__hover-reveal,
.nio-news-card:focus-within .nio-news-card__hover-reveal {
	grid-template-rows: 1fr;
	opacity: 1;
}

.nio-news-card__excerpt {
	font-size: 13.5px;
	color: var(--nio-color-muted, #555e68);
	margin: 6px 0 12px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Highlighted CTA inviting to read more */
.nio-news-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 14px;
	margin-bottom: 12px;
	background: rgba(245, 130, 32, 0.08);
	color: var(--nio-orange, #F58220);
	border: 1.5px solid rgba(245, 130, 32, 0.3);
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nio-news-card__cta svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.nio-news-card__cta:hover {
	background: var(--nio-orange, #F58220);
	color: #ffffff;
	border-color: var(--nio-orange, #F58220);
	box-shadow: 0 4px 12px rgba(245, 130, 32, 0.35);
	transform: translateY(-1px);
}

.nio-news-card__cta:hover svg {
	transform: translateX(4px);
}

/* Mobile & touch devices */
@media (max-width: 767px), (hover: none) {
	.nio-news-card__hover-reveal {
		grid-template-rows: 1fr !important;
		opacity: 1 !important;
	}
}

.nio-news-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #f0f2f5;
	font-size: 12px;
	color: var(--nio-color-muted, #718096);
}
.nio-news-card__meta time {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.nio-news-card__meta svg {
	width: 14px;
	height: 14px;
	vertical-align: sub;
}

.nio-news-card__stats {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.nio-card-stat-btn {
	background: none;
	border: none;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 500;
	color: #8a9ca6;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
	transition: color 0.2s ease, transform 0.15s ease;
}
.nio-card-stat-btn:hover {
	color: var(--nio-orange, #F58220);
	transform: scale(1.05);
}
.nio-card-stat-btn.is-liked {
	color: #f43f5e;
}
.nio-card-stat-btn.is-liked .nio-stat-heart {
	fill: #f43f5e;
}

@keyframes nioPopIn {
	from { opacity: 0; transform: translateY(6px) scale(0.95); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 5. Asymmetric Category Section */
.nio-category-asymmetric {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}
@media (min-width: 1024px) {
	.nio-category-asymmetric {
		grid-template-columns: 2fr 1fr;
	}
}
.nio-category-asymmetric__side {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* 6. Latest Articles Layout */
.nio-latest-wrap {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}
@media (min-width: 1024px) {
	.nio-latest-wrap {
		grid-template-columns: 2fr 340px;
	}
}
.nio-latest-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}
@media (min-width: 768px) {
	.nio-latest-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
.nio-sidebar {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* ==========================================================================
   Ad Slots (Superbanner, Leaderboard & Responsive Ads)
   ========================================================================== */
.nio-ad-section {
	margin: 2.25rem 0;
	width: 100%;
}

.nio-ad-slot--between-sections {
	margin-top: 1.5rem;
	margin-bottom: 2.75rem;
}

.nio-ad-wrapper {
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	padding: 0.65rem 1.25rem 1rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.025);
	position: relative;
	overflow: hidden;
}

.nio-ad-topbar {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.45rem;
}

.nio-ad-label {
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #94a3b8;
	font-weight: 700;
}

.nio-ad-content-box {
	min-height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.nio-ad-custom-code {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.nio-ad-custom-code img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Promo Card when no custom ad is injected */
.nio-ad-promo-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	width: 100%;
	padding: 0.85rem 1.25rem;
	background: linear-gradient(135deg, #f8fafc 0%, #fff6ec 100%);
	border-radius: 10px;
	border: 1.5px dashed rgba(245, 130, 32, 0.35);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nio-ad-promo-card:hover {
	border-color: var(--nio-orange, #F58220);
	box-shadow: 0 6px 20px rgba(245, 130, 32, 0.08);
}

.nio-ad-promo-card__icon {
	width: 3.25rem;
	height: 3.25rem;
	background: var(--nio-orange, #F58220);
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 14px rgba(245, 130, 32, 0.3);
}

.nio-ad-promo-card__icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.nio-ad-promo-card__body {
	flex: 1;
	min-width: 0;
}

.nio-ad-promo-card__tag {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--nio-orange, #F58220);
	margin-bottom: 0.2rem;
}

.nio-ad-promo-card__title {
	margin: 0 0 0.2rem;
	font-family: var(--nio-font-headline);
	font-size: 1.05rem;
	font-weight: 750;
	color: #1e293b;
	line-height: 1.3;
}

.nio-ad-promo-card__subtitle {
	margin: 0;
	font-size: 0.82rem;
	color: #64748b;
	line-height: 1.4;
}

.nio-ad-promo-card__action {
	flex-shrink: 0;
}

.nio-ad-promo-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--nio-orange, #F58220);
	color: #ffffff !important;
	font-weight: 750;
	font-size: 0.85rem;
	padding: 0.65rem 1.3rem;
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(245, 130, 32, 0.25);
}

.nio-ad-promo-card__btn:hover {
	background: var(--nio-orange-dark, #D96700);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(245, 130, 32, 0.35);
}

@media (max-width: 768px) {
	.nio-ad-promo-card {
		flex-direction: column;
		text-align: center;
		padding: 1.25rem 1rem;
		gap: 1rem;
	}

	.nio-ad-promo-card__body {
		margin-inline: auto;
	}

	.nio-ad-promo-card__action {
		width: 100%;
	}

	.nio-ad-promo-card__btn {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   Ranzim Editorial Magazine Layout & Sidebar
   ========================================================================== */
.nio-magazine-section {
	width: 100%;
	margin-top: 10px;
	margin-bottom: 40px;
}

.nio-magazine-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 36px;
	align-items: start;
}

@media (max-width: 1024px) {
	.nio-magazine-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* --- Section & Category Headers --- */
/* --- Badges --- */
.nio-mag-badge {
	position: absolute;
	z-index: 3;
}

.nio-mag-badge--category {
	top: 12px;
	left: 12px;
	background: rgba(19, 32, 43, 0.92);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 10px;
	border-radius: 2px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nio-mag-badge--icon {
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	background: var(--nio-orange, #F58220);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* --- Upper Block: Economia & Geral Slides --- */
.nio-mag-slides-wrap {
	position: relative;
	width: 100%;
	min-width: 0;
}

.nio-mag-slide-item {
	width: 100%;
	min-width: 0;
}

.nio-mag-slide-item.is-active {
	display: block;
	animation: nioMagSlideFade 0.3s ease-out;
}

@keyframes nioMagSlideFade {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nio-mag-block,
.nio-mag-dual-col {
	min-width: 0;
}

/* --- Upper Block: Featured Lead + 2x2 Grid --- */
.nio-mag-upper-content {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 24px;
	align-items: start;
	margin-bottom: 38px;
	min-width: 0;
}

@media (max-width: 768px) {
	.nio-mag-upper-content {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* Lead Card (Left) */
.nio-mag-card-lead__media {
	position: relative;
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 16 / 10.5;
	background: #e2e8f0;
}

.nio-mag-card-lead__img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.nio-mag-card-lead__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.nio-mag-card-lead:hover .nio-mag-card-lead__img {
	transform: scale(1.03);
}

.nio-mag-card-lead__body {
	padding-top: 12px;
}

.nio-mag-card-lead__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 8px 0 0;
}

.nio-mag-card-lead__title a {
	color: var(--nio-orange, #F58220);
	text-decoration: none;
	transition: color 0.2s ease;
}

.nio-mag-card-lead__title a:hover {
	color: var(--nio-orange-dark, #D96700);
}

/* 2x2 Mini Grid (Right) */
.nio-mag-grid-2x2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px 16px;
}

@media (max-width: 480px) {
	.nio-mag-grid-2x2 {
		grid-template-columns: 1fr;
	}
}

.nio-mag-card-mini__media {
	border-radius: 3px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #e2e8f0;
	margin-bottom: 8px;
}

.nio-mag-card-mini__img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.nio-mag-card-mini__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.nio-mag-card-mini:hover .nio-mag-card-mini__img {
	transform: scale(1.04);
}

.nio-mag-card-mini__title {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.35;
	margin: 4px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nio-mag-card-mini__title a {
	color: #1e293b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nio-mag-card-mini__title a:hover {
	color: var(--nio-orange, #F58220);
}

/* --- Dual Bottom Row (Politics & Sports) --- */
.nio-mag-dual-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

@media (max-width: 640px) {
	.nio-mag-dual-row {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

.nio-mag-card-overlay {
	position: relative;
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 16 / 11;
	min-height: 250px;
	background: #1e293b;
}

.nio-mag-card-overlay__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.nio-mag-card-overlay__img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.nio-mag-card-overlay__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.nio-mag-card-overlay:hover .nio-mag-card-overlay__img {
	transform: scale(1.05);
}

.nio-mag-card-overlay__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.55) 50%, rgba(15, 23, 42, 0.15) 80%, transparent 100%);
	pointer-events: none;
}

.nio-mag-card-overlay__content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 18px 20px;
	z-index: 3;
}

.nio-mag-card-overlay__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	margin: 6px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nio-mag-card-overlay__title a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nio-mag-card-overlay__title a:hover {
	color: #fed7aa;
}

/* --- Sidebar Box & Widgets --- */
/* ==========================================================================
   Mundo Stories / Slider (AMP Web Stories visual format)
   ========================================================================== */
.nio-mundo-stories-section {
	margin-block: 10px 20px;
}

.nio-stories-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	margin-bottom: 18px;
}

.nio-stories-header__left {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	z-index: 2;
	background: #FFFFFF;
	padding-right: 18px;
}

.nio-stories-header__title {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0;
	line-height: 1.2;
}

.nio-stories-header__link {
	color: #DC2626;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.nio-stories-header__link:hover {
	opacity: 0.85;
}

.nio-stories-header__bar {
	display: block;
	width: 100%;
	height: 3px;
	background-color: #DC2626;
	margin-top: 6px;
	border-radius: 2px;
}

.nio-stories-header__line {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: #E2E8F0;
	z-index: 1;
}

.nio-stories-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	z-index: 2;
	background: #FFFFFF;
	padding-left: 14px;
}

.nio-stories-nav-btn {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 6px;
	color: #1E293B;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
}

.nio-stories-nav-btn:hover {
	background: #F8FAFC;
	border-color: #CBD5E1;
	color: #DC2626;
	transform: translateY(-1px);
}

.nio-stories-nav-btn:active {
	transform: translateY(0);
}

.nio-stories-slider {
	position: relative;
	width: 100%;
}

.nio-stories-track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 6px 2px 14px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.nio-stories-track::-webkit-scrollbar {
	display: none;
}

.nio-story-card {
	flex: 0 0 180px;
	width: 180px;
	height: 290px;
	scroll-snap-align: start;
	border-radius: 14px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	background-color: #0F172A;
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.nio-story-card__link {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	width: 100%;
	position: relative;
	text-decoration: none;
	padding: 14px;
	z-index: 2;
	box-sizing: border-box;
}

.nio-story-card__bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
}

.nio-story-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.nio-story-card:hover .nio-story-card__img {
	transform: scale(1.06);
}

.nio-story-card__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.92) 100%);
	pointer-events: none;
}

.nio-story-card__top {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.nio-story-card__stack-icon {
	color: #FFFFFF;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
	display: inline-flex;
}

.nio-story-card__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.nio-story-card__badge {
	align-self: flex-start;
	background-color: #DC2626;
	color: #FFFFFF;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 3px 7px;
	border-radius: 4px;
	line-height: 1.2;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nio-story-card__title {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.32;
	color: #FFFFFF;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.nio-story-card__date {
	font-size: 11px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.nio-stories-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
}

.nio-stories-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: #CBD5E1;
	cursor: pointer;
	padding: 0;
	transition: all 0.25s ease;
}

.nio-stories-dot.is-active {
	background: #475569;
	width: 18px;
	border-radius: 4px;
}

@media (max-width: 640px) {
	.nio-story-card {
		flex: 0 0 150px;
		width: 150px;
		height: 245px;
		border-radius: 12px;
	}
	.nio-story-card__link {
		padding: 10px;
	}
	.nio-story-card__title {
		font-size: 12px;
	}
	.nio-story-card__badge {
		font-size: 9px;
		padding: 2px 6px;
	}
}



