.cv-ad-layout {
  column-gap: 1.25rem;
  row-gap: 1.5rem;
}

.cv-ad-rail {
  min-width: 0;
}

.cv-ad-cards {
  gap: 0.8rem;
}

.cv-ad-card {
  min-height: 112px;
  gap: 0.75rem;
  padding: 0.8rem;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(20, 40, 60, 0.07);
}

.cv-ad-card--blog-post {
  border-color: #e2d9f3;
  background: linear-gradient(145deg, #fff, #faf7ff);
}

.cv-ad-card--blog-post .cv-ad-label,
.cv-ad-card--blog-post .cv-ad-cta {
  color: #7050a5;
}

.cv-ad-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.cv-ad-label {
  font-size: 0.62rem;
  line-height: 1.3;
}

.cv-ad-description {
  font-size: 0.76rem;
  line-height: 1.4;
}

.cv-ad-cta {
  font-size: 0.76rem;
  line-height: 1.35;
}

.cv-ad-image {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  max-height: 52px;
}

.cv-ad-copy {
  flex: 1;
}

.cv-ad-bottom {
  max-width: 1080px;
}

.cv-ad-bottom .cv-ad-card {
  min-height: 124px;
  padding: 1.1rem 1.25rem;
}

.cv-ad-bottom .cv-ad-image {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  max-height: 76px;
}

@media (min-width: 1280px) {
  .cv-ad-layout {
    grid-template-columns: minmax(210px, 230px) minmax(0, 1fr) minmax(210px, 230px);
    grid-template-areas: "apps content services";
    gap: 1.25rem;
  }

  .cv-ad-rail {
    position: sticky;
    top: 90px;
  }

  .cv-ad-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-ad-card {
    min-height: 124px;
  }

  .cv-ad-image {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    max-height: 58px;
  }
}

@media (min-width: 1200px) and (max-width: 1279.98px) {
  .cv-ad-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "content" "apps" "services";
    gap: 1.25rem;
  }

  .cv-ad-rail {
    position: static;
  }

  .cv-ad-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-ad-card {
    min-height: 122px;
    padding: 0.9rem;
  }

  .cv-ad-image {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    max-height: 60px;
  }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
  .cv-ad-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-ad-card {
    min-height: 122px;
    gap: 0.85rem;
    padding: 0.9rem;
  }

  .cv-ad-image {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    max-height: 56px;
  }
}

@media (max-width: 575.98px) {
  .cv-ad-layout {
    row-gap: 1.2rem;
  }

  .cv-ad-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }

  .cv-ad-card {
    min-height: 96px;
    padding: 0.8rem;
  }

  .cv-ad-image {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    max-height: 54px;
  }

  .cv-ad-bottom {
    margin-top: 1.25rem;
  }

  .cv-ad-bottom .cv-ad-card {
    min-height: 112px;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
}

.cv-ad-carousel {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe7ed;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 40, 60, 0.07);
}

.cv-ad-carousel .carousel-item > .cv-ad-card {
  min-height: 146px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cv-ad-carousel .carousel-item > .cv-ad-card:hover,
.cv-ad-carousel .carousel-item > .cv-ad-card:focus-visible {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.cv-ad-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.45rem 0.75rem 0.65rem;
  border-top: 1px solid #edf1f4;
}

.cv-ad-carousel-arrow {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border: 1px solid #dce5eb;
  border-radius: 50%;
  background: #fff;
  color: #0879b9;
}

.cv-ad-carousel-arrow:hover,
.cv-ad-carousel-arrow:focus-visible {
  border-color: #0879b9;
  background: #eef8ff;
}

.cv-ad-carousel-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.cv-ad-carousel-indicators button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8d3db;
}

.cv-ad-carousel-indicators button.active {
  width: 1.15rem;
  border-radius: 1rem;
  background: #0879b9;
}

.cv-ad-bottom {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(165px, 0.85fr) minmax(0, 3fr) minmax(155px, 0.85fr);
  align-items: stretch;
  gap: 0.85rem;
  margin: 2rem 0 0;
  padding: 1.15rem;
  border: 1px solid #dce8f0;
  border-radius: 20px;
  background: linear-gradient(115deg, #eef8ff, #fff 48%, #fff8ed);
}

.cv-ad-bottom-intro {
  align-self: center;
  padding: 0.35rem;
}

.cv-ad-banner-eyebrow {
  color: #0879b9;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.cv-ad-bottom-intro h2 {
  margin: 0.45rem 0;
  color: #1e3445;
  font-size: 1.2rem;
  line-height: 1.25;
}

.cv-ad-bottom-intro p {
  margin: 0;
  color: #647483;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cv-ad-banner-ads {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.cv-ad-banner-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  grid-template-areas:
    "image label"
    "image title"
    "description description"
    "link link";
  align-content: start;
  column-gap: 0.55rem;
  row-gap: 0.22rem;
  padding: 0.75rem;
  border: 1px solid #e1e9ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 10px rgba(20, 40, 60, 0.045);
  color: #263746;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cv-ad-banner-item:hover,
.cv-ad-banner-item:focus-visible {
  transform: translateY(-2px);
  border-color: #8bc5e4;
  box-shadow: 0 8px 18px rgba(20, 40, 60, 0.1);
  color: #0879b9;
}

.cv-ad-banner-image,
.cv-ad-banner-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  grid-area: image;
  place-items: center;
  border-radius: 0.65rem;
  background: #edf7fc;
  color: #0879b9;
  object-fit: cover;
}

.cv-ad-card--writing-service .cv-ad-banner-icon {
  background: #fff3e3;
  color: #a65b00;
}

.cv-ad-card--blog-post .cv-ad-banner-icon {
  background: #f1eafd;
  color: #7050a5;
}

.cv-ad-banner-icon {
  font-size: 1.15rem;
}

.cv-ad-banner-label {
  grid-area: label;
  align-self: end;
  overflow: hidden;
  color: #687a88;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.cv-ad-banner-item strong {
  grid-area: title;
  overflow-wrap: anywhere;
  color: #1e3445;
  font-size: 0.82rem;
  line-height: 1.25;
}

.cv-ad-banner-description {
  display: -webkit-box;
  grid-area: description;
  overflow: hidden;
  color: #667684;
  font-size: 0.7rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cv-ad-banner-link {
  grid-area: link;
  align-self: end;
  margin-top: 0.2rem;
  color: #0879b9;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
}

.cv-ad-card--writing-service .cv-ad-banner-link {
  color: #a65b00;
}

.cv-ad-card--blog-post .cv-ad-banner-link {
  color: #7050a5;
}

.cv-ad-bottom-cta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #0879b9, #075b8d);
  box-shadow: 0 7px 16px rgba(8, 121, 185, 0.2);
  color: #fff;
  text-decoration: none;
}

.cv-ad-bottom-cta:hover,
.cv-ad-bottom-cta:focus-visible {
  background: linear-gradient(145deg, #06689f, #064c76);
  color: #fff;
}

.cv-ad-bottom-cta > span {
  font-size: 0.68rem;
  font-weight: 650;
  opacity: 0.88;
}

.cv-ad-bottom-cta strong {
  font-size: clamp(1.25rem, 1.7vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.cv-ad-bottom-cta small {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.72rem;
  opacity: 0.9;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv-ad-bottom-cta > i {
  margin-top: 0.15rem;
  font-size: 1.1rem;
}

@media (max-width: 1199.98px) {
  .cv-ad-bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-ad-bottom-intro {
    padding: 0.25rem;
  }

  .cv-ad-bottom-intro h2 {
    max-width: 34rem;
    font-size: 1.35rem;
  }

  .cv-ad-bottom-cta {
    min-height: 100px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .cv-ad-bottom-cta > i {
    margin: 0;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .cv-ad-banner-ads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-ad-banner-item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .cv-ad-banner-ads {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-ad-banner-item {
    grid-template-columns: 3rem minmax(0, 1fr);
    grid-template-areas:
      "image label"
      "image title"
      "description description"
      "link link";
  }

  .cv-ad-banner-image,
  .cv-ad-banner-icon {
    width: 3rem;
    height: 3rem;
  }

  .cv-ad-bottom-cta {
    min-height: 118px;
  }
}
