/*
Theme Name:     Ostro child
Theme URI:      n/a
Template:       kadence
Author:         Pro Author
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* FONTS */
@font-face {
  font-family: "Merriweather";
  font-display: swap;
  src: url("/wp-content/themes/ostro-child/fonts/Merriweather-VariableFont.ttf")
    format("truetype");
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  font-display: swap;
  src: url("/wp-content/themes/ostro-child/fonts/Inter-VariableFont.ttf")
    format("truetype");
  font-style: normal;
}

/* Globalno besedilo */
body {
  font-family: "Inter", sans-serif;
}

/* Naslovi */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Merriweather", serif !important;
  line-height: 1.15;
}

.archive.category {
  #primary.content-area {
    margin: 0 !important;
  }
  .podpri-nas {
    display: none !important;
  }
}

.post-date-block {
  .post-date-suffix a {
    text-decoration: none;
    color: var(--global-palette4);
  }
}

.razkrinkavanje {
  .wp-block-post-author__content {
    display: flex;
    align-items: center;
    gap: 6px;
    .wp-block-post-author__byline {
      margin-bottom: 0;
      font-size: 0.9rem;
      text-transform: uppercase;
      color: var(--global-palette1);
    }
    .wp-block-post-author__name {
      white-space: nowrap;
      text-transform: uppercase;
      font-size: 0.9rem;
      color: var(--global-palette1);
    }
  }
  .wpm-post-title {
    text-align: center;
    margin: 20px 0;
  }
  figcaption {
    color: black !important;
    font-size: 0.9rem !important;
    text-transform: inherit !important;
  }
  .post-date-block .post-date-suffix {
    text-transform: uppercase;
  }
  @media (min-width: 576px) {
    .odmik-left {
      figure {
        left: -3vw !important;
        position: relative;
      }
    }
  }
  @media (max-width: 576px) {
    .odmik-right {
      figure {
        right: -3vw !important;
        position: relative;
      }
    }
  }
}

.single-post .content-container.site-container {
  max-width: 1100px !important;
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}

.post-date-block {
  text-align: center;
}

.ostro-accordion span.kt-blocks-accordion-title-wrap {
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}

.ostro-accordion {
  margin-top: 30px;
  margin-bottom: 30px;
  border-top: 3px solid #5cc9c6;
  border-right: 3px solid #5cc9c6;
  border-bottom: 3px solid #5cc9c6;
  border-left: 3px solid #5cc9c6;
}

@media (max-width: 576px) {
  .ostro-accordion .kt-blocks-accordion-header {
    padding-left: 0px !important;
  }

  .ostro-accordion span.kt-blocks-accordion-title {
    font-size: 1.4rem;
    line-height: 1.3em;
  }
  .ostro-accordion .kt-blocks-accordion-title-wrap {
    padding-right: 35px !important;
  }
}

.ostro-accordion .kt-blocks-accordion-icon-trigger {
  height: 30px;
  width: 30px;
  min-width: 30px;
}

.ostro-accordion
  .kt-accodion-icon-style-arrow
  .kt-blocks-accordion-icon-trigger.kt-blocks-accordion-icon-trigger:before {
  left: -6px;
}
.ostro-accordion
  .kt-accodion-icon-style-arrow
  .kt-blocks-accordion-icon-trigger:after,
.ostro-accordion
  .kt-accodion-icon-style-arrow
  .kt-blocks-accordion-icon-trigger:before,
.ostro-accordion
  .kt-accodion-icon-style-arrowcircle
  .kt-blocks-accordion-icon-trigger:after,
.ostro-accordion
  .kt-accodion-icon-style-arrowcircle
  .kt-blocks-accordion-icon-trigger:before {
  height: 2px;
  top: 15px;
  width: 20px !important;
}

.wpm-category-page {
  margin-bottom: 2rem;
}

.wpm-category-page__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 2rem 0 !important;
}

.wpm-category-page__title {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 3.7rem);
  color: #001a4d;
  line-height: 1.15;
  margin-bottom: 0px !important;
  font-family: inherit !important;
}

.wpm-post-search {
  width: 100%;
  max-width: 100%;
}

.wpm-post-search .wpm-category-page__search-wrap {
  flex: 1 1 auto;
  max-width: 100%;
}

.wpm-category-page__search-wrap {
  position: relative;
  flex: 0 1 380px;
  max-width: 100%;
  min-width: 220px;
}

.wpm-category-page__search .wpm-category-page__search-input {
  border: none;
  border-radius: 0px !important;
}

.wpm-category-page__search {
  display: flex;
  align-items: stretch;
  border: 1px solid #c4c4c4;
  background: var(--global-palette7);
  border-radius: 2px;
  padding: 5px;
}

.wpm-category-page__search input.wpm-category-page__search-input {
  background: var(--global-palette7);
}

.wpm-category-page__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 10px 12px;
  background: transparent;
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  color: #001a4d;
  box-sizing: border-box;
}

.wpm-category-page__search-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px #001a4d33;
}

.wpm-category-page__search .wpm-category-page__search-input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.wpm-category-page__search-divider {
  width: 1px;
  background: #c4c4c4;
  align-self: stretch;
  flex-shrink: 0;
}

.wpm-category-page__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: #001a4d;
  cursor: default;
  background: var(--global-palette7);
  border-left: 3px solid #001a4d;
  border-radius: 0px !important;
}

.wpm-category-page__search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: #fff;
  border: 1px solid #c4c4c4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  max-height: 280px;
  overflow-y: auto;
}

.wpm-category-page__search-hit {
  display: block;
  padding: 10px 12px;
  color: #001a4d;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  font-size: 0.9375rem;
  font-family: Inter, sans-serif;
}

.wpm-category-page__search-hit:last-child {
  border-bottom: 0;
}

.wpm-category-page__search-hit:hover,
.wpm-category-page__search-hit:focus {
  background: #f5f5f5;
}

.wpm-category-page__search-empty {
  padding: 12px;
  color: #666;
  font-size: 0.875rem;
  font-family: Inter, sans-serif;
}

.wpm-search-page .wpm-category-page__top .wpm-post-search {
  width: auto;
  flex: 0 1 380px;
  max-width: 100%;
}

.wpm-category-page__rule {
  height: 4px;
  background: var(--global-palette2);
  width: 100%;
}

.wpm-category-page__cards {
  margin-top: 3.25rem;
  border-bottom: 2px solid #001a4d;
}

.wpm-category-page
  .wpm-category-page__cards.wpm-category-page__cards--has-all-link {
  border-bottom: 0;
}

.wpm-category-page .wpm-editorial-card.no-badge .wpm-editorial-content {
  padding: 1.125rem 1.625rem 2.5rem;
}

.wpm-category-page .wpm-editorial-date {
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #1a1a1a;
}

.wpm-category-page .wpm-editorial-grid.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.wpm-category-page
  .wpm-editorial-grid.columns-2
  .wpm-editorial-card:nth-child(2n) {
  border-right: 0;
}

@media (max-width: 1024px) {
  .wpm-category-page .wpm-editorial-grid.columns-2 {
    grid-template-columns: 1fr;
  }

  .wpm-category-page .wpm-editorial-grid.columns-2 .wpm-editorial-card {
    border-right: 0;
  }
}

.wpm-category-page .columns-2 .wpm-editorial-content h2,
.wpm-category-page .columns-3 .wpm-editorial-content h2 {
  margin-bottom: 0;
  font-weight: 700;
}

.wpm-category-page .wpm-editorial-content h2 + p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.45;
  max-height: calc(1.45em * 5);
}

@media (max-width: 768px) {
  .wpm-category-page .wpm-editorial-card.no-badge .wpm-editorial-content {
    padding: 1.125rem 0.625rem 1.25rem !important;
  }
}

.wpm-category-page__empty {
  margin: 1rem 0 0;
  font-family: Inter, sans-serif;
  color: #4a5568;
}

/* Kill legacy duplicate mobile grid if old PHP HTML is still cached */
.wpm-category-page__list--mobile {
  display: none !important;
}

.wpm-category-page__pagination {
  margin-top: 2rem;
}

.wpm-category-page__pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: Inter, sans-serif;
}

.wpm-category-page__pagination .page-numbers li {
  margin: 0;
  padding: 0;
}

.wpm-category-page__pagination .page-numbers a,
.wpm-category-page__pagination .page-numbers span {
  display: inline-block;
  min-width: 2.25rem;
  padding: 0.4rem 0.55rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid #c4c4c4;
  border-radius: 2px;
  color: #001a4d;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.wpm-category-page__pagination .page-numbers a:hover,
.wpm-category-page__pagination .page-numbers a:focus {
  border-color: #001a4d;
  background: #f5f5f5;
}

.wpm-category-page__pagination .page-numbers .current {
  border-color: #e30613;
  background: #e30613;
  color: #fff;
  font-weight: 600;
}

.wpm-category-page__pagination .page-numbers .dots {
  border-color: transparent;
  min-width: auto;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.wpm-category-page__load-more-wrap {
  display: flex;
  justify-content: flex-end;
  padding-right: 10%;
  margin: 0 auto;
  width: fit-content;
  margin-top: 10px;
}

.wpm-category-page__load-more {
  background: var(--global-palette-highlight);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: inherit;
  text-decoration: none;
  color: #fff !important;
  width: fit-content;
  margin: 20px 0 0 auto;
  padding: 10px 30px;
  border: none;
  cursor: pointer;
  font: inherit;
}

.wpm-category-page__load-more:disabled {
  opacity: 0.6;
  cursor: wait;
}

.wpm-category-page__load-more img {
  width: 14px;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.wpm-category-page__load-more:hover img,
.wpm-category-page__load-more:focus img {
  transform: translateX(5px);
}

@media (max-width: 576px) {
  .wpm-category-page__load-more-wrap {
    justify-content: flex-center;
    padding-right: 0;
  }

  .wpm-category-page__load-more {
    margin-left: 0;
  }
}

.wpm-button {
  display: inline-block;
}

.wpm-button__link {
  font-size: 20px !important;
  display: inline-block;
  border-radius: 2px;
  line-height: 1.35;
  text-align: center;
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;
}

.wpm-button__link:hover {
  opacity: 0.92;
}

.donacije-block .donacije-section {
  > .kt-inside-inner-col {
    .row-layout-split {
      height: 100% !important;
      > .kt-row-column-wrap {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        height: 100% !important;
      }
    }
  }
}

.hvala-text-image-appended {
  position: relative;
  overflow: visible;
}

.hvala-text-image-appended::after {
  content: "";

  position: absolute;

  right: -7px;
  bottom: -43%;

  width: 174px;
  height: 171px;

  transform: translateY(-12px);

  background-image: url("/wp-content/uploads/2026/05/dog.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;

  filter: drop-shadow(2px 0 0 white) drop-shadow(-2px 0 0 white)
    drop-shadow(0 2px 0 white) drop-shadow(0 -2px 0 white);
}

@media (max-width: 1024px) {
  .hvala-text-image-appended::after {
    display: none;
  }
}
.blue-background-arrowed {
  position: relative;
  background: #d9edf5;
  min-height: 120px;
  overflow: visible;
}
.blue-background-arrowed::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -79px !important;

  width: 100%;
  height: 80px;

  background: #dceff6;

  clip-path: polygon(
    0 0,
    8.33% 100%,
    16.66% 0,
    25% 100%,
    33.33% 0,
    41.66% 100%,
    50% 0,
    58.33% 100%,
    66.66% 0,
    75% 100%,
    83.33% 0,
    91.66% 100%,
    100% 0
  );
}

.icons-row figure {
  max-width: 23% !important;

  @media (width <= 576px) {
    max-width: 47% !important;
  }
}

figure:has(> img) img {
  transition: transform 0.2s ease;
}

figure:has(> img):hover img {
  transform: scale(1.03);
}

.do-not-scale figure:has(> img):hover img,
.do-not-scale figure img {
  transform: none;
}

figcaption.wp-element-caption {
  text-transform: none !important;
}
.wp-block-kadence-advancedheading.kt-adv-heading4168_19c70a-06,
.wp-block-kadence-advancedheading.kt-adv-heading4168_19c70a-06[data-kb-block="kb-adv-heading4168_19c70a-06"] {
  line-height: 1.2;
}

.nav-links {
  flex-direction: column-reverse !important;
  gap: 50px !important;
  .nav-previous {
    margin-bottom: 0px !important;
  }
}

.post-navigation {
  width: 100% !important;
  .kt-inside-inner-col {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 50px !important;
    width: 100% !important;
  }
  .post-navigation-link-previous {
    margin-bottom: 0px !important;
  }
}
