@media screen and (max-width: 576px) {
  .carousel-caption {
    top: 1%
  }

  .carousel-caption h2 {
    font-size: 12px;
  }

  .carousel-caption p {
    font-size: 5px;
  }
}

@media screen and (min-width: 576px) and (max-width: 768px) {
  .carousel-caption {
    top: 5px;
  }

  .carousel-caption h2 {
    font-size: 25px;
  }

  .carousel-caption p {
    font-size: 12px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
  .carousel-caption {
    top: 10%
  }

  .carousel-caption h2 {
    font-size: 30px;
  }

  .carousel-caption p {
    font-size: 14px;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1500px) {
  .carousel-caption {
    top: 20%
  }

  .carousel-caption h2 {
    font-size: 35px;
  }

  .carousel-caption p {
    font-size: 15px;
  }
}


@media screen and (min-width: 1500px) {
  .carousel-caption {
    top: 30%
  }

  .carousel-caption h2 {
    font-size: 40px;
  }

  .carousel-caption p {
    font-size: 18px;
  }
}

* {
  box-sizing: border-box;
}

body {
  background: #fff;
  font-family: 'Roboto', sans-serif;
}

.header {
  position: relative;
  padding: 20px;
  margin: 50px auto;
  text-align: center;

  &:after {
    content: "";
    position: absolute;
    display: block;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 25%;
    background: #000;
  }

  h1 {
    position: relative;
    padding: 5px;
  }
}

.container {
  margin: 0 auto;
}

.item {
  border-radius: 5px;
  padding: 1em;
  margin: 0 auto 1em auto;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  transition: all 120ms ease;

  h3 {
    color: #000;
  }

  p {
    color: #5b5b5b;
  }

  &:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f9f9f9;
    z-index: -1;
    transform: scale(0);
    opacity: 0;
    transition: all 100ms ease;
  }

  &:hover {
    opacity: 0.75;
  }

  &:hover::before {
    transform: scale(1);
    opacity: 1;
  }

  img {
    width: 100%;
    height: auto;
    display: block;
  }
}

.grid-sizer,
.item {
  width: 30%;
}

@media screen and (max-width: 750px) {

  .grid-sizer,
  .item {
    width: 45%;
  }
}

@media screen and (max-width: 500px) {

  grid-sizer,
  .item {
    width: 90%;
  }
}

/* Lazy Load Styles */
.card-image {
  display: block;
  min-height: 25rem;
  /* Tüm kartların aynı yüksekliğe sahip olmasını sağla */
  background: #fff center center no-repeat;
  background-size: cover;
  filter: blur(3px);
  /* Blur efektini uygulamak için */

}

.card-image>img {
  display: block;
  width: 100%;
  opacity: 0;
  /* Görseli gizle */
}

.card-image.is-loaded {
  filter: none;
  /* Tam çözünürlükteki görseli göstermek için */
  transition: filter 1s;
}

/* Layout Styles */
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  font-size: 16px;
  font-family: sans-serif;
}

.card-list {
  display: flex;
  /* Flexbox düzeni kullanarak kartları hizala */
  flex-wrap: wrap;
  /* Kartların birden fazla satıra yayılmasına izin ver */
  justify-content: center;
  /* Kartları yatayda ortala */
  margin: 1rem auto;
  padding: 0;
  font-size: 0;
  list-style: none;
}

.card {
  display: flex;
  /* İçerik düzeni için flexbox kullan */
  flex-direction: column;
  /* İçerikleri dikeyde hizala */
  width: 90%;
  max-width: 20rem;
  margin: 1rem;
  font-size: 1rem;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 0 3rem -1rem rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease-in-out, box-shadow 0.1s;
  height: 25rem;
  /* Kartların yüksekliğini eşitle */
  background: #fff;
  /* Arka plan rengini beyaz yap */
}

.card:hover {
  transform: translateY(-0.5rem) scale(1.0125);
  box-shadow: 0 0.5em 3rem -1rem rgba(0, 0, 0, 0.5);
}

.card-description {
  display: flex;
  /* Flexbox düzeni kullanarak içeriği hizala */
  flex-direction: column;
  /* İçerikleri dikeyde hizala */
  justify-content: space-between;
  /* Başlık ve açıklama arasında boşluk bırak */
  padding: 1em 0.5em;
  color: #515151;
  text-decoration: none;
  flex: 1;
  /* İçeriğin esnemesine izin ver */
}

.card-description>h4 {
  margin: 0 0 0.5em;
  font-weight: bold;
  font-size: 1.25rem;
  /* Başlık font boyutunu büyüt */
}

.card-description>p {
  margin: 0;
  font-size: 14px;
  /* Açıklama font boyutunu ayarla */
}