/*
==========================================
---------------- Certifications Page Layout ----------------
==========================================
*/
.certifications-page main { background: #fff; }
.certifications-page .page-hero {
  min-height: 0;
  background: radial-gradient(ellipse at 84% 0, #20487970, transparent 58%), #0b172a;
}
.certifications-page .page-hero-content { padding-block: 48px; }
.certifications-page .page-hero h1 { font-size: clamp(2.4rem, 5.3vw, 4.6rem); }
.certifications-page .page-hero-content > p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 20px;
  color: #b4c6de;
  font-size: 1rem;
}
.cert-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 25px 5px;
}
.cert-view-toolbar .section-label { margin: 0 0 3px; color: #2563eb; }
.cert-collection-count { color: #64748b; font-size: .9rem; }
.cert-view-toggle {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 5px;
  border: 1px solid #dce5ef;
  border-radius: 13px;
  background: #edf2f8;
}
.cert-view-toggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #52647a;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.cert-view-toggle button[aria-pressed="true"] {
  background: #244c7c;
  box-shadow: 0 3px 8px #0b172a18;
  color: #fff;
}
.cert-view-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cert-view-toggle button:focus-visible,
.cert-archway button:focus-visible,
.cert-archway-stage:focus-visible { outline: 3px solid #3b82f6; outline-offset: 5px; }

/*
==========================================
---------------- Archway Gallery ----------------
==========================================
*/
.cert-archway[hidden],
.certificate-section[hidden] { display: none; }
.cert-archway { padding-top: 20px; background: #fff; }
.cert-archway-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(350px, 39vw, 495px);
  overflow: hidden;
  background: #fff;
  perspective: 1500px;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}
.cert-archway-stage.is-dragging,
.cert-archway-stage.is-dragging .cert-archway-card { cursor: grabbing; }
.cert-archway-glow {
  position: absolute;
  bottom: 31px;
  left: 19%;
  width: 62%;
  height: 32px;
  border-radius: 50%;
  background: #62809f;
  filter: blur(19px);
  opacity: .13;
  pointer-events: none;
}
.cert-archway-track { position: absolute; inset: 0; pointer-events: none; }
.cert-archway-card {
  position: absolute;
  top: 49%;
  left: 50%;
  width: min(460px, 35vw);
  aspect-ratio: 1054 / 814;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d5e0ec;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 15px 35px #193c6520;
  color: #14243b;
  cursor: grab;
  font: inherit;
  text-align: left;
  pointer-events: auto;
  backface-visibility: hidden;
  will-change: transform;
}
.cert-archway-card[aria-current="true"] {
  border-color: #8cc4ff;
  box-shadow: 0 20px 45px #193c6529, 0 0 0 1px #8cc4ff30;
}
.cert-archway-card img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.cert-archway-card[aria-hidden="true"] { pointer-events: none; }
.cert-archway-coming {
  display: grid;
  place-content: center;
  min-height: 100%;
  padding: 11%;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fbff, #eef4fa);
  text-align: center;
}
.cert-archway-coming::before {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  top: -23%;
  right: -18%;
  border: 22px solid var(--certificate-accent, #2563eb);
  opacity: .07;
  transform: rotate(28deg);
}
.cert-archway-coming__mark,
.cert-archway-coming strong,
.cert-archway-coming small { position: relative; }
.cert-archway-coming__mark {
  margin-bottom: 15px;
  color: var(--certificate-accent, #2563eb);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 850;
  letter-spacing: -.09em;
}
.cert-archway-coming strong { color: #10243e; font-size: clamp(1.3rem, 2.6vw, 2rem); }
.cert-archway-coming small {
  justify-self: center;
  margin-top: 17px;
  padding: 7px 11px;
  border: 1px solid #d8e3ef;
  border-radius: 999px;
  color: #64748b;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.cert-archway-card--html5 { --certificate-accent: #e16b41; }
.cert-archway-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-block: 22px;
  color: #64748b;
  font-size: .8rem;
}
#cert-archway-hint span { margin-left: 7px; color: #2563eb; }
.cert-archway-key-hint { text-align: right; }
.cert-archway-stepper { display: flex; align-items: center; gap: 22px; }
.cert-archway-stepper button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #6684a65c;
  border-radius: 50%;
  background: #f1f5fa;
  color: #173e6a;
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, transform 150ms;
}
.cert-archway-stepper button:hover { border-color: #7fa9df; background: #e2edfb; transform: translateY(-1px); }
#cert-archway-position {
  min-width: 64px;
  color: #193c65;
  font-size: .85rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/*
==========================================
---------------- Selected Certificate Details ----------------
==========================================
*/
.cert-details-section { padding-block: 48px 70px; border-top: 1px solid #d9e3ef; background: #eef2f7; }
.cert-spotlight { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 90px); }
.cert-spotlight-main { min-width: 0; }
.cert-spotlight-category { margin-bottom: 10px; color: #2563eb; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.cert-spotlight h2 { margin-bottom: 17px; color: #0b172a; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.15; letter-spacing: -.04em; }
#cert-spotlight-description { color: #52647a; line-height: 1.8; }
#cert-spotlight-link { margin-top: 24px; gap: 18px; }
.cert-spotlight-build { align-self: start; padding: 25px 28px; border: 1px solid #dce5ef; border-radius: 14px; background: #fff; }
.cert-spotlight-build .section-label { margin-bottom: 12px; }
.cert-spotlight-build p { color: #52647a; font-size: .94rem; line-height: 1.65; }
.cert-spotlight-build p + p { margin-top: 8px; }
.cert-spotlight-build a { color: #2563eb; font-weight: 700; }

/*
==========================================
---------------- Restored Certificate Grid ----------------
==========================================
*/
.certificate-section { padding-block: 56px 95px; }
.certificate-card--planned .certificate-preview { background: #f4f7fb; }
.certificate-placeholder--javascript { --planned-accent: #2563eb; }
.certificate-placeholder--html5 { --planned-accent: #e16b41; }
.certificate-placeholder--javascript,
.certificate-placeholder--html5 {
  position: relative;
  overflow: hidden;
  border: 2px dashed color-mix(in srgb, var(--planned-accent) 30%, #dbe6f3);
  background: linear-gradient(135deg, color-mix(in srgb, var(--planned-accent) 8%, #fff), #fff);
}
.certificate-placeholder--javascript::after,
.certificate-placeholder--html5::after {
  content: "";
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  right: -17%;
  top: -28%;
  border: 18px solid var(--planned-accent);
  opacity: .07;
  transform: rotate(28deg);
}
.certificate-placeholder-mark { position: relative; z-index: 1; color: var(--planned-accent); font-size: 2.2rem !important; letter-spacing: -.08em; }
.certificate-placeholder--javascript > span:not(.certificate-placeholder-mark),
.certificate-placeholder--html5 > span:not(.certificate-placeholder-mark),
.certificate-placeholder--javascript small,
.certificate-placeholder--html5 small { position: relative; z-index: 1; }
.certificate-placeholder--javascript > span:not(.certificate-placeholder-mark),
.certificate-placeholder--html5 > span:not(.certificate-placeholder-mark) { color: #10243e; }

@media (max-width: 700px) {
  .certifications-page .page-hero-content { padding-block: 32px; }
  .cert-view-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 20px 0; }
  .cert-view-toolbar .section-label { font-size: .64rem; }
  .cert-collection-count { font-size: .76rem; }
  .cert-view-toggle button { gap: 5px; padding: 8px 10px; font-size: .78rem; }
  .cert-view-toggle svg { width: 15px; height: 15px; }
  .cert-archway-stage { height: clamp(300px, 84vw, 410px); perspective: 900px; }
  .cert-archway-card { width: min(460px, 76vw); border-radius: 12px; }
  .cert-archway-navigation { grid-template-columns: 1fr auto; gap: 10px; padding-block: 18px; }
  .cert-archway-key-hint { display: none; }
  .cert-archway-stepper { gap: 12px; }
  .cert-archway-stepper button { width: 38px; height: 38px; }
  .cert-spotlight { grid-template-columns: 1fr; gap: 25px; }
  .cert-details-section { padding-block: 32px 48px; }
  .cert-spotlight-build { padding: 22px; }
  .certificate-section { padding-block: 36px 55px; }
}
@media (max-width: 380px) { .cert-view-toggle { align-self: flex-end; } }
@media (prefers-reduced-motion: reduce) {
  .cert-archway-card { will-change: auto; }
  .cert-view-toggle button, .cert-archway-stepper button { transition: none; }
}
