.caie-card {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: visible;
  direction: rtl;
}
.caie-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.caie-overlay-fill {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.caie-action-zone {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 34%;
  height: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2%;
  box-sizing: border-box;
}
.caie-side-left .caie-action-zone {
  right: auto;
  left: 0;
}
.caie-button {
  width: 100%;
  min-width: 0;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 20px;
  background: #f52c25;
  color: #fff;
  text-decoration: none !important;
  box-sizing: border-box;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}
.caie-button:hover,
.caie-button:focus {
  transform: translateY(-3px);
  color: #fff;
  text-decoration: none;
}
.caie-button-text {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-size: clamp(14px, 1.6vw, 28px);
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}
.caie-icon,
.caie-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.caie-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 14px;
  background: #fff;
  color: #f52c25;
}
.caie-icon i {
  font-size: 42%;
}
.caie-icon svg {
  width: 42%;
  height: 42%;
  fill: currentColor;
}
.caie-icon-only {
  background: transparent;
  text-decoration: none !important;
}
.caie-icon-only:hover,
.caie-icon-only:focus {
  transform: translateY(-3px);
  text-decoration: none;
}
.caie-side-left .caie-button {
  direction: ltr;
}
.caie-side-left .caie-button-text {
  text-align: left;
}
@media (max-width: 767px) {
  .caie-card {
    height: 350px;
  }
  .caie-action-zone {
    width: 58%;
    height: 31%;
    padding: 3%;
  }
  .caie-button {
    min-height: 54px;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
  }
  .caie-button-text {
    font-size: 14px;
  }
  .caie-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 10px;
  }
}

/* Version 1.2: exact Subtract.svg frame, image text and movable action icon. */
.caie-text-overlay {
  position: absolute;
  top: 35px;
  right: 8%;
  left: 8%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  pointer-events: none;
}
.caie-kicker {
  display: inline-flex;
  max-width: 90%;
  padding: 4px 9px;
  border-radius: 3px;
  background: #20c9d6;
  color: #0642cf;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
}
.caie-title {
  display: -webkit-box;
  max-width: 100%;
  margin: 0;
  color: #0642cf;
  font-size: clamp(18px, 3vw, 38px);
  line-height: 1.45;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.caie-text-align-right .caie-text-overlay { align-items: flex-start; text-align: right; }
.caie-text-align-center .caie-text-overlay { align-items: center; text-align: center; }
.caie-text-align-left .caie-text-overlay { align-items: flex-end; text-align: left; }
.caie-icon,
.caie-icon-only {
  --caie-icon-x: 0px;
  --caie-icon-y: 0px;
  transform: translate(var(--caie-icon-x), var(--caie-icon-y));
}
.caie-icon-only:hover,
.caie-icon-only:focus {
  transform: translate(var(--caie-icon-x), calc(var(--caie-icon-y) - 3px));
}
.caie-action-icon .caie-action-zone { width: 22%; height: 31%; }
@media (max-width: 767px) {
  .caie-text-overlay { top: 18px; right: 6%; left: 6%; gap: 5px; }
  .caie-title { font-size: 18px; }
  .caie-kicker { font-size: 9px; padding: 3px 6px; }
}
