@font-face {
  font-family: kalameh;
  src: url("../fonts/KalamehWeb-Medium.woff2");
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: kalameh;
  scroll-behavior: smooth;
}

img {
  user-select: none;
}

/* BLOGS TITLE START */

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 50px 0px;
  padding: 0px 10px;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1200px;
  background-color: #00ffb7;
  border-radius: 20px;
  padding: 50px 0px;
  color: black;
  position: relative;
}

.title-container::after {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 99%;
  background-color: #00ffb750;
  transform: rotate(-2deg);
  border-radius: 20px;
  position: absolute;
  padding: 75px 0px;
  z-index: -1;
}

.title-container #code {
  position: absolute;
  width: 100px;
  right: 150px;
  bottom: 0px;
}

.title-container #web {
  position: absolute;
  width: 100px;
  left: 150px;
  top: 0px;
}

/* BLOGS TITLE END */
/* BLOGS CARDS START */

.blogs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0px 10px;
  margin: 50px 0px;
}

.blogs-cards {
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 1200px;
}

.blogs-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 10px;
  width: 280px;
  height: 285px;
  background-color: white;
  padding: 15px;
  border-radius: 15px;
  transition: all .5s;
  border: 3px solid rgba(128, 128, 128, 0.2);
}

.blogs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.blogs-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.blogs-card-img img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 150px;
  border-radius: 10px;
}

.blogs-card-date {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  color: gray;
  font-size: 12px;
}

.blogs-card-title {
  width: 100%;
  font-size: 14px;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-y: hidden;
  text-overflow: ellipsis;
}

.blogs-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.blogs-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blogs-card-btn a {
  text-decoration: none;
  color: white;
  background-color: #5462FF;
  padding: 5px 20px;
  border-radius: 10px;
  font-size: 14px;
  transition: all .5s;
}

.blogs-card-btn a:hover {
  background-color: red;
}

/* BLOGS CARDS END */






















/* RESPONSIVE START */

@media screen and (max-width:600px) {

  .blogs-cards {
    grid-template-columns: repeat(1, auto);
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .title-container #code {
    width: 75px;
  }

  .title-container #web {
    width: 75px;
  }

}








@media screen and (min-width:601px) and (max-width:1200px) {

  .blogs-cards {
    grid-template-columns: repeat(2, auto);
    width: 100%;
    align-items: center;
    justify-content: center;
  }

}

/* RESPONSIVE END */