@font-face {
	font-family: 'Titillium Web JHMB';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/TitilliumWeb-Regular.ttf') format('truetype');
}

@font-face {
	font-family: 'Titillium Web JHMB';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/TitilliumWeb-SemiBold.ttf') format('truetype');
}

@font-face {
	font-family: 'Titillium Web JHMB';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/TitilliumWeb-Bold.ttf') format('truetype');
}

@font-face {
	font-family: 'Titillium Web JHMB';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/TitilliumWeb-Italic.ttf') format('truetype');
}

/*
 * JHMB plugin design system
 *
 * Every public shortcode/widget output carries the .jhmb-plugin class. Use
 * the active Elementor Site Kit colors when they are available and keep the
 * original JHMB palette as a fallback for shortcode-only installations.
 */
.jhmb-plugin {
	--jhmb-color-primary: var(--e-global-color-primary, #151036);
	--jhmb-color-secondary: var(--e-global-color-secondary, #BBB8B8);
	--jhmb-color-text: var(--e-global-color-text, #686672);
	--jhmb-color-accent: var(--e-global-color-accent, #C2272C);
	--jhmb-color-heading: #151036;
	--jhmb-color-border: #E5E5E6;
	--jhmb-color-light-background: #F6F6F6;
	--jhmb-radius: 10px;
	--jhmb-border: 1px solid var(--jhmb-color-border);
	--jhmb-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
	--jhmb-transition: all .3s;
	--jhmb-hover-opacity: .7;
	--jhmb-company-snaga: #73B643;
	--jhmb-company-marprom: #D71920;
	--jhmb-company-jhmb: #C2272C;
	--jhmb-company-pogrebno: #E50688;
	--jhmb-company-energetika: #962F7A;
	--jhmb-company-nigrad: #0072BC;
	--jhmb-company-vodovod: #2BABE2;
	--jhmb-company-sport: #00AEEF;
	--jhmb-company-mestne-nepremicnine: #888786;
	--jhmb-company-zum: #A6CE39;

	color: var(--jhmb-color-text);
	font-family: 'Titillium Web JHMB', 'Segoe UI', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.jhmb-plugin,
.jhmb-plugin *,
.jhmb-plugin *::before,
.jhmb-plugin *::after {
	box-sizing: border-box;
}

.jhmb-plugin img,
.jhmb-plugin svg {
	display: block;
	max-width: 100%;
}

.jhmb-plugin a {
	color: var(--jhmb-color-accent);
	text-decoration: none;
}

.jhmb-plugin .meta-text {
	color: var(--jhmb-color-secondary);
	font-size: 14px;
	line-height: 1.4;
	text-transform: uppercase;
}

.jhmb-plugin .post__title {
	color: var(--jhmb-color-heading);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.jhmb-plugin .single-post__title {
	color: var(--jhmb-color-primary);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.jhmb-plugin.single-post-container > .single-post__title {
	font-size: clamp(32px, 4vw, 40px);
	line-height: 1.2;
}

.jhmb-plugin .btn--primary,
.jhmb-plugin button.btn--primary {
	appearance: none;
	background-color: var(--jhmb-color-accent);
	border: 1px solid var(--jhmb-color-accent);
	border-radius: 30px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	padding: 12px 20px;
	transition: var(--jhmb-transition);
}

.jhmb-plugin .btn--primary:hover,
.jhmb-plugin .btn--primary:focus-visible {
	background-color: var(--jhmb-color-accent);
	color: #fff;
	opacity: var(--jhmb-hover-opacity);
}

.jhmb-plugin .btn--primary:focus-visible,
.jhmb-plugin .category-link:focus-visible,
.jhmb-plugin a:focus-visible {
	outline: 2px solid var(--jhmb-color-accent);
	outline-offset: 3px;
}

.jhmb-plugin .single-post__content :where(ol, ul) {
	list-style: none;
	padding-left: 25px;
}

.jhmb-plugin .single-post__content ol {
	counter-reset: jhmb-list-counter;
}

.jhmb-plugin .single-post__content :where(ol, ul) li {
	margin-bottom: 10px;
	position: relative;
}

.jhmb-plugin .single-post__content ol li {
	counter-increment: jhmb-list-counter;
}

.jhmb-plugin .single-post__content :where(ol, ul) li::before {
	align-items: center;
	background: var(--jhmb-color-accent);
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 12px;
	font-weight: 600;
	height: 17px;
	justify-content: center;
	left: -25px;
	line-height: 1;
	position: absolute;
	top: 4px;
	width: 17px;
}

.jhmb-plugin .single-post__content ol li::before {
	content: counter(jhmb-list-counter);
}

.jhmb-plugin .single-post__content ul li::before {
	content: '✓';
}

.jhmb-plugin .single-post__content :where(p, ol, ul, blockquote, table) {
	margin-bottom: 1em;
}

.jhmb-plugin .single-post__content a {
	color: var(--jhmb-color-accent);
	text-decoration: underline;
}

.jhmb-plugin .single-post__content table {
	border-collapse: collapse;
	width: 100%;
}

.jhmb-plugin .single-post__content :where(th, td) {
	border-bottom: var(--jhmb-border);
	padding: 10px;
	text-align: left;
}

.jhmb-plugin .single-post__content th {
	background: var(--jhmb-color-light-background);
	color: var(--jhmb-color-primary);
	font-weight: 700;
}

.jhmb-plugin.jhmb-message,
.jhmb-plugin .jhmb-message {
	background: var(--jhmb-color-light-background);
	border: var(--jhmb-border);
	border-radius: var(--jhmb-radius);
	color: var(--jhmb-color-text);
	margin: 0;
	padding: 15px 20px;
}

/* posts grid */
.jhmb-all-posts-instance,
.posts-container.posts-load-more {
	width: 100%;
}

.posts-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 20px;
	/* grid-row-gap: 30px; */
}

.post--card {
	background: #fff;
	border: var(--jhmb-border);
	border-radius: var(--jhmb-radius);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	position: relative;
	height: 480px;
}

.post--card > img {
	height: 100%;
	object-fit: cover;
}

.post__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	padding: 20px;
}

.post__content-wrapper,
.single-post__body {
	min-width: 0;
}

.post__meta-data {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.post__meta-data > span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post__title {
	margin:	15px 0;
}

.post__title, .post__excerpt {
	overflow: hidden;
	display: -webkit-box;
	line-clamp: 4; 
	-webkit-line-clamp: 4; 
	-webkit-box-orient: vertical;
}

.jhmb-plugin .post__title a,
.jhmb-plugin .post__title a:hover,
.jhmb-plugin .post__title a:focus {
	color: inherit;
}

.post__excerpt {
	color: var(--jhmb-color-text);
}

.post__excerpt.no-image {
	-webkit-line-clamp: 6;
	line-clamp: 6;
}

.post--card.cat-obvestila .post__icon.warning {
	opacity: .1;
}

.post__footer {
	margin-top: 20px;
	display: none;
}

.post__footer .post__button {
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--jhmb-color-accent);
	color: #fff !important;
	width: 33px;
	height: 33px;
	border-radius: 100%;
	padding: 0;
}

.post__thumbnail img {
	height: 170px;
	width: 100%;
	object-fit: cover;
	margin-bottom: -10px;
}

.post--card .post__icon  {
	fill: var(--jhmb-color-accent);
	opacity: 0.07;
	position: absolute;
	bottom: 0;
	right: -60px;
	width: 180px;
	pointer-events: none;
}

.post--card .post__icon.warning {
	fill: var(--jhmb-color-accent);
}

.post--card .post__icon.calendar path {
	fill: var(--jhmb-color-accent);
	stroke: var(--jhmb-color-accent);
}

.post__link {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.load-more-container {
	text-align: center;
	margin-top: 50px;
}

.load-more__btn {
	min-width: 140px;
}

@media only screen and (max-width: 1200px) {
	.posts-container {
	    display: flex;
	    flex-wrap: nowrap;
		overflow-x: scroll;
		-ms-overflow-style: none;
		scrollbar-width: none;
		margin: 0 -20px;
	}	
	
	.posts-container::-webkit-scrollbar {
		display: none;
	}

	.post--card {
		height: auto;
		max-height: 100%;
		width: 300px;
		min-width: 300px;
	}
	
	.post--card:not(.banner--large) {
        min-height: 400px;
	}

	.post--card:first-child {
		margin-left: 20px;
	}

	.post--card:last-child {
		margin-right: 20px;
	}

	.disable-mobile-x-scroll .posts-container {
		overflow-x: hidden;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		margin: 0;
	}

	.disable-mobile-x-scroll.important-posts .posts-container {
		grid-template-columns: repeat(2, 1fr);
	}

	.disable-mobile-x-scroll .post--card {
		margin: 0 !important;
		width: auto;
		min-width: auto;
	}
}

@media only screen and (max-width: 768px) {
	.disable-mobile-x-scroll .posts-container {
		grid-template-columns: repeat(2, 1fr);
	}	
}

@media only screen and (max-width: 480px) {
	.disable-mobile-x-scroll .posts-container,
	.disable-mobile-x-scroll.important-posts .posts-container {
		grid-template-columns: 100%;
	}
}

/* post categories filter */
.categories-filter {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: scroll;
	overflow-y: clip;
	-ms-overflow-style: scroll;
	scrollbar-width: none;
	margin: 0 -20px 80px;
}

.categories-filter::-webkit-scrollbar {
	display: none;
}

.categories-filter .category-link:first-child {
	margin-left: 20px;
}

.categories-filter .category-link:last-child {
	margin-right: 20px;
}

.jhmb-plugin.categories-filter a,
.jhmb-plugin .categories-filter a {
	color: var(--jhmb-color-secondary);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.5em;
	margin-right: 30px;
	min-width: fit-content;
	cursor: pointer;
}

.jhmb-plugin.categories-filter :is(a.active, a:hover),
.jhmb-plugin .categories-filter :is(a.active, a:hover) {
	color: var(--jhmb-color-accent);
}

/* post banners  */
.post-banner a  {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100%;
}

.post-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-banner.banner--large {
	max-width: 100%;
}

@media only screen and (max-width: 1200px) {
	.post-banner.banner--large {
		height: 70vw;
	}
}

@media only screen and (max-width: 768px) {
	.post-banner {
		height: 550px;
	}
}

@media only screen and (max-width: 480px) {
	.post-banner {
		height: 140vw;
	}
}

@media only screen and (min-width: 481px) {
	.post-banner.banner--large {
		grid-column: 1/span 2;
		grid-row-start: 1;
	}
}

/* posts slider */
.swiper-slide article,
.swiper-slide article > div {
    height: 100%;
}

/* single post */
.single-post__meta-text {
	margin-bottom: 20px;
}

.single-post__meta-text span:not(:last-child) {
	margin-right: 20px;
}

.single-post__title {
	margin: 0 0 25px;
}

.single-post__thumbnail,
.jhmb-plugin .single-post__content figure {
	margin: 30px 0;
}

.single-post__content .wp-block-gallery {
	margin: 30px 0 !important;
}

.single-post__content .wp-block-gallery figure {
	margin: 0 !important;
}

@media only screen and (min-width: 768px) {
	.single-post__thumbnail,
	.jhmb-plugin .single-post__content figure {
		margin-left: -10px;
		margin-right: -10px;
	}
		
	.single-post__thumbnail span {
	    margin: 0 10px;
	}
}

.single-post__thumbnail img,
.single-post__content .wp-block-image img {
	border-radius: var(--jhmb-radius);
}

.single-post__thumbnail span {
    font-size: 14px;
    font-style: italic;
}

.single-post__content,
.single-post__content .wp-block-image {
	color: var(--jhmb-color-text);
}

.single-post__content .wp-block-gallery {
    display: grid;
	gap: 10px !important;
}

.single-post__content .wp-block-gallery.columns-1 {
    grid-template-columns: 100%;
}
.single-post__content .wp-block-gallery.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}
.single-post__content .wp-block-gallery.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}
.single-post__content .wp-block-gallery.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media only screen and (max-width: 767px) {
	.single-post__content .wp-block-gallery.columns-3,
	.single-post__content .wp-block-gallery.columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* share buttons */
.elementor-widget-share-buttons--vertical .elementor-grid {
	display: flex;
	flex-direction: column;
}

.elementor-widget-share-buttons .elementor-share-btn {
	width: 36px !important;
	height: 36px !important;
}

.elementor-widget-share-buttons .elementor-share-btn__icon {
	font-size: 12px;
	padding: 1px 0 0 2px;
}

@media only screen and (max-width: 767px) {
	.elementor-widget-share-buttons--vertical .elementor-grid {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

/* single post - companies tags */
.single-post__companies {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

.single-post__companies > span {
	color: #fff;
	background: var(--jhmb-color-accent);
    padding: 4px 10px;
    border-radius: 5px;
}

.single-post__companies > :is(.company--energetika, .company--energetika-maribor) {
    background-color: var(--jhmb-company-energetika);
}

.single-post__companies > :is(.company--skupina-jhmb, .company--jhmb, .company--javni-holding-maribor) {
    background-color: var(--jhmb-company-jhmb);
}

.single-post__companies > :is(.company--snaga, .company--javno-podjetje-snaga) {
    background-color: var(--jhmb-company-snaga);
}

.single-post__companies > :is(.company--vodovod, .company--mariborski-vodovod) {
    background-color: var(--jhmb-company-vodovod);
}

.single-post__companies > .company--marprom {
    background-color: var(--jhmb-company-marprom);
}

.single-post__companies > .company--mestne-nepremicnine {
    background-color: var(--jhmb-company-mestne-nepremicnine);
}

.single-post__companies > .company--nigrad {
    background-color: var(--jhmb-company-nigrad);
}

.single-post__companies > :is(.company--pogrebno-podjetje, .company--pogrebno-podjetje-maribor) {
    background-color: var(--jhmb-company-pogrebno);
}

.single-post__companies > .company--sport-maribor {
    background-color: var(--jhmb-company-sport);
}

.single-post__companies > .company--zum {
    background-color: var(--jhmb-company-zum);
}


/* facilities special notices */
.special-notice-container {
    background: var(--jhmb-color-accent);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: center;
    margin-bottom: 20px;
}

.special-notice-container .post__icon svg {
    fill: #fff;
    width: 36px;
}

.special-notice-container .single-post__content * {
    color: #fff;
}

.special-notice-container .single-post__content *:not(.single-post__title) {
    opacity: .9;
}

.special-notice-container .single-post__content a {
    color: inherit;
}

.special-notice-container .single-post__title {
    margin: 0 0 10px 0;
}
 
.special-notice-container .single-post__content p:last-child {
    margin-bottom: 0;
}
