/* Resources — Blog */

.apit-blog-page {
  margin: 0;
  background: #ffffff;
  color: #0b1b2b;
}

.apit-blog {
  position: relative;
  z-index: 1;
  font-family: "General Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding:
    calc(var(--apit-announce-h, 40px) + var(--apit-header-h, 80px) + 2.75rem)
    4.5vw 5.5rem;
  background:
    radial-gradient(ellipse 48% 36% at 100% 0%, rgba(0, 136, 204, 0.1), transparent 58%),
    linear-gradient(180deg, #f4f8fb 0%, #ffffff 28%);
}

.apit-blog-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.apit-blog-header {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.apit-blog-cat {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.7rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 136, 204, 0.1);
  border: 1px solid rgba(0, 136, 204, 0.22);
  font-family: Mulish, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0088cc;
}

.apit-blog-eyebrow,
.apit-post-kicker {
  margin: 0 0 0.75rem;
  font-family: Mulish, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0088cc;
}

.apit-blog-title,
.apit-post-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #111111;
}

.apit-blog-lead {
  margin: 0.9rem 0 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #5c6570;
}

.apit-blog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.apit-blog-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: stretch;
  padding: 0.85rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(10, 61, 122, 0.1);
  box-shadow: 0 16px 40px rgba(10, 61, 122, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.apit-blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 136, 204, 0.28);
  box-shadow: 0 22px 48px rgba(0, 136, 204, 0.12);
}

.apit-blog-card-media {
  position: relative;
  min-height: 13.5rem;
  border-radius: 0.9rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0, 136, 204, 0.16), rgba(10, 61, 122, 0.08)),
    #eef4f8;
}

.apit-blog-card-media img,
.apit-post-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apit-blog-card-media img {
  position: absolute;
  inset: 0;
}

.apit-blog-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.15rem 0.45rem 0.55rem;
}

.apit-blog-card-title {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #111111;
}

.apit-blog-card-excerpt {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5c6570;
}

.apit-blog-card-more {
  margin-top: 1rem;
  font-family: Mulish, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0088cc;
}

.apit-post {
  background: #ffffff;
}

.apit-post-inner {
  max-width: 760px;
}

.apit-post-back {
  display: inline-flex;
  margin-bottom: 1.35rem;
  color: #0088cc;
  font-family: Mulish, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.apit-post-back:hover {
  color: #0a3d7a;
}

.apit-post-title {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
}

.apit-post-hero {
  margin: 1.75rem 0 0;
  border-radius: 1.15rem;
  overflow: hidden;
  background: #eef4f8;
  aspect-ratio: 16 / 8;
}

.apit-post-hero.is-empty {
  display: none;
}

.apit-post-figure {
  margin: 0.35rem 0 1.2rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #f4f8fb;
}

.apit-post-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.apit-post-figure figcaption {
  padding: 0.7rem 0.95rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #5c6570;
}

.apit-post-body {
  margin-top: 2rem;
}

.apit-post-body p,
.apit-post-body li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #243140;
}

.apit-post-body p {
  margin: 0 0 1.05rem;
}

.apit-post-body h2 {
  margin: 2.15rem 0 0.85rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111111;
}

.apit-post-body h3 {
  margin: 1.45rem 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #0a3d7a;
}

.apit-post-body ol {
  margin: 0.4rem 0 1.15rem;
  padding: 0;
  list-style: none;
  counter-reset: apit-blog-step;
}

.apit-post-body ol > li {
  counter-increment: apit-blog-step;
  position: relative;
  margin: 0 0 0.95rem;
  padding: 0.95rem 1rem 0.95rem 3.4rem;
  border-radius: 0.9rem;
  background: #f6f9fc;
  border: 1px solid rgba(10, 61, 122, 0.08);
}

.apit-post-body ol > li::before {
  content: counter(apit-blog-step);
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #0088cc;
  color: #ffffff;
  font-family: Mulish, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.apit-post-body ol > li strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #111111;
}

.apit-post-body ul {
  margin: 0.35rem 0 1.15rem;
  padding-left: 1.15rem;
}

.apit-post-body ul li {
  margin: 0 0 0.55rem;
}

.apit-post-body blockquote {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1.05rem;
  border-left: 3px solid #0088cc;
  border-radius: 0 0.75rem 0.75rem 0;
  background: #f4f8fb;
  color: #0a3d7a;
}

.apit-post-cta {
  color: #0088cc;
  font-weight: 600;
  text-decoration: none;
}

.apit-post-cta:hover {
  text-decoration: underline;
}

.apit-post-table-wrap {
  margin: 1rem 0 1.35rem;
  overflow-x: auto;
  border-radius: 0.9rem;
  border: 1px solid rgba(10, 61, 122, 0.1);
}

.apit-post-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
  font-size: 0.95rem;
}

.apit-post-table th,
.apit-post-table td {
  padding: 0.8rem 0.95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(10, 61, 122, 0.08);
}

.apit-post-table th {
  background: #0b1b2b;
  color: #ffffff;
  font-family: Mulish, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.apit-post-table td:first-child {
  font-weight: 600;
  color: #111111;
  white-space: nowrap;
}

.apit-post-table tr:last-child td {
  border-bottom: 0;
}

.apit-post-table tbody tr:nth-child(even) td {
  background: #f7fafc;
}

@media (max-width: 760px) {
  .apit-blog-list,
  .apit-blog-card {
    grid-template-columns: 1fr;
  }

  .apit-blog-card-media {
    min-height: 12rem;
  }

  .apit-blog-card-body {
    padding: 0.35rem 0.45rem 0.7rem;
  }
}
