.category-hero {
  width: 100%;
  height: 550px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.category-hero img.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.category-hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  z-index: 1;
}

.category-hero-heading {
  text-align: center;
  color: #ffffff;
  margin-bottom: auto;
  margin-top: auto;
}

.category-hero-heading h1 {
  font-size: 35px;
  font-weight: 400;
  letter-spacing: 3.85px;
}

.category-search-sort-container {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.category-search-bar {
  flex: 1;
  position: relative;
  height: 52px;
}

.category-search-bar input {
  width: 100%;
  padding: 15px 50px 15px 60px;
  font-size: 1rem;
  background-color: #060606cc;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
}

.category-search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.6px;
}

.category-search-bar input:focus {
  border: 1px solid rgba(255, 255, 255, 0.5);
  outline: 1px solid rgba(255, 255, 255, 0.5);
}

.category-search-icon {
  position: absolute;
  height: 100%;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-search-icon img {
  object-fit: contain;
  display: block;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.content-container .content-text {
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  width: 87%;
  margin: 0 auto;
  letter-spacing: 0.8px;
  line-height: 23px;
}

.cards-container {
  margin-top: 44px;
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.cards-container .card {
  width: 330px;
  height: 500px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s linear !important;
  border-radius: 0px !important;
}

.cards-container .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 1) 100%);
  z-index: 1;
  pointer-events: none;
  transition: all 0.5s ease !important;
}

.cards-container .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.cards-container .card .card-contents {
  width: 100%;
  padding: 32px 40px 0px 40px;
  position: absolute;
  bottom: 0%;
  z-index: 2;
  transition: all 1s ease !important;
}

.cards-container .card .card-contents h3 {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #ffffff;
  line-height: 1.3; 
  margin-bottom: 0px;
}

.cards-container .card .card-contents .arrow {
  width: 35px;
  height: 35px;
  position: absolute;
  right: 10%;
  bottom: 10%;
  transition: all 0.5s ease !important;
  opacity: 1;
  visibility: visible;
}

.cards-container .card .card-contents .arrow img {
  width: 100%;
  height: 100%;
}

.cards-container .card .card-contents .property-btn {
  padding: 15px 40px;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  margin-top: 15px !important;
  transition: all 0.5s ease !important;
  color: #ffffff;
}

.cards-container .card:hover .card-contents {
  transform: translateY(-10px);
}

.cards-container .card:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

.cards-container .card:hover .property-btn {
  opacity: 1;
  visibility: visible;
  max-height: 50px;
  margin-top: 0px;
  color: #ffffff;
}

.cards-container .card:hover .arrow {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 1025px) { 
  .cards-container {
    grid-template-columns: repeat(2, auto);;
  }
}

@media (max-width: 768px) {
  .category-hero-heading h1 {
    font-size: 30px;
    letter-spacing: 3px;
    line-height: 1.3;
  }

  .category-search-sort-container {
    flex-direction: column;
    gap: 15px;
  }

  .category-search-bar {
    width: 100%;
  }

  .category-search-bar input {
    padding: 14px 45px 14px 38px;
    font-size: 0.95rem;
  }

  .category-hero-inner {
    padding: 0 15px;
  }

  .content-container {
    padding: 80px 10px 50px 10px;
  }

  .content-container .content-text {
    font-size: 12px;
    letter-spacing: normal;
  }

  .cards-container {
    display: none;
  }

  .cards-container.owl-carousel {
    display: block;
  }

  .owl-carousel .owl-stage {
    margin-top: -50px !important;
  }

  .owl-carousel .card {
    width: 330px;
    height: 500px;
  }

  .owl-nav,
  .owl-dots {
    display: none !important;
  }

  .pagination {
    display: none;
  }

  .desktop-view {
    display: none;
  }
}

@media (max-width: 480px) {
  .category-hero {
    height: 676px;
  }

  .category-search-bar input {
    padding: 12px 40px 12px 34px;
    font-size: 0.9rem;
  }

  .category-search-icon {
    left: 10px;
    top: 50%;
  }

  .category-search-icon img {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 415px) {
  .owl-carousel .card {
    width: 315px;
  }
}

@media (max-width: 400px) {
  .category-hero-heading h1 {
    font-size: 24px;
  }

  .cards-container .card .card-contents {
    padding: 20px;
  }

  .cards-container .card .card-contents .property-btn {
    padding: 15px 40px;
  }
}

@media (max-width: 391px) {
  .owl-carousel .card {
    width: 290px;
  }
}

@media (max-width: 376px) {
  .owl-carousel .card {
    width: 280px;
  }
}

@media (max-width: 321px) {
  .cards-container .card .card-contents {
    padding: 15px;
  }

  .cards-container .card .card-contents .property-btn {
    padding: 15px 30px;
  }

  .cards-container .card .card-contents h3 {
    font-size: 15px;
  }

  .category-hero-heading h1 {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .owl-carousel .card {
    width: 235px;
  }
}
