/* ============================================================
   Use Case Gallery
   ============================================================ */

/* ---- Filters ---- */
.use-case-gallery .ucg-viewby {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}
.use-case-gallery .ucg-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.use-case-gallery .ucg-select-wrap {
  position: relative;
  min-width: 240px;
}
.use-case-gallery .ucg-select-wrap::after {
  content: "\f107"; /* FontAwesome angle-down */
  font-family: "FontAwesome";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primarycolor);
  pointer-events: none;
}
.use-case-gallery .ucg-filter {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 12px 40px 12px 16px;
  background: var(--white);
  border: 1px solid #ccc;
  border-bottom: 2px solid var(--primarycolor);
  border-radius: 4px 4px 0 0;
  color: var(--primarycolor);
  cursor: pointer;
  outline: none !important;
}

/* ---- Grid + columns ---- */
/* Bootstrap .row is display:flex, so columns already stretch to equal height. */
.use-case-gallery .ucg-col {
  display: flex;
  margin-bottom: 30px;
}

/* ---- Card (the whole card is the link) ---- */
.use-case-gallery .ucg-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 .ucg-card:hover,
.use-case-gallery .ucg-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 .ucg-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 .ucg-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 .ucg-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 .ucg-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 .ucg-industry.industry-industrial {
  color: var(--industrialyellow);
}
.use-case-gallery .ucg-industry.industry-healthcare {
  color: var(--healthcareblue);
}

/* ---- Card body ---- */
.use-case-gallery .ucg-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--lightgray);
}
.use-case-gallery .ucg-title {
  margin: 0 0 16px;
  color: var(--primarycolor);
  font-weight: 600;
  font-size: 18px;
  font-family: "Source Sans 3", sans-serif;
}
.use-case-gallery .ucg-summary {
  margin: 0 0 24px;
  color: var(--text);
}
.use-case-gallery .ucg-readmore {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tertiarycolor);
  font-weight: 700;
  font-size: 15px;
}
.use-case-gallery .ucg-readmore i {
  transition: transform 0.3s ease;
}
.use-case-gallery .ucg-card:hover .ucg-readmore i,
.use-case-gallery .ucg-card:focus .ucg-readmore i {
  transform: translateX(4px);
}

/* ---- No results ---- */
.use-case-gallery .ucg-noresults {
  padding: 20px 0;
}

@media screen and (max-width: 767px) {
  .use-case-gallery .ucg-select-wrap {
    flex: 1 1 100%;
    min-width: 0;
  }
}