.category-panelis {
  margin: 0 auto;
  border-left: 1px solid #0306052e;
  border-right: 1px solid #0306052e;
  padding-top: 5%;
  background: #e7e7e7;
}

.category-panelis .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-panelis .category-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #161c28;
  position: relative;
  z-index: 1;
  background-color: #f6b800;
  width: fit-content;
  padding: 0 10px;
  margin: 20px auto;
}

.category-panelis::before {
  content: "";
  height: 1px;
  width: 40%;
  display: block;
  position: relative;
  top: 2.8rem;
  background-color: #161c28;
  margin: 0 auto;
  z-index: 1;
}

.category-panelis .category-meta {
  width: 58%;
  color: #161c28;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  text-align: center;
  line-height: 36px;
}

.category-panelis .card {
  background-color: #1e1e1e;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  /* background: linear-gradient(180deg, rgba(34, 34, 34, 1) 100%, rgba(84, 84, 84, 0.37) 71%, rgba(34, 34, 34, 1) 100%); */
  background: linear-gradient(180deg, rgba(34, 34, 34, 1) 93%, rgba(84, 84, 84, 0.3) 118%, rgba(34, 34, 34, 1) 100%);
}

.category-panelis .card-images {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  /* min-height: 330px; */
  min-height: 283px;
  overflow: hidden;
}

.category-panelis .card-images .vector-line {
  position: absolute;
  width: 100%;
  height: auto;
  z-index: 1;
  top: 25%;
}

.category-panelis .img-top,
.category-panelis .img-bottom {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-panelis .card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: red;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.category-panelis .card-content {
  width: 100%;
  padding: 1.5rem;
  position: absolute;
  bottom: 0;
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.1) 0%, rgba(111, 111, 111, 0.6) 64%, rgba(246, 184, 0, 1) 100%);
}

.category-panelis .car-name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
}

.category-panelis .owner-name {
  font-size: 0.95rem;
  color: #fffbfb;
  margin-top: 0.3rem;
  line-height: 28px;
}

.category-panelis .card-footer {
  padding: 0 1rem 1rem 1rem;
  font-size: 0.9rem;
  color: #aaa;
  display: flex;
  justify-content: flex-end;
}

.category-panelis .card-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s;
}

.category-panelis .card-footer a:hover {
  color: #df222c;
}

.category-panelis .cta-1 {
  /* font-size: 13px; */
  padding: 10px;
  background-color: #df222c;
  width: 200px;
  text-align: center;
  display: block;
  border-radius: 5px;
  margin-top: 10px;
  text-decoration: none;
  color: #fff;
  margin: 4% auto;
  font-weight: bold;
}

/* BreakPoint Responsive================================ */

@media (min-width: 360px) and (max-width: 430px) {
  .category-panelis .card-container {
    display: grid;
    grid-template-columns: repeat(2, 0.5fr);
    padding: 5px;
  }

  .category-panelis .card-images {
    min-height: 160px;
  }

  .category-panelis .card-content {
    padding: 1rem;
  }
}

@media (min-width: 375px) and (max-width: 1024px) {
  .category-panelis {
    padding: 0 10px;
  }
}

@media (max-width: 430px) {
  .category-panelis::before {
    width: 90%;
  }
}
