/* CoralBay Reefing Hub Grid */
.cb-rhg {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  color: #1d2f3d;
}

.cb-rhg * {
  box-sizing: border-box;
}

.cb-rhg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.cb-rhg-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce8f2;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 14px 34px rgba(16, 40, 70, .07);
}

.cb-rhg-head {
  padding: 18px 18px 14px;
}

.cb-rhg-meta {
  margin: 0 0 7px;
  color: #647987;
  font-size: 13px;
  font-weight: 800;
}

.cb-rhg-title {
  margin: 0;
  color: #16344a;
  font-size: 21px;
  line-height: 1.2;
}

.cb-rhg-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.cb-rhg-title a:hover {
  color: #168bd5 !important;
}

.cb-rhg-image-link {
  display: block;
  background: #eef8ff;
  text-decoration: none !important;
}

.cb-rhg-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}

.cb-rhg-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.cb-rhg-excerpt {
  margin: 0 0 16px;
  color: #5c7080;
  line-height: 1.48;
}

.cb-rhg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  border-radius: 999px;
  padding: 10px 17px;
  background: linear-gradient(135deg, #168bd5, #3BA7FF);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 139, 213, .22);
}

.cb-rhg-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed #cdeaff;
  border-radius: 18px;
  background: #f7fbff;
  color: #647987;
}

.cb-rhg-pagination {
  margin: 24px 0 0;
}

.cb-rhg-pagination ul {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb-rhg-pagination a,
.cb-rhg-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dce8f2;
  border-radius: 999px;
  background: #fff;
  color: #0e5c91;
  text-decoration: none !important;
  font-weight: 900;
}

.cb-rhg-pagination .current {
  background: #16344a;
  border-color: #16344a;
  color: #fff;
}

@media (max-width: 1180px) {
  .cb-rhg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cb-rhg-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cb-rhg-head,
  .cb-rhg-body {
    padding-left: 15px;
    padding-right: 15px;
  }

  .cb-rhg-title {
    font-size: 19px;
  }
}
