/* ── Programs section ── */
.prg-section {
  background: #f8faff;
  padding: 72px 24px;
}
.prg-wrap {
  max-width: 1160px;
  margin: 0 auto;
}
.prg-section .section-eyebrow {
  display: inline-block;
  background: rgba(21,101,192,.1);
  color: #1565c0;
  border: 1px solid rgba(21,101,192,.22);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.prg-section h2 {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  letter-spacing: -.5px;
}
.prg-section h2 em { font-style: normal; color: #1565c0; }
.prg-intro {
  font-size: 16px;
  color: #6b7280;
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* Tab toggle */
.prg-tabs {
  display: inline-flex;
  background: #e8edf3;
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 36px;
}
.prg-tab-btn {
  padding: 9px 24px;
  border-radius: 7px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s, color .18s;
}
.prg-tab-btn.active {
  background: #fff;
  color: #1565c0;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* Grid */
.prg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card ── */
.prg-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  border: 1px solid #e8edf3;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .18s;
  position: relative;
}
.prg-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

/* Badge ribbon */
.prg-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}
.prg-badge.best { background: #1bba5d; }

/* Visual top */
.prg-visual {
  height: 180px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px 22px;
  overflow: hidden;
}
.prg-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
}
.prg-visual-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3C/g%3E%3C/svg%3E");
}
.prg-visual-level {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.prg-visual-name {
  position: relative;
  z-index: 1;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.prg-visual-papers {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 20px;
  text-align: center;
}
.prg-paper-num {
  font-size: 34px;
  font-weight: 900;
  color: rgba(255,255,255,.95);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.prg-paper-lbl {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* Card body */
.prg-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.prg-desc {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 14px;
}
.prg-paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.prg-paper-chip {
  background: #f0f4f8;
  color: #374151;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: .2px;
}
.prg-includes {
  margin-bottom: 14px;
}
.prg-include-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  margin-bottom: 5px;
}
.prg-include-item .chk {
  color: #1bba5d;
  font-weight: 700;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Pricing */
.prg-pricing {
  margin-top: auto;
  margin-bottom: 14px;
}
.prg-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.prg-sale-price {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.5px;
}
.prg-orig-price {
  font-size: 15px;
  color: #9ca3af;
  text-decoration: line-through;
}
.prg-save {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
}

/* Add to cart button */
.prg-cart-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .18s, transform .1s, box-shadow .18s;
}
.prg-cart-btn.add {
  background: #1565c0;
  color: #fff;
}
.prg-cart-btn.add:hover {
  background: #0d47a1;
  box-shadow: 0 4px 16px rgba(21,101,192,.3);
}
.prg-cart-btn.added {
  background: #dcfce7;
  color: #15803d;
}
.prg-cart-btn:active { transform: scale(.98); }

/* Cart toast */
.cart-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a2e;
  color: #fff;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  transition: transform .3s, opacity .3s;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.cart-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cart-toast a {
  color: #60a5fa;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .prg-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .prg-section h2 { font-size: 26px; }
  .prg-grid { grid-template-columns: 1fr; }
  .prg-tabs { width: 100%; }
  .prg-tab-btn { flex: 1; text-align: center; }
}
