/* ==========================================================================
   Modern Editorial News Portal Stylesheet (Urgjent-inspired)
   ========================================================================== */

:root {
	--portal-bg: #f6f8f9;
	--portal-surface: #ffffff;
	--portal-ink: #111111;
	--portal-text: #202020;
	--portal-muted: #5d6c7b;
	--portal-border: #e2e5e9;
	--portal-accent: var(--primary-color, #e30613);
	--portal-accent-dark: #c7000b;
	--portal-ui-font: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--portal-display-font: var(--heading-font-family, 'Barlow Condensed'), 'Oswald', Arial, sans-serif;
	--portal-body-font: var(--font-family, 'Inter'), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--portal-shadow-sm: 0 2px 8px rgba(17, 17, 17, 0.05);
	--portal-shadow-md: 0 10px 28px rgba(17, 17, 17, 0.08);
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--background-color, #f6f8f9);
	color: var(--text-color, #202020);
	font-family: var(--portal-body-font);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
	color: var(--portal-accent);
}

img {
	max-width: 100%;
	height: auto;
}

.portal-main-wrapper {
	min-height: 55vh;
}

/* Top 4px Signature Red Stripe */
.portal-top-stripe {
	width: 100%;
	height: 4px;
	background: var(--portal-accent);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.portal-site-header {
	background-color: var(--portal-surface);
	border-bottom: 1px solid var(--portal-border);
	position: relative;
	z-index: 1030;
	transition: box-shadow 0.25s ease;
}

.portal-site-header.is-sticky-header,
.portal-site-header.fixed-top {
	position: sticky;
	top: 0;
	z-index: 1030;
}

body.admin-bar .portal-site-header.is-sticky-header,
body.admin-bar .portal-site-header.fixed-top {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .portal-site-header.is-sticky-header,
	body.admin-bar .portal-site-header.fixed-top {
		top: 46px;
	}
}

.portal-site-header.is-scrolled {
	box-shadow: 0 6px 20px rgba(17, 17, 17, 0.08);
}

.portal-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 62px;
}

/* Brand Block */
.portal-brand-wrap {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.portal-logo-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 62px;
	text-decoration: none;
}

.portal-logo-box--text {
	background: var(--portal-accent);
	padding: 0 20px;
	color: #ffffff !important;
}

.portal-logo-box--text:hover {
	background: var(--portal-accent-dark);
	color: #ffffff !important;
}

.portal-logo-box--text .site-title {
	font-family: var(--logo-font-family, var(--portal-display-font));
	font-size: var(--logo-font-size, 26px);
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--logo-font-color, #ffffff);
	margin: 0;
}

.portal-logo-box--image {
	padding: 6px 0;
}

.portal-logo-box--image img.custom-logo {
	max-height: 44px;
	width: auto;
	margin: 0;
	display: block;
}

/* Primary Menu */
.portal-primary-nav {
	flex: 1 1 auto;
	min-width: 0;
	align-items: center;
	overflow: visible;
}

.portal-nav-list,
.portal-primary-nav .menu > ul {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.portal-nav-list > li,
.portal-primary-nav .menu > ul > li {
	position: relative;
	flex: 0 0 auto;
}

.portal-nav-list > li > a,
.portal-primary-nav .menu > ul > li > a {
	display: inline-flex;
	align-items: center;
	height: 62px;
	padding: 0 12px;
	font-family: var(--portal-ui-font);
	font-size: 14px;
	font-weight: 500;
	color: #202229;
	white-space: nowrap;
	position: relative;
}

.portal-nav-list > li > a::after {
	content: '';
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 0;
	height: 3px;
	background: var(--portal-accent);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.2s ease;
}

.portal-nav-list > li > a:hover,
.portal-nav-list > li.current-menu-item > a,
.portal-nav-list > li > a.active {
	color: var(--portal-accent);
}

.portal-nav-list > li > a:hover::after,
.portal-nav-list > li.current-menu-item > a::after,
.portal-nav-list > li > a.active::after {
	transform: scaleX(1);
}

/* Submenus */
.portal-nav-list .dropdown-menu,
.portal-primary-nav .menu ul ul {
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	box-shadow: var(--portal-shadow-md);
	padding: 6px;
	min-width: 210px;
	margin-top: 0;
	background: #ffffff;
}

.portal-nav-list .dropdown-item {
	font-family: var(--portal-ui-font);
	font-size: 13.5px;
	font-weight: 500;
	color: #202229;
	padding: 8px 12px;
	border-radius: 6px;
}

.portal-nav-list .dropdown-item:hover,
.portal-nav-list .dropdown-item.active {
	background: #fff0f1;
	color: var(--portal-accent);
}

/* Header Actions */
.portal-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.portal-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--portal-border);
	background: #ffffff;
	color: #202229;
	font-size: 15px;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.portal-icon-btn:hover {
	background: var(--portal-accent);
	border-color: var(--portal-accent);
	color: #ffffff;
}

/* More Dropdown */
.portal-more-holder {
	position: relative;
}

.portal-more-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 220px;
	background: #ffffff;
	border: 1px solid var(--portal-border);
	border-radius: 10px;
	box-shadow: var(--portal-shadow-md);
	padding: 8px;
	display: none;
	z-index: 1050;
}

.portal-more-holder.is-open .portal-more-dropdown {
	display: block;
}

.portal-more-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.portal-more-list li a {
	display: block;
	padding: 8px 12px;
	font-family: var(--portal-ui-font);
	font-size: 13.5px;
	font-weight: 500;
	color: #202229;
	border-radius: 6px;
}

.portal-more-list li a:hover {
	background: #fff0f1;
	color: var(--portal-accent);
}

/* Social List */
.portal-social-list {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.portal-social-list li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f0f2f5;
	color: #202229;
	font-size: 13px;
}

.portal-social-list li a:hover {
	background: var(--portal-accent);
	color: #ffffff;
}

/* Mobile Slide Drawer */
.portal-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
	backdrop-filter: blur(2px);
	z-index: 1090;
}

.portal-mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(320px, 86vw);
	background: #ffffff;
	z-index: 1100;
	transform: translateX(-105%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.portal-mobile-drawer.is-open {
	transform: translateX(0);
}

.portal-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: var(--portal-accent);
	color: #ffffff;
}

.portal-drawer-brand {
	font-family: var(--portal-display-font);
	font-size: 22px;
	font-weight: 800;
	text-transform: uppercase;
	color: #ffffff !important;
}

.portal-drawer-close {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

.portal-drawer-body {
	padding: 16px;
	overflow-y: auto;
	flex: 1 1 auto;
}

.portal-drawer-search {
	margin-bottom: 16px;
}

.portal-drawer-menu,
.portal-drawer-nav .menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.portal-drawer-menu li,
.portal-drawer-nav .menu ul li {
	border-bottom: 1px solid #f0f2f5;
}

.portal-drawer-menu li a,
.portal-drawer-nav .menu ul li a {
	display: block;
	padding: 11px 4px;
	font-family: var(--portal-ui-font);
	font-size: 15px;
	font-weight: 600;
	color: #202229;
}

.portal-drawer-menu ul,
.portal-drawer-nav .menu ul ul {
	padding-left: 14px;
	list-style: none;
}

.portal-drawer-secondary {
	margin-top: 14px;
	padding-top: 10px;
	border-top: 2px solid var(--portal-border);
}

.portal-drawer-social {
	margin-top: 20px;
}

/* Fullscreen Glassmorphic Search Overlay */
.portal-search-overlay[hidden] {
	display: none !important;
}

.portal-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(70px, 14vh, 140px) 16px 24px;
	background: rgba(21, 23, 27, 0.78);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.portal-search-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.portal-search-dialog {
	width: min(820px, 100%);
	transform: translateY(-14px);
	transition: transform 0.22s ease;
}

.portal-search-overlay.is-open .portal-search-dialog {
	transform: translateY(0);
}

.portal-search-overlay-form {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border-radius: 12px;
	padding: 8px 10px 8px 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.portal-search-overlay-icon {
	color: var(--portal-muted);
	font-size: 18px;
}

.portal-search-overlay-input {
	flex: 1 1 auto;
	border: 0;
	outline: none;
	font-family: var(--portal-ui-font);
	font-size: 17px;
	color: var(--portal-ink);
	background: transparent;
	min-width: 0;
	height: 44px;
}

.portal-search-overlay-submit {
	background: var(--portal-accent);
	color: #ffffff;
	border: 0;
	border-radius: 8px;
	padding: 10px 20px;
	font-family: var(--portal-ui-font);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.portal-search-overlay-submit:hover {
	background: var(--portal-accent-dark);
}

.portal-search-overlay-close {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	border: 0;
	background: #f1f3f5;
	color: #202229;
	font-size: 16px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Search Form Inline */
.portal-search-form .portal-search-input {
	border: 1px solid var(--portal-border);
	border-radius: 8px 0 0 8px;
	font-family: var(--portal-ui-font);
	font-size: 14px;
	height: 40px;
}

.portal-search-form .portal-search-input:focus {
	box-shadow: none;
	border-color: var(--portal-accent);
}

.portal-search-form .portal-search-submit {
	background: var(--portal-accent);
	color: #ffffff;
	border: 0;
	border-radius: 0 8px 8px 0;
	padding: 0 16px;
}

/* ==========================================================================
   Fast Info / Breaking News Ticker Strip
   ========================================================================== */
.portal-fast-strip {
	background: #ffffff;
	border-bottom: 1px solid var(--portal-border);
	padding: 8px 0;
}

.portal-fast-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 30px;
}

.portal-ticker-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff0f1;
	color: var(--portal-accent);
	border: 1px solid rgba(227, 6, 19, 0.22);
	border-radius: 4px;
	padding: 4px 10px;
	font-family: var(--portal-ui-font);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	flex: 0 0 auto;
}

.portal-live-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--portal-accent);
	box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.65);
	animation: portalPulse 1.8s infinite;
	flex-shrink: 0;
}

@keyframes portalPulse {
	0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.6); }
	70% { box-shadow: 0 0 0 7px rgba(227, 6, 19, 0); }
	100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

.portal-ticker-list {
	flex: 1 1 auto;
	min-width: 0;
	height: 26px;
	overflow: hidden;
}

.portal-ticker-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.portal-ticker-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 26px;
	line-height: 26px;
	width: 100%;
}

.portal-ticker-time {
	font-family: var(--portal-ui-font);
	font-size: 11px;
	font-weight: 600;
	color: #ffffff;
	background: #202229;
	padding: 2px 6px;
	border-radius: 3px;
	line-height: 1.2;
	flex-shrink: 0;
}

.portal-ticker-link {
	font-family: var(--portal-ui-font);
	font-size: 13.5px;
	font-weight: 500;
	color: var(--portal-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.portal-ticker-link:hover {
	color: var(--portal-accent);
}

.portal-fast-date {
	align-items: center;
	gap: 6px;
	font-family: var(--portal-ui-font);
	font-size: 12.5px;
	color: var(--portal-muted);
	white-space: nowrap;
	flex: 0 0 auto;
}

.portal-header-ad {
	padding: 16px 0 4px;
}

/* ==========================================================================
   Shared Category Badges & Section Headers
   ========================================================================== */
.portal-cat-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 3px;
	background: var(--category-color, var(--portal-accent));
	color: var(--category-label-color, #ffffff) !important;
	font-family: var(--portal-ui-font);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.portal-cat-badge--inline {
	position: static;
	box-shadow: none;
	padding: 5px 10px;
	font-size: 11px;
}

.portal-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--portal-ink);
	position: relative;
}

.portal-section-head::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 56px;
	height: 3px;
	background: var(--category-color, var(--portal-accent));
}

.portal-section-title {
	margin: 0;
	font-family: var(--portal-display-font);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--portal-ink);
	display: flex;
	align-items: center;
	gap: 10px;
}

.portal-section-title::before {
	content: '';
	display: inline-block;
	width: 5px;
	height: 22px;
	background: var(--category-color, var(--portal-accent));
	border-radius: 2px;
}

.portal-section-more {
	font-family: var(--portal-ui-font);
	font-size: 13px;
	font-weight: 600;
	color: var(--portal-muted);
	white-space: nowrap;
}

.portal-section-more:hover {
	color: var(--portal-accent);
}

.portal-card-placeholder,
.portal-hero-placeholder,
.portal-grid-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2b2f3a 0%, #16181f 100%);
}

/* ==========================================================================
   Hero Featured Mosaic + Right Rail (Urgjent.com Top Section)
   ========================================================================== */
.portal-featured-section {
	padding: 18px 0 10px;
}

.portal-featured-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 16px;
	align-items: stretch;
}

.portal-featured-layout.no-rail {
	grid-template-columns: minmax(0, 1fr);
}

.portal-featured-grid {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	grid-template-rows: 245px 245px;
	gap: 14px;
}

.portal-hero-card {
	position: relative;
	overflow: hidden;
	background: #14151a;
	container-type: inline-size;
}

.portal-hero-card--lead {
	grid-column: 1 / span 6;
	grid-row: 1 / span 2;
}

.portal-featured-grid--count-1 .portal-hero-card--lead {
	grid-column: 1 / -1;
}

.portal-featured-grid--count-2 .portal-hero-card--wide {
	grid-column: 7 / span 4;
	grid-row: 1 / span 2;
}

.portal-featured-grid--count-3 .portal-hero-card--wide {
	grid-column: 7 / span 4;
	grid-row: 1;
}

.portal-featured-grid--count-3 .portal-hero-card--compact:nth-child(3) {
	grid-column: 7 / span 4;
	grid-row: 2;
}

.portal-featured-grid--count-4 .portal-hero-card--wide {
	grid-column: 7 / span 4;
	grid-row: 1;
}

.portal-featured-grid--count-4 .portal-hero-card--compact:nth-child(3) {
	grid-column: 7 / span 2;
	grid-row: 2;
}

.portal-featured-grid--count-4 .portal-hero-card--compact:nth-child(4) {
	grid-column: 9 / span 2;
	grid-row: 2;
}

.portal-hero-link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.portal-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease, filter 0.35s ease;
}

.portal-hero-card:hover .portal-hero-img {
	transform: scale(1.04);
	filter: contrast(1.04) saturate(1.05);
}

.portal-hero-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 18px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 28%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.90) 100%);
}

.portal-hero-card--lead .portal-hero-overlay {
	padding: 24px;
}

.portal-hero-title {
	margin: 0;
	font-family: var(--portal-display-font);
	font-weight: 800;
	color: #ffffff;
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.portal-hero-card--lead .portal-hero-title {
	font-size: clamp(28px, 6.2cqi, 46px);
}

.portal-hero-card--wide .portal-hero-title {
	font-size: clamp(20px, 6.8cqi, 30px);
}

.portal-hero-card--compact .portal-hero-title {
	font-size: clamp(16px, 8.2cqi, 22px);
	line-height: 1.15;
}

.portal-hero-meta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 8px;
	font-family: var(--portal-ui-font);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
}

/* Right Featured Rail */
.portal-featured-rail {
	display: flex;
	flex-direction: column;
}

.portal-rail-box {
	background: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-top: 3px solid var(--portal-accent);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.portal-rail-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--portal-border);
}

.portal-rail-heading {
	margin: 0;
	font-family: var(--portal-display-font);
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--portal-ink);
}

.portal-rail-list {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.portal-rail-item {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 11px 14px;
	border-bottom: 1px solid #eef0f3;
}

.portal-rail-item:last-child {
	border-bottom: 0;
}

.portal-rail-thumb {
	width: 78px;
	height: 58px;
	flex: 0 0 78px;
	overflow: hidden;
	border-radius: 4px;
	background: #e9ecef;
}

.portal-rail-thumb img,
.portal-rail-thumb-empty {
	width: 100%;
	height: 100%;
	display: block;
}

.portal-rail-content {
	flex: 1 1 auto;
	min-width: 0;
}

.portal-rail-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--portal-ui-font);
	font-size: 11px;
	margin-bottom: 3px;
}

.portal-rail-cat {
	font-weight: 700;
	text-transform: uppercase;
}

.portal-rail-time {
	color: var(--portal-muted);
}

.portal-rail-title {
	margin: 0;
	font-family: var(--portal-ui-font);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--portal-ink);
}

.portal-rail-title a {
	color: var(--portal-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.portal-rail-title a:hover {
	color: var(--portal-accent);
}

/* ==========================================================================
   Urgjent / BILD 12-Column Masonry Rhythm Grid (Recent News)
   ========================================================================== */
.portal-recent-section {
	padding: 28px 0 18px;
}

.portal-news-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-flow: row dense;
	grid-auto-rows: 225px;
	gap: 15px;
	width: 100%;
}

.portal-grid-card {
	position: relative;
	grid-column: span 4;
	grid-row: span 1;
	overflow: hidden;
	background: #15171c;
	container-type: inline-size;
	isolation: isolate;
}

/* Editorial 8-item Rhythm */
.portal-grid-card:nth-child(8n + 1) {
	grid-column: span 8;
	grid-row: span 2;
}

.portal-grid-card:nth-child(8n + 2),
.portal-grid-card:nth-child(8n + 3),
.portal-grid-card:nth-child(8n + 4),
.portal-grid-card:nth-child(8n + 5),
.portal-grid-card:nth-child(8n + 6) {
	grid-column: span 4;
	grid-row: span 1;
}

.portal-grid-card:nth-child(8n + 7),
.portal-grid-card:nth-child(8n + 8) {
	grid-column: span 6;
	grid-row: span 2;
}

.portal-grid-link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	color: #ffffff;
}

.portal-grid-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease, filter 0.35s ease;
}

.portal-grid-card:hover .portal-grid-img {
	transform: scale(1.04);
	filter: saturate(1.06) contrast(1.04);
}

.portal-grid-link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 24%, rgba(0, 0, 0, 0.22) 55%, rgba(0, 0, 0, 0.88) 100%);
}

.portal-grid-title {
	position: absolute;
	z-index: 3;
	bottom: 16px;
	left: 16px;
	right: 16px;
	margin: 0;
	font-family: var(--portal-display-font);
	font-size: clamp(20px, 6.2cqi, 32px);
	font-weight: 800;
	line-height: 1.24;
	letter-spacing: -0.015em;
	text-align: left;
	max-height: 4.8em;
	overflow: hidden;
}

.portal-grid-card:nth-child(8n + 1) .portal-grid-title {
	bottom: 24px;
	left: 24px;
	right: 24px;
	font-size: clamp(28px, 5.8cqi, 48px);
	line-height: 1.18;
}

.portal-grid-card:nth-child(8n + 7) .portal-grid-title,
.portal-grid-card:nth-child(8n + 8) .portal-grid-title {
	font-size: clamp(24px, 5.6cqi, 38px);
}

.portal-grid-card.title-long .portal-grid-title {
	font-size: clamp(18px, 5.2cqi, 28px);
}

.portal-grid-card.title-xlong .portal-grid-title {
	font-size: clamp(16px, 4.6cqi, 24px);
}

.portal-headline-mark {
	display: inline;
	padding: 0.04em 0.16em 0.08em;
	color: var(--category-label-color, #ffffff);
	background: var(--category-color, #e30613);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	box-shadow: 0.12em 0 0 var(--category-color, #e30613), -0.12em 0 0 var(--category-color, #e30613);
	line-height: 1.38;
}

/* ==========================================================================
   Category Blocks & Standard White Portal Cards
   ========================================================================== */
.portal-category-block {
	margin-top: 34px;
}

.portal-top-news-section,
.portal-popular-section,
.portal-detail-section {
	padding: 26px 0;
}

.portal-card {
	background: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 6px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.portal-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--portal-shadow-md);
}

.portal-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e9ecef;
}

.portal-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.portal-card:hover .portal-card-img {
	transform: scale(1.04);
}

.portal-rank-badge {
	position: absolute;
	bottom: 10px;
	left: 10px;
	z-index: 5;
	background: rgba(17, 17, 17, 0.88);
	color: #ffffff;
	font-family: var(--portal-display-font);
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
	padding: 5px 9px;
	border-left: 3px solid var(--portal-accent);
}

.portal-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.portal-card-title {
	margin: 0 0 10px;
	font-family: var(--portal-ui-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.32;
	color: var(--portal-ink);
}

.portal-card-title a {
	color: var(--portal-ink);
}

.portal-card-title a:hover {
	color: var(--portal-accent);
}

.portal-card-meta {
	margin-top: auto;
	font-family: var(--portal-ui-font);
	font-size: 12px;
	color: var(--portal-muted);
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Owl Carousel Nav Styling */
.portal-carousel .owl-nav {
	position: static;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 10px;
}

.portal-carousel .owl-nav button,
.portal-carousel .owl-nav .owl-prev,
.portal-carousel .owl-nav .owl-next {
	float: none !important;
	padding: 4px 12px !important;
	background: #ffffff !important;
	border: 1px solid var(--portal-border) !important;
	border-radius: 4px;
	font-family: var(--portal-ui-font);
	font-size: 12px;
	font-weight: 600;
	color: var(--portal-ink) !important;
}

.portal-carousel .owl-nav button:hover,
.portal-carousel .owl-nav .owl-prev:hover,
.portal-carousel .owl-nav .owl-next:hover {
	background: var(--portal-accent) !important;
	border-color: var(--portal-accent) !important;
	color: #ffffff !important;
}

/* ==========================================================================
   Archive / Blog / Detail News Post Cards (content.php)
   ========================================================================== */
.portal-post-card {
	background: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 6px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.portal-post-card:hover {
	box-shadow: var(--portal-shadow-md);
}

.portal-post-card--list-view {
	flex-direction: row;
	align-items: stretch;
}

.portal-post-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: #e9ecef;
}

.portal-post-card--list-view .portal-post-card__media {
	width: 36%;
	flex: 0 0 36%;
	min-height: 205px;
}

.portal-post-card--grid-view .portal-post-card__media,
.portal-post-card--full-width-view .portal-post-card__media {
	aspect-ratio: 16 / 10;
	width: 100%;
}

.portal-post-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.portal-post-card:hover .portal-post-card__img {
	transform: scale(1.04);
}

.portal-post-card__body {
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.portal-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-family: var(--portal-ui-font);
	font-size: 12px;
	color: var(--portal-muted);
	margin-bottom: 8px;
}

.portal-meta-item a {
	color: var(--portal-muted);
}

.portal-meta-item a:hover {
	color: var(--portal-accent);
}

.portal-post-card__title {
	margin: 0 0 10px;
	font-family: var(--portal-display-font);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--portal-ink);
}

.portal-post-card__title a {
	color: var(--portal-ink);
}

.portal-post-card__title a:hover {
	color: var(--portal-accent);
}

.portal-post-card__excerpt {
	font-size: 14.5px;
	line-height: 1.55;
	color: #495057;
	margin-bottom: 12px;
}

.portal-post-card__excerpt p:last-child {
	margin-bottom: 0;
}

.portal-post-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.portal-tag-chip {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 4px;
	background: #f1f3f5;
	color: #495057;
	font-family: var(--portal-ui-font);
	font-size: 12px;
	font-weight: 500;
}

.portal-tag-chip:hover {
	background: var(--portal-accent);
	color: #ffffff;
}

.portal-readmore-link {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--portal-ui-font);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--portal-ink);
}

.portal-readmore-link i {
	color: var(--portal-accent);
	transition: transform 0.2s ease;
}

.portal-readmore-link:hover {
	color: var(--portal-accent);
}

.portal-readmore-link:hover i {
	transform: translateX(4px);
}

/* Load More Button */
.portal-loadmore {
	text-align: center;
}

.portal-loadmore-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 340px;
	height: 46px;
	border: 0;
	border-radius: 6px;
	background: var(--portal-ink);
	color: #ffffff;
	font-family: var(--portal-ui-font);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.portal-loadmore-btn:hover {
	background: var(--portal-accent);
}

/* ==========================================================================
   Single Post & Page Layout
   ========================================================================== */
.portal-page-wrap {
	padding: 28px 0 44px;
}

.portal-breadcrumbs {
	background: #ffffff;
	border-bottom: 1px solid var(--portal-border);
	padding: 10px 0;
	font-family: var(--portal-ui-font);
	font-size: 12.5px;
}

.portal-article-card {
	background: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	padding: 28px 32px;
}

.portal-article-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.portal-article-title {
	margin: 0 0 18px;
	font-family: var(--portal-display-font);
	font-size: clamp(28px, 3.6vw, 44px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: var(--portal-ink);
}

.portal-article-meta-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 0;
	margin-bottom: 22px;
	border-top: 1px solid var(--portal-border);
	border-bottom: 1px solid var(--portal-border);
	font-family: var(--portal-ui-font);
	font-size: 13px;
	color: var(--portal-muted);
}

.portal-article-meta-left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.portal-article-author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--portal-ink);
}

.portal-share-bar {
	display: flex;
	align-items: center;
	gap: 6px;
}

.portal-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--portal-border);
	background: #f8f9fa;
	color: #202229;
	font-size: 14px;
	cursor: pointer;
}

.portal-share-btn--fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.portal-share-btn--x:hover { background: #111111; border-color: #111111; color: #fff; }
.portal-share-btn--wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.portal-share-btn--copy:hover,
.portal-share-btn--copy.is-copied { background: var(--portal-accent); border-color: var(--portal-accent); color: #fff; }

.portal-article-figure {
	flex-direction: column;
	margin: 0 0 24px;
}

.portal-article-figure img {
	border-radius: 6px;
}

.portal-figure-caption {
	margin-top: 8px;
	font-family: var(--portal-ui-font);
	font-size: 12.5px;
	color: var(--portal-muted);
}

.portal-article-body {
	font-size: 17px;
	line-height: 1.72;
	color: #1f2328;
}

.portal-article-body p {
	margin-bottom: 1.25em;
}

.portal-article-body h2,
.portal-article-body h3,
.portal-article-body h4 {
	margin-top: 1.5em;
	margin-bottom: 0.6em;
	color: var(--portal-ink);
}

.portal-article-body blockquote {
	margin: 24px 0;
	padding: 16px 22px;
	background: #f8f9fb;
	border-left: 4px solid var(--portal-accent);
	border-radius: 0 6px 6px 0;
	font-size: 18px;
	font-weight: 500;
	color: var(--portal-ink);
}

.portal-article-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--portal-border);
}

.portal-tags-label {
	color: var(--portal-muted);
}

.portal-author-box {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 26px;
	padding: 20px;
	background: #f8f9fb;
	border: 1px solid var(--portal-border);
	border-radius: 8px;
}

.portal-author-info h4 {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
}

.portal-author-info p {
	margin: 0;
	font-size: 14px;
	color: var(--portal-muted);
}

/* Related News Grid */
.portal-related-section {
	margin-top: 30px;
	background: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	padding: 24px 28px;
}

.portal-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.portal-related-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 5px;
	background: #e9ecef;
	margin-bottom: 10px;
}

.portal-related-card__media img {
	width: 100%;
	height: 100%;
	transition: transform 0.35s ease;
}

.portal-related-card:hover .portal-related-card__media img {
	transform: scale(1.04);
}

.portal-related-card__title {
	margin: 0 0 6px;
	font-family: var(--portal-ui-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--portal-ink);
}

.portal-related-card:hover .portal-related-card__title {
	color: var(--portal-accent);
}

.portal-related-card__meta {
	font-family: var(--portal-ui-font);
	font-size: 12px;
	color: var(--portal-muted);
}

.portal-comments-wrap {
	margin-top: 28px;
	background: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	padding: 24px 28px;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.portal-sidebar-sticky {
	position: sticky;
	top: 82px;
}

.portal-sidebar-col .widget,
#secondary .widget {
	background: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 22px;
	float: none;
}

.portal-sidebar-col .widget-title,
#secondary .widget-title {
	font-family: var(--portal-display-font);
	font-size: 22px;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--portal-ink);
	border-bottom: 2px solid var(--portal-ink) !important;
	padding-bottom: 10px !important;
	margin-bottom: 14px !important;
}

.portal-sidebar-col .widget-title::after,
#secondary .widget-title::after {
	background-color: var(--portal-accent) !important;
	height: 3px;
	bottom: -2px;
}

.widget li {
	float: none;
	border-bottom: 1px solid #eef0f3;
	padding: 9px 0;
}

.widget li:last-child {
	border-bottom: 0;
}

.widget li a {
	font-family: var(--portal-ui-font);
	font-size: 14px;
	font-weight: 500;
	color: #202229;
}

.widget li a:hover {
	color: var(--portal-accent);
}

.widget_search {
	background: var(--portal-surface) !important;
	padding: 20px !important;
}

/* ==========================================================================
   Archive, Search, Pagination & Empty State
   ========================================================================== */
.portal-archive-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	margin-bottom: 24px;
	border-bottom: 2px solid var(--portal-ink);
}

.portal-archive-title {
	margin: 0;
	font-family: var(--portal-display-font);
	font-size: 36px;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--portal-ink);
}

.portal-archive-title span {
	color: var(--portal-accent);
}

.portal-archive-desc {
	width: 100%;
	font-size: 15px;
	color: var(--portal-muted);
}

.portal-search-count {
	font-family: var(--portal-ui-font);
	font-size: 13px;
	font-weight: 600;
	color: var(--portal-muted);
}

.portal-search-list {
	background: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	padding: 8px 22px;
}

.portal-search-item {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid #eef0f3;
}

.portal-search-item:last-child {
	border-bottom: 0;
}

.portal-search-item__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 5px;
	background: #e9ecef;
}

.portal-search-item__media img {
	width: 100%;
	height: 100%;
}

.portal-search-item__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--portal-ui-font);
	font-size: 12px;
	color: var(--portal-muted);
	margin-bottom: 6px;
}

.portal-search-item__cat {
	font-weight: 700;
	color: var(--portal-accent);
	text-transform: uppercase;
}

.portal-search-item__title {
	margin: 0 0 8px;
	font-family: var(--portal-display-font);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
}

.portal-search-item__excerpt {
	font-size: 14px;
	color: #555;
	margin-bottom: 8px;
}

/* Pagination */
#magazine_newspaper_pagination .pagination {
	gap: 6px;
}

#magazine_newspaper_pagination .page-link {
	border: 1px solid var(--portal-border);
	border-radius: 4px;
	min-width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--portal-ui-font);
	font-size: 14px;
	font-weight: 700;
	color: #202229;
	background: #ffffff;
}

#magazine_newspaper_pagination .page-item.active .page-link {
	background: var(--portal-accent);
	border-color: var(--portal-accent);
	color: #ffffff;
}

#magazine_newspaper_pagination .page-link:hover {
	background: #202229;
	border-color: #202229;
	color: #ffffff;
}

/* Empty & 404 */
.portal-empty-state {
	background: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	padding: 54px 24px;
	text-align: center;
}

.portal-404-code {
	font-family: var(--portal-display-font);
	font-size: 86px;
	font-weight: 800;
	line-height: 1;
	color: var(--portal-accent);
	margin-bottom: 10px;
}

.portal-empty-icon {
	font-size: 46px;
	color: var(--portal-accent);
	margin-bottom: 12px;
}

.portal-empty-search {
	max-width: 460px;
	margin: 20px auto;
}

.portal-back-home-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 6px;
	background: var(--portal-ink);
	color: #ffffff !important;
	font-family: var(--portal-ui-font);
	font-size: 14px;
	font-weight: 600;
}

.portal-back-home-btn:hover {
	background: var(--portal-accent);
}

/* ==========================================================================
   Urgjent-style Clean White Multi-Column Footer
   ========================================================================== */
.portal-footer {
	background: #ffffff;
	border-top: 1px solid var(--portal-border);
	margin-top: 32px;
	padding: 0;
	color: var(--portal-text);
}

.portal-footer a {
	color: #495057 !important;
}

.portal-footer a:hover {
	color: var(--portal-accent) !important;
}

.portal-footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding: 24px 0;
	border-bottom: 1px solid var(--portal-border);
}

.portal-footer__brand img {
	max-height: 36px;
	width: auto;
	display: block;
}

.portal-footer__brand-text {
	display: inline-block;
	padding: 8px 16px;
	background: var(--portal-accent);
	color: #ffffff;
	font-family: var(--portal-display-font);
	font-size: 24px;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1;
}

.portal-footer__widgets {
	padding: 28px 0;
}

.portal-footer-col {
	border-right: 1px solid #ececef;
}

.portal-footer-col:last-child {
	border-right: 0;
}

.portal-footer-col h1,
.portal-footer-col h2,
.portal-footer-col h3,
.portal-footer-col h4,
.portal-footer-col h5,
.portal-footer-col h6,
.portal-footer-col .widget-title {
	color: var(--portal-ink) !important;
	font-family: var(--portal-display-font);
	font-size: 19px;
	font-weight: 800;
	border-bottom: 1px solid var(--portal-border) !important;
	padding-bottom: 10px !important;
	margin-bottom: 14px !important;
}

.portal-footer-col .widget-title::after,
.portal-footer-col h4::after {
	background-color: var(--portal-accent) !important;
	height: 3px;
}

.portal-footer__bottom {
	padding: 18px 0;
	border-top: 1px solid var(--portal-border);
	text-align: center;
	font-family: var(--portal-ui-font);
	font-size: 13px;
	color: var(--portal-muted);
}

.portal-scroll-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 990;
	border: 0;
	border-radius: 50%;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.portal-scroll-top.show {
	opacity: 1;
	visibility: visible;
}

.portal-scroll-top:hover {
	transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1199px) {
	.portal-featured-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.portal-rail-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal-rail-item {
		border-right: 1px solid #eef0f3;
	}
}

@media (max-width: 991px) {
	.portal-featured-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto;
	}

	.portal-hero-card--lead,
	.portal-featured-grid--count-2 .portal-hero-card--wide,
	.portal-featured-grid--count-3 .portal-hero-card--wide,
	.portal-featured-grid--count-4 .portal-hero-card--wide {
		grid-column: 1 / -1;
		grid-row: auto;
		aspect-ratio: 16 / 10;
	}

	.portal-featured-grid--count-3 .portal-hero-card--compact:nth-child(3),
	.portal-featured-grid--count-4 .portal-hero-card--compact:nth-child(3),
	.portal-featured-grid--count-4 .portal-hero-card--compact:nth-child(4) {
		grid-column: span 1;
		grid-row: auto;
		aspect-ratio: 4 / 3;
	}

	.portal-news-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		grid-auto-rows: 205px;
	}

	.portal-grid-card:nth-child(8n + 1) {
		grid-column: span 6;
		grid-row: span 2;
	}

	.portal-grid-card:nth-child(8n + 2),
	.portal-grid-card:nth-child(8n + 3),
	.portal-grid-card:nth-child(8n + 4),
	.portal-grid-card:nth-child(8n + 5),
	.portal-grid-card:nth-child(8n + 6),
	.portal-grid-card:nth-child(8n + 7),
	.portal-grid-card:nth-child(8n + 8) {
		grid-column: span 3;
		grid-row: span 1;
	}

	.portal-footer-col {
		border-right: 0;
		border-bottom: 1px solid #ececef;
		padding-bottom: 18px;
	}

	.portal-footer-col:last-child {
		border-bottom: 0;
	}
}

@media (max-width: 767px) {
	.portal-logo-box--text {
		padding: 0 14px;
	}

	.portal-logo-box--text .site-title {
		font-size: 21px;
	}

	.portal-featured-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.portal-featured-grid--count-3 .portal-hero-card--compact:nth-child(3),
	.portal-featured-grid--count-4 .portal-hero-card--compact:nth-child(3),
	.portal-featured-grid--count-4 .portal-hero-card--compact:nth-child(4) {
		grid-column: 1 / -1;
		aspect-ratio: 16 / 10;
	}

	.portal-rail-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.portal-rail-item {
		border-right: 0;
	}

	.portal-news-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: 260px;
		gap: 12px;
	}

	.portal-grid-card,
	.portal-grid-card:nth-child(n) {
		grid-column: 1 / -1 !important;
		grid-row: span 1 !important;
	}

	.portal-post-card--list-view {
		flex-direction: column;
	}

	.portal-post-card--list-view .portal-post-card__media {
		width: 100%;
		flex: none;
		aspect-ratio: 16 / 10;
		min-height: 0;
	}

	.portal-article-card,
	.portal-related-section,
	.portal-comments-wrap {
		padding: 18px 16px;
	}

	.portal-related-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.portal-search-item {
		grid-template-columns: 120px minmax(0, 1fr);
		gap: 12px;
	}

	.portal-search-item__excerpt {
		display: none;
	}
}
