/* Main css. DO NOT MIX */



/* Extra small devices (phones) */
@media (max-width: 576px) {
  .trust-us img {
    width: 7em;
}
  .component-card {
    padding: 10px;
  }
.custom-card {
  width: fit-content;
}

  ol.breadcrumbs.text-small.rcrumbs {
    display: none!important;
  }

.custom-razpis-box {
    flex-direction: column!important;
}

.action-buttons-razpis {
    margin: auto!important;
}

.action-buttons-razpis {
    width: 100%!important;
}

}

/* Small devices (large phones) */
@media (max-width: 768px) {}

/* Medium devices (tablets) */
@media (max-width: 992px) {}

/* Large devices (desktops) */
@media (max-width: 1200px) {}

/* Extra large devices (large desktops) */
@media (max-width: 1400px) {}



#contact-button {
  cursor: pointer;
}

/* === GRID WRAPPER: 4 cards on desktop === */
.projekti-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));  /* 4 columns */
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Breakpoints: 2 cards tablet, 1 card mobile */
@media (max-width: 991px) {
  .projekti-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .projekti-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* === CARD BASE === */
.projekti-card {
  height: 100%;
}

.projekti-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.projekti-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

/* green top bar */
.projekti-card a::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: #3188d7;
}

/* === IMAGE AREA: uniform height, full image visible === */
.projekti-card-thumb {
  width: 100%;
  height: 200px;                   /* uniform image box */
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.projekti-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* === TITLE: uniform height + ellipsis === */
.projekti-card-title {
  padding: 18px 16px 22px;
  font-size: 16px;
  font-weight: 600;
  color: #6C6F70;
  margin: 0;

  /* max 2 lines, all cards equal height */
  min-height: 3.6em;
  max-height: 3.6em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1em;
}

@media (max-width: 575px) {
  .projekti-card-thumb {
    height: 160px;
  }
  .projekti-card-title {
    font-size: 15px;
    padding: 14px 16px 16px;
  }
}

/* 1) Make carousel items stretch */
.dt-owl-item {
    height: auto !important;
    display: flex;
}

/* 2) Make each post behave as a full-height card */
.dt-owl-item article.post {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

/* 3) Force equal image height */
.dt-owl-item .post-thumbnail img {
    width: 100%;
    height: 200px;      /* adjust as needed */
    object-fit: contain;
    background-color: #f5f5f5; /* optional to fill empty space */
}

/* 4) Content wrapper expands */
.dt-owl-item .post-entry-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* 5) Title — clamp to 2 lines */
.dt-owl-item .ele-entry-title a {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px; /* stabilizes height */
}

/* 6) Excerpt — clamp to 3 lines */
.dt-owl-item .entry-excerpt p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 60px; /* ensures all equal */
}

/* 7) Button goes to bottom */
.dt-owl-item .box-button {
    margin-top: auto !important;
    align-self: flex-start;
}



.my-lang-dropdown {
    position: relative;
    display: inline-block;
}

.my-lang-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.my-lang-toggle i {
    transition: transform .25s ease;
}

.my-lang-dropdown.open .my-lang-toggle i {
    transform: rotate(180deg);
}

/* The dropdown list */
.my-lang-menu {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 10px;
    list-style: none;
    padding: 8px 0;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    z-index: 9999;
}

.my-lang-dropdown.open .my-lang-menu {
    display: block;
}

.my-lang-menu li {
    padding: 6px 12px;
}

.my-lang-menu li a {
    color: inherit;
    text-decoration: none;
    display: block;
}




.right-navigation {
    display: flex;
    gap: 1em;
    align-items: center;
}
/* Search Icon */
.header-search-icon i {
  font-size: 22px;
  cursor: pointer;
  color: #6C6F70;
}

/* Fullscreen modal */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);

  justify-content: center;
  align-items: center;

  z-index: 9999999;
}

/* Popup box */
.search-modal-content {
  background: #fff;
  padding: 40px 35px;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;

  position: relative;
  text-align: center;

  box-shadow: 0 20px 40px rgba(0,0,0,0.18);

  animation: popIn .25s ease-out;
}

/* Animation */
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* Close button */
.close-search {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
  color: #6C6F70;
}

/* Input */
.search-field {
  width: 100%;
  padding: 18px 22px;
  font-size: 20px;
  border: 2px solid #ddd;
  border-radius: 12px;
}

.search-field:focus {
  border-color: #6C6F70;
  box-shadow: 0 0 0 3px rgba(108,111,112,0.15);
}


.e-con-inner {
  padding-top: 0px !important;
}

/* 1️⃣ Hide Elementor's default dropdown arrow */
.elementor-nav-menu--main .elementor-item .sub-arrow,
.elementor-nav-menu--main .elementor-item .elementor-dropdown-icon {
  display: none !important;
}

.elementor-nav-menu--main .elementor-item.has-submenu::after {
  content: "\f107"; /* Font Awesome chevron-down */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 13px;
  margin-left: 6px;
  position: relative;
  top: 2px; /* keep it centered */
  display: inline-block;
  color: inherit;
  transition: transform 0.25s ease, color 0.25s ease;
  transform-origin: center center; /* prevent "jumping" */
  vertical-align: middle; /* keeps same baseline */
}



/* 4️⃣ Optional color styling */
.elementor-nav-menu--main .elementor-item.has-submenu:hover::after {
  color: #377ef7; /* your brand green */
}


/* ensure arrow is always visible, not just on hover */
.elementor-nav-menu--main .elementor-item.has-submenu::after {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
}

.main-container {
  max-width: 1440px!important;   /* typical values: 1140px, 1200px, 1280px */
  margin: 0 auto!important;      /* centers horizontally */
  padding-left: 2em!important;     /* breathing room left/right */
  padding-right: 2em!important;     /* breathing room left/right */
  width: 100%!important;
  box-sizing: border-box!important;
}

/* Main css. DO NOT MIX */

form#fluentform_3 {
    width: max-content;
}
/* Target first breadcrumb (Home) */
.breadcrumbs li:first-child a span {
  display: none; /* hide text */
}

.breadcrumbs li:first-child a::before {
    content: "\f015";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
    color: white;
    margin-right: 6px;
    z-index: 90!important;
    position: relative;
}

.navigation-breadcrumbs-custom {
    position: relative;
    top: 30px;
    z-index: 10;
    padding-left: 0.5em;
    height: 0px!important;
   
}

.navigation-breadcrumbs-custom span {
    color: white!important;
    z-index: 90;
}
.elementor-nav-menu {
    z-index: 10000!important;
}
.elementor-nav-menu:hover {
    z-index: 10000!important;
}
















.product-card {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  height: 100%;
}

.product-image {
  flex: 1 1 40%;
}

.product-image img {
  max-width: 100%;
  border-radius: 8px;
}

.product-details {
  flex: 1 1 60%;
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.product-sku {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.product-excerpt {
  font-size: 14px;
  margin-bottom: 15px;
  color: #555;
}

.product-price {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.stock {
  font-size: 14px;
  margin-bottom: 5px;
}

.stock.in-stock { color: #28a745; }
.stock.out-of-stock { color: #dc3545; }

.delivery-note {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.product-buttons {
  display: flex;
  gap: 15px;
}

.product-buttons .button {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
}

.product-buttons .button.add_to_cart_button {
  background: #0073e6;
  color: #fff;
}

.product-buttons .button.secondary {
  background: #f1f1f1;
  color: #333;
}
/* Full width container */
.woo-carousel-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px; /* optional side padding */
}

/* Ensure Swiper uses full width */
.my-woo-carousel {
  width: 100%;
}

/* Each slide takes full height of card */
.product-slide {
  display: flex;
  height: auto;
}

.custom-card p {
  display: -webkit-box;
  -webkit-line-clamp: 4;     /* number of visible lines */
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto!important;
}

.custom-card {
  --card-bg: #fff;
  --card-border: #D0D3D4; /* medium-light gray */
  padding: 1em;
  display: grid;
  grid-template-rows: 
    1fr      /* 1: icon */
    1fr       /* 2: flexible space */
    1fr      /* 3: heading */
    1fr     /* 4: small gap */
    1fr;     /* 5: text */
  border: 2px solid transparent !important;
  border-radius: 12px;
  min-height: 1em;
  height: 23em;
  background:
    /* inner fill */
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,

    /* balanced fading border */
    linear-gradient(
      to bottom,
      rgba(208,211,212,0) 0%,     /* invisible top */
      rgba(208,211,212,0.20) 30%, /* faint fade */
      rgba(208,211,212,0.45) 70%, /* medium strength */
      rgba(208,211,212,0.70) 100% /* not too dark, stronger bottom */
    ) border-box;
}


/* Place items in rows */
.card-image     { grid-row: 1; }
.card-heading   { grid-row: 3; }
.card-text    { grid-row: 4; }

.component-card {
    height: 35em;
}

.component-card p {
  display: -webkit-box;        /* required for line-clamp */
  -webkit-line-clamp: 100;       /* number of lines to show */
  line-clamp: 100;
  -webkit-box-orient: vertical;
  overflow: hidden;            /* hide the rest */
}
.text-bellow-hero {
    margin-left: 0px;
    margin-right: 2em;
}

.div-bellow-hero {
  margin-top: 32px;
  margin-bottom:16px;
  padding: 0!important;
}


.razpisi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .razpisi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .razpisi-grid {
        grid-template-columns: 1fr;
    }
}


.razpis-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.razpis-card .razpis-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}

.razpis-card .razpis-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.razpis-card .razpis-excerpt {
    flex-grow: 1;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #555;
}

.razpis-btn {
    display: inline-block;
    background: #377ef7; /* your brand green */
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: background 0.3s ease;
}



.razpis-btn:hover {
  color: white;
}

.post-type-archive-razpis .entry-meta,
.single-razpis .entry-meta {
    display: none !important;
}

.razpisi-grid {
    margin-bottom: 5em;
}

.featured-razpis {
  background: #377ef7;
  margin: 0 auto!important;      /* centers horizontally */
  padding-left: 0!important;     /* breathing room left/right */
  padding-right: 0!important;     /* breathing room left/right */
  color: white;
}
.featured-razpis h2 {
  color: white;
}

.btn-tender-information,
.btn-tender-all {
  height: 3em;
  width: 12em;
  border-radius: 10px;
  color: white;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-tender-information:hover,
.btn-tender-all:hover {

  color: white;

}

.razpis-content {
    display: flex;
    flex-direction: column;
    width: 80%;
}
.custom-razpis-box {
  display: flex;
  flex-direction: row;
  margin: 0 auto!important;      /* centers horizontally */
  padding-left: 2em!important;     /* breathing room left/right */
  padding-right: 2em!important;  
}

.action-buttons-razpis {
    display: flex;
    flex-direction: row;
    justify-content: end;
    width: 20%;
    align-items: end;
    gap: 1em;
}

.action-buttons-razpis a {
  
}


/* Remove WPML's triangle arrow completely */
.wpml-ls-item-legacy-dropdown-click a.wpml-ls-item-toggle:after,
.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:after {
    content: none !important;
    border: none !important;
}

/* Override WPML triangle arrow with Font Awesome chevron */
.wpml-ls-item-legacy-dropdown-click a.wpml-ls-item-toggle:after,
.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:after {
    content: "\f107" !important;             /* chevron-down */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900!important;
    font-size: 13px!important;

    border: none !important;                 /* kill triangle borders */
    display: inline-block!important;
    position: absolute!important;
    right: 0!important;

      /* --- Vertical position fix --- */
    top: 55%!important;                               /* slightly lower */
    transform: translateY(-50%)!important;            /* center it */
    /* -------------------------------- */
    margin-top: 0!important;
    color: inherit!important;
    transition: transform .25s ease!important;
}

/* Wrapper so we can position the dropdown under SL */
.wpml-ls-statics-shortcode_actions.wpml-ls-legacy-dropdown-click {
  position: relative;
  display: inline-block;
}

.wpml-ls-statics-shortcode_actions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* DROPDOWN BOX */
.wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu {
  position: absolute;
  top: calc(100% + 6px);        /* a bit below "SL ▾" */
  left: 0;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  min-width: 60px;
  z-index: 9999;
}

/* Remove extra spacing on li inside dropdown */
.wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu li {
  margin: 0;
  padding: 0;
}

/* LINK INSIDE DROPDOWN (EN) */
.wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #6C6F70;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
}

/* Hover state */
.wpml-ls-statics-shortcode_actions .wpml-ls-sub-menu a:hover {
  background: #f3f3f3;
}

/* hide non-visible cards */
.projekti-card.projekti-hidden {
    display: none !important;
}

/* basic nav layout – adjust to taste */
.projekti-carousel-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.projekti-carousel-nav button {
    border: none;
    padding: 6px 12px;
    cursor: pointer;
}


/* FULL-WIDTH SECTION WITH GRAY BACKGROUND */
.shop-section {
  width: 100%;
  margin-bottom: 3em;
  padding: 60px 0;
  background: #f2f2f2;        /* gray background */
}

/* HEADER */
.shop-header {
  max-width: 1400px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-header h2 {
  font-size: 32px;
}

.shop-link {
  font-size: 14px;
  text-decoration: none;
}

/* MAIN GRID: LEFT PRODUCT | DIVIDER | RIGHT PRODUCT */
.shop-slider {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;  /* TWO EQUAL COLUMNS + DIVIDER */
  align-items: stretch;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: #fff;             /* optional white inner background */
  border-radius: 12px;
  overflow: hidden;             /* ensures divider touches edges */
  position: relative;
}

/* DIVIDER */
.shop-divider {
  width: 1px;
  background: #d0d0d0;
}

/* PRODUCT CARD */
.product-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 40px;
  align-items: center;
  background: #f2f2f2;             /* required for clean look */
    border-radius: 0;
}

/* EQUAL IMAGE BOX */
.product-card .product-media {
  width: 100%;
  height: 240px;                /* adjust if needed */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f2f2f2;
  border-radius: 8px;
  overflow: hidden;
}

/* IMAGE FIT */
.product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* TEXT SIDE */
.product-content {
  max-width: 380px;
}

.product-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.meta {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.price {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
}

.stock {
  font-size: 14px;
  margin-bottom: 8px;
}

.delivery {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 22px;
}

/* BUTTONS */
.product-actions {
  display: flex;
  gap: 12px;
}

.product-actions .button,
.btn.secondary {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
}

.btn.secondary {
  border: 1px solid #ccc;
  background: transparent;
}

.shop-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;

    width: 46px;
    height: 46px;
    border-radius: 50%;

    background: linear-gradient(135deg, #4c8df6, #1b5fd1);
    border: none;
    box-shadow: 0 4px 10px rgba(30,80,180,0.25);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    color: #fff;
    cursor: pointer;

    transition: all 0.25s ease;
}

.shop-arrow:hover {
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 6px 14px rgba(30,80,180,0.3);
}



/* MOBILE */
@media (max-width: 900px) {

  .shop-slider {
    grid-template-columns: 1fr;   /* stack items */
  }

  .shop-divider {
    display: none;
  }

  .product-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .product-card .product-media {
    height: 180px;
  }
}
/* Loader state */
.shop-arrow.loading {
    pointer-events: none;      /* disable clicks while loading */
    color: transparent;        /* hide the arrow glyph */
}

/* Spinner inside the button while loading */
.shop-arrow.loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: rgba(0,0,0,0.6); /* you can change this to your brand color */
    animation: shop-arrow-spin 0.6s linear infinite;
}

/* Spinner animation */
@keyframes shop-arrow-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
