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

:root{
    --accent2-color: #920a0a;
    --accent-color: #df1a17;
    --base3-color: #F8FAFC;
    --base2-color: #ffffff;
    --base-color: #f5f9fc;
    --contrast5-color: #d7d7d7;
    --contrast4-color: #68737f;
    --contrast3-color: #2c3d5c;
    --contrast2-color: #222c3f;
    --contrast-color: #121212;
}

/* 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;
}

/* 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: 12px;
    }   
    nav .main-nav .mega-menu > ul {
        padding: 32px;
        gap: 24px;
        border-radius: 12px;
        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(--accent2-color);
        border-radius: 12px;
    }
    nav .main-nav .mega-menu > ul > li:has(ul) > a:hover {
        color: var(--base2-color) !important;
        background-color: var(--contrast2-color) !important;
        border-radius: 12px;
    }
	.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a {
        color: var(--accent2-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;
    }
    
    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: 12px;
    }
    .main-navigation .main-nav ul ul li[class*="current-menu-"] > a {
        color: var(--base2-color);
        background-color: var(--contrast-2);
        border-radius: 12px;
    }


/* 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";
}
.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-info {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -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;
}


/* wpForms */
.wpforms-form button[type=submit] {
    background-color: var(--contrast2-color) !important;
    border-color: var(--contrast2-color) !important;
    color: var(--base3-color) !important;
    transition: background 0.3s ease-in-out;
}
.wpforms-form button[type=submit]:hover {
    background-color: var(--accent-color) !important;
}

/* 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(--accent2-color);
    width: fit-content;
}
.custom-chevron{
    font-weight: 500;
    font-size: 0.8em;
    opacity: 0.7;       
}


/* - WP file block */
.wp-block-file:not(.wp-element-button) {
    font-size: 1em;
}
a.mtli_attachment {
    border: 1px solid rgb(220, 220, 220);
    background-color: rgb(240, 240, 240);
    padding: 8px 15px 8px 40px !important;
    border-radius: 8px;
    text-decoration: none;
    background-position: 15px center !important;
}
.mtli_attachment:hover {
    background-color: var(--base-color);
}


/* - 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(--accent2-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(--accent2-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(--accent2-color);
  color: var(--base2-color);
  border: 1px solid var(--accent-color);
  text-align: center;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.owl-carousel-informacije .owl-nav button.owl-prev:hover,
.owl-carousel-informacije .owl-nav button.owl-next:hover {
  background-color: var(--accent-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(--accent2-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(--accent-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(--accent2-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);
    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: 48px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 48px;
    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(--contrast-2);
    color: var(--base-color);
    border: none;
    cursor: pointer;
    border-radius: 12px;
}
#load-more-button:hover {
    background-color: var(--accent2-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;
    flex-grow: 1;
}
.search-left button {
    padding: 8px 16px;
    border-radius: 8px;
    background-color: var(--contrast-2);
    color: var(--base-color);
    border: none;
    cursor: pointer;
}
.search-left button:hover {
    background-color: var(--accent2-color);
}
.dropdown-right {
    flex: 1 1 35%;
    display: flex;
    justify-content: flex-end;
}
.dropdown-right select {
    padding: 10px 14px;
    border: 1px solid var(--contrast-2);
    border-radius: 8px;
    background-color: var(--contrast-2);
    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(--accent2-color);
}
.dropdown-right select:focus {
    outline: none;
    border-color: var(--accent2-color);
}


/* Službene obavijesti */
.gb-container-144afe7f {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    position: relative;
    background-color: var(--base-2);
    height: 100%;
    column-gap: 1rem;
    row-gap: 0.5rem;
    overflow: hidden;
    z-index: 0;
    border: 1px solid var(--accent);
    border-radius: 12px;
    transition: all 0.5s ease;
}
.gb-container-144afe7f:hover {
    background-color: rgba(18, 18, 18, 0.05);
    border-color: var(--accent-2);
    box-shadow: 0 5px 15px rgba(34, 45, 64, 0.3);
}
.gb-container-144afe7f::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.crosys-brod.hr/images/logos/podcrkavlje.png');
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.07;
    transition: all 0.5s ease;
}
.gb-container-144afe7f:hover::before {
    transform: scale(1.05);
}
.gb-container-c00e516d {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    flex-basis: calc(50% - 1rem);
}
.gb-headline-7a1b23e6 {
    color: var(--contrast-2);
}
.gb-headline-7a1b23e6 a {
    color: var(--contrast-2);
}
.gb-headline-7a1b23e6 a:hover {
    color: var(--accent-2);
}
.gb-container-81a51819 {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    flex-basis: 100%;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--contrast-3);
}
.gb-container-81a51819:hover {
    border-top-color: var(--contrast-2);
}
.gb-container-45011f96 {
    display: flex;
    justify-content: space-between;
    column-gap: 1rem;
    flex-grow: 1;
}
.gb-headline-6135adc1 {
    display: flex;
    align-items: center;
    column-gap: 0.5em;
    font-size: 13px;
    color: var(--accent-2);
}
.gb-headline-13ec9cf5 {
    display: flex;
    align-items: center;
    column-gap: 0.5em;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-2);
}

@media (max-width: 576px) {
    .gb-container-144afe7f {
        width: 100%;
    }
}


/* - 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 */
.gb-container-1c3a0ef6 {
    position: relative;
    background-color: var(--base-2);
    border: 1px solid var(--accent);
    border-radius: 12px;
    transition: all 0.5s ease;
}
.gb-container-1c3a0ef6:hover {
    background-color: rgba(18, 18, 18, 0.05);
    border-color: var(--accent-2);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}
.gb-container-9e0f6600 {
    position: relative;
    padding: 12px 18px;
}
.gb-container-7b989a3e {
    display: flex;
    flex-direction: row;
}
.gb-headline-fac2db09 {
    margin-right: 6px;
}
.gb-headline-fac2db09 .gb-icon svg {
    height: 1.8em;
    width: 1.8em;
    fill: var(--contrast-2);
}
.gb-container-ca80bd4e {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.gb-headline-4220fbdc {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--contrast-2);
}
.gb-headline-4220fbdc a {
    color: var(--contrast-2);
}
.gb-headline-4220fbdc a:hover {
    color: var(--accent-2);
}
.gb-container-d725a302 {
    display: flex;
    margin-top: 4px;
}
.gb-headline-60e88df0 {
    font-size: 12px;
    color: var(--accent-2);
    padding-right: 10px;
}
.gb-headline-60e88df0 .gb-icon,
.gb-headline-ddec9627 .gb-icon {
    margin-right: 5px;
}
.gb-headline-ddec9627 {
    font-size: 12px;
    font-weight: 500;
    column-gap: 5px;
    color: var(--accent-2);
    margin-left: 10px;
}
.gb-headline-60e88df0 .gb-icon svg,
.gb-headline-ddec9627 .gb-icon svg {
    height: 1em;
    width: 1em;
}


/* - Informacije item */
.informacije-item {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.informacije-item.show {
    opacity: 1;
    transform: translateY(0);
}
.gb-container-2ced9fea {
    display: flex;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 10px;
    transition: all 0.5s ease;
}
.gb-container-2ced9fea:hover .gb-container-c202f121 {
    box-shadow: 0 5px 10px rgba(44, 61, 92, 0.3);
    filter: brightness(120%);
    transition: all 0.5s ease;
}
.gb-container-c202f121 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    width: 100%;
    height: 170px;
    padding: 24px;
    border: 1px solid rgba(44, 61, 92, 0.2);
    border-radius: 12px;
    background-color: var(--accent-2);
}
.gb-headline-4267525d {
    font-size: 20px;
    font-size: clamp(16px, 5vw, 20px);
    color: var(--base-2);
    width: 100%;
    text-align: left;
}
.gb-headline-37335128 {
    display: flex;
    align-items: center;
    column-gap: 0.5em;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 0;
    color: var(--contrast-5);
}
.gb-headline-37335128 .gb-icon svg {
    height: 1em;
    width: 1em;
}


/* LOKALNE VIJESTI item */
.vijesti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.vijest-item {
    position: relative;
    overflow: hidden;
    background-color: var(--contrast-2);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
    z-index: 0;
    min-height: 100%;
}
.vijest-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--vijest-bg, url('https://www.podcrkavlje.hr/wp-content/uploads/2023/05/naslovna-03-naselje-opcina-podcrkavlje-scaled.webp'));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}
.vijest-item * {
    position: relative;
    z-index: 1;
}
.vijest-item h3 a {
    font-size: 22px;
    font-weight: 600;
    color: var(--base2-color);
    line-height: 1.1;
    margin-bottom: 8px;
}
.vijest-item:hover h3 a {
    color: var(--accent-color);
}
.vijest-date {
    font-size: 13px;
    color: var(--contrast-5);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vijest-excerpt a {
    font-size: 16px;
    color: var(--base2-color);
}
.vijest-item:hover {
    filter: brightness(1.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.vijest-item.large {
    grid-column: span 2;
    min-height: 350px;
}
.vijest-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.vijest-item.small {
    min-height: 230px;
}
@media (max-width: 480px) {
  .vijesti-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .vijest-item {
    padding: 14px 16px;
    min-height: auto;
    border-radius: 8px;
  }
  .vijest-item.large {
    grid-column: span 1 !important;
    min-height: auto;
  }
  .vijest-item h3 a {
    font-size: 18px;
    line-height: 1.2;
  }
  .vijest-date {
    font-size: 12px;
    gap: 4px;
  }
  .vijest-excerpt a {
    font-size: 14px;
  }
  .vijest-item:hover {
    filter: none;
    box-shadow: none;
  }
}


/* - 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: 12px;
}
.natjecaji-button:hover {
    background-color: var(--accent2-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(--base-2);
    border: 1px solid var(--accent);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s ease;
    min-height: 200px;
    z-index: 0;
}

.natjecaji-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://www.crosys-brod.hr/images/logos/podcrkavlje.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.07;
    z-index: 0;
}

.natjecaji-card:hover {
    border-color: var(--accent-2);
    background-color: rgba(18, 18, 18, 0.05);
    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-2);
}

.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(--accent-2);
    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;
  }
}