/* =====================================================
   Župnija Kranj – site-specific overrides
   Only rules NOT in theme.min.css (from live site)
   ===================================================== */

/* ── Smooth scroll for hash links ── */
html {
  scroll-behavior: smooth;
}

/* ── NAVBAR site-specific ── */
.navbar {
  min-height: 5px;
  position: absolute;
  width: 100%;
}
.nav > li > a {
  padding: 18px 18px 0px 18px;
}

/* .navbar::after with skewY */
.navbar::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  background: inherit;
  z-index: -1;
  height: 100px;
  bottom: 0;
  transform-origin: left bottom;
  transform: skewY(1deg);
  display: block;
}

/* .navbar-header::after with skewY */
.navbar-header::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  background: inherit;
  z-index: -1;
  height: 100px;
  bottom: 0;
  transform-origin: left bottom;
  transform: skewY(1deg);
  display: block;
}

/* Another .navbar-toggle override */
.navbar-toggle { margin-top: 12px; margin-bottom: 12px; padding-right: 0px; }

/* Desktop first menu item icon (house) */
@media (min-width: 767px) {
  .navbar-nav > li:first-child > a::before {
    font-family: "simple-line-icons";
    font-size: 20px;
    line-height: 1;
    color: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e069";
    left: -10px;
    top: 16px;
    position: absolute;
  }
}

/* Desktop dropdown hover */
@media (min-width: 767px) {
  .navbar .dropdown-menu {
    box-shadow: none;
    padding: 0;
    margin: 0;
    top: 35px;
    display: block;
    visibility: hidden;
    transition-duration: 0.4s;
    transition-property: all;
    opacity: 0;
    overflow: visible;
    z-index: 9990;
    list-style: none;
    pointer-events: none;
    border-radius: 0;
    margin-left: 20px;
    padding-top: 20px;
  }
  .navbar .dropdown-menu::before {
    content: "";
    width: 100%;
    height: 7px;
    top: -6px;
    position: absolute;
    left: 0;
  }
  .navbar .dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
  }
  .navbar li.dropdown:hover > .dropdown-menu {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
  }
  .navbar li.dropdown:hover > .dropdown-menu li.dropdown-submenu { position: relative; }
  .navbar li.dropdown:hover > .dropdown-menu li.dropdown-submenu::before {
    position: absolute; right: 10px; top: 50%; margin-top: -10px;
    content: "\f105"; font-family: fontawesome;
  }
  .navbar li.dropdown:hover > .dropdown-menu li.dropdown-submenu > .dropdown-menu {
    padding: 10px 20px; top: 0; left: 100%;
  }
}


/* ── SLIDER: Embla-specific (full viewport height) ── */

.home-slick {
  height: 100vh;
  overflow: hidden;
}
.home-slick .image {
  width: 100%;
  height: 100vh;
}
@media (max-width: 767px) {
  .home-slick, .home-slick .image { max-height: 300px; }
}
@media (max-width: 480px) {
  .home-slick, .home-slick .image { max-height: 300px; }
}


.home-slick .avtorske {
  bottom: 0px;
}
@media (max-width: 767px) {
  .home-slick .avtorske { bottom: 28px; }
}

/* ── CONTENT SECTIONS (left-right) ── */

@media (min-width: 992px) {
  .common-height {
    display: flex;
    flex-wrap: nowrap;
  }
  .common-height > .col-md-6 {
    flex: 1 1 50%;
  }
  .common-height > .clearfix {
    display: none;
  }
}
.left-right-box .dl-horizontal dt { width: 200px; font-weight: 300; }
.left-right-box .dl-horizontal dd { margin-left: 200px; }

.gallery .gallery-title {
  position: absolute;
  top: 30px;
  left: 30px;
  font-size: 30px;
  color: #fff;
  text-shadow: 0 1px 1px #000;
  font-weight: 500;
}
@media (max-width: 767px) {
  .gallery .gallery-title { top: 15px; left: 15px; font-size: 18px; }
}
.gallery .gallery-img img { width: 100%; display: block; }


/* ── BACKGROUND-BOX-PADDING ── */

.background-box-padding { padding: 50px; }
@media (max-width: 767px) {
  .background-box-padding { padding: 30px 0px; }
}


/* ── VZOREC-BG-SIV ── */

.vzorec-bg-siv {
  background-color: #efefef;
  background-image: URL("/img/vzorec-bg.png");
  background-repeat: no-repeat;
  background-position: center center;
}
.vzorec-bg-siv::before {
  content: '';
  width: 100%;
  height: 65px;
  z-index: 0;
  top: 0;
  transform-origin: right top;
  transform: skewY(1deg);
  display: block;
  margin-top: -40px;
  background-color: #efefef !important;
  background-image: none;
}
.vzorec-bg-siv::after {
  content: '';
  width: 100%;
  height: 65px;
  z-index: 2;
  bottom: 0;
  transform-origin: right top;
  transform: skewY(1deg);
  display: block;
  margin-bottom: -70px;
  background-color: #efefef !important;
  background-image: none;
}


/* ── #WRAPPER ── */

#wrapper {
  background-color: #fff;
  position: relative;
  z-index: 1;
}


/* ── MENU TRIGGER TEXT ── */

.menu-trigger-text {
  position: absolute;
  right: 30px;
  font-size: 18px;
  top: 0;
}


/* ── MOBILE (max-width: 767px) ── */

@media (max-width: 767px) {
  #wrapper { position: relative; }
  body.navbar-fixed, body.navbar-fixed.with-topbar { padding-top: 0; }
  body.navbar-transparent .navbar { z-index: auto; color: #313842; }
  body.navbar-dark .navbar .dropdown-menu { color: #fff; }
  .navbar-nav { margin: 0; margin-top: 20px; }
  .navbar { position: static !important; min-height: 0; }
  .nav .open > a, .nav .open > a:hover, .nav .open > a:focus {
    background-color: #fff; color: #222 !important;
  }
  .navbar-collapse {
    display: block; visibility: visible;
    position: fixed; top: 0; left: 0px; width: 260px; height: 100%;
    margin: 0; overflow-y: hidden; overflow-x: hidden; max-height: 100%;
    background: #262626; border-top: none; color: #fff;
  }
  .navbar-collapse::before {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0;
    width: 20%; background: rgba(0,0,0,.3);
  }
  .navbar-collapse .dropdown-menu {
    background-color: #262626; margin: 0 -15px;
    display: block; position: relative; float: none;
    max-height: 0; overflow: hidden;
  }
  .navbar-collapse .dropdown-menu a { color: #fff; font-size: 16px; white-space: normal; }
  .navbar-collapse .nav > li > a { padding: 10px 10px 10px 10px; color: #fff; }
  .navbar-collapse .nav-image, .navbar-collapse .nav-bottom { display: none; }
  #wrapper .navbar-header {
    position: relative; z-index: 9999; background-color: #fff;
  }
}

@media (max-width: 480px) {
  .navbar-brand { max-width: 166px; }
  .navbar-brand img { max-width: 100%; padding-top: 20px; }
}

@media (max-width: 991px) {
  .navbar-brand { max-width: 220px; }
  .navbar-brand img { max-width: 100%; padding-top: 13px; }
}


/* ── MOBILE SIDEBAR (React MobileNav component) ── */

.mobile-sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 9998;
}
.mobile-sidebar {
  position: fixed; top: 0; left: 0;
  width: 260px; height: 100%;
  background: #262626; color: #fff;
  z-index: 9999; overflow-y: auto; padding-top: 20px;
}
.mobile-menu { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu__header { display: flex; align-items: center; }
.mobile-menu__link {
  flex: 1; padding: 12px 15px;
  color: #fff; text-decoration: none; font-size: 14px;
}
.mobile-menu__link:hover { color: #cb922a; }
.mobile-menu__toggle {
  background: none; border: none; color: #fff;
  padding: 12px 15px; cursor: pointer;
}
.mobile-menu__sub { list-style: none; padding: 0 0 10px 15px; margin: 0; }
.mobile-menu__sub a {
  display: block; padding: 6px 15px;
  color: rgba(255,255,255,.8); text-decoration: none; font-size: 13px;
}
.mobile-menu__sub a:hover { color: #cb922a; }


/* ── SLICK DOTS BASE (needed for Embla dots styling) ── */

.slick-dots {
  position: absolute;
  list-style: none;
  display: block;
  padding: 0;
  margin: 0;
  width: 100%;
}
.slick-dots li {
  position: relative;
  display: inline-block;
  height: 20px;
  width: 20px;
  margin: 0 3px;
  padding: 0;
  cursor: pointer;
}
.slick-dots li button {
  border: 0;
  background: transparent;
  display: block;
  height: 20px;
  width: 20px;
  outline: none;
  line-height: 0px;
  font-size: 0px;
  color: transparent;
  padding: 5px;
  cursor: pointer;
  position: relative;
}
.slick-dots li button::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "\2022";
  width: 20px;
  height: 20px;
  font-size: 60px;
  line-height: 20px;
  text-align: center;
  color: #fff;
  opacity: 1;
  -webkit-font-smoothing: antialiased;
}
.slick-dots li.slick-active button::before {
  color: #cb922a;
  opacity: 1;
}


/* ── URADNE URE: gallery before text on mobile ── */
@media (max-width: 767px) {
  .uradne-ure-row {
    display: flex;
    flex-direction: column;
  }
  .uradne-ure-gallery {
    order: -1;
  }
}

/* ── RANDOM GALLERY image height ── */
.random-gallery-img {
  height: 800px;
}
@media (max-width: 767px) {
  .random-gallery-img {
    height: auto;
  }
}

/* ── FOOTER SKEW ON SUBPAGES ── */
.body-vsebina #footer::before {
  content: "";
  width: 100%;
  height: 50px;
  z-index: 0;
  top: 0;
  transform-origin: right top;
  transform: skewY(-1deg);
  display: block;
  margin-top: -95px;
  background-color: #cb922a !important;
  background-image: none;
}


/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&family=Open+Sans:wght@300;400;600;700&display=swap');
