/* =========================
   ATCC RESOURCE COLLECTION
========================= */
.Resource-collection {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 28px !important;
  margin-top: 14px !important;
}

.Resource-collection .sppb-dynamic-content-collection__item {
  position: relative !important;
  overflow: hidden !important;
  min-height: 185px !important;
  padding: 26px 24px 22px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background: linear-gradient(180deg, #f1f1f1 0%, #e7e7e7 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06) !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease !important;
}

.Resource-collection .sppb-dynamic-content-collection__item::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #f47b20 0%, rgba(244,123,32,0.35) 100%) !important;
  opacity: 0.9 !important;
}

.Resource-collection .sppb-dynamic-content-collection__item:hover {
  transform: translateY(-6px) !important;
  background: linear-gradient(180deg, #f7f7f7 0%, #ececec 100%) !important;
  border-color: rgba(244, 123, 32, 0.22) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.10) !important;
}

.Resource-collection .sppb-addon-wrapper,
.Resource-collection .sppb-addon,
.Resource-collection p {
  margin: 0 !important;
  padding: 0 !important;
}

.reso-heading {
  margin: 20px 0 0 0 !important;
  color: #1f2d3d !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
}

.Resource-collection .reso-title {
  display: block !important;
  margin: 0 0 22px 0 !important;
  color: #223142 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  max-width: 95% !important;
}

.Resource-collection a {
  display: inline-block !important;
  text-decoration: none !important;
  margin-top: auto !important;
}

.Resource-collection .reso-download,
.Resource-collection .reso-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  min-width: 150px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #1f2d3d !important;
  background: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(31,45,61,0.08) !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06) !important;
  backdrop-filter: blur(4px) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease !important;
}

.Resource-collection .reso-download::after,
.Resource-collection .reso-link::after {
  content: "→";
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.Resource-collection a:hover .reso-download,
.Resource-collection a:hover .reso-link {
  background: #1f2d3d !important;
  color: #ffffff !important;
  border-color: #1f2d3d !important;
  box-shadow: 0 12px 24px rgba(31,45,61,0.18) !important;
  transform: translateY(-2px) !important;
}

.Resource-collection a:hover .reso-download::after,
.Resource-collection a:hover .reso-link::after {
  opacity: 1;
  transform: translateX(4px);
}

.Resource-collection .sppb-dynamic-content-collection__item::after {
  content: "" !important;
  display: block !important;
  width: 52px !important;
  height: 2px !important;
  margin-top: 18px !important;
  background: linear-gradient(90deg, rgba(244,123,32,0.65), rgba(244,123,32,0.12)) !important;
  border-radius: 999px !important;
}

/* =========================
   TRAUMA CENTER COLLECTION
========================= */
.center-collection {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 26px !important;
}

.center-collection .sppb-dynamic-content-collection__item {
  position: relative !important;
  background: #f2f2f2 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.25s ease !important;
}

.center-collection .sppb-dynamic-content-collection__item:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 38px rgba(0,0,0,0.12) !important;
}

.center-collection .sppb-dynamic-content-image-wrapper {
  overflow: hidden !important;
}

.center-collection .sppb-dynamic-content-image {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
}

.center-collection .sppb-dynamic-content-collection__item:hover img {
  transform: scale(1.05) !important;
}

.center-collection .sppb-addon-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

.center-collection i {
  display: none !important;
}

/* NAME */
.center-collection .crt-name {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1f2d3d !important;
  margin: 14px 16px 4px !important;
  line-height: 1.2 !important;
}

/* CITY */
.center-collection .crt-city {
  font-size: 13px !important;
  color: #7a7a7a !important;
  margin: 0 16px 10px !important;
}

/* LEVEL PILL */
.center-collection .level-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 0 16px 16px !important;
  padding: 6px 12px !important;
  background: #e6e6e6 !important;
  color: #4a4a4a !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}

.center-collection .level-pill::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  position: relative !important;
  top: 0.5px !important;
}

.center-collection .level-pill.level-1::before {
  background: #e53935 !important;
}

.center-collection .level-pill.level-2::before {
  background: #f47b20 !important;
}

.center-collection .level-pill.level-3::before {
  background: #005bea !important;
}

.center-collection .level-pill.level-4::before {
  background: #2e7d32 !important;
}

/* CARD ACCENT BAR */
/* make image wrapper the anchor */
.center-collection .sppb-dynamic-content-image-wrapper {
  position: relative !important;
  overflow: hidden !important;
}

/* accent bar UNDER image */
.center-collection .sppb-dynamic-content-image-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 5px; /* thicker */
  border-radius: 0 0 6px 6px;
}

/* level colors (based on pill inside card) */
.center-collection .sppb-dynamic-content-collection__item:has(.level-1)
.sppb-dynamic-content-image-wrapper::after {
  background: #e53935;
}

.center-collection .sppb-dynamic-content-collection__item:has(.level-2)
.sppb-dynamic-content-image-wrapper::after {
  background: #f47b20;
}

.center-collection .sppb-dynamic-content-collection__item:has(.level-3)
.sppb-dynamic-content-image-wrapper::after {
  background: #005bea;
}

.center-collection .sppb-dynamic-content-collection__item:has(.level-4)
.sppb-dynamic-content-image-wrapper::after {
  background: #2e7d32;

.center-collection .sppb-dynamic-content-collection__item:has(.level-1)::before {
  background: #e53935;
}

.center-collection .sppb-dynamic-content-collection__item:has(.level-2)::before {
  background: #f47b20;
}

.center-collection .sppb-dynamic-content-collection__item:has(.level-3)::before {
  background: #005bea;
}

.center-collection .sppb-dynamic-content-collection__item:has(.level-4)::before {
  background: #2e7d32;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {
  .Resource-collection {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .Resource-collection .sppb-dynamic-content-collection__item {
    min-height: 170px !important;
    padding: 22px 20px !important;
  }

  .center-collection {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .Resource-collection,
  .center-collection {
    grid-template-columns: 1fr !important;
  }

  .reso-heading {
    font-size: 20px !important;
  }

  .Resource-collection .reso-title {
    font-size: 17px !important;
  }
}