/* blog section */

header {
  margin-bottom: 9.2rem;
}

header nav ul.nav_menu li:nth-child(4) a {
  color: var(--color-orange);
}

.blog_block {
  max-width: 103.2rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(31rem, 1fr));
  column-gap: 5.1rem;
  row-gap: 4.3rem;
  margin-bottom: 8.2rem;
}

.blog_item {
  position: relative;
  border-radius: 0.9rem;
  background: var(--color-middle-grey);
  overflow: hidden;
  transition: all 0.3s linear;
}

.blog_item:hover {
  box-shadow: 0px 15px 4px 0px rgba(44, 42, 42, 0),
    0px 10px 4px 0px rgba(44, 42, 42, 0.04),
    0px 5px 3px 0px rgba(44, 42, 42, 0.13),
    0px 2px 2px 0px rgba(44, 42, 42, 0.21),
    0px 1px 1px 0px rgba(44, 42, 42, 0.25);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 22.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(240, 213, 173, 0.38);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s linear;
}

.overlay div {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-orange);
}

.overlay div img {
  width: 2.4rem;
  height: 2.4rem;
  transition: all 0.3s linear;
}

.blog_item:hover .overlay {
  opacity: 1;
  visibility: visible;
}

.blog_item:hover .overlay > div > img {
  transform: translate(40%, -40%);
}

.blog_img {
  height: 22.9rem;
  margin-bottom: 3.6rem;
}

.blog_img img {
  object-position: 50% 8%;
}

.blog_about {
  margin: 0 1.7rem 3.6rem;
}

.blog_about h6 {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  opacity: 0.53;
  font-weight: 400;
  margin-bottom: 2.6rem;
}

.blog_about h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2.6rem;
}

.blog_text {
  text-align: justify;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.49;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page_slider {
  margin-bottom: 9.7rem;
}

.page_slider ul {
  display: flex;
  justify-content: center;
  gap: 1.3rem;
}

.page_slider ul li {
  transition: all 0.3s linear;
}

.page_slider ul li:hover {
  border-radius: 0.2rem;
  color: var(--color-white);
  background: var(--color-orange);
}

.page_slider ul li a {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 400;
  padding: 0.8rem 1rem;
}

.active {
  border-radius: 0.2rem;
  color: var(--color-white);
  background: var(--color-orange);
}

/* media query for blog section */

@media screen and (max-width: 1086px) {
  .blog_block {
    max-width: 68.1rem;
  }
}

@media screen and (max-width: 706px) {
  header {
    margin-bottom: 5.6rem;
  }
  .blog_block {
    max-width: 31rem;
  }
}
