/*
 * cards and media. Flat: 1px hairline + radius, hover = blue border, never a shadow.
 */

/* Ultimate info boxes (.aio-icon-component) are NOT restyled as cards: the same element is used as a white-on-colour
   icon list (People Counting), numbered steps, industry tiles and blog teasers, so a generic card treatment hides
   content. Card treatment is opt-in per context via the pattern list in 05-patterns.css. Only neutral touches here. */
body.wt-site .hoverbox > .vc_column-inner > .wpb_wrapper > .aio-icon-component.style_1:hover {
  border-radius: var(--wt-r-md) !important;
}

/* Info boxes set to "link the whole box" wrap the <a> inside the box's padding, so the padded edge (which lights up
   on hover where the box is a card) wasn't clickable and showed the arrow cursor. Stretch the link over the box. */
body.wt-site .aio-icon-component:has(> a.aio-icon-box-link[href]) {
  position: relative;
}
body.wt-site .aio-icon-component > a.aio-icon-box-link[href]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* Footer / contact boxes */

/* Content images that are framed (whitepaper covers, single images with a border box) */
body.wt-site .wpb_single_image .vc_box_border_grey:has(> img) {
  border-radius: var(--wt-r-md);
}

/* Ultimate carousel arrows */
body.wt-site .ult-carousel-wrapper :is(.slick-prev, .slick-next) {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  border: 1px solid var(--wt-line) !important;
  background: #fff !important;
  color: var(--wt-ink) !important;
  box-shadow: none !important;
}
body.wt-site .ult-carousel-wrapper :is(.slick-prev, .slick-next):hover {
  border-color: var(--wt-blue) !important;
  color: var(--wt-blue) !important;
}
body.wt-site .ult-carousel-wrapper .slick-dots li button::before {
  color: var(--wt-blue) !important;
}

/* Case-study related items (Betheme portfolio) */
body.wt-site .section-post-related .post-related {
  border: 1px solid var(--wt-line);
  border-radius: var(--wt-r-md);
  overflow: hidden;
  background: #fff;
}
body.wt-site .section-post-related .post-related .image_frame {
  border: 0 !important;
}

/* Case-study post grids ("Highlights of Brand Stories" carousels on solution pages): hairline cards, image fills the
   top, no green rule under the image */
body.wt-site div.svc_post_grid.case_study_custom article,
body.wt-site div.svc_post_grid article {
  border: 1px solid var(--wt-line);
  border-radius: var(--wt-r-md) !important;
  overflow: hidden;
}
body.wt-site div.svc_post_grid_s1 article header {
  border-bottom: 1px solid var(--wt-line) !important;
}
body.wt-site div.svc_post_grid article header img.svc_post_image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Careers department tiles: labels ship as #333 on saturated orange/blue fills (some white) — make the saturated tiles all white */
body.wt-site.page-id-24 .vc_col-has-fill > .vc_column-inner:not(.vc_custom_1636316585859, .vc_custom_1636316578758) .wpb_text_column :is(p, span, a, strong) {
  color: #fff !important;
}

/* Contact office cards: tinted rounded fill but no inner padding, so text sits on the card edge */
body.wt-site .font-txt.vc_col-has-fill > .vc_column-inner {
  padding: 20px !important;
  box-sizing: border-box;
}

/* Product-page case-study picks (wavetec-site.php section 10): flat bordered cards (.wt-card--hover), image on top,
   the title link covers the whole card. Up to three per row. */
body.wt-site .wt-cases {
  margin-block: 24px;
}
body.wt-site .wt-cases__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.wt-site .wt-cases__card {
  position: relative;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.wt-site .wt-cases__media {
  border-bottom: 1px solid var(--wt-line);
  background: var(--wt-tint-grey);
}
body.wt-site .wt-cases__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 414 / 364;
  object-fit: cover;
  border-radius: 0 !important; /* the card clips the corners */
}
body.wt-site .wt-cases__title {
  margin: 0 !important; /* theme heading margins */
  padding: 20px 24px 24px;
  font-size: 18px;
  line-height: 1.35;
}
body.wt-site .wt-cases__title a {
  color: var(--wt-ink);
  text-decoration: none;
}
body.wt-site .wt-cases__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
body.wt-site .wt-cases__card:hover .wt-cases__title a {
  color: var(--wt-blue-700);
}
body.wt-site .wt-cases__title a:focus-visible {
  outline: none;
}
body.wt-site .wt-cases__title a:focus-visible::after {
  box-shadow: var(--wt-ring);
  border-radius: inherit;
}
body.wt-site .wt-cases__card:has(a:focus-visible) {
  border-color: var(--wt-blue) !important;
}
@media (max-width: 959px) {
  body.wt-site .wt-cases__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.wt-site .wt-cases { margin-block: var(--wt-section-gap-mobile); }
  body.wt-site .wt-cases__list { grid-template-columns: 1fr; gap: 16px; }
  body.wt-site .wt-cases__title { padding: 16px var(--wt-card-pad-mobile) var(--wt-card-pad-mobile); }
}
