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

.cc-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 18px;
  isolation: isolate;
}

.cc-card__bg,
.cc-card__overlay,
.cc-card__inner {
  position: absolute;
  inset: 0;
}

.cc-card__bg {
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.45s ease;
}

.cc-card__overlay {
  background: rgba(17, 27, 74, 0.68);
  transition: background-color 0.35s ease;
}

.cc-card__inner {
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px;
}

.cc-card__title-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cc-card__title {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.05em;
  font-weight: 600;
  text-transform: uppercase;
  max-width: 78%;
}

.cc-card__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-end;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  padding-bottom: 10px;
  margin-top: 18px;
}

.cc-card__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: currentColor;
  transform: translateX(0);
  transition-property: transform, opacity;
  transition-duration: 280ms;
  transition-timing-function: ease;
}

.cc-card:hover .cc-card__bg {
  transform: scale(1.05);
}

.cc-card:hover .cc-card__link::after,
.cc-card:focus-within .cc-card__link::after {
  transform: translateX(-10px);
}

@media (max-width: 1024px) {
  .cc-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cc-cards-grid {
    grid-template-columns: 1fr;
  }

  .cc-card__title {
    max-width: 100%;
  }
}

/* Steps widget */
.cc-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.cc-steps__item {
  width: 78%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.cc-steps__item.is-linked {
  padding-bottom: 28px;
}

.cc-steps__item.is-linked::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 28px;
  background: #18214D;
}

.cc-steps__box {
  width: 100%;
  display: block;
  border-style: solid;
  border-width: 2px;
  border-color: #18214D;
  background: transparent;
  padding: 18px 22px;
  box-sizing: border-box;
}

.cc-steps__text {
  color: #18214D;
  text-align: center;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .cc-steps--stack-mobile .cc-steps__item {
    width: 100% !important;
  }

  .cc-steps--stack-mobile .cc-steps__text {
    font-size: 20px;
  }

  .cc-steps--keep-mobile .cc-steps__item {
    width: 90%;
  }

  .cc-steps--keep-mobile .cc-steps__text {
    font-size: 18px;
  }
}

/* Segment widget */
.cc-segment {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.cc-segment-card {
  overflow: hidden;
}

.cc-segment-card--featured {
  display: grid;
  grid-template-columns: 30% 1fr;
  min-height: 155px;
}

.cc-segment-card--small {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.cc-segment-card__media {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.cc-segment-card--small .cc-segment-card__media {
  min-height: 160px;
}

.cc-segment-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-segment-card__content {
  background: #1D295B;
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.cc-segment-card__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
}

.cc-segment-card__desc {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}

.cc-segment-card__desc p:last-child {
  margin-bottom: 0;
}

.cc-segment-card__link {
  margin-top: auto;
  align-self: flex-end;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  position: relative;
  padding-bottom: 8px;
}

.cc-segment-card__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 1024px) {
  .cc-segment__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-segment-card--featured {
    grid-template-columns: 1fr;
  }

  .cc-segment-card--featured .cc-segment-card__media {
    min-height: 220px;
  }
}

@media (max-width: 767px) {
  .cc-segment__grid {
    grid-template-columns: 1fr;
  }

  .cc-segment-card--featured,
  .cc-segment-card--small {
    min-height: unset;
  }

  .cc-segment-card--featured .cc-segment-card__media,
  .cc-segment-card--small .cc-segment-card__media {
    min-height: 200px;
  }
}
