/* Front styles for Cards Slider (HOS) */
.hos-solutions-slider {
  padding: 64px 0;
  position: relative;
}
.hos-solutions-slider__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
  margin-bottom: 48px;
}
.hos-solutions-slider__head.is-centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  gap: 16px;
}
.hos-solutions-slider__head.is-centered .hos-solutions-slider__head-cta {
  justify-self: center;
}

@media (max-width: 768px) {
  .hos-solutions-slider__head {
    flex-direction: column;
    display: flex;
    align-items: start;
    gap: 24px;
    margin-bottom: 32px;
  }
  .hos-solutions-slider__head.is-centered {
    align-items: center;
    text-align: center;
  }
}
.hos-solutions-slider__label {
  display: inline-block;
  color: #0f1115;
  font-weight: 500;
  font-size: 14px;
  position: relative;
  padding: 8px 15px;
  margin-bottom: 10px;
}
.hos-solutions-slider__label:before,
.hos-solutions-slider__label:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><g clip-path="url(%23clip0)"><path d="M11 11H2.5C1.672 11 1 10.328 1 9.5V1" stroke="%23FF7031" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g><defs><clipPath id="clip0"><rect width="12" height="12" fill="white" transform="matrix(-1 0 0 -1 12 12)"/></clipPath></defs></svg>');
}
.hos-solutions-slider__label:before {
  bottom: 0;
  left: 0;

  transform: none;
}
.hos-solutions-slider__label:after {
  top: 0;
  right: 0;
  transform: rotate(180deg);
}
.hos-solutions-slider__head-left {
  max-width: 784px;
}

.hos-solutions-slider__lead {
  color: #697289;
  font-size: 16px;
  max-width: 584px;
}


.hos-solutions-slider__head-cta .btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
}

.hos-solutions-slider__heading {
  margin-bottom: 10px;
} 

.hos-solutions-slider__container {
  position: relative;
}
.hos-solutions-slider__viewport {
  position: relative;
  overflow: hidden;
}
.hos-solutions-slider__track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
  gap: 1.6rem;
  padding-bottom: 32px;
}
.hos-solutons-item {
  border: 1px solid #e2e7ee;
  border-radius: 40px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  padding: 12px;
  min-width: 0; /* width sterowany przez JS (flex-basis) */
}
.hos-solutons-item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.hos-solutons-item__link {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
}
.hos-solutons-item__media {
  position: relative;
  aspect-ratio: 16/9;
  height: 396px;
  width: 100%;
  overflow: hidden;
}
.hos-solutons-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 28px;
}
.hos-solutons-item__media--placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f6f7f9, #eef2f7);
}
.hos-solutons-item__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fff;
  color: #39413f;
  border-radius: 999px;
  font-weight: 500;
  font-size: 12px;
  border: 1px solid #e2e7ee;
}

.hos-solutons-item__header {
  padding: 24px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 28px;

  overflow: hidden;
}
.hos-solutons-item__header-text {
  position: relative;
  z-index: 1;
}
.hos-solutons-item__header svg {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  margin-top: 12px;
}

.hos-solutons-item__header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hos-solutons-item__title {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.35;
  font-weight: 600;
  color: #070d0b;
}
.hos-solutons-item__desc {
  margin: 0;
  color: #39413f;
  font-size: 14px;
}

@media (max-width: 767px) {
  .hos-solutions-slider {
    padding: 48px 0;
  }
  .hos-solutions-slider__heading {
    font-size: 26px;
  }
  .hos-solutions-slider__lead {
    font-size: 14px;
  }
  .hos-solutons-item__header {
    padding: 8px;
    padding-top: 16px;
  }
  .hos-solutons-item__media {
    height: 190px;
  }
  .hos-solutons-item__title {
    font-size: 18px;
  }
  .hos-solutons-item__desc {
    font-size: 13.5px;
  }
}

/* Arrows */
.hos-solutions-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
.hos-solutions-slider__arrow:before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #111827;
  border-right: 2px solid #111827;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
}
.hos-solutions-slider__arrow--prev {
  left: -4px;
}
.hos-solutions-slider__arrow--prev:before {
  transform: translate(-35%, -50%) rotate(-135deg);
}
.hos-solutions-slider__arrow--next {
  right: -4px;
}
.hos-solutions-slider__arrow--next:before {
  transform: translate(-65%, -50%) rotate(45deg);
}
.hos-solutions-slider__arrow[disabled] {
  opacity: 0.35;
  cursor: default;
}

/* Dots */
.hos-solutions-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0.2rem 0 0.8rem;
}
.hos-solutions-slider__dot,
.hos-solutions-slider__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.hos-solutions-slider__dot.is-active,
.hos-solutions-slider__dots button.is-active {
  background: #111827;
}

/* Grid fallback when <= 3 items */
.hos-solutions-slider.is-grid .hos-solutions-slider__viewport {
  overflow: visible;
}
.hos-solutions-slider.is-grid .hos-solutions-slider__track {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.6rem;
  transform: none !important;
}
@media (min-width: 768px) {
  .hos-solutions-slider.is-grid .hos-solutions-slider__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .hos-solutions-slider.is-grid .hos-solutions-slider__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.hos-solutions-slider.is-grid .hos-solutions-slider__arrow,
.hos-solutions-slider.is-grid .hos-solutions-slider__dots {
  display: none;
}

/* Move arrows outside on larger viewports */
@media (min-width: 768px) {
  .hos-solutions-slider__arrow--prev {
    left: -18px;
  }
  .hos-solutions-slider__arrow--next {
    right: -18px;
  }
}
@media (min-width: 1200px) {
  .hos-solutions-slider__arrow--prev {
    left: -28px;
  }
  .hos-solutions-slider__arrow--next {
    right: -28px;
  }
}

@media (max-width: 1000px) {
  .hos-solutions-slider__arrow {
    display: none !important;
  }
}
