/* CASES */

.cases {
  padding-bottom: 84px;
  overflow: hidden;
}

.cases-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cases-title-area {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.cases-filters {
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px;
  border-radius: 40px;
  background: #f0f0f0;
  display: flex;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.cases-filters::-webkit-scrollbar {
  display: none;
}

.cases-filters-item {
  border-radius: 44px;
  background-color: #fff;
  color: #0b2923;
  padding: 20px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, color 0.2s ease-in-out;
  white-space: nowrap;
}

.cases-filters-item.is-active,
.cases-filters-item:hover {
  background-color: #010109;
  color: #fff;
}

.cases-slider-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cases-slider {
  width: 100%;
  overflow: visible;
}

.cases-slider .swiper-slide {
  width: auto;
}

.cases-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.cases-item-image-area {
  height: 325px;
  position: relative;
  overflow: hidden;
}

.cases-item-image {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.cases-item-title {
  background-color: #dcdcdc;
  padding: 15px;
  text-decoration: none;
  color: #000;
  display: flex;
  gap: 27px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.cases-item-title:hover {
  filter: brightness(0.97);
}

.cases-item-title p {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  max-width: 80%;
  text-align: left;
}

.cases-item-title span {
  font-size: 37px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
}

.cases-category {
  padding: 14px 24px;
  width: fit-content;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0c0f20;
  border-radius: 44px;
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 16px;
  font-weight: 500;
  z-index: 2;
}

@media (max-width: 1024px) {
  .cases {
    padding-bottom: 64px;
  }
}

@media (max-width: 767px) {
  .cases {
    padding-bottom: 64px;
  }

  .cases-content {
    gap: 22px;
  }

  .slider-navigation-btn {
    width: 40px;
    height: 40px;
  }

  .cases-title {
    max-width: 50%;
  }

  .cases-filters {
    font-size: 12px;
    padding: 4px;
  }

  .cases-filters-item {
    padding: 12px 20px;
  }

  .cases-slider-content {
    gap: 22px;
  }

  .cases-category {
    font-size: 12px;
    padding: 12px 20px;
    top: 11px;
    left: 11px;
  }

  .cases-item-title {
    gap: 20px;
  }

  .cases-item-title p {
    font-size: 18px;
  }

  .all-cases-btn {
    font-size: 12px;
    padding: 16px 20px;
  }
}

/* Cases filter fade */
#casesSwiper .swiper-slide {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
  will-change: opacity, transform;
}

#casesSwiper .swiper-slide.is-fading-out {
  opacity: 0;
  transform: translateY(8px);
}

#casesSwiper .swiper-slide.is-hidden {
  display: none;
}

/* --- CASES --- */

/* CASES PAGE */

/* cases-title-area */

.cases-title-area-breadcrumbs {
  background: #f2f2f2;
  width: 100%;
}

.cases-title-area-breadcrumbs .breadcrumbs-list {
  padding-left: 0;
}

.cases-title-area {
  display: flex;
  flex-direction: column;
  background: #564e38;
  overflow: hidden;
  margin-top: 70px;
  position: relative;
}

.cases-title-area:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 54px;
  left: 0;
  bottom: 0;
  background: #c6b084;
  z-index: 1;
}

.cases-title-area-content {
  display: flex;
  position: relative;
  height: 500px;
  justify-content: flex-end;
}

.cases-title-area-element {
  position: absolute;
  width: 30%;
  height: 54px;
  background: #564e38;
  bottom: 0;
  right: 0;
  z-index: 2;
}

.cases-title-area-element:before {
  content: "";
  position: absolute;
  height: 105px;
  width: 100%;
  background: #c6b084;
  bottom: 54px;
  right: 0;
}

.cases-title-area-element:after {
  content: "";
  position: absolute;
  height: 155px;
  width: 100%;
  background: #c6b084;
  bottom: 159px;
  right: -100%;
}

.cases-title-image {
  position: absolute;
  bottom: 0;
  left: 0;
}

.cases-title-area-content .cases-title {
  color: #fff;
  font-size: 77px;
  font-weight: 600;
  line-height: 1;
  width: 50%;
  display: flex;
  align-items: center;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .cases-title-area-content {
    height: 400px;
  }

  .cases-title-area-content .cases-title {
    font-size: 44px;
    justify-content: center;
  }

  .cases-title-image {
    transform: scale(0.8);
    transform-origin: bottom left;
  }

  .cases-title-area:before,
  .cases-title-area-element {
    height: 40px;
  }

  .cases-title-area-element:before {
    bottom: 40px;
    height: 80px;
  }

  .cases-title-area-element:after {
    bottom: 120px;
    height: 120px;
  }
}

@media (max-width: 819px) {
  .cases-title-area-content {
    height: 300px;
  }

  .cases-title-area-content .cases-title {
    padding-top: 40px;
    align-items: flex-start;
  }

  .cases-title-image {
    transform: scale(0.6);
  }
}

@media (max-width: 767px) {
  .cases-title-area-content {
    height: 370px;
  }

  .cases-title-area-content .cases-title {
    font-size: 32px;
    width: 100%;
    justify-content: flex-start;
    padding-top: 0;
  }

  .cases-title-area-content {
    flex-direction: column;
    gap: 20px;
    justify-content: flex-end;
  }

  .cases-title-image {
    position: relative;
    width: 100%;
    transform: scale(1);
    height: 260px;
  }

  .cases-title-area:before,
  .cases-title-area-element {
    height: 20px;
  }

  .cases-title-area-element:before {
    bottom: 20px;
    height: 40px;
  }

  .cases-title-area-element:after {
    bottom: 60px;
    height: 60px;
  }
}

/* cases-listing */

.cases-listing {
  padding: 64px 0;
}

.cases-listing-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cases-filters-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cases-filters-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.cases-listing-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  row-gap: 32px;
}

.cases-listing-items .cases-item {
  width: calc((100% - 32px) / 3);
}

.cases-listing-items .cases-item-title {
  background: #acdcd2;
}

@media (max-width: 1024px) {
  .cases-listing {
    padding: 44px 0;
  }
  .cases-listing-items .cases-item {
    width: calc(50% - 8px);
  }
}

@media (max-width: 767px) {
  .cases-listing-items .cases-item {
    width: 100%;
  }
}

.cases-item.is-hidden {
  display: none;
}

.cases-item.is-fading-out {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.cases-item {
  transition: opacity 220ms ease, transform 220ms ease;
}

.cases-pagination {
  width: 100%;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.pagination-btn {
    transform: translateY(2px);
}

.pagination-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
}

.pagination-link,
.pagination-current {
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #000;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  background-color: transparent;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.pagination-dots {
  width: 25px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transform: translateY(-10px);
  color: #5f6d7e;
}

.pagination-link:hover,
.pagination-current {
  color: #fff;
  background-color: #0B2923;
}

/* CTA */

.cta {
  height: 100vh;
  background: #6c2f16;
  position: relative;
}

.inner-cta {
  padding: 92px 0;
}

.inner-cta .cta-content {
  width: 100%;
  background: red;
  position: relative;
  overflow: hidden;
  max-height: 640px;
}

.cta-bg {
  background: #6c2f16;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-content {
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
}

.cta-slogan {
  color: #fff;
  font-size: 76px;
  line-height: 1;
  max-width: 1000px;
  text-align: center;
  font-weight: 600;
  z-index: 3;
}

.cta-btn {
  background-color: transparent;
  box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.1) inset;
  -webkit-box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 1) inset;
  -moz-box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 1) inset;
  z-index: 3;
}

@media (max-width: 1024px) {
  .cta {
    height: 50vh;
  }

  .cta-slogan {
    font-size: 64px;
  }

  .inner-cta {
    padding: 64px 0;
  }
  
  .cta-content {
      max-height: 50vh;
  }
}

@media (max-width: 820px) {
  .cta-slogan {
    font-size: 54px;
  }

  .inner-cta .cta-content {
    max-height: 480px;
  }
}

@media (max-width: 767px) {
  .cta-slogan {
    font-size: 44px;
  }

  .cta-btn {
    font-size: 12px;
    padding: 20px;
  }

  .inner-cta {
    padding: 44px 0;
  }

  .inner-cta .cta-content {
    max-height: 300px;
  }
  
  .cta-content {
      max-height: 50vh;
  }

  .inner-cta .cta-slogan {
    font-size: 32px;
    max-width: 90%;
  }
}

/* --- CTA --- */
