/* Sticky footer */
body.sr-cases-index {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.sr-cases-index .site-footer {
  margin-top: auto;
}

.sr-ready .site-nav__item--case .site-nav__link {
  color: #1677ff;
}

.sr-ready .site-nav__item--case .site-nav__link::after {
  opacity: 1;
  transform: scaleX(1);
}

.goodstype01-top {
  display: none;
}

.inpage-container {
  padding: 0 0 104px;
}

.inpage-container > .container {
  width: 100%;
  max-width: calc(var(--header-shell) + var(--header-pad) * 2);
  padding-inline: var(--header-pad);
}

.sr-ready .inner-hero--case .inner-hero__container {
  width: 100%;
  max-width: calc(var(--header-shell) + var(--header-pad) * 2);
  padding-inline: var(--header-pad);
}

.inpage-main-content {
  min-width: 0;
}

.cs-nav {
  display: flex;
  gap: 12px;
  margin: 72px 0 64px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dfe8f5;
}

.cs-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid #155cae;
  border-radius: 0;
  background: #fff;
  color: #155cae;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.cs-nav-btn:hover,
.cs-nav-btn:focus {
  border-color: #1677ff;
  background: #1677ff;
  color: #fff;
  text-decoration: none;
}

.cs-section {
  padding: 72px 0 92px;
}

.cs-section--real-projects {
  margin-top: 8px;
  padding-top: 64px;
  border-top: 1px solid #dfe8f5;
}

.cs-section-hd {
  max-width: 920px;
  margin-bottom: 42px;
}

.cs-section-label {
  position: relative;
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 8px;
  color: #1677ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.cs-section-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: #1677ff;
}

.cs-section-title {
  margin: 0 0 16px;
  color: #071f3f;
  font-size: clamp(34px, 2.4vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.cs-section-sub {
  margin: 0;
  color: #49617d;
  font-size: 15px;
  line-height: 1.75;
}

.cs-grid {
  list-style: none;
  margin: -14px;
  padding: 0;
}

.cs-grid > li {
  padding: 14px;
}

.case-card {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cddced;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: #1677ff;
  box-shadow: 0 18px 36px rgba(13, 45, 84, .12);
}

.case-image {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: #eef4fb;
}

.case-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .28s ease, filter .28s ease;
}

.case-card:hover .case-image img {
  filter: brightness(.76);
  transform: scale(1.04);
}

.case-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
  background: linear-gradient(to top, rgba(4, 19, 39, .94), rgba(4, 19, 39, .58) 50%, rgba(4, 19, 39, 0));
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}

.case-card:hover .case-hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.case-hover h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .46);
  color: #d7e8ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.case-hover p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  line-height: 1.6;
}

.case-cta {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.case-cta:hover,
.case-cta:focus {
  color: #9bc8ff;
  text-decoration: none;
}

#cs-client-cases .case-hover {
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
}

#cs-client-cases .case-hover .case-tag {
  margin-bottom: 0;
}

.case-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 14px 18px;
  border-top: 1px solid #dfe8f5;
  color: #102945;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

#cs-real-projects .cs-grid {
  margin: -7px;
}

#cs-real-projects .cs-grid > li {
  padding: 7px;
}

.case-card--gallery {
  border: 0;
  background: transparent;
}

.case-card--gallery:hover {
  transform: none;
  box-shadow: none;
}

.case-card--gallery .case-image {
  height: 150px;
  border: 1px solid #d6e2f0;
}

.case-card--gallery .case-image img {
  transition: transform .2s ease, filter .2s ease;
}

.case-card--gallery:hover .case-image img {
  filter: brightness(.84);
  transform: scale(1.025);
}

.case-card--gallery .case-hover {
  justify-content: center;
  align-items: center;
  padding: 18px;
  background: rgba(3, 18, 38, .66);
  text-align: center;
}

.case-card--gallery .case-hover h3 {
  font-size: 14px;
}

.case-card--gallery .case-hover p {
  margin: 0;
  font-size: 12px;
}

.rpc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #dfe8f5;
}

.rpc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid #cddced;
  border-radius: 0;
  background: #fff;
  color: #24415f;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.rpc-arrow:hover:not(:disabled) {
  border-color: #1677ff;
  background: #1677ff;
  color: #fff;
}

.rpc-arrow:disabled {
  color: #a5b5c8;
  cursor: default;
  opacity: .65;
}

.rpc-page-info {
  min-width: 52px;
  color: #49617d;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.cs-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 12px 0 34px;
  padding: 48px 0 0;
  border-top: 1px solid #dfe8f5;
}

.cs-cta-content {
  min-width: 0;
}

.cs-cta-title {
  margin: 0 0 10px;
  color: #071f3f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.28;
}

.cs-cta-desc {
  margin: 0;
  color: #49617d;
  font-size: 14px;
  line-height: 1.7;
}

.cs-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 148px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid #1677ff;
  border-radius: 0;
  background: #fff;
  color: #096de6;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}

.cs-cta-btn:hover,
.cs-cta-btn:focus {
  border-color: #1677ff;
  background: #f5f9ff;
  color: #096de6;
  text-decoration: none;
}

hr {
  display: none;
}

.site-footer {
  margin-top: 0;
}

@media (max-width: 991px) {
  .cs-nav {
    margin-top: 52px;
  }

  .case-image {
    height: 190px;
  }
}

@media (max-width: 767px) {
  .cs-nav {
    flex-direction: column;
    margin: 42px 0 46px;
  }

  .cs-nav-btn {
    width: 100%;
  }

  .cs-section {
    padding-bottom: 52px;
  }

  .cs-section-title {
    font-size: 26px;
  }

  .cs-grid {
    margin: -8px;
  }

  .cs-grid > li,
  #cs-real-projects .cs-grid > li {
    padding: 8px;
  }

  .case-image {
    height: 165px;
  }

  .case-title {
    min-height: 58px;
    font-size: 12px;
  }

  .case-hover {
    display: none;
  }

  .case-card:hover .case-image img,
  .case-card--gallery:hover .case-image img {
    filter: none;
    transform: none;
  }

  .case-card--gallery .case-image {
    height: 132px;
  }

  .cs-cta-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
}

.cs-section-intro {
  max-width: 760px;
  margin: 0 0 28px;
}

.cs-section-intro > span {
  color: #1677ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
}

.cs-section-intro h2 {
  margin: 8px 0 10px;
  color: #071f3f;
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 900;
}

.cs-section-intro p {
  margin: 0;
  color: #587087;
  font-size: 14px;
  line-height: 1.7;
}

.case-project-register {
  padding: 58px 0;
  border-top: 1px solid #dae5f0;
}

.case-register-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.case-register-grid article {
  display: flex;
  min-height: 190px;
  padding: 22px;
  border: 1px solid #d7e3ef;
  background: #fff;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.case-register-grid article:hover {
  border-color: #8bbcf1;
  box-shadow: 0 16px 28px rgba(14, 55, 101, .1);
  transform: translateY(-3px);
}

.case-register-grid span {
  color: #1677ff;
  font-size: 12px;
  font-weight: 800;
}

.case-register-grid h3 {
  margin: 14px 0 0;
  color: #102c49;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.case-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.case-card-link:hover,
.case-card-link:focus {
  color: inherit;
  text-decoration: none;
}

.case-card-link:focus-visible {
  outline: 3px solid rgba(22, 119, 255, .38);
  outline-offset: 4px;
}

.case-detail-wrap {
  padding-top: 64px;
  padding-bottom: 80px;
}

.case-detail {
  color: #425e78;
}

.case-detail__back {
  display: inline-flex;
  margin-bottom: 24px;
  color: #1677ff;
  font-size: 14px;
  font-weight: 800;
}

.case-detail__header {
  max-width: 980px;
  margin-bottom: 36px;
}

.case-detail__eyebrow {
  margin: 0 0 12px;
  color: #1677ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.case-detail__title {
  margin: 0;
  color: #071f3f;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.25;
}

.case-detail__lead {
  max-width: 840px;
  margin: 18px 0 0;
  color: #587087;
  font-size: 17px;
  line-height: 1.85;
}

.case-detail__hero {
  margin: 0;
  background: #eef4fa;
}

.case-detail__hero img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}

.case-detail__facts {
  display: grid;
  margin: 0 0 48px;
  border: 1px solid #d7e3ef;
  border-top: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-detail__fact {
  min-width: 0;
  padding: 22px 24px;
  border-right: 1px solid #d7e3ef;
}

.case-detail__fact:last-child {
  border-right: 0;
}

.case-detail__fact span {
  display: block;
  margin-bottom: 7px;
  color: #73879a;
  font-size: 12px;
}

.case-detail__fact strong {
  color: #102c49;
  font-size: 17px;
  line-height: 1.45;
}

.case-detail__content {
  display: grid;
  align-items: start;
  gap: 52px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
}

.case-detail__copy h2 {
  margin: 0 0 20px;
  color: #071f3f;
  font-size: 30px;
  font-weight: 900;
}

.case-detail__copy p {
  margin: 0;
  color: #425e78;
  font-size: 16px;
  line-height: 2;
}

.case-detail__side-image {
  margin: 0;
}

.case-detail__side-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-detail__side-image figcaption {
  padding-top: 10px;
  color: #73879a;
  font-size: 13px;
}

.case-detail__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding: 30px 34px;
  background: #0b2748;
  color: #fff;
}

.case-detail__cta h2 {
  margin: 0 0 7px;
  font-size: 24px;
  font-weight: 900;
}

.case-detail__cta p {
  margin: 0;
  color: #c9d7e6;
}

.case-detail__cta a {
  flex: 0 0 auto;
  padding: 13px 22px;
  background: #1677ff;
  color: #fff;
  font-weight: 800;
}

@media (max-width: 991px) {
  .case-detail__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-detail__fact:nth-child(2) {
    border-right: 0;
  }

  .case-detail__fact:nth-child(-n+2) {
    border-bottom: 1px solid #d7e3ef;
  }

  .case-detail__content {
    gap: 32px;
    grid-template-columns: 1fr;
  }

  .case-detail__side-image {
    max-width: 720px;
  }
}

@media (max-width: 991px) {
  .case-register-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .case-detail-wrap {
    padding-top: 42px;
    padding-bottom: 56px;
  }

  .case-detail__header {
    margin-bottom: 26px;
  }

  .case-detail__lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .case-detail__hero img {
    min-height: 240px;
  }

  .case-detail__facts {
    margin-bottom: 38px;
    grid-template-columns: 1fr;
  }

  .case-detail__fact,
  .case-detail__fact:nth-child(2) {
    padding: 17px 18px;
    border-right: 0;
    border-bottom: 1px solid #d7e3ef;
  }

  .case-detail__fact:last-child {
    border-bottom: 0;
  }

  .case-detail__copy h2 {
    font-size: 25px;
  }

  .case-detail__copy p {
    font-size: 15px;
    line-height: 1.9;
  }

  .case-detail__cta {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 42px;
    padding: 25px 22px;
  }

  .case-detail__cta a {
    width: 100%;
    text-align: center;
  }

  .case-project-register {
    padding: 42px 0;
  }

  .case-register-grid {
    grid-template-columns: 1fr;
  }

  .case-register-grid article {
    min-height: 155px;
  }
}

@media (max-width: 420px) {
  .case-image {
    height: 138px;
  }

  .case-card--gallery .case-image {
    height: 112px;
  }

  .rpc-pagination {
    gap: 10px;
  }

  .rpc-arrow {
    min-width: 72px;
    padding: 0 14px;
  }
}

/* Keep the final CTA close to the case grid without stacked outer spacing. */
.sr-cases-index .inpage-container {
  padding-bottom: 64px;
}

.sr-cases-index #cs-client-cases {
  padding-bottom: 48px;
}

.sr-cases-index .tr-directory-cta {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .sr-cases-index .inpage-container {
    padding-bottom: 48px;
  }

  .sr-cases-index #cs-client-cases {
    padding-bottom: 36px;
  }
}
