/* PSC Practice + Telegram cards (home: between category sections; posts: after the lesson) */
.wlp-promo {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
}
.wlp-promo-post { margin: 28px 0 8px; }
/* On the home page the cards sit between category sections: span the whole category grid row */
.wlp-cat-grid > .wlp-promo-home { grid-column: 1 / -1; margin: 0 0 30px; }
/* 2-column tablets: let the next category fill the gap left before the full-width cards */
.wlp-cat-grid { grid-auto-flow: row dense; }
@media (min-width: 700px) {
  .wlp-promo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wlp-promo .wlp-promo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none !important;
  color: #172033 !important;
  background: #fff;
  border: 1px solid #e7ebf3;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(16, 24, 40, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wlp-promo .wlp-promo-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(31, 95, 191, 0.16); }
.wlp-promo .wlp-promo-icon {
  flex: 0 0 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
}
.wlp-promo .is-psc .wlp-promo-icon { background: linear-gradient(135deg, #1f5fbf, #0f2a55); }
.wlp-promo .is-telegram .wlp-promo-icon { background: linear-gradient(135deg, #2aabee, #1e88d0); }
.wlp-promo .wlp-promo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.wlp-promo .wlp-promo-text strong { font-size: 15.5px; font-weight: 800; }
.wlp-promo .wlp-promo-text span { font-size: 13.5px; color: #5b6475; }
.wlp-promo .wlp-promo-cta {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.wlp-promo .is-psc .wlp-promo-cta { color: #1f5fbf; background: #e8f0fd; }
.wlp-promo .is-telegram .wlp-promo-cta { color: #1e88d0; background: #e5f5fd; }
@media (max-width: 420px) {
  .wlp-promo .wlp-promo-card { flex-wrap: wrap; }
  .wlp-promo .wlp-promo-cta { width: 100%; text-align: center; }
}
/* Narrow cards (two side by side in a post column next to the sidebar): the button
   goes under the text instead of squeezing it to nothing. */
.wlp-promo .wlp-promo-card { flex-wrap: wrap; }
.wlp-promo .wlp-promo-text { flex: 1 1 150px; }
.wlp-promo .wlp-promo-cta { flex: 0 0 auto; margin-left: auto; text-align: center; }


/* ---------- Eye-catching version: filled brand cards with a white button ---------- */
.wlp-promo .wlp-promo-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 0;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(15, 42, 85, 0.22);
}
.wlp-promo .wlp-promo-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.wlp-promo .is-psc { background: linear-gradient(135deg, #1f5fbf 0%, #0f2a55 100%); }
.wlp-promo .is-telegram { background: linear-gradient(135deg, #2aabee 0%, #1565c0 100%); }
.wlp-promo .wlp-promo-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15, 42, 85, 0.3); }
.wlp-promo .wlp-promo-icon,
.wlp-promo .is-psc .wlp-promo-icon,
.wlp-promo .is-telegram .wlp-promo-icon { background: rgba(255, 255, 255, 0.18); }
.wlp-promo .wlp-promo-text strong { font-size: 17px; color: #fff; }
.wlp-promo .wlp-promo-text span { font-size: 14px; color: rgba(255, 255, 255, 0.88); }
.wlp-promo .wlp-promo-cta,
.wlp-promo .is-psc .wlp-promo-cta,
.wlp-promo .is-telegram .wlp-promo-cta {
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  font-size: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.wlp-promo .is-psc .wlp-promo-cta { color: #1f5fbf; }
.wlp-promo .is-telegram .wlp-promo-cta { color: #1565c0; }
.wlp-promo .wlp-promo-text .wlp-promo-badge {
  align-self: flex-start;
  margin-bottom: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0f2a55 !important;
  background: #ffd84d;
}
