* control article header */
.item-page .article-header {
  margin-top: 0;
  padding-top: 0;
}

.article-header h1[itemprop="headline"] {
    font-size: 1.25rem !important;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .article-header h1[itemprop="headline"] {
        font-size: 1.05rem !important;
    }
}

.item-page .article-header h1[itemprop="headline"] {
  font-size: 20px !important;
  line-height: 1.3;
  margin-bottom: 10px;
}


/*== TITLE MODULE STYLE ==*/
#sp-title .sp-module .sp-module-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
    border-bottom: 0px solid #dcdcdc;
    padding-bottom: 10px;
}

/* Container spacing */
#sp-title .sp-column {
    padding: 0;
}

/* Module card style */
#sp-title .sp-module {
    background: linear-gradient(145deg, #f8f8f8, #ececec) !important;
    border-radius: 1px;
    padding: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    border: 0px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* Hover effect 
#sp-title .sp-module:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.14);
}
*/
/* Module title */
#sp-title .sp-module .sp-module-title {
    background: linear-gradient(135deg, #1b2735, #2c3e50);
    color: #fff !important;
    padding: 14px 18px;
    margin: -25px -25px 18px -25px;
    border-radius: 16px 16px 0 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-left: 5px solid #00bfff;
}


/*== SIDEBAR RIGHT MODULE STYLE ==*/
#sp-right .sp-module {
    margin-top: 3px!important;
    margin-bottom: 3px !important;
    background: #f5f5f5 !important;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

/* Hover effect */
#sp-right .sp-module:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

#sp-right .sp-module .sp-module-title {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff !important;
    padding: 14px 18px;
    margin: -24px -24px 18px -24px;
    border-radius: 3px 3px 0 0;
    font-size: 18px;
    font-weight: 700;
    border-left: 4px solid #00c2ff;
}








/* ========================= */
/* Module SECTION BOTTOM LOOK FIX */
/* Section wrapper spacing */
#sp-bottom {
    padding-top: 20px;
    padding-bottom: 20px;
    background: #f7f9fc;
}

/* Column reset */
#sp-bottom .sp-column {
    padding: 0;
}

/* Module card */
#sp-bottom .sp-module {
    background: linear-gradient(145deg, #ffffff, #f1f3f6) !important;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

/* Hover lift */
#sp-bottom .sp-module:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

/* Title styling */
#sp-bottom .sp-module .sp-module-title {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff !important;
    padding: 14px 18px;
    margin: -24px -24px 18px -24px;
    border-radius: 3px 3px 0 0;
    font-size: 18px;
    font-weight: 700;
    border-left: 4px solid #00c2ff;
}

/* ========================= */
/* Module SECTION 6POSITION LOOK FIX */
/* Section wrapper spacing */
#sp-section-6 {
    padding-top: 20px;
    padding-bottom: 20px;
    background: #f7f9fc;
}

/* Column reset */
#sp-section-6 .sp-column {
    padding: 0;
}

/* Module card */
#sp-section-6 .sp-module {
    background: linear-gradient(145deg, #ffffff, #f1f3f6) !important;
    border-radius: 1px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

/* Hover lift */
#sp-section-6 .sp-module:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

/* Title styling */
#sp-section-6 .sp-module .sp-module-title {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff !important;
    padding: 14px 18px;
    margin: -24px -24px 18px -24px;
    border-radius: 1px 1px 0 0;
    font-size: 18px;
    font-weight: 700;
    border-left: 4px solid #00c2ff;
}



/* ========================= */
/* Module FOOTER LOOK FIX */
#sp-footer {
    background: linear-gradient(180deg, #070d18, #0b1a2e);
    padding: 45px 0;
    position: relative;
    overflow: hidden;
}

/* blueprint grid overlay */
#sp-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,194,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,194,255,0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.5;
    z-index: 0;
}

/* soft glow spots (thermal scan feel) */
#sp-footer::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    top: -120px;
    right: -120px;
    background: radial-gradient(circle, rgba(0,194,255,0.18), transparent 60%);
    filter: blur(40px);
    z-index: 0;
}

/* column wrapper */
#sp-footer .sp-column {
    position: relative;
    z-index: 1;
}

/* GLASS MODULE */
#sp-footer .sp-module {
    background: rgba(10, 18, 32, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 194, 255, 0.22);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* subtle inner scan line effect */
#sp-footer .sp-module::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(0,194,255,0.08) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: 0.6s ease;
}

#sp-footer .sp-module:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
    border-color: rgba(0, 194, 255, 0.4);
}

#sp-footer .sp-module:hover::after {
    transform: translateX(100%);
}

/* TITLE BAR (diagnostic panel style) */
#sp-footer .sp-module .sp-module-title {
    background: linear-gradient(90deg, #00c2ff, #0077ff);
    color: #fff !important;

    padding: 12px 16px;
    margin: -20px -20px 15px -20px;
    border-radius: 5px 5px 0 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

/* small signal line under title */
#sp-footer .sp-module .sp-module-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #00c2ff, transparent);
    opacity: 0.8;
}



/* =========================
   WRAPPER (LIGHT DIAGNOSTIC PANEL)
========================= */
#ccomment {
    margin-top: 30px;
    padding: 18px;

    background: linear-gradient(145deg, #f8fafc, #eef2f7);
    border-radius: 18px;

    border: 1px solid rgba(220,38,38,0.12);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* =========================
   COMMENT CARD BASE
========================= */
#ccomment .ccomment-comment-content {
    position: relative;

    margin: 12px 0;
    padding: 16px;

    border-radius: 14px;

    transition: all 0.28s ease;
    overflow: hidden;

    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(220,38,38,0.10);
}

/* =========================
   HOVER (LIGHT GLASS + RED EDGE)
========================= */
#ccomment .ccomment-comment-content:hover {
    background: rgba(255,255,255,0.92);

    box-shadow: 0 10px 24px rgba(220,38,38,0.15);

    transform: translateX(4px);

    border-left: 3px solid #dc2626;
}

/* =========================
   SCAN EFFECT (RED DIAGNOSTIC BEAM)
========================= */
#ccomment .ccomment-comment-content::before {
    content: "";
    position: absolute;

    top: 0;
    left: -130%;
    width: 65%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(220,38,38,0.18),
        transparent
    );

    transform: skewX(-22deg);

    transition: all 0.85s ease;
}

#ccomment .ccomment-comment-content:hover::before {
    left: 160%;
}

/* =========================
   AVATAR (RED TECH BORDER)
========================= */
#ccomment .ccomment-avatar img {
    border-radius: 50%;
    border: 2px solid rgba(220,38,38,0.25);
    width: 42px;
    height: 42px;
}

/* =========================
   AUTHOR
========================= */
#ccomment .ccomment-author {
    font-weight: 800;
    color: #1f2937;
    font-size: 14px;
}

/* =========================
   TIME
========================= */
#ccomment .ccomment-created {
    font-size: 12px;
    color: #6b7280;
}

/* =========================
   TEXT
========================= */
#ccomment .ccomment-content > div {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 6px;
}

/* =========================
   ACTION BUTTONS (RED ACCENT UI)
========================= */
#ccomment .ccomment-quote {
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.25);
    color: #dc2626;

    border-radius: 10px;
    padding: 5px 10px;

    transition: all 0.2s ease;
}

#ccomment .ccomment-quote:hover {
    background: rgba(220,38,38,0.15);
    box-shadow: 0 0 10px rgba(220,38,38,0.2);
    transform: translateY(-1px);
}
#ccomment .ccomment-powered {
    display: none !important;
}


.contact-card {
    position: relative; /*  REQUIRED for badge */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fafafa, #ffffff);
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    gap: 12px;
    font-family: Arial, sans-serif;
}

/*  TOP RIGHT STATUS BADGE */
.viber-status-top {
    position: absolute;
    top: 10px;
    right: 14px;

    font-size: 12px;
    font-weight: 600;
    color: #00c853;

    display: flex;
    align-items: center;
}

/* green dot */
.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff4c;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 6px #00ff4c;
}

/* Avatar */

.contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;

    /*  THIS IS THE FIX */
    object-position: 102% center;  /* shift image LEFT */

    box-shadow:
        0 0 0 3px rgba(0,255,76,0.8),
        0 0 14px rgba(0,255,76,0.7),
        0 4px 10px rgba(0,0,0,0.2);
}


.contact-info {
    flex: 1;
}

.contact-name {
    font-size: 17px;
    font-weight: 700;
}

.contact-title {
    font-size: 13px;
    color: #999;
}

.contact-phone {
    font-size: 14px;
    margin: 4px 0 10px;
}

/* Buttons */
.contact-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/*  Viber chat with glow */
.btn-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #7360f2, #8b7cf6);
    color: #fff;

    padding: 10px 28px;
    border-radius: 25px;

    font-weight: 600;
    font-size: 14px;
    text-decoration: none;

    box-shadow:
        0 0 0 3px rgba(0,255,76,0.7),
        0 0 20px rgba(0,255,76,0.9);

    transition: 0.2s;
}

.btn-chat:hover {
    transform: translateY(-2px);
}

/*  Call button */
.btn-call {
    width: 42px;
    height: 42px;
    background: #7360f2;
    border-radius: 50%;

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

    text-decoration: none;
}

.btn-call img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.viber-status-top {
    background: rgba(0,255,76,0.1);
    padding: 3px 8px;
    border-radius: 12px;
}








.reference-list {
  text-align: center;
  margin: 30px auto;
  max-width: 1000px;
}

.reference-heading {
  font-size: 1.2rem;
  color: #004080;
  margin-bottom: 20px;
}

.reference-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.reference-logos a {
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-logos img {
  max-height: 90px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.reference-logos a:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}





/* =========================
   MAIN HEADER (PREMIUM NAVY -> PLAVA)
========================= */
:root {
  --bd-navy-1: #081428;
  --bd-navy-2: #0e2350;
  --bd-blue-1: #163a9e;
  --bd-blue-2: #1e49c8;
  --bd-cyan: #7fe7ff;
  --bd-cyan-soft: rgba(127,231,255,0.14);
  --bd-line: rgba(127,231,255,0.16);
}

/* TOP BAR (telefon / radno vreme) */
#sp-top-bar {
  background: linear-gradient(90deg, #141922, #1d232e 60%, #232b38) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#sp-top-bar,
#sp-top-bar a,
#sp-top-bar .sp-module {
  color: rgba(255,255,255,0.82) !important;
  font-size: 13px;
}
#sp-top-bar a:hover {
  color: var(--bd-cyan) !important;
}

/* HEADER - dubina umesto ravne plave (NEMA overflow:hidden) */
#sp-header {
  position: relative;
  overflow: visible !important;
  background:
    radial-gradient(1100px 220px at 88% -60%, rgba(56,120,255,0.38), transparent 62%),
    linear-gradient(90deg,
      var(--bd-navy-1) 0%,
      var(--bd-navy-2) 26%,
      var(--bd-blue-1) 62%,
      var(--bd-blue-2) 100%) !important;
  box-shadow: 0 12px 34px rgba(6,12,30,0.30);
  border-bottom: 1px solid var(--bd-line);
}
#sp-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bd-cyan), transparent);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}
#sp-header .row.align-items-center {
  min-height: 56px;
}

/* menu wrapper mora dozvoliti preliv da dropdown ne bude odsecen */
#sp-header #sp-menu,
#sp-header .sp-megamenu-wrapper {
  overflow: visible !important;
}

/* =========================
   LOGO
========================= */
#sp-logo img {
  max-height: 34px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

/* =========================
   MENU LINKS
========================= */
.sp-megamenu-parent {
  overflow: visible !important;
}
.sp-megamenu-parent > li {
  position: relative;
}
.sp-megamenu-parent > li > a {
  position: relative;
  height: 56px;
  padding: 0 16px !important;
  color: rgba(255,255,255,0.94) !important;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.sp-megamenu-parent > li > a:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* hover underline (ISPRAVLJEN typo: a::after) */
.sp-megamenu-parent > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 3px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bd-cyan), #c4f7ff);
  box-shadow: 0 0 10px rgba(127,231,255,0.55);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.sp-megamenu-parent > li:hover > a::after,
.sp-megamenu-parent > li.active > a::after,
.sp-megamenu-parent > li.current > a::after {
  transform: scaleX(1);
}

/* aktivna stavka - pill highlight + puna bela */
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.current > a {
  color: #ffffff !important;
}
.sp-megamenu-parent > li.active > a::before,
.sp-megamenu-parent > li.current > a::before {
  content: "";
  position: absolute;
  inset: 10px 8px;
  border-radius: 12px;
  background: var(--bd-cyan-soft);
  z-index: -1;
}

/* =========================
   PREMIUM DROPDOWN (radi: bez clip-a, jak z-index)
========================= */
.sp-megamenu-parent .sp-dropdown {
  z-index: 9999 !important;
  overflow: visible !important;
  background: linear-gradient(160deg, #0a1220, #0f1e38) !important;
  border: 1px solid rgba(127,231,255,0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 48px rgba(3,8,20,0.42) !important;
  padding: 8px 0 !important;
  min-width: 320px;
}
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: transparent !important;
  padding: 0 !important;
}

/* stavke */
#sp-header .sp-dropdown li,
#sp-header .sp-dropdown li a,
#sp-header .sp-dropdown li span {
  background: transparent !important;
}
#sp-header .sp-dropdown li > a,
#sp-header .sp-dropdown li > span {
  display: block;
  padding: 11px 18px !important;
  color: #ffffff !important;
  font-size: 13.5px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
#sp-header .sp-dropdown li:hover > a,
#sp-header .sp-dropdown li:hover > span {
  background: var(--bd-cyan-soft) !important;
  color: var(--bd-cyan) !important;
  padding-left: 22px !important;
}
#sp-header .sp-dropdown li + li {
  border-top: 1px solid rgba(255,255,255,0.05);
}
#sp-header .sp-dropdown li:first-child > a {
  border-radius: 10px 10px 0 0;
}
#sp-header .sp-dropdown li:last-child > a {
  border-radius: 0 0 10px 10px;
}

/* mega-menu naslovi kolona (ako se koriste) */
#sp-header .sp-megamenu-parent .sp-mega-group-header {
  color: var(--bd-cyan) !important;
  border-bottom: 1px solid rgba(127,231,255,0.18);
}

/* =========================
   SEARCH BOX
========================= */
#sp-header input[type="search"],
#sp-header input[type="text"] {
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.96);
  font-size: 13.5px;
  padding: 0 14px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
#sp-header input:focus {
  border-color: var(--bd-cyan);
  box-shadow: 0 0 0 3px rgba(127,231,255,0.22);
}

/* =========================
   HAMBURGER BUTTON
========================= */
#offcanvas-toggler {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
}
#offcanvas-toggler:hover {
  background: var(--bd-cyan-soft);
  border-color: rgba(127,231,255,0.4);
}
#offcanvas-toggler span {
  background-color: #fff !important;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  #sp-top-bar .container-inner {
    min-height: 26px;
  }
  #sp-header .row.align-items-center {
    min-height: 56px;
  }
  #sp-logo img {
    max-height: 28px;
  }
}

/* =========================
   OFFCANVAS (mobilni meni) - uskladjena tamna paleta
========================= */
.offcanvas-menu .offcanvas-inner {
  background: linear-gradient(160deg, #0a1220, #0f1e38) !important;
}
.offcanvas-menu .sp-offcanvas-menu > ul > li > a {
  color: rgba(255,255,255,0.92) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.offcanvas-menu .sp-offcanvas-menu a:hover {
  color: var(--bd-cyan) !important;
}

/* =========================
   FORCE DROPDOWN FIX (FINAL) - tamni dropdown, bez belih rupa
========================= */
#sp-header ul.sp-megamenu-parent > li > .sp-dropdown,
#sp-header .sp-dropdown,
#sp-header .sp-dropdown-inner {
  background: linear-gradient(160deg, #0a1220, #0f1e38) !important;
}
#sp-header .sp-dropdown li > a,
#sp-header .sp-dropdown li > span {
  color: #ffffff !important;
  background: transparent !important;
}
#sp-header .sp-dropdown li:hover > a,
#sp-header .sp-dropdown li:hover > span {
  color: var(--bd-cyan) !important;
  background: var(--bd-cyan-soft) !important;
}
#sp-header .sp-dropdown > * {
  background-image: none;
}
ul.sp-megamenu-parent li .sp-dropdown {
  background: #0a1220 !important;
}













/* ==========================================
   BEODETECT LIST ALL CATEGORIES - FULL HTML DESCRIPTION
   com_content/categories
   ========================================== */

.bd-allcats-page {
    margin-top: 6px;
}

.bd-allcats-shell {
    margin-top: 10px;
}

.bd-allcats-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bd-allcats-card {
    position: relative;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: all 0.22s ease;
    overflow: hidden;
}

.bd-allcats-card:hover {
    transform: translateY(-2px);
    border-color: #ccd8e8;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.bd-allcats-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, #2152ff, #14b8ff);
}

.bd-allcats-card-main {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 15px;
    align-items: flex-start;
}

.bd-allcats-no-image .bd-allcats-card-main {
    grid-template-columns: 1fr;
}

.bd-allcats-image {
    display: block;
    position: relative;
    z-index: 1;
    text-decoration: none;
}

.bd-allcats-image img {
    display: block;
    width: 100%;
    height: 82px;
    object-fit: contain;
    border-radius: 12px;
    background: #f4f7fb;
    border: 1px solid #eef2f7;
    padding: 5px;
}

.bd-allcats-content {
    width: 100%;
    min-width: 0;
}

.bd-allcats-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 8px;
}

.bd-allcats-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.bd-allcats-title a {
    color: #0f4cc9;
    text-decoration: none;
}

.bd-allcats-title a:hover {
    color: #0a3a9c;
    text-decoration: none;
}

.bd-allcats-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.bd-allcats-count {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 26px;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: #eef4ff !important;
    color: #2152ff !important;
    border: 1px solid #d9e6ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.bd-allcats-count span {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.88;
}

.bd-allcats-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #334155, #64748b) !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.18);
}

.bd-allcats-toggle:hover {
    background: linear-gradient(135deg, #1e293b, #475569) !important;
    transform: translateY(-1px);
}

/* FULL HTML CATEGORY DESCRIPTION AREA */
.bd-allcats-desc {
    display: block !important;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
}

/* Reset dangerous floats from Joomla editor */
.bd-allcats-desc .float-start,
.bd-allcats-desc .float-end,
.bd-allcats-desc .float-none,
.bd-allcats-desc img.float-start,
.bd-allcats-desc img.float-end,
.bd-allcats-desc img.float-none {
    float: none !important;
}

/* Paragraphs */
.bd-allcats-desc p {
    margin: 0 0 8px;
}

.bd-allcats-desc p:last-child {
    margin-bottom: 0;
}

/* Headings inside category description */
.bd-allcats-desc h1,
.bd-allcats-desc h2,
.bd-allcats-desc h3,
.bd-allcats-desc h4 {
    margin: 8px 0 6px;
    color: #102033;
    line-height: 1.25;
    font-weight: 800;
}

.bd-allcats-desc h1 {
    font-size: 22px;
}

.bd-allcats-desc h2 {
    font-size: 20px;
}

.bd-allcats-desc h3 {
    font-size: 17px;
}

.bd-allcats-desc h4 {
    font-size: 15px;
}

/* Lists inside description */
.bd-allcats-desc ul,
.bd-allcats-desc ol {
    margin: 8px 0 8px 20px;
    padding: 0;
}

.bd-allcats-desc li {
    margin-bottom: 4px;
}

/* Links inside description */
.bd-allcats-desc a {
    color: #0f4cc9;
    text-decoration: none;
    font-weight: 700;
}

.bd-allcats-desc a:hover {
    color: #0a3a9c;
    text-decoration: none;
}

/* Images inside full category description */
.bd-allcats-desc img {
    display: inline-block !important;
    max-width: 180px !important;
    width: auto !important;
    height: auto !important;
    max-height: 90px !important;
    object-fit: contain;
    border-radius: 10px;
    margin: 6px 10px 6px 0 !important;
    vertical-align: middle;
}

/* Banner-style images */
.bd-allcats-desc a img {
    display: inline-block !important;
}

/* Prevent big sections from breaking card width */
.bd-allcats-desc div,
.bd-allcats-desc section,
.bd-allcats-desc article,
.bd-allcats-desc figure {
    max-width: 100%;
}

/* If description has custom cards, keep them inside */
.bd-allcats-desc * {
    box-sizing: border-box;
}

/* Tables if any */
.bd-allcats-desc table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

/* Iframes/videos if any */
.bd-allcats-desc iframe,
.bd-allcats-desc video {
    max-width: 100%;
    border-radius: 12px;
}

/* Read more */
.bd-allcats-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 10px;
    color: #0f4cc9;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
}

.bd-allcats-readmore:hover {
    color: #0a3a9c;
    text-decoration: none;
}

.bd-allcats-readmore span {
    transition: transform 0.2s ease;
}

.bd-allcats-readmore:hover span {
    transform: translateX(3px);
}

/* Children area */
.bd-allcats-children {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #d8e0eb;
}

.bd-allcats-children .bd-allcats-list {
    gap: 10px;
}

.bd-allcats-children .bd-allcats-card {
    background: #fbfdff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
}

.bd-allcats-children .bd-allcats-card-main {
    grid-template-columns: 125px 1fr;
    gap: 12px;
}

.bd-allcats-children .bd-allcats-no-image .bd-allcats-card-main {
    grid-template-columns: 1fr;
}

.bd-allcats-children .bd-allcats-image img {
    height: 66px;
}

.bd-allcats-children .bd-allcats-title {
    font-size: 17px;
}

.bd-allcats-children .bd-allcats-desc {
    font-size: 13.5px;
}

.bd-allcats-page .com-content-categories__item-title-wrapper {
    margin: 0;
}

/* Tablet */
@media (max-width: 991.98px) {
    .bd-allcats-card-main {
        grid-template-columns: 130px 1fr;
        gap: 13px;
    }

    .bd-allcats-image img {
        height: 76px;
    }

    .bd-allcats-title {
        font-size: 20px;
    }

    .bd-allcats-desc {
        font-size: 13.8px;
    }

    .bd-allcats-desc img {
        max-width: 150px !important;
        max-height: 76px !important;
    }

    .bd-allcats-children .bd-allcats-card-main {
        grid-template-columns: 115px 1fr;
    }

    .bd-allcats-children .bd-allcats-image img {
        height: 62px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .bd-allcats-list {
        gap: 12px;
    }

    .bd-allcats-card {
        padding: 13px;
        border-radius: 15px;
    }

    .bd-allcats-card-main {
        grid-template-columns: 102px 1fr;
        gap: 11px;
    }

    .bd-allcats-no-image .bd-allcats-card-main {
        grid-template-columns: 1fr;
    }

    .bd-allcats-image img {
        height: 62px;
        border-radius: 10px;
    }

    .bd-allcats-topline {
        gap: 8px;
        margin-bottom: 6px;
    }

    .bd-allcats-title {
        font-size: 18px;
        line-height: 1.32;
    }

    .bd-allcats-count {
        min-height: 23px;
        padding: 3px 8px !important;
        font-size: 11px;
    }

    .bd-allcats-count span {
        display: none;
    }

    .bd-allcats-toggle {
        width: 30px;
        height: 30px;
        min-width: 30px;
        border-radius: 8px !important;
    }

    .bd-allcats-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    .bd-allcats-desc img {
        max-width: 115px !important;
        max-height: 58px !important;
        margin: 5px 7px 5px 0 !important;
    }

    .bd-allcats-desc h1 {
        font-size: 19px;
    }

    .bd-allcats-desc h2 {
        font-size: 18px;
    }

    .bd-allcats-desc h3 {
        font-size: 16px;
    }

    .bd-allcats-readmore {
        margin-top: 8px;
        font-size: 13px;
    }

    .bd-allcats-children .bd-allcats-card-main {
        grid-template-columns: 92px 1fr;
    }

    .bd-allcats-children .bd-allcats-no-image .bd-allcats-card-main {
        grid-template-columns: 1fr;
    }

    .bd-allcats-children .bd-allcats-image img {
        height: 56px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .bd-allcats-card-main {
        grid-template-columns: 86px 1fr;
        gap: 10px;
    }

    .bd-allcats-no-image .bd-allcats-card-main {
        grid-template-columns: 1fr;
    }

    .bd-allcats-image img {
        height: 52px;
        padding: 3px;
    }

    .bd-allcats-title {
        font-size: 16px;
    }

    .bd-allcats-desc {
        font-size: 12.8px;
    }

    .bd-allcats-desc img {
        max-width: 95px !important;
        max-height: 48px !important;
    }

    .bd-allcats-readmore {
        font-size: 12.5px;
    }

    .bd-allcats-children .bd-allcats-card-main {
        grid-template-columns: 80px 1fr;
    }

    .bd-allcats-children .bd-allcats-no-image .bd-allcats-card-main {
        grid-template-columns: 1fr;
    }

    .bd-allcats-children .bd-allcats-image img {
        height: 48px;
    }
}







/* ==========================================================================
   BEODETECT - Digi Showcase - SMOOTH ZOOM (bez trzanja)
   --------------------------------------------------------------------------
   Ide u: Helix Ultimate -> Custom CSS
   Bazirano na tacnoj strukturi:
     .digi_showcase > .row > .showcase-item > .item-content
        > p.image > a > img
        > h6.title
   ASCII-only. Posle izmene: Clear Cache + Ctrl+F5.
   ========================================================================== */

/* --- 1. OMOTAC SLIKE: KLIP (kljucno za gladak zoom) ----------------------- */
.digi_showcase .showcase-item .item-content .image {
  margin: 0;
  padding: 0;
  overflow: hidden;          /* slika se zumira UNUTAR okvira, ne iskace */
  border-radius: 6px 6px 0 0;   /* manje zaobljeni uglovi */
  position: relative;
  display: block;
}

.digi_showcase .showcase-item .item-content .image a {
  display: block;
  overflow: hidden;
  line-height: 0;            /* uklanja mikro-pomeraj od inline razmaka */
}

/* --- 2. SLIKA: GPU ubrzanje + fiksna visina (nema "reflow" trzaja) -------- */
.digi_showcase .showcase-item .item-content .image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;       /* sve slike iste visine -> uredan grid */
  object-fit: cover;
  object-position: center;

  /* Gladak, spor zoom sa prirodnim usporavanjem */
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);

  /* GPU ubrzanje -> uklanja "jerking" */
  transform: scale(1.001);   /* startni sloj na GPU-u */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
}

/* --- 3. HOVER ZOOM -------------------------------------------------------- */
.digi_showcase .showcase-item:hover .item-content .image img {
  transform: scale(1.08);
}

/* --- 4. KARTICA: blag lift (opciono, uparen sa istim easing-om) ----------- */
.digi_showcase .showcase-item {
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.4s ease;
}
.digi_showcase .showcase-item:hover {
  transform: translateY(-5px);
}

/* --- 5. POSTOVANJE korisnika koji gase animacije -------------------------- */
@media (prefers-reduced-motion: reduce) {
  .digi_showcase .showcase-item,
  .digi_showcase .showcase-item .item-content .image img {
    transition: none;
  }
  .digi_showcase .showcase-item:hover .item-content .image img {
    transform: none;
  }
}




/* ==========================================================================
   BEODETECT - Helix Ultimate OFF-CANVAS (side) meni - vizuelni redizajn
   --------------------------------------------------------------------------
   Ide u: Helix Ultimate -> Custom CSS
   Cilj:
     - lepsi izgled bocnog menija
     - VELIKA klik-zona za strelicu (lakse otvaranje podmenija)
     - jasnija razlika izmedju glavne stavke i podstavki
   ASCII-only. Posle izmene: Clear Cache + Ctrl+F5.
   ========================================================================== */

/* --- 1. OSNOVNI RAZMAK STAVKI --------------------------------------------- */
.offcanvas-menu .menu > li,
.offcanvas-menu .menu-child > li {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.offcanvas-menu .menu > li > a,
.offcanvas-menu .menu-child > li > a {
  display: block;
  padding: 14px 54px 14px 8px;   /* desni padding pravi mesta za strelicu */
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s ease, padding-left 0.2s ease, color 0.2s ease;
  border-radius: 8px;
}

/* Hover / focus na glavnu stavku */
.offcanvas-menu .menu > li > a:hover,
.offcanvas-menu .menu > li > a:focus {
  background: rgba(255, 255, 255, 0.06);
  padding-left: 14px;            /* blagi "slide" udesno na hover */
}

/* --- 2. STRELICA (TOGGLER) - VELIKA KLIK ZONA ----------------------------- */
/* Pokrivamo vise mogucih klasa strelice u razlicitim Helix verzijama */
.offcanvas-menu .menu-toggler,
.offcanvas-menu .menu-child-toggler,
.offcanvas-menu li > .dropdown-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;                   /* siroka, laka za pogoditi */
  height: 50px;                  /* puna visina reda */
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.25s ease;
}

.offcanvas-menu .menu-toggler:hover,
.offcanvas-menu .menu-child-toggler:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* Sama ikonica strelice */
.offcanvas-menu .menu-toggler i,
.offcanvas-menu .menu-toggler span,
.offcanvas-menu .menu-child-toggler i {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.25s ease;
}

/* Rotacija strelice kada je podmeni OTVOREN (Helix dodaje .active/.open) */
.offcanvas-menu li.active > .menu-toggler i,
.offcanvas-menu li.open > .menu-toggler i,
.offcanvas-menu li.active > .menu-toggler span,
.offcanvas-menu li.open > .menu-child-toggler i {
  transform: rotate(180deg);
}

/* --- 3. PODMENI (SUBITEMS) - jasno uvucen i "kliktabilan" ---------------- */
.offcanvas-menu .menu-child {
  margin: 4px 0 8px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
}

.offcanvas-menu .menu-child > li > a {
  font-size: 14.5px;
  font-weight: 500;
  padding: 11px 14px 11px 14px;
  opacity: 0.92;
}

.offcanvas-menu .menu-child > li > a:hover {
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
  padding-left: 20px;
}

/* --- 4. AKTIVNA STAVKA - leva traka za orijentaciju ---------------------- */
.offcanvas-menu .menu > li.active > a,
.offcanvas-menu .menu > li.current > a {
  box-shadow: inset 3px 0 0 0 currentColor;
}

/* --- 5. RAZMAK KOD KONTAKT / IKONA na dnu (kozmetika) -------------------- */
.offcanvas-menu .menu {
  margin-bottom: 10px;
}

/* --- 6. RESPONSIVE fino stelovanje --------------------------------------- */
@media (max-width: 400px) {
  .offcanvas-menu .menu > li > a { font-size: 15px; padding: 13px 50px 13px 8px; }
  .offcanvas-menu .menu-toggler,
  .offcanvas-menu .menu-child-toggler { width: 48px; }
}

/* ============================================================
   BEODETECT - COM_FINDER SEARCH RESULTS (FLOAT v4)
   ------------------------------------------------------------
   ZAMENJUJE prethodni "COM_FINDER SEARCH RESULTS (ROBUST v3)" blok.
   ZASTO v4: kartice rade, ali slika ide GORE umesto LEVO (flex se lomi
   jer markup ima unutrasnji wrapper). Resenje: slika FLOAT:left ->
   tekst se sam obavije desno, radi bez obzira na strukturu.
   ASCII only. Scope: samo body.com_finder (ne dira ostatak sajta).
   ============================================================ */

/* ---- 0) scope + skrol ---- */
body.com_finder #sp-component{ overflow:visible !important; max-width:100%; }
body.com_finder #sp-component,
body.com_finder #sp-component *{ box-sizing:border-box; }

/* ---- 1) lista: bez bullet-a, razmak ---- */
body.com_finder #sp-component ul,
body.com_finder #sp-component ol,
body.com_finder #sp-component dl,
body.com_finder #sp-component .search-results,
body.com_finder #sp-component #search-result-list{
  list-style:none !important; margin:0 !important; padding:0 !important;
  display:block !important; max-width:100%;
}

/* ---- 2) KARTICA (svaki rezultat) ---- */
body.com_finder #sp-component .search-results > li,
body.com_finder #sp-component .result__item,
body.com_finder #sp-component li.result,
body.com_finder #sp-component #search-result-list > li{
  position:relative !important;
  display:block !important;         /* NE flex - koristimo float za sliku */
  background:#fff !important;
  border:1px solid #e5eaf1 !important;
  border-left:4px solid #2152ff !important;
  border-radius:16px !important;
  padding:14px !important;
  margin:0 0 14px 0 !important;
  box-shadow:0 6px 18px rgba(15,23,42,.05) !important;
  list-style:none !important;
  max-width:100% !important;
  overflow:hidden !important;        /* clearfix za float */
}
body.com_finder #sp-component .search-results > li:hover,
body.com_finder #sp-component .result__item:hover,
body.com_finder #sp-component li.result:hover{
  border-color:#cfdae8 !important; box-shadow:0 12px 28px rgba(15,23,42,.08) !important;
}

/* ---- 3) KLJUC: SLIKA float levo, tekst se obavije desno ----
   Hvatamo i <img> i <a> wrapper oko slike. */
body.com_finder #sp-component .search-results > li img,
body.com_finder #sp-component .result__item img,
body.com_finder #sp-component li.result img,
body.com_finder #sp-component #search-result-list > li img{
  float:left !important;
  width:230px !important;
  max-width:230px !important;
  height:150px !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:12px !important;
  background:#f1f5f9 !important;
  border:1px solid #e8eef7 !important;
  margin:0 16px 8px 0 !important;
  padding:0 !important;
  display:block !important;
}
/* ako je slika obavijena u <a>, floataj i taj <a> */
body.com_finder #sp-component .search-results > li > a:first-child,
body.com_finder #sp-component .result__item > a:first-child,
body.com_finder #sp-component li.result > a:first-child{
  float:left !important;
  width:230px !important;
  margin:0 16px 8px 0 !important;
  line-height:0;
  border-radius:12px; overflow:hidden;
}
body.com_finder #sp-component .search-results > li > a:first-child img,
body.com_finder #sp-component .result__item > a:first-child img,
body.com_finder #sp-component li.result > a:first-child img{
  float:none !important; width:100% !important; max-width:100% !important; margin:0 !important;
}

/* ---- 4) naslov ---- */
body.com_finder #sp-component .result__title,
body.com_finder #sp-component .result-title,
body.com_finder #sp-component dt.result-title{
  margin:0 0 4px !important; font-size:17px !important; line-height:1.38 !important; font-weight:800 !important;
}
body.com_finder #sp-component .result__title a,
body.com_finder #sp-component .result-title a,
body.com_finder #sp-component dt.result-title a{
  color:#0f4cc9 !important; text-decoration:none !important;
}
body.com_finder #sp-component .result__title a:hover,
body.com_finder #sp-component .result-title a:hover{ color:#0a3a9c !important; }

/* ---- 5) opis ---- */
body.com_finder #sp-component .result__body,
body.com_finder #sp-component .result-text,
body.com_finder #sp-component dd.result-text{
  margin:6px 0 0 !important; color:#5b6779 !important; font-size:14px !important; line-height:1.55 !important;
}

/* ---- 6) putanja/url red ---- */
body.com_finder #sp-component .result__path,
body.com_finder #sp-component .result-url,
body.com_finder #sp-component .result__taxonomy,
body.com_finder #sp-component dd.result-url{
  font-size:12px !important; color:#93a2b3 !important; margin-top:6px !important; word-break:break-word;
}

/* ---- 7) highlight ---- */
body.com_finder #sp-component .highlight,
body.com_finder #sp-component .badge.term{
  background:rgba(30,73,200,.12) !important; color:#163a9e !important;
  border-radius:4px; padding:0 3px; font-weight:700;
}

/* ---- 8) forma pretrage ---- */
body.com_finder #sp-component input[type="text"],
body.com_finder #sp-component input.form-control{
  height:44px; border:1px solid #d7e0ea; border-radius:10px; padding:0 14px; font-size:15px; max-width:100%;
}
body.com_finder #sp-component input:focus{ outline:none; border-color:#1e49c8; box-shadow:0 0 0 3px rgba(30,73,200,.15); }
body.com_finder #sp-component .btn img{
  float:none !important; width:auto !important; height:auto !important; max-width:18px !important;
  margin:0 !important; border:0 !important; background:transparent !important; display:inline !important;
}

/* ---- 9) "objasnjeno" red + paginacija ---- */
body.com_finder #sp-component #search-query-explained{
  background:#eef3fb; border:1px solid #d7e3f6; border-radius:10px;
  padding:10px 14px; margin:0 0 16px; font-size:14px; color:#274b8f; clear:both;
}
body.com_finder #sp-component .pagination{
  justify-content:center; display:flex; gap:6px; margin-top:22px; flex-wrap:wrap; clear:both;
}
body.com_finder #sp-component .pagination a,
body.com_finder #sp-component .pagination span{
  border:1px solid #d7e0ea; border-radius:10px; padding:7px 12px; color:#163a9e; text-decoration:none;
}
body.com_finder #sp-component .pagination .active span{ background:#163a9e; color:#fff; border-color:#163a9e; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:767.98px){
  body.com_finder #sp-component .search-results > li img,
  body.com_finder #sp-component .result__item img,
  body.com_finder #sp-component li.result img,
  body.com_finder #sp-component .search-results > li > a:first-child,
  body.com_finder #sp-component .result__item > a:first-child,
  body.com_finder #sp-component li.result > a:first-child{
    width:130px !important; max-width:130px !important; height:95px !important;
    margin:0 12px 6px 0 !important;
  }
  body.com_finder #sp-component .result__title,
  body.com_finder #sp-component .result-title{ font-size:15px !important; }
}
@media (max-width:480px){
  /* na malom telefonu: slika gore preko cele sirine (citljivije) */
  body.com_finder #sp-component .search-results > li img,
  body.com_finder #sp-component .result__item img,
  body.com_finder #sp-component li.result img,
  body.com_finder #sp-component .search-results > li > a:first-child,
  body.com_finder #sp-component .result__item > a:first-child,
  body.com_finder #sp-component li.result > a:first-child{
    float:none !important; width:100% !important; max-width:100% !important; height:170px !important;
    margin:0 0 10px 0 !important;
  }
  body.com_finder #sp-component .search-results > li,
  body.com_finder #sp-component .result__item,
  body.com_finder #sp-component li.result{ padding:10px !important; }
}




/* ==========================================
   BEODETECT CATEGORY ARTICLE LIST - PREMIUM REPRESENTATIVE IMAGE CARDS
   com_content/category
   For:
   /templates/shaper_helixultimate/html/com_content/category/
   default.php
   default_articles.php
   default_children.php
   ========================================== */

.bd-category-page {
    margin-top: 6px;
}

/* CATEGORY TITLE */
.bd-category-title {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    color: #102033;
}

/* CATEGORY DESCRIPTION ABOVE ARTICLES */
.bd-category-page > .category-desc {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-left: 4px solid #14b8ff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
}

.bd-category-page > .category-desc img {
    max-width: 180px;
    height: auto;
    border-radius: 10px;
    margin: 4px 10px 6px 0;
}

/* MAIN ARTICLE LIST */
.bd-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

/* MAIN CARD */
.bd-card {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 230px 1fr !important;
    gap: 16px !important;
    align-items: center !important;

    background: #ffffff !important;
    border: 1px solid #e5eaf1 !important;
    border-radius: 18px !important;
    padding: 14px !important;

    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045) !important;
    transition: all 0.22s ease !important;
    overflow: hidden !important;
}

/* CARD HOVER */
.bd-card:hover {
    transform: translateY(-2px);
    border-color: #cfdae8 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

/* LEFT ACCENT LINE */
.bd-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, #2152ff 0%, #14b8ff 100%);
}

/* IMAGE COLUMN */
.bd-image {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}

.bd-image a {
    display: block !important;
    width: 100% !important;
    height: 145px !important;
    text-decoration: none !important;
    border-radius: 13px !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    border: 1px solid #e8eef7 !important;
}

/* ARTICLE IMAGE - REPRESENTATIVE AUTO FIT */
.bd-image img {
    display: block !important;
    width: 100% !important;
    height: 145px !important;
    max-width: none !important;

    /* Important: representative crop */
    object-fit: cover !important;
    object-position: center center !important;

    border-radius: 12px !important;
    background: #f1f5f9 !important;
    padding: 0 !important;
    border: 0 !important;

    transition: transform 0.25s ease, filter 0.25s ease !important;
}

/* Hover image zoom - small and controlled */
.bd-card:hover .bd-image img {
    transform: scale(1.035);
    filter: contrast(1.02) saturate(1.03);
}

/* CONTENT COLUMN */
.bd-content {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* META BADGE */
.bd-meta {
    order: 1;
    margin: 0 0 6px !important;
}

.bd-badge {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    min-height: 24px !important;

    padding: 3px 10px !important;
    background: #eef4ff !important;
    color: #2152ff !important;
    border: 1px solid #d9e6ff !important;
    border-radius: 999px !important;

    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* ARTICLE TITLE */
.bd-title {
    order: 2;
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.38 !important;
    font-weight: 800 !important;
}

.bd-title a {
    color: #0f4cc9 !important;
    text-decoration: none !important;
}

.bd-title a:hover {
    color: #0a3a9c !important;
    text-decoration: none !important;
}

/* ARTICLE DESCRIPTION */
.bd-desc {
    order: 3;
    margin-top: 7px !important;

    color: #5b6779 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* HIDE HITS COUNTER */
.bd-side,
.bd-views {
    display: none !important;
}

/* SUBCATEGORY WRAPPER */
.bd-subcategories-wrapper {
    margin-top: 28px;
}

.bd-block-title {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #102033;
}

.bd-subcategory-block {
    margin-bottom: 24px;
}

.bd-subcategory-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
}

.bd-subcategory-title a {
    color: #0f4cc9;
    text-decoration: none;
}

.bd-subcategory-title a:hover {
    color: #0a3a9c;
    text-decoration: none;
}

/* SUBCATEGORY CARDS */
.bd-card-sub {
    grid-template-columns: 200px 1fr !important;
    padding: 12px !important;
    gap: 14px !important;
    border-radius: 16px !important;
}

.bd-card-sub .bd-image a {
    height: 125px !important;
}

.bd-card-sub .bd-image img {
    height: 125px !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.bd-title-sub {
    font-size: 16px !important;
    line-height: 1.36 !important;
}

/* PAGINATION */
.bd-pagination {
    margin-top: 24px;
    text-align: center;
}

.bd-pagination .pagination {
    justify-content: center;
}

.bd-pagination .page-link,
.bd-pagination a,
.bd-pagination span {
    border-radius: 10px !important;
}

/* TABLET */
@media (max-width: 991.98px) {
    .bd-card {
        grid-template-columns: 200px 1fr !important;
        gap: 14px !important;
        padding: 12px !important;
    }

    .bd-image a,
    .bd-image img {
        height: 125px !important;
    }

    .bd-title {
        font-size: 16px !important;
    }

    .bd-desc {
        font-size: 13.5px !important;
        -webkit-line-clamp: 3 !important;
    }

    .bd-card-sub {
        grid-template-columns: 175px 1fr !important;
    }

    .bd-card-sub .bd-image a,
    .bd-card-sub .bd-image img {
        height: 110px !important;
    }
}

/* MOBILE */
@media (max-width: 767.98px) {
    .bd-category-title {
        font-size: 22px;
    }

    .bd-card,
    .bd-card-sub {
        grid-template-columns: 132px 1fr !important;
        gap: 11px !important;
        padding: 12px !important;
        border-radius: 15px !important;
    }

    .bd-image a,
    .bd-image img,
    .bd-card-sub .bd-image a,
    .bd-card-sub .bd-image img {
        height: 92px !important;
        border-radius: 10px !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .bd-title,
    .bd-title-sub {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    .bd-desc {
        font-size: 13px !important;
        line-height: 1.5 !important;
        -webkit-line-clamp: 2 !important;
        margin-top: 6px !important;
    }

    .bd-badge {
        font-size: 11px !important;
        min-height: 22px !important;
        padding: 3px 8px !important;
    }

    .bd-block-title {
        font-size: 24px;
    }

    .bd-subcategory-title {
        font-size: 19px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .bd-card,
    .bd-card-sub {
        grid-template-columns: 112px 1fr !important;
        gap: 10px !important;
        padding: 10px !important;
    }

    .bd-image a,
    .bd-image img,
    .bd-card-sub .bd-image a,
    .bd-card-sub .bd-image img {
        height: 82px !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .bd-title,
    .bd-title-sub {
        font-size: 14px !important;
    }

    .bd-desc {
        display: none !important;
    }

    .bd-meta {
        margin-bottom: 5px !important;
    }
}




/* FIX CATEGORY DESCRIPTION CARDS */
.bd-allcats-desc .card,
.bd-allcats-desc .service-card,
.bd-allcats-desc .feature-card {
    width: 100% !important;
    max-width: 100% !important;
}

.bd-allcats-desc img {
    max-width: 100% !important;
    height: auto !important;
}

.bd-allcats-desc .row,
.bd-allcats-desc .cards-row {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.bd-allcats-desc .col,
.bd-allcats-desc .card-item {
    flex: 1 1 300px !important;
    min-width: 280px !important;
}


/* CATEGORY DESCRIPTION CARD FIX */

.bd-allcats-desc {
    overflow: visible !important;
}

.bd-allcats-desc a {
    display: inline-block;
}

/* sve unutrasnje kartice */
.bd-allcats-desc .card,
.bd-allcats-desc .service-card,
.bd-allcats-desc .feature-card,
.bd-allcats-desc .measurement-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    padding: 10px !important;
    margin-bottom: 10px !important;

    border: 1px solid #dfe8f3 !important;
    border-left: 4px solid #2152ff !important;
    border-radius: 12px !important;

    background: #fff !important;
}

/* slike */
.bd-allcats-desc .card img,
.bd-allcats-desc .service-card img,
.bd-allcats-desc .feature-card img,
.bd-allcats-desc .measurement-card img {
    width: 90px !important;
    height: 90px !important;

    min-width: 90px !important;

    object-fit: cover !important;
    border-radius: 10px !important;

    margin: 0 !important;
}

/* tekst */
.bd-allcats-desc h3,
.bd-allcats-desc h4 {
    margin: 0 0 5px !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
}

.bd-allcats-desc p {
    margin: 0 !important;
    font-size: 14px !important;
}

/* mobile */
@media (max-width:768px){

    .bd-allcats-desc .card,
    .bd-allcats-desc .service-card,
    .bd-allcats-desc .feature-card,
    .bd-allcats-desc .measurement-card{

        flex-direction: column !important;
        text-align: center;
    }

    .bd-allcats-desc img{
        width:100% !important;
        max-width:250px !important;
        height:auto !important;
    }
}


