@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --M: #7B1D2E;
  --ML: #9E2B40;
  --MD: #5A1220;
  --G: #B8960C;
  --GL: #D4AC0D;
  --CR: #ffffff;
  --CV: #ffffff;
  --DV: #ffffff;
  --OA: #ffffff;
  --JS: #ffffff;
  --W: #fff;
  --G50: #F9F7F3;
  --G100: #EDE9E2;
  --G200: #D4CFC4;
  --G400: #9A9488;
  --G600: #6B6560;
  --G800: #2C2A26;
  --T: #1A1816;
  --sh: 0 2px 16px rgba(0,0,0,0.09);
}

body {
  font-family: 'Inter', sans-serif;
  background: #F3EFE8;
  color: var(--T);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ===LOGIN=== */
#LS {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 60% 40%, #8B2535 0%, #5A1220 55%, #3A0D18 100%);
  padding: 1rem;
}

.lc {
  background: var(--W);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.llogo {
  text-align: center;
  margin-bottom: 2rem;
}

.lcrest {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--M);
  border: 3px solid var(--G);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--G);
}

.llogo h1 {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--M);
  line-height: 1.3;
}

.llogo p {
  font-size: 11px;
  color: var(--G400);
  margin-top: 3px;
}

.fg {
  margin-bottom: 1.1rem;
}

.fg label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--G600);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}

.fg input, .fg select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--G200);
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  background: var(--G50);
  color: var(--T);
  transition: border .2s;
}

.fg input:focus, .fg select:focus {
  outline: none;
  border-color: var(--M);
  background: var(--W);
}

.lbtn {
  width: 100%;
  padding: 12px;
  background: var(--M);
  color: var(--W);
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.lbtn:hover {
  background: var(--MD);
}

.lerr {
  color: #c0392b;
  font-size: 12px;
  text-align: center;
  margin-top: 8px;
  display: none;
}

.lhint {
  font-size: 10px;
  color: var(--G400);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.7;
}

/* ===APP=== */
#APP {
  display: none;
  min-height: 100vh;
}

.tb {
  background: var(--M);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tbl {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tbcrest {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--G);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--MD);
}

.tbl h2 {
  color: var(--W);
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.tbl p {
  color: rgba(255,255,255,.55);
  font-size: 10px;
}

.tbr {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ubadge {
  background: rgba(255,255,255,.15);
  padding: 4px 11px;
  border-radius: 20px;
  color: var(--W);
  font-size: 11px;
  font-weight: 500;
}

.lobtn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--W);
  padding: 4px 13px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
}

.lobtn:hover {
  background: rgba(255,255,255,.25);
}

.body {
  display: flex;
  min-height: calc(100vh - 56px);
}

.sb {
  width: 210px;
  background: var(--W);
  border-right: 1px solid var(--G100);
  padding: 1.2rem 0;
  flex-shrink: 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.ns p {
  font-size: 10px;
  font-weight: 600;
  color: var(--G400);
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 0 1rem 5px;
  margin-top: 12px;
}

.ni {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  margin: 1px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--G600);
  font-size: 12.5px;
  border: none;
  background: none;
  width: calc(100% - 16px);
  text-align: left;
  transition: all .15s;
}

.ni:hover {
  background: var(--G50);
  color: var(--T);
}

.ni.act {
  background: var(--M);
  color: var(--W);
}

.ni svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.mc {
  flex: 1;
  padding: 1.8rem;
  overflow-y: auto;
}

/* ===SECTIONS=== */
.sec {
  display: none;
}

.sec.act {
  display: block;
}

.ph {
  margin-bottom: 1rem;
}

.ph h1 {
  font-family: 'EB Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--M);
}

.ph p {
  color: var(--G600);
  font-size: 12px;
  margin-top: 3px;
}

/* ===STATS=== */
.sg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 1.8rem;
}

.sc {
  background: var(--W);
  border-radius: 11px;
  padding: 1.1rem;
  border: 1px solid var(--G100);
}

.sc .lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--G400);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}

.sc .val {
  font-size: 24px;
  font-weight: 700;
  color: var(--M);
  font-family: 'EB Garamond', serif;
}

.sc .sub {
  font-size: 11px;
  color: var(--G600);
  margin-top: 2px;
}

/* ===CARD=== */
.card {
  background: var(--W);
  border-radius: 10px;
  border: 1px solid var(--G100);
  padding: 1rem;
  margin-bottom: 1rem;
}

.ch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.ct {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--M);
}

/* ===VOUCHER TYPE PILLS=== */
.vtg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: .8rem;
}

.vtc {
  background: var(--W);
  border: 2px solid var(--G100);
  border-radius: 8px;
  padding: .5rem .4rem;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}

.vtc:hover {
  border-color: var(--M);
}

.vtc.sel {
  border-color: var(--M);
  background: #FDF0F2;
}

.vtc .vi {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
  font-size: 14px;
}

.vtc h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--T);
  margin-bottom: 1px;
}

.vtc p {
  font-size: 9px;
  color: var(--G600);
}

/* ===FORM=== */
.fr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-bottom: .6rem;
}

.fr.t {
  grid-template-columns: 1fr 1fr 1fr;
}

.fr.f {
  grid-template-columns: 1fr;
}

.fi label {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--G600);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 2px;
}

.fi input, .fi select, .fi textarea {
  width: 100%;
  padding: 5px 9px;
  border: 1.5px solid var(--G200);
  border-radius: 6px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  background: var(--G50);
  color: var(--T);
  transition: border .2s;
}

.fi input:focus, .fi select:focus, .fi textarea:focus {
  outline: none;
  border-color: var(--M);
  background: var(--W);
}

.fi textarea {
  resize: vertical;
  min-height: 50px;
}

.fi input[readonly] {
  background: #f0ede8;
  color: #888;
}

/* ===BUTTONS=== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 7px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}

.bp {
  background: var(--M);
  color: var(--W);
}

.bp:hover {
  background: var(--MD);
}

.bs {
  background: var(--G100);
  color: var(--G800);
}

.bs:hover {
  background: var(--G200);
}

.bg {
  background: var(--G);
  color: #3A0D18;
}

.bg:hover {
  background: var(--GL);
}

.br {
  background: #fee2e2;
  color: #991b1b;
}

.br:hover {
  background: #fecaca;
}

.bsm {
  padding: 5px 11px;
  font-size: 11.5px;
}

.bg-btn {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: .7rem;
}

/* ===LINE ITEMS=== */
.twrap {
  overflow-x: auto;
  border-radius: 9px;
  border: 1px solid var(--G100);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

th {
  background: var(--M);
  color: var(--W);
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
}

td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--G100);
  color: var(--G800);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--G50);
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 500;
}

.bc {
  background: #EEF5FF;
  color: #1B4F9E;
}

.bd {
  background: #FFF3E0;
  color: #7A3800;
}

.bo {
  background: #FCE4EC;
  color: #880E4F;
}

.bj {
  background: #E8F5E9;
  color: #1B5E20;
}

/* ===SEARCH=== */
.sb2 {
  display: flex;
  gap: 8px;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.sb2 input, .sb2 select {
  padding: 8px 12px;
  border: 1.5px solid var(--G200);
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  background: var(--W);
  color: var(--T);
}

.sb2 input {
  flex: 1;
  min-width: 160px;
}

.sb2 input:focus, .sb2 select:focus {
  outline: none;
  border-color: var(--M);
}

/* ===ANALYTICS=== */
.ag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.4rem;
}

.ac {
  background: var(--W);
  border-radius: 11px;
  border: 1px solid var(--G100);
  padding: 1.2rem;
}

.ac h3 {
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--M);
  margin-bottom: .9rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  margin-bottom: 6px;
}

.bar-lbl {
  width: 130px;
  color: var(--G600);
  text-align: right;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-trk {
  flex: 1;
  background: var(--G100);
  border-radius: 4px;
  height: 16px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 5px;
  color: var(--W);
  font-size: 9.5px;
}

.dw {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ll {
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ld {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===MODAL=== */
.mo {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mo.h {
  display: none;
}

.md {
  background: var(--W);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}

.mh {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--G100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--W);
  z-index: 10;
  border-radius: 16px 16px 0 0;
}

.mh h2 {
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--M);
}

.mb {
  padding: 1.5rem;
}

.cbtn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--G400);
  padding: 3px;
  line-height: 1;
}

.cbtn:hover {
  color: var(--T);
}

/* ===PRINT VOUCHERS - EXACT MATCH=== */
#PA {
  background: var(--W);
}

.pv-wrap {
  width: 148mm;
  min-height: 100mm;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  background: var(--W);
  position: relative;
}

/* DEBIT VOUCHER - white */
.dv-print {
  background: #fff;
  border: 2px solid #111;
  padding: 0;
  width: 148mm;
  min-height: 105mm;
  position: relative;
  font-size: 10pt;
}

.dv-header {
  display: grid;
  grid-template-columns: auto 1fr;
  border-bottom: 2px solid #111;
}

.dv-crest {
  width: 48px;
  height: 48px;
  border: 2px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 4px;
}

.dv-crest img {
  width: 100%;
}

.dv-crest-text {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 4px 2px;
  line-height: 1.2;
}

.dv-title-block {
  border-left: 2px solid #111;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dv-inst {
  font-size: 13pt;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .3px;
}

.dv-formerly {
  font-size: 7pt;
  color: #333;
  margin-top: 2px;
  line-height: 1.4;
}

.dv-vtype {
  background: #222;
  color: #fff;
  font-size: 13pt;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
  padding: 5px 8px;
  text-transform: uppercase;
}

.dv-date-row {
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid #999;
  padding: 3px 6px;
  font-size: 9pt;
}

.dv-date-row span {
  border-bottom: 1px dotted #333;
  min-width: 80px;
  display: inline-block;
  margin-left: 4px;
}

.dv-fields {
  padding: 6px 8px;
}

.dv-field-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 5px;
  font-size: 9.5pt;
}

.dv-field-lbl {
  min-width: 82px;
  font-weight: 600;
  flex-shrink: 0;
}

.dv-field-val {
  border-bottom: 1px dotted #555;
  flex: 1;
  min-height: 16px;
  padding-bottom: 1px;
  padding-left: 4px;
}

.dv-bottom {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  border-top: 1.5px solid #111;
  margin-top: 4px;
}

.dv-rs-box {
  border-right: 1.5px solid #111;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.dv-rs-label {
  font-size: 13pt;
  font-weight: 900;
  letter-spacing: 2px;
}

.dv-rs-amount {
  border: 2px solid #111;
  min-width: 62px;
  min-height: 30px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10pt;
  font-weight: 700;
  padding: 2px 4px;
}

.dv-checked {
  border-right: 1.5px solid #111;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dv-checked label {
  font-size: 8.5pt;
  font-weight: 600;
  display: block;
  border-top: 1px solid #333;
  padding-top: 3px;
  margin-top: 24px;
}

.dv-sig {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dv-sig label {
  font-size: 8.5pt;
  font-weight: 600;
  display: block;
  border-top: 1px solid #333;
  padding-top: 3px;
  margin-top: 24px;
}

/* CREDIT VOUCHER - light blue */
.cv-print {
  background: #fff;
  border: 2px solid #111;
  padding: 0;
  width: 148mm;
  min-height: 105mm;
  font-size: 10pt;
}

.cv-header {
  display: grid;
  grid-template-columns: auto 1fr;
  border-bottom: 2px solid #111;
  background: #fff;
}

.cv-vtype {
  background: #222;
  color: #fff;
  font-size: 13pt;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
  padding: 5px 8px;
  text-transform: uppercase;
}

.cv-fields {
  padding: 6px 8px;
  background: #fff;
}

.cv-bottom {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  border-top: 1.5px solid #111;
  margin-top: 4px;
  background: #fff;
}

/* ON ACCOUNT VOUCHER - pink */
.oa-print {
  background: #fff;
  border: 2px solid #111;
  padding: 0;
  width: 148mm;
  min-height: 105mm;
  font-size: 10pt;
}

.oa-header {
  display: grid;
  grid-template-columns: auto 1fr;
  border-bottom: 2px solid #111;
  background: #fff;
}

.oa-vtype {
  background: #222;
  color: #fff;
  font-size: 13pt;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
  padding: 5px 8px;
  text-transform: uppercase;
}

.oa-fields {
  padding: 6px 8px;
  background: #fff;
}

.oa-bottom {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  border-top: 1.5px solid #111;
  margin-top: 4px;
  background: #fff;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(184,150,12,.55);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(184,150,12,0);
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.sec.act {
  animation: fadeInUp .35s ease-out both;
}

.sc {
  animation: scaleIn .35s ease-out both;
}

.sc:nth-child(1) { animation-delay: .02s; }
.sc:nth-child(2) { animation-delay: .06s; }
.sc:nth-child(3) { animation-delay: .10s; }
.sc:nth-child(4) { animation-delay: .14s; }
.sc:nth-child(5) { animation-delay: .18s; }
.sc:nth-child(6) { animation-delay: .22s; }

.vtc {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.vtc:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.vtc.sel {
  animation: pop .25s ease;
}

.btn {
  transition: transform .12s ease, box-shadow .15s ease, background .2s ease, opacity .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.bp {
  animation: none;
}

.bp.saving {
  animation: pulseGlow 1.2s ease-in-out infinite;
}

.ni {
  transition: background .15s, color .15s, transform .12s;
}

.ni:active {
  transform: scale(.97);
}

.lc {
  animation: scaleIn .4s ease-out both;
}

.mo:not(.h) {
  animation: fadeInUp .25s ease-out both;
}

.toast {
  position: fixed;
  top: 74px;
  right: 20px;
  background: var(--M);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: slideInRight .3s ease-out both;
}

.toast.ok { background: #1B7A3E; }
.toast.warn { background: #A36A00; }
.toast.err { background: #9A2A2A; }

.linkpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.3);
  transition: background .2s;
}

.linkpill:hover {
  background: rgba(255,255,255,.28);
}

.linkpill.linked {
  background: #1B7A3E;
  border-color: #2BA85A;
}

.linkpill.needs-grant {
  background: #A36A00;
  border-color: #D69A1A;
  animation: pulseGlow 1.6s ease-in-out infinite;
}

tbody tr {
  animation: fadeInUp .25s ease-out both;
}

/* === COLLEGE PICKER === */
#CP {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 60% 40%, #8B2535 0%, #5A1220 55%, #3A0D18 100%);
  padding: 1rem;
  flex-direction: column;
  gap: 1.4rem;
}

#CP h1 {
  font-family: 'EB Garamond', serif;
  color: #fff;
  font-size: 26px;
  text-align: center;
  margin-bottom: .3rem;
}

#CP p.subt {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  text-align: center;
  margin-bottom: 1rem;
}

.cpg {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 880px;
}

.cpc {
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  width: 320px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  border: 2px solid transparent;
  text-align: center;
}

.cpc:hover {
  transform: translateY(-4px);
  border-color: #B8960C;
  box-shadow: 0 28px 72px rgba(0,0,0,0.5);
}

.cpc .cplogo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #B8960C;
  margin: 0 auto 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.cpc .cplogo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cpc h2 {
  font-family: 'EB Garamond', serif;
  color: #8B2535;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.cpc p {
  font-size: 11.5px;
  color: #666;
}

.cpc button {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  background: #8B2535;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.cpc button:hover {
  background: #6e1c2a;
}

.cpback {
  position: absolute;
  top: 14px;
  left: 18px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
}

.cpback:hover {
  background: rgba(255,255,255,.28);
}
