/*
 Theme Name:   Općina Tompojevci
 Theme URI:    https://generatepress.com
 Description:  Službena stranica Tompojevci
 Author:       PLAVI LINK D.O.O.
 Author URI:   https://plavilink.hr/
 Template:     generatepress
 Version:      0.1
*/

:root {
    --contrast-color: #192933;
    --contrast2-color: #263842;
    --contrast3-color: #314d59;
    --contrast4-color: #5da1b3;
    --contrast5-color: #91c3cf;
    --base-color: #ffffff;
    --base2-color: #f2f7fc;
    --accent-color: #4878c8;
    --accent2-color: #385495;
    --accent3-color: #314777;
    --accent4-color: #273454;
}

/* Contribute menu button */
.menu-bar-items {
	flex-direction: row-reverse;
}

/* Sidebar - Categories */
.inside-right-sidebar ul.wp-block-categories-list {
	list-style-type: square;
	margin: 1em 0 1.5em 1em;
}

/* CTA button colors */
.main-navigation .menu-bar-items .cta-btn,
.main-navigation.slideout-navigation .cta-btn {
	color: var(--contrast-color);
}
.main-navigation .menu-bar-items .cta-btn:hover,
.main-navigation.slideout-navigation .cta-btn:hover {
	color: var(--base-2);
}


/* Opce postavke za cijelu stranicu */
.page-id-4070 header, footer {
	display: none;
}
.page .entry-header {
      display: none;
}
.no-margin {
    margin: 0 !important;
}

/* Styling mobile mega menu */
@media (max-width: 1299px) {
    #generate-slideout-menu.main-navigation .main-nav > ul > li > a { 
        font-weight: 600;
        padding-left: 15px;
        font-size: 1rem;
    }
    nav .main-nav .mega-menu 
       #generate-slideout-menu.main-navigation .main-nav > ul > li > ul > li > a {
        font-weight: 300;
        font-size: 1rem;
    } 
    #generate-slideout-menu.main-navigation .main-nav > ul > li > ul > li > ul > li > a {
        padding-left: 45px;
        text-transform: none;
    }
}

/* Styling the desktop main header, mega menu */
@media (min-width: 1300px) {
    #site-navigation .inside-navigation{
        display: flex;
        justify-content: space-between;
    }
    #primary-menu > #menu-glavni-izbornik {
        width: fit-content;
    }
    #menu-glavni-izbornik {
        width: 730px;
        display: flex;
        justify-content: space-between;
    }
    nav .main-nav .mega-menu {
        position: static;
    }
    nav .main-nav .mega-menu  ul {
        background: var(--base-color);
        border-radius: 6px;
    }   
    nav .main-nav .mega-menu > ul {
        padding: 32px;
        gap: 24px;
        border-radius: 6px;
        position: absolute;
        width: 100%;
        left: 0 !important;
        display: flex;
        flex-wrap: wrap;
        box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
        transition: all 0.5s ease-in-out;
    }
        nav .main-nav .mega-menu > ul > li:has(ul) > a {
            font-weight: bold;
            font-size: 16px;
            color: var(--base2-color);
            background-color: var(--accent3-color);
            border-radius: 6px;
            box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
        }
    nav .main-nav .mega-menu > ul > li:has(ul) > a:hover {
        color: var(--base2-color) !important;
        background-color: var(--contrast2-color) !important;
        border-radius: 6px;
    }
	.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a {
        color: var(--contrast5-color);
    }
    .icon > a::before {
        display: inline-block;
        width: 1.2em;
        text-align: center;
        font-weight: 400;
        opacity: 0.8;
        transition: transform 0.5s ease;
    }
    .icon > a:hover::before {
        transform: scale(1.25);
        opacity: 1;
    }

    nav .main-nav .mega-menu ul .sub-menu {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        width: 100%;
        box-shadow: 0 0 0;
        left: 0;
        height: auto;
        pointer-events: auto;
        transform: scale(1);
        margin-bottom: 10px;
        background-color: transparent;
        margin-top: 4px;
    }
    
    nav .main-nav .mega-menu ul.toggled-on .sub-menu {
        pointer-events: auto;
    }
    nav .main-nav .mega-menu .sub-menu .menu-item-has-children .dropdown-menu-toggle {
        display: none;
    }

    nav .main-nav .mega-menu > ul {
        transform: translateY(0);
        transition: all 0.5s ease;
    }

    .main-navigation .main-nav ul ul li:not([class*="current-menu-"]):hover > a, .main-navigation .main-nav ul ul li:not([class*="current-menu-"]):focus > a, .main-navigation .main-nav ul ul li.sfHover:not([class*="current-menu-"]) > a {
        color: var(--base2-color);
        background-color: var(--contrast-2);
        border-radius: 6px;
    }
    .main-navigation .main-nav ul ul li[class*="current-menu-"] > a {
        color: var(--base2-color);
        background-color: var(--contrast-2);
        border-radius: 6px;
    }


/* 4 columns, stupca */
    nav .main-nav .mega-menu>ul>li {
        display: inline-block;
        width: 48%;
        vertical-align: top;
    }
    nav .main-nav .mega-menu.mega-menu-col-1>ul>li {
        width: 98%;
    }
    nav .main-nav .mega-menu.mega-menu-col-2>ul>li {
        width: 48%;
    }
    nav .main-nav .mega-menu.mega-menu-col-3>ul>li {
        width: 32%;
    }
    nav .main-nav .mega-menu.mega-menu-col-4>ul>li {
        width: 24%;
    }
    nav .main-nav .mega-menu.mega-menu-col-5>ul>li {
        width: 18%;
    }
}


/* ICONS */
/* Postaviti klasu icon sa zeljenom ikonom na menu item, npr. "icon aktualno" */
.icon > a:before{
    font-family: 'FontAwesome';  /*  Ensure you're using the correct font-family*/
    margin-right: 5px; /*  Space between the icon and text */
}
.upravna-tijela > a:before {
    content: "\f007";
}
.transparentnost > a:before {
    content: "\f06e";
}
.oglasna-ploca > a:before {
    content: "\f51b";
}
.proracun > a:before {
    content: "\f51e";
}
.aktualno > a:before {
    content: "\f021";
}
.komunalne-usluge > a:before {
    content: "\f1b8";
}
.online-usluge > a:before {
    content: "\f390";
}
.koncesije > a:before {
    content: "\f56c";
}
.udruge > a:before {
    content: "\f0c0";
}
.nabava > a:before {
    content: "\f07a";
}
.gospodarstvo > a:before {
    content: "\f0b1";
}
.poljoprivreda > a:before {
    content: "\f4d8";
}
.porez > a:before {
    content: "\f1ec";
}
.o-opcini > a:before {
    content: "\f3c5";
}
.zanimljivosti > a:before {
    content: "\f0eb";
}
.dogadanja > a:before {
    content: "\f073";
}
.glasnik > a:before {
    content: "\f1ea";
}
.projekti > a:before {
    content: "\f005";
}
.ustanove > a:before {
    content: "\f19c";
}
.ostalo > a:before {
    content: "\f141";
}


/* - Truncate cards */
.truncate {
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Display 5 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.truncate-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar menu */
.sidebar-menu ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}
.sidebar-menu a {
    padding: 10px;
    display: block;
    width: 100%;
    text-decoration: none;
    border-radius: 8px;
    background:  var(--base2-color);
    border: 1px solid var(--contrast-color);
}
.sidebar-menu a:hover {
    background: var(--base-color); /* theme color #A0ADD9*/
}
.sidebar-menu > li > ul > li > ul > li.current_page_item  {
    display: block !important;
}

/* Conditional showing of "povezani dokumenti" element */
.gb-grid-wrapper.gb-grid-wrapper-f6030caa.gb-query-loop-wrapper:is(:empty) + .gb-headline {
    display: none;
}

/* Post item */
.post-item-full-background
{ 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%;
    height: 100%;
    z-index: 1;   
}
.post-item-full-background > figure
{
    height:100%;
}
.post-item-full-foreground{
    position: relative; 
    z-index: 5;
    background: rgba(0, 0, 0, 0.1);
}
.gb-query-loop-item .gb-block-image:has(.featured-image) + .gb-block-image {
    display: none;
}

/* Mobilni query loop postavlja na jedan redak */
@media (max-width: 767px) {
    .gb-query-loop-wrapper  .gb-grid-column{
        width: 100% !important;
    }
    /* Logo on mobile */
    .site-logo{
        width:40px;
    }
}

/* Delimiter za query loop */
.query-loop-delimiter-heading{
    margin-top: 40px;
}


/* - Breadcrumbs */
.breadcrumbs {
    color: var(--contrast-color);
    width: fit-content;
    font-family: Arial;
    margin-top: -24px;
}
@media (max-width: 767px) {
    .breadcrumbs {
        margin-top: 0px;
    }
}
.breadcrumbs a {
    color: var(--contrast-color);
}
.breadcrumbs a:hover {
    color: var(--accent3-color);
}
.custom-chevron {
    font-weight: 500;
    font-size: 0.8em;
    opacity: 0.7;       
}


/* - WP file block */
.wp-block-file:not(.wp-element-button) {
    font-size: 16px;
}
.wp-block-file .wp-block-file__embed {
    display: none !important;
}
a.mtli_attachment {
    border: 1px solid rgb(220, 220, 220);
    background-color: var(--base2-color);
    padding: 8px 15px 8px 40px !important;
    border-radius: 8px;
    text-decoration: none;
    background-position: 15px center !important;
}
.mtli_attachment:hover {
    color: var(--base2-color);
    background-color: var(--accent3-color);
}
/* - WP Image */
.wp-block-image {
    margin-bottom: 16px;
}
.wp-block-gallery {
    margin-bottom: 16px;
}

/* OWLCAROUSEL NASLOVNA zoom */
@media (min-width: 1025px) {
  .bg-slide {
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    animation: bgZoom 16s ease-in-out infinite;
  }

  @keyframes bgZoom {
    0%   { background-size: 100% auto; }
    50%  { background-size: 105% auto; }
    100% { background-size: 100% auto; }
  }
}
@media (max-width: 1024px) {
  .bg-slide {
    animation: none;
    background-size: cover;
  }
}


/* - OWLCAROUSEL ARROWS */
.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }
  .owl-carousel .owl-nav button {
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    pointer-events: all;
  }
  .owl-carousel .owl-nav button.owl-prev {
    margin-left: 48px;
    color: var(--base2-color);
    padding: 8px !important;
  }
  .owl-carousel .owl-nav button.owl-prev:hover {
    color: var(--base2-color);
    background: var(--accent4-color);
  }
  .owl-carousel .owl-nav button.owl-next {
    margin-right: 48px;
    color: var(--base2-color);
    padding: 8px !important;
  }
  .owl-carousel .owl-nav button.owl-next:hover {
    color: var(--base2-color);
    background: var(--accent4-color);
  }


/* OWLCAROUSEL ARROWS > informacije */
.owl-carousel-informacije .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-55%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}
.owl-carousel-informacije .owl-nav button.owl-prev,
.owl-carousel-informacije .owl-nav button.owl-next {
  pointer-events: all;
  background-color: var(--accent4-color);
  color: var(--base2-color);
  border: 1px solid var(--accent2-color);
  text-align: center;
  border-radius: 4px;
  transition: all 0.5s ease;
}
.owl-carousel-informacije .owl-nav button.owl-prev:hover,
.owl-carousel-informacije .owl-nav button.owl-next:hover {
  background-color: var(--accent4-color);
  color: var(--base2-color);
  border: 1px solid var(--accent2-color);
  opacity: 0.95;
}
.owl-carousel-informacije .owl-nav button.owl-prev {
    margin-left: -10px;
}
.owl-carousel-informacije .owl-nav button.owl-next {
    margin-right: -10px;
}

/* - OWLCAROUSEL ARROWS > archive */
.archive-carousel .owl-nav button.owl-prev,
.archive-carousel .owl-nav button.owl-next {
  background: transparent;
  color: var(--accent3-color);
  font-size: 20px;
  padding: 2px 16px;
  transition: all 0.3s ease;
  z-index: 10;
}
.archive-carousel .owl-nav button.owl-prev:hover,
.archive-carousel .owl-nav button.owl-next:hover {
  background: transparent;
  color: var(--accent-color);
}
.archive-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-65%);
    justify-content: space-between;
    display: flex;
    pointer-events: none;
}
.archive-carousel .owl-nav button.owl-prev {
    margin-left: -22px;
}
.archive-carousel .owl-nav button.owl-next {
    margin-right: -22px;
}


/* - OWLCAROUSEL dots */
  .owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .owl-carousel .owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    /* border: 1px solid var(--contrast2-color); */
    border-radius: 50%;
    background-color: var(--base2-color);
    transition: all 0.3s ease !important;
  }
  .owl-carousel .owl-dot.active span {
    width: 24px;
    background-color: var(--base-color) !important;
    border-radius: 999px;
}

/* - TERMS carousel items */
.owl-carousel-items {
    text-align: center;
}
.carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    line-height: 1.2;
}
.carousel-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 6px 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent3-color);
    text-decoration: none;
    background-color: transparent;
    transition: all 0.3s ease;
    width: 200px;
}
.carousel-item a:hover {
    color: var(--contrast-2);
}
.carousel-item a.active-term {
    color: var(--contrast-2);
    background-color: var(--base2-color);
    border-radius: 24px;
    font-weight: 600;
}


/* - Card will take % of the width */
@media(min-width: 1024px) {
    .vijesti-card > .gb-query-loop-item:is(:nth-child(1)) {
        width: 66%;
    }
    .projekt-card > .gb-query-loop-item:is(:nth-child(1), :nth-child(2)) {
        width: 50%;
    }
    .informacije-card > .gb-query-loop-item:is(:nth-child(1), :nth-child(10)) {
        width: 100%;
    }
}


/* - Obavijest/dokument grid */
.items-grid {
    margin-top: 40px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
    align-items: stretch;
}
@media (max-width: 768px) {
	.items-grid {
		grid-template-columns: 1fr;
	}
}
/* LOKALNE VIJESTI */
.vijesti-items-grid {
    margin-top: 48px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
    align-items: stretch;
}
@media (max-width: 1024px) {
    .vijesti-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 668px) {
	.vijesti-items-grid {
		grid-template-columns: 1fr;
	}
}
/* - Load more button */
#load-more-button {
    margin: 6px auto;
    margin-top: 42px;
    display: block;
    padding: 12px 24px;
    background-color: var(--accent4-color);
    color: var(--base-color);
    border: none;
    cursor: pointer;
    border-radius: 6px;
}
#load-more-button:hover {
    background-color: var(--accent3-color);
}
/* - No results message */
.no-results-message {
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    grid-column: 1 / -1;
}
.no-results-message.show {
    opacity: 1;
    background: none;
    border: none;
}
/* - LOAD SPINNER */
.loader {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 4px solid var(--contrast-3);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* - SLUŽBENE OBAVIJESTI */
#sluzbene-obavijesti-form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 48px;
    margin-bottom: 24px;
    gap: 10px;
}
/* - REGISTAR DOKUMENATA */
#registar-dokumenata-form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 48px;
    margin-bottom: 24px;
    gap: 10px;
}
/* - LOKALNE VIJESTI */
#lokalne-vijesti-form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 48px;
    margin-bottom: 24px;
    gap: 10px;
}
/* - SERVISNE INFORMACIJE */
#servisne-informacije-form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 48px;
    margin-bottom: 24px;
    gap: 10px;
}
@media (max-width: 768px) {
    #registar-dokumenata-form {
        flex-direction: column;
        align-items: stretch;
    }
    #sluzbene-obavijesti-form {
        flex-direction: column;
        align-items: stretch;
    }
    #lokalne-vijesti-form {
        flex-direction: column
    }
    #servisne-informacije-form {
        flex-direction: column
    }
    .dropdown-right {
        justify-content: center !important;
        margin-top: 10px;
    }
    .dropdown-right select {
        max-width: 100%;
        width: 100%;
    }
}
.search-left {
    display: flex;
    gap: 10px;
    flex: 1 1 32%;
}
.search-left input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    flex-grow: 1;
}
.search-left button {
    padding: 8px 16px;
    border-radius: 6px;
    background-color: var(--accent4-color);
    color: var(--base-color);
    border: none;
    cursor: pointer;
}
.search-left button:hover {
    background-color: var(--accent3-color);
}
.dropdown-right {
    flex: 1 1 35%;
    display: flex;
    justify-content: flex-end;
}
.dropdown-right select {
    padding: 10px 14px;
    border: 1px solid var(--accent3-color);
    border-radius: 6px;
    background-color: var(--accent4-color);
    color: var(--base2-color);
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    max-width: 250px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    appearance: none;
    cursor: pointer;
}
.dropdown-right select:hover {
    border-color: var(--accent3-color);
}
.dropdown-right select:focus {
    outline: none;
    border-color: var(--accent3-color);
}


/* Službene obavijesti */
/* Main Card Container */
.gb-container-d694136c {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background-color: var(--base);
    border: 1px solid var(--contrast-5);
    border-radius: 6px;
    width: 100%;
    min-height: auto;
    transition: all 0.8s ease;
    box-shadow: 0 0 5px var(--contrast-5);
}
    .gb-container-d694136c::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-position: center center;
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.07;
        z-index: -1;
    }
.gb-container-d694136c p:empty {
    display: none !important;
}
/* Card Content Container */
.gb-container-ed6e3fe3 {
    position: relative;
    overflow: hidden;
    background-color: var(--base-2);
    justify-content: flex-start;
    flex-grow: 1;
    flex-basis: calc(50% - 1rem);
    min-height: 180px;
    padding: 22px 24px 0 24px;
    z-index: 1;
}
/* Card Title */
.gb-headline-9855de00 {
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}
    .gb-headline-9855de00 a {
        color: var(--accent-4);
        text-decoration: none;
    }
        .gb-headline-9855de00 a:hover {
            color: var(--accent-3);
        }
/* Category Container */
.gb-container-dc6b6c37 {
    position: relative;
    flex-grow: 1;
    flex-basis: 100%;
    margin-top: -24px;
    margin-bottom: 0px;
    z-index: 2;
    transform: translateY(20px);
}
/* Category */
.gb-headline-e7782c92 {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    background-color: var(--accent-4);
    color: var(--base);
    padding: 6px 24px;
    margin: 6px 0;
    border-top: 2px solid var(--contrast-5);
    border-bottom: 2px solid var(--contrast-5);
}
    .gb-headline-e7782c92 .gb-icon {
        color: var(--base);
        height: 1em;
        width: 1em;
    }
/* Meta Footer Container */
.gb-container-473e0952 {
    display: flex;
    position: relative;
    background-color: var(--base-2);
    flex-grow: 1;
    flex-basis: 100%;
    padding: 24px 24px 12px 24px;
    border-top: 1px solid var(--contrast-5);
    z-index: 1;
}
/* Date Headline */
.gb-headline-0b148276 {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: var(--accent-4);
}
    .gb-headline-0b148276 .gb-icon {
        color: var(--accent-4);
        height: 1em;
        width: 1em;
    }
        .gb-headline-0b148276 .gb-icon svg {
            width: 1em;
            height: 1em;
            fill: currentColor;
        }
/* Hover Effects */
.gb-container-d694136c:hover {
    background-color: var(--base);
    box-shadow: 0 0 10px 2px rgba(20, 43, 87, 0.5);
}
/* Mobile Responsive */
@media (max-width: 767px) {
    .gb-container-d694136c {
        width: 50%;
    }
    .gb-container-ed6e3fe3 {
        padding: 22px 16px 0 16px;
    }
    .gb-container-473e0952 {
        padding: 24px 16px 12px 16px;
    }
    .gb-headline-e7782c92 {
        padding: 6px 16px;
    }
}
/* Tablet Responsive */
@media (max-width: 1024px) {
    .gb-container-d694136c {
        width: 100%;
    }
    .gb-container-ed6e3fe3 {
        padding: 22px 20px 0 20px;
    }

    .gb-container-473e0952 {
        padding: 24px 20px 12px 20px;
    }

    .gb-headline-e7782c92 {
        padding: 6px 20px;
    }
}



/* - Vijest item */
.vijest-item {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.vijest-item.show {
    opacity: 1;
    transform: translateY(0);
}


/* - Dokument item */
/* Main Document Item Container */
.gb-container-1c3a0ef6 {
    position: relative;
    background-color: var(--base-color);
    border: 1px solid rgba(20, 43, 87, 0.3);
    border-radius: 6px;
    width: 100%;
    transition: all 0.8s ease;
    box-shadow: 0 0 5px rgba(20, 43, 87, 0.3);
}
.gb-container-9e0f6600 {
    position: relative;
    padding: 12px 18px 12px 18px;
}
.gb-container-7b989a3e {
    display: flex;
    flex-direction: row;
}
.gb-headline-fac2db09 {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 6px 6px 6px 0;
}
.gb-headline-fac2db09 .gb-icon {
    color: var(--accent4-color);
    height: 36px;
    width: 36px;
}
.gb-headline-fac2db09 .gb-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.gb-container-ca80bd4e {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 6px;
    flex: 1;
}
/* Document Title */
.gb-headline-4220fbdc {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0px;
    margin-left: 6px;
}
.gb-headline-4220fbdc a {
    color: var(--accent3-color);
    text-decoration: none;
}
.gb-headline-4220fbdc a:hover {
    color: var(--accent4-color);
}
.gb-container-d725a302 {
    display: flex;
    margin-top: 4px;
    margin-left: 6px;
}
/* Date Headline */
.gb-headline-60e88df0 {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--accent-4);
    margin-right: 10px;
}
.gb-headline-60e88df0 .gb-icon {
    color: var(--accent-4);
    height: 1em;
    width: 1em;
}
.gb-headline-60e88df0 .gb-icon svg {
    fill: currentColor;
}
/* Category Headline */
.gb-headline-ddec9627 {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-4);
    margin-left: 10px;
}
.gb-headline-ddec9627 .gb-icon {
    color: var(--accent-4);
    height: 1em;
    width: 1em;
}
.gb-headline-ddec9627 .gb-icon svg {
    fill: currentColor;
}
/* Hover Effects */
.gb-container-1c3a0ef6:hover {
    background-color: rgba(20, 43, 87, 0.05);
    border-color: rgba(20, 98, 224, 0.5);
}
@media (max-width: 767px) {
    .gb-container-1c3a0ef6 {
        width: 100%;
    }
    .gb-container-9e0f6600 {
        padding: 16px;
    }
    .gb-headline-fac2db09 .gb-icon {
        height: 1.4em;
        width: 1.4em;
    }
    .gb-headline-4220fbdc {
        font-size: 18px;
    }
    .gb-headline-60e88df0,
    .gb-headline-ddec9627 {
        font-size: 12px;
        margin-top: 6px;
    }
    .gb-container-ca80bd4e {
        justify-content: space-between;
        padding-bottom: 0px;
    }
}
@media (max-width: 1024px) {
    .gb-container-1c3a0ef6 {
        width: 100%;
    }
    .gb-headline-4220fbdc {
        font-size: 20px;
    }
    .gb-headline-60e88df0,
    .gb-headline-ddec9627 {
        font-size: 14px;
    }
    .gb-container-ca80bd4e {
        justify-content: space-between;
        padding-bottom: 18px;
    }
    .gb-container-9e0f6600 {
        margin-bottom: 0px;
    }
}
@media (max-width: 1024px) and (min-width: 768px) {
    .gb-container-ca80bd4e {
        padding-bottom: 18px;
    }
}


/* - Informacije item */
/* Main Container */
.gb-element-e15d911c {
    box-shadow: 0px 0px 5px 0px rgba(39, 52, 84, 0.8);
    transition: all 0.5s ease 0s;
    border: 1px solid rgba(39, 52, 84, 0.3);
    border-radius: 6px;
}
    .gb-element-e15d911c:is(:hover, :focus) {
        border: 1px solid rgba(39, 52, 84, 0.6);
    }
/* Article Container */
.gb-element-a8360b04 {
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    padding: 24px;
    transition: all 0.9s ease 0s;
}
/* Title */
.gb-text-8385aaa0 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}
    .gb-text-8385aaa0 a {
        color: var(--accent-4);
    }
/* Bottom Info Bar */
.gb-element-0082dace {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}
/* Date */
.gb-text-50e29724 {
    align-items: center;
    color: var(--accent-4);
    column-gap: 0.5em;
    display: inline-flex;
    font-size: 10px;
}
    .gb-text-50e29724 .gb-shape svg {
        width: 1em;
        height: 1em;
        fill: currentColor;
    }
/* Hover Effects */
.gb-element-e15d911c:hover {
    border-color: rgba(39, 52, 84, 0.6);
}
/* Responsive adjustments if needed */
@media (max-width: 767px) {
    .gb-element-a8360b04 {
        padding: 20px;
        min-height: 180px;
    }
    .gb-text-8385aaa0 {
        font-size: 16px;
    }
}


/* LOKALNE VIJESTI item */
.vijesti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.vijest-item {
    position: relative;
}
.vijest-container {
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.vijest-slika {
    position: relative;
    overflow: hidden;
    z-index: 10;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 250px;
    margin: 0 12px;
    border-radius: 8px;
    background-color: var(--accent4-color);
    box-shadow: 0 0 12px rgba(20, 43, 87, 0.5);
    transform: translateY(20px);
    transition: all 0.9s ease;
    filter: blur(0.5px);
}
.vijest-content {
    background: linear-gradient(180deg, var(--base-color) 0%, var(--base2-color) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    padding: 32px 0 0 0;
    margin: 0 18px 12px 18px;
    border-top: 1px solid var(--accent4-color);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 0 12px rgba(20, 43, 87, 0.5);
}
.vijest-naslov {
    position: relative;
    z-index: 1;
    font-family: 'Play', sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 12px;
    padding: 0 26px;
}
.vijest-naslov a {
    color: var(--accent4-color);
    text-decoration: none;
}
.vijest-naslov a:hover {
    color: var(--accent4-color);
}
.vijest-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
}
.vijest-date,
.vijest-term {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: 'Play', sans-serif;
    font-size: 11px;
    padding: 4px 8px;
    margin: 0;
    border-radius: 4px;
    background-color: var(--accent4-color);
    color: var(--base-color);
}
.vijest-date svg,
.vijest-term svg {
    height: 1em;
    width: 1em;
    fill: currentColor;
}
/* Hover Effects */
.vijest-item:hover .vijest-slika {
    filter: blur(0);
}
.vijest-item:hover .vijest-naslov {
    filter: invert(50%) hue-rotate(220deg) brightness(105%);
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .vijesti-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .vijest-item.large {
        grid-column: span 1 !important;
    }
    .vijest-slika {
        margin: 0 16px;
        min-height: 200px;
    }
    .vijest-item.large .vijest-slika {
        min-height: 300px;
    } 
    .vijest-content {
        min-height: 200px;
        margin: 0 8px 8px 8px;
    }
    .vijest-naslov {
        font-size: 18px;
        padding: 0 18px;
    }
    .vijest-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .vijest-item:hover {
        filter: none;
        box-shadow: none;
    }
    .vijest-item:hover .vijest-slika {
        filter: blur(0.5px);
        transform: translateY(20px);
    }
    .vijest-item:hover .vijest-naslov {
        filter: none;
    }
}
@media (max-width: 480px) {
    .vijest-slika {
        margin: 0 12px;
        min-height: 180px;
    }
    .vijest-item.large .vijest-slika {
        min-height: 250px;
    }
    .vijest-content {
        min-height: 180px;
    }
    .vijest-naslov {
        font-size: 16px;
        padding: 0 12px;
    }
}


/* - Natjecaji button */
.natjecaji-button {
    display: none;
    margin: 2rem auto;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: var(--contrast2-color);
    color: var(--base-color);
    border: none;
    cursor: pointer;
    text-align: center;
    display: block;
    border-radius: 8px;
}
.natjecaji-button:hover {
    background-color: var(--accent3-color);
}
.natjecaji-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 48px;
    margin-bottom: 48px;
}
.natjecaji-card {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    flex: 1 1 calc(33.333% - 1rem);
    background-color: var(--base2-color);
    border: 1px solid var(--accent4-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s ease;
    min-height: 200px;
    z-index: 0;
}

.natjecaji-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2023/06/tovarnik-naslovna-centar01.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.07;
    z-index: 0;
}

.natjecaji-card:hover {
    border-color: var(--accent3-color);
    background-color: var(--base-color);
    box-shadow: 0 5px 15px rgba(34, 45, 64, 0.3);
}

.natjecaji-card-content {
    position: relative;
    z-index: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
    flex-basis: calc(50% - 1rem);
}

.natjecaji-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 0.5rem;
}

.natjecaji-card h3 a {
    color: var(--contrast-2);
    text-decoration: none;
}

.natjecaji-card h3 a:hover {
    color: var(--accent-3);
}

.natjecaji-card .meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--contrast-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--accent3-color);
    z-index: 1;
}

.natjecaji-card .meta i {
    margin-right: 0.4em;
}
.term-carousel-link.active {
    color: var(--contrast-3);
    font-weight: 600;
}
@media (max-width: 768px) {
    .natjecaji-card {
        flex-direction: column;
        flex: 1 1 100%;
    }

    .natjecaji-card-content {
        flex-basis: 100%;
    }
}

/* Animate */
@media (prefers-reduced-motion: no-preference) {
  .animate {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease, transform 0.6s ease;
    will-change: opacity, transform;
  }

  .animate.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Disable animation in the editor preview */
  .editor-styles-wrapper .animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

  
@media (prefers-reduced-motion: no-preference) {
  .title-animate {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: opacity 1s ease, transform 0.8s ease;
    will-change: opacity, transform;
  }
  .title-animate.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .title-animate:nth-child(1) {
    transition-delay: 1.0s;
  }
  .title-animate:nth-child(2) {
    transition-delay: 2.5s;
  }
  .title-animate:nth-child(3) {
    transition-delay: 4.0s;
  }
  .editor-styles-wrapper .title-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}