/* ============================================================
   TALEEM CARD — CARD PAGE CSS
   Screen + Print styles
   ============================================================ */

/* ── PAGE WRAPPER ── */
.card-page-wrap { min-height: 80vh; background: #f4f7f5; }

/* ── LOOKUP FORM ── */
.card-lookup-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 20px;
}
.card-lookup-card {
  background: #fff;
  border: 1px solid #dde8e1;
  border-radius: 16px;
  padding: 44px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.card-lookup-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  color: #0b5d32;
  display: grid;
  place-items: center;
}
.card-lookup-icon svg {
  width: 72px;
  height: 72px;
  display: block;
}
.card-lookup-icon img {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: contain;
}
.card-lookup-card h1 { font-size: 22px; font-weight: 700; color: #1a5c2e; margin-bottom: 8px; }
.card-lookup-card p { font-size: 14px; color: #888; margin-bottom: 24px; }
.card-lookup-links {
  margin-top: 20px;
  font-size: 13px;
  color: #aaa;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.card-lookup-links a { color: #1a5c2e; text-decoration: none; }
.card-lookup-links a:hover { text-decoration: underline; }

/* ── CARD SELECT ── */
.card-select-list { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.card-select-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid #dde8e1;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
}
.card-select-item:hover { border-color: #1a5c2e; background: #f7fbf8; }
.card-select-item input[type="radio"] { accent-color: #1a5c2e; width: 16px; height: 16px; flex-shrink: 0; }
.csi-content { flex: 1; }
.csi-name { font-weight: 600; color: #1a5c2e; font-size: 14px; }
.csi-meta { font-size: 12px; color: #888; margin-top: 2px; }
.csi-balance { font-size: 12px; color: #1a5c2e; margin-top: 4px; }
.csi-arrow { color: #ccc; font-size: 18px; }

/* ── QR VERIFY ── */
.card-verify-wrap { display: flex; justify-content: center; padding: 40px 20px; }
.card-verify-card {
  background: #fff;
  border: 1px solid #dde8e1;
  border-radius: 16px;
  padding: 36px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.verify-status {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.verify-valid   { background: #d1fae5; color: #065f46; }
.verify-invalid { background: #fee2e2; color: #991b1b; }
.card-verify-card h2 { font-size: 18px; font-weight: 700; color: #1a5c2e; margin-bottom: 4px; }
.verify-for { font-size: 14px; color: #888; margin-bottom: 20px; }
.verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.verify-grid div span { display: block; font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.verify-grid div strong { font-size: 14px; color: #1a1a1a; }

/* ── CARD VIEW PAGE ── */
.card-view-wrap { max-width: 780px; margin: 0 auto; padding: 28px 20px 60px; }
.card-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.card-view-header h1 { font-size: 22px; font-weight: 700; color: #1a5c2e; }
.card-view-header p { font-size: 14px; color: #888; }
.card-view-actions { display: flex; gap: 10px; }

.print-instruction {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 13px;
  color: #856404;
  margin-bottom: 20px;
}

/* ── CARD PRINT SHEET (screen display) ── */
.card-print-sheet {
  background: #fff;
  border: 1px solid #dde8e1;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.print-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════
   TALEEM CARD FRONT
   85mm × 54mm (credit card size)
   At 96dpi screen: ~322px × 204px
   ══════════════════════════════════════ */
.tc-card-front {
  width: 340px;
  height: 214px;
  background: linear-gradient(135deg, #1a5c2e 0%, #2d7a42 55%, #1a4a28 100%);
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(26,92,46,0.3);
  font-family: 'Inter', sans-serif;
}
.card-bg-pattern {
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.card-bg-pattern::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(200,146,42,0.08);
}

/* Card top row */
.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.card-org { display: flex; align-items: center; gap: 9px; max-width: 210px; }
.card-org-logo {
  width: 30px;
  height: 30px;
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
}
.card-org-logo svg {
  width: 30px;
  height: 30px;
  display: block;
}
.card-org-name {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .6px;
  line-height: 1;
}
.card-org-program {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: 3px;
  line-height: 1.2;
  margin-top: 2px;
}
.card-org-sub { font-size: 7.6px; color: rgba(255,255,255,0.72); margin-top: 2px; max-width: 178px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title-urdu {
  font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', 'Jameel Noori Nastaleeq', 'Segoe UI', Tahoma, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f0c060;
  direction: rtl;
  unicode-bidi: isolate;
  text-align: right;
  line-height: 1.7;
  max-width: 98px;
}

/* QR on card */
.card-qr-section {
  position: absolute;
  right: 16px;
  top: 94px;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 6px;
  padding: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.card-qr-section svg {
  display: block;
  width: 68px;
  height: 68px;
}
.card-qr-img {
  width: 68px;
  height: 68px;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
  display: block;
}

/* Card holder */
.card-holder-section { margin-top: 14px; padding-right: 94px; }
.card-holder-label { font-size: 7px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.card-holder-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.card-number { font-size: 9px; color: rgba(255,255,255,0.35); letter-spacing: 1px; font-family: monospace; }

/* Card bottom */
.card-bottom-row {
  position: absolute;
  left: 20px;
  right: 18px;
  bottom: 16px;
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1fr 1fr;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.card-meta-item {}
.cmi-label { font-size: 6.4px; letter-spacing: .75px; text-transform: uppercase; color: rgba(255,255,255,0.46); margin-bottom: 2px; white-space: nowrap; }
.cmi-value { font-size: 9.4px; font-weight: 800; color: #f0c060; white-space: nowrap; }

/* ══════════════════════════════════════
   TALEEM CARD BACK
   ══════════════════════════════════════ */
.tc-card-back {
  width: 340px;
  height: 214px;
  background: #f0f7f2;
  border: 1px solid #c8e0d0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(26,92,46,0.12);
  font-family: 'Inter', sans-serif;
  position: relative;
}
.card-back-stripe {
  height: 36px;
  background: #333;
  width: 100%;
}
.card-back-body {
  padding: 10px 16px 10px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 36px);
  justify-content: space-between;
}
.card-back-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.card-back-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.card-back-logo-mark {
  width: 30px;
  height: 30px;
  color: #1a5c2e;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
}
.card-back-logo-mark svg {
  width: 30px;
  height: 30px;
  display: block;
}
.cb-logo-title {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .45px;
  color: #1a5c2e;
  line-height: 1;
}
.cb-logo-sub {
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 3px;
  font-weight: 700;
  opacity: .72;
  margin-top: 3px;
}
.card-back-student { text-align: right; }
.cbs-label { font-size: 7px; letter-spacing: 1px; text-transform: uppercase; color: #aaa; }
.cbs-name { font-size: 12px; font-weight: 600; color: #1a5c2e; }
.cbs-meta { font-size: 9px; color: #888; }

.card-back-terms { flex: 1; margin: 6px 0; }
.cbt-title { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #888; margin-bottom: 4px; }
.card-back-terms ul { padding-left: 12px; }
.card-back-terms ul li { font-size: 7.5px; color: #555; line-height: 1.6; margin-bottom: 1px; }

.card-back-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 6px;
  border-top: 1px solid #c8e0d0;
}
.card-back-contact { font-size: 7px; color: #888; line-height: 1.6; }
.card-back-app { font-size: 8px; color: #888; font-family: monospace; }

/* ── CARD DETAILS PANEL (screen only) ── */
.card-details-panel {
  background: #fff;
  border: 1px solid #dde8e1;
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
}
.card-details-panel h3 { font-size: 15px; font-weight: 600; color: #1a5c2e; margin-bottom: 14px; }
.cdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.cdp-grid div span { display: block; font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.cdp-grid div strong { font-size: 14px; color: #1a1a1a; }

/* ── SHARED BUTTON/FORM STYLES ── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 22px; border-radius: 9px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: all .15s; }
.btn-primary { background: #1a5c2e; color: #fff; }
.btn-primary:hover { background: #2a7a3f; }
.btn-outline-green { background: transparent; border: 2px solid #1a5c2e; color: #1a5c2e; }
.btn-outline-green:hover { background: #e8f5ec; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: #444; margin-bottom: 5px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid #d0d7df; border-radius: 8px; font-size: 14px; font-family: 'Inter', sans-serif; outline: none; transition: border-color .15s; }
.form-control:focus { border-color: #1a5c2e; box-shadow: 0 0 0 3px rgba(26,92,46,0.1); }
.form-hint { font-size: 11px; color: #aaa; margin-top: 4px; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-danger { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; }
.mono { font-family: monospace; font-size: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid #dde8e1; border-radius: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { background: #f5f7f9; padding: 9px 14px; text-align: left; font-weight: 600; color: #666; border-bottom: 1px solid #eee; }
.table td { padding: 10px 14px; border-bottom: 1px solid #f5f5f5; }
.table tr:last-child td { border-bottom: none; }

/* Modern selectable Taleem Card print templates */
.tc-designed-card { width: 340px; height: 214px; border-radius: 14px; position: relative; overflow: hidden; box-shadow: 0 8px 28px rgba(26,92,46,0.18); font-family: 'Inter', sans-serif; isolation: isolate; }
.tc-designed-front { color: #fff; }
.tc-designed-brand { position: absolute; left: 13px; right: 13px; top: 8px; height: 59px; z-index: 4; }
.tc-designed-mark { position: absolute; left: 0; top: 0; width: 59px; height: 59px; display: grid; place-items: center; }
.tc-designed-mark svg { width: 59px; height: 59px; display: block; }
.tc-designed-word { position: absolute; left: 42px; top: 8px; width: 194px; text-align: center; }
.tc-designed-word strong { display: block; font-size: 21px; line-height: .9; font-weight: 900; letter-spacing: 0; text-shadow: 0 1px 5px rgba(0,0,0,.14); }
.tc-designed-word em { display: block; width: 100%; text-align: center; font-style: normal; font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: .58em; margin-top: 5px; padding-left: .58em; }
.tc-designed-town { position: absolute; left: 89px; top: 52px; width: 128px; z-index: 5; text-align: center; font-size: 11px; line-height: 1; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; border-radius: 999px; padding: 3px 12px; background: #d7ff16; color: #092816; box-shadow: 0 5px 12px rgba(0,0,0,.12); }
.tc-designed-corner { position: absolute; right: 0; top: 0; width: 88px; height: 70px; z-index: 2; object-fit: contain; background: #fff; border-radius: 0 0 0 16px; padding: 7px 6px; box-shadow: 0 8px 14px rgba(0,0,0,.16); }
.tc-designed-qr { position: absolute; right: 15px; bottom: 14px; width: 64px; height: 64px; border-radius: 10px; background: #fff; padding: 5px; z-index: 4; box-shadow: 0 6px 14px rgba(0,0,0,.22); }
.tc-designed-qr img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.tc-designed-student { position: absolute; left: 15px; right: 90px; top: 89px; z-index: 4; }
.tc-designed-label { font-size: 4.8px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; opacity: .68; }
.tc-designed-name { margin-top: 3px; font-size: 16px; line-height: 1.05; font-weight: 900; letter-spacing: 0; }
.tc-designed-card-no { margin-top: 4px; font-size: 8.8px; font-weight: 850; opacity: .86; }
.tc-designed-info-row { display: grid; grid-template-columns: .5fr .9fr 1.32fr; gap: 4px; margin-top: 18px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.18); }
.tc-designed-info-row div, .tc-designed-meta div { min-width: 0; }
.tc-designed-info-row span, .tc-designed-meta span { display: block; font-size: 4.8px; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; opacity: .62; white-space: nowrap; }
.tc-designed-info-row strong { display: block; margin-top: 3px; font-size: 7.2px; line-height: 1.05; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-designed-meta { position: absolute; left: 15px; right: 95px; bottom: 7px; display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 4px; z-index: 4; }
.tc-designed-meta strong { display: block; margin-top: 3px; font-size: 7.4px; line-height: 1.1; font-weight: 900; white-space: nowrap; }
.tc-card-civic { background: radial-gradient(circle at 84% 18%,rgba(245,183,47,.26),transparent 26%), linear-gradient(135deg,#05351f,#0f7a44); }
.tc-card-expo { background: linear-gradient(135deg,#07384e,#0b7891); }
.tc-card-youth { background: linear-gradient(145deg,#1e1b4b,#5b21b6 52%,#0f766e); }
.tc-designed-front::before { content: ""; position: absolute; inset: auto -47px -64px -20px; height: 120px; background: rgba(255,255,255,.08); border-radius: 50% 50% 0 0; transform: rotate(8deg); z-index: 1; }
.tc-card-expo::before { right: -28px; bottom: -28px; left: auto; width: 120px; height: 120px; background: rgba(255,255,255,.16); border-radius: 50%; transform: none; }
.tc-card-youth::before { inset: -1px; width: auto; height: auto; background: linear-gradient(120deg,transparent 0 45%,rgba(255,255,255,.16) 45% 58%,transparent 58%); border-radius: 0; transform: none; }
.tc-card-civic .tc-designed-meta strong, .tc-card-youth .tc-designed-meta strong { color: #f5b72f; }
.tc-card-expo .tc-designed-meta strong { color: #fcd34d; }
.tc-designed-back { background: #fff; color: #102b1d; border: 1px solid #cfe4d8; }
.tc-card-back-expo { background: #eefbff; border-color: #c8edf6; }
.tc-card-back-youth { background: #f8f5ff; border-color: #ded4ff; }
.tc-designed-back-body { position: absolute; inset: 0; padding: 12px; display: flex; flex-direction: column; }
.tc-designed-back-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; padding-bottom: 7px; border-bottom: 1px solid #d9e8df; }
.tc-designed-back-mark { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; }
.tc-designed-back-mark svg { width: 31px; height: 31px; display: block; }
.tc-designed-back-brand strong { display: block; color: #0c5130; font-size: 13px; line-height: .92; font-weight: 900; }
.tc-designed-back-brand em { display: block; width: 106px; color: #0c5130; font-style: normal; font-size: 6px; letter-spacing: .46em; margin-top: 3px; padding-left: .46em; font-weight: 900; text-align: center; }
.tc-designed-back-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid #d9e8df; }
.tc-designed-back-title h3 { margin: 0; color: #0c5130; font-size: 10px; }
.tc-designed-back-title span { font-size: 6px; font-weight: 900; color: #6c7a72; text-transform: uppercase; }
.tc-designed-terms { margin: 8px 0 0; padding-left: 13px; color: #24362d; font-size: 5.8px; line-height: 1.5; font-weight: 650; }
.tc-designed-terms li { margin-bottom: 2px; }
.tc-designed-back-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid #d9e8df; padding-top: 7px; color: #0c5130; font-size: 6px; line-height: 1.35; font-weight: 900; }
.tc-designed-seal { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 6px; line-height: 1.05; font-weight: 900; text-align: center; background: #e8f8ef; color: #0c5130; border: 1px solid #cfe4d8; }
.tc-card-back-expo .tc-designed-seal { background: #07384e; color: #fff; border-color: #07384e; }
.tc-card-back-youth .tc-designed-seal { background: #5b21b6; color: #fff; border-color: #5b21b6; }

/* ══════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════ */
@media print {
  /* Hide everything except the cards */
  .no-print,
  .site-header,
  .landing-header,
  .public-header,
  .card-public-header,
  .site-footer,
  .landing-nav,
  .landing-menu,
  .card-view-header,
  .print-instruction,
  .card-details-panel,
  .card-page-wrap > *:not(.card-view-wrap) { display: none !important; }

  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  html, body { margin: 0; padding: 0; background: #fff !important; }

  body * {
    visibility: hidden;
  }

  .card-print-sheet,
  .card-print-sheet * {
    visibility: visible;
  }

  .card-view-wrap { padding: 0; margin: 0; max-width: 100%; }

  .card-print-sheet {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20mm;
    page-break-inside: avoid;
  }

  .tc-card-front,
  .tc-card-back,
  .tc-designed-card {
    /* Credit card: 85.6mm × 53.98mm */
    width: 85.6mm !important;
    height: 53.98mm !important;
    border-radius: 3mm !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .card-qr-img {
    width: 20mm !important;
    height: 20mm !important;
  }

  /* Adjust font sizes for print */
  .card-org-logo,
  .card-org-logo svg,
  .card-back-logo-mark,
  .card-back-logo-mark svg {
    width: 7.5mm !important;
    height: 7.5mm !important;
    flex-basis: 7.5mm !important;
  }
  .card-org-name { font-size: 6.2pt !important; }
  .card-org-program { font-size: 5.4pt !important; letter-spacing: 2pt !important; }
  .card-org-sub  { font-size: 5.2pt !important; }
  .card-title-urdu { font-size: 11pt !important; }
  .card-holder-label { font-size: 5pt !important; }
  .card-holder-name  { font-size: 9pt !important; }
  .card-number       { font-size: 6pt !important; }
  .card-bottom-row { bottom: 4mm !important; gap: 2.2mm !important; }
  .cmi-label { font-size: 4.6pt !important; }
  .cmi-value { font-size: 6.6pt !important; }
  .card-back-stripe { height: 10mm !important; }
  .cbs-name { font-size: 8pt !important; }
  .cbs-meta { font-size: 6pt !important; }
  .card-back-terms ul li { font-size: 5.5pt !important; }
  .card-back-contact { font-size: 5pt !important; }
  .card-back-app { font-size: 5pt !important; }
  .cb-logo-title { font-size: 6.5pt !important; }
  .cb-logo-sub { font-size: 5.4pt !important; letter-spacing: 2pt !important; }

  @page { size: A4; margin: 15mm; }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .card-lookup-card { padding: 28px 20px; }
  .tc-card-front, .tc-card-back, .tc-designed-card { width: 100%; max-width: 340px; }
  .card-view-header { flex-direction: column; align-items: flex-start; }
  .card-view-actions { width: 100%; }
  .card-view-actions .btn { flex: 1; justify-content: center; }
  .cdp-grid { grid-template-columns: 1fr; }
}
/* Card page public shell */
.card-public-page {
  background: #f4f7f5;
}

.card-public-header {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 80;
  background:
    radial-gradient(circle at 85% -20%, rgba(201, 223, 31, .18), transparent 26%),
    linear-gradient(90deg, #052d18 0%, #0b542d 56%, #176f3b 100%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 40px rgba(6, 50, 28, .18);
  padding: 0;
}

.card-public-header .header-inner {
  height: 96px;
  grid-template-columns: auto 1fr auto;
  gap: 44px;
}

.card-public-header .landing-logo,
.card-public-header .landing-nav a,
.card-public-header .landing-menu {
  color: #fff;
  text-shadow: none;
}

.card-public-header .landing-logo strong {
  color: #fff;
  font-size: 26px;
}

.card-public-header .landing-logo em {
  color: rgba(255,255,255,.9);
  font-size: 23px;
}

.card-public-header .landing-mark {
  color: #fff;
  border-color: rgba(255,255,255,.38);
  background: transparent;
}

.card-public-header .landing-logo {
  min-width: 286px;
}

.card-public-header .landing-mark,
.card-public-header .landing-mark svg {
  width: 58px;
  height: 58px;
}

.card-public-header .landing-nav a {
  opacity: 1;
  font-size: 15px;
  padding-top: 12px;
  padding-bottom: 15px;
}

.card-public-header .landing-nav {
  justify-content: flex-start;
  gap: 26px;
}

.card-public-header .landing-nav a:hover,
.card-public-header .landing-nav a.active {
  color: #fff;
}

.card-public-header .nav-register {
  height: 48px;
  padding: 0 22px !important;
  background: #13763d;
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
}
.card-public-header .nav-register:hover,
.card-public-header .nav-register.active {
  background: #0f6a36;
  color: #fff !important;
}

.card-public-header .landing-menu span {
  background: #fff;
}

.card-view-header {
  background: #fff;
  border: 1px solid #dde8e1;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(15, 40, 28, 0.05);
}

.print-card-btn {
  min-width: 130px;
  background: #0b5d32 !important;
  color: #fff !important;
  border-color: #0b5d32 !important;
  box-shadow: 0 8px 18px rgba(11, 93, 50, 0.18);
}

@media (max-width: 900px) {
  .card-public-header .header-inner {
    height: 86px;
    grid-template-columns: auto auto;
  }

  .card-public-header .landing-nav {
    top: 86px;
    background: rgba(3, 45, 24, .98);
    border: 0;
    box-shadow: 0 20px 48px rgba(3, 28, 16, .32);
  }
}
