
/* =========================================================
   ANTIBE RESOURCES
   ========================================================= */

.resources-page {
  color: var(--ink);
  background: #fff;
}

.resources-page .section-shell {
  width: min(calc(100% - 56px), var(--content-max));
}

.resources-hero {
  position: relative;
  overflow: hidden;
  min-height: 790px;
  background: #eaf5fb;
}

.resources-hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 88%,rgba(255,103,48,.39),transparent 29%),
    radial-gradient(circle at 87% 13%,rgba(74,177,255,.58),transparent 31%),
    radial-gradient(circle at 72% 88%,rgba(31,170,160,.16),transparent 30%),
    linear-gradient(135deg,#e3f3fb,#f4f9fb 50%,#fff4ec);
}

.resources-hero__shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 56px), var(--page-max));
  min-height: 790px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.resources-hero__content {
  width: min(calc(100% - 80px), 1440px);
  margin: auto;
  padding: 86px 0 74px;
}

.resources-hero h1 {
  max-width: 1240px;
  margin: 20px 0 0;
  color: #050505;
  font-size: clamp(58px,5vw,84px);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 400;
}

.resources-hero__lead {
  max-width: 900px;
  margin: 25px 0 0;
  color: #405961;
  font-size: 19px;
  line-height: 1.65;
}

.resources-hero__content > .btn {
  margin-top: 34px;
}

.resources-library {
  padding: 110px 0 120px;
  background: #f6f9fb;
}

.resources-section-head {
  max-width: 1040px;
}

.resources-section-head h2 {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(45px,3.8vw,63px);
  line-height: 1.07;
  letter-spacing: -.047em;
  font-weight: 400;
}

.resources-toolbar {
  margin-top: 42px;
  display: grid;
  gap: 16px;
}

.resources-search {
  max-width: 680px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(8,45,50,.10);
  border-radius: 999px;
  background: #fff;
}

.resources-search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #61767c;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.resources-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 16px;
}

.resources-search input::placeholder {
  color: #91a0a4;
}

.resources-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resources-filters button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(8,45,50,.10);
  border-radius: 999px;
  color: #60747a;
  background: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.resources-filters button.is-active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
  margin-top: 36px;
}

.resource-card {
  min-height: 540px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(8,45,50,.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(18,58,82,.05);
}

.resource-card.is-hidden {
  display: none;
}

.resource-card__visual {
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%,rgba(74,177,255,.20),transparent 31%),
    linear-gradient(145deg,#eef7fd,#fff6ee);
}

.resource-card__visual--checklist {
  grid-template-columns: repeat(3,58px);
  gap: 10px;
}

.resource-card__visual--checklist span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg,var(--orange-1),var(--orange-2));
  font-size: 22px;
  font-weight: 600;
}

.resource-card__visual--brief {
  align-content: center;
  gap: 11px;
}
.resource-card__visual--brief i {
  width: 180px;
  height: 14px;
  display: block;
  border-radius: 5px;
  background: rgba(20,98,207,.20);
}
.resource-card__visual--brief i:nth-child(2){width:135px}
.resource-card__visual--brief i:nth-child(3){width:160px}

.resource-card__visual--calculator strong,
.resource-card__visual--seo,
.resource-card__visual--landing {
  color: #1462cf;
  font-size: 58px;
  font-weight: 500;
}

.resource-card__visual--audit {
  grid-template-columns: repeat(3,80px);
  gap: 12px;
}
.resource-card__visual--audit span {
  height: 110px;
  border-radius: 12px;
  background: rgba(74,177,255,.22);
}
.resource-card__visual--audit span:nth-child(2){height:150px;background:rgba(255,103,48,.25)}
.resource-card__visual--audit span:nth-child(3){height:90px;background:rgba(31,170,160,.22)}

.resource-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.resource-card__type {
  color: #73858a;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.resource-card h3 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 29px;
  line-height: 1.15;
  font-weight: 400;
}

.resource-card h3 a {
  color: inherit;
}

.resource-card__body > p {
  margin: 15px 0 0;
  color: #697b7f;
  font-size: 15px;
  line-height: 1.62;
}

.resource-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.resource-card__tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: #667a7f;
  background: #f1f5f7;
  font-size: 15px;
}

.resource-card__body > a,
.resource-card__coming {
  margin-top: auto;
  padding-top: 24px;
  font-size: 15px;
  font-weight: 600;
}

.resource-card__body > a {
  color: var(--ink);
}

.resource-card__coming {
  color: #91a0a4;
}

.resources-empty {
  margin-top: 28px;
  padding: 34px;
  border: 1px dashed rgba(8,45,50,.18);
  border-radius: 20px;
  text-align: center;
  background: #fff;
}

.resources-empty strong,
.resources-empty span {
  display: block;
}

.resources-empty strong {
  color: var(--ink);
  font-size: 20px;
}

.resources-empty span {
  margin-top: 8px;
  color: #73858a;
  font-size: 15px;
}

.resources-help {
  padding: 110px 0 120px;
  background: #fff;
}

.resources-help__card {
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  padding: 50px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 14%,rgba(74,177,255,.26),transparent 29%),
    radial-gradient(circle at 9% 90%,rgba(255,103,48,.19),transparent 29%),
    linear-gradient(135deg,#151822,#102d3d 58%,#07383a);
}

.resources-help__card > div {
  max-width: 1020px;
}

.resources-help__card > div > span {
  color: #9bd5ff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.resources-help__card h2 {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(42px,3.5vw,58px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 400;
}

.resources-help__card p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.65);
  font-size: 16px;
  line-height: 1.65;
}

.resources-final-cta h2 {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1120px) {
  .resources-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .resources-help__card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .resources-hero,
  .resources-hero__shell {
    min-height: auto;
  }
  .resources-hero__shell {
    width: calc(100% - 40px);
  }
  .resources-hero__content {
    width: 100%;
  }
  .resources-page .section-shell {
    width: calc(100% - 40px);
  }
}

@media (max-width: 720px) {
  .resources-hero__shell,
  .resources-page .section-shell {
    width: calc(100% - 30px);
  }
  .resources-hero__content {
    padding-top: 50px;
  }
  .resources-hero h1 {
    font-size: 8vw;
    line-height: 1.08;
  }
  .resources-hero__lead {
    font-size: 17px;
  }
  .resources-grid {
    grid-template-columns: 1fr;
  }
  .resources-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .resources-filters button {
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .resources-library,
  .resources-help {
    padding-top: 80px;
    padding-bottom: 86px;
  }
  .resources-section-head h2,
  .resources-help__card h2 {
    font-size: 40px;
  }
  .resource-card {
    min-height: 480px;
  }
  .resources-help__card {
    min-height: 0;
    padding: 36px 25px;
  }
}


/* =========================================================
   V40 — RESOURCE CARD ICON REFINEMENTS
   ========================================================= */

.resource-card {
  min-height: 460px;
}

.resource-card__body {
  padding: 28px;
}

.resource-card__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(8,45,50,.07);
  border-radius: 19px;
  color: #1462cf;
  background:
    radial-gradient(circle at 82% 12%, rgba(74,177,255,.24), transparent 34%),
    linear-gradient(145deg, #eef8fd 0%, #ffffff 55%, #fff5ee 100%);
  box-shadow: 0 12px 28px rgba(21,65,93,.07);
}

.resource-card:nth-child(2n) .resource-card__icon {
  color: #0c7f83;
  background:
    radial-gradient(circle at 15% 86%, rgba(31,170,160,.19), transparent 34%),
    linear-gradient(145deg, #edf9f7 0%, #ffffff 57%, #f1f7ff 100%);
}

.resource-card:nth-child(3n) .resource-card__icon {
  color: #ff6336;
  background:
    radial-gradient(circle at 84% 14%, rgba(255,103,48,.18), transparent 34%),
    linear-gradient(145deg, #fff6ef 0%, #ffffff 58%, #f0f7fd 100%);
}

.resource-card__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-card__type {
  margin-top: 0;
}

/* Old visual blocks are no longer part of the listing cards. */
.resource-card > .resource-card__visual {
  display: none;
}

@media (max-width: 560px) {
  .resource-card {
    min-height: 430px;
  }
}
