/* Finees theme overrides */

/*
 * Compact header when Primary Header Menu is not assigned (all pages).
 * Drops the empty bottom nav row; search + Let's Talk sit on the top bar.
 */
.header--compact .header__main--no-nav {
  display: flex;
  align-items: center;
}

.header--compact .header__top {
  border-bottom: 0;
  width: 100%;
  padding-block: 0.5rem;
  gap: 1rem;
}

.header--compact .header__top-end {
  flex-shrink: 0;
}

.header--compact .header__actions {
  margin-left: 0;
}

.header--compact .header__bottom {
  display: none;
}

/* Footer brand column: keep Contact Us under logo when description is empty */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__brand > .footer__logo {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.footer__brand > .footer__about {
  margin-bottom: 1.5rem;
}

.footer__brand > .footer__contact-btn {
  align-self: flex-start;
}

/* Single author page (author-pg.html) - card chrome missing from kit CSS */
.author-profile {
  background:
    radial-gradient(circle at 12% 8%, rgba(22, 86, 214, 0.07), transparent 40%),
    radial-gradient(circle at 88% 70%, rgba(22, 86, 214, 0.05), transparent 38%),
    #f4f7fc;
}

.author-profile .author-profile__card {
  padding: clamp(1.5rem, 1.15rem + 1.6vw, 2.75rem);
  border: 1px solid rgba(15, 27, 45, 0.08);
  box-shadow: 0 1rem 2.75rem rgba(15, 27, 45, 0.08);
}

.author-profile .author-profile__avatar.img-placeholder {
  aspect-ratio: 1 / 1;
  background-color: #d9e3f5;
}

.author-profile .author-profile__bio p:last-child {
  margin-bottom: 0;
}

.author-profile .section-head,
.blog-list .section-head {
  color: #0f1b2d;
}

.author-profile .author-articles__title,
.blog-list .author-articles__title {
  color: #0f1b2d;
}

/* Author stats: columns match filled items only (no empty grid cell) */
.author-profile__stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.author-profile__stats--1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 14rem;
}

.author-profile__stats--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.author-profile__stats--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Pagination layout - visual style comes from kit .page-numbers (split-circle active) */
.blog-list .navigation.pagination,
.navigation.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  width: 100%;
}

.blog-list .navigation.pagination .nav-links,
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Keep « / » same square size as page numbers (category.html) */
.page-numbers.prev,
.page-numbers.next {
  width: 2.75rem;
  min-width: 2.75rem;
  padding-inline: 0;
}

/* Placeholder media without an uploaded image: no <img>, CSS fill only */
.blog-card__media.img-placeholder {
  min-height: 14rem;
  background: #e9ecef;
}

.blog-card__media.img-placeholder a:empty {
  display: block;
  min-height: 14rem;
}

/* Why Choose Us media: gray placeholder when no image */
.choose__media.img-placeholder {
  aspect-ratio: auto;
  background-color: #ccc;
  background-image: none;
}

/* Author single profile - match author-pg.html social circles */
.author-profile__socials {
  width: 100%;
}

.author-profile__social {
  width: 2.75rem !important;
  height: 2.75rem !important;
  min-width: 2.75rem;
  border-radius: 50% !important;
  border: 1px solid #dce6f9 !important;
  background: #fff !important;
  color: #0f1b2d !important;
  box-shadow: 0 0.5rem 1rem rgba(15, 27, 45, 0.08) !important;
  flex-shrink: 0;
}

.author-profile__social .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.author-profile__social:hover,
.author-profile__social:focus-visible {
  color: #fff !important;
  background: #1656d6 !important;
  border-color: #1656d6 !important;
}

.author-profile__avatar {
  overflow: hidden !important;
}

.author-profile__avatar img {
  border-radius: inherit;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Initials fallback when no photo (testimonials, authors, etc.) */
.finserv-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--finserv-avatar-bg, #1656d6);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  user-select: none;
}

.finserv-avatar--initials,
.testimonial-card__avatar.finserv-avatar--initials,
.blog-detail__author-avatar.finserv-avatar--initials,
.author-profile__avatar.finserv-avatar--initials,
.author-archive__avatar.finserv-avatar--initials {
  background: transparent;
  overflow: hidden;
}

.testimonial-card__avatar {
  width: 3rem;
  height: 3rem;
  overflow: hidden;
}

.testimonial-card__avatar img,
.testimonial-card__avatar .finserv-avatar-initials {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__avatar .finserv-avatar-initials {
  font-size: 0.875rem;
}

.blog-detail__author-avatar .finserv-avatar-initials {
  font-size: 1.5rem;
}

.author-profile__avatar .finserv-avatar-initials {
  font-size: clamp(2rem, 8vw, 3.25rem);
}

.author-archive__avatar .finserv-avatar-initials {
  font-size: 2rem;
}

.author-profile__badge {
  display: inline-flex !important;
}

/* Authors archive - compact profile cards (same format, less stretch) */
.author-archive {
  background:
    radial-gradient(circle at 8% 0%, rgba(22, 86, 214, 0.08), transparent 42%),
    radial-gradient(circle at 92% 18%, rgba(22, 86, 214, 0.06), transparent 36%),
    #fff;
}

.author-archive .section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem !important;
}

.author-archive .section-head,
.author-archive .section-head h2,
.author-archive .section-head p {
  color: #0f1b2d;
}

.author-archive .section-head h2 {
  font-size: clamp(1.65rem, 1.35rem + 1.1vw, 2.15rem);
  line-height: 1.25;
}

.author-archive .section-head .eyebrow {
  color: #1656d6;
}

.author-archive__grid {
  max-width: 66rem;
  margin-inline: auto;
}

.author-archive__grid > .col {
  max-width: 22rem;
}

.author-archive__card {
  display: flex;
  padding: 1.4rem 1.2rem 1.25rem;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 1.1rem;
  box-shadow: 0 0.65rem 1.6rem rgba(15, 27, 45, 0.055);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.author-archive__card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 86, 214, 0.22);
  box-shadow: 0 1rem 2rem rgba(15, 27, 45, 0.09);
}

.author-archive__inner {
  width: 100%;
  gap: 0.7rem;
}

.author-archive__avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border: 4px solid #fff;
  box-shadow: 0 0.7rem 1.4rem rgba(15, 27, 45, 0.13);
}

.author-archive__avatar.author-profile__avatar {
  max-width: 120px;
}

.author-archive__avatar img,
.author-archive__avatar .avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-archive__verified {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  color: #fff;
  background: #1656d6;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0.25rem 0.65rem rgba(22, 86, 214, 0.35);
}

.author-archive__role-wrap {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.author-archive .author-profile__role {
  margin-bottom: 0;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.author-archive__name,
.author-archive .author-profile__name {
  min-height: 0;
  margin: 0;
  font-size: 1.25rem !important;
  line-height: 1.25;
  font-weight: 700;
}

.author-archive__name a {
  color: #0f1b2d;
}

.author-archive__name a:hover,
.author-archive__name a:focus-visible {
  color: #1656d6;
}

.author-archive__bio {
  min-height: 0;
  max-width: 30ch;
  margin-inline: auto;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(15, 27, 45, 0.68);
}

.author-archive__stats {
  gap: 0.5rem;
  display: grid;
}

.author-archive .author-profile__stat {
  padding: 0.7rem 0.45rem;
}

.author-archive .author-profile__stat-value {
  margin-bottom: 0.15rem;
  font-size: 1.2rem;
}

.author-archive .author-profile__stat-label {
  font-size: 0.75rem;
  line-height: 1.3;
}

.author-archive__stats--1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 8.5rem;
  margin-inline: auto;
}

.author-archive__stats--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.author-archive__stats--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.author-archive__tags {
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
}

.author-archive .author-profile__tag {
  padding: 0.3rem 0.7rem;
  font-size: 0.8125rem;
}

.author-archive__footer {
  gap: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(15, 27, 45, 0.08);
}

.author-archive__social {
  min-height: 0;
}

.author-archive .author-profile__social {
  width: 2.5rem !important;
  height: 2.5rem !important;
  min-width: 2.5rem;
}

.author-archive .author-profile__social .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.author-archive__cta {
  width: 100%;
  max-width: 12.5rem;
  min-height: 2.7rem;
  padding-block: 0.55rem;
  font-size: 0.9rem;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .author-archive__grid > .col {
    max-width: 21rem;
  }
}

@media (max-width: 575.98px) {
  .author-archive__avatar,
  .author-archive__avatar.author-profile__avatar {
    width: 104px;
    height: 104px;
    max-width: 104px;
  }

  .author-archive__grid > .col {
    max-width: none;
  }

  .author-archive__stats--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Social + expand (archive + single author) */
.author-profile__social.author-profile__social--more {
  border: 1.5px dashed rgba(15, 27, 45, 0.28) !important;
  background: #fff !important;
  color: #0f1b2d !important;
  cursor: pointer;
  padding: 0;
  box-shadow: none !important;
}

.author-profile__social.author-profile__social--more:hover,
.author-profile__social.author-profile__social--more:focus-visible,
.author-profile__social.author-profile__social--more[aria-expanded="true"] {
  color: #fff !important;
  background: #1656d6 !important;
  border-color: #1656d6 !important;
}

.finserv-author-socials__extra.is-open,
.finserv-author-socials__extra:not([hidden]) {
  display: inline-flex !important;
}

.finserv-author-socials__extra[hidden] {
  display: none !important;
}

/* Contact map - keep iframe visible even when parent height collapses */
.contact-map {
  min-height: 22rem;
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 22rem;
  height: 100%;
  border: 0;
}

.contact-card__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/*
 * Contact page spacing - match HTML section.contact.section-gap
 * (cards + form/map in one padded section, then FAQ section-gap).
 */
.finserv-contact-page > .finserv-container.section-gap:has(+ .finserv-container .finserv-col--contact-form) {
  padding-bottom: 0;
}

.finserv-contact-page > .finserv-container:has(.finserv-col--contact-form) {
  margin-top: 1.5rem; /* HTML .row.g-4 between cards and form */
  padding-bottom: 2.5rem; /* section-gap-sm */
}

@media (min-width: 768px) {
  .finserv-contact-page > .finserv-container:has(.finserv-col--contact-form) {
    padding-bottom: 3.75rem; /* section-gap */
  }
}

/* Home 2 hero slider - hide stacked slides before Swiper initializes */
.home-two .hero-slider:not(.swiper-initialized) .swiper-slide:not(:first-child),
.finserv-home-page .hero-slider:not(.swiper-initialized) .swiper-slide:not(:first-child) {
  display: none;
}

.home-two .hero-slider .swiper-slide:not(.swiper-slide-active),
.finserv-home-page .hero-slider .swiper-slide:not(.swiper-slide-active) {
  pointer-events: none;
}

/* Home pages - block content wrapper (no extra chrome) */
.finserv-home-page > .finserv-container + .finserv-container {
  margin-top: 0;
}

/*
 * Homepage FAQ - match themeopia index.html / homepage-2.html exactly.
 * Block wrappers must not fight theme .faq / .faq__card / .faq__tabs rules.
 */
.faq .faq__tabs,
.faq .finserv-tabs__nav.faq__tabs,
.faq .finserv-tabs__nav--left.faq__tabs {
  justify-content: safe center;
}

.faq .faq__card {
  padding: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
  box-shadow: 0 1rem 2.5rem rgba(15, 27, 45, 0.06);
}

.faq .finserv-tabs--with-media > .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

@media (min-width: 992px) {
  .faq .finserv-tabs--with-media > .row {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 3rem;
  }
}

/* FAQ media column - match HTML: fill the col height (not 16/9 img-placeholder) */
@media (min-width: 992px) {
  .faq .finserv-tabs--with-media > .row {
    align-items: stretch;
  }

  .faq .finserv-tabs--with-media > .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }

  .faq .finserv-tabs--with-media > .row > [class*="col-"] > .faq__media {
    flex: 1 1 auto;
    align-self: stretch;
  }
}

.faq .faq__media {
  width: 100%;
  min-height: 22rem;
  height: 100%;
}

/* FAQ media - CSS placeholder when no image (kill global 16/9 from .img-placeholder) */
.faq__media.img-placeholder {
  aspect-ratio: auto;
  width: 100%;
  min-height: 22rem;
  height: 100%;
  background-color: #e9ecef;
  background-image: none;
}

.faq__media.img-placeholder::before {
  content: none;
}

.hero__media.img-placeholder {
  min-height: 18rem;
  background-color: #e9ecef;
  border-radius: 0.75rem;
}

/* Trusted band - Themeopia row: separate Happy Customers + logos cards (g-3 gap) */
.trusted__avatar {
  aspect-ratio: 1 / 1;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

.trusted__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trusted__avatar .finserv-avatar-initials {
  width: 100%;
  height: 100%;
  font-size: 0.65rem;
}

.trusted__avatar.img-placeholder {
  background-color: #e9ecef;
  background-image: none;
}

.trusted__avatar.finserv-avatar--initials {
  background: transparent;
}

.trusted__logo.img-placeholder {
  aspect-ratio: auto;
  width: 8.75rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  background-color: #e9ecef;
  background-image: none;
  filter: none;
  opacity: 0.85;
}

.trusted__logo-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.trusted__customers .text-primary .icon {
  width: 0.875rem;
  height: 0.875rem;
}

/* Service card link - plain SVG only (never nested .cta-btn__icon) */
.service-card__link .cta-btn__icon {
  display: none !important;
}

.service-card__link {
  color: #333;
  background: #fff;
  border: 0;
  box-shadow: none;
  outline: none;
}

/* Match Themeopia HTML: hover/active arrow is $secondary (#0f1b2d), not blue + white ring */
.service-card--active .service-card__link,
.service-card:hover .service-card__link,
.service-card:focus-within .service-card__link,
.service-card .card-anchor:hover .service-card__link,
.service-card .card-anchor:focus-visible .service-card__link,
.services__item:first-child .service-card .service-card__link {
  color: #fff !important;
  background: #0f1b2d !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.services__item:first-child .service-card .service-card__body {
  color: #fff;
  background: #1656d6;
}

.service-card__link .icon,
.service-card__link svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  stroke: currentColor;
}

/* Hide broken empty <img src=""> so placeholder background shows */
.img-placeholder img[src=""],
.service-card__image[src=""],
.team-card__media img[src=""] {
  display: none;
}

/* Sidebar CTA title must stay light on dark navy */
.blog-widget--cta .blog-widget__title--light {
  color: #fff;
}

/* Category counts - individual circular badges (not a continuous strip) */
.blog-widget__count {
  width: 1.75rem;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border-radius: 50%;
  line-height: 1;
  flex-shrink: 0;
}

/* Recent Posts thumbs - keep fixed size; prevent featured images from exploding the sidebar */
.blog-widget__post-thumb {
  display: block;
  width: 5rem;
  min-width: 5rem;
  height: 4.5rem;
  max-width: 5rem;
  max-height: 4.5rem;
  aspect-ratio: auto;
  overflow: hidden;
}

.blog-widget__post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.blog-widget .min-w-0 {
  min-width: 0;
}

/* FAQ page layout: treat block tab panels like faq.html `.faq-page__panels`. */
.faq--page .finserv-tabs__content.faq-page__panels > .tab-pane + .tab-pane {
  border-top: 1px solid #e7e8ea;
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  padding-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
}

@media (max-width: 991.98px) {
  .faq--page .finserv-tabs__content.faq-page__panels > .tab-pane {
    opacity: 1 !important;
    display: block !important;
  }
}

/* FAQ page layout: treat block tab panels like faq.html `.faq-page__panels`. */
.faq--page .finserv-tabs__content.faq-page__panels > .tab-pane + .tab-pane {
  border-top: 1px solid #e7e8ea;
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  padding-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
}

@media (max-width: 991.98px) {
  .faq--page .finserv-tabs__content.faq-page__panels > .tab-pane {
    opacity: 1 !important;
    display: block !important;
  }
}

/*
 * About Us story + stats - match about.html `section.about`
 * (one continuous wash; stats are a sibling container in WP).
 */
.finserv-container:has(.about__story),
.finserv-container.about {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, #dce6f9, rgba(255, 255, 255, 0) 35%),
    #f3f7fd;
}

.finserv-container:has(.about__story) + .finserv-container:has(.process__stats),
.finserv-container.about + .finserv-container:has(.process__stats) {
  background: #f3f7fd;
}

/* About story image - match about.html (not the old 2-col gallery grid) */
.about__gallery {
  display: block;
  grid-template-columns: none;
  max-width: min(100%, 34rem);
  margin: 1.5rem auto 2.5rem;
  gap: 0;
}

@media (min-width: 992px) {
  .about__gallery {
    margin-top: 0;
    margin-bottom: 0;
    max-width: 100%;
  }
}

.about__image {
  object-fit: contain;
  border-radius: 0;
  width: 100%;
  height: auto;
}

.about__image--main {
  aspect-ratio: auto;
}

/* Why Choose Us - allow more than two progress rings */
.choose__rings {
  flex-wrap: wrap;
  justify-content: flex-start;
}

/*
 * Status pages (Thank You / 404)
 * Match HTML: section.error-page is full-bleed with its own header-overlap padding.
 * If an older page still wraps status-page in finserv/container, neutralize that chrome
 * so we do not get double padding / boxed background.
 */
.finserv-status-page > .finserv-container:not(.section-gap) {
  padding: 0;
  margin: 0;
}

.finserv-status-page > .finserv-container:not(.section-gap) > .container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.finserv-status-page > .finserv-container:not(.section-gap) > .container > .row {
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
}

.finserv-status-page > .finserv-container:not(.section-gap) > .container > .row > [class*="col"] {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  flex: 0 0 100%;
}

.finserv-status-page .finserv-container-column__inner {
  height: auto !important;
}

.finserv-status-page .error-page {
  width: 100%;
}

/* Shared section-head title (replaces per-section styleVariant classes) */
.section-head__title {
  color: #0f1b2d;
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
}

.section-head__highlight {
  color: #1656d6;
  background: linear-gradient(#d0ddf7, #d0ddf7) 0 88% / 100% 0.3em no-repeat;
}

/* About stat: **accent** colour + ***highlight*** underline (title-style markup) */
.process__stat-accent,
.editor-styles-wrapper .process__stat-accent {
  color: #1656d6;
}

.process__stat-highlight,
.editor-styles-wrapper .process__stat-highlight {
  color: #1656d6;
  background: linear-gradient(#d0ddf7, #d0ddf7) 0 88% / 100% 0.3em no-repeat;
}

/* About - block-editable story column matches about.html UI */
.about__body .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.about__body .about__title,
.about__body h2 {
  margin-bottom: 1rem;
}

.about__body .about__highlight {
  color: var(--bs-primary, #2f6fed);
  background: linear-gradient(rgba(47, 111, 237, 0.35), rgba(47, 111, 237, 0.35)) no-repeat 0 88% / 100% 0.35em;
}

.about__body .wp-block-list.about__features,
.about__body ul.about__features {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.about__body .about__features li,
.about__body .about__features .wp-block-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: calc(50% - 0.5rem);
  margin: 0;
}

.about__body .about__feature-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--bs-primary, #2f6fed);
}

.about__body .wp-block-buttons {
  margin-top: 0.25rem;
}

.about__body .wp-block-button__link.btn.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Process step arrows - lock to Themeopia HTML (vertically centered on card edge) */
.process .process__steps,
.process .process__item,
.process .process-card,
.wp-block-finserv-home-process .process__steps,
.wp-block-finserv-home-process-card,
.wp-block-finserv-home-process-card .process-card {
  overflow: visible !important;
}

.process .process-card,
.wp-block-finserv-home-process-card .process-card {
  position: relative !important;
}

/*
 * Later cards paint over earlier ones by default, so half the arrow
 * sits under the next card. Keep earlier steps above later ones.
 */
.process .process__item,
.wp-block-finserv-home-process-card.process__item,
.wp-block-finserv-home-process-card {
  position: relative !important;
  z-index: 1;
}

.process .process__item:nth-child(1),
.wp-block-finserv-home-process .process__item:nth-child(1),
.wp-block-finserv-home-process > .wp-block-finserv-home-process-card:nth-child(1) {
  z-index: 4 !important;
}

.process .process__item:nth-child(2),
.wp-block-finserv-home-process .process__item:nth-child(2),
.wp-block-finserv-home-process > .wp-block-finserv-home-process-card:nth-child(2) {
  z-index: 3 !important;
}

.process .process__item:nth-child(3),
.wp-block-finserv-home-process .process__item:nth-child(3),
.wp-block-finserv-home-process > .wp-block-finserv-home-process-card:nth-child(3) {
  z-index: 2 !important;
}

.process .process__item:nth-child(4),
.wp-block-finserv-home-process .process__item:nth-child(4),
.wp-block-finserv-home-process > .wp-block-finserv-home-process-card:nth-child(4) {
  z-index: 1 !important;
}

.process .process-card__arrow,
.wp-block-finserv-home-process-card .process-card__arrow {
  position: absolute !important;
  top: 50% !important;
  right: -1.375rem !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(-50%) !important;
  background: #fff;
  color: inherit;
  z-index: 5 !important;
  line-height: 0 !important;
  transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}

/* Match Themeopia HTML hover: blue circle + white chevron */
.process .process-card:hover .process-card__arrow,
.wp-block-finserv-home-process-card .process-card:hover .process-card__arrow {
  --bs-border-color: #1656d6;
  background: #1656d6 !important;
  color: #fff !important;
  border-color: #1656d6 !important;
}

.process .process-card__arrow .icon,
.process .process-card__arrow svg,
.wp-block-finserv-home-process-card .process-card__arrow .icon,
.wp-block-finserv-home-process-card .process-card__arrow svg {
  display: block !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 !important;
  stroke: currentColor;
}

@media (max-width: 575.98px) {
  .process .process-card__arrow,
  .wp-block-finserv-home-process-card .process-card__arrow {
    top: auto !important;
    right: auto !important;
    bottom: -1.375rem !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(90deg) !important;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .process .process__item:nth-child(2n) .process-card__arrow,
  .wp-block-finserv-home-process .process__item:nth-child(2n) .process-card__arrow {
    display: none !important;
  }
}

/* Hero features: allow more than 3 items */
@media (min-width: 576px) {
  .hero__features,
  .editor-styles-wrapper .hero__features {
    grid-template-columns: repeat(auto-fit, minmax(9rem, max-content)) !important;
  }
}

/*
 * Single career / job-description sidebar + content panel.
 * (Also mirrored in themeopia style.scss for the next CSS rebuild.)
 */
.job-detail__panel,
.job-detail__card {
  padding: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  border: 1px solid rgba(15, 27, 45, 0.08);
  box-shadow: 0 0.25rem 1.25rem rgba(15, 27, 45, 0.04);
}

.job-detail__aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.job-detail__meta {
  font-size: 0.9375rem;
  color: rgba(15, 27, 45, 0.7);
}

.job-detail__meta-sep {
  color: rgba(15, 27, 45, 0.35);
}

.job-detail__card-title {
  font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
  line-height: 1.3;
}

.job-detail__card-text {
  font-size: 0.9375rem;
  color: rgba(51, 51, 51, 0.75);
}

.job-detail__card--snapshot .job-detail__card-title {
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 27, 45, 0.08);
}

.job-detail__facts {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-top: 1.25rem;
  padding-top: 0.25rem;
}

.job-detail__fact {
  gap: 0.875rem !important;
}

.job-detail__fact-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #1656d6;
  background: #e8eefb;
  border-radius: 0.5rem;
}

.job-detail__fact-icon .icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}

.job-detail__fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(15, 27, 45, 0.55);
}

.job-detail__fact-value {
  font-size: 0.9875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0f1b2d;
}

.job-detail__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f1b2d;
}

.job-detail__control {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-color: #dee2e6;
  border-radius: 0.5rem;
}

.job-detail__control:focus {
  border-color: #1656d6;
  box-shadow: 0 0 0 0.25rem rgba(22, 86, 214, 0.15);
}

.job-detail__hint {
  font-size: 0.8125rem;
  color: rgba(51, 51, 51, 0.65);
}

.job-detail__required {
  color: #b32d2e;
  font-weight: 700;
}

.job-detail__resume-error {
  font-size: 0.875rem;
  font-weight: 600;
  color: #b32d2e;
}

.job-detail__resume-error:not([hidden]) {
  display: block;
}

.job-detail__control[aria-invalid="true"] {
  border-color: #b32d2e;
}

.job-detail__panel .blog-detail__content > *:first-child {
  margin-top: 0;
}

/* Optional blue accent bar on any paragraph (toolbar “Blue bar”). */
.wp-block-paragraph.is-style-accent-bar,
p.is-style-accent-bar {
  padding-left: 1rem !important;
  border-left: 2px solid #1656d6 !important;
}

.finserv-tab__intro > p {
  margin-bottom: 0.75rem;
}
.finserv-tab__intro > p:last-child {
  margin-bottom: 0;
}

.job-detail__panel .blog-detail__content .about__highlight,
.finserv-tab__intro .about__highlight,
.finserv-tab__items .about__highlight {
  color: var(--bs-primary, #1656d6);
  background: linear-gradient(rgba(47, 111, 237, 0.2), rgba(47, 111, 237, 0.2)) no-repeat 0 88% / 100% 0.3em;
}

/*
 * About Stats placed after Home Process (services / home):
 * keep the numbers visually inside the process band (match HTML).
 */
.process.section-gap:has(+ .wp-block-finserv-container),
.process.section-gap:has(+ .finserv-container) {
  padding-bottom: 0;
}

.process.section-gap + .wp-block-finserv-container .process__stats,
.process.section-gap + .finserv-container .process__stats,
.editor-styles-wrapper .wp-block-finserv-home-process + .wp-block-finserv-container .process__stats {
  margin-top: 2.5rem;
  margin-bottom: 4.5rem;
}

/*
 * Careers culture: md bottom borders used :nth-child(-n+2), which is more
 * specific than the xl reset - so underlines stuck on the first 2 cards in
 * the 4-column editor/front layout. Scope 2×2 dividers to below xl.
 */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .careers-culture__grid > li:nth-child(odd) .careers-culture__pillar {
    border-right: 1px solid rgba(22, 86, 214, 0.12);
  }

  .careers-culture__grid > li:nth-child(-n + 2) .careers-culture__pillar {
    border-bottom: 1px solid rgba(22, 86, 214, 0.12);
  }
}

@media (min-width: 1200px) {
  .careers-culture__grid > li .careers-culture__pillar,
  .careers-culture__grid > li:nth-child(-n + 2) .careers-culture__pillar,
  .careers-culture__grid > li:nth-child(odd) .careers-culture__pillar {
    border-bottom: 0;
  }

  .careers-culture__grid > li:not(:last-child) .careers-culture__pillar {
    border-right: 1px solid rgba(22, 86, 214, 0.12);
  }

  .careers-culture__grid > li:last-child .careers-culture__pillar {
    border-right: 0;
  }
}
