/* yg-banner */
.yg-banner {
  padding: 0;
  position: relative;
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    url(<path-to-image>) lightgray 50% / cover no-repeat;
}

.yg-banner-image {
  display: flex;
}

.yg-banner .yg-overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 640px;
  text-align: center;
  padding-block: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding-inline: 20px;
}

.yg-banner .yg-overlay-content > * {
  width: fit-content;
}

.yg-banner .yg-overlay-content .yg-banner-title {
  color: #fff;
}

.yg-banner .yg-overlay-content .yg-banner-text {
  color: #fff;
}

.yg-banner .yg-overlay-content .yg-banner-link {
  margin-top: 8px;
}

@media (max-width: 767px) {
  .yg-banner .yg-overlay-content {
    max-width: 100%;
  }
}

/* yg-solution-directory */

.yg-solution-directory-contianer {
  padding-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 3;
}

.yg-solution-directory-contianer .yg-breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
}

.yg-solution-directory {
  display: flex;
  gap: 32px;
}

.yg-left-solution-category-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.yg-right-solutions-wrapper {
  flex: 4;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.yg-solution-category-item .yg-category-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 24px;
  padding: 20px 16px;
  border-radius: 4px;
  color: #242526;
}

.yg-solution-category-item.active .yg-category-item-header {
  background-color: #e0ece7;
  color: #002600;
}

.yg-solution-category-item .yg-category-item-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.yg-category-item-filter-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.yg-category-item-filter-item,
.yg-solution-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  background: #f4f4f4 !important;
  color: #454748 !important;
  transition: background 0.2s ease, color 0.2s ease;
  border: none !important;
}

.yg-category-item-filter-item.active,
.yg-solution-filter-item.active {
  background: #01633d !important;
  color: #ffffff !important;
}

.yg-right-solutions-wrapper .yg-category-item-solutions {
  display: none;
}

.yg-right-solutions-wrapper .yg-category-item-solutions.active {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.yg-solutions-content {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.yg-solution-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.yg-solution-item-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.yg-solution-item-link {
  color: #01633d !important;
  text-decoration: underline;
}

.yg-solution-item .yg-solution-card-carousel .swiper-button-prev,
.yg-solution-item .yg-solution-card-carousel .swiper-button-next {
  display: none;
}

.yg-solution-item .yg-solution-card-carousel:hover .swiper-button-prev,
.yg-solution-item .yg-solution-card-carousel:hover .swiper-button-next {
  display: flex;
}

.yg-solution-item .yg-solution-card-carousel .swiper-button-prev.swiper-button-lock,
.yg-solution-item .yg-solution-card-carousel .swiper-button-next.swiper-button-lock {
  display: none !important;
}

.yg-solution-item .swiper-slide {
  width: 33%;
}

.yg-solution-card-item-content {
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    padding-top: 48px;
    background: linear-gradient(0deg, rgba(3, 52, 33, 0.80) 0%, rgba(3, 52, 33, 0.00) 100%);
    backdrop-filter: blur(20px);
    mask: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.yg-solution-card-item-content .yg-solution-card-item-title {
    color: #fff;
}

.yg-solution-card-item-content .yg-solution-card-item-text p {
    color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-in-out, padding-top 0.25s ease-in-out;
}
.yg-solution-card-item .yg-solution-card-item-content .yg-solution-card-item-text p:first-child {
    padding-top: 0;
    max-height: 100%;
}

.yg-solution-card-item:hover .yg-solution-card-item-content .yg-solution-card-item-text p {
    max-height: 100px;
    padding-top: 10px;
}

.yg-solution-item.is-hidden {
  display: none;
}

@media (min-width: 768px) {
.yg-left-solution-category-tab {
    height: fit-content;
    position: sticky;
    top: 120px;
}
.yg-solution-item .yg-solution-item-pagination {
    display: none;
}
}

@media (max-width: 767px) {
  .yg-solution-directory-contianer {
    padding-top: 20px;
  }
  .yg-solution-directory {
    flex-direction: column;
  }
  .yg-right-solutions-wrapper {
    order: 2;
  }
  .yg-left-solution-category-tab {
    order: 1;
    border-radius: 4px;
    background-color: #f4f4f4;
    overflow: hidden;
  }

  .yg-solution-category-item .yg-category-item-header {
    padding: 16px;
    border-radius: 0;
  }

  .yg-solution-category-item.active .yg-category-item-header {
    background-color: #01633d;
    color: #ffffff;
  }

  .yg-solution-category-item .yg-category-item-header svg {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
  }

  .yg-solution-category-item.is-open .yg-category-item-header svg {
    transform: rotate(-90deg);
  }

  .yg-category-item-filter-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .yg-category-item-filter-item,
  .yg-solution-filter-item {
    padding: 12px 16px;
    background-color: #fafafa !important;
  }

  .yg-solution-card-item-content {
    padding: 16px;
    padding-top: 48px;
  }

  .yg-solution-card-item-content .yg-solution-card-item-text p {
    max-height: unset;
  }

  .yg-category-item-filter-item.active,
  .yg-solution-filter-item.active {
    background-color: #b8d4c9 !important;
    color: #002600 !important;
  }

  .yg-solution-item .yg-solution-card-carousel .swiper {
    overflow: visible;
  }

  .yg-solution-item .yg-slide-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }

  .yg-solution-item .yg-solution-card-pagination {
    flex: 1;
    margin: 0 !important;
  }

  .yg-solution-item
    .swiper-pagination.swiper-pagination-progressbar
    .swiper-pagination-progressbar-fill {
    background: #000;
  }

  .yg-solution-item .yg-solution-card-carousel .swiper-button-prev,
  .yg-solution-item .yg-solution-card-carousel .swiper-button-next {
    display: flex;
    position: static;
    transform: none;
    margin: 0;
  }

  .yg-solution-item .swiper-slide {
    width: 100%;
  }
}
