/* Certifications carousel - inherits theme font & colors (Astra / Elementor vars) */
.certcpt-wrap {
  --cc-accent: #000000;
  --cc-bg: #ffffff;
  --cc-text: #333333;
  --cc-heading: #000000;
  --cc-muted: #6b6b6b;
  --cc-line: #e5e5e5;
  --cc-heading-font: inherit;
  --cc-body-font: inherit;
  --cc-gap: 24px;
  --cc-d: 3;
  --cc-t: 2;
  --cc-m: 1;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--cc-body-font);
  color: var(--cc-text);
}
.certcpt {
  --cc-n: var(--cc-d, 3);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
@media (max-width: 1024px) { .certcpt { --cc-n: var(--cc-t, 2); } }
@media (max-width: 767px)  { .certcpt { --cc-n: var(--cc-m, 1); } }

.certcpt-wrap *, .certcpt-wrap *::before, .certcpt-wrap *::after { box-sizing: border-box; }

.certcpt-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 12px 8px 18px;
  margin: -12px -8px -18px;
}
.certcpt-viewport::-webkit-scrollbar { display: none; }

.certcpt-track {
  display: flex;
  gap: var(--cc-gap);
}
.certcpt-slide {
  flex: 0 0 calc((100% - (var(--cc-n) - 1) * var(--cc-gap)) / var(--cc-n));
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
}

/* ---------- Certificate card ---------- */
.certcpt-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 38px 30px 28px;
  background: var(--cc-bg);
  color: var(--cc-text);
  border: 1px solid var(--cc-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  font-family: inherit;
}
/* inner double border like a real certificate */
.certcpt-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px double var(--cc-accent);
  pointer-events: none;
}
/* subtle watermark tint */
.certcpt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}
.certcpt-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--cc-accent);
  z-index: 1;
}
.certcpt-corner.tl { top: 16px; left: 16px;  border-right: 0; border-bottom: 0; }
.certcpt-corner.tr { top: 16px; right: 16px; border-left: 0;  border-bottom: 0; }
.certcpt-corner.bl { bottom: 16px; left: 16px;  border-right: 0; border-top: 0; }
.certcpt-corner.br { bottom: 16px; right: 16px; border-left: 0;  border-top: 0; }

.certcpt-label {
  position: relative;
  z-index: 1;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cc-muted);
  font-weight: 600;
  margin-bottom: 14px;
}

/* seal / icon */
.certcpt-seal {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--cc-accent);
  box-shadow: 0 0 0 5px var(--cc-bg), 0 0 0 7px var(--cc-accent), 0 6px 14px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cc-accent);
  overflow: hidden;
  padding: 14px;
}
.certcpt-seal img,
.certcpt-icon {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;
}

.certcpt-title {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  padding: 0;
  font-family: var(--cc-heading-font);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--cc-heading);
}

.certcpt-divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 70%;
  margin: 14px auto;
}
.certcpt-divider span { flex: 1; height: 1px; background: var(--cc-accent); opacity: .7; }
.certcpt-divider i { width: 7px; height: 7px; background: var(--cc-accent); transform: rotate(45deg); display: block; }

.certcpt-content {
  position: relative;
  z-index: 1;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--cc-text);
  flex: 1 1 auto;
  margin-bottom: 18px;
}
.certcpt-content p { margin: 0 0 .6em; }
.certcpt-content p:last-child { margin-bottom: 0; }

.certcpt-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 10px;
  min-width: 55%;
  border-top: 1px solid var(--cc-accent);
}
.certcpt-date {
  font-size: .95rem;
  font-weight: 600;
  color: var(--cc-heading);
}
.certcpt-date-caption {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cc-muted);
  margin-top: 3px;
}
/* push footer to the bottom even if there is no content */
.certcpt-divider + .certcpt-footer { margin-top: auto; }

/* ---------- Navigation ---------- */
.certcpt-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.certcpt-nav[hidden] { display: none; }
.certcpt-btn {
  all: unset;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--cc-accent);
  color: var(--cc-accent);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.certcpt-btn:hover,
.certcpt-btn:focus-visible { background: var(--cc-accent); color: #fff; }
.certcpt-btn:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 2px; }

.certcpt-dots { display: flex; align-items: center; gap: 8px; }
.certcpt-dot {
  all: unset;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cc-accent);
  opacity: .28;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.certcpt-dot.is-active { opacity: 1; transform: scale(1.25); }

@media (max-width: 767px) {
  .certcpt-card { padding: 34px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .certcpt-btn, .certcpt-dot { transition: none; }
}


/* ---------- Heading, stats, tabs ---------- */
.certcpt-main-title {
  margin: 0 0 36px;
  text-align: center;
  font-family: var(--cc-heading-font);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 400;
  color: var(--cc-heading);
}
.certcpt-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 64px;
  margin-bottom: 40px;
  text-align: center;
}
.certcpt-stat-n {
  font-family: var(--cc-heading-font);
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  color: var(--cc-heading);
}
.certcpt-stat-l { font-size: 14px; margin-top: 6px; color: var(--cc-text); }

.certcpt-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.certcpt-tab {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid #cfcfcf;
  background: transparent;
  color: var(--cc-heading);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  transition: background .2s, color .2s, border-color .2s;
}
.certcpt-tab:hover { border-color: var(--cc-accent); }
.certcpt-tab.is-active { background: var(--cc-accent); border-color: var(--cc-accent); color: #fff; font-weight: 600; }
.certcpt-tab:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 2px; }
.certcpt-panel[hidden] { display: none; }

/* ---------- List layout ---------- */
.certcpt-rows {
  background: var(--cc-bg);
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  padding: 8px 32px;
}
.certcpt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid #ebebeb;
}
.certcpt-row:last-child { border-bottom: 0; }
.certcpt-row-left {
  flex: 0 0 170px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cc-muted);
}
.certcpt-row-main { flex: 1 1 340px; min-width: 0; }
.certcpt-row-title {
  margin: 0;
  padding: 0;
  font-family: var(--cc-heading-font);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--cc-heading);
}
.certcpt-row-issuer { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--cc-text); margin-top: 4px; }
.certcpt-row-sub { font-size: 14px; line-height: 1.6; color: var(--cc-text); margin-top: 6px; }
.certcpt-row-sub p { margin: 0 0 .5em; }
.certcpt-row-sub p:last-child { margin-bottom: 0; }
.certcpt-row-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--cc-heading);
  border: 1px solid var(--cc-accent);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.certcpt-row-link:hover { background: var(--cc-accent); color: #fff; }

@media (max-width: 767px) {
  .certcpt-rows { padding: 4px 20px; }
  .certcpt-row-left { flex-basis: 100%; }
  .certcpt-stats { gap: 18px 36px; }
}
