/* =========================================================
   BIGGER, BETTER, FASTER (.gde-digital-business-section)
   Three cards in a row, each led by a numbered pill (01, 02, 03) on a
   dotted line that joins them; inside: the picture on a pastel panel,
   then the title and its line, centred. Each card has its own colour.
   The numbers are drawn by CSS (a counter), the copy is untouched.
========================================================= */

.gde-digital-business-cards-row { position: relative; counter-reset: gdb; }
.gde-digital-business-cards-row > [class*="col-"] { counter-increment: gdb; display: flex; flex-direction: column; align-items: center; }

/* per-card colours: --pill / --pill-t number pill, --p1 / --p2 panel */
.gde-digital-business-cards-row > :nth-child(3n+1) { --pill: #d9c6ff; --pill-t: #3a0a9e; --p1: #f3ecff; --p2: #e2d3ff; }
.gde-digital-business-cards-row > :nth-child(3n+2) { --pill: #ffc9dc; --pill-t: #9e1a4a; --p1: #fff0f5; --p2: #ffd9e6; }
.gde-digital-business-cards-row > :nth-child(3n+3) { --pill: #c4dcff; --pill-t: #1d3f9e; --p1: #eef5ff; --p2: #d3e4ff; }

/* the numbered pill */
.gde-digital-business-cards-row > [class*="col-"]::before {
  content: counter(gdb, decimal-leading-zero);
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 38px;
  margin-bottom: 16px;
  padding: 0 22px;
  border-radius: 100px;
  background: var(--pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 18px -10px rgba(40, 10, 90, .45);
  color: var(--pill-t);
  font-family: "Archivo", "Arial Black", Arial, sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
}
/* dotted line joining the three pills (only when they sit in one row) */
@media (min-width: 992px) {
  .gde-digital-business-cards-row::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 16.66%;
    right: 16.66%;
    border-top: 2px dotted #c9b8ef;
    pointer-events: none;
  }
}

/* ---------- card ---------- */
body.cyber-monday.cyber-monday .gde-digital-business-section .gde-digital-business-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 9px 9px 26px;
  overflow: hidden;
  border: 1px solid #ece5f8 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 20px 40px -30px rgba(40, 10, 90, .45) !important;
  text-align: center;
  transform: none;
}
body.cyber-monday.cyber-monday .gde-digital-business-section .gde-digital-business-card::before,
body.cyber-monday.cyber-monday .gde-digital-business-section .gde-digital-business-card::after { display: none !important; }
.gde-digital-business-section .gde-digital-business-card:hover { transform: none; }

/* pastel panel holding the picture (zoomed a touch: the pictures carry their own frame) */
body.cyber-monday.cyber-monday .gde-digital-business-section .gde-digital-business-card-image-wrap {
  position: relative;
  margin: 0;
  padding: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--p1), var(--p2));
  box-shadow: none;
}
.gde-digital-business-section .gde-digital-business-card-image-wrap::before,
.gde-digital-business-section .gde-digital-business-card-image-wrap::after { display: none !important; }
body.cyber-monday.cyber-monday .gde-digital-business-section .gde-digital-business-card-image {
  /* drawn 6.4% larger and clipped 3% on every side: the pictures' own orange frame falls outside,
     the visible part fills the panel exactly (vertical margins: 3% of the image's height = 2.13% of the width) */
  display: block;
  width: 106.4%;
  max-width: none;
  height: auto;
  aspect-ratio: 470 / 314;
  margin: -2.13% -3.2%;
  border-radius: 0;
  object-fit: cover;
  clip-path: inset(3% round 10px);
  transform: none;
  box-shadow: none;
  filter: none;
}

/* text, centred */
body.cyber-monday.cyber-monday .gde-digital-business-section .gde-digital-business-card-body { padding: 24px 18px 0; background: none; }
body.cyber-monday.cyber-monday .gde-digital-business-section .gde-digital-business-card-title {
  margin: 0;
  color: #150533 !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  letter-spacing: -.01em;
  line-height: 1.25 !important;
  text-align: center;
  text-wrap: balance;
}
body.cyber-monday.cyber-monday .gde-digital-business-section .gde-digital-business-card-text {
  margin: 12px auto 0;
  max-width: 330px;
  color: #3a2c5c !important;
  font-size: 16.5px;
  line-height: 1.55;
  text-align: center;
  text-wrap: pretty;
}

@media (max-width: 767px) {
  .gde-digital-business-cards-row > [class*="col-"]::before { min-width: 64px; height: 32px; margin-bottom: 12px; font-size: 15px; }
  body.cyber-monday.cyber-monday .gde-digital-business-section .gde-digital-business-card-title { font-size: 19px !important; }
  body.cyber-monday.cyber-monday .gde-digital-business-section .gde-digital-business-card-text { font-size: 15.5px; }
}
