/* ============================================================
   Use Case Gallery (Featured)
   ============================================================ */

/* ---- Header (headline + View All) ---- */
.use-case-gallery-featured .ucgf-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 32px;
}
.use-case-gallery-featured .ucgf-title {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}
.use-case-gallery-featured .ucgf-viewall {
  margin-left: auto; /* keeps View All right-aligned even when there's no headline */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primarycolor);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.use-case-gallery-featured .ucgf-viewall i {
  transition: transform 0.3s ease;
}
.use-case-gallery-featured .ucgf-viewall:hover i {
  transform: translateX(4px);
}

/* ---- Grid + columns ---- */
/* Bootstrap .row is display:flex, so columns already stretch to equal height. */
.use-case-gallery-featured .ucgf-col {
  display: flex;
  margin-bottom: 30px;
}

/* ---- Card (the whole card is the link) ---- */
.use-case-gallery-featured .ucgf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 40, 85, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* liftup hover — matches the pattern used on the other blocks */
.use-case-gallery-featured .ucgf-card:hover,
.use-case-gallery-featured .ucgf-card:focus {
  transform: translateY(-8px);
  box-shadow: 0 18px 30px rgba(0, 40, 85, 0.15);
  z-index: 2;
  text-decoration: none;
  color: inherit;
}

/* ---- Media (featured image) ---- */
.use-case-gallery-featured .ucgf-card-media {
  position: relative;
  height: 260px;
  background-color: var(--lightgray);
  background-size: cover;
  background-position: center;
}

/* Customer logo, top-right white box */
.use-case-gallery-featured .ucgf-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 60%;
  padding: 14px 20px;
  background: var(--white);
}
.use-case-gallery-featured .ucgf-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
}

/* Industry bar, bottom of the image */
.use-case-gallery-featured .ucgf-industry {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px;
  background: var(--primarycolor);
  color: var(--white); /* fallback for industries other than the two below */
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.use-case-gallery-featured .ucgf-industry.industry-industrial {
  color: var(--industrialyellow);
}
.use-case-gallery-featured .ucgf-industry.industry-healthcare {
  color: var(--healthcareblue);
}

/* ---- Card body ---- */
.use-case-gallery-featured .ucgf-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--lightgray);
}
.use-case-gallery-featured .ucgf-title-card {
  margin: 0 0 16px;
  color: var(--primarycolor);
  font-weight: 600;
  font-size: 18px;
  font-family: "Source Sans 3", sans-serif;
}
.use-case-gallery-featured .ucgf-summary {
  margin: 0 0 24px;
  color: var(--text);
}
.use-case-gallery-featured .ucgf-readmore {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tertiarycolor);
  font-weight: 700;
  font-size: 15px;
}
.use-case-gallery-featured .ucgf-readmore i {
  transition: transform 0.3s ease;
}
.use-case-gallery-featured .ucgf-card:hover .ucgf-readmore i,
.use-case-gallery-featured .ucgf-card:focus .ucgf-readmore i {
  transform: translateX(4px);
}