@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Roboto:wght@400;500;700;900&display=swap');
:root{--blue:#1457c8;--blue2:#0b347c;--green:#198d36;--gold:#e7ad24;--dark:#13233e}
.ftlh-portal-wrapper{font-family:Roboto,Arial,sans-serif;max-width:1240px;margin:0 auto;padding:0 16px;color:#101828}.ftlh-portal-hero{text-align:center;padding:45px 20px 38px;background:linear-gradient(135deg,#0D1B2A 0%,#1565C0 50%,#2E7D32 100%);border-radius:18px;margin-bottom:30px;position:relative;overflow:hidden}.ftlh-portal-hero:before{content:"";position:absolute;inset:-50%;background:radial-gradient(circle,rgba(255,255,255,.09),transparent 55%);pointer-events:none}.ftlh-portal-logo-wrap,.ftlh-portal-title,.ftlh-portal-subtitle,.ftlh-search-container{position:relative;z-index:2}.ftlh-portal-logo{width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 4px 12px rgba(0,0,0,.28))}.ftlh-portal-title{font-family:'Playfair Display',Georgia,serif;font-size:42px;color:#fff;margin:10px 0 8px}.ftlh-portal-subtitle{color:rgba(255,255,255,.86);font-size:16px;margin:0 0 28px}.ftlh-search-container{max-width:680px;margin:0 auto}.ftlh-search-box{display:flex;align-items:center;gap:10px;background:#fff;border-radius:50px;padding:7px 7px 7px 20px;box-shadow:0 8px 28px rgba(0,0,0,.22);position:relative;z-index:5}.ftlh-search-box input{flex:1;border:0;outline:0;background:transparent;font-size:16px;min-width:130px}.ftlh-search-box button{background:linear-gradient(135deg,#1565C0,#2E7D32);color:#fff;border:0;border-radius:40px;padding:12px 28px;font-size:16px;font-weight:800;cursor:pointer}.ftlh-search-box button:disabled{opacity:.65;cursor:not-allowed}.search-hint{color:rgba(255,255,255,.72);font-size:13px;margin-top:11px}.ftlh-loading{text-align:center;padding:35px;color:var(--blue)}.ftlh-spinner{width:46px;height:46px;border:4px solid #e0e0e0;border-top-color:var(--blue);border-radius:50%;animation:ftlhspin .8s linear infinite;margin:0 auto 12px}@keyframes ftlhspin{to{transform:rotate(360deg)}}.ftlh-error-box{background:#fff3f3;border:2px solid #ffcdd2;border-radius:12px;padding:18px;color:#c62828;text-align:center;margin:0 auto 24px;max-width:680px;display:flex;justify-content:center;gap:10px}.ftlh-cert-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:0 0 24px}.ftlh-download-btn,.ftlh-print-btn{border:0;border-radius:50px;padding:13px 28px;font-size:15px;font-weight:900;color:#fff;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.17)}.ftlh-download-btn{background:linear-gradient(135deg,#F9A825,#E65100)}.ftlh-print-btn{background:linear-gradient(135deg,#1565C0,#2E7D32)}.ftlh-cert-section{margin-bottom:60px}.ftlh-cert-container{display:flex;justify-content:center;max-width:100%;overflow-x:auto;padding:10px 0 28px;background:#f6f6f6;border-top:1px solid #eee;border-bottom:1px solid #eee}

/* FTLH Certificate of Completion v2 — dynamic frontend certificate */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@400;600;700;800&family=Rajdhani:wght@400;600;700&display=swap');

.ftlh-cert-wrap {
  width: 1100px;
  max-width: 100%;
  min-height: 780px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  border: 1px solid #e0e0e0;
  margin: 20px auto;
  box-sizing: border-box;
}
.ftlh-cert-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,180,255,0.07) 1px, transparent 1px),
    radial-gradient(circle, rgba(0,220,130,0.05) 1px, transparent 1px);
  background-size: 38px 38px, 19px 19px;
  background-position: 0 0, 9px 9px;
  pointer-events: none;
  z-index: 0;
}
.ftlh-cert-top-bar {
  height: 8px;
  background: linear-gradient(90deg, #0055ff 0%, #00c8ff 40%, #00e87a 70%, #ffc200 100%);
  position: relative; z-index: 1;
}
.ftlh-cert-header {
  padding: 22px 36px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ===== LOGO — replace src with your actual logo URL ===== */
.ftlh-cert-logo-img {
  width: 100px; height: 100px;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 4px 24px rgba(0,120,255,0.18);
  margin-bottom: 10px;
  background: #fff;
  border: 2px solid #00c8ff33;
  display: block;
}
/* Fallback box shown if image doesn't load */
.ftlh-cert-logo-fallback {
  width: 100px; height: 100px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0055ff 0%, #00c8ff 50%, #00e87a 100%);
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(0,120,255,0.25);
  margin-bottom: 10px;
  overflow: hidden;
}
.ftlh-cert-logo-fallback svg { width: 62px; height: 62px; }

.ftlh-cert-org-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 5px;
  color: #1a2a4a;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ftlh-cert-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px; font-weight: 800;
  color: #0a1a3a;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin: 4px 0;
}
.ftlh-cert-subtitle-bar {
  background: linear-gradient(90deg, #0055ff, #00c8ff, #00e87a);
  border-radius: 30px;
  padding: 7px 36px;
  margin: 10px 0 8px;
  display: inline-block;
}
.ftlh-cert-subtitle-bar span {
  color: #fff;
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.ftlh-cert-student-name {
  font-family: 'Great Vibes', cursive;
  font-size: 50px;
  color: #0a1a3a;
  margin: 2px 0 0;
  line-height: 1.1;
}
.ftlh-cert-completed-text {
  font-size: 11px; color: #556; letter-spacing: 1px;
  margin: 4px 0 16px;
  max-width: 500px; text-align: center;
}
.ftlh-cert-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00c8ff44, #ffc20044, transparent);
  position: relative; z-index: 1;
}
.ftlh-cert-body {
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  gap: 0;
  padding: 14px 20px 10px;
  align-items: start;
  position: relative; z-index: 1;
}
.ftlh-cert-left { padding: 0 12px 0 0; }
.ftlh-cert-photo-box {
  width: 120px; height: 120px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f4ff, #e0fff5);
  border: 2px solid #00c8ff55;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,180,255,0.1);
}
.ftlh-cert-photo-box svg { width: 54px; height: 54px; opacity: 0.35; }
.ftlh-cert-info-table { width: 100%; font-size: 10px; border-collapse: collapse; }
.ftlh-cert-info-table tr td:first-child {
  color: #0055ff; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 3px 0; white-space: nowrap; font-size: 9px;
}
.ftlh-cert-info-table tr td:last-child {
  color: #1a2a4a; padding: 3px 0 3px 6px; font-weight: 600; font-size: 10px;
}
.ftlh-cert-center { padding: 0 10px; }
.ftlh-cert-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.ftlh-cert-card {
  background: linear-gradient(135deg, #f0f8ff, #f0fff8);
  border: 1px solid #00c8ff33;
  border-radius: 10px;
  padding: 9px 11px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.ftlh-cert-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0055ff, #00e87a);
  border-radius: 10px 10px 0 0;
}
.ftlh-cert-card-label {
  font-size: 8px; font-weight: 700; color: #0055ff;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px;
}
.ftlh-cert-card-value {
  font-size: 12px; font-weight: 700; color: #0a1a3a; line-height: 1.3;
}
.ftlh-cert-card-sub {
  font-size: 9px; color: #556; margin-top: 2px;
}
.ftlh-cert-card-icon {
  position: absolute; top: 8px; right: 10px; font-size: 16px; opacity: 0.18;
}
.ftlh-cert-bottom-section {
  background: linear-gradient(135deg, #f7faff, #f0fff8);
  border: 1px solid #00c8ff22;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.ftlh-cert-bottom-label {
  font-size: 8px; font-weight: 700; color: #0055ff;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.ftlh-cert-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ftlh-cert-tag {
  background: linear-gradient(90deg, #0055ff11, #00c8ff22);
  border: 1px solid #00c8ff44;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 9px; font-weight: 600; color: #0044cc;
}
.ftlh-cert-stars { display: flex; gap: 2px; margin-top: 3px; }
.ftlh-cert-star-fill { color: #ffc200; font-size: 13px; }
.ftlh-cert-perf-row { margin-bottom: 5px; }
.ftlh-cert-perf-label {
  font-size: 9px; color: #334; font-weight: 600; margin-bottom: 2px;
  display: flex; justify-content: space-between;
}
.ftlh-cert-perf-bar {
  height: 5px; border-radius: 3px; background: #e8eef5; overflow: hidden;
}
.ftlh-cert-perf-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #0055ff, #00e87a);
}

/* RIGHT COLUMN — Gold badge + QR */
.ftlh-cert-right { padding: 0 0 0 8px; }
.ftlh-cert-badge {
  width: 150px; height: 62px;
  background: linear-gradient(135deg, #b8860b, #ffc200, #ffe066, #ffc200, #b8860b);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  box-shadow: 0 2px 12px rgba(180,140,0,0.25);
  margin: 0 auto 12px;
  border: 2px solid #e6ac00;
  position: relative; overflow: hidden;
}
.ftlh-cert-badge::before {
  content: '';
  position: absolute; inset: 3px;
  border: 1.5px dashed rgba(255,255,255,0.5);
  border-radius: 7px;
}
.ftlh-cert-badge-title {
  font-size: 8px; font-weight: 800; color: #4a2d00;
  letter-spacing: 2px; text-transform: uppercase;
}
.ftlh-cert-badge-sub {
  font-size: 11px; font-weight: 800; color: #2a1a00; letter-spacing: 1px;
}
.ftlh-cert-badge-check { font-size: 13px; margin-bottom: 2px; color: #4a2d00; }

/* QR Box */
.ftlh-cert-qr-box {
  width: 120px; height: 120px;
  border: 2px solid #00c8ff44;
  border-radius: 10px;
  background: #f8fbff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 4px;
  overflow: hidden;
}
.ftlh-cert-qr-label {
  text-align: center; font-size: 9px; font-weight: 700;
  color: #0055ff; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 6px;
}
.ftlh-cert-cert-id {
  text-align: center; font-size: 8px; color: #556;
  margin-top: 6px; font-family: monospace; letter-spacing: 0.5px;
}

/* Corner decorations */
.ftlh-cert-corner {
  position: absolute; width: 60px; height: 60px; pointer-events: none; z-index: 2;
}
.ftlh-cert-corner-tl { top: 8px; left: 8px; }
.ftlh-cert-corner-tr { top: 8px; right: 8px; transform: scaleX(-1); }
.ftlh-cert-corner-bl { bottom: 52px; left: 8px; transform: scaleY(-1); }
.ftlh-cert-corner-br { bottom: 52px; right: 8px; transform: scale(-1,-1); }

/* SIGNATURE AREA */
.ftlh-cert-sig-area {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 28px; padding: 6px 20px 10px;
  border-top: 1px solid #00c8ff22;
  position: relative; z-index: 1;
}
.ftlh-cert-sig-block { text-align: center; }
.ftlh-cert-sig-line {
  width: 130px; height: 1px;
  background: linear-gradient(90deg, transparent, #0055ff, transparent);
  margin: 0 auto 4px;
}
.ftlh-cert-sig-name { font-size: 11px; font-weight: 700; color: #0a1a3a; }
.ftlh-cert-sig-title { font-size: 9px; color: #0055ff; letter-spacing: 0.5px; }

/* Signature image box */
.ftlh-cert-sig-img {
  width: 130px; height: 55px;
  object-fit: contain;
  display: block;
  margin: 0 auto 2px;
  /* Replace src with your actual signature image URL */
}
/* Fallback placeholder if no image */
.ftlh-cert-sig-placeholder {
  width: 130px; height: 55px;
  display: flex; align-items: center; justify-content: center;
  background: #f5f8ff;
  border-radius: 6px;
  border: 1px dashed #00c8ff66;
  margin: 0 auto 2px;
  font-size: 9px; color: #aab; font-style: italic;
}

/* FOOTER */
.ftlh-cert-footer {
  background: linear-gradient(90deg, #0033cc, #0099dd, #00cc77, #cc9900);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  min-height: 50px;
  flex-wrap: wrap;
  gap: 4px;
  position: relative; z-index: 1;
}
.ftlh-cert-footer-left {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.ftlh-cert-footer-tagline {
  font-size: 11px; color: #fff; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}
.ftlh-cert-footer-contact {
  font-size: 10px; color: rgba(255,255,255,0.92);
  font-weight: 500; letter-spacing: 0.5px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.ftlh-cert-footer-contact a {
  color: rgba(255,255,255,0.95); text-decoration: none;
}
.ftlh-cert-footer-right {
  text-align: right;
}
.ftlh-cert-footer-url {
  font-size: 10px; color: rgba(255,255,255,0.88);
  font-weight: 600; letter-spacing: 1px; display: block;
}

.ftlh-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ftlh-two-col-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 768px) {
  .ftlh-cert-wrap { width: 100%; }
  .ftlh-cert-body { grid-template-columns: 1fr; }
  .ftlh-cert-title { font-size: 18px; letter-spacing: 3px; }
  .ftlh-cert-student-name { font-size: 34px; }
  .ftlh-cert-cards-grid { grid-template-columns: 1fr 1fr; }
  .ftlh-two-col { grid-template-columns: 1fr; }
  .ftlh-two-col-inner { grid-template-columns: 1fr; }
  .ftlh-cert-footer { flex-direction: column; padding: 10px 20px; align-items: flex-start; }
}

.ftlh-cert-container{display:flex;justify-content:center;max-width:100%;overflow-x:auto;padding:10px 0 28px;background:#f6f6f6;border-top:1px solid #eee;border-bottom:1px solid #eee}
.ftlh-cert-actions{text-align:center;margin:20px 0;display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.ftlh-download-btn,.ftlh-print-btn{border:0;border-radius:50px;padding:13px 28px;font-size:15px;font-weight:900;color:#fff;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.17)}
.ftlh-download-btn{background:linear-gradient(135deg,#F9A825,#E65100)}.ftlh-print-btn{background:linear-gradient(135deg,#1565C0,#2E7D32)}
#ftlh-certificate.ftlh-cert-wrap{width:1100px!important;min-width:1100px!important;min-height:780px!important;box-shadow:0 18px 70px rgba(0,0,0,.16)!important}
.ftlh-cert-qr-box #certQrCode{width:116px;height:116px;display:flex;align-items:center;justify-content:center}.ftlh-cert-qr-box #certQrCode img{display:block!important}
@media print{body *{visibility:hidden!important}#ftlh-certificate,#ftlh-certificate *{visibility:visible!important}.ftlh-portal-hero,.ftlh-cert-actions{display:none!important}#ftlh-certificate{position:absolute!important;left:0!important;top:0!important;box-shadow:none!important;transform:scale(.9);transform-origin:top left}.ftlh-cert-container{overflow:visible!important;background:#fff!important;padding:0!important}}

/* ===== FTLH v1.0.8 Responsive Certificate Fix ===== */
.ftlh-cert-container{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  box-sizing:border-box;
}
#ftlh-certificate.ftlh-cert-wrap{
  max-width:100%!important;
}
.ftlh-cert-wrap,
.ftlh-cert-wrap *{
  box-sizing:border-box;
}
.ftlh-cert-info-table td,
.ftlh-cert-card-value,
.ftlh-cert-card-sub,
.ftlh-cert-cert-id,
.ftlh-cert-footer-contact,
.ftlh-cert-footer-url{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.ftlh-cert-exporting#ftlh-certificate.ftlh-cert-wrap{
  width:1100px!important;
  min-width:1100px!important;
  min-height:780px!important;
}

@media (max-width: 900px){
  .ftlh-portal-wrapper{padding:0 10px;}
  .ftlh-portal-hero{padding:30px 14px 28px;border-radius:14px;}
  .ftlh-portal-title{font-size:30px;line-height:1.15;}
  .ftlh-portal-subtitle{font-size:14px;}
  .ftlh-search-box{border-radius:18px;gap:8px;padding:10px;flex-direction:column;align-items:stretch;}
  .ftlh-search-box input{width:100%;font-size:15px;padding:10px 6px;text-align:center;}
  .ftlh-search-box button{width:100%;padding:12px 18px;}

  .ftlh-cert-container{padding:8px 0 18px;background:#fff;overflow-x:hidden;}
  #ftlh-certificate.ftlh-cert-wrap,
  .ftlh-cert-wrap{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:0!important;
    margin:10px auto!important;
    overflow:visible!important;
    border-radius:14px;
    box-shadow:0 10px 35px rgba(0,0,0,.12)!important;
  }
  .ftlh-cert-header{padding:18px 14px 0;}
  .ftlh-cert-logo-img,.ftlh-cert-logo-fallback{width:78px;height:78px;border-radius:14px;}
  .ftlh-cert-org-name{font-size:11px;letter-spacing:2.5px;text-align:center;}
  .ftlh-cert-title{font-size:22px;letter-spacing:2px;text-align:center;line-height:1.2;}
  .ftlh-cert-subtitle-bar{padding:7px 14px;margin:9px 0 8px;max-width:100%;}
  .ftlh-cert-subtitle-bar span{font-size:10px;letter-spacing:1px;line-height:1.3;display:block;text-align:center;}
  .ftlh-cert-student-name{font-size:38px;text-align:center;line-height:1.05;}
  .ftlh-cert-completed-text{font-size:10px;line-height:1.5;margin-bottom:14px;padding:0 6px;}
  .ftlh-cert-body{
    display:grid;
    grid-template-columns:1fr!important;
    gap:14px;
    padding:14px 12px 12px;
  }
  .ftlh-cert-left,.ftlh-cert-center,.ftlh-cert-right{padding:0!important;width:100%;}
  .ftlh-cert-photo-box{width:105px;height:105px;margin-bottom:10px;}
  .ftlh-cert-info-table{max-width:360px;margin:0 auto;font-size:10px;}
  .ftlh-cert-info-table tr{border-bottom:1px solid rgba(0,200,255,.12);}
  .ftlh-cert-info-table tr td:first-child{width:38%;font-size:8px;padding:5px 3px;white-space:normal;}
  .ftlh-cert-info-table tr td:last-child{font-size:10px;padding:5px 3px 5px 8px;}
  .ftlh-cert-cards-grid{grid-template-columns:1fr 1fr!important;gap:8px;}
  .ftlh-cert-card{padding:10px 9px;min-height:78px;}
  .ftlh-cert-card-label{font-size:8px;letter-spacing:.6px;padding-right:16px;}
  .ftlh-cert-card-value{font-size:11px;line-height:1.25;}
  .ftlh-cert-card-sub{font-size:8px;}
  .ftlh-two-col,.ftlh-two-col-inner{grid-template-columns:1fr!important;gap:8px;}
  .ftlh-cert-bottom-section{padding:10px;margin-bottom:8px;}
  .ftlh-cert-tags{gap:5px;}
  .ftlh-cert-tag{font-size:8.5px;padding:3px 7px;}
  .ftlh-cert-right{display:flex;flex-direction:column;align-items:center;}
  .ftlh-cert-badge{width:150px;height:58px;margin:0 auto 10px;}
  .ftlh-cert-qr-box{width:118px;height:118px;}
  .ftlh-cert-qr-box #certQrCode{width:112px!important;height:112px!important;}
  .ftlh-cert-qr-box #certQrCode img,
  .ftlh-cert-qr-box #certQrCode canvas{width:112px!important;height:112px!important;}
  .ftlh-cert-cert-id{font-size:9px;line-height:1.45;margin-bottom:4px;}
  .ftlh-cert-sig-area{gap:10px;padding:12px 12px 14px;align-items:center;}
  .ftlh-cert-sig-area > div[style*="flex:1"]{display:none;}
  .ftlh-cert-sig-img,.ftlh-cert-sig-placeholder{width:120px;height:48px;}
  .ftlh-cert-footer{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px;
    padding:12px 10px!important;
    min-height:0!important;
    text-align:center;
    border-radius:0 0 14px 14px;
  }
  .ftlh-cert-footer-left{align-items:center;width:100%;}
  .ftlh-cert-footer-tagline{font-size:9.5px;letter-spacing:1px;line-height:1.35;}
  .ftlh-cert-footer-contact{justify-content:center;gap:5px 12px;font-size:9px;line-height:1.45;width:100%;}
  .ftlh-cert-footer-right{text-align:center;width:100%;}
  .ftlh-cert-footer-url{font-size:9px;}
  .ftlh-cert-corner{width:38px;height:38px;}
  .ftlh-cert-corner-bl{bottom:72px;}
  .ftlh-cert-corner-br{bottom:72px;}
}

@media (max-width: 480px){
  .ftlh-cert-actions{gap:8px;margin:14px 0;}
  .ftlh-download-btn,.ftlh-print-btn{width:100%;max-width:280px;padding:12px 18px;font-size:14px;}
  .ftlh-cert-header{padding-left:10px;padding-right:10px;}
  .ftlh-cert-title{font-size:18px;letter-spacing:1.3px;}
  .ftlh-cert-org-name{letter-spacing:1.6px;}
  .ftlh-cert-student-name{font-size:32px;}
  .ftlh-cert-body{padding:12px 9px;gap:12px;}
  .ftlh-cert-cards-grid{grid-template-columns:1fr!important;}
  .ftlh-cert-card{min-height:auto;}
  .ftlh-cert-info-table tr td:first-child{width:42%;}
  .ftlh-cert-footer-contact{flex-direction:column;gap:2px;}
}

@media (max-width: 360px){
  .ftlh-cert-title{font-size:16px;}
  .ftlh-cert-student-name{font-size:29px;}
  .ftlh-cert-subtitle-bar{padding:6px 10px;}
  .ftlh-cert-logo-img,.ftlh-cert-logo-fallback{width:68px;height:68px;}
}


/* ===== FTLH v1.0.9 Mobile Download QR Fix ===== */
/* Jab mobile par download hota hai, export class desktop certificate size ko force karti hai
   taake html2canvas QR aur right column ko crop na kare. */
#ftlh-certificate.ftlh-cert-exporting.ftlh-cert-wrap{
  width:1100px!important;
  min-width:1100px!important;
  max-width:1100px!important;
  min-height:780px!important;
  overflow:visible!important;
  border-radius:0!important;
}
#ftlh-certificate.ftlh-cert-exporting .ftlh-cert-body{
  display:grid!important;
  grid-template-columns:220px 1fr 180px!important;
  gap:0!important;
  padding:14px 20px 10px!important;
  align-items:start!important;
}
#ftlh-certificate.ftlh-cert-exporting .ftlh-cert-left{padding:0 12px 0 0!important;width:auto!important;}
#ftlh-certificate.ftlh-cert-exporting .ftlh-cert-center{padding:0 10px!important;width:auto!important;}
#ftlh-certificate.ftlh-cert-exporting .ftlh-cert-right{
  padding:0 0 0 8px!important;
  width:auto!important;
  display:block!important;
  overflow:visible!important;
}
#ftlh-certificate.ftlh-cert-exporting .ftlh-cert-cards-grid{grid-template-columns:1fr 1fr!important;}
#ftlh-certificate.ftlh-cert-exporting .ftlh-two-col,
#ftlh-certificate.ftlh-cert-exporting .ftlh-two-col-inner{grid-template-columns:1fr 1fr!important;}
#ftlh-certificate.ftlh-cert-exporting .ftlh-cert-qr-box{
  width:124px!important;
  height:124px!important;
  padding:2px!important;
  overflow:visible!important;
}
#ftlh-certificate.ftlh-cert-exporting .ftlh-cert-qr-box #certQrCode{
  width:116px!important;
  height:116px!important;
  display:block!important;
  overflow:visible!important;
  line-height:0!important;
}
#ftlh-certificate.ftlh-cert-exporting .ftlh-cert-qr-box #certQrCode img,
#ftlh-certificate.ftlh-cert-exporting .ftlh-cert-qr-box #certQrCode canvas,
#ftlh-certificate.ftlh-cert-exporting .ftlh-cert-qr-box #certQrCode table{
  width:116px!important;
  height:116px!important;
  max-width:none!important;
  max-height:none!important;
  display:block!important;
  margin:0!important;
}
#ftlh-certificate.ftlh-cert-exporting .ftlh-cert-footer{
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:0 28px!important;
  min-height:50px!important;
  border-radius:0!important;
  text-align:left!important;
}
#ftlh-certificate.ftlh-cert-exporting .ftlh-cert-footer-contact{flex-direction:row!important;}


/* ===== FTLH v1.1.1 FINAL Mobile Footer Download Fix ===== */
#ftlh-certificate-export-clone.ftlh-cert-wrap,
.ftlh-cert-exporting.ftlh-cert-wrap{width:1100px!important;min-width:1100px!important;max-width:1100px!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;display:block!important;transform:none!important;background:#ffffff!important;}
#ftlh-certificate-export-clone *{box-sizing:border-box;}
#ftlh-certificate-export-clone .ftlh-cert-body,
.ftlh-cert-exporting .ftlh-cert-body{display:grid!important;grid-template-columns:220px 1fr 180px!important;padding:14px 20px 10px!important;gap:0!important;align-items:start!important;overflow:visible!important;}
#ftlh-certificate-export-clone .ftlh-cert-footer,
.ftlh-cert-exporting .ftlh-cert-footer{display:flex!important;visibility:visible!important;opacity:1!important;position:relative!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;min-height:50px!important;height:auto!important;padding:0 28px!important;overflow:visible!important;transform:none!important;}
#ftlh-certificate-export-clone .ftlh-cert-sig-area,
.ftlh-cert-exporting .ftlh-cert-sig-area{display:flex!important;visibility:visible!important;opacity:1!important;position:relative!important;overflow:visible!important;}
#ftlh-certificate-export-clone .ftlh-cert-right,
.ftlh-cert-exporting .ftlh-cert-right,
#ftlh-certificate-export-clone .ftlh-cert-qr-box,
.ftlh-cert-exporting .ftlh-cert-qr-box{overflow:visible!important;}
#ftlh-certificate-export-clone .ftlh-cert-qr-box,
.ftlh-cert-exporting .ftlh-cert-qr-box{width:124px!important;height:124px!important;padding:2px!important;}
#ftlh-certificate-export-clone #certQrCode,
.ftlh-cert-exporting #certQrCode,
#ftlh-certificate-export-clone #certQrCode img,
#ftlh-certificate-export-clone #certQrCode canvas,
#ftlh-certificate-export-clone #certQrCode table,
.ftlh-cert-exporting #certQrCode img,
.ftlh-cert-exporting #certQrCode canvas,
.ftlh-cert-exporting #certQrCode table{width:116px!important;height:116px!important;max-width:none!important;max-height:none!important;display:block!important;overflow:visible!important;}
