/**
 * processin.mk — фиксни / проектски стилови (header, мени, копчиња, итн.)
 * Овој фајл НЕ го брише админот при „Custom CSS“.
 * Админ пишува во: css/style.integration.css
 */

/* Fallback кога админ Custom CSS е празен: стари димензии/ширина */
@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-xl {
        max-width: 1240px;
    }
}

/* Само footer да е поширок од главниот container */
@media (min-width: 1200px) {
    .footer .container,
    .footer-1 .container {
        max-width: 1410px;
    }
}

h1.color-brand-1 { font-size: 40px; line-height: 50px; }
h2.color-brand-1 { font-size: 35px; line-height: 40px; }
h4.color-brand-1 { font-size: 20px; line-height: 30px; }

/* Title-line глобално: brand blue + модерен underline (наместо „линија пред“) */
.title-line,
span.title-line,
div.title-line {
    color: #3b82f6 !important;
    position: relative;
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
}

/* Гаси стари pseudo елементи ако темата става линија/декорација пред текстот */
.title-line::before,
span.title-line::before,
div.title-line::before {
    content: none !important;
    display: none !important;
}

/* Популарен 2026 стил: краток accent underline под title */
.title-line::after,
span.title-line::after,
div.title-line::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

/* Горна лента: hover на линкови и валута/јазик — иста сина како бренд */
.header-top .header-wrap .top-bar .header-top-left a:hover,
.header-top .header-wrap .top-bar .header-top-right a:hover,
.header-top .header-wrap .top-bar .header-top-right .btn.dropdown-toggle:hover {
    color: #3b82f6 !important;
}

/* Валута / јазик: бело мени, сива на hover (темата често става primary/teal на .dropdown-item) */
.header-top .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.18) !important;
}
.header-top .dropdown-menu .dropdown-item {
    color: #1e293b !important;
    background-color: transparent !important;
}
.header-top .dropdown-menu .dropdown-item:hover,
.header-top .dropdown-menu .dropdown-item:focus {
    background-color: transparent !important;
    color: #3b82f6 !important;
}
.header-top .dropdown-menu .dropdown-item:active {
    background-color: transparent !important;
    color: #2563eb !important;
}

/* Останатото „старо“ theme tweake е во style.integration.css (админ слој). */

/* Главен header: лево (лого + мени), десно (акции) — не вметнувај .header-right во .header-left */
.header .main-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem 1rem;
  width: 100%;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
.header .main-header .header-left {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  gap: 0.5rem 0.75rem;
}
.header .main-header .header-left .header-logo { max-width: 200px !important; flex-shrink: 0 !important; }
.header .main-header .header-left .header-logo a img { min-height: 52px !important; max-height: 56px !important; max-width: 220px !important; width: auto !important; object-fit: contain; }
.header .main-header .header-right {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.35rem 0.5rem;
  padding: 0 !important;
  width: auto !important;
  text-align: right !important;
}
/* претходно: .header-left .header-right — иста визуелна за пребарување/јазик */
.header .main-header .header-right .icon-list {
  color: #071920 !important;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  line-height: 24px;
  padding: 0 10px;
  position: relative;
}
.header .main-header .header-right .icon-list:hover {
  color: #3b82f6 !important;
}
.header .main-header .header-right .icon-list .arrow-down {
  background: url(../imgs/template/icons/angle-down.svg) no-repeat right top 3px;
  padding-right: 22px;
}
/* theme style.css: float мени — nav со overflow за една линија на тесни xl екрани */
.header .main-header .header-left .header-nav {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}
/* overflow на nav го сече dropdown (ul.sub-menu). Мора visible. */
.header .main-header .header-left .header-nav .nav-main-menu {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}
.header .main-header .header-left .header-nav ul.main-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: max-content !important;
  min-width: min-content !important;
}
.header .main-header .header-left .header-nav ul.main-menu > li {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  float: none !important;
  white-space: nowrap !important;
}
@media (min-width: 1200px) {
  /* Pill САМО на првото ниво; пониска специфичност од темата за padding 28px */
  .header .main-header .header-left .header-nav ul.main-menu > li {
    padding-right: 3px !important;
    padding-left: 3px !important;
  }
  .header .main-header .header-left .header-nav ul.main-menu > li > a {
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em !important;
    font-variant-numeric: tabular-nums;
    padding: 0.38rem 0.72rem !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    background-color: rgba(241, 245, 249, 0.65) !important;
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset !important;
    display: inline-block !important;
  }
  /* Поширок xl: малку поголем текст */
  @media (min-width: 1400px) {
    .header .main-header .header-left .header-nav ul.main-menu > li > a {
      font-size: 13px !important;
      padding: 0.42rem 0.85rem !important;
    }
  }
  .header .main-header .header-left .header-nav ul.main-menu > li.has-children > a {
    padding-right: 1.55rem !important;
    position: relative !important;
  }
  /* Поубава стрелка (solid chevron) + боја преку mask за hover во #3b82f6 */
  .header .main-header .header-left .header-nav ul.main-menu > li.has-children > a::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    right: 0.42rem !important;
    width: 15px !important;
    height: 15px !important;
    margin-top: -7.5px !important;
    background-image: none !important;
    background-color: #64748b !important;
    -webkit-mask-image: url('../images/nav-chevron-down.svg');
    mask-image: url('../images/nav-chevron-down.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 1 !important;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }
  .header .main-header .header-left .header-nav ul.main-menu > li.has-children > a:hover::after {
    background-color: #3b82f6 !important;
  }
  .header .main-header .header-left .header-nav ul.main-menu > li.has-children:hover > a::after {
    transform: translateY(1px);
  }
  @media (prefers-reduced-motion: reduce) {
    .header .main-header .header-left .header-nav ul.main-menu > li.has-children:hover > a::after {
      transform: none;
    }
  }
  .header .main-header .header-left .header-nav ul.main-menu > li > a:hover {
    background-color: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #3b82f6 !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.85) inset,
      0 0 0 1px rgba(59, 130, 246, 0.12);
  }

  /* Мал јаз под главната ставка — dropdown не е залепен за pill */
  .header .main-header .header-left .header-nav ul.main-menu > li.has-children > ul.sub-menu,
  .header .main-header .header-left .header-nav ul.main-menu > li.has-children > ul {
    margin-top: 0.65rem !important;
  }
  .header .main-header .header-left .header-nav ul.main-menu > li.has-children > ul.sub-menu::before,
  .header .main-header .header-left .header-nav ul.main-menu > li.has-children > ul::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -0.65rem;
    height: 0.65rem;
  }
}
.header .main-header .header-left .header-nav ul.main-menu > li > a { color: #0f172a !important; }
/* hover за pill е во @media (min-width: 1200px); под xl темата си важи: */
@media (max-width: 1199.98px) {
  .header .main-menu > li > a:hover { color: #3b82f6 !important; }
}

/* Workspace: цврсто бело — темата сакаше цијан/жолтенкаст hover */
.header .main-header .header-right .btn.btn-brand-1,
.header .main-header .header-right .btn.btn-brand-1:hover,
.header .main-header .header-right .btn.btn-brand-1:focus,
.header .main-header .header-right .btn.btn-brand-1:active {
  color: #ffffff !important;
}

/* Header „Workspace“ и слични .hover-up: кревање + сина сенка (над теминскиот .hover-up) */
.header .btn.btn-brand-1.hover-up {
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.header .btn.btn-brand-1.hover-up:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 32px -12px rgba(59, 130, 246, 0.5) !important;
}

.header .btn.btn-brand-1.hover-up:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.55);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .header .btn.btn-brand-1.hover-up:hover {
        transform: none !important;
    }
}

/* Лого во header: лесна ротација на hover (~20–25°) + мазен „spring“ easing */
.header .main-header .header-left .header-logo a img {
    transform-origin: 50% 50%;
    transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.32, 1);
    will-change: transform;
}

.header .main-header .header-left .header-logo a:hover img,
.header .main-header .header-left .header-logo a:focus-visible img {
    transform: rotate(22deg) scale(1.04);
}

.header .main-header .header-left .header-logo a:active img {
    transform: rotate(22deg) scale(0.98);
    transition-duration: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
    .header .main-header .header-left .header-logo a img,
    .header .main-header .header-left .header-logo a:hover img,
    .header .main-header .header-left .header-logo a:focus-visible img,
    .header .main-header .header-left .header-logo a:active img {
        transform: none;
        transition: none;
    }
}

/* Сите бренд hover-up копчиња: бел текст секогаш + blue hover/focus */
.btn.btn-brand-1.hover-up,
.btn.btn-brand-1.hover-up:visited {
    border-radius: 15px !important;
    color: #ffffff !important;
}

.btn.btn-brand-1.hover-up:hover,
.btn.btn-brand-1.hover-up:focus-visible,
.btn.btn-brand-1.hover-up:active {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* Banner-10 counters (% / x / + / бројки) да останат brand blue */
.banner-10 .box-banner-home10 .box-count-number h3.color-brand-1,
.banner-10 .box-banner-home10 .box-count-number h3.color-brand-1 .count,
.banner-10 .box-banner-home10 .box-count-number h3.color-brand-1 span {
    color: #3b82f6 !important;
}

/* Banner-10 hero: помал јаз меѓу наслов и опис + малку пониско h1 */
.banner-10 .box-banner-home10 .col-lg-6.mb-30 > h1.color-brand-1 {
    margin-top: 14px !important;
    margin-bottom: 20px !important;
}

.banner-10 .box-banner-home10 .col-lg-6.mb-30 > p.font-md.color-grey-500 {
    margin-bottom: 28px !important;
}

/* Banner-10 hero: линиска мрежа (инженерски grid) + лесен blur + меки ивици горе/страни/долу — без сино „сиење“ десно */
.banner-10 .box-banner-home10 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.banner-10 .box-banner-home10::before {
    content: '';
    position: absolute;
    inset: -6px;
    z-index: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent 43px,
            rgba(59, 130, 246, 0.085) 43px,
            rgba(59, 130, 246, 0.085) 44px
        ),
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 43px,
            rgba(100, 116, 139, 0.075) 43px,
            rgba(100, 116, 139, 0.075) 44px
        );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.82) 35%,
        rgba(0, 0, 0, 0.45) 68%,
        rgba(0, 0, 0, 0.12) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.82) 35%,
        rgba(0, 0, 0, 0.45) 68%,
        rgba(0, 0, 0, 0.12) 100%
    );
    filter: blur(0.7px);
    transform: translateZ(0);
}

/* Меки „завеси“ од горе, лево, десно и долу — ја рамуваат мрежата, без силни бои */
.banner-10 .box-banner-home10::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 24%),
        linear-gradient(0deg, rgba(248, 250, 252, 0.65) 0%, rgba(248, 250, 252, 0) 32%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 16%),
        linear-gradient(270deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 16%);
}

.banner-10 .box-banner-home10 > .container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .banner-10 .box-banner-home10::before {
        filter: none;
    }
}

/* About/intro текст блокови (mt-50 секции): 16px */
.ck-content section.mt-50 .color-grey-500.mb-15,
.ck-content section.mt-50 p.color-grey-500.font-sm {
    font-size: 16px !important;
    line-height: 24px !important;
}

/* Секција „лого партнери“ под hero: мек сино-бел градиент */
.ck-content .box-radius-bottom {
    background: linear-gradient(180deg, #ebf3ff 0%, #ffffff 100%) !important;
}

/* Swiper лого лента: без преклопување (сликите остануваат во ширина на слајд) */
.ck-content .box-radius-bottom .swiper-group-8 .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.ck-content .box-radius-bottom .swiper-group-8 .swiper-slide > a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}
.ck-content .box-radius-bottom .swiper-group-8 .swiper-slide img {
    max-width: 100% !important;
    max-height: 72px !important;
    width: auto;
    height: auto;
    object-fit: contain;
}