body.banjica-template-active .site-content {
  margin-top: 0;
}

.banjica-hero-shell {
  --banjica-hero-height: 680px;
  --banjica-hero-height-tablet: var(--banjica-hero-height);
  --banjica-hero-height-mobile: var(--banjica-hero-height-tablet);
  --banjica-current-hero-height: var(--banjica-hero-height);
  --banjica-overlay: rgba(8, 38, 59, 0.55);
  position: relative;
  min-height: var(--banjica-current-hero-height);
  color: #fff;
  background-image:
    linear-gradient(180deg, var(--banjica-overlay) 0%, rgba(8, 38, 59, 0.25) 40%, rgba(8, 38, 59, 0.6) 100%),
    var(--banjica-hero-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.banjica-hero-shell a,
.banjica-hero-shell .menu-link,
body.banjica-template-active .main-header-menu > .menu-item > .menu-link,
body.banjica-template-active .ast-builder-menu-1 .menu-item > .menu-link,
body.banjica-template-active .ast-mobile-menu-trigger-minimal,
body.banjica-template-active .menu-toggle-main-header,
body.banjica-template-active .ast-header-break-point .main-header-menu,
body.banjica-template-active .site-title a,
body.banjica-template-active .ast-builder-layout-element,
body.banjica-template-active .ast-icon {
  color: #fff;
}

body.banjica-template-active .ast-primary-header-bar,
body.banjica-template-active .main-header-bar,
body.banjica-template-active .ast-desktop .main-header-menu.submenu-with-border .sub-menu,
body.banjica-template-active .site-header-section {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.banjica-template-active .site-primary-header-wrap {
  padding-top: 8px;
  padding-bottom: 8px;
}

body.banjica-template-active .ast-builder-grid-row {
  border-bottom: 0;
}

body.banjica-template-active .main-header-menu > .menu-item > .menu-link,
body.banjica-template-active .ast-builder-menu-1 .menu-item > .menu-link {
  font-weight: 600;
  position: relative;
  transition: color 0.25s ease;
}

body.banjica-template-active .main-header-menu > .menu-item > .menu-link::after,
body.banjica-template-active .ast-builder-menu-1 .menu-item > .menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.35em;
  height: 2px;
  background: #3da3e6;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

body.banjica-template-active .main-header-menu > .menu-item > .menu-link:hover::after,
body.banjica-template-active .main-header-menu > .menu-item > .menu-link:focus-visible::after,
body.banjica-template-active .main-header-menu > .menu-item.current-menu-item > .menu-link::after,
body.banjica-template-active .main-header-menu > .menu-item.current-menu-ancestor > .menu-link::after,
body.banjica-template-active .ast-builder-menu-1 .menu-item > .menu-link:hover::after,
body.banjica-template-active .ast-builder-menu-1 .menu-item > .menu-link:focus-visible::after,
body.banjica-template-active .ast-builder-menu-1 .menu-item.current-menu-item > .menu-link::after,
body.banjica-template-active .ast-builder-menu-1 .menu-item.current-menu-ancestor > .menu-link::after {
  transform: scaleX(1);
}

body.banjica-template-active .main-header-menu .sub-menu,
body.banjica-template-active .ast-builder-menu-1 .sub-menu {
  background: #fff;
}

body.banjica-template-active .main-header-menu .sub-menu .menu-link,
body.banjica-template-active .ast-builder-menu-1 .sub-menu .menu-link,
body.banjica-template-active .main-header-menu .sub-menu .menu-item > a,
body.banjica-template-active .ast-builder-menu-1 .sub-menu .menu-item > a {
  color: #06327a;
}

body.banjica-template-active .custom-logo-link img {
  max-height: 78px;
}

.banjica-topbar {
  position: relative;
  z-index: 2;
}

.banjica-topbar__inner,
.banjica-hero__inner {
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
}

.banjica-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.banjica-topbar__left,
.banjica-topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.banjica-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.banjica-meta-item__icon,
.banjica-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.banjica-meta-item__icon svg,
.banjica-social-link svg {
  width: 14px;
  height: 14px;
  display: block;
}

.banjica-meta-item__text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.banjica-social-link {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.banjica-social-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.banjica-hero {
  display: flex;
  align-items: center;
  min-height: calc(var(--banjica-current-hero-height) - 160px);
  padding: 70px 0 110px;
  position: relative;
  z-index: 1;
}

.banjica-hero__inner {
  text-align: center;
}

.banjica-hero--left .banjica-hero__inner {
  text-align: left;
}

.banjica-hero__kicker {
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.95;
  margin-bottom: 18px;
}

.banjica-hero__title {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.02;
  font-size: clamp(34px, 6vw, 84px);
  text-wrap: balance;
}

.banjica-hero__title-light {
  font-weight: 300;
}

.single-post.banjica-template-active .banjica-hero__title.banjica-hero__title--long {
  font-size: clamp(30px, 4.8vw, 62px);
  line-height: 1.08;
}

.single-post.banjica-template-active .banjica-hero__title.banjica-hero__title--very-long {
  font-size: clamp(24px, 4.2vw, 50px);
  line-height: 1.1;
}

.banjica-content-area {
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (max-width: 921px) {
  .banjica-hero-shell {
    --banjica-current-hero-height: var(--banjica-hero-height-tablet);
  }

  .banjica-topbar {
    display: none;
  }

  body.banjica-template-active .ast-mobile-header-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    max-height: 100vh;
    overflow: auto;
    background: rgba(8, 38, 59, 0.97);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
    display: block !important;
  }

  body.banjica-template-active.banjica-mobile-menu-open .ast-mobile-header-content {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  body.banjica-template-active .ast-mobile-header-content .main-header-bar-navigation {
    background: transparent;
    margin: 0;
  }

  body.banjica-template-active .ast-mobile-header-content .main-header-menu {
    padding: 6px 14px 14px;
  }

  body.banjica-template-active .ast-mobile-header-content .menu-item-has-children > .ast-menu-toggle,
  body.banjica-template-active .ast-mobile-header-content .menu-item-has-children > .ast-menu-toggle .ast-icon,
  body.banjica-template-active .ast-mobile-header-content .menu-item-has-children > .ast-menu-toggle svg,
  body.banjica-template-active .ast-mobile-header-content .main-header-menu .ast-icon {
    color: #06327a;
    fill: currentColor;
  }

  .banjica-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .banjica-topbar__right {
    width: 100%;
    justify-content: flex-start;
  }

  .banjica-hero {
    min-height: calc(var(--banjica-current-hero-height) - 140px);
    padding: 56px 0 90px;
  }

  body.banjica-template-active .site-primary-header-wrap {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .banjica-mobile-merged-bar {
    padding: 12px 14px 10px;
    border-bottom: 1px solid #000;
    background: rgba(8, 38, 59, 0.95);
    color: #fff;
  }

  .banjica-mobile-merged-bar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
  }

  .banjica-mobile-merged-bar .banjica-topbar__inner {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    gap: 10px;
  }

  .banjica-mobile-merged-bar .banjica-topbar__left,
  .banjica-mobile-merged-bar .banjica-topbar__right {
    gap: 10px;
  }

  .banjica-mobile-merged-bar .banjica-meta-item {
    font-size: 12px;
  }

  .banjica-mobile-merged-bar__logo {
    margin-bottom: 0;
  }

  .banjica-mobile-merged-bar__logo .custom-logo-link {
    display: inline-flex;
  }

  .banjica-mobile-merged-bar__logo .custom-logo-link img {
    max-height: 48px;
    width: auto;
  }

  .banjica-mobile-merged-bar__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.95;
  }

  .banjica-mobile-merged-bar__close:hover {
    opacity: 1;
  }
}

@media (max-width: 544px) {
  .banjica-hero-shell {
    --banjica-current-hero-height: var(--banjica-hero-height-mobile);
  }

  .banjica-topbar__inner,
  .banjica-hero__inner {
    width: min(100% - 24px, 1240px);
  }

  .banjica-meta-item {
    font-size: 12px;
  }

  .banjica-topbar__left {
    gap: 12px;
  }

  .banjica-hero {
    padding: 40px 0 72px;
  }
}

.banjica-post-content-area .site-main,
.banjica-news-archive-area .site-main {
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
}

.single-post.banjica-template-active #content > .ast-container {
  max-width: 1240px;
  width: 100%;
}

.single-post.banjica-template-active .banjica-hero-shell {
  --banjica-hero-height-tablet: 400px;
  --banjica-hero-height-mobile: 220px;
}

.banjica-post-single__inner {
  background: #fff;
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(6, 30, 53, 0.12);
  padding: clamp(22px, 3vw, 42px);
  margin-top: -200px;
  position: relative;
  z-index: 3;
}

.banjica-post-single__content > *:first-child {
  margin-top: 0;
}

.banjica-post-single__content > *:last-child {
  margin-bottom: 0;
}

.banjica-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 66%) minmax(0, 34%);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.banjica-news-layout__main {
  display: grid;
  gap: 20px;
}

.banjica-news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 34%);
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(6, 30, 53, 0.1);
  padding: 18px;
  margin: 0;
}

.banjica-news-card__category {
  color: #9aa6b2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  margin-bottom: 8px;
}

.banjica-news-card__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
}

.banjica-news-card__title a,
.banjica-news-latest__title a {
  color: #0c2e47;
}

.banjica-news-card__date,
.banjica-news-latest__meta time {
  color: #687686;
  font-size: 13px;
}

.banjica-news-card__media a,
.banjica-news-card__media img {
  display: block;
}

.banjica-news-card__media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.banjica-news-layout__sidebar {
  display: grid;
  gap: 20px;
}

.banjica-news-sidebar-box {
  background: #fff;
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(6, 30, 53, 0.1);
  padding: 18px;
}

.banjica-news-sidebar-box__title {
  margin: 0 0 12px;
  font-size: 18px;
  color: #0c2e47;
}

.banjica-news-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.banjica-news-search-form__input {
  height: 44px;
  border: 1px solid #d3dde7;
  border-radius: 10px;
  padding: 0 14px;
  color: #0c2e47;
  background: #fff;
}

.banjica-news-search-form__input:focus {
  border-color: #0c2e47;
  outline: 0;
}

.banjica-news-search-form__submit {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #0c2e47;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
}

.banjica-news-search-form__icon {
  width: 15px;
  height: 15px;
  aspect-ratio: 1 / 1;
  flex: 0 0 15px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: block;
  position: relative;
}

.banjica-news-search-form__icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  right: -5px;
  bottom: -2px;
  transform: rotate(45deg);
}

.banjica-news-search-form__submit:hover {
  background: #123d5d;
}

.banjica-news-latest {
  display: grid;
  gap: 12px;
}

.banjica-news-latest__image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.banjica-news-latest__title {
  margin: 0 0 8px;
  line-height: 1.2;
}

.banjica-news-layout .page-numbers {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.banjica-news-layout .page-numbers li {
  margin: 0;
}

.banjica-news-layout .page-numbers a,
.banjica-news-layout .page-numbers span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #d3dde7;
  color: #0c2e47;
  font-weight: 600;
}

.banjica-news-layout .page-numbers .current {
  background: #0c2e47;
  color: #fff;
  border-color: #0c2e47;
}

@media (max-width: 921px) {
  .banjica-post-content-area .site-main,
  .banjica-news-archive-area .site-main {
    width: min(100% - 24px, 1240px);
  }

  .banjica-news-layout {
    grid-template-columns: 1fr;
  }

  .banjica-news-card {
    grid-template-columns: 1fr;
  }

  .banjica-post-single__inner {
    margin-top: -150px;
  }
}

@media (max-width: 544px) {
  .banjica-news-layout__sidebar {
    order: -1;
  }

  .banjica-post-single__inner {
    margin-top: -40px;
  }
}
