/* ─────────────────────────────────────────────────────────────────────────
   CTA Action Strip — global reusable component
   Include: {% include "partials/cta_action_strip.html" %}
   Stylesheet loaded site-wide via base.html (cta-action-strip.css)
   ───────────────────────────────────────────────────────────────────────── */
.cta-action-strip {
  width: 100%;
  padding: 14px 16px 16px;
  box-sizing: border-box;
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(56, 110, 180, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #0B1220 0%, #101B30 55%, #0F172A 100%);
  direction: rtl;
}
.cta-action-strip__wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.cta-action-strip__card {
  display: flex;
  align-items: stretch;
  min-height: 102px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* Full cell is the hit target */
.cta-action-strip__action {
  flex: 1 1 0;
  align-self: stretch;
  min-width: 0;
  min-height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 220ms ease;
}
.cta-action-strip__action:hover,
.cta-action-strip__action:focus-visible {
  color: inherit;
  outline: none;
}
.cta-action-strip__action--blue:hover,
.cta-action-strip__action--blue:focus-visible {
  background: rgba(37, 99, 235, 0.14);
}
.cta-action-strip__action--green:hover,
.cta-action-strip__action--green:focus-visible {
  background: rgba(16, 185, 129, 0.16);
}
.cta-action-strip__action--orange:hover,
.cta-action-strip__action--orange:focus-visible {
  background: rgba(249, 115, 22, 0.15);
}

.cta-action-strip__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms ease;
}
.cta-action-strip__icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
.cta-action-strip__icon--img {
  background: transparent !important;
  overflow: hidden;
}
.cta-action-strip__icon--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cta-action-strip__action:hover .cta-action-strip__icon,
.cta-action-strip__action:focus-visible .cta-action-strip__icon {
  transform: scale(1.05);
}
.cta-action-strip__action--blue .cta-action-strip__icon {
  color: #2563EB;
  background: #EFF6FF;
}
.cta-action-strip__action--green .cta-action-strip__icon {
  color: #059669;
  background: #ECFDF5;
}
.cta-action-strip__action--orange .cta-action-strip__icon {
  color: #EA580C;
  background: #FFF7ED;
}

.cta-action-strip__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}
.cta-action-strip__title {
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  font-weight: 700;
  line-height: 1.35;
  color: #0F172A;
  overflow-wrap: anywhere;
}
.cta-action-strip__sub {
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  font-weight: 500;
  line-height: 1.35;
  color: #64748B;
  overflow-wrap: anywhere;
}

/* Placement CTAs: title → age (line 2) → dark CTA button box */
.cta-action-strip__action--placement {
  align-items: center;
  min-height: 108px;
}
.cta-action-strip__text--placement {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  justify-content: center;
  gap: 4px !important;
  min-width: 0;
}
.cta-action-strip__action--placement .cta-action-strip__title {
  display: block;
  width: 100%;
  font-size: clamp(0.84rem, 1.05vw, 0.98rem);
  line-height: 1.3;
  white-space: normal;
}
.cta-action-strip__age {
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: clamp(0.74rem, 0.9vw, 0.84rem);
  font-weight: 600;
  line-height: 1.3;
  color: #475569;
  white-space: normal;
}
.cta-action-strip__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 0;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff !important;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 200ms ease;
}
.cta-action-strip__btn-label {
  color: #ffffff !important;
  font-weight: 700;
}
.cta-action-strip__btn-arrow {
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0;
  color: #ffffff;
}
.cta-action-strip__btn--blue {
  background-color: #1e3a5f !important;
  background: #1e3a5f !important;
}
.cta-action-strip__action--blue:hover .cta-action-strip__btn--blue,
.cta-action-strip__action--blue:focus-visible .cta-action-strip__btn--blue {
  background-color: #132a45 !important;
  background: #132a45 !important;
}
.cta-action-strip__btn--green {
  background-color: #065f46 !important;
  background: #065f46 !important;
}
.cta-action-strip__action--green:hover .cta-action-strip__btn--green,
.cta-action-strip__action--green:focus-visible .cta-action-strip__btn--green {
  background-color: #044434 !important;
  background: #044434 !important;
}

.cta-action-strip__arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: transform 220ms ease;
}
.cta-action-strip__arrow svg {
  width: 24px;
  height: 24px;
  display: block;
}
.cta-action-strip__action--blue .cta-action-strip__arrow { color: #2563EB; }
.cta-action-strip__action--green .cta-action-strip__arrow { color: #059669; }
.cta-action-strip__action--orange .cta-action-strip__arrow { color: #EA580C; }
.cta-action-strip__action:hover .cta-action-strip__arrow,
.cta-action-strip__action:focus-visible .cta-action-strip__arrow {
  transform: translateX(-3px);
}

.cta-action-strip__divider {
  flex: 0 0 1px;
  width: 1px;
  align-self: stretch;
  margin: 14px 0;
  background: rgba(15, 23, 42, 0.08);
  pointer-events: none;
}

/* Tablet — keep row */
@media (max-width: 900px) {
  .cta-action-strip {
    padding: 12px 12px 14px;
  }
  .cta-action-strip__card {
    min-height: 94px;
    border-radius: 20px;
  }
  .cta-action-strip__action {
    gap: 10px;
    padding: 10px 12px;
  }
  .cta-action-strip__icon {
    width: 56px;
    height: 56px;
  }
  .cta-action-strip__icon svg {
    width: 27px;
    height: 27px;
  }
  .cta-action-strip__arrow {
    width: 26px;
    height: 26px;
  }
  .cta-action-strip__arrow svg {
    width: 22px;
    height: 22px;
  }
  .cta-action-strip__divider {
    margin: 12px 0;
  }
}

/* Mobile — stack; nothing clipped */
@media (max-width: 680px) {
  .cta-action-strip {
    padding: 10px 10px 12px;
  }
  .cta-action-strip__card {
    flex-direction: column;
    min-height: 0;
    border-radius: 18px;
  }
  .cta-action-strip__action {
    width: 100%;
    min-height: 68px;
    padding: 12px 14px;
  }
  .cta-action-strip__icon {
    width: 54px;
    height: 54px;
  }
  .cta-action-strip__icon svg {
    width: 26px;
    height: 26px;
  }
  .cta-action-strip__arrow {
    width: 26px;
    height: 26px;
  }
  .cta-action-strip__arrow svg {
    width: 22px;
    height: 22px;
  }
  .cta-action-strip__divider {
    width: auto;
    height: 1px;
    margin: 0 18px;
    align-self: stretch;
  }
  .cta-action-strip__title {
    font-size: 0.95rem;
    white-space: normal;
  }
  .cta-action-strip__sub {
    font-size: 0.8rem;
    white-space: normal;
  }
  .cta-action-strip__action--placement {
    min-height: 72px;
  }
  .cta-action-strip__age {
    font-size: 0.78rem;
  }
  .cta-action-strip__btn {
    margin-top: 2px;
    padding: 6px 11px;
    font-size: 0.72rem;
  }
}
