@import url('https://fonts.googleapis.com/css2?family=Dangrek&family=Figtree:ital,wght@0,300..900;1,300..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Oswald:wght@200..700&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}


:root{
  --main-color:hsl(47, 88%, 63%);
}


body{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--main-color);
}

.BLog-card-Container{
    background-color: hsl(0, 0%, 100%);
    width: 384px;
    height: 522px;
    border: 1px solid;
    padding: 20px 22px;
    font-family: "Figtree", sans-serif;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    box-shadow: 8px 10px black;
}

.image-container{
  display: flex;
  justify-content: center;
  align-items: center;
}

.image{
  width: 336px;
  height: 200px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  margin-bottom: 20px;
}

.avatar{
  width: 32px;
  height: 32px;
}


.content{
  width: 336px;
  height: 194px;
}

.Category{
  background-color: var(--main-color);
  padding: 6px 15px;
  width: 90px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  margin-bottom: 16px;

}

.publish-Date{
  margin-bottom: 16px;
  font-weight: 600;
  margin-left: 0.2rem;
}


h1{
  width: 100%;
  margin-bottom: 18px;
  font-size: 24px;
  margin-left: 0.2rem;
  font-weight: 800;
  color: hsl(0, 0%, 7%);
}

.author{
 display: grid;
 grid-template-columns: auto 1fr;
 column-gap: 10px;
  padding: 10px;
  margin-top: 1rem;
  align-items: center;
  margin-left: -0.6rem;
}

.author-name{
  font-weight: bold;
}

.description{
  color: hsl(0, 0%, 42%);
  font-weight: 500;
  line-height: 150%;
}



@media (max-width: 375px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
  }

  .BLog-card-Container {
    max-width: 327px;
    height: auto; 
    padding: 16px;
    box-shadow: 5px 7px rgba(0, 0, 0, 0.15); 
  }

  .image {
    width: 100%; 
    height: auto; 
    border-radius: 10px;
    margin-bottom: 16px;
  }

  .content {
    max-width: 100%;
    margin-left: 0;
  }

  .Category {
    text-align: center;
    font-size: 14px;
    padding: 5px 12px;
  }

  .publish-Date {
    font-weight: 500;
    height: auto;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 20px;
    line-height: 1.3;
    text-align: left;
    width: 100%;
    margin-bottom: 14px;
  }

  .description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .author {
    display: flex;
    align-items: center;
    margin-left: 5px;
    gap: 10px;
    padding: 10px 0;
  }
}


