@import url("https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

.overflow-hidden {
  overflow: hidden;
}

.first-blog-main {
  border-radius: 24px;
  background: #f5f7f9;
  padding: 24px;
  margin-bottom: 30px;
}
.first-blog-main:last-child {
  margin: 0;
}

.first-blog-main article {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
}
.first-blog-main article .left-side,
.first-blog-main article .right-side {
  width: 50%;
}

.first-blog-main .image-main figure {
  position: relative;
  margin: 0;
  padding-top: 70%;
  border-radius: 16px;
  overflow: hidden;
}

.first-blog-main .image-main img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  object-fit: cover;
}
a.cat-info {
  font-family: "Work Sans", sans-serif;
  padding: 4px 8px;
  background: #e8244f;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.content-info-wrap .dec-main p {
  font-family: "Work Sans", sans-serif;
  font-size: 18px;
  line-height: 28px;
  font-weight: normal;
}
.content-info-wrap h2 a {
  font-family: "Work Sans", sans-serif;
  font-size: 40px;
  line-height: 44px;
  color: #000;
  text-decoration: none;
}

.content-info-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.content-info-wrap .wrap-title {
  margin: 30px 0;
}

.blog-auth-main {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 10px;
  position: relative;
}

.blog-auth-main .info-name {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.blog-auth-main .info-name:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 10px;
  background: #a39b9b;
  right: -18px;
}

.blog-auth-main .info-name img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 100px;
}

.blog-auth-main .info-name a {
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  color: #1d242d;
  font-weight: 600;
  text-decoration: none;
  text-transform: capitalize;
}
.blog-auth-main .post-date {
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  color: #546881;
  font-weight: normal;
}

/* btn link  */
.blog-grid-style a.cat-info,
.first-blog-main a.cat-info {
  font-family: "Work Sans", sans-serif;
  padding: 4px 8px;
  background: #e8244f;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

a.link-btn-blog {
  font-family: "Work Sans", sans-serif;
  font-size: 18px;
  text-decoration: none;
  position: relative;
  color: #e8244f;
  border-bottom: 1px solid #0000004a;
  font-weight: 600;
  padding-bottom: 4px;
}

a.link-btn-blog:after {
  content: "";
  width: 0;
  background: #e8244f;
  height: 2px;
  transition: all 0.3s;
  position: absolute;
  bottom: -2px;
  left: 0;
}

a.link-btn-blog:hover:after {
  width: 100%;
}
/* btn link end */

.blog-grid-style {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 30px;
  grid-row-gap: 30px;
  margin-top: 50px;
}
.blog-grid-style .wrap-image {
  position: relative;
}

.blog-grid-style .wrap-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  top: 0;
  scale: 1;
  transition: all 0.3s;
}
.blog-grid-style article:hover .wrap-image img {
  scale: 1.1;
}

.blog-grid-style .wrap-image figure {
  position: relative;
  padding-top: 66%;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
}
.blog-grid-style .wrap-blog-info h3 a {
  font-family: "Work Sans", sans-serif;
  font-size: 24px;
  line-height: 26px;
  color: #000;
  text-decoration: none;
}
.blog-grid-style article .wrap-blog-info h3,
.first-blog-main article .content-info-wrap h2 {
  display: initial;
  background-image: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(currentColor),
    to(currentColor)
  );
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 89%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  color: inherit;
  text-decoration: none;
  line-height: 20px;
  -webkit-transition: background-size 0.6s ease-out;
  transition: background-size 0.6s ease-out;
}
.blog-grid-style article:hover .wrap-blog-info h3,
.first-blog-main article:hover .content-info-wrap h2 {
  background-size: 100% 2px;
  color: var(--text-color);
}

.blog-grid-style a.cat-info {
  position: absolute;
  top: 16px;
  right: 16px;
}
article.blog-style {
  padding: 16px;
  background: #f5f7f9;
  border-radius: 16px;
}

@media (max-width: 1024px) {
  .content-info-wrap h2 a {
    font-size: 32px;
    line-height: 35px;
  }
  .blog-grid-style .wrap-blog-info h3 a {
    font-size: 20px;
    line-height: 24px;
  }
}
@media (max-width: 991px) {
  .blog-grid-style {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid-style .wrap-blog-info h3 a {
    font-size: 22px;
    line-height: 28px;
  }
}
@media (max-width: 768px) {
  .content-info-wrap h2 a {
    font-size: 24px;
    line-height: 28px;
  }
  .blog-grid-style .wrap-blog-info h3 a {
    font-size: 16px;
    line-height: 20px;
  }
}

@media (max-width: 767px) {
  .first-blog-main article {
    flex-direction: column;
  }
  .first-blog-main article .left-side,
  .first-blog-main article .right-side {
    width: 100%;
  }
  .blog-grid-style {
    grid-template-columns: repeat(1, 1fr);
  }
}
