/* =========================================================
   BLOGS SECTION
========================================================= */

.blogs_section {
  position: relative;
  overflow: hidden;

  padding: 120px 0 100px;

  background: #fff;
  color: #111;
}

/* =========================================================
   HEADER
========================================================= */

.blogs_section .blogs_header {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin-bottom: 60px;

  opacity: 0;
  transform: translateY(45px);

  transition:
    opacity 0.9s ease 0.1s,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.blogs_visible .blogs_header {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   HEADER COUNT
========================================================= */

.blogs_section .blogs_header_count {
  display: flex;
  flex-direction: column;

  align-items: flex-end;

  padding-bottom: 10px;
}

.blogs_section .blogs_header_count strong {
  font-size: 55px;
  font-weight: 300;

  line-height: 0.8;
}

.blogs_section .blogs_header_count span {
  margin-top: 12px;

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 3px;

  color: #888;
}

/* =========================================================
   FILTER BAR
========================================================= */

.blogs_section .blogs_filter_bar {
  position: relative;
  z-index: 5;

  display: grid;

  grid-template-columns: 1fr 220px 180px;

  gap: 12px;

  margin-bottom: 45px;

  padding: 12px;

  background: #f4f4f4;

  border: 1px solid #e5e5e5;

  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 0.9s ease 0.3s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.blogs_visible .blogs_filter_bar {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   SEARCH
========================================================= */

.blogs_section .blogs_search {
  position: relative;
}

.blogs_section .blogs_search .form-control {
  height: 52px;

  padding-left: 48px;
  padding-right: 20px;

  border: 1px solid #ddd;
  border-radius: 0;

  background: #fff;

  font-size: 12px;

  color: #111;

  box-shadow: none;
}

.blogs_section .blogs_search .form-control:focus {
  border-color: #111;

  box-shadow: none;
}

.blogs_section .blogs_search_icon {
  position: absolute;

  top: 50%;
  left: 20px;

  z-index: 2;

  transform: translateY(-50%);

  font-size: 13px;

  color: #777;
}

/* =========================================================
   REACT SELECT
========================================================= */

.blogs_section .blogs_select {
  min-width: 0;
}

.blogs_section .blog-select__control {
  min-height: 52px !important;

  border: 1px solid #ddd !important;

  border-radius: 0 !important;

  background: #fff !important;

  box-shadow: none !important;

  cursor: pointer !important;
}

.blogs_section .blog-select__control:hover {
  border-color: #111 !important;
}

.blogs_section .blog-select__control--is-focused {
  border-color: #111 !important;

  box-shadow: none !important;
}

.blogs_section .blog-select__placeholder {
  font-size: 11px !important;

  color: #555 !important;

  text-transform: uppercase;
}

.blogs_section .blog-select__single-value {
  font-size: 11px !important;

  color: #111 !important;

  text-transform: uppercase;
}

.blogs_section .blog-select__menu {
  margin-top: 4px !important;

  border-radius: 0 !important;

  overflow: hidden;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.blogs_section .blog-select__option {
  padding: 13px 15px !important;

  font-size: 11px !important;

  cursor: pointer !important;
}

.blogs_section .blog-select__option--is-focused {
  background: #f2f2f2 !important;

  color: #111 !important;
}

.blogs_section .blog-select__option--is-selected {
  background: #111 !important;

  color: #fff !important;
}

/* =========================================================
   BLOG GRID
========================================================= */

.blogs_section .blogs_grid {
  position: relative;
  z-index: 2;

  row-gap: 35px;
}

/* =========================================================
   BLOG COLUMN
========================================================= */

.blogs_section .blog_col {
  opacity: 0;

  transform: translateY(70px);

  transition:
    opacity 0.8s ease var(--blog-delay),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--blog-delay);
}

.blogs_visible .blog_col {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
   BLOG CARD
========================================================= */

.blogs_section .blog_card {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid #dedede;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
  cursor: pointer;
}

.blogs_section .blog_card:hover {
  transform: translateY(-8px);

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   IMAGE
========================================================= */

.blogs_section .blog_image_wrap {
  position: relative;

  height: 260px;

  overflow: hidden;

  background: #111;
}

/* .blog_featured .blogs_section .blogs_section .blog_image_wrap {
  height: 390px;
} */

.blogs_section .blog_image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: grayscale(100%);

  transform: scale(1.08);

  transition:
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease;
}

.blogs_section .blog_card:hover .blog_image {
  transform: scale(1.04);

  filter: grayscale(0%);
}

/* =========================================================
   IMAGE OVERLAY
========================================================= */

.blogs_section .blog_image_overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15),
    transparent 50%,
    rgba(0, 0, 0, 0.45)
  );

  pointer-events: none;
}

/* =========================================================
   CATEGORY
========================================================= */

.blogs_section .blog_category {
  position: absolute;

  left: 20px;
  bottom: 20px;

  z-index: 2;

  padding: 7px 12px;

  background: #fff;

  color: #111;

  font-size: 8px;
  font-weight: 600;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}

/* =========================================================
   HOVER ARROW
========================================================= */

.blogs_section .blog_hover_arrow {
  position: absolute;

  top: 20px;
  right: 20px;

  z-index: 3;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  border: 1px solid rgba(255, 255, 255, 0.5);

  border-radius: 50%;

  color: #fff;

  opacity: 0;

  transform: translate(15px, -15px);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.blogs_section .blog_card:hover .blog_hover_arrow {
  opacity: 1;

  transform: translate(0, 0);
}

.blogs_section .blog_hover_arrow:hover {
  background: #fff;

  color: #111;
}

/* =========================================================
   CONTENT
========================================================= */

.blogs_section .blog_content {
  display: flex;

  flex-direction: column;

  min-height: 240px;

  padding: 25px 25px 20px;
}

/* =========================================================
   META
========================================================= */

.blogs_section .blog_meta {
  display: flex;

  align-items: center;

  gap: 9px;

  margin-bottom: 18px;

  font-size: 9px;

  letter-spacing: 0.5px;

  color: #888;
}

.blogs_section .blog_meta_separator {
  color: #ccc;
}

.blogs_section .blog_meta svg {
  margin-right: 5px;

  font-size: 9px;
}

/* =========================================================
   TITLE
========================================================= */

.blogs_section .blog_card_title {
  margin: 0;

  font-size: 21px;

  font-weight: 500;

  line-height: 1.25;

  letter-spacing: -0.5px;

  color: #111;

  transition: color 0.3s ease;
}

/* .blog_featured .blogs_section .blog_card_title {
  font-size: clamp(25px, 2.2vw, 34px);

  max-width: 650px;
} */

.blogs_section .blog_card:hover .blog_card_title {
  color: #555;
}

/* =========================================================
   FOOTER
========================================================= */

.blogs_section .blog_card_footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-top: auto;

  padding-top: 25px;

  border-top: 1px solid #e5e5e5;
}

.blogs_section .blog_read_more {
  font-size: 9px;

  font-weight: 600;

  letter-spacing: 2px;

  color: #555;
}

.blogs_section .blog_footer_arrow {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 1px solid #111;

  border-radius: 50%;

  font-size: 11px;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.blogs_section .blog_card:hover .blog_footer_arrow {
  background: #111;

  color: #fff;

  transform: translateX(5px);
}

/* =========================================================
   EMPTY
========================================================= */

.blogs_section .blogs_empty {
  padding: 100px 20px;

  text-align: center;

  border: 1px solid #ddd;
}

.blogs_section .blogs_empty span {
  font-size: 12px;

  font-weight: 600;

  letter-spacing: 3px;
}

.blogs_section .blogs_empty p {
  margin: 10px 0 0;

  color: #888;

  font-size: 13px;
}

/* =========================================================
   FOOTER
========================================================= */

.blogs_section .blogs_footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-top: 65px;

  padding-top: 25px;

  border-top: 1px solid #111;

  opacity: 0;

  transform: translateY(25px);

  transition:
    opacity 0.8s ease 1.1s,
    transform 0.8s ease 1.1s;
}

.blogs_visible .blogs_footer {
  opacity: 1;

  transform: translateY(0);
}

.blogs_section .blogs_footer_left {
  display: flex;

  align-items: center;

  gap: 15px;
}

.blogs_section .blogs_footer_line {
  width: 35px;

  height: 1px;

  background: #111;
}

.blogs_section .blogs_footer_left > span:last-child {
  font-size: 9px;

  font-weight: 600;

  letter-spacing: 2px;

  color: #888;
}

.blogs_section .blogs_view_all {
  display: flex;

  align-items: center;

  gap: 15px;

  padding: 0;

  border: 0;

  background: transparent;

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 2px;

  color: #111;

  cursor: pointer;
}

.blogs_section .blogs_view_all span {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid #111;

  border-radius: 50%;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.blogs_section .blogs_view_all:hover span {
  background: #111;

  color: #fff;

  transform: translateX(5px);
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 991px) {
  .blogs_section {
    padding: 90px 0;
  }

  .blogs_section .blogs_header {
    margin-bottom: 45px;
  }

  .blogs_section .blogs_filter_bar {
    grid-template-columns: 1fr 1fr;
  }

  .blogs_section .blogs_search {
    grid-column: span 2;
  }

  .blogs_section .blog_image_wrap,
  .blog_featured .blog_image_wrap {
    height: 300px;
  }

  .blogs_section .blog_card_title,
  .blog_featured .blog_card_title {
    font-size: 24px;
  }

  .blogs_section .blog_image {
    filter: unset;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (min-width: 576px) and (max-width: 767px) {
  .blogs_section {
    padding: 70px 0;
  }

  .blogs_section .blogs_header {
    display: block;

    margin-bottom: 35px;
  }

  .blogs_section .blogs_header_count {
    display: none;
  }

  /* .blogs_section .blogs_filter_bar {
    display: flex;

    flex-direction: column;

    gap: 10px;

    padding: 10px;

    margin-bottom: 30px;
  } */

  .blogs_section .blogs_search {
    width: 100%;
  }

  .blogs_section .blogs_select {
    width: 100%;
  }

  .blogs_section .blog_image_wrap,
  .blog_featured .blog_image_wrap {
    height: 300px;
  }

  .blogs_section .blog_content {
    min-height: 220px;

    padding: 22px 20px 18px;
  }

  .blogs_section .blog_card_title,
  .blog_featured .blog_card_title {
    font-size: 22px;
  }

  .blogs_section .blogs_footer {
    flex-direction: column;

    align-items: flex-start;

    gap: 25px;
  }

  .blogs_section .blog_image {
    filter: unset;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (min-width: 0px) and (max-width: 575.98px) {
  .blogs_section .blog_image_wrap,
  .blog_featured .blog_image_wrap {
    height: 250px;
  }

  .blogs_section .blog_card_title,
  .blog_featured .blog_card_title {
    font-size: 20px;
  }

  .blogs_section .blog_meta {
    flex-wrap: wrap;
  }

  .blogs_section .blog_category {
    font-size: 7px;
  }

  .blogs_section .blog_image {
    filter: unset;
  }

  .blogs_section .blogs_filter_bar {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .blogs_bg_text,
  .blogs_section .blogs_header,
  .blogs_section .blogs_filter_bar,
  .blogs_section .blog_col,
  .blogs_section .blogs_footer,
  .blogs_section .blog_image,
  .blogs_section .blog_hover_arrow,
  .blogs_section .blog_footer_arrow {
    animation: none !important;

    transition: none !important;
  }

  .blogs_bg_text,
  .blogs_section .blogs_header,
  .blogs_section .blogs_filter_bar,
  .blogs_section .blog_col,
  .blogs_section .blogs_footer {
    opacity: 1;

    transform: none;
  }

  .blogs_section .blog_image {
    transform: scale(1);
  }
}
