.rmh-resources-hero,
.rmh-resources-section {
  color: #102c4a;
}

.rmh-resources-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.rmh-resources-hero {
  padding: 110px 0 96px;
  background:
    radial-gradient(circle at 82% 24%, rgba(196, 45, 50, 0.12), transparent 31%),
    linear-gradient(135deg, #f7f9fc 0%, #ffffff 62%, #f5f8fb 100%);
  border-bottom: 1px solid #dce4ec;
}

.rmh-resources-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #c42d32;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rmh-resources-eyebrow::before {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: #c42d32;
  content: "";
}

.rmh-resources-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #102c4a;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.rmh-resources-lead {
  max-width: 790px;
  margin: 30px 0 0;
  color: #52667c;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.65;
}

.rmh-resources-section {
  padding: 92px 0;
  background: #fff;
}

.rmh-resources-explore {
  background: #f3f7fa;
  border-top: 1px solid #dce4ec;
}

.rmh-resources-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 42px;
}

.rmh-resources-heading h2 {
  margin: 0;
  color: #102c4a;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.rmh-resources-heading > p {
  max-width: 440px;
  margin: 0;
  color: #5a6d82;
  font-size: 1.02rem;
  line-height: 1.65;
}

.rmh-resource-grid,
.rmh-home-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rmh-resource-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 32px;
  overflow: hidden;
  border: 1px solid #d7e0e9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 44, 74, 0.08);
  scroll-margin-top: 110px;
}

.rmh-resource-card::after {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(196, 45, 50, 0.06);
  content: "";
}

.rmh-resource-type {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf3f8;
  color: #173f66;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.rmh-resource-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 44px;
  border-radius: 16px;
  background: #c42d32;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.rmh-resource-icon.is-blue { background: #194a75; }
.rmh-resource-icon.is-green { background: #17543f; }

.rmh-resource-card h3 {
  margin: 0 0 14px;
  color: #102c4a;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.rmh-resource-card > p {
  margin: 0 0 28px;
  color: #5a6d82;
  font-size: 0.98rem;
  line-height: 1.65;
}

.rmh-resource-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: #c42d32;
  font-weight: 800;
  text-decoration: none;
}

.rmh-resource-link:hover { color: #8e2024; }
.rmh-resource-link[aria-disabled="true"] { color: #8291a0; cursor: not-allowed; }

.rmh-home-link-card {
  position: relative;
  display: grid;
  min-height: 225px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr;
  gap: 12px 18px;
  padding: 30px;
  border: 1px solid #d6e0e9;
  border-radius: 20px;
  background: #fff;
  color: #102c4a;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rmh-home-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 45, 50, 0.45);
  box-shadow: 0 18px 38px rgba(16, 44, 74, 0.1);
}

.rmh-home-link-card span {
  color: #c42d32;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.rmh-home-link-card strong {
  grid-column: 1;
  color: #102c4a;
  font-size: 1.32rem;
  line-height: 1.2;
}

.rmh-home-link-card small {
  grid-column: 1;
  color: #5a6d82;
  font-size: 0.94rem;
  line-height: 1.55;
}

.rmh-home-link-card b {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  color: #c42d32;
  font-size: 1.7rem;
}

.rmh-resource-video-overlay[hidden] { display: none; }

.rmh-resource-video-overlay {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
}

.rmh-resource-video-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 19, 34, 0.78);
  backdrop-filter: blur(8px);
}

.rmh-resource-video-dialog {
  position: relative;
  z-index: 1;
  width: min(1060px, 94vw);
  overflow: hidden;
  border-radius: 22px;
  background: #0d2945;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.rmh-resource-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  color: #fff;
}

.rmh-resource-video-header h2 { margin: 0; color: #fff; font-size: 1.1rem; }
.rmh-resource-video-close { border: 0; background: transparent; color: #fff; font-size: 2rem; cursor: pointer; }
.rmh-resource-video-dialog video { display: block; width: 100%; max-height: 75vh; background: #000; }
body.rmh-resource-video-open { overflow: hidden; }

@media (max-width: 900px) {
  .rmh-resource-grid,
  .rmh-home-link-grid { grid-template-columns: 1fr; }
  .rmh-resources-heading { align-items: start; flex-direction: column; gap: 18px; }
  .rmh-resource-card { min-height: 340px; }
}

@media (max-width: 600px) {
  .rmh-resources-shell { width: min(100% - 30px, 1180px); }
  .rmh-resources-hero { padding: 76px 0 68px; }
  .rmh-resources-section { padding: 68px 0; }
  .rmh-resource-card { padding: 26px; }
  .rmh-resource-video-overlay { padding: 12px; }
}
