:where(.wp-site-blocks) > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.button-with-icon img {
    vertical-align: middle;
    margin-left: 15px;
}
.wp-block-buttons:not(.custom-full-link__bottom-right) .wp-block-button__link:hover {
    color: #40583A !important;
    box-shadow: 0 0 0 2px #6DA003;
    background-color: #E2E0E1 !important;
    transition: all 0.2s;
}
.wp-block-buttons.custom-full-link__bottom-right .wp-block-button__link:hover {
    box-shadow: 0 0 0 2px #FAFAFA;
    transition: all 0.2s;
}
.wp-block-cb-carousel-v2 .cb-button-next, .wp-block-cb-carousel-v2 .cb-button-prev {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fafafa;
    background: #6DA003;
}
.wp-block-cb-carousel-v2 .cb-button-next {
    right: -45px;
}
.wp-block-cb-carousel-v2 .cb-button-prev {
    left: -45px;
}
.wp-block-cb-carousel-v2 .swiper-button-next:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='23' viewBox='0 0 24 23' fill='none'%3E%3Cpath d='M1.5 9.5459C0.671573 9.5459 -2.54946e-10 10.2175 0 11.0459C2.54946e-10 11.8743 0.671573 12.5459 1.5 12.5459L1.5 11.0459L1.5 9.5459ZM22.9559 12.1066C23.5417 11.5208 23.5417 10.571 22.9559 9.98524L13.41 0.439297C12.8242 -0.14649 11.8744 -0.14649 11.2886 0.439297C10.7028 1.02508 10.7028 1.97483 11.2886 2.56062L19.7739 11.0459L11.2886 19.5312C10.7028 20.117 10.7028 21.0667 11.2886 21.6525C11.8744 22.2383 12.8242 22.2383 13.41 21.6525L22.9559 12.1066ZM1.5 11.0459L1.5 12.5459L21.8952 12.5459L21.8952 11.0459L21.8952 9.5459L1.5 9.5459L1.5 11.0459Z' fill='%23FAFAFA'/%3E%3C/svg%3E");
    margin-bottom: -3px;
}
.wp-block-cb-carousel-v2 .swiper-button-prev:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='23' viewBox='0 0 24 23' fill='none'%3E%3Cg transform='translate(24 0) scale(-1 1)'%3E%3Cpath d='M1.5 9.5459C0.671573 9.5459 -2.54946e-10 10.2175 0 11.0459C2.54946e-10 11.8743 0.671573 12.5459 1.5 12.5459L1.5 11.0459L1.5 9.5459ZM22.9559 12.1066C23.5417 11.5208 23.5417 10.571 22.9559 9.98524L13.41 0.439297C12.8242 -0.14649 11.8744 -0.14649 11.2886 0.439297C10.7028 1.02508 10.7028 1.97483 11.2886 2.56062L19.7739 11.0459L11.2886 19.5312C10.7028 20.117 10.7028 21.0667 11.2886 21.6525C11.8744 22.2383 12.8242 22.2383 13.41 21.6525L22.9559 12.1066ZM1.5 11.0459L1.5 12.5459L21.8952 12.5459L21.8952 11.0459L21.8952 9.5459L1.5 9.5459L1.5 11.0459Z' fill='%23FAFAFA'/%3E%3C/g%3E%3C/svg%3E");
    margin-bottom: -3px;
}
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.custom-full-link__bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    align-items: end !important;
    justify-content: end !important;
    margin: 0;
}
.custom-full-link__bottom-right .wp-block-button {
    margin: 0 20px 20px 0;
}
.negativ-bottom-35 {
    margin-bottom: -35px !important;
}
.wp-block-social-link a {
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}
.wp-block-social-links .wp-social-link svg {
    width: 30px;
    height: 30px;
}
.vertical-align-center .swiper .swiper-wrapper {
    align-items: center;
}

.timeline-circle {
  width: 50px;
  height: 50px;
  position: relative;
  overflow: visible;
  padding: 0;
}

.timeline-circle span {
    border-radius: 50%;
}

/* Categories list → horizontal tabs */
.wp-block-categories-list.wp-block-categories {
  --cat-tab-text: #1a1a1a;
  --cat-tab-muted: #6da003;
  --cat-tab-accent: #6da003;
  --cat-tab-border: #40583a;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: start;
  gap: 8px;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--cat-tab-border);
}

/* Hide ugly scrollbar on WebKit, keep scroll */
.wp-block-categories-list.wp-block-categories::-webkit-scrollbar {
  height: 4px;
}

.wp-block-categories-list.wp-block-categories::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.wp-block-categories-list .cat-item {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.wp-block-categories-list .cat-item a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: #40583a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.wp-block-categories-list .cat-item a:hover {
  color: #FAFAFA;
  background-color: var(--cat-tab-muted);
}

.wp-block-categories-list .cat-item a:focus-visible {
  outline: 2px solid var(--cat-tab-accent);
  outline-offset: 2px;
}

/* Active category page (WordPress adds current-cat) */
.wp-block-categories-list .cat-item.current-cat a {
  color: #fff;
  background-color: var(--cat-tab-accent);
}

/* Latest Posts cards — match top row */
.wp-block-latest-posts.posts-cards_custom {
  --pc-title-size: 1.5rem;
  --pc-title-color: #fff;
  --pc-overlay: linear-gradient(
    135deg,
    rgba(64, 88, 58, 0.9) 0%,
    rgba(64, 88, 58, 0.5) 55%
  );
  --pc-btn-size: 40px;
  --pc-btn-img: url("https://novectra.eu/wp-content/uploads/2026/08/Group-104.png");

  list-style: none;
}

.wp-block-latest-posts.posts-cards_custom.tw-heading-size-large {
  --pc-title-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
}

.wp-block-latest-posts.posts-cards_custom > li {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  background: #40583a;
}

.wp-block-latest-posts.posts-cards_custom .wp-block-latest-posts__featured-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 0 !important;
}

.wp-block-latest-posts.posts-cards_custom .wp-block-latest-posts__featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.wp-block-latest-posts.posts-cards_custom .wp-block-latest-posts__featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay */
.wp-block-latest-posts.posts-cards_custom .wp-block-latest-posts__featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pc-overlay);
  pointer-events: none;
  z-index: 1;
}

/* Title — top left */
.wp-block-latest-posts.posts-cards_custom .wp-block-latest-posts__post-title {
  font-size: 32px;
  position: absolute;
  top: 25px;
  left: 25px;
  z-index: 2;
  color: var(--pc-title-color) !important;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

/* Arrow button — bottom right (Group-104.png) */
.wp-block-latest-posts.posts-cards_custom > li::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  width: var(--pc-btn-size);
  height: var(--pc-btn-size);
  border-radius: 50%;
  background-image: var(--pc-btn-img);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}

/* White box-shadow on card hover */
.wp-block-latest-posts.posts-cards_custom > li:hover::after {
  box-shadow: 0 0 0 2px #fff, 0 2px 16px rgba(255, 255, 255, 0.45);
}

@media (max-width: 767px) {
  .wp-block-latest-posts.posts-cards_custom.is-grid,
  .wp-block-latest-posts.posts-cards_custom.is-layout-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .wp-block-latest-posts.posts-cards_custom.is-grid > li,
  .wp-block-latest-posts.posts-cards_custom.columns-3 > li {
    width: 100% !important;
    margin: 0 !important;
  }
}

@media (min-width: 768px) {
    .wp-block-navigation__submenu-container.wp-block-navigation-submenu {
        border-radius: 15px;
        overflow: hidden !important;
        background-color: #e2e0e1 !important;
    }
    .wp-block-navigation__submenu-container.wp-block-navigation-submenu .wp-block-navigation-item__content {
        color: #40583a !important;
    }
    .timeline-circle::before, .timeline-circle::after {
        content: '';
        width: 2px;
        height: 100%;
        position: absolute;
        background-color: #6da003;
    }

    .timeline-circle::before {
        top: -100%;
    }

    .timeline-circle::after {
        bottom: -100%;
    }
}

/* Language switcher → dropdown */
.languages-select.wp-block-polylang-language-switcher {
  --lang-dd-bg: #FAFAFA;
  --lang-dd-border: rgba(0, 0, 0, 0.12);
  --lang-dd-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --lang-dd-caret: #FAFAFA;

  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  vertical-align: middle;
  z-index: 100;
}

.languages-select .lang-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.languages-select .lang-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  text-decoration: none;
  line-height: 1;
  color: inherit;
}

.languages-select .lang-item img {
  display: block;
  width: 24px !important;
  height: 17px !important;
  flex-shrink: 0;
}

/* Current language = trigger (no bg, no radius) */
.languages-select .lang-item.current-lang {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.languages-select .lang-item.current-lang a {
  cursor: pointer;
}

/* SVG caret */
.languages-select .lang-item.current-lang a .lang-dd-caret {
  display: block;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}

.languages-select .lang-item.current-lang a .lang-dd-caret path {
  fill: none;
  stroke: var(--lang-dd-caret);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.languages-select.is-open .lang-item.current-lang a .lang-dd-caret {
  transform: rotate(180deg);
}

/* Closed */
.languages-select:not(.is-open) .lang-item:not(.current-lang) {
  display: none;
}

/* Open: dropdown items (overlay, no header push) */
.languages-select.is-open .lang-item:not(.current-lang) {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + (var(--dd-i, 0) * 100%));
  min-width: 100%;
  z-index: 50;
  box-sizing: border-box;
  background: var(--lang-dd-bg);
  border: 1px solid var(--lang-dd-border);
  border-top: 0;
  border-radius: 0;
  box-shadow: var(--lang-dd-shadow);
}

.languages-select.is-open .lang-item:not(.current-lang) a:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Pagination */
.wp-block-query-pagination-numbers .page-numbers {
  border: 1px solid;
  line-height: 2em;
}

.wp-block-query-pagination-numbers .page-numbers.current {
  background-color: #6da003;
  color: #fff;
}

/* Contact tabs */
.contact-tabs :where(.wp-block-tab-list button)[aria-selected=true] {
  background-color: #6da003;
  color: #fff !important;
}

.contact-tabs :where(.wp-block-tab-list button)[aria-selected=true]:before {
  display: none;
}

@media (max-width: 1475px) {
    .wp-block-cb-carousel-v2 .cb-button-next {
        right: -20px;
    }
    .wp-block-cb-carousel-v2 .cb-button-prev {
        left: -20px;
    }
}
@media (max-width: 767px) {
    .mobile-main-menu .wp-block-navigation {
        width: 100%;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
    .mobile-main-menu .wp-block-navigation .wp-block-navigation-submenu {
        align-items: flex-start !important;
    }
    .mobile-main-menu .wp-block-navigation .wp-block-navigation__submenu-container {
        padding: 0 !important;
    }
    .wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
        gap: 20px !important;
    }
    .wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
        font-size: 24px !important;
    }
    .mobile-aspect-ratio {
        aspect-ratio: 1/1 !important;
    }
    .custom-social-links {
        justify-content: flex-start !important;
    }
    .mobile-right-menu {
        justify-content: flex-start !important;
    }
}


