/* ==========================================================================
   Blog: index cards and post pages in the redesign style.
   Tokens come from css/aspire.css; breadcrumb and CTA box from css/pages.css.
   ========================================================================== */

/* Post header -------------------------------------------------------------- */
.blog-post-header { background: var(--a-navy); color: #fff; padding: 3rem 0; }
.blog-post-header-inner { max-width: 840px; }
.blog-post-eyebrow {
  display: block;
  color: var(--a-blue-light);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.blog-post-eyebrow-pink { color: #f472b6; }
.blog-post-title {
  color: #fff;
  font-size: clamp(1.875rem, 1.2rem + 1.7vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
}
.blog-post-dek { font-size: 1.125rem; color: rgba(255, 255, 255, 0.92); margin-bottom: 1.5rem; }
.blog-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); }
.blog-post-meta-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.blog-post-meta-item i { color: var(--a-blue-light); }
.blog-post-meta-divider { color: rgba(255, 255, 255, 0.35); }

/* "More to read" rotator (js/article-rotator.js) --------------------------- */
.blog-header-rotator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--a-radius);
  padding: 1.5rem;
}
.blog-header-rotator .promo-icon { color: var(--a-blue-light); font-size: 1.75rem; line-height: 1; margin-bottom: 0.75rem; }
.article-rotator-eyebrow { color: rgba(255, 255, 255, 0.7); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.article-rotator-title { color: #fff; font-size: 1.125rem; font-weight: 700; line-height: 1.35; min-height: 4.6em; margin-bottom: 1rem; }
.article-rotator-title a { display: inline-block; color: #fff; text-decoration: none; transition: opacity 0.3s ease; }
.article-rotator-title a:hover { color: #8cc6ff; text-decoration: underline; }
.article-rotator-title a.is-fading { opacity: 0; }
.article-rotator-dots { display: flex; align-self: stretch; gap: 4px; margin-bottom: 1.25rem; }
.article-rotator-dot { flex: 1 1 0; max-width: 12px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); transition: background 0.3s ease; }
.article-rotator-dot.active { flex-grow: 2; max-width: 20px; background: var(--a-blue-light); }
.blog-header-rotator .promo-link { color: #8cc6ff; font-size: 0.9375rem; font-weight: 700; text-decoration: none; }
.blog-header-rotator .promo-link:hover { color: #fff; text-decoration: underline; }

/* Article ------------------------------------------------------------------ */
.blog-pad-top-bot { padding-top: 2.5rem; padding-bottom: 3.5rem; }
@media (min-width: 992px) { .blog-pad-top-bot { --bs-gutter-x: 3rem; } }
.blog-article { font-size: 1.0625rem; line-height: 1.7; overflow-wrap: break-word; }
.blog-article h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.2; margin: 2.5rem 0 1rem; }
.blog-article h3 { font-size: 1.3125rem; line-height: 1.3; margin: 2rem 0 0.75rem; }
.blog-article h4, .blog-article h5 { font-size: 1.125rem; line-height: 1.35; margin: 1.75rem 0 0.6rem; }
.blog-article > :first-child { margin-top: 0; }
.blog-article > :last-child { margin-bottom: 0; }
.blog-article li { margin-bottom: 0.4rem; }
.blog-article img:not(.button-img), .blog-article video { max-width: 100%; height: auto; border-radius: var(--a-radius); }
.blog-article > img, .blog-article > video { display: block; margin-bottom: 1.5rem; }
.blog-article video { width: 100%; background: #000; }
.blog-article .btn { white-space: normal; }
.blog-article hr { margin: 2.5rem 0; border-color: var(--a-border); opacity: 1; }
.blog-article .domain-score-hr { border-top: 3px solid var(--a-blue); }
.blog-article .cta-box-blue { margin: 2rem 0; }
.article-quote { margin: 2rem 0; padding: 1.5rem 1.75rem; background: var(--a-tint); border-left: 4px solid var(--a-blue); border-radius: var(--a-radius); font-size: 1.25rem; font-weight: 700; line-height: 1.45; }

/* "Speak to Alec / Darren" buttons inside posts */
.center { display: flex; align-items: center; justify-content: center; }
.btn.button-green { max-width: 440px; padding: 0.9rem 1.25rem; text-align: left; line-height: 1.35; }
.button-green .row { flex-wrap: nowrap; }
.button-green .col-3 { width: auto; }
.button-green .col-9 { flex: 1 1 auto; width: auto; }
.button-img { width: 64px; height: 64px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.small-button-text { font-size: 0.8125rem; font-weight: 500; color: rgba(255, 255, 255, 0.88); }

/* Author sidebar ----------------------------------------------------------- */
.blog-side .card { --bs-card-border-color: var(--a-border); --bs-card-border-radius: var(--a-radius); font-size: 0.9375rem; }
.blog-side .card h5 { font-size: 1.0625rem; margin-bottom: 0.75rem; }
.blog-side .card > :last-child { margin-bottom: 0; }
.blog-side hr { border-color: var(--a-border); opacity: 1; }
.blog-profile-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 0.75rem; }
.blog-side .bi-linkedin { font-size: 1.35rem; }
@media (min-width: 992px) and (min-height: 800px) {
  .blog-side-inner { position: sticky; top: 96px; }
}

/* Blog index --------------------------------------------------------------- */
.blog-card { height: 100%; }
.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--a-border);
  border-radius: var(--a-radius);
  color: var(--a-ink);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-card-link:hover, .blog-card-link:focus-visible { color: var(--a-ink); border-color: var(--a-blue); box-shadow: 0 12px 28px rgba(10, 27, 50, 0.12); }
.blog-card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--a-tint); }
.blog-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-image img[src$=".svg"] { object-fit: contain; padding: 2rem; } /* logos shown whole */
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.35rem 1.25rem; }
.blog-card-date { display: block; color: var(--a-muted); font-size: 0.8125rem; font-weight: 700; margin-bottom: 0.5rem; }
.blog-card-title { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 0.6rem; }
.blog-card-summary { display: block; color: var(--a-muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.blog-card-hint { display: block; margin-top: auto; color: var(--a-blue); font-size: 0.9375rem; font-weight: 700; }

/* Newest post, across the full width */
@media (min-width: 992px) {
  .blog-card-featured .blog-card-link { flex-direction: row; }
  .blog-card-featured .blog-card-image { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; position: relative; }
  .blog-card-featured .blog-card-image img { position: absolute; inset: 0; }
  .blog-card-featured .blog-card-body { justify-content: center; padding: 2.5rem; }
  .blog-card-featured .blog-card-title { font-size: 1.875rem; line-height: 1.2; }
  .blog-card-featured .blog-card-summary { font-size: 1.0625rem; }
  .blog-card-featured .blog-card-hint { margin-top: 0.5rem; }
}

@media (max-width: 575.98px) {
  .blog-post-header { padding: 2.25rem 0; }
  .blog-pad-top-bot { padding-top: 1.75rem; padding-bottom: 2.75rem; }
  .blog-header-rotator { padding: 1.25rem; }
  .blog-header-rotator .promo-icon { display: none; }
  .article-quote { padding: 1.25rem; font-size: 1.125rem; }
  .button-img { width: 48px; height: 48px; }
}

@media (max-width: 399.98px) {
  .blog-post-title { font-size: 1.75rem; } /* long words such as "Telecommunications" */
}

/* Links inside the pink warning boxes need a darker blue to stay readable. */
.blog-article .alert-danger a { color: var(--a-blue-dark); }
.blog-article h3.blog-card-h { font-size: 1.125rem; line-height: 1.35; margin: 1.75rem 0 0.6rem; }
