/* ============================= */
/* FILTER BAR */
/* ============================= */

.oceanair-post-filter__filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 15px;
  flex-wrap: wrap;
}

.filters-left {
  display: flex;
  gap: 15px;
}

.filter-select {
  appearance: none;
  background: #fff url(../images/chevron-down.svg) no-repeat calc(100% - 14px) center / 24px 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 6.5px 40px 6.5px 14px;
  min-width: 142px;
  font-size: 14px;
  font-weight: 400;
  color: #797979;
  cursor: pointer;
  border-radius: 7px;
}

.filter-select:focus {
  outline: none;
}

.filter-select#order-filter{
  min-width: 201px;
}

.filter-select#category-filter{
  min-width: 213px;
}

/* Search */
.filters-search {
  position: relative;
}

.filters-search input {
  width: 247px;
  appearance: none;
  background: #fff url(../images/chevron-down.svg) no-repeat 14px center / 24px 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 6.5px 14px 6.5px 40px;
  font-size: 14px;
  font-weight: 400;
  color: #797979;
  cursor: pointer;
  border-radius: 7px;
}

.filters-search input:focus {
  outline: none;
}

/* ============================= */
/* GRID */
/* ============================= */

.oceanair-post-filter__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 53px 51px;
}

/* ============================= */
/* CARD */
/* ============================= */

.card {
  display: flex;
  flex-direction: column;
}

.card.helpful-link-card .card__content{
  padding: 32px 20px;
  border-radius: 16px;
  border: 1px solid #007CC5;
  position: relative;
  transition: border .3s;
}

.card.helpful-link-card .card__content:hover{
  border-color: #E5844E;
}

/* Image */
.card__image {
  background: #c9c9c9;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 21px;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content */
.card__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Title */
.oceanair-post-filter__grid .card .card__title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(20px, 15.4413px + 0.5944vw, 24px);
  font-weight: 700;
  margin-bottom: 26px;
  line-height: 1.167;
  text-transform: none;
  color: #000;
  margin-top: 0;
}

.card__title a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

.card__title a:hover,
.card.helpful-link-card:hover .card__title a {
  color: #e5844e;
}

.card__content p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.375;
  color: #6c6c6c;
  margin-block: 0 39px;
}

.card .btn-link {
  color: #007CC5;
  display: flex;
  align-items: center;
  width: max-content;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  gap: 6px;
  transition: color .3s;
  margin-top: auto;
}

.card.helpful-link-card .btn-link:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
}

.card .btn-link:hover {
  color: #E5844E;
}

.card .btn-link:hover svg path {
  stroke: #E5844E;
}

/* ============================= */
/* Pagination */
/* ============================= */
.oceanair-post-filter .ajax-pagination {
  margin-block-start: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.oceanair-post-filter .ajax-pagination>* {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #E6E9EA;
  color: #22282B;
  font-family: "Montserrat";
  font-weight: 500;
  font-size: 16px;
  line-height: 1.375;
  text-align: center;
  transition: all .3s;
  background: rgba(23, 29, 71, 0);
}

.oceanair-post-filter .ajax-pagination .current,
.oceanair-post-filter .ajax-pagination a:hover {
  border-color: rgba(23, 29, 71, 1);
  color: #fff;
  background: rgba(23, 29, 71, 1)
}

.oceanair-post-filter .ajax-pagination :is(.page-prev, .page-next) {
  border-color: #50D0D6;
  color: #50D0D6;
}

.oceanair-post-filter .ajax-pagination :is(.page-prev, .page-next):hover {
  background: #50D0D6;
  border-color: #50D0D6;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1024px) {
  .oceanair-post-filter__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 30px;
  }

  .filters-search input {
    width: 260px;
  }
}

@media (max-width: 767px) {
  .oceanair-post-filter__filters {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .filters-left {
    width: 100%;
    flex-direction: column;
    gap: 15px;
  }

  .filter-select {
    width: 100%;
  }

  .filters-search input {
    width: 100%;
  }

  .oceanair-post-filter__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .oceanair-post-filter .ajax-pagination>* {
    width: 40px;
    height: 40px;
  }
}