
/* Card Styling */
.algolia-result {
  margin-bottom: 1.5rem;
  padding: 0 12px;
}

.algolia-result .card {
  border: none;
  transition: all 0.3s ease;

  overflow: hidden;
  border-radius: 5px;
  background: #FFF;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);
}

.algolia-result .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.algolia-result .card-img-top {
  width: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  height: 212px;
  align-self: stretch;
  aspect-ratio: 3/2;
}

@media (min-width: 768px) {
  .algolia-result .card-img-top {
    max-width: 170px;
    height: 120px;
  }
}

.algolia-result .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.algolia-result .card-top {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.algolia-result .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.algolia-result .card-title a {
  color: var(--color-rcslt-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.algolia-result .card-title a:hover {
  color: #0066cc;
}

.algolia-result .content {
  color: #666;
  font-size: 0.875rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.algolia-result .content mark,
.algolia-result .content .ais-Highlight-highlighted {
  background: #fff3cd;
  padding: 0.125rem 0.25rem;
  border-radius: 2px;
  font-weight: 500;
  color: #856404;
}

.algolia-result .content-wrapper {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.algolia-result .nav-pills {
  margin-bottom: 0;
}

.algolia-result .nav-pills .nav-link {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #0066cc;
  color: #fff;
  border: none;
  cursor: default;
}

.algolia-result .nav-pills .nav-link.active {
  background-color: #0066cc;
}

.algolia-result small {
  color: #6c757d;
  font-size: 0.8125rem;
  margin: 0;
}

.algolia-result .lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  gap: 6px;
  border-radius: 20px 0 0 20px;
  background-color: #64EEB4;
  width: 103px;
  margin-right: -20px;
  color: #2F334F;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  line-height: normal;
}

.algolia-result .lock-icon img {
  width: 16px;
  height: 16px;
  display: block;
}


.search-card {
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.search-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.search-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  background: #f6f6f6;
}

.search-card-breadcrumb {
  color: #888;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: normal;
}

.search-card-breadcrumb .breadcrumb-item a:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(64, 171, 252, 0.75) !important;
}

.search-card-breadcrumb .breadcrumb-item  {
  padding: 3px 3px 3px 0;
}

.search-card-breadcrumb .breadcrumb-item + .breadcrumb-item {
  max-width: 100%;
  display: inline-flex;
}

.search-card-breadcrumb .breadcrumb-list {
  flex-wrap: wrap
}

@media (max-width: 575px) {
  .breadcrumb-list .breadcrumb-intermediate {
    display: none;
  }

  .search-card-breadcrumb .breadcrumb-item + .breadcrumb-item {
    white-space: wrap;
  }
}

.search-card-breadcrumb .breadcrumb-item + .breadcrumb-item:before {
  content: "\200C";
  background-image: url("../../../images/svg/search/breadcrumb-arrow-tip-dark.svg");
  background-repeat: no-repeat;
  margin-right: 5px;
  margin-left: 5px;
  width: 6px;
  height: 20px;
  background-position: center;
}

.search-card-breadcrumb .breadcrumb-item a {
  color: #1E2133;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.search-card-breadcrumb .breadcrumb-item a:hover {
  font-weight: 700;
}

.search-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.search-card-title a {
  color: #000;
  text-decoration: none;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.search-card-title a:hover {
  color: #0066cc;
}

.algolia-result .search-card-time {
  margin-bottom: 16px;
}

.search-time-to-read-text {
  color: #1E2133;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: normal;
  margin-left: 6px;
}

.search-time-icon {
  vertical-align: middle;
  margin-right: 2px;
}

.algolia-result  .car-top-container {
  flex-direction: column;
}

@media (min-width: 768px) {
  .algolia-result  .car-top-container {
    flex-direction: row;
  }

  .algolia-result .search-card-time {
    margin-bottom: auto;
    margin-top: 6px;
  }
}

.search-card-desc {
  color: #444;
  min-height: 60px;
  max-height: 5.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
  align-self: center;
}

@media (min-width: 768px) {
  .search-card-has-image .search-card-desc {
    padding-right: 32px;
  }

  .search-card-has-image .search-card-img {
    min-width: 145px;
  }
}

@media (min-width: 992px) {
  .search-card-has-image .search-card-img {
    min-width: 175px;
  }
}

.search-card-desc mark {
  padding: 0;
}

.search-card-footer {
  padding-top: 0.5rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-card-footer > div:first-child {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.search-card-footer > div:last-child {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.search-card-badge {
  background: #fff;
  height: 30px;
  padding: 10px 14px;
  gap: 4px;
  border-radius: 20px;
  border: 1px solid #000;
  color: #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 14px;
}

.search-card-footer .date {
  color: #333;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 23px;
  padding: 10px 0;
}

.search-card-meta-list {
  gap: 0.5rem;
}

.search-card-meta-item:not(:first-child)::before {
  content: "•";
  margin: 0 0.5em;
  color: #A7A7A7;
  font-size: 1rem;
  line-height: 14px;
  padding: 10px 0;
}


/* SLT Voices Author Avatars - Scoped to Search Results */
.search-card-meta-item .slt-avatar {
  border-radius: 20px;
  border: none;
}

.search-card-meta-item .slt-author-name {
  color: #1E2133;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration-line: underline;
}

.search-author-tooltip.tooltip {
  --bs-tooltip-bg: #fff;
  --bs-tooltip-color: #fff;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.15));
}

.search-author-tooltip.tooltip a {
  color: #1E2133;
}

.search-author-tooltip.show {
  opacity: 1;
}

.search-card-meta-item .search-author-tooltip a {
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration-line: underline;
}

.search-card-meta-item.collaborator img:not(:first-child) {
  margin-left: -15px;
}

.search-card-meta-item.collaborator .collaborators-avatar-count-1 {
  width: 45px
}

.search-card-meta-item.collaborator .collaborators-avatar-count-2 {
  width: 65px
}

.search-card-meta-item.collaborator .collaborators-avatar-count-3 {
  width: 85px;
}

@media (min-width: 768px) and (max-width: 805px) {
  .search-card-meta-item .author-names-container {
    line-height: 1.6;
  }
}

@media (min-width: 768px) {
  .search-card-meta-item.collaborator .collaborators-avatar-count-2 {
    width: 70px
  }

  .search-card-meta-item.collaborator .collaborators-avatar-count-3 {
    width: 100px;
  }
}

@media (max-width: 767px) {
  .algolia-result {
    padding: 0 8px;
    margin-bottom: 1rem;
  }

  .algolia-result .card-body {
    padding: 1rem;
  }
}
