main {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: 50px auto;
}

main aside {
  width: 25%;
  border: 1px solid rgba(40, 40, 40, 0.2);
  color: rgb(20, 20, 20);
  height: fit-content;
  border-radius: 30px;
  padding: 20px 30px;
}

main aside p {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
}

main aside a {
  position: relative;
  display: block;
  width: fit-content;
  margin-bottom: 1px;
  font-size: 16px;
  color: rgb(55, 55, 55);
}

main aside a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0%;
  height: 3px;
  background-color: #2aab32;
  transition: width 0.3s ease-in-out;
}

main aside a:hover::after {
  width: 100%;
}

main .arsa-giris {
  border: 1px solid rgba(40, 40, 40, 0.2);
  color: rgb(20, 20, 20);
  height: fit-content;
  border-radius: 30px;
  padding: 20px 30px;
  width: 70%;
}

main .arsa-giris h1 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 600;
  color: rgb(20, 20, 20);
}

main .arsa-giris .arsa-con {
  display: flex;
  flex-direction: column;
  gap: 20px 1%;
  flex-wrap: wrap;
  margin-top: 20px;
}

main .arsa-giris .arsa-con a {
  display: flex;
  width: 100%;
  background-color: rgb(240, 240, 240);
  padding-bottom: 15px;
  height: 200px;
  border-radius: 30px;
}

main .arsa-giris .arsa-con a div {
  display: block;
  padding: 0 10px;
}

main .arsa-giris .arsa-con a div h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1px;
  padding: 0 10px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 20px;
}

main .arsa-giris .arsa-con a img {
  height: 200px;
  margin-bottom: 6px;
  object-fit: cover;
  aspect-ratio: 10/8;
  transition: all 0.2s ease;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

main .arsa-giris .arsa-con a:not(.satildi):hover img {
  filter: brightness(0.7);
}

main .arsa-giris .arsa-con a .fiyat {
  font-size: 24px;
  color: rgb(20, 20, 20);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.5px;
  padding: 5px 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden
}

main .arsa-giris .arsa-con a .konum,
main .arsa-giris .arsa-con a .boyut,
main .arsa-giris .arsa-con a .tur {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 5px;
  padding: 0 10px;
  margin: 10px 0;
  color: rgb(55, 55, 55);
}

main .arsa-giris .arsa-con a .boyut svg,
main .arsa-giris .arsa-con a .konum svg,
main .arsa-giris .arsa-con a .tur svg {
  width: 16px;
}

main .arsa-giris .arsa-con a .boyut svg path,
main .arsa-giris .arsa-con a .konum svg path,
main .arsa-giris .arsa-con a .tur svg path {
  fill: rgb(55, 55, 55);
}

.arsa-con a.satildi {
  position: relative;
  display: inline-block;
}

.arsa-con a.satildi img {
  filter: grayscale(100%);
}

.arsa-con a.satildi::after {
  content: "SATILDI";
  position: absolute;
  top: 30px;
  left: 0;
  background-color: rgb(243, 50, 50);
  color: rgb(255, 255, 255);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  padding: 4px 15px;
  padding-left: 25px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 2;
  pointer-events: none;
}

@media screen and (max-width:1050px) {
  main {
    width: 90%;
    margin: 30px auto;
  }
}

@media screen and (max-width:900px) {
  main aside {
    width: 28%;
  }

  main aside p {
    font-size: 20px;
  }

  main aside p a {
    font-size: 16px;
  }

  main .arsa-giris {
    padding: 20px 15px;
  }

  main .arsa-giris .arsa-con a {
    height: 150px;
    padding-bottom: 10px;
  }

  main .arsa-giris .arsa-con a div h2 {
    font-size: 12px;
    margin-top: 10px;
  }

  main .arsa-giris .arsa-con a img {
    height: 150px;
    margin-bottom: 0px;
    aspect-ratio: 8/10;
  }

  main .arsa-giris .arsa-con a .fiyat {
    font-size: 16px;
    padding: 4px 10px;
  }

  main .arsa-giris .arsa-con a .konum,
  main .arsa-giris .arsa-con a .boyut,
  main .arsa-giris .arsa-con a .tur {
    font-size: 10px;
    gap: 5px;
    margin: 5px 0;
  }

  main .arsa-giris .arsa-con a .boyut svg,
  main .arsa-giris .arsa-con a .konum svg,
  main .arsa-giris .arsa-con a .tur svg {
    width: 12px;
  }
}

@media screen and (max-width:650px) {
  main {
    flex-direction: column;
    gap: 30px;
  }

  main aside {
    width: 100%;
    order: 2;
    text-align: center;
  }

  main aside a {
    display: flex;
    justify-self: center;
    width: fit-content;
    margin-bottom: 8px;
  }

  main .arsa-giris {
    width: 100%;
  }
  
  .arsa-con a.satildi::after {
  font-size: 12px;
  padding: 4px 10px;
  padding-left: 15px;
}
}