/* body */
html {
  max-width: 2100px;
  margin: auto;
  cursor: default;
}

html,
body {
  width: 100%;
  padding: 0px;
}

/* nav menu */
.hfe-nav-menu__layout-horizontal .hfe-nav-menu {
  flex-wrap: nowrap !important;
}

@media (max-width: 1024px) {
  .hfe-nav-menu__layout-horizontal .hfe-nav-menu {
    flex-wrap: wrap !important;
  }
  .hfe-nav-menu__layout-horizontal {
    margin-top: 33px;
  }
}

/* page width */
.inner-wrapper_rem {
  padding-left: 8%;
  padding-right: 8%;
}

body:not([class*="elementor-page-"]) .site-main,
body:not([class*="elementor-page-"]) .page-header .entry-title {
  max-width: 100% !important;
}

body:not([class*="elementor-page-"]) .site-main {
  padding-left: 8%;
  padding-right: 8%;
  padding-bottom: 80px;
}

.archive {
  background-color: #fff;
}

.single .header-wrapper,
.page .header-wrapper {
  justify-content: start;
  padding: 2em 0;
  width: 100%;
}

.single .header-wrapper {
  max-width: 960px;
  align-items: center;
}

.page .header-wrapper {
  padding-left: 1em;
}

.header-wrapper .post-meta {
  padding-left: 1em;
}

.body.blog main {
  background-color: #fff;
}

.btn {
  border: 1px solid var(--e-global-color-d5aa247);
  background-color: #fff;
  color: var(--e-global-color-d5aa247) !important;
  text-decoration: none !important;
  margin: 0 2em;
}

.btn:hover {
  background-color: var(--e-global-color-d5aa247);
  color: #fff !important;
}

.elementor-tabs-wrapper {
  border-bottom: 1px solid var(--e-global-color-c8743c8);
}

.elementor-tabs-wrapper .elementor-active {
  border-top: 1px solid var(--e-global-color-c8743c8) !important;
}

body.post-template-default,
body.page-template-default {
  background-image: url(img/background-mobile.webp);
  background-size: contain;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

.post-password-form {
  width: 500px;
  min-width: 300px;
  margin: 5em auto;
}

.post-password-form input[type="submit"] {
  background-color: #ff9b00;
  border: 1px solid #ff9b00;
  color: #fff;
}

/* News */
.custom-post-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.custom-post-list .post-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 570px;
  border-radius: 20px;
  background-color: white;
  transition: 0.2s ease-in-out;
  overflow: hidden;
  margin-bottom: 2em;
}

.custom-post-list .post-thumbnail img {
  border-radius: 0px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.custom-post-list .post-details {
  display: flex;
  flex-direction: column;
  padding: 1em 2em;
}

.custom-post-list .post-title a {
  text-decoration: none;
  color: #333;
}

.custom-post-list .post-date {
  font-size: 14px;
  color: #999;
}

.custom-post-list .post-meta {
  bottom: 0;
  width: 100%;
  padding: 20px 30px;
}

@media screen and (max-width: 1024px) {
  .inner-wrapper_rem {
    padding-left: 5%;
    padding-right: 5%;
  }

  body:not([class*="elementor-page-"]) .site-main {
    padding-top: 40px;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 40px;
  }

  .single-post article,
  .page article,
  .single-post .related-posts {
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 60px;
  }
}

body {
  background-color: #f1f1f1;
}

/* header */
.nav-bor_1 {
  border-left: 1px solid #161616;
  padding-left: 20px;
  margin-left: 15px;
}

#breadcrumbs a {
  color: #888;
}

.logo-div_1 {
  text-wrap: nowrap;
}

span.elementor-button-icon {
  font-size: 12px;
}

/* footer */
.foo-a_href1 a {
  transition: 0.2s ease-in-out;
}

.foo-a_href1 a:hover {
  color: #ff9b00 !important;
}

/* badge absolute */
.solu-badge {
  position: absolute;
  width: 46%;
  right: -50px;
  rotate: 45deg;
  top: -8px;
}

/* Homepage */
/* herosekce */
.sphere-logo_black {
  filter: saturate(0);
}

.page-id-14 {
  background: #f4f4f4;
}

.f-r-1 {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

img.swiper-slide-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.elementor-14
  .elementor-element.elementor-element-5e763bc
  .swiper-pagination-bullet {
  margin: 0;
  width: 25%;
  height: 5px;
  border-radius: 0px;
  margin-bottom: 20px;
}

.elementor-swiper-button-prev {
  left: 25px !important;
}

.elementor-swiper-button-next {
  right: 25px !important;
}

.ho-w_1 {
  transition: 0.2s ease-in-out;
}

#h-kontan1:hover .ho-w_1 {
  color: white;
}

#h-icon svg {
  fill: #8175ff !important;
  transition: 0.2s ease-in-out;
}

#h-kontan1:hover #h-icon svg {
  fill: white !important;
}

span.elementor-button-icon {
  font-size: 12px;
}

/* partners */

/* Obal karuselu - ZABRAŇUJE PRETEKANIU */
.carousel-container,
.testimonials-wrapper {
  /* <- Uistite sa, že máte tento wrapper pre testimonials */
  width: 100%;
  overflow: hidden; /* Kľúčové pre skrytie neviditeľných položiek! */
  position: relative;
}

/* Kontajner, ktorý sa posúva */
.carousel,
.testimonials-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;

  /* Medzera medzi položkami */
  gap: 20px;

  /* Odstránime prípadné defaultné paddingy/marginy */
  margin: 0;
  padding: 5px 0;

  /* Dôležité - zabráni Elementoru prepísať flex nastavenia */
  flex-wrap: nowrap !important;
}

/* Všeobecné štýly pre VŠETKY položky karuselu */
.carousel > *,
.testimonials-carousel > * {
  flex-shrink: 0; /* Zabraňuje zmenšovaniu položiek */
  box-sizing: border-box; /* Dôležité pre správne šírky/padding */
  height: 100%;
}

/* ============================================== */
/* === ŠPECIFICKÉ ŠTÝLY PRE LOGO CAROUSEL === */
/* ============================================== */

.carousel-item {
  aspect-ratio: 1 / 1; /* Zachováva štvorcový pomer */
  position: relative;
  overflow: hidden;
  background-color: #e0e0e0;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
  padding: 20px;
  border-radius: 5px;

  /* Pre centrovanie obrázku vnútri */
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Aby sa logo zmestilo a nedeformovalo */
  transition: filter 0.2s ease;
}

.carousel-item a {
  display: block; /* Aby odkaz zaberal celú plochu */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item:hover {
  background-color: #525252;
  transform: scale(1.05); /* Jemné zväčšenie pri hoveri */
}

.carousel-item:hover img {
  filter: brightness(0) invert(1); /* Váš hover efekt */
}

/* ============================================== */
/* === ŠPECIFICKÉ ŠTÝLY PRE TESTIMONIALS CAROUSEL === */
/* ============================================== */

/* Cielime na priame deti .testimonials-carousel, čo by mali byť vaše Elementor kontajnery (karty) */
.testimonials-carousel > .elementor-element {
  background-color: #ffffff; /* Príklad: biele pozadie */
  border: 1px solid #e9e9e9; /* Príklad: jemné orámovanie */
  border-radius: 15px; /* Príklad: zaoblené rohy */
  padding: 30px; /* Príklad: vnútorné odsadenie */

  /* Ak chcete, aby karty mali minimálnu výšku */
  /* min-height: 400px; */

  /* Uistíme sa, že sa obsah správne zobrazuje */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ak chcete, aby sa obsah roztiahol */
}

.testimonials-carousel > * {
  min-width: 0;
  box-sizing: border-box;
}

/*------------ Integrations --------------*/
/* Obal karuselu */
.integrations-carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

/* Posuvný pás (track) */
.integrations-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px; /* Medzera medzi logami */
  margin: 0;
  padding: 5px 0;
  flex-wrap: nowrap !important;
}

/* Jednotlivá položka (karta) */
.integrations-carousel-item {
  flex-shrink: 0;
  box-sizing: border-box;
  aspect-ratio: 1 / 1; 
  height: 100%;
  
  /* DIZAJN KARTY */
  position: relative;
  overflow: hidden;
  background-color: #ffffff; /* Vždy biele pozadie */
  border-radius: 8px;
  
  /* Jemný tieň a rámček */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
  border: 1px solid #f0f0f0;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 15px;

  /* Centrovanie obsahu */
  display: flex;
  align-items: center;
  justify-content: center;
}

.integrations-carousel-item a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.integrations-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* HOVER EFEKTY */
.integrations-carousel-item:hover {
  transform: translateY(-5px); /* Jemný posun nahor */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
  border-color: #e0e0e0;
}

/* Uistíme sa, že obrázok nemení farbu */
.integrations-carousel-item:hover img {
  filter: none; 
}

/* Pridajte k obom triedam */
.integrations-carousel,
.partners-carousel,
.carousel {
  cursor: grab; /* Ukáže otvorenú ruku */
  user-select: none; /* Zabráni označovaniu textu/obrázkov pri ťahaní */
  -webkit-user-drag: none; /* Zabráni ťahaniu obrázku ako súboru */
}

/* Keď sa ťahá (túto triedu pridáme cez JS) */
.carousel-grabbing {
  cursor: grabbing !important; /* Ukáže zatvorenú ruku */
}

/* Zabezpečíme, aby obrázky neinterferovali s ťahaním */
.integrations-carousel img,
.partners-carousel img,
.carousel img {
  pointer-events: none; /* Kliknutia prejdú na <a>, ale obrázok sa nebude ťahať */
}

/* === OVLÁDACIE PRVKY (Šípky) === */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    /* Odstránenie oválu a pozadia */
    background-color: transparent;
    border: none;
    box-shadow: none;
    width: auto;
    height: auto;
    padding: 10px; /* Zväčšenie klikateľnej plochy */

    /* Štýl samotnej šípky (unicode znaku) */
    color: #999; /* Šedá farba ako na obrázku */
    font-size: 30px; /* Veľkosť šípky */
    font-weight: bold;
    line-height: 1;
    
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: color 0.3s ease, transform 0.3s ease;
	
	&:focus {
		background-color: transparent !important;
		color: #999;
	}
}

.carousel-arrow:hover {
    background-color: transparent; /* Pozadie zostáva priehľadné */
    color: #333; /* Pri hoveri stmavne (napr. tmavošedá/čierna) */
    transform: translateY(-50%) scale(1.1); /* Jemné zväčšenie */
}

.carousel-arrow-left {
    left: 5px; /* Pozícia zľava */
}

.carousel-arrow-right {
    right: 5px; /* Pozícia sprava */
}

/* === PRISPÔSOBENIE PRE MOBIL === */
@media (max-width: 768px) {
    .integrations-carousel-container,
    .partners-carousel-container,
    .carousel-container {
        padding: 0 35px; /* Menší priestor na mobile */
    }
    .carousel-arrow {
        font-size: 30px;
        width: 30px;
    }
    .carousel-arrow-left { left: 0; }
    .carousel-arrow-right { right: 0; }
}

/* === INDIKÁTORY (Bodky/Pagination) === */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px; /* Medzera pod carouselom */
    gap: 8px;
    width: 100%;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot:hover {
    background-color: #b0b0b0;
}

.carousel-dot.active {
    background-color: #FF9B00;
    transform: scale(1.2);
}

/* === ÚPRAVA KONTAJNERA === */
/* Aby sa šípky a bodky zmestili, kontajner potrebuje trochu priestoru */
.integrations-carousel-container,
.partners-carousel-container,
.carousel-container {
    padding-bottom: 20px; /* Priestor pre bodky */
    position: relative;
}

/* solutions */
.bl-gradient_1 {
  background: -webkit-linear-gradient(45deg, #ebd6c1, #ebd6c1, #cdd8e2);
}

.ar-up_1 span.elementor-button-icon {
  rotate: -45deg;
}

/* testimonials */
.face {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
  height: 150px;
}

.img-bg_ab {
  position: absolute;
  z-index: 0;
  filter: brightness(100%) contrast(100%) saturate(100%) blur(65px)
    hue-rotate(0deg);
  top: -190px;
  left: 25px;
}

.no-over_1 {
  overflow: hidden;
}

/* Lite landing */
/* hero */
.lite-gradient {
  background: -webkit-linear-gradient(45deg, #8175ff, #8175ff, white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

span.elementor-button-icon {
  font-size: 12px;
}

/* growing */
.as-rat_1 {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Benefits */
.img-f_1 {
  filter: saturate(0);
}

.vis-none {
  visibility: hidden;
}

/* support */
.sup-title_1 img {
  margin-top: 8px;
}

/* Dive into */
.as-ratio_16 {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.elementor-accordion-item:nth-child(1) {
  display: none;
}

.elementor-accordion-item {
  border-bottom: 1px solid grey !important;
}

.elementor-accordion-item:nth-child(2) {
  border-top: 1px solid grey !important;
}

.elementor-accordion
  .elementor-tab-title
  .elementor-accordion-icon.elementor-accordion-icon-left {
  float: right;
  text-align: left;
}

/* Solutions */

.solution-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Product comparison */

/* Aplikuje štýly iba keď NIE JE aktívny Elementor editor */
body:not(.elementor-editor-active) #product-comparison {
  /* Nastavenie počiatočnej maximálnej výšky */
  max-height: 800px;

  /* Nutné pre skrytie obsahu, ktorý presahuje max-height */
  overflow: hidden;

  /* Plynulá animácia zmeny výšky */
  transition: max-height 0.8s ease-in-out;

  /* Nutné pre správne pozicovanie fade-out efektu */
  position: relative;
}

/* Vytvorenie "fade out" efektu na spodnej hrane */
body:not(.elementor-editor-active) #product-comparison::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px; /* Výška prechodu, môžete upraviť */

  /* Samotný prechod - z priehľadnej do farby pozadia stránky */
  background: linear-gradient(to bottom, transparent, #f1f1f1);

  /* Zabraňuje tomu, aby tento element blokoval kliknutie na obsah pod ním */
  pointer-events: none;

  /* Plynulý prechod pri zmiznutí */
  transition: opacity 0.4s ease;
  opacity: 1;
}

/* Štýly pre sekciu, keď je rozbalená (má pridanú triedu .expanded) */
body:not(.elementor-editor-active) #product-comparison.expanded {
  /* Nastaví dostatočne veľkú výšku, aby sa zobrazil všetok obsah */
  max-height: 10000px !important;
}

/* Skrytie "fade out" efektu pri rozbalenej sekcii */
body:not(.elementor-editor-active) #product-comparison.expanded::after {
  opacity: 0;
}

.lite-gradient2 {
  background: -webkit-linear-gradient(45deg, #0050e6, #8175ff, white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* lite */
#product-comparison_lite .col-lite {
  border: 0px solid #8175ff;
}

/* lite - pro - enterprise */
.sec-lite .col-lite,
.comparison-pro-sec .col-pro,
.sec-enterprise .col-enterprise {
  box-shadow: 0px 0px 10px -3px #ff9b00 !important;
}

/* dirty like xxx - elementor někdy generuje <p> navíc, rozhodí to řádkování  */
#support-services p,
#comparison p {
  margin: 0;
}

.archive-loop .post {
  margin-bottom: 2em;
}

.archive-loop .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0px;
  aspect-ratio: 16 / 9;
}

.post-meta .elementor-button-wrapper a {
  background: #ff9b00;
  transition: 0.2s ease-in-out;
}

.post-meta .elementor-button-wrapper a:hover {
  background: #fdc98a;
  color: black;
  transition: 0.2s ease-in-out;
}

/* není ve style.css */
/* Contact form */
span#nf-form-title-1,
.nf-form-fields-required {
  display: none;
}

.fifty-index {
  border: 0px solid white !important;
  border-radius: 25px !important;
  border-top-left-radius: 0px !important;
}

.nf-form-content label {
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 20px;
}

label#nf-label-field-13 {
  font-size: 16px;
}

input#nf-field-4 {
  background: orange !important;
  border-radius: 25px;
}

input#nf-field-6 {
  border-radius: 25px;
  border-top-left-radius: 0px;
  border: 0px solid white;
  background: #f1f1f1;
}

input#nf-field-8 {
  background: #ff9b00;
  border-radius: 25px;
}

input#nf-field-8 {
  background: #ff9b00;
  border-radius: 25px;
  padding: 10px 60px !important;
}

div[for="nf-field-22"] {
  border: 0px solid white !important;
  border-radius: 25px !important;
  border-top-left-radius: 25px;
  border-top-left-radius: 0px !important;
}

.white1 {
  filter: brightness(0) invert(1);
}

/* blog */

/* .page article,
.single-post article {
    padding-left: 8%;
    padding-right: 8%;
    padding-bottom: 80px;
} */

.page .content-wrapper,
.single-post .content-wrapper {
  padding: 2em;
  background-color: #fff;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 2em;
  opacity: 0.8;
}

.single-post .post-content h2,
.single-post .post-content h3 {
  padding-top: 40px;
  padding-bottom: 10px;
}

.page a,
.single-post a {
  color: #ff9b00;
}

/* Media query --- */
/* wide screen */
@media screen and (min-width: 2000px) {
  .page .content-wrapper,
  .single-post .content-wrapper {
    padding: 4em;
    max-width: 50%;
    margin: 0 auto 2em;
    opacity: 0.8;
  }
}

/* laptop */
@media screen and (max-width: 1400px) {
  span.elementor-button-content-wrapper {
    gap: 10px !important;
  }
}

@media screen and (min-width: 1200px) {
  .archive .page-content {
    max-width: 80%;
  }

  .archive .archive-header {
    max-width: 80%;
  }
}

/* tablet */
@media screen and (max-width: 1024px) {
  .carousel-item {
    width: calc(100% / 6 - 5px);
  }

  .nav-bor_1 {
    border-left: 0px solid #161616;
    padding-left: 0px;
    margin-left: 0px;
  }

  a.hfe-sub-menu-item.hfe-sub-menu-item-active {
    background: #f1f1f1 !important;
  }

  .no-abs_mob {
    position: relative;
  }
}

/* tablet and mobile */
@media screen and (max-width: 1024px) and (min-width: 740px) {
  .sup-title_1 img {
    margin-bottom: -15px;
    margin-left: 7px;
  }
}

@media screen and (min-width: 921px) {
  .archive-loop .post-image {
    width: 240px;
    height: 180px;
    overflow: hidden;
    position: relative;
  }

  .custom-post-list .post-meta {
    justify-content: space-between;
    align-items: center;
    display: flex;
  }

  body.post-template-default,
  body.page-template-default {
    background-image: url(img/background.webp);
  }

  .page .content-wrapper,
  .single-post .content-wrapper {
    padding: 2em;
    width: 80%;
    margin: -10px auto 2em;
    opacity: 0.8;
  }

  .page .content-wrapper {
    margin: 1em auto 2em;
  }

  .archive .page-content .post {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .page-content .post-meta {
    display: flex;
    flex-direction: column;
    max-width: 50%;
  }

  .single-post .related-posts,
  .archive .page-content .post {
    display: flex;
    flex-direction: row;
    column-gap: 1em;
  }
}

@media screen and (min-width: 1024px) {
  /* Book a demo */
  .demo-form_1 {
    width: 800px;
    margin: 0 auto;
  }

 	.page h1,
 	.single-post h1,
	.archive h1 {
    margin-top: 1em;
  }
}

/* tablet min */
@media screen and (min-width: 740px) {
  .header-wrapper {
    display: flex;
    flex-direction: row;
    width: 80% !important;
    margin: 0 auto;
    justify-content: space-evenly;
    gap: 1em;
  }

  .archive .archive-header {
    margin: 0 auto;
    display: flex;
  }

  .header-wrapper .post-thumbnail,
  .archive-loop .post-image {
    width: 300px;
    height: 200px;
    overflow: hidden;
    position: relative;
  }

  .archive .page-content {
    display: flex;
    flex-direction: column;
    column-gap: 2em;
    row-gap: 2em;
    margin: 5em auto;
  }

  .header-wrapper .post-meta {
    max-width: 100%;
  }

  .page-content .post-meta {
    max-width: 71%;
  }

  #nf-form-1-cont .nf-field-container {
    display: inline-block;
    width: calc(50% - 20px);
    box-sizing: border-box;
    vertical-align: top;
  }

  div#nf-field-1-container,
  div#nf-field-2-container,
  div#nf-field-21-container {
    margin-right: 35px;
  }

  div#nf-field-3-container,
  div#nf-field-13-container,
  div#nf-field-19-container {
    width: 100% !important;
  }
}

/* mobile */
@media screen and (max-width: 740px) {
  .carousel-item {
    width: calc(100% / 4 - 5px);
  }

  .elementor-widget-wp-widget-ninja_forms_widget {
    width: 100%;
  }

  .elementor-tabs .elementor-tabs-wrapper {
    display: flex !important;
    flex-wrap: wrap;
  }

  .elementor-widget-tabs .elementor-tab-desktop-title {
    padding: 12px 4px !important;
    width: 200px;
  }

  .elementor-tab-mobile-title {
    display: none;
  }
}

@media screen and (max-width: 1500px) {
  .custom-post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 740px) {
  .custom-post-list {
    grid-template-columns: 1fr;
  }
}
