/* HKF prilagodbe – modern look for Page Builder Framework 2.x */

:root {
	--hkf-primary: #005878;
	--hkf-primary-dark: #003d54;
	--hkf-primary-deep: #002a3a;
	--hkf-accent: #0a8fb3;
	--hkf-tint: #eaf4f7;
	--hkf-bg: #f5f8fa;
	--hkf-text: #1f2d33;
	--hkf-muted: #5b6b72;
	--hkf-border: #dde6ea;
	--hkf-radius: 10px;
	--hkf-shadow: 0 1px 2px rgba(0, 42, 58, .06), 0 4px 16px rgba(0, 42, 58, .06);
	--hkf-shadow-hover: 0 2px 4px rgba(0, 42, 58, .08), 0 10px 28px rgba(0, 42, 58, .12);
	--hkf-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
	--hkf-wrap: 1280px;
}

/* ---------- Base ---------- */
body.hkf-modern {
	font-family: var(--hkf-font);
	color: var(--hkf-text);
	background: var(--hkf-bg);
	font-size: 16.5px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.hkf-modern h1, body.hkf-modern h2, body.hkf-modern h3,
body.hkf-modern h4, body.hkf-modern h5, body.hkf-modern h6 {
	font-family: var(--hkf-font);
	color: var(--hkf-primary-deep);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
}
body.hkf-modern a { color: var(--hkf-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
body.hkf-modern a:hover { color: var(--hkf-accent); }
body.hkf-modern img { max-width: 100%; height: auto; }

.hkf-wrap { max-width: var(--hkf-wrap); margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* ---------- Top bar ---------- */
.hkf-topbar { background: var(--hkf-primary-deep); color: #cfe3ea; font-size: 13.5px; }
.hkf-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.hkf-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 18px; }
body.hkf-modern .hkf-topbar a { color: #e3f0f4; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
body.hkf-modern .hkf-topbar a:hover { color: #fff; }
.hkf-topbar svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.hkf-topbar .hkf-social svg { width: 18px; height: 18px; }
body.hkf-modern .hkf-topbar .hkf-portal {
	background: var(--hkf-accent); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 600;
}
body.hkf-modern .hkf-topbar .hkf-portal:hover { background: #fff; color: var(--hkf-primary-deep); }

/* ---------- Brand row ---------- */
.hkf-brand { background: #fff; }
.hkf-brand-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.hkf-logo { display: inline-flex; align-items: center; }
.hkf-logo img { max-height: 84px; width: auto; display: block; }
.hkf-logo-text { font-size: 22px; font-weight: 700; color: var(--hkf-primary); }
.hkf-partners { display: flex; align-items: center; gap: 28px; }
.hkf-partners a { display: inline-flex; opacity: .95; transition: opacity .2s; }
.hkf-partners a:hover { opacity: 1; }
.hkf-partners img { max-height: 64px; width: auto; display: block; }

/* ---------- Main navigation (desktop) ---------- */
body.hkf-modern .wpbf-navigation { background: var(--hkf-primary); box-shadow: 0 2px 8px rgba(0, 42, 58, .15); }
body.hkf-modern .wpbf-navigation .wpbf-nav-wrapper { padding-top: 0; padding-bottom: 0; }
body.hkf-modern .wpbf-navigation .wpbf-nav-wrapper .wpbf-logo-container { display: none; }
body.hkf-modern .wpbf-navigation .wpbf-nav-wrapper .wpbf-menu-container { width: 100% !important; }
body.hkf-modern .wpbf-navigation .wpbf-nav-wrapper .wpbf-menu {
	float: none; display: flex; flex-wrap: wrap; justify-content: center; width: 100%;
}
body.hkf-modern .wpbf-navigation .wpbf-menu > .menu-item > a {
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	padding: 15px 15px;
	line-height: 1.3;
	position: relative;
	transition: background-color .2s;
}
body.hkf-modern .wpbf-navigation .wpbf-menu > .menu-item > a:after {
	content: ""; position: absolute; left: 15px; right: 15px; bottom: 8px; height: 2px;
	background: #fff; transform: scaleX(0); transition: transform .2s; transform-origin: center;
}
body.hkf-modern .wpbf-navigation .wpbf-menu > .menu-item > a:hover,
body.hkf-modern .wpbf-navigation .wpbf-menu > .current-menu-item > a,
body.hkf-modern .wpbf-navigation .wpbf-menu > .current-menu-ancestor > a,
body.hkf-modern .wpbf-navigation .wpbf-menu > .current_page_ancestor > a {
	background: var(--hkf-primary-dark);
}
body.hkf-modern .wpbf-navigation .wpbf-menu > .menu-item > a:hover:after,
body.hkf-modern .wpbf-navigation .wpbf-menu > .current-menu-item > a:after { transform: scaleX(1); }
body.hkf-modern .wpbf-navigation .wpbf-menu > .menu-item > a svg { fill: #fff; }

body.hkf-modern .wpbf-navigation .wpbf-sub-menu > .menu-item-has-children > .sub-menu {
	border-radius: 0 0 var(--hkf-radius) var(--hkf-radius);
	box-shadow: var(--hkf-shadow-hover);
	border-top: 3px solid var(--hkf-accent);
	padding: 6px 0;
	min-width: 240px;
}
body.hkf-modern .wpbf-navigation .sub-menu a {
	color: var(--hkf-text) !important; font-size: 14.5px; padding: 9px 18px; font-weight: 500; line-height: 1.4;
}
body.hkf-modern .wpbf-navigation .sub-menu a:hover { background: var(--hkf-tint); color: var(--hkf-primary) !important; }

/* ---------- Mobile navigation ---------- */
@media (max-width: 1024px) {
	.hkf-topbar-contact span { display: none; }
	.hkf-topbar-contact { gap: 14px; }
	.hkf-topbar-contact svg { width: 17px; height: 17px; }
	.hkf-brand-inner { padding-top: 10px; padding-bottom: 10px; }
	.hkf-logo img { max-height: 60px; }
	.hkf-partners { gap: 14px; }
	.hkf-partners img { max-height: 44px; }

	body.hkf-modern .wpbf-mobile-nav-wrapper { padding-top: 6px; padding-bottom: 6px; }
	body.hkf-modern .wpbf-mobile-logo-container { visibility: hidden; height: 1px; overflow: hidden; }
	body.hkf-modern .wpbf-mobile-nav-wrapper .wpbf-menu-toggle-container,
	body.hkf-modern .wpbf-mobile-nav-wrapper .wpbf-mobile-nav-item { color: #fff; }
	body.hkf-modern .wpbf-mobile-nav-wrapper svg { fill: #fff; }
	body.hkf-modern .wpbf-mobile-menu-container { background: #fff; }
	body.hkf-modern .wpbf-mobile-menu a { color: var(--hkf-text) !important; }
	body.hkf-modern .wpbf-mobile-menu .wpbf-submenu-toggle svg { fill: var(--hkf-text); }
}
@media (max-width: 600px) {
	.hkf-brand-inner { flex-direction: column; gap: 10px; }
	.hkf-portal span { display: inline; }
}

/* ---------- Layout ---------- */
body.hkf-modern #content { padding-top: 8px; }
body.hkf-modern .wpbf-inner-content,
body.hkf-modern #inner-content { padding-top: 32px; padding-bottom: 48px; }

@media (min-width: 769px) {
	body.hkf-modern:not(.wpbf-no-sidebar) .wpbf-main.wpbf-medium-2-3 { width: 72% !important; }
	body.hkf-modern:not(.wpbf-no-sidebar) .wpbf-sidebar-wrapper.wpbf-medium-1-3 { width: 28% !important; }
}

/* Content card */
body.hkf-modern .wpbf-main > article,
body.hkf-modern .wpbf-single-content .wpbf-post,
body.hkf-modern .wpbf-page .wpbf-main .entry-content {
	background: transparent;
}
body.hkf-modern .wpbf-main {
	background: #fff;
	border-radius: var(--hkf-radius);
	box-shadow: var(--hkf-shadow);
	padding: 32px 36px !important;
	box-sizing: border-box;
}
@media (max-width: 768px) {
	body.hkf-modern .wpbf-main { padding: 22px 18px !important; }
}

/* Titles */
body.hkf-modern .entry-title,
body.hkf-modern .wpbf-archive-title,
body.hkf-modern h1.entry-title {
	font-size: clamp(26px, 3vw, 34px);
	margin-bottom: 22px;
	padding-bottom: 14px;
	position: relative;
	text-transform: none;
}
body.hkf-modern h1.entry-title:after,
body.hkf-modern .wpbf-archive-title:after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px;
	border-radius: 2px; background: var(--hkf-accent);
}
body.hkf-modern .entry-content h2 { font-size: 24px; margin-top: 1.6em; }
body.hkf-modern .entry-content h3 { font-size: 20px; margin-top: 1.4em; }
body.hkf-modern .entry-content p { margin-bottom: 1.1em; }

/* Tables (lots of them on hkf.hr) */
body.hkf-modern .entry-content table { border-collapse: collapse; width: 100%; font-size: 15px; margin-bottom: 1.5em; }
body.hkf-modern .entry-content th,
body.hkf-modern .entry-content td { border: 1px solid var(--hkf-border); padding: 9px 12px; vertical-align: top; }
body.hkf-modern .entry-content thead th,
body.hkf-modern .entry-content tr:first-child th { background: var(--hkf-tint); color: var(--hkf-primary-deep); }
body.hkf-modern .entry-content tbody tr:nth-child(even) td { background: #fafcfd; }

/* Buttons */
body.hkf-modern .hkf-btn,
body.hkf-modern .wp-block-button__link,
body.hkf-modern input[type="submit"],
body.hkf-modern button[type="submit"],
body.hkf-modern .wpforms-submit {
	background: var(--hkf-primary) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 11px 22px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	display: inline-block;
	transition: background-color .2s, transform .1s;
	cursor: pointer;
}
body.hkf-modern .hkf-btn:hover,
body.hkf-modern .wp-block-button__link:hover,
body.hkf-modern input[type="submit"]:hover,
body.hkf-modern button[type="submit"]:hover,
body.hkf-modern .wpforms-submit:hover { background: var(--hkf-accent) !important; }

/* Form fields */
body.hkf-modern input[type="text"], body.hkf-modern input[type="email"], body.hkf-modern input[type="tel"],
body.hkf-modern input[type="number"], body.hkf-modern input[type="search"], body.hkf-modern input[type="url"],
body.hkf-modern input[type="date"], body.hkf-modern select, body.hkf-modern textarea {
	border: 1px solid var(--hkf-border); border-radius: 8px; padding: 10px 12px; background: #fff;
}
body.hkf-modern input:focus, body.hkf-modern select:focus, body.hkf-modern textarea:focus {
	outline: none; border-color: var(--hkf-accent); box-shadow: 0 0 0 3px rgba(10, 143, 179, .18);
}

/* ---------- Sidebar ---------- */
body.hkf-modern .wpbf-sidebar .widget {
	background: #fff !important;
	border-radius: var(--hkf-radius);
	box-shadow: var(--hkf-shadow);
	padding: 20px !important;
	margin-bottom: 20px;
	overflow: hidden;
}
body.hkf-modern .wpbf-sidebar .widget:empty { display: none; }
body.hkf-modern .wpbf-sidebar .widget-title,
body.hkf-modern .wpbf-sidebar .widgettitle {
	font-size: 16px; text-transform: none; color: var(--hkf-primary-deep);
	margin: -20px -20px 16px; padding: 12px 20px; background: var(--hkf-tint);
	border-bottom: 2px solid var(--hkf-accent);
}
body.hkf-modern .wpbf-sidebar .widget p { margin-bottom: .6em; font-size: 15px; }
body.hkf-modern .wpbf-sidebar .widget p[align="center"] { text-align: left; }
body.hkf-modern .wpbf-sidebar img { border-radius: 6px; }
body.hkf-modern .wpbf-sidebar video,
body.hkf-modern .wpbf-sidebar .wp-video { border-radius: 6px; overflow: hidden; max-width: 100% !important; }
/* Sidebar menus (Custom Sidebars nav menus) */
body.hkf-modern .wpbf-sidebar .widget_nav_menu ul { list-style: none; margin: 0; padding: 0; }
body.hkf-modern .wpbf-sidebar .widget_nav_menu li { border-bottom: 1px solid var(--hkf-border); margin: 0; }
body.hkf-modern .wpbf-sidebar .widget_nav_menu li:last-child { border-bottom: 0; }
body.hkf-modern .wpbf-sidebar .widget_nav_menu a {
	display: block; padding: 9px 4px 9px 14px; text-decoration: none; color: var(--hkf-text); position: relative; font-size: 15px;
}
body.hkf-modern .wpbf-sidebar .widget_nav_menu a:before {
	content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px;
	border-right: 2px solid var(--hkf-accent); border-top: 2px solid var(--hkf-accent); transform: rotate(45deg);
}
body.hkf-modern .wpbf-sidebar .widget_nav_menu a:hover,
body.hkf-modern .wpbf-sidebar .widget_nav_menu .current-menu-item > a { color: var(--hkf-primary); background: var(--hkf-tint); }
body.hkf-modern .wpbf-sidebar .widget_nav_menu .sub-menu a { padding-left: 28px; font-size: 14px; }

/* ---------- Homepage post grid (WP Show Posts) ---------- */
body.hkf-modern .wp-show-posts-columns { margin-left: -10px; margin-right: -10px; }
body.hkf-modern .wp-show-posts-single { margin-bottom: 22px; padding: 0 10px !important; box-sizing: border-box; }
body.hkf-modern .wp-show-posts-inner {
	background: #fff;
	border: 1px solid var(--hkf-border);
	border-radius: var(--hkf-radius);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s, transform .2s;
	margin: 0 !important;
}
body.hkf-modern .wp-show-posts-inner:hover { box-shadow: var(--hkf-shadow-hover); transform: translateY(-2px); }
body.hkf-modern .wp-show-posts-image { order: -1; margin: 0 !important; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hkf-tint); }
body.hkf-modern .wp-show-posts-image a { display: block; height: 100%; }
body.hkf-modern .wp-show-posts-image img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: center top; display: block; }
body.hkf-modern .wp-show-posts-entry-header { padding: 16px 18px 0; }
body.hkf-modern .wp-show-posts-entry-title { font-size: 18px !important; line-height: 1.35; margin: 0 0 8px !important; }
body.hkf-modern .wp-show-posts-entry-title a { color: var(--hkf-primary-deep); text-decoration: none; }
body.hkf-modern .wp-show-posts-entry-title a:hover { color: var(--hkf-accent); }
body.hkf-modern .wp-show-posts-entry-summary,
body.hkf-modern .wp-show-posts-entry-content { padding: 0 18px 18px; font-size: 15px; color: var(--hkf-muted); }
body.hkf-modern .wp-show-posts-entry-meta { padding: 0 18px; font-size: 13px; color: var(--hkf-muted); }
body.hkf-modern .wp-show-posts-read-more,
body.hkf-modern a.wp-show-posts-read-more {
	margin: auto 18px 18px; border: 0; padding: 0; color: var(--hkf-primary); font-weight: 600; background: none;
}
body.hkf-modern .wp-show-posts-pagination { margin-top: 10px; }

/* Slider (Slide Anything) */
body.hkf-modern .sa_owl_theme { border-radius: var(--hkf-radius); overflow: hidden; margin-bottom: 28px; }
body.hkf-modern .sa_owl_theme .owl-dots .owl-dot span { background: #c5d6dc !important; }
body.hkf-modern .sa_owl_theme .owl-dots .owl-dot.active span { background: var(--hkf-primary) !important; }

/* ---------- Blog archives / news lists ---------- */
body.hkf-modern .wpbf-post-archive article.wpbf-post,
body.hkf-modern .wpbf-post-archive .wpbf-blog-layout-default {
	border-bottom: 1px solid var(--hkf-border);
	padding-bottom: 26px;
	margin-bottom: 26px;
}
body.hkf-modern .wpbf-post-archive .entry-title { font-size: 22px; margin-bottom: 8px; padding-bottom: 0; }
body.hkf-modern .wpbf-post-archive .entry-title:after { display: none; }
body.hkf-modern .wpbf-post-archive .entry-title a { text-decoration: none; color: var(--hkf-primary-deep); }
body.hkf-modern .wpbf-post-archive .entry-title a:hover { color: var(--hkf-accent); }
body.hkf-modern .article-meta,
body.hkf-modern .wpbf-article-meta { font-size: 13.5px; color: var(--hkf-muted); }
body.hkf-modern .wpbf-post-image img,
body.hkf-modern .wpbf-post-image-wrapper img { border-radius: 8px; }
body.hkf-modern .wpbf-read-more,
body.hkf-modern a.wpbf-read-more { font-weight: 600; }
body.hkf-modern .pagination .page-numbers,
body.hkf-modern .wpbf-pagination .page-numbers {
	display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center;
	border-radius: 8px; border: 1px solid var(--hkf-border); margin: 0 3px; text-decoration: none; background: #fff;
}
body.hkf-modern .pagination .page-numbers.current,
body.hkf-modern .wpbf-pagination .page-numbers.current { background: var(--hkf-primary); border-color: var(--hkf-primary); color: #fff; }

/* Breadcrumbs */
body.hkf-modern .wpbf-breadcrumbs-container { background: transparent !important; font-size: 13.5px; }

/* ---------- Pre-footer & footer ---------- */
.hkf-prefooter { background: var(--hkf-primary-deep); color: #c9dde4; padding: 48px 0 28px; margin-top: 24px; font-size: 15px; }
.hkf-prefooter-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 32px; }
.hkf-prefooter h3 { color: #fff !important; font-size: 16px; margin: 0 0 14px; letter-spacing: .02em; }
.hkf-prefooter p { margin: 0 0 12px; line-height: 1.6; }
body.hkf-modern .hkf-prefooter a { color: #e3f0f4; text-decoration: none; }
body.hkf-modern .hkf-prefooter a:hover { color: #fff; text-decoration: underline; }
.hkf-pf-brand { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.hkf-pf-brand img { max-height: 56px; width: auto; display: block; }
.hkf-pf-list { list-style: none; margin: 0; padding: 0; }
.hkf-pf-list li { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.hkf-pf-list svg { width: 17px; height: 17px; fill: var(--hkf-accent); flex: none; margin-top: 3px; }
.hkf-pf-social { display: flex; gap: 10px; margin-bottom: 16px; }
body.hkf-modern .hkf-pf-social a {
	width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1);
	display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s;
}
body.hkf-modern .hkf-pf-social a:hover { background: var(--hkf-accent); text-decoration: none; }
.hkf-pf-social svg { width: 20px; height: 20px; fill: #fff; }
body.hkf-modern .hkf-prefooter .hkf-btn { background: var(--hkf-accent) !important; }
body.hkf-modern .hkf-prefooter .hkf-btn:hover { background: #fff !important; color: var(--hkf-primary-deep) !important; text-decoration: none; }

body.hkf-modern .wpbf-page-footer { background: #001e2a; color: #8fb0bc; font-size: 13.5px; }
body.hkf-modern .wpbf-page-footer .wpbf-inner-footer { padding-top: 16px; padding-bottom: 16px; }
body.hkf-modern .wpbf-page-footer a { color: #c9dde4; }

@media (max-width: 1024px) {
	.hkf-prefooter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.hkf-prefooter-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Scroll-to-top */
body.hkf-modern .scrolltop { background: var(--hkf-primary) !important; border-radius: 8px; }

/* ---------- 1.0.1 fixes ---------- */
body.hkf-modern #container { min-height: 100vh; display: flex; flex-direction: column; }
body.hkf-modern #container > #content { flex: 1 0 auto; }
body.hkf-modern.error404 .entry-title:after,
body.hkf-modern.error404 h1:after { left: 50%; transform: translateX(-50%); }
body.hkf-modern .wpbf-read-more,
body.hkf-modern a.wpbf-read-more,
body.hkf-modern .wpbf-button.wpbf-read-more {
	background: var(--hkf-tint) !important; color: var(--hkf-primary) !important; border-radius: 8px;
	padding: 8px 16px; text-decoration: none; display: inline-block; font-size: 14.5px;
}
body.hkf-modern .wpbf-read-more:hover { background: var(--hkf-primary) !important; color: #fff !important; }
