/* ── Certifications Page ─────────────────────────────────────────────── */
:root {
  --ssh-font-head: 'Outfit', sans-serif;
  --ssh-font-body: 'Inter', sans-serif;
  --ssh-teal:      #1c98ab;
  --ssh-teal-d:    #0e6e7e;
  --ssh-ink:       #0e4d57;
  --ssh-body:      #4b5563;
  --ssh-muted:     #6b7280;
  --ssh-soft:      #f6f7f9;
  --ssh-soft2:     #eef1f6;
  --ssh-line:      #e5e7eb;
  --ssh-shadow:    0 2px 8px rgba(16,24,40,.07), 0 1px 2px rgba(16,24,40,.04);
}

.ssh-cert-page {
  font-family: var(--ssh-font-body);
  color: var(--ssh-body);
}

.ssh-cc-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ── Hero ── */
.ssh-cert-hero {
  background: linear-gradient(135deg, var(--ssh-teal-d) 0%, var(--ssh-teal) 100%);
  padding: 40px 0 36px;
  text-align: center;
  color: #fff;
}
.ssh-cc-eyebrow {
  font-family: var(--ssh-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: .75;
  margin: 0 0 14px;
  color: #fff;
}
.ssh-cc-heading {
  font-family: var(--ssh-font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 16px;
  line-height: 1.1;
}
.ssh-cc-sub {
  font-size: 16px;
  line-height: 1.65;
  opacity: .85;
  max-width: 560px;
  margin: 0 auto;
  color: #fff;
}

/* ── Certificate cards ── */
.ssh-cert-cards-section {
  background: var(--ssh-soft);
  padding: 64px 0 48px;
}

.ssh-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
@media (max-width: 860px) {
  .ssh-cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .ssh-cert-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}

.ssh-cert-card {
  background: #fff;
  border: 1px solid var(--ssh-line);
  border-radius: 16px;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.ssh-cert-card:hover {
  border-color: var(--ssh-teal);
  box-shadow: 0 8px 28px rgba(28,152,171,.14);
  transform: translateY(-3px);
}
.ssh-cert-card--link { cursor: pointer; }

.ssh-cert-img-wrap {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.ssh-cert-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .2s;
}
.ssh-cert-card:hover .ssh-cert-img-wrap img {
  transform: scale(1.05);
}
.ssh-cert-placeholder {
  width: 72px;
  height: 72px;
  background: var(--ssh-soft2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ssh-teal);
}
.ssh-cert-placeholder svg {
  width: 28px;
  height: 28px;
}

.ssh-cert-name {
  font-family: var(--ssh-font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--ssh-ink);
  margin: 0;
}
.ssh-cert-sub {
  font-size: 14px;
  color: var(--ssh-muted);
  margin: 0;
  line-height: 1.4;
}
.ssh-cert-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ssh-teal);
  margin-top: 6px;
}
.ssh-cert-view svg { flex-shrink: 0; }

.ssh-cert-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--ssh-muted);
  margin: 0;
  padding-top: 8px;
}
.ssh-cert-footnote--highlight {
  font-size: 16px;
  font-weight: 600;
  color: var(--ssh-ink);
  background: linear-gradient(135deg, #e6f7fa 0%, #d0eff4 100%);
  border: 1px solid rgba(28,152,171,.25);
  border-left: 4px solid var(--ssh-teal);
  border-radius: 10px;
  padding: 16px 24px;
  margin-top: 32px;
}

/* ── Regulatory section ── */
.ssh-reg-section {
  background: #fff;
  padding: 0 0 10px;
  text-align: center;
}
.ssh-cc-heading2 {
  font-family: var(--ssh-font-head);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--ssh-ink);
  margin: 0 0 12px;
}
.ssh-cc-sub2 {
  font-size: 15px;
  color: var(--ssh-muted);
  margin: 0 auto 40px;
  max-width: 580px;
  line-height: 1.65;
}

.ssh-reg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
@media (max-width: 860px) {
  .ssh-reg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ssh-reg-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
}

.ssh-reg-card {
  background: var(--ssh-soft);
  border: 1px solid var(--ssh-line);
  border-radius: 14px;
  padding: 24px 20px 28px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.ssh-reg-card:hover {
  border-color: var(--ssh-teal);
  box-shadow: 0 4px 16px rgba(28,152,171,.1);
}
.ssh-reg-title {
  font-family: var(--ssh-font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--ssh-teal);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ssh-line);
}
.ssh-reg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ssh-reg-list li {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
  padding: 6px 0;
  border-bottom: 1px solid var(--ssh-line);
}
.ssh-reg-list li:last-child { border-bottom: none; }


/* ── PDF Viewer Modal ── */
html.ssh-modal-open { overflow: hidden !important; }

.ssh-pdf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}
.ssh-pdf-overlay[hidden] { display: none; }

.ssh-pdf-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 960px;
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  overflow: hidden;
}
.ssh-pdf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ssh-line);
  flex-shrink: 0;
}
.ssh-pdf-modal-title {
  font-family: var(--ssh-font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--ssh-ink);
  margin: 0;
}
.ssh-pdf-modal-actions { display: flex; align-items: center; }
.ssh-pdf-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  border: none !important;
  padding: 4px;
  cursor: pointer;
}
.ssh-pdf-close:hover { background: none !important; }
.ssh-pdf-close svg { display: block; stroke: #374151; }

.ssh-pdf-frame-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 16px;
  background: #f3f4f6;
  user-select: none;
  -webkit-user-select: none;
}
.ssh-pdf-loading {
  text-align: center;
  padding: 40px;
  color: var(--ssh-muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  .ssh-pdf-overlay { padding: 0; }
  .ssh-pdf-modal { border-radius: 0; height: 100vh; max-width: 100%; }
}
