.resource-cards,
.resource-cards *,
.resource-cards *::before,
.resource-cards *::after {
  box-sizing: border-box;
}

.resource-cards {
  background: linear-gradient(0deg, #F7931D -34.46%, #A04D0B 51.2%, #A04D0B 100%);
  padding: 56px 0;
  margin: 0 40px;
  border-radius: 80px 0 20px 20px;
}

.resource-cards__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.resource-cards__heading {
  margin: 0 0 8px;
  text-align: center;
  font-family: 'Crimson Text', serif;
  font-size: 55px;
  font-weight: 400;
  color: #fff;
}

.resource-cards__subtitle {
  margin: 0 0 40px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #fff;
}

.resource-cards__grid {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.resource-cards__card {
  flex: 375 1 0;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
  padding: 28px 24px;
  min-height: 420px;
  border-radius: 16px;
  color: #fff;
}

.resource-cards__card--1 {
  background: #00AEEF;
}

/* Figma teal — verify hex */
.resource-cards__card--2 {
  flex: 466 1 0;
  background: #005E81;
  /* Figma dark teal */
}

.resource-cards__card--3 {
  flex: 703 1 0;
  /* widest per Figma; image reads */
  flex-direction: row;
  /* image left, content right */
  align-items: center;
  gap: 28px;
  background: linear-gradient(260deg, #00141B 36.41%, #003346 76.24%, #005E81 98.73%);
  /* Figma */
}

.resource-cards__card--3 .resource-cards__card-image {
  flex: 0 0 48%;
  margin: 0;
}

/* Content wrapper — full-height flex column on every card, so
   margin-top:auto on the button bottom-aligns it (contact-cards trick). */
.resource-cards__card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}

.resource-cards__card-title {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.resource-cards__card-body {
  font-size: 17px;
  line-height: 1.5;
}

.resource-cards__card-body ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.resource-cards__card-body a {
  color: #fff;
}

.resource-cards__card-image {
  margin: 16px 0;
}

.resource-cards__card-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Button pushed to card bottom via margin-top:auto in the flex-column content wrapper */
.resource-cards__card-button {
  margin-top: auto;
  padding-top: 20px;
}

.resource-cards__card-button a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #003346;
  color: #fff;
  border: 2px solid #003346;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.resource-cards__card-button a:hover {
  background: #fff;
  color: #003346;
  border-color: #fff;
}
/* Button icons — CSS-mask + currentColor so the glyph tracks link color
   (flips white on hover for free). Swap the SVGs for Figma exports later. */
.resource-cards__card-button a::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--rc-icon) no-repeat center / contain;
  mask: var(--rc-icon) no-repeat center / contain;
}

.resource-cards__card--1 .resource-cards__card-button a {
  --rc-icon: url("../images/download.svg");
}

.resource-cards__card--2 .resource-cards__card-button a {
  --rc-icon: url("../images/watch.svg");
}

.resource-cards__card--3 .resource-cards__card-button a {
  --rc-icon: url("../images/watch.svg");
  background: #fff;
  color: #003346;
  border-color: #fff;
}

.resource-cards__card--3 .resource-cards__card-button a:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* Mobile — stack (ships now, not later) */
@media (max-width: 1024px) {
  .resource-cards { margin: 0 16px; }
  .resource-cards__grid { flex-direction: column; }

  .resource-cards__card {
    flex: none;
    width: 100%;
  }

  .resource-cards__card--3 {
    flex-direction: column;
  }

  /* card 3 stacks image-over-content on mobile */
}
