/*
Theme Name: Struktura
Theme URI: https://zicoding.com
Author: ZiCoding
Description: Super brza, SEO optimizovana tema.
Version: 1.0
*/

/* Osnovni reset */
@font-face {
  font-family: "Montserrat", sans-serif;
  src: url('../../font/Montserrat-VariableFont_wght.woff2') format('woff2'),
    url('../../font/Montserrat-VariableFont_wght.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
  overflow-x: hidden;
}
html, body {
  font-family: "Montserrat", sans-serif;
  background-color: #fff;
}

/* Osnovne desktop vrijednosti */
h1 { font-size: 3.5rem; } /* 56px */
h2 { font-size: 2.6rem;
  font-weight: 600;
 } /* 42px */
h3 { font-size: 2rem;
font-weight: 500;
 }   /* 32px */
h4 { font-size: 1.5rem; } /* 24px */
p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}
/* Tablet (max 768px) */
@media (max-width: 768px) {
  h1 { font-size: 2.6rem; } /* 42px */
  h2 { font-size: 2rem; }   /* 32px */
  h3 { font-size: 1.6rem; } /* 26px */
  h4 { font-size: 1.25rem; }/* 20px */
   p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Mobitel (max 480px) */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }   /* 32px */
  h2 { font-size: 1.6rem; } /* 26px */
  h3 { font-size: 1.25rem; }/* 20px */
  h4 { font-size: 1.1rem; } /* 18px */
  p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* osnovni stil linkova */
a {
  color: var(--osnovna-boja); 
  text-decoration: none;  
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-weight: 500;
}

/* hover efekt */
a:hover {
  color: var(--dopunska-boja); 
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

button,
input[type="submit"],
textarea,
.search-field {
}

.container {
  max-width: 100%;
  width: 100%;
  margin: auto;
  padding: 10px;
}

.site-main {
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  padding-bottom: 2rem;
}

.product-card {
  padding: 15px;
  margin: auto;
}

.breadcrumbs {
  text-align: center;
  background-color: #ffffff;
  max-width: 80%;
  margin: 0 auto;
  padding: 10px;
  font-size: 14px;
  box-shadow: 0px 10px 20px -15px rgba(0, 0, 0, .75);
}

.breadcrumbs a {
  color: var(--osnovna-boja);
  text-decoration: none;
}

/* Header */
.header-container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
}
.header-container::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -30px;
  width: calc(100% + 30px);
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--osnovna-boja),
    var(--dopunska-boja)
  );
}
.site-header {
  max-width: 100%;
  margin: auto;
  top: 0;
  z-index: 1002;
  position: sticky;
  background: #fff;
}

.site-branding {
  display: flex;
  align-items: center;
  flex: 1;
  order: 1;
}

.site-branding a {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.site-logo {
  display: flex;
  align-items: center;
  max-width: 300px;
  height: auto;
  transition: all 0.3s ease;
}

.site-logo img {
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-left: 5px;
}

.header-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

/* Pretraga */
.header-search {
  display: flex;
  align-items: center;
  min-width: 250px;
  order: 2;
  flex: 2;
}

.header-search form {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  margin: 0px 10px;
}

.header-search input[type="search"] {
  width: 100%;
  padding: 10px 30px 10px 15px;
  border: 1px solid var(--osnovna-boja);
  border-radius: 4px;
  font-size: 16px;
  color: #666;
  font-family: inherit;
}

.header-search input[type="search"]::-webkit-search-cancel-button {
  position: relative;
  right: 10px;
  margin-left: 4px;
  filter:
    brightness(0) saturate(100%) invert(39%) sepia(18%) saturate(1234%) hue-rotate(230deg) brightness(89%) contrast(92%);
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.header-search input[type="search"]::-moz-search-cancel-button {
  margin-left: 4px;
  position: relative;
  right: 40px;
  filter:
    brightness(0) saturate(100%) invert(39%) sepia(18%) saturate(1234%) hue-rotate(230deg) brightness(89%) contrast(92%);
  cursor: pointer;
}

.header-search button[type="submit"] {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.header-search button[type="submit"]:hover {
  background-color: var(--dopunska-boja);
  border-radius: 2px;
}

.header-search button[type="submit"] svg {
  width: 20px;
  height: 20px;
  stroke: var(--osnovna-boja);
}
.header-social {
    display: flex;
    gap: 10px;
    align-items: center;
    order: 3;    
    margin: 10px;
}
/* Search Page Styles - Modern Astra-like Design */

.search-page-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0;
  }

.search-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid #e8e8e8;
}

.search-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.search-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.search-form-wrapper {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--osnovna-boja);
    box-shadow: 0 4px 25px rgba(0, 124, 186, 0.15);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-submit {
    padding: 1rem 2rem;
    background-color:  var(--osnovna-boja);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-submit:hover {
    background-color: var(--dopunska-boja);  
    transform: translateY(-1px);
}

.results-count {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.search-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.search-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.article-category {
    background-color:  var(--osnovna-boja);
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.article-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.article-date {
    position: relative;
}

.article-date::before {
    content: "•";
    margin-right: 0.5rem;
    color: #ccc;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--osnovna-boja);
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--osnovna-boja);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--dopunska-boja);
    transform: translateX(3px);
}

.read-more::after {
    content: "→";
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-results-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: #333;
    margin-bottom: 1rem;
}

.no-results p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.search-suggestions {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--osnovna-boja);
}

.search-suggestions h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    margin-bottom: 0.5rem;
}

.search-suggestions a {
    color: var(--osnovna-boja);
    text-decoration: none;
}

.search-suggestions a:hover {
    text-decoration: underline;
}

.search-pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.page-numbers {
    padding: 0.75rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.page-numbers:hover,
.page-numbers.current {
    background-color:  var(--osnovna-boja);
    color: white;
    transform: translateY(-1px);
}

.page-numbers.dots {
    pointer-events: none;
    color: #ccc;
}

@media (max-width: 768px) {
  .entry-content{
        width: 100%;
    }
    .search-page-container {
        padding: 0 15px;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .search-form {
        border-radius: 25px;
    }
    
    .search-input {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .search-submit {
        padding: 0.875rem 1.5rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.25rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pagination-wrapper {
        flex-wrap: wrap;
        padding: 1rem;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .search-header {
        margin: 1rem 0 2rem 0;
        padding: 1.5rem 0;
    }
    
    .search-title {
        font-size: 1.75rem;
    }
    
    .search-form {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-input {
        border-bottom: 1px solid #e8e8e8;
    }
    
    .search-submit {
        width: 100%;
        justify-content: center;
        border-radius: 0;
    }
    
    .article-content {
        padding: 1.25rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-article {
    animation: fadeInUp 0.6s ease forwards;
}

.search-article:nth-child(2) { animation-delay: 0.1s; }
.search-article:nth-child(3) { animation-delay: 0.2s; }
.search-article:nth-child(4) { animation-delay: 0.3s; }

.search-input:focus,
.search-submit:focus,
.page-numbers:focus,
.article-title a:focus,
.read-more:focus {
    outline: 2px solid var(--osnovna-boja);
    outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
    .search-page-container {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .search-article {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .article-title a {
        color: #e0e0e0;
    }
    
    .search-form {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .search-input {
        background: #2a2a2a;
        color: #e0e0e0;
    }
}
/*kraj*/
.header-social .widget {
    margin: 0;
}

/* css za list */
.wp-block-list {
  list-style-type: none;
  padding-left: 1.5em;
  margin: 1.25rem 0;
  line-height: 1.6;
  color: #333;
}

.wp-block-list > li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.75em;
}

.wp-block-list > li:before {
  content: "•";
  color: var(--osnovna-boja); 
  font-size: 1.5em;
  position: absolute;
  left: 0;
  top: -0.1em;
}

.wp-block-list ul.wp-block-list {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1em;
}

.wp-block-list ul.wp-block-list li {
  padding-left: 1.5em;
  margin-bottom: 0.5rem;
  font-size: 0.95em;
}

.wp-block-list ul.wp-block-list li:before {
  content: "◦";
  color: #6c757d;
  font-size: 1.3em;
  top: -0.05em;
}

.wp-block-list strong {
  color: #2c3e50;
  font-weight: 600;
  padding: 0.1em 0.3em;
  border-radius: 3px;
  display: inline-block;
}

.wp-block-list > li:hover {
  color: #000;
}

.wp-block-list ul.wp-block-list li:hover {
  color: #333;
}
/* Navigacija */
/* ---------- KONTEJNER NAVIGACIJE ---------- */
.main-navigation {
  position: relative;
  background: #fff;
  order: 4;
  margin-top: 10px;
  z-index: 1000;
}

/* ---------- PRIMARNI MENU (reset + baza) ---------- */
.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  z-index: 1001;
}

/* reset za sve ugnježdene liste */
.primary-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* parent li */
.primary-menu li {
  position: relative;
}

/* wrapper za glavni menu (npr. ul.menu) */
.primary-menu .menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* ---------- LINKOVI (glavni) ---------- */
.primary-menu .menu li a {
  position: relative;
  display: block;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #000;
  padding: 0.75rem 1.25rem;
  background: transparent;
  overflow: hidden;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  z-index: 2;
}

/* ---------- SHINE EFEKT (ne prekriva tekst) ---------- */
.primary-menu .menu li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(236, 235, 235, 0.35), transparent);
  transition: transform 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.primary-menu .menu li a:hover::before,
.primary-menu .menu li a:focus::before {
  transform: translateX(300%); /* prođe preko linka */
}

/* hover/focus za link */
.primary-menu .menu li a:hover,
.primary-menu .menu li a:focus {
  /*background: var(--osnovna-boja);*/
  /*box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);*/
  border-bottom: 1px solid var(--dopunska-boja);
  color: var(--osnovna-boja);
}

/* ako link ima podmeni, izbjeći "podizanje" da ne napravi razmak */
.primary-menu .menu > li.menu-item-has-children > a:hover {
  transform: none;
}
.primary-menu .menu > li:not(.menu-item-has-children) > a:hover {
  transform: translateY(-2px);
}

/* ---------- OSNOVNI DROPDOWN (prvi nivo) ---------- */
.primary-menu .menu li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dopunska-boja);
  border-radius: 8px;
  min-width: 200px;
  padding: 10px 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transform-origin: top left;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1000;
  display: block;
}

/* ---------- DRUGI I TREĆI NIVO SUBMENIJA (pozicioniranje sa desne strane) ---------- */
.primary-menu .menu li ul li > ul {
  position: absolute;
  top: 0;
  left: 100%; /* postavlja sa desne strane parent elementa */
  margin-left: 5px; /* malo razmaka između nivoa */
  background: var(--dopunska-boja);
  border-radius: 8px;
  min-width: 200px;
  padding: 10px 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transform-origin: top left;
  transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1001; /* viši z-index od prvog nivoa */
}

/* ---------- TREĆI NIVO (i dalje dublji) ---------- */
.primary-menu .menu li ul li ul li > ul {
  z-index: 1002; /* još viši z-index */
}

/* ---------- PRIKAZ DROPDOWNA ---------- */
/* Prvi nivo dropdown */
.primary-menu .menu li:hover > ul,
.primary-menu .menu li:focus-within > ul,
.primary-menu .menu li > ul:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Drugi i treći nivo dropdown */
.primary-menu .menu li ul li:hover > ul,
.primary-menu .menu li ul li:focus-within > ul,
.primary-menu .menu li ul li > ul:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* ---------- DROPDOWN ITEM LINKOVI ---------- */
.primary-menu .menu li ul li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

/* hover u dropdownu */
.primary-menu .menu li ul li a:hover,
.primary-menu .menu li ul li a:focus {
  padding-left: 28px;
  color: #fff;
  outline: none;
}

/* ---------- "hover bridge" - mali nevidljivi prostor koji sprječava treptanje ---------- */
.primary-menu .menu > li { position: relative; }
.primary-menu .menu > li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 6px;
  pointer-events: none;
}

/* Hover bridge za drugi i treći nivo (horizontalno) */
.primary-menu .menu li ul li { position: relative; }
.primary-menu .menu li ul li::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 20px; /* horizontalni prostor */
  pointer-events: none;
}

/* ---------- ANIMACIJE ---------- */
@keyframes fadeInDropdown {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInSubmenu {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- TOGGLE (mobile) ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #000;
  z-index: 1002;
}

.menu-toggle .close-icon { display: none; }
.menu-toggle-checkbox { display: none; }
.submenu-toggle {
  display: none;
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.menu-toggle-checkbox:checked ~ .primary-menu {
  display: flex;
  animation: fadeInMenu 0.3s ease-out forwards;
}

/* ---------- MOBILE (responsive) ---------- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .primary-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .primary-menu .menu {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  /* Svi dropdownovi na mobilu postaju statični */
  .primary-menu .menu li > ul,
  .primary-menu .menu li ul li > ul {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin: 0;
  }

  /* Uvlačenje za različite nivoe na mobilu */
  .primary-menu .menu li ul li a {
    padding: 10px 15px;
    border-radius: 6px;
    color: #000;
  }

  .primary-menu .menu li ul li ul li a {
    padding: 10px 30px; /* više uvlačenja za treći nivo */
  }

  .primary-menu .menu li ul li ul li ul li a {
    padding: 10px 45px; /* još više uvlačenja za četvrti nivo */
  }

  .primary-menu .menu li ul li a:hover,
  .primary-menu .menu li ul li a:focus {
    padding-left: 25px;
    background: rgba(0,0,0,0.05);
    color: #000;
  }

  .primary-menu .menu li ul li ul li a:hover,
  .primary-menu .menu li ul li ul li a:focus {
    padding-left: 40px;
  }

  .primary-menu .menu li ul li ul li ul li a:hover,
  .primary-menu .menu li ul li ul li ul li a:focus {
    padding-left: 55px;
  }
}

/* ---------- POMOĆNE STVARI (struktura sa children, strelice itd.) ---------- */
.primary-menu .menu .menu-item-has-children .menu-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

.primary-menu .menu .menu-item-has-children .menu-link-row a {
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.primary-menu .menu .menu-item-has-children .menu-link-row .dropdown-arrow {
  flex-shrink: 0;
  font-size: 18px;
  padding-left: 8px;
  color: inherit;
}

.primary-menu .menu li ul { color: #fff; }

/* accessibility: jasniji fokus */
.primary-menu .menu li a:focus {
  outline: 2px solid rgba(255,255,255,0.2);
  outline-offset: 2px;
}
/* Footer Styles */
.site-footer {
  margin: 35px auto 0 auto;
  background-color: #f1f1f1;
  color: #fff;
  line-height: 1.6;
}

.site-footer > .container {
  background-color: #f1f1f1 !important;
  margin: 0 auto;
  padding: 15px;
  max-width: 100%;
}

.site-footer a {
  color: #1f1f1f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #000;
}

/* prefooter */
.pre-footer-widgets {
  color: #fff;
  padding: 20px;
  background-color: var(--dopunska-boja);
  text-align: center;    
  margin-bottom: 20px;
  font-weight: 700;
}

.pre-footer-widgets h2 {
  color: #fff;
  margin: 10px;
  font-weight: 700;
}

/* Footer Widgets */
.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer .footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 10px;
}

.site-footer .footer-column h3,
.site-footer .footer-col h3 {
  color: #000;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
  margin: 0 1.5rem 0 0 !important;
  text-align: left !important;
}

.site-footer .footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--osnovna-boja);
  text-align: left !important;
}

.site-footer .wp-block-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--osnovna-boja);
  background-image: none !important;
  border-radius: 0;
  transform: none;
  text-align: left !important;
}

.site-footer .footer-column p {
  color: #000;
  position: relative;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.site-footer .footer-widgets,
.site-footer .footer-bottom {
  text-align: left;
}

/* Site Info */
.site-info {
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  background-color: var(--osnovna-boja);
}

.site-info p {  
  font-size: 0.8rem;
  margin: 0.5rem 0;
  color: #fff;
}

.site-footer .site-info a {
  color: #fff !important;
}

.site-footer .site-info a:hover {
  color: #000;
}

address {
  font-style: normal;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer-column {
  animation: fadeIn 0.5s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: static;
    overflow: visible;
    flex-wrap: wrap;
  }
  .site-branding {
    order: 1;
    flex: 1;
    min-width: 120px;
  }

  .site-logo img {
    max-height: 60px;
  }
.container {
    max-width: 100%;
}
.breadcrumbs {
    max-width: 100%;
}
.site-main {
  max-width: 100%;
}
.hero-banner {
    max-width: 100%;
}
.site-footer {
    max-width: 100%;
}
.footer-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .primary-menu {
    flex-direction: column;
    gap: 0;
    width: 100vw;
    display: none;
    background: var(--dopunska-boja);
    position: fixed;
    left: 0;
    padding: 10px;
    z-index: 999;
    opacity: 0.6;
    text-align: center;
    align-items: center;
  }

  .primary-menu.menu-open {
    display: flex;
  }

  .main-navigation {
    position: relative;
    z-index: 1000;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    order: 4;
    flex: 0 0 auto;
    margin-top: 10px;
    width: auto;    
  margin-right: 10px;
  }
.header-social {
    order: 3;
    margin: 10px 0 0 10px;
}

  .menu-toggle {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
    z-index: 1001;
    position: relative;
    color: var(--dopunska-boja);
    order: 4;
    width: 40px;
  }

  .primary-menu .menu {
    flex-direction: column;
    width: 100%;
  }

  .primary-menu .menu li {
    width: 100%;
    text-align: left;
  }

  .primary-menu .menu li ul {
    position: static;
    box-shadow: none;
  }

  .primary-menu .menu li:hover > ul {
    display: block;
    animation: fadeInDropdown 0.3s ease-out forwards;
  }
  .primary-menu .menu li a{
    border: none;
    color: #fff;
  }
  .submenu-toggle {
    display: none;
  }

  .primary-menu .menu .menu-item-has-children {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
  }

  .primary-menu .menu .menu-item-has-children .menu-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .primary-menu .menu .menu-item-has-children > .menu-link-row > a {
    flex: 1;
    color: #fff;
    text-decoration: none;
    text-align: left;
  }

  .primary-menu .menu .menu-item-has-children > .menu-link-row > .dropdown-arrow {
    cursor: pointer;
    font-size: 22px;
    padding: 5px;
    color: #fff;
  }

  .primary-menu .menu .menu-item-has-children > .sub-menu {
    display: none;
    flex-direction: column;
    background: var(--dopunska-boja);
    width: 100%;
    padding-left: 10px;
  }

  .primary-menu .menu .menu-item-has-children > .submenu-toggle:checked ~ .sub-menu {
    display: flex;
  }

  .primary-menu .menu .sub-menu li a {
    padding: 8px 10px;
    display: block;
    color: #fff;
    text-align: left;
  }

  .header-search {
    order: 3;
    flex: 1 0 90%;
    margin-top: 10px;
    justify-content: center;
  }

  .header-search form {
    display: flex;
    align-items: center;
    max-width: 100%;
    height: 100%;
  }
}


.wp-block-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.wp-block-column {
  padding: 20px;
  box-sizing: border-box;
}
.wp-block-columns:hover {
    transform: translateY(-10px);
}
.wp-block-column .wp-block-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0 0 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #e3e6ea;
}
.wp-block-column .wp-block-columns .wp-block-column {
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.wp-block-column .wp-block-columns .wp-block-column:hover {
    transform: none;
}
.wp-block-column img{
  margin: auto !important;
}
.wp-block-list {
    list-style: none !important;
    padding: 0;
    margin: 0 0 30px 0;
}

.wp-block-list li {
    position: relative;
    font-size: 18px;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
    padding: 12px 0 12px 25px;
    list-style-type: none !important;
}
.wp-block-list li:last-child {
    border-bottom: none;
}

.wp-block-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--osnovna-boja);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Na manjim ekranima (mobiteli) smanji padding */
@media (max-width: 768px) {
  .wp-block-column {
    padding: 10px;
  }
  
.wp-block-list li {
        font-size: 16px;
        padding: 10px 0 10px 20px;
    }
}
@media (max-width: 480px) {
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}