.expert-credentials {
  color: #252a27;
  border-top: 1px solid #e3ded6;
  padding-block: 42px;
  scroll-margin-top: 85px;
}

.about-page .expert-credentials h2 {
  color: #123e34;
  font-size: clamp(27px, 3vw, 36px);
  text-align: left;
  margin: 0 0 22px;
}

.expert-credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 35px;
  align-items: start;
}

.expert-credentials p {
  font-size: 15px;
  line-height: 1.65;
  margin: 10px 0;
}

.expert-certificates { min-width: 0; }

#cert-viewport {
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

#cert-viewport::-webkit-scrollbar { display: none; }

#cert-track {
  display: flex;
  gap: 18px;
  width: max-content;
  align-items: start;
}

.cert-card {
  width: 200px;
  max-width: 75vw;
  flex: none;
  margin: 0;
}

.cert-card button {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.3;
  padding: 5px;
  border: 3px solid #d4c5ac;
  background: #fffdf7;
  box-shadow: 0 2px 6px #0000000d;
  overflow: hidden;
  cursor: zoom-in;
}

.cert-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.cert-card figcaption {
  font: 12px/1.5 Arial, sans-serif;
  margin: 10px 0;
}

#cert-status { font-size: 13px; }

#cert-dots, .cert-controls {
  display: flex;
  justify-content: center;
}

#cert-dots { gap: 9px; margin-top: 15px; }
#cert-dots[hidden], .cert-controls[hidden] { display: none; }

#cert-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #c9a778;
  border-radius: 50%;
  background: #f1e1cd;
  cursor: pointer;
}

#cert-dots button[aria-current="true"] {
  background: #a77724;
  border-color: #a77724;
}

.cert-controls { gap: 14px; margin-top: 8px; }

.cert-controls button {
  border: 0;
  background: transparent;
  color: #123e34;
  font-size: 13px;
  min-height: 36px;
  min-width: 36px;
  cursor: pointer;
}

#cert-dialog {
  width: min(1100px, 95vw);
  max-height: 94dvh;
  border: 0;
  padding: 44px 15px 15px;
  background: #fffaf1;
}

#cert-dialog::backdrop { background: #000c; }
#cert-dialog img { width: 100%; height: 75dvh; object-fit: contain; }

#cert-close {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 30px;
  border: 0;
  background: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  .expert-credentials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .expert-credentials { padding-block: 30px; }
  .cert-card { width: 190px; }
}
