/*      BLOG KISMI      */

.bolge#blog {
  height: unset;
  background-image: url(../img/pattern.webp);
  background-repeat: repeat;
  background-size: auto;
  padding-bottom: 2rem;
}

.blogbaslikyazisi {
  display: grid;
  /*justify-content: center; /* İçeriği yatay eksende ortala */
  align-items: center;
  /* İçeriği dikey eksende ortala */
  grid-template-areas: "baslik";
  grid-template-columns: 1fr;
  margin-top: 1.25rem;
  /* 20px */
  margin-bottom: 3rem;
  /* 48px */
}

.blogyazisi {
  color: white;
  grid-area: baslik;
  align-self: center;
  font-family: "Poppins", sans-serif;
  letter-spacing: normal;
  text-transform: uppercase;
  font-size: 3rem;
  /* 51px */
  z-index: 2;
  font-weight: 700;
  text-align: center;
}

.blogarkayazisi {
  grid-area: baslik;
  color: white;
  align-self: center;
  text-align: center;

  font-family: "Poppins", sans-serif;
  letter-spacing: 1rem;
  text-transform: uppercase;
  font-size: 4.5rem;
  /* 72px */
  font-weight: 700;
  opacity: 0.05;
}

/* Genel Kapsayıcı */
.kapsayici {
  width: 100%;
  max-width: 80vw;
  margin: 0 auto;
  padding: 0.94rem;
  /* 15px */
}

/* Metin Ortalamak İçin */
.metin-ortala {
  text-align: center;
  margin-bottom: 1.25rem;
  /* 20px */
}

/* Kartlar İçin Sütun Düzeni */
.kart-sutunlari {
  column-count: 3;
  column-gap: 0.94rem;
  /* 15px */
}

.kart {
  break-inside: avoid;
  margin-bottom: 0.94rem;
  /* 15px */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  /* 8px */
  overflow: hidden;
  box-shadow: 0 0.25rem 0.38rem rgba(0, 0, 0, 0.1);
  /* 4px 6px */
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.kart:hover {
  transform: scale(1.03);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
  /* 20px 40px */
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.kart:hover .kart-baslik {
  color: #0066ff;
}

.kart:hover .kart-yazi {
  color: #343a40;
}

/* Kart Resmi */
.kart-resim {
  width: 100%;
  height: auto;
  display: block;
}

/* Kart İçeriği */
.kart-icerik {
  padding: 0.94rem;
  /* 15px */
}

.kart-baslik {
  font-size: 1.25rem;
  /* 20px */
  margin-bottom: 0.63rem;
  /* 10px */
  font-weight: bold;
  color: #333;
}

.kart-yazi {
  font-size: 0.9rem;
  /* 14.4px */
  color: #555;
  margin-bottom: 0.63rem;
  /* 10px */
}

/* Soluk Yazı */
.soluk-yazi {
  font-size: 0.7rem;
  /* 11.2px */
  color: #888;
  display: flex;
  gap: 1rem;
  /* 16px */
  justify-content: center;
}

.soluk-yazi span {
  font-family: "Poppins";
  font-weight: normal;
  margin-left: 0.2rem;
  /* 3.2px */
}

.kart {
  box-shadow: 0 0.25rem 0.5rem 0 rgba(0, 0, 0, 0.2);
  /* 4px 8px */
  transition: 0.3s;
  border: none;

  &:hover {
    box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.4);
    /* 8px 16px */
  }

  a {
    color: initial;

    &:hover {
      text-decoration: initial;
    }
  }

  .text-muted i {
    margin: 0 0.63rem;
    /* 10px */
  }
}

/* Responsive */

/* tablet ve altı */
@media (max-width: 768px) {
  .kart-sutunlari {
    column-count: 3;
  }
}

/* telefon ve altı */
@media (max-width: 576px) {
  .kart-baslik {
    font-size: 1rem;
    /* 20px */
    margin-top: unset;
  }

  .kart-sutunlari {
    column-count: 2;
  }

  .blogbaslikyazisi {
    margin-bottom: 2rem;
  }

  .blogarkayazisi {
    font-size: 2rem;
  }

  .blogyazisi {
    font-size: 1.5rem;
  }
}

/* küçük telefon ve altı */
@media (max-width: 425px) {
  .kart-sutunlari {
    column-count: 2;
    column-gap: 0.5rem;
    /* 8px */
  }
}

/* çok küçük telefon ve altı */
@media (max-width: 350px) {
  .kart-sutunlari {
    column-count: 1;
    column-gap: 0.25rem;
    /* 4px */
  }
}

/*navbar eklendiğinde, yani telefon modunda*/
@media screen and (max-width: 1024px) {
  .kart-yazi {
    display: none;
  }

  .bolge#blog {
    padding-bottom: 8.2vh;
  }
}