.montoport-post-listing-grid {
  width: 100%;
}

.montoport-post-listing-grid__track {
  position: relative;
  margin: 0 0 40px;
  border-bottom: 1px solid #d8d8d8;
}

.montoport-post-listing-grid__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 28px;
}

.montoport-post-listing-grid__tab {
  position: relative;
  border: none;
  background: transparent;
  padding: 14px 4px 29px;
  color: #5c5c5c;
  cursor: pointer;
  font-family: 'Ghotam', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.montoport-post-listing-grid__tab:hover,
.montoport-post-listing-grid__tab.is-active {
  color: #2a2a2a;
}

.montoport-post-listing-grid__indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 3px;
  width: 0;
  border-radius: 1px;
  background: #0d8fa8;
  transition: left 0.35s ease, width 0.35s ease;
}

.montoport-post-listing-grid__cards-wrap {
  margin-top: 40px;
}

/* Listing cards: no scroll fade-in or image parallax from layout-switch-cards */
.montoport-post-listing-grid .montoport-layout-switch-cards__body,
.montoport-post-listing-grid .montoport-layout-switch-cards__body :is(
  .montoport-layout-switch-cards__subtitle,
  .montoport-layout-switch-cards__title,
  .montoport-layout-switch-cards__text,
  .montoport-layout-switch-cards__buttons,
  .montoport-post-listing-grid__meta,
  .montoport-post-listing-grid__meta p
) {
  opacity: 1;
  transform: none;
}

.montoport-post-listing-grid .montoport-layout-switch-cards__media img {
  transform: none;
  will-change: auto;
}

.montoport-post-listing-grid__card .montoport-layout-switch-cards__title a {
  color: inherit;
  text-decoration: none;
}

.montoport-post-listing-grid__card .montoport-layout-switch-cards__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.montoport-post-listing-grid .montoport-layout-switch-cards__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.montoport-post-listing-grid__meta {
  margin-top: 10px;
}

.montoport-post-listing-grid__meta p {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b6b6b;
  font-family: 'Ghotam', sans-serif;
  font-size: 12px;
  font-weight: 325;
  line-height: 16px;
}

a.montoport-post-listing-grid__meta-link,
button.montoport-post-listing-grid__meta-link {
  display: flex;
  gap: 15px;
  color: #6b6b6b;
  font-family: 'Ghotam', sans-serif;
  text-decoration: none;
}

button.montoport-post-listing-grid__meta-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.montoport-post-listing-grid__footer {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.montoport-post-listing-grid__load-more,
.montoport-post-listing-grid__page {
  border: 1px solid #00617f;
  background: #00617f;
  color: #fff;
  cursor: pointer;
  font-family: 'Ghotam', sans-serif;
  font-size: 10px;
  font-weight: 350;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.montoport-post-listing-grid__load-more {
  min-width: 140px;
  padding: 12px 24px;
}

.montoport-post-listing-grid__load-more:hover:not(:disabled),
.montoport-post-listing-grid__page:hover:not(.is-active) {
  background: #98a4ae;
  border-color: #98a4ae;
}

.montoport-post-listing-grid__load-more:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.montoport-post-listing-grid__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.montoport-post-listing-grid__page {
  min-width: 40px;
  padding: 10px 14px;
  background: transparent;
  color: #00617f;
}

.montoport-post-listing-grid__page.is-active {
  background: #00617f;
  color: #fff;
}

.montoport-post-listing-grid__empty {
  margin: 24px 0 0;
  text-align: center;
  color: #6b6b6b;
  font-family: 'Ghotam', sans-serif;
  font-size: 14px;
}

.montoport-post-listing-grid.is-loading .montoport-post-listing-grid__grid {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 767px) {
  .montoport-post-listing-grid__tabs {
    gap: 0 16px;
  }

  .montoport-post-listing-grid__cards-wrap {
    margin-top: 24px;
  }
}
