/*
Theme Name: Kompas
Theme URI: https://kompas.rs
Author: Vukašin Rančić
Author URI: https://kompas.rs
Description: Nativna WordPress Block tema za Srpski Nedeljnik Kompas. Full Site Editing (FSE) tema bez eksternih zavisnosti.
Version: 1.0.4
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: kompas
Tags: full-site-editing, block-theme, blog, news, accessibility-ready
License: GwNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========================================================================
   Base
   ======================================================================== */

/* Temp */
.archive .kompas-banner {
    display: none !important;
}

:root {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

/* ========================================================================
   PWA Install Prompt
   ======================================================================== */

.kompas-install-prompt[hidden] {
	display: none;
}

.kompas-install-prompt {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 9999;
	width: min(24rem, calc(100vw - 2rem));
	pointer-events: none;
}

.kompas-install-prompt.is-visible {
	pointer-events: auto;
}

.kompas-install-prompt__card {
	display: grid;
	gap: 0.875rem;
	padding: 1.125rem 1.125rem 1rem;
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--white);
	border-top: 4px solid var(--wp--preset--color--primary);
	box-shadow: 0 18px 40px rgba( 0, 0, 0, 0.18 );
	transform: translateY( 1rem );
	opacity: 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.kompas-install-prompt.is-visible .kompas-install-prompt__card {
	transform: translateY( 0 );
	opacity: 1;
}

.kompas-install-prompt__eyebrow,
.kompas-install-prompt__title,
.kompas-install-prompt__text {
	margin: 0;
}

.kompas-install-prompt__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba( 255, 255, 255, 0.75 );
}

.kompas-install-prompt__title {
	font-size: clamp( 1.125rem, 2vw, 1.35rem );
	font-weight: 700;
	line-height: 1.1;
	color: var(--wp--preset--color--white);
}

.kompas-install-prompt__text {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: rgba( 255, 255, 255, 0.86 );
}

.kompas-install-prompt__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.kompas-install-prompt__button {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 0.7rem 1rem;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.kompas-install-prompt__button:disabled {
	cursor: wait;
	opacity: 0.7;
}

.kompas-install-prompt__button--primary {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.kompas-install-prompt__button--primary:hover,
.kompas-install-prompt__button--primary:focus-visible {
	background: #cf2028;
}

.kompas-install-prompt__button--ghost {
	background: transparent;
	border-color: rgba( 255, 255, 255, 0.22 );
	color: var(--wp--preset--color--white);
}

.kompas-install-prompt__button--ghost:hover,
.kompas-install-prompt__button--ghost:focus-visible {
	border-color: rgba( 255, 255, 255, 0.5 );
	background: rgba( 255, 255, 255, 0.08 );
}

@media (max-width: 781px) {
	.kompas-install-prompt {
		right: 1rem;
		left: 1rem;
		bottom: 1rem;
		width: auto;
	}

	.kompas-install-prompt__actions {
		flex-direction: column;
	}

	.kompas-install-prompt__button {
		width: 100%;
	}
}

/* ========================================================================
   Hero Grid
   ======================================================================== */

.kompas-hero__sidebar { padding-top: 0; margin-top: 0; }
.kompas-hero__aside   { padding-top: 0; margin-top: 0; }

/* Homepage Hero block layout */
.kompas-homepage-hero {
	display: flex;
	gap: var(--wp--preset--spacing--50);
}

.kompas-homepage-hero__sidebar {
	flex: 0 0 33.333%;
	max-width: 33.333%;
}

.kompas-homepage-hero__center {
	flex: 1 1 auto;
}

.kompas-homepage-hero__sidebar--mobile {
	display: none;
}

@media (max-width: 781px) {
	/* Mobile flow: center -> sidebar -> rec urednika -> kolumne -> video -> baner */
	.kompas-hero {
		display: flex;
		flex-direction: column;
	}

	.kompas-hero__cols,
	.kompas-hero__main,
	.kompas-homepage-hero,
	.kompas-hero__aside {
		display: contents;
	}

	.kompas-rec-urednika               { order: 3; }
	.kompas-kolumne                    { order: 4; }
	.kompas-video                      { order: 5; }
	.kompas-hero__aside .kompas-banner { order: 6; }

	/* Sakrij originalni sidebar na mobilnom – duplikat je u centru */
	.kompas-homepage-hero__sidebar { display: none !important; }

	/* Prikaži mobilni duplikat sidebar-a */
	.kompas-homepage-hero__sidebar--mobile { display: block; }

	/* Sidebar items: horizontal on mobile (image left, text right) */
	.kompas-homepage-hero__sidebar--mobile .kompas-homepage-hero__sidebar-item {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--40);
		align-items: flex-start;
	}

	.kompas-homepage-hero__sidebar--mobile .kompas-homepage-hero__sidebar-item > a:first-child {
		flex: 0 0 35%;
		max-width: 35%;
		margin-bottom: 0 !important;
	}

	.kompas-homepage-hero {
		flex-direction: column;
	}

	.kompas-homepage-hero__center,
	.kompas-homepage-hero__sidebar {
		flex-basis: 100%;
		max-width: 100%;
		width: 100%;
	}

	.kompas-rec-urednika,
	.kompas-kolumne,
	.kompas-video,
	.kompas-hero__aside .kompas-banner {
		width: 100%;
		max-width: 100%;
	}

	.kompas-homepage-hero__sub-item {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: flex-start !important;
		gap: var(--wp--preset--spacing--40) !important;
	}

	.kompas-homepage-hero__sub-item > a:first-child {
		flex: 0 0 38% !important;
		max-width: 38% !important;
		margin-bottom: 0 !important;
	}

	.kompas-homepage-hero__sub-item > div:last-child {
		flex: 1 1 auto !important;
		min-width: 0;
	}
}

/* ========================================================================
   Header
   ======================================================================== */

/* Constrain header content so tag row starts after the logo column */
.kompas-header {
	width: 100%;
	align-items: stretch;
}

.kompas-header-row{
	margin-top: 0;
	align-items: stretch;
}

/* Header columns row */
.kompas-header-row.wp-block-columns {
	align-items: stretch;
	gap: 0 !important;
	column-gap: 0 !important;
	--wp--style--block-gap: 0 !important;
	border-right: 1px solid var(--wp--preset--color--border);
}

.kompas-header-row.wp-block-columns > .wp-block-column {
	margin: 0 !important;
}

/* Logo column */
.kompas-logo-col {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0;
	border-left: 1px solid var(--wp--preset--color--border);
}

.kompas-logo {
	max-width: 280px;
	margin: 0 0 0 auto;
}

.kompas-logo img,
.kompas-logo .wp-block-site-logo img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* Nav column: two stacked rows filling full height */
.kompas-nav-col {
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--wp--preset--color--border);
	overflow: visible;
}

/* Top row: categories ... search */
.kompas-header-top-row {
	flex: 1.25 1 0;
	min-height: 52px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	overflow: visible;
}

/* Bottom row: tags ... cir/lat */
.kompas-header-bottom-row {
	flex: 0.75 1 0;
	min-height: 34px;
	margin-top: 0 !important;
	padding-right: 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* Categories nav */
.kompas-header-categories {
	display: flex;
	flex-wrap: nowrap;
	gap: clamp(0.5rem, 1.5vw, 2rem);
	align-items: center;
	overflow: visible;
	min-width: 0;
}

/* WP nav menu reset */
.kompas-header-categories .kompas-nav-menu,
.kompas-header-tags .kompas-nav-menu {
	display: flex;
	flex-wrap: nowrap;
	gap: inherit;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kompas-header-categories .kompas-nav-menu li,
.kompas-header-tags .kompas-nav-menu li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kompas-header-categories .kompas-nav-menu a {
	display: block;
	font-size: clamp(0.7rem, 1vw, 0.9375rem);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--dark);
	text-decoration: none;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--montserrat);
	transition: color 0.15s;
}

.kompas-header-categories .kompas-nav-menu a:hover,
.kompas-header-categories .kompas-nav-menu .current-menu-item > a,
.kompas-header-categories .kompas-nav-menu .current-menu-ancestor > a {
	color: var(--wp--preset--color--primary);
}

/* Dropdown sub-menu */
.kompas-header-categories .kompas-nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border-top: 2px solid var(--wp--preset--color--primary);
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	min-width: 180px;
	z-index: 9999;
	flex-direction: column;
	gap: 0;
	padding: 0.25rem 0;
	list-style: none;
	margin: 0;
}

.kompas-header-categories .kompas-nav-menu li:hover > .sub-menu,
.kompas-header-categories .kompas-nav-menu li:focus-within > .sub-menu {
	display: flex;
}

.kompas-header-categories .kompas-nav-menu .sub-menu a {
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
	padding: 0.5rem 1rem;
	color: var(--wp--preset--color--dark);
}

.kompas-header-categories .kompas-nav-menu .sub-menu a:hover {
	color: var(--wp--preset--color--primary);
	background: #f7f7f7;
}

.kompas-header-link {
	font-size: clamp(0.7rem, 1vw, 0.9375rem);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--dark);
	text-decoration: none;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--montserrat);
	transition: color 0.15s;
}

.kompas-header-link:hover {
	color: var(--wp--preset--color--primary);
}

/* Tags nav */
.kompas-header-tags {
	display: flex;
	flex-wrap: nowrap;
	gap: clamp(0.5rem, 1.5vw, 1.5rem);
	align-items: center;
	overflow: hidden;
	min-width: 0;
}

.kompas-header-tags .kompas-nav-menu a,
.kompas-header-tag-link {
	font-size: clamp(0.58rem, 0.8vw, 0.75rem);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--montserrat);
	transition: color 0.15s;
}

.kompas-header-tags .kompas-nav-menu a:hover,
.kompas-header-tags .kompas-nav-menu .current-menu-item > a,
.kompas-header-tags .kompas-nav-menu .current-menu-ancestor > a,
.kompas-header-tag-link:hover {
	color: var(--wp--preset--color--dark);
}

/* Search (stable layout for icon-only and input variants) */
.kompas-header-top-row > .kompas-search,
.kompas-header-kolumne__top-controls > .kompas-search {
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 var(--wp--preset--spacing--30);
	flex: 0 0 auto;
}

.kompas-search.wp-block-search {
	width: clamp(220px, 19vw, 320px);
	max-width: 100%;
}

.kompas-search.wp-block-search__button-only {
	width: auto;
	min-width: 4rem;
}

.kompas-search .wp-block-search__inside-wrapper {
	display: flex;
	align-items: center;
	gap: 0;
	width: 100%;
	min-height: 40px;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--white);
	padding: 0 0.375rem 0 0.75rem;
	box-sizing: border-box;
}

.kompas-search.wp-block-search__button-only .wp-block-search__inside-wrapper {
	width: auto;
	min-height: auto;
	border: none !important;
	box-shadow: none !important;
	background: transparent;
	padding: 0;
}

.kompas-search .wp-block-search__input {
	border: none;
	box-shadow: none !important;
	outline: none;
	background: transparent;
	height: 38px;
	min-width: 0;
	width: 100%;
	padding: 0;
	margin: 0;
	color: var(--wp--preset--color--dark);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.kompas-header-kolumne .kompas-search .wp-block-search__input {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 0.875rem;
}

.kompas-search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

.kompas-search .wp-block-search__input:focus {
	outline: none;
}

.kompas-search .wp-block-search__button {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	border-left: 1px solid var(--wp--preset--color--border);
	padding: 0.5rem;
	min-width: 2.25rem;
	height: 2.25rem;
	cursor: pointer;
	color: var(--wp--preset--color--dark);
	line-height: 1;
	margin: 0;
	flex: 0 0 auto;
}

.kompas-search.wp-block-search__button-only .wp-block-search__button {
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none;
	appearance: none;
	padding: 0;
	min-width: auto;
	height: auto;
	background: transparent;
}

.kompas-search .wp-block-search__button:hover {
	color: var(--wp--preset--color--dark);
}

/* Cir/Lat toggle */
.kompas-script-toggle {
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
	margin: 0 !important;
}

.kompas-header-bottom-row > .kompas-script-toggle {
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 6rem;
	padding: 0 var(--wp--preset--spacing--30);
	border-left: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--dark);
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.03em !important;
	text-align: center;
}

/* Author header logo */
.kompas-logo-author img,
.kompas-logo-author .wp-block-site-logo img {
	max-height: 50px;
	width: auto;
}

/* ========================================================================
   Header - Kolumne
   ======================================================================== */

.kompas-header-kolumne {
	width: 100%;
}

.kompas-header-kolumne__desktop {
	display: block;
}

.kompas-header-kolumne__row {
	margin-top: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.kompas-header-kolumne__inner {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

.kompas-header-kolumne__top-bar {
	min-height: 74px;
	align-items: center;
}

.kompas-header-kolumne .kompas-header-categories {
	gap: clamp(1rem, 2.4vw, 3rem);
}

.kompas-header-kolumne .kompas-header-categories .kompas-nav-menu a {
	font-family: 'Source Serif 4', Georgia, serif;
}

.kompas-header-kolumne .kompas-header-link {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.kompas-header-kolumne__top-controls {
	flex-shrink: 0;
}

.kompas-header-kolumne .kompas-script-toggle {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 0.8125rem !important;
	font-weight: 700;
}

.kompas-header-kolumne__row--logo .kompas-header-kolumne__inner {
	/* padding-top: var(--wp--preset--spacing--30); */
	/* padding-bottom: var(--wp--preset--spacing--30); */
}

.kompas-header-kolumne__logo-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.kompas-header-kolumne__logo-wrap::before,
.kompas-header-kolumne__logo-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border-top: 1px solid var(--wp--preset--color--border);
	width: calc(50% - 190px);
}

.kompas-header-kolumne__logo-wrap::before {
	left: 0;
}

.kompas-header-kolumne__logo-wrap::after {
	right: 0;
}

.kompas-logo-kolumne {
	margin: 0;
	position: relative;
	z-index: 1;
	background: var(--wp--preset--color--white);
	padding: 0 var(--wp--preset--spacing--50);
}

.kompas-logo-kolumne img,
.kompas-logo-kolumne .wp-block-site-logo img {
	display: block;
	width: clamp(220px, 20vw, 320px);
	height: auto;
	max-height: none;
}

/* ========================================================================
   Mobile Nav
   ======================================================================== */

/* Hide mobile nav on desktop */
.kompas-mobile-nav {
	display: none;
	position: relative;
	--kompas-mobile-bar-height: 64px;
	z-index: 10020;
}

/* Mobile top bar */
.kompas-mobile-bar {
	position: relative;
	display: flex;
	align-items: center;
	height: var(--kompas-mobile-bar-height);
	padding: 0 1rem;
	gap: 0.5rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--white);
	z-index: 10002;
}

.kompas-mobile-bar__logo {
	position: absolute;
	left: 3.5rem;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: stretch;
	z-index: 1;
	line-height: 0;
}

.kompas-mobile-bar__logo .custom-logo-link {
	display: flex;
	height: 100%;
	line-height: 0;
}

.kompas-mobile-bar__logo .kompas-mobile-bar__logo-link--kolumne {
	display: flex;
	align-items: center;
	height: 100%;
	line-height: 0;
}

.kompas-mobile-bar__logo .kompas-mobile-bar__logo-link--kolumne img {
	height: auto;
	width: auto;
	max-height: 36px;
	display: block;
}

.kompas-mobile-bar__logo img {
	height: 100%;
	max-height: none;
	width: auto;
	display: block;
}

.kompas-mobile-author-brand {
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--white);
	padding: 0.75rem 0 0.8125rem;
}

.kompas-mobile-author-brand__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0 0.5rem;
}

.kompas-mobile-author-brand__line {
	flex: 1 1 auto;
	height: 1px;
	background: var(--wp--preset--color--border);
}

.kompas-mobile-author-brand__logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 0;
}

.kompas-mobile-author-brand__logo {
	display: block;
	width: clamp(180px, 56vw, 250px);
	height: auto;
}

.kompas-mobile-bar__spacer {
	flex: 1 1 0%;
}

.kompas-mobile-bar__toggle {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
	margin: 0 !important;
}

.kompas-mobile-bar__search {
	display: none;
}

/* Horizontal scroll strips (categories + tags) */
.kompas-mobile-strip {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	gap: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.kompas-mobile-strip--cats {
	padding-top: 10px;
}


.kompas-mobile-strip::-webkit-scrollbar {
	display: none;
}

.kompas-mobile-strip__link {
	flex-shrink: 0;
	white-space: nowrap;
	text-decoration: none;
	text-transform: uppercase;
	font-family: var(--wp--preset--font-family--montserrat);
	padding: 0.625rem 1rem;
}

.kompas-mobile-strip__link--cat {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--dark);
}

.kompas-mobile-strip__link--tag {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--muted);
}

.kompas-mobile-strip__link:hover {
	color: var(--wp--preset--color--primary);
}

.kompas-mobile-nav.is-open .kompas-mobile-strip {
	display: none;
}

.kompas-mobile-nav--author.is-open .kompas-mobile-author-brand {
	display: none;
}

/* Hamburger button */
.kompas-mobile-hamburger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	flex-shrink: 0;
}

.kompas-mobile-hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--wp--preset--color--dark);
	transition: transform 0.3s, opacity 0.3s;
}

.kompas-mobile-hamburger.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.kompas-mobile-hamburger.is-open span:nth-child(2) {
	opacity: 0;
}

.kompas-mobile-hamburger.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.kompas-mobile-overlay {
	position: fixed;
	top: var(--kompas-mobile-bar-height);
	left: 0;
	width: 100%;
	height: calc(100dvh - var(--kompas-mobile-bar-height));
	background: #fff;
	z-index: 10001;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	padding-top: 0;
}

.kompas-mobile-overlay.is-open {
	transform: translateX(0);
}

.kompas-mobile-nav.is-open .kompas-mobile-overlay {
	top: var(--kompas-mobile-bar-height);
	/* top: 110px; */
	height: calc(100dvh - var(--kompas-mobile-bar-height));
}

.kompas-mobile-overlay__inner {
	padding: 0 1.25rem 3rem;
	padding-top: 30px;
}

/* Prevent body scroll when menu open */
body.kompas-mobile-menu-open {
	overflow: hidden;
	position: fixed;
	width: 100%;
	left: 0;
	right: 0;
}

/* Search in mobile menu */
.kompas-mobile-search {
	display: flex;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 3;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	margin-bottom: 1.5rem;
	overflow: hidden;
}

.kompas-mobile-search__input {
	flex: 1 1 0%;
	border: none;
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
	font-family: inherit;
	outline: none;
	background: transparent;
}

.kompas-mobile-search__btn {
	background: none;
	border: none;
	padding: 0.75rem 1rem;
	cursor: pointer;
	color: var(--wp--preset--color--dark);
	display: flex;
	align-items: center;
}

/* Categories hierarchy */
.kompas-mobile-cats__group {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.kompas-mobile-cats__parent {
	display: block;
	padding: 0.875rem 0;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--dark);
}

.kompas-mobile-cats__parent:hover {
	color: var(--wp--preset--color--primary);
}

.kompas-mobile-cats__children {
	padding-bottom: 0.5rem;
}

.kompas-mobile-cats__child {
	display: block;
	padding: 0.5rem 0 0.5rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 400;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--muted);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.kompas-mobile-cats__child:last-child {
	border-bottom: none;
}

.kompas-mobile-cats__child:hover {
	color: var(--wp--preset--color--dark);
}

.kompas-mobile-cats__tags {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	overflow: visible;
	padding: 0 0 0.75rem 1.5rem;
}

.kompas-mobile-cats__tags::-webkit-scrollbar {
	display: none;
}

.kompas-mobile-cats__tag {
	display: block;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.kompas-mobile-cats__tag:last-child {
	border-bottom: 0;
}

.kompas-mobile-cats__tag:hover {
	color: var(--wp--preset--color--dark);
}

/* Mobile breakpoint */
@media (max-width: 781px) {
	/* Show mobile nav, hide desktop nav */
	.kompas-mobile-nav {
		display: block;
	}

	.kompas-header-row.wp-block-columns {
		display: none !important;
	}
}

@media (min-width: 782px) {
	.kompas-mobile-nav {
		display: none !important;
	}
}

/* ========================================================================
   Navigation - Mobile Overlay
   ======================================================================== */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--60);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	display: block;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-weight: 400;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
	padding-left: 1.5rem;
}

/* ========================================================================
   Block Styles
   ======================================================================== */

/* Border top red style */
.is-style-kompas-border-top-red {
	border-top: 3px solid var(--wp--preset--color--primary);
	padding-top: var(--wp--preset--spacing--40);
}

/* Banner placeholder */
.is-style-kompas-banner-placeholder,
.kompas-banner {
	border: 1px solid #dddddd;
	background: var(--wp--preset--color--surface, #f9f9f9);
	width: 100%;
	overflow: hidden;
}

.kompas-banner--horizontal {
	min-height: 100px;
}

.kompas-banner--square {
	min-height: 300px;
	margin-top: var(--wp--preset--spacing--50);
}

.kompas-banner--has-image {
	display: block;
}

.kompas-banner__image {
	display: block;
	width: 100%;
	height: auto;
}

.kompas-banner--square .kompas-banner__image {
	object-fit: cover;
}

.kompas-banner--horizontal .kompas-banner__image {
	aspect-ratio: 6 / 1;
	object-fit: cover;
}

.kompas-banner__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	color: var(--wp--preset--color--muted, #999);
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.kompas-banner--square .kompas-banner__placeholder {
	min-height: 300px;
}

.kompas-banner--horizontal .kompas-banner__placeholder {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}

/* Section heading style: gray top border + fixed red segment */
.kompas-section-topline {
	position: relative;
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--40);
}

.kompas-section-topline::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: min(280px, 100%);
	border-top: 8px solid var(--wp--preset--color--primary);
}

/* Section headings with red underline */
.kompas-section-heading {
	border-bottom: 3px solid var(--wp--preset--color--primary);
	padding-bottom: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--50);
}

/* ========================================================================
   Post Content
   ======================================================================== */

.wp-block-post-content p {
	line-height: 1.8;
}

.wp-block-post-content blockquote {
	border-left: 3px solid var(--wp--preset--color--primary);
	padding-left: var(--wp--preset--spacing--50);
	font-style: italic;
	margin: var(--wp--preset--spacing--60) 0;
}

/* ========================================================================
   Post Featured Image - Object fit
   ======================================================================== */

.wp-block-post-featured-image img {
	object-fit: cover;
	width: 100%;
}

/* ========================================================================
   Author Template - Source Serif overrides
   ======================================================================== */

.has-source-serif-4-font-family .wp-block-post-title a {
	font-family: 'Source Serif 4', Georgia, serif;
}

/* Single kolumne: keep article typography in Source Serif 4. */
.single-post main.has-source-serif-4-font-family .wp-block-post-content,
.single-post main.has-source-serif-4-font-family .wp-block-post-content :where( p, li, h1, h2, h3, h4, h5, h6, blockquote ) {
	font-family: 'Source Serif 4', Georgia, serif;
}

/* Single kolumne: enforce square author avatar with circular crop. */
.kompas-kolumne-author-meta .wp-block-avatar {
	width: 80px;
	height: 80px;
}

.kompas-kolumne-author-meta .wp-block-avatar :where(img, .avatar) {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50% !important;
	display: block;
}

.kompas-author-wrap .kompas-author-avatar {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
}

.kompas-author-wrap .kompas-author-avatar :where(img, .avatar) {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50% !important;
	display: block;
}

/* CPT author single: keep profile photo perfectly square and circular. */
.single-kompas_autor .kompas-cpt-author-avatar {
	width: 120px;
	height: 120px;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	border-radius: 50%;
}

.single-kompas_autor .kompas-cpt-author-avatar img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50% !important;
	display: block;
}

/* Related posts desktop layout: force 4 cards in a single row. */
.kompas-related-posts-query {
	margin-top: var(--wp--preset--spacing--30);
}

.kompas-related-posts-query .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: var(--wp--preset--spacing--40) !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.kompas-related-posts-query .wp-block-post {
	display: block !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
}

@media (max-width: 1024px) {
	.kompas-related-posts-query .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* ========================================================================
   Responsive
   ======================================================================== */

@media (max-width: 781px) {
	.kompas-header-kolumne__desktop {
		display: none;
	}

	/* Stack columns on mobile */
	.wp-block-columns {
		flex-wrap: wrap;
	}

	.wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	/* Reduce padding on mobile */
	.wp-block-group[style*="padding-right:var(--wp--preset--spacing--50)"] {
		padding-right: var(--wp--preset--spacing--30) !important;
		padding-left: var(--wp--preset--spacing--30) !important;
	}

	/* Footer columns - 2 per row on tablet */
	@media (min-width: 600px) {
		.wp-block-columns > .wp-block-column {
			flex-basis: 48% !important;
		}
	}
}

@media (max-width: 599px) {
	/* Single column on small mobile */
	.wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	/* Horizontal scroll items become smaller */
	.wp-block-post-featured-image[style*="width:140px"] img,
	.wp-block-post-featured-image[style*="width:120px"] img {
		width: 100px;
	}
}

/* ========================================================================
   Pagination (unified for query-pagination and custom archive)
   ======================================================================== */

.wp-block-query-pagination {
	gap: 0;
	justify-content: center;
	flex-wrap: nowrap;
}

.wp-block-query-pagination-numbers {
	display: inline-flex;
	gap: 0;
	flex-wrap: nowrap;
	justify-content: center;
}

.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--dark);
	border: 1px solid var(--wp--preset--color--border);
	margin-left: -1px;
}

.wp-block-query-pagination-numbers .page-numbers:hover,
.wp-block-query-pagination-next:hover,
.wp-block-query-pagination-previous:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-color: var(--wp--preset--color--primary);
}

/* ========================================================================
   Tabs: Najnovije / Najcitanije
   ======================================================================== */

.kompas-tabs-section .kompas-tabs-nav {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.kompas-tab-btn {
	transition: color 0.2s, border-color 0.2s;
}

.kompas-tab-btn:hover {
	color: var(--wp--preset--color--dark) !important;
}

.kompas-tab-panel a:hover {
	color: var(--wp--preset--color--primary) !important;
}

.kompas-tab-panel .wp-block-columns {
	display: flex;
	flex-wrap: wrap;
}

.kompas-tab-panel .wp-block-column {
	flex: 1 1 0;
	min-width: 0;
}

.kompas-tabs-viewall--bottom {
	display: none;
}

@media (max-width: 781px) {
	.kompas-tab-panel .wp-block-columns {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--40) !important;
	}

	.kompas-tab-panel .wp-block-column {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--40);
		margin: 0 !important;
	}

	.kompas-tab-panel .wp-block-column > a:first-child {
		flex: 0 0 38%;
		max-width: 38%;
		margin-bottom: 0 !important;
	}

	.kompas-tab-panel .wp-block-column > h4 {
		flex: 1 1 auto;
		margin: 0 !important;
	}

	.kompas-tabs-heading .kompas-tabs-viewall {
		display: none !important;
	}

	.kompas-tabs-viewall--bottom {
		display: flex;
		justify-content: center;
		gap: var(--wp--preset--spacing--50);
		padding-top: var(--wp--preset--spacing--50);
		flex-wrap: wrap;
	}

	/* Related posts: 2x2 grid on mobile. */
	.kompas-related-posts-query .wp-block-post-template {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: var(--wp--preset--spacing--40) !important;
	}

	.kompas-related-posts-query .wp-block-post {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
		margin: 0 !important;
	}

	.kompas-related-posts-query .wp-block-post-featured-image {
		width: 100%;
		margin: 0 !important;
	}

	.kompas-related-posts-query .wp-block-post-featured-image img {
		display: block;
		width: 100%;
	}

	.kompas-related-posts-query .wp-block-post-title {
		margin: 0 !important;
		font-size: 0.875rem !important;
	}
}

/* Editor-only fixes: keep desktop-like previews in narrow editor iframe. */
.editor-styles-wrapper .kompas-mobile-nav,
.block-editor-iframe__body .kompas-mobile-nav {
	display: none !important;
}

.editor-styles-wrapper .kompas-header-row.wp-block-columns,
.block-editor-iframe__body .kompas-header-row.wp-block-columns {
	display: flex !important;
	flex-wrap: nowrap !important;
	min-width: 1080px;
}

.editor-styles-wrapper .kompas-header,
.block-editor-iframe__body .kompas-header,
.editor-styles-wrapper .kompas-header-kolumne,
.block-editor-iframe__body .kompas-header-kolumne {
	min-width: 1080px;
	overflow-x: auto;
}

.editor-styles-wrapper .kompas-header-row.wp-block-columns > .wp-block-column.kompas-logo-col,
.block-editor-iframe__body .kompas-header-row.wp-block-columns > .wp-block-column.kompas-logo-col {
	flex: 0 0 18% !important;
	max-width: 18% !important;
}

.editor-styles-wrapper .kompas-header-row.wp-block-columns > .wp-block-column.kompas-nav-col,
.block-editor-iframe__body .kompas-header-row.wp-block-columns > .wp-block-column.kompas-nav-col {
	flex: 0 0 82% !important;
	max-width: 82% !important;
}

.editor-styles-wrapper .kompas-header-top-row,
.block-editor-iframe__body .kompas-header-top-row,
.editor-styles-wrapper .kompas-header-bottom-row,
.block-editor-iframe__body .kompas-header-bottom-row {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding-right: var(--wp--preset--spacing--50) !important;
	padding-left: var(--wp--preset--spacing--50) !important;
}

.editor-styles-wrapper .kompas-nav-col,
.block-editor-iframe__body .kompas-nav-col {
	display: flex !important;
	flex-direction: column !important;
}

.editor-styles-wrapper .kompas-mobile-nav,
.block-editor-iframe__body .kompas-mobile-nav {
	display: none !important;
}

.editor-styles-wrapper .kompas-header-kolumne__desktop,
.block-editor-iframe__body .kompas-header-kolumne__desktop {
	display: block !important;
}

.editor-styles-wrapper .kompas-related-posts-query .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: var(--wp--preset--spacing--40) !important;
}

.editor-styles-wrapper .kompas-related-posts-query .wp-block-post {
	display: block !important;
	margin: 0 !important;
}

.editor-styles-wrapper .kompas-related-posts-query .wp-block-post-featured-image {
	max-width: none !important;
	margin: 0 0 var(--wp--preset--spacing--20) !important;
}

.editor-styles-wrapper .kompas-related-posts-query .wp-block-post-title {
	margin: 0 !important;
}

.editor-styles-wrapper .kompas-footer-categories,
.editor-styles-wrapper .kompas-footer-categories--menu .kompas-footer-categories__menu {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: space-between !important;
	gap: var(--wp--preset--spacing--60) !important;
}

.editor-styles-wrapper .kompas-footer-cat-col,
.editor-styles-wrapper .kompas-footer-categories--menu .kompas-footer-categories__menu > .menu-item {
	flex: 1 1 0% !important;
	min-width: 120px !important;
}

/* ========================================================================
   Separator
   ======================================================================== */

.wp-block-separator {
	border-top: 1px solid var(--wp--preset--color--border);
	opacity: 1;
}

/* ========================================================================
   Tag Pills
   ======================================================================== */

.kompas-tag-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.kompas-tag-pills a {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	background: #b0b0b0;
	color: #fff !important;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
	transition: background 0.15s;
}

.kompas-tag-pills a:hover {
	background: var(--wp--preset--color--primary);
}

/* WP outputs tags as comma-separated links with .wp-block-post-terms */
.kompas-tag-pills.wp-block-post-terms {
	gap: 0.5rem;
}

.kompas-tag-pills.wp-block-post-terms .wp-block-post-terms__separator {
	display: none;
}

/* ========================================================================
   Gallery Slider
   ======================================================================== */

.kompas-gallery-slider {
	margin: var(--wp--preset--spacing--50) 0;
}

.kompas-gallery-slider__viewport {
	position: relative;
	overflow: hidden;
	background: #f0f0f0;
	border: 1px solid var(--wp--preset--color--border);
}

.kompas-gallery-slider__img {
	display: block;
	width: 100%;
	height: auto;
}

.kompas-gallery-slider__slide {
	position: relative;
}

/* Arrows */
.kompas-gallery-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.85);
	border: none;
	width: 48px;
	height: 48px;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	color: var(--wp--preset--color--dark);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	z-index: 2;
}

.kompas-gallery-slider__arrow:hover {
	background: rgba(255, 255, 255, 1);
}

.kompas-gallery-slider__arrow--prev {
	left: 0;
}

.kompas-gallery-slider__arrow--next {
	right: 0;
}

/* Fraction counter */
.kompas-gallery-slider__fraction {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 4px 14px;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	z-index: 2;
}

.kompas-gallery-slider__source {
	position: absolute;
	bottom: 0;
	right: 0;
	z-index: 2;
	display: inline-block;
	max-width: calc(100% - 24px);
}

@media (max-width: 599px) {
	.kompas-gallery-slider__arrow {
		width: 36px;
		height: 36px;
		font-size: 1.5rem;
	}
}

/* Thumbnail strip */
.kompas-gallery-slider__thumbs {
	margin-top: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.kompas-gallery-slider__thumbs::-webkit-scrollbar {
	display: none;
}

.kompas-gallery-slider__thumbs-track {
	display: flex;
	gap: 4px;
	width: max-content;
	min-width: 100%;
	justify-content: center;
}

.kompas-gallery-slider__thumbs .kompas-gallery-slider__thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 54px;
	overflow: hidden;
	padding: 0;
	border: 2px solid transparent;
	background: #111;
	cursor: pointer;
	transition: border-color 0.15s;
}

.kompas-gallery-slider__thumbs .kompas-gallery-slider__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kompas-gallery-slider__thumbs .kompas-gallery-slider__thumb.is-active {
	border-color: var(--wp--preset--color--primary);
}

/* Slider lightbox (reuses .kompas-gallery-lb__* classes) */
#kompas-slider-lb {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.92);
	justify-content: center;
	align-items: center;
}

#kompas-slider-lb.is-open {
	display: flex;
}

/* ========================================================================
   Archive Layout
   ======================================================================== */

/* ── Hero Section ─────────────────────────────────────────────── */
.kompas-archive-hero {
	display: flex;
	gap: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--60);
}

.kompas-archive-hero-left {
	flex: 0 0 75%;
	min-width: 0;
}

.kompas-archive-hero-right {
	flex: 0 0 calc(25% - var(--wp--preset--spacing--50));
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--50);
}

/* Main big post */
.kompas-archive-hero-main {
	margin-bottom: var(--wp--preset--spacing--50);
}

/* 4 posts below main: 2x2 grid */
.kompas-archive-hero-horiz {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--40);
}

.kompas-archive-card-h {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.kompas-archive-card-h__img {
	flex: none;
	width: 100%;
}

.kompas-archive-card-h__img img {
	width: 100%;
	height: auto;
	display: block;
}

.kompas-archive-card-h__text {
	flex: none;
	min-width: 0;
}

.kompas-archive-hero-horiz .kompas-archive-img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
	display: block;
}

.kompas-archive-hero-horiz .kompas-archive-title {
	font-size: 1.0625rem;
	font-weight: 700;
}

/* Right sidebar vertical cards */
.kompas-archive-card-v {
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.kompas-archive-card-v:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

/* ── Shared styles ────────────────────────────────────────────── */
.kompas-archive-img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	margin-bottom: var(--wp--preset--spacing--20);
}

.kompas-archive-img--hero {
	aspect-ratio: 16 / 9;
}

.kompas-archive-title {
	margin: 0 0 0.25rem;
	line-height: 1.3;
}

.kompas-archive-title a {
	color: var(--wp--preset--color--dark);
	text-decoration: none;
}

.kompas-archive-title a:hover {
	color: var(--wp--preset--color--primary);
}

.kompas-archive-title--lg {
	font-size: 1.5rem;
	font-weight: 700;
}

.kompas-archive-title--md {
	font-size: 1.5rem;
	font-weight: 700;
}

.kompas-archive-title--sm {
	font-size: 1.0625rem;
	font-weight: 700;
}

.kompas-archive-excerpt {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
	margin: 0.25rem 0 0;
}

/* ── Grid Section ─────────────────────────────────────────────── */
.kompas-archive-grid {
	margin-top: var(--wp--preset--spacing--60);
}

.kompas-archive-grid-row {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--50);
}

.kompas-archive-grid-row--4 {
	grid-template-columns: repeat(4, 1fr);
}

.kompas-archive-grid-row--3 {
	grid-template-columns: repeat(3, 1fr);
}

.kompas-archive-grid-row--2 {
	grid-template-columns: repeat(2, 1fr);
}

.kompas-archive-author {
	display: block;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
	margin-top: var(--wp--preset--spacing--20);
}

/* ── Pagination ───────────────────────────────────────────────── */
.kompas-archive-pagination {
	margin-top: var(--wp--preset--spacing--60);
	text-align: center;
}

.kompas-archive-pagination .page-numbers {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	list-style: none;
	padding: 0;
	margin: 0;
	justify-content: center;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.kompas-archive-pagination .page-numbers li {
	margin: 0;
}

.kompas-archive-pagination .page-numbers a,
.kompas-archive-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--dark);
	border: 1px solid var(--wp--preset--color--border);
	margin-left: -1px;
}

.kompas-archive-pagination .page-numbers a:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
}

.kompas-archive-pagination .page-numbers .current {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-color: var(--wp--preset--color--primary);
}

@media (max-width: 600px) {
	.wp-block-query-pagination {
		flex-wrap: nowrap;
		justify-content: center;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.kompas-archive-pagination .page-numbers,
	.kompas-post-list__pagination .page-numbers {
		justify-content: center;
	}

	.wp-block-query-pagination-numbers {
		flex-wrap: nowrap;
	}

	.wp-block-query-pagination-numbers .page-numbers.dots,
	.kompas-pagination .page-numbers.dots,
	.kompas-archive-pagination .page-numbers .dots,
	.kompas-post-list__pagination .page-numbers .dots {
		display: none;
	}

	.wp-block-query-pagination-numbers .page-numbers,
	.wp-block-query-pagination-next,
	.wp-block-query-pagination-previous,
	.kompas-pagination .page-numbers,
	.kompas-archive-pagination .page-numbers a,
	.kompas-archive-pagination .page-numbers span,
	.kompas-post-list__pagination .page-numbers a,
	.kompas-post-list__pagination .page-numbers span {
		min-width: 2rem;
		height: 2rem;
		padding: 0 0.4rem;
		font-size: 0.8125rem;
	}
}

.kompas-archive-grid-item__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* ── Archive Responsive ───────────────────────────────────────── */
@media (max-width: 781px) {
	.kompas-archive-hero {
		flex-direction: column;
	}

	.kompas-archive-hero-left,
	.kompas-archive-hero-right {
		flex: 0 0 100%;
	}

	.kompas-archive-hero-horiz {
		grid-template-columns: 1fr;
	}

	.kompas-archive-card-h {
		flex-direction: row;
		align-items: flex-start;
	}

	.kompas-archive-card-h__img {
		flex: 0 0 38%;
		max-width: 38%;
	}

	.kompas-archive-card-h__text {
		flex: 1 1 auto;
		min-width: 0;
	}

	.kompas-archive-card-h__text .kompas-archive-title {
		font-size: 1.0625rem;
	}

	.kompas-archive-grid-row--4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.kompas-archive-grid-row--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.kompas-archive-grid-row--2 {
		grid-template-columns: 1fr;
	}

	/* Archive right rail + grid become horizontal cards on mobile. */
	.kompas-archive-hero-right .kompas-archive-card-v {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--40);
		padding-bottom: var(--wp--preset--spacing--40);
	}

	.kompas-archive-hero-right .kompas-archive-card-v > a {
		flex: 0 0 38%;
		max-width: 38%;
		display: block;
	}

	.kompas-archive-hero-right .kompas-archive-card-v .kompas-archive-img {
		margin-bottom: 0;
	}

	.kompas-archive-hero-right .kompas-archive-card-v .kompas-archive-title {
		flex: 1 1 auto;
		margin: 0;
	}

	.kompas-archive-grid-row {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--40);
		margin-bottom: var(--wp--preset--spacing--40);
	}

	.kompas-archive-grid-item {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--40);
	}

	.kompas-archive-grid-item > a {
		flex: 0 0 38%;
		max-width: 38%;
		display: block;
	}

	.kompas-archive-grid-item__text {
		flex: 1 1 auto;
		min-width: 0;
	}

	.kompas-archive-grid-item .kompas-archive-img {
		margin-bottom: 0;
	}

	.kompas-archive-grid-item .kompas-archive-title {
		margin: 0;
		font-size: 1.0625rem;
	}

	.kompas-archive-grid-item .kompas-archive-excerpt {
		display: none;
	}

	/* Author archive: first large, remaining horizontal cards. */
	.author .kompas-author-query .wp-block-post-template,
	.single-kompas_autor .kompas-author-query .wp-block-post-template {
		display: flex !important;
		flex-direction: column !important;
		gap: var(--wp--preset--spacing--40) !important;
	}

	.author .kompas-author-query .wp-block-post,
	.single-kompas_autor .kompas-author-query .wp-block-post {
		width: 100% !important;
		margin: 0 !important;
	}

	.author .kompas-author-query .wp-block-post:first-child,
	.single-kompas_autor .kompas-author-query .wp-block-post:first-child {
		display: block;
	}

	.author .kompas-author-query .wp-block-post:not(:first-child),
	.single-kompas_autor .kompas-author-query .wp-block-post:not(:first-child) {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--40);
	}

	.author .kompas-author-query .wp-block-post:not(:first-child) .wp-block-post-featured-image,
	.single-kompas_autor .kompas-author-query .wp-block-post:not(:first-child) .wp-block-post-featured-image {
		flex: 0 0 38%;
		max-width: 38%;
		margin: 0 !important;
	}

	.author .kompas-author-query .wp-block-post:not(:first-child) .wp-block-post-title,
	.single-kompas_autor .kompas-author-query .wp-block-post:not(:first-child) .wp-block-post-title {
		flex: 1 1 auto;
		margin: 0 !important;
		font-size: 1rem !important;
	}
}

@media (max-width: 480px) {

	.kompas-archive-grid-row--4,
	.kompas-archive-grid-row--3 {
		grid-template-columns: 1fr;
	}
}

/* ========================================================================
   Footer
   ======================================================================== */

.kompas-footer {
	background: var(--wp--preset--color--white);
	padding: 0
}

.kompas-footer__row {
	border-top: 1px solid var(--wp--preset--color--border);
}

.kompas-footer__inner {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

.kompas-footer__row--top .kompas-footer__inner {
	padding-top: 0;
	padding-bottom: var(--wp--preset--spacing--70);
}

.kompas-footer__row--categories .kompas-footer__inner {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.kompas-footer__row--bottom .kompas-footer__inner {
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--50);
}

.kompas-footer__top-layout {
	position: relative;
	align-items: center;
	justify-content: center !important;
}

.kompas-footer-logo {
	position: absolute;
	left: 0;
	top: -42px;
	z-index: 2;
	margin: 0 !important;
	margin-left: 0;
	margin-top: 0;
	margin-bottom: 0;
	max-width: 280px;
}

.kompas-footer-logo img,
.kompas-footer-logo .wp-block-site-logo img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

@media (min-width: 782px) {
	.kompas-footer__row--top .kompas-footer__inner {
		max-width: none;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.kompas-footer__top-layout {
		display: grid !important;
		grid-template-columns: 18% 82%;
		align-items: center;
		justify-content: stretch !important;
	}

	.kompas-footer-logo {
		position: relative;
		left: auto;
		grid-column: 1;
		justify-self: end;
	}

	.kompas-footer__social-wrap {
		grid-column: 1 / -1;
		justify-self: center;
		width: auto;
		margin-left: 0;
		margin-right: 0;
	}
}

.kompas-footer__social-wrap {
	min-width: 0;
	flex: 0 0 auto;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.kompas-footer__social-wrap .wp-block-social-links {
	margin: 0;
}

.kompas-footer__bottom-wrap {
	width: 100%;
}

.kompas-footer__bottom-wrap > * {
	margin-top: 0;
}

/* Social icons */
.wp-block-social-links.is-style-logos-only .wp-social-link svg {
	width: 20px;
	height: 20px;
}

/* Footer pages nav */
.kompas-footer-pages-nav {
	width: 100%;
	margin-bottom: var(--wp--preset--spacing--40);
}

.kompas-footer-pages-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--60);
	list-style: none;
	margin: 0;
	padding: 0;
}

.kompas-footer-pages-nav__link {
	color: var(--wp--preset--color--dark);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.kompas-footer-pages-nav__link:hover,
.kompas-footer-pages-nav__link.is-active {
	color: var(--wp--preset--color--primary);
}

/* Footer category/menu columns */
.kompas-footer-categories {
	width: 100%;
}

.kompas-footer-categories--menu .kompas-footer-categories__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--60);
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.kompas-footer-categories--menu .kompas-footer-categories__menu > .menu-item {
	flex: 1 1 0%;
	min-width: 120px;
	margin: 0;
	list-style: none;
}

.kompas-footer-categories .kompas-footer-cat-col {
	flex: 1 1 0%;
	min-width: 120px;
}

.kompas-footer-categories--menu .kompas-footer-categories__menu > .menu-item > a {
	display: block;
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--dark);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.kompas-footer-categories--menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kompas-footer-categories--menu .sub-menu > .menu-item {
	margin: 0 0 0.4rem;
	list-style: none;
}

.kompas-footer-categories--menu .sub-menu > .menu-item:last-child {
	margin-bottom: 0;
}

.kompas-footer-categories--menu .sub-menu > .menu-item > a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.kompas-footer-categories--menu .kompas-footer-categories__menu > .menu-item > a:hover,
.kompas-footer-categories--menu .kompas-footer-categories__menu > .menu-item.current-menu-item > a,
.kompas-footer-categories--menu .kompas-footer-categories__menu > .menu-item.current-menu-ancestor > a,
.kompas-footer-categories--menu .sub-menu > .menu-item > a:hover,
.kompas-footer-categories--menu .sub-menu > .menu-item.current-menu-item > a,
.kompas-footer-categories--menu .sub-menu > .menu-item.current-menu-ancestor > a {
	color: var(--wp--preset--color--primary);
}

/* Legacy support for previously generated footer structure. */
.kompas-footer-categories h4 {
	margin-top: 0;
	margin-bottom: 0.75rem;
}

.kompas-footer-categories h4 a:hover,
.kompas-footer-categories h4 a.is-active,
.kompas-footer-categories p a:hover,
.kompas-footer-categories p a.is-active {
	color: var(--wp--preset--color--primary) !important;
}

@media (max-width: 781px) {
	.kompas-footer__row--top .kompas-footer__inner {
		padding-top: var(--wp--preset--spacing--50);
	}

	.kompas-footer__top-layout {
		position: static;
		flex-wrap: wrap !important;
		justify-content: center !important;
		gap: var(--wp--preset--spacing--50);
	}

	.kompas-footer-logo {
		position: static;
		margin-left: 0;
		margin-top: 0;
	}

	.kompas-footer__social-wrap {
		flex: 1 1 100%;
	}

	.kompas-footer-pages-nav__list {
		gap: var(--wp--preset--spacing--40);
	}

	.kompas-footer-categories:not(.kompas-footer-categories--menu),
	.kompas-footer-categories--menu .kompas-footer-categories__menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	}

	.kompas-footer-cat-col,
	.kompas-footer-categories--menu .kompas-footer-categories__menu > .menu-item {
		flex: none;
		min-width: 0;
		margin-bottom: 0;
	}
}

@media (max-width: 480px) {
	.kompas-footer-categories:not(.kompas-footer-categories--menu),
	.kompas-footer-categories--menu .kompas-footer-categories__menu {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--40);
	}

	.kompas-footer-cat-col,
	.kompas-footer-categories--menu .kompas-footer-categories__menu > .menu-item {
		flex: none;
		min-width: 0;
	}

	.kompas-footer-pages-nav__list {
		gap: var(--wp--preset--spacing--30);
	}
}

/* ========================================================================
   Category Grid
   ======================================================================== */

.kompas-catgrid {
	padding: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--60);
}

.kompas-catgrid__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--wp--preset--spacing--50);
}


.kompas-catgrid__title {
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--dark);
	text-decoration: none;
}

.kompas-catgrid__title:hover {
	color: var(--wp--preset--color--primary);
}

.kompas-catgrid__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	margin-bottom: var(--wp--preset--spacing--30);
}

.kompas-catgrid__post-title a {
	color: var(--wp--preset--color--dark);
	text-decoration: none;
}

.kompas-catgrid__post-title a:hover {
	color: var(--wp--preset--color--primary);
}

.kompas-catgrid__post-title--lg {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.5rem;
}

.kompas-catgrid__post-title--sm {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}

.kompas-catgrid__excerpt {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
	margin: 0;
}

/* Row 1: 2 large */
.kompas-catgrid__row-large {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--50);
}

/* Row 2: 4 small */
.kompas-catgrid__row-small {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--40);
}

@media (max-width: 781px) {
	.kompas-catgrid__row-large,
	.kompas-catgrid__row-small {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--40);
	}

	.kompas-catgrid__row-large {
		margin-bottom: var(--wp--preset--spacing--40);
	}

	/* Only first post stays large on mobile. */
	.kompas-catgrid__row-large .kompas-catgrid__item-large:first-child {
		display: block;
	}

	.kompas-catgrid__row-large .kompas-catgrid__item-large:first-child .kompas-catgrid__img {
		margin-bottom: var(--wp--preset--spacing--30);
	}

	/* Everything after first post becomes horizontal. */
	.kompas-catgrid__row-large .kompas-catgrid__item-large:not(:first-child),
	.kompas-catgrid__row-small .kompas-catgrid__item-small {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--40);
	}

	.kompas-catgrid__row-large .kompas-catgrid__item-large:not(:first-child) .kompas-catgrid__img-link,
	.kompas-catgrid__row-small .kompas-catgrid__item-small .kompas-catgrid__img-link {
		flex: 0 0 38%;
		max-width: 38%;
		display: block;
	}

	.kompas-catgrid__row-large .kompas-catgrid__item-large:not(:first-child) .kompas-catgrid__img,
	.kompas-catgrid__row-small .kompas-catgrid__item-small .kompas-catgrid__img {
		margin-bottom: 0;
	}

	.kompas-catgrid__row-large .kompas-catgrid__item-large:not(:first-child) .kompas-catgrid__post-title--lg {
		font-size: 1rem;
		margin: 0;
	}

	.kompas-catgrid__row-large .kompas-catgrid__item-large:not(:first-child) .kompas-catgrid__excerpt {
		display: none;
	}

	.kompas-catgrid__row-small .kompas-catgrid__post-title--sm {
		margin: 0;
	}
}

/* ========================================================================
   Kolumne
   ======================================================================== */

.kompas-kolumne {
	padding: 0;
}

.kompas-kolumne__heading {
	margin-bottom: var(--wp--preset--spacing--50);
}

.kompas-kolumne__title {
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--dark);
	margin: 0;
}

.kompas-kolumne__list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

.kompas-kolumne__item {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--30);
	text-decoration: none;
	color: inherit;
	flex: 1 1 0%;
	min-width: 0;
}

.kompas-kolumne__item:hover .kompas-kolumne__name {
	color: var(--wp--preset--color--primary);
}

.kompas-kolumne__avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.kompas-kolumne__text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.kompas-kolumne__name {
	font-size: 0.8125rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--dark);
	transition: color 0.15s;
}

.kompas-kolumne__excerpt {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.kompas-kolumne__more {
	display: inline-block;
	margin-top: var(--wp--preset--spacing--50);
	padding: 0.625rem 1.5rem;
	border: 2px solid var(--wp--preset--color--dark);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	color: var(--wp--preset--color--dark);
	transition: background 0.15s, color 0.15s;
}

.kompas-kolumne__more:hover {
	background: var(--wp--preset--color--dark);
	color: #fff;
}


/* ========================================================================
   Reč Urednika
   ======================================================================== */

.kompas-rec-urednika {
	padding: 0 0 0 0;
	margin-top: 0;
}

.kompas-rec-urednika__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--wp--preset--spacing--50);
}

.kompas-rec-urednika__title {
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--dark);
	margin: 0;
}

.kompas-rec-urednika__title-link {
	text-decoration: none;
	color: inherit;
}

.kompas-rec-urednika__read {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	color: var(--wp--preset--color--primary);
	transition: opacity 0.15s;
}

.kompas-rec-urednika__read:hover {
	opacity: 0.75;
}

.kompas-rec-urednika__more {
	display: inline-block;
	margin-top: var(--wp--preset--spacing--40);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	color: var(--wp--preset--color--dark);
	border-bottom: 2px solid var(--wp--preset--color--dark);
	padding-bottom: 2px;
	transition: color 0.15s, border-color 0.15s;
}

.kompas-rec-urednika__more:hover {
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

/* ========================================================================
   "Pogledaj sve" / "Pogledaj više" – generičan link
   ======================================================================== */

.kompas-more-link {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	color: var(--wp--preset--color--dark);
	border-bottom: 2px solid var(--wp--preset--color--dark);
	padding-bottom: 2px;
	transition: color 0.15s, border-color 0.15s;
}

.kompas-more-link:hover {
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

/* ========================================================================
   Single Post: linkovi u tekstu (crvena boja)
   ======================================================================== */

.wp-block-post-content a:not( .wp-block-button__link ):not( .wp-element-button ) {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}

.wp-block-post-content a:not( .wp-block-button__link ):not( .wp-element-button ):hover {
	text-decoration: none;
}

.kompas-related-posts-query .wp-block-post-title a {
	color: var(--wp--preset--color--dark);
	text-decoration: none;
}

.kompas-related-posts-query .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
}

/* ========================================================================
   Featured Image Caption (izvor fotografije)
   ======================================================================== */

.wp-block-post-featured-image {
	position: relative;
}

.wp-block-post-content .wp-block-image {
	position: relative;
}

.kompas-image-frame {
	position: relative;
	display: block;
}

.kompas-image-frame > img {
	display: block;
	width: 100%;
	height: auto;
}

.kompas-featured-caption {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
	font-style: italic;
	margin: 0.5rem 0 0;
	padding: 0;
	line-height: 1.4;
	text-align: left;
}

.kompas-image-source {
	font-size: 0.6875rem;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	padding: 3px 7px;
	margin: 0;
	font-style: italic;
}
.kompas-image-source-label {
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.kompas-image-frame > .kompas-image-source {
	position: absolute;
	right: 0;
	bottom: 0;
}

/* ========================================================================
   Lightbox
   ======================================================================== */

.kompas-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 99999;
	justify-content: center;
	align-items: center;
	padding: 1rem;
	box-sizing: border-box;
}

.kompas-lightbox.is-open {
	display: flex;
}

.kompas-lightbox__wrap {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kompas-lightbox__img {
	display: block;
	max-width: 90vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.kompas-lightbox__source {
	position: absolute;
	right: 0;
	bottom: 0;
	max-width: calc(100% - 24px);
}

.kompas-lightbox__close {
	position: absolute;
	top: -2.5rem;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 2.25rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem;
	opacity: 0.85;
	transition: opacity 0.15s;
}

.kompas-lightbox__close:hover {
	opacity: 1;
}

/* ========================================================================
   Video Cards (zajedničko za homepage i arhivu)
   ======================================================================== */

.kompas-video-card {
	cursor: pointer;
}

.kompas-video-card__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
}

.kompas-video-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kompas-video-card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.kompas-video-card__play::before {
	content: '';
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 20px 0 20px 36px;
	border-color: transparent transparent transparent #fff;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65));
	transition: transform 0.15s ease;
}

.kompas-video-card:hover .kompas-video-card__play::before {
	transform: scale(1.12);
}

.kompas-video-card__title {
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0.5rem 0 0;
	line-height: 1.3;
}

/* ========================================================================
   Video Homepage Section
   ======================================================================== */

.kompas-video {
	padding: var(--wp--preset--spacing--50) 0;
}

.kompas-video__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--wp--preset--spacing--40);
}

.kompas-video__title {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0;
}

.kompas-video__all {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--wp--preset--color--primary);
}

.kompas-video__all:hover {
	text-decoration: underline;
}

.kompas-video__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--40);
}

@media (max-width: 600px) {
	.kompas-video__grid {
		grid-template-columns: 1fr;
	}
}

/* ========================================================================
   Video Archive Grid
   ======================================================================== */

.kompas-video-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--50);
}

.kompas-pagination {
	display: flex;
	gap: 0.25rem;
	justify-content: center;
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.kompas-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.5rem;
	border: 1px solid var(--wp--preset--color--border, #ddd);
	color: var(--wp--preset--color--dark);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
}

.kompas-pagination .page-numbers:hover {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
}

.kompas-pagination .page-numbers.current {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
}

@media (max-width: 780px) {
	.kompas-video-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.kompas-video-grid {
		grid-template-columns: 1fr;
	}
}

/* ========================================================================
   Video Lightbox
   ======================================================================== */

.kompas-video-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
}

.kompas-video-lightbox.is-open {
	display: flex;
}

.kompas-video-lightbox__container {
	display: flex;
	max-width: 1100px;
	width: 95%;
	max-height: 90vh;
}

.kompas-video-lightbox__video-panel {
	background: #000;
	flex: 0 0 65%;
	aspect-ratio: 16 / 9;
	align-self: center;
}

.kompas-video-lightbox__video {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}

.kompas-video-lightbox__info-panel {
	background: transparent;
	color: #fff;
	padding: 2rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	overflow-y: auto;
	min-width: 0;
	position: relative;
}

.kompas-video-lightbox__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #fff;
	padding: 0.25rem 0.5rem;
	opacity: 0.7;
	transition: opacity 0.15s;
}

.kompas-video-lightbox__close:hover {
	opacity: 1;
}

.kompas-video-lightbox__date {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
	order: -1;
}

.kompas-video-lightbox__title {
	color: #fff;
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
}

.kompas-video-lightbox__desc {
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 600px) {
	.kompas-video-lightbox {
		align-items: flex-start;
		overflow-y: auto;
	}

	.kompas-video-lightbox__container {
		flex-direction: column;
		width: 100%;
		max-width: none;
		max-height: none;
		min-height: 100vh;
		overflow: visible;
	}

	.kompas-video-lightbox__video-panel {
		flex: 0 0 auto;
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	.kompas-video-lightbox__info-panel {
		padding: 1.25rem 1rem 1.5rem;
	}
}

/* ── Post List grid ─────────────────────────────────────── */
.kompas-post-list__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--40);
}
.kompas-post-list__item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.kompas-post-list__thumb-link {
	display: block;
	overflow: hidden;
}
.kompas-post-list__thumb {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.kompas-post-list__thumb-link:hover .kompas-post-list__thumb {
	transform: scale(1.03);
}
.kompas-post-list__title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}
.kompas-post-list__title a {
	color: inherit;
	text-decoration: none;
}
.kompas-post-list__title a:hover {
	color: var(--wp--preset--color--primary);
}
.kompas-post-list__excerpt {
	font-size: 0.875rem;
	color: #444;
	margin: 0;
	line-height: 1.5;
}
.kompas-post-list__date {
	font-size: 0.75rem;
	color: #888;
	margin: 0;
}
.kompas-post-list__pagination {
	margin-top: var(--wp--preset--spacing--50);
}
.kompas-post-list__pagination .page-numbers {
	display: flex;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: nowrap;
	justify-content: center;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.kompas-post-list__pagination .page-numbers li {
	margin: 0;
}
.kompas-post-list__pagination .page-numbers a,
.kompas-post-list__pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.5rem;
	border: 1px solid var(--wp--preset--color--border, #ddd);
	color: var(--wp--preset--color--dark);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
}
.kompas-post-list__pagination .page-numbers a:hover {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
}
.kompas-post-list__pagination .page-numbers .current {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
}

/* ── Archive with sidebar layout ────────────────────────── */
.kompas-archive-with-sidebar {
	display: flex;
	gap: var(--wp--preset--spacing--50);
	align-items: flex-start;
}
.kompas-archive-with-sidebar__main {
	flex: 0 0 66%;
	min-width: 0;
}
.kompas-archive-with-sidebar__sidebar {
	flex: 1;
	min-width: 0;
}

@media (max-width: 780px) {
	.kompas-post-list__grid {
		grid-template-columns: 1fr;
	}
	.kompas-archive-with-sidebar {
		flex-direction: column;
	}
	.kompas-archive-with-sidebar__main,
	.kompas-archive-with-sidebar__sidebar {
		flex: 0 0 100%;
		width: 100%;
	}
}

/* ── Najnovije/Najčitanije mobile compact cards ─────────── */
@media (max-width: 780px) {
	.kompas-post-archive-page {
		padding-right: var(--wp--preset--spacing--30) !important;
		padding-left: var(--wp--preset--spacing--30) !important;
		padding-top: var(--wp--preset--spacing--40) !important;
		padding-bottom: var(--wp--preset--spacing--50) !important;
	}

	.kompas-archive-with-sidebar--compact-mobile .kompas-post-list__grid {
		gap: var(--wp--preset--spacing--30);
	}

	.kompas-archive-with-sidebar--compact-mobile .kompas-post-list__item {
		display: grid;
		grid-template-columns: 118px minmax(0, 1fr);
		grid-template-areas:
			"thumb title"
			"thumb date";
		align-items: start;
		column-gap: 0.75rem;
		row-gap: 0.35rem;
		padding-bottom: 0.75rem;
		border-bottom: 1px solid var(--wp--preset--color--border, #ddd);
	}

	.kompas-archive-with-sidebar--compact-mobile .kompas-post-list__item:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.kompas-archive-with-sidebar--compact-mobile .kompas-post-list__thumb-link {
		grid-area: thumb;
		margin: 0;
	}

	.kompas-archive-with-sidebar--compact-mobile .kompas-post-list__thumb {
		aspect-ratio: 4 / 3;
		border-radius: 2px;
	}

	.kompas-archive-with-sidebar--compact-mobile .kompas-post-list__title {
		grid-area: title;
		font-size: 0.9375rem;
		line-height: 1.25;
	}

	.kompas-archive-with-sidebar--compact-mobile .kompas-post-list__excerpt {
		display: none;
	}

	.kompas-archive-with-sidebar--compact-mobile .kompas-post-list__date {
		grid-area: date;
		font-size: 0.6875rem;
	}

	.kompas-archive-with-sidebar--compact-mobile .kompas-post-list__item.is-no-thumb {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"title"
			"date";
	}
}

@media (max-width: 520px) {
	.kompas-archive-with-sidebar--compact-mobile .kompas-post-list__item {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.kompas-archive-with-sidebar--compact-mobile .kompas-post-list__title {
		font-size: 0.875rem;
	}
}

/* =========================================================
   Foto galerija blok (kompas/photo-gallery)
   ========================================================= */

.kompas-photo-gallery__grid {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Prva slika — velika */
.kompas-photo-gallery__thumb:first-child {
	aspect-ratio: 16 / 9;
}

/* Ostale slike — red thumbnaila */
.kompas-photo-gallery__thumbs-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
}

.kompas-photo-gallery__thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	cursor: zoom-in;
	padding: 0;
	border: none;
	background: #111;
	display: block;
	width: 100%;
}

.kompas-photo-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s;
}

.kompas-photo-gallery__thumb:hover img {
	transform: scale(1.04);
}

@media (max-width: 600px) {
	.kompas-photo-gallery__thumbs-row {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Gallery lightbox */

#kompas-gallery-lb {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.92);
	justify-content: center;
	align-items: center;
}

#kompas-gallery-lb.is-open {
	display: flex;
}

.kompas-gallery-lb__wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 94vw;
}

.kompas-gallery-lb__media {
	position: relative;
	display: inline-flex;
	max-width: 90vw;
}

.kompas-gallery-lb__img {
	max-width: 90vw;
	max-height: 80vh;
	object-fit: contain;
	display: block;
}

.kompas-gallery-lb__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 0;
	max-width: calc(100% - 24px);
	font-size: 0.6875rem;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	padding: 3px 7px;
	font-style: italic;
}

.kompas-gallery-lb__counter {
	color: #999;
	font-size: 0.75rem;
	margin-top: 0.25rem;
}

.kompas-gallery-lb__close {
	position: absolute;
	top: -2.5rem;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 2.25rem;
	cursor: pointer;
	line-height: 1;
}

.kompas-gallery-lb__prev,
.kompas-gallery-lb__next {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.4);
	border: none;
	color: #fff;
	font-size: 2.5rem;
	cursor: pointer;
	padding: 0.5rem 1rem;
	line-height: 1;
}

.kompas-gallery-lb__prev {
	left: 0.5rem;
}

.kompas-gallery-lb__next {
	right: 0.5rem;
}
