/* Shared only by the Success Stories index and its industry filters. */
.stories-redesign {
  padding: 152px 24px 72px;
  color: #202934;
  background: #fff;
}

.stories-container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}

.stories-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stories-search-panel {
  padding: 56px 36px 48px;
  border: 1px solid #861b20;
  border-radius: 28px;
  background: #300305 center / cover no-repeat;
  box-shadow: 0 14px 28px #d50b181f;
}

.stories-search-form {
  display: flex;
  align-items: center;
  max-width: 920px;
  min-height: 66px;
  margin: 0 auto 26px;
  border: 1px solid #e9e4e4;
  border-radius: 16px;
  background: #fff;
}

.stories-search-submit {
  display: grid;
  flex: 0 0 76px;
  place-items: center;
  height: 40px;
  padding: 0;
  border: 0;
  border-right: 1px solid #bfc1c5;
  background: transparent;
  color: #eb001b;
  cursor: pointer;
}

.stories-search-form input {
  min-width: 0;
  width: 100%;
  height: 64px;
  padding: 0 24px;
  border: 0;
  border-radius: 0 16px 16px 0;
  background: transparent;
  color: #202934;
  font: inherit;
  font-size: 20px;
}

.stories-search-form input::placeholder {
  color: #83858b;
  opacity: 1;
}

.stories-redesign a:focus-visible,
.stories-search-submit:focus-visible {
  outline: 3px solid #eb001b;
  outline-offset: 4px;
}

.stories-search-form input:focus-visible {
  outline: none;
  box-shadow: none;
}

.stories-search-form:focus-within {
  border-color: #dc8590;
  box-shadow: 0 0 0 1px #ed17231a;
}

.stories-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.stories-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid #f63444;
  border-radius: 12px;
  background: #fff;
  color: #30343b;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

.stories-filter:hover,
.stories-filter.is-active {
  border-color: #eb001b;
  background: #eb001b;
  color: #fff;
}

.stories-results {
  margin-top: 60px;
}

.stories-results-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.stories-results-summary p {
  margin: 0;
  color: #656d7c;
}

.stories-results-summary a,
.stories-empty a {
  color: #e60015;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.stories-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid #ffdde1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px #d52b3b08;
}

.stories-card-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.72;
  border-radius: 12px;
  background: #f3f5f7;
}

.stories-card-photo::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 64px;
  height: 44px;
  background: #fa263b99;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

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

.stories-photo-fallback {
  display: grid;
  height: 100%;
  place-items: center;
  color: #e60015;
  font-size: 42px;
  font-weight: 800;
}

.stories-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 4px 8px;
}

.stories-card h2 {
  min-height: 2.8em;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.stories-card h2 a {
  display: -webkit-box;
  overflow: hidden;
  color: #202934;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stories-card h2 a:hover {
  color: #e60015;
}

.stories-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  color: #858b99;
  font-size: 17px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.stories-card-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  margin-top: auto;
  color: #ed0015;
  font-size: 18px;
  line-height: 1.4;
}

.stories-card-more:hover {
  color: #b60015;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.stories-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
}

.stories-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #e4e5e9;
  border-radius: 10px;
  background: #fff;
  color: #202934;
  font-size: 16px;
  line-height: 1.3;
}

.stories-pagination .page-numbers.current,
.stories-pagination a:hover {
  border-color: #eb001b;
  background: #eb001b;
  color: #fff;
}

.stories-pagination .page-numbers > span {
  color: inherit;
}

.stories-pagination .current {
  box-shadow: 0 5px 14px #eb001b20;
}

.stories-pagination .dots {
  min-width: 24px;
  padding-inline: 0;
  border-color: transparent;
}

.stories-empty {
  padding: 48px 20px;
  border: 1px solid #ffdde1;
  border-radius: 12px;
  text-align: center;
}

@media (max-width: 1023px) {
  .stories-redesign { padding-top: 128px; }
  .stories-search-panel { padding: 36px 24px; border-radius: 22px; }
  .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stories-filter { padding-inline: 16px; }
  .stories-results { margin-top: 40px; }
}

@media (max-width: 599px) {
  .stories-redesign { padding: 96px 16px 40px; }
  .stories-search-panel { padding: 24px 16px; border-radius: 18px; }
  .stories-search-form { min-height: 54px; margin-bottom: 20px; border-radius: 12px; }
  .stories-search-submit { flex-basis: 50px; height: 30px; }
  .stories-search-submit svg { width: 24px; height: 24px; }
  .stories-search-form input { height: 52px; padding-inline: 14px; font-size: 16px; }
  .stories-filters { gap: 8px; }
  .stories-filter { min-height: 42px; padding: 9px 12px; border-radius: 9px; font-size: 14px; }
  .stories-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .stories-results { margin-top: 32px; }
  .stories-card h2 { font-size: 18px; }
  .stories-card-excerpt { font-size: 16px; }
  .stories-card-more { min-height: 40px; font-size: 16px; }
  .stories-pagination { gap: 5px; margin-top: 28px; }
  .stories-pagination .page-numbers { min-width: 36px; min-height: 40px; padding-inline: 9px; font-size: 14px; }
}
