.lg-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.lg-filter-text {
  font-weight: 600;
  color: #016d89;
  margin-bottom: 0;
}

/* Filter buttons */
.lg-filter {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.5em 0 1.25rem;
}

.lg-btn {
  border: 1px solid #016d89 !important;
  background: #fff !important;
  color: #016d89 !important;
  border-radius: 10px !important;
  padding: 0.6rem 1rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.lg-btn:hover {
  background: #3d91a7 !important;
  color: white !important;
  border-color: #3D91A7 !important;
}

.lg-btn.is-active,
.lg-btn[aria-pressed="true"] {
  background: #016d89 !important;
  color: #fff !important;
  border-color: #016d89 !important;
}

/* Grid layout */
.lg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) {
  .lg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .lg-grid {
    grid-template-columns: 1fr;
  }

  .lg-loadmore {
    width: 100%;
  }
}

/* Card styles */
.lg-card {
  position: relative;
  background: #f5f5f5;
  border-radius: 14px;
  overflow: hidden;
  min-height: 190px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Head bar (default) */
.lg-card__head {
  height: 24px;
  background: #676767;
}

/* Body */
.lg-card__body {
  padding: 1rem;
}
.lg-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
}
.lg-card__excerpt {
  margin: 0;
  color: #676767;
}
.lg-card__link {
  position: absolute;
  inset: 0;
  text-indent: -9999px;
}

/* Load more button */
.lg-actions {
  text-align: center;
  margin: 1.25rem 0 2rem;
}
.lg-loadmore {
  padding: 0.75rem 1.25rem !important;
  border-radius: 12px !important;
  border: 0 !important;
  background: #016d89 !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.lg-loadmore:hover {
  background: #245768 !important;
}
.lg-wrap.is-loading .lg-loadmore {
  opacity: 0.6;
  pointer-events: none;
}
.lg-loadmore[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Icon badge bottom-right */
.lg-card__badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #676767;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 1rem;
  margin-bottom: 1rem;
}
.lg-card__badge-img {
  max-width: 68%;
  max-height: 68%;
  display: block;
  object-fit: contain;
}

/* ===== Family colors ===== */
/* Initiatives */
.lg-card--initiatives .lg-card__head,
.lg-card--initiatives .lg-card__badge {
  background: #016d89;
}

/* Resources (resource/tool/report) */
.lg-card--resources .lg-card__head,
.lg-card--resources .lg-card__badge {
  background: #676767;
}

/* Events */
.lg-card--events .lg-card__head,
.lg-card--events .lg-card__badge {
  background: #bbbf9a;
}
