.site-certs {
  --sc-bg: #0b0b0b;
  --sc-card: rgba(255, 255, 255, 0.035);
  --sc-line: rgba(255, 255, 255, 0.1);
  --sc-muted: rgba(255, 255, 255, 0.62);
  --sc-accent: #fda228;
  background:
    linear-gradient(180deg, rgba(253, 162, 40, 0.1) 0%, transparent 32%),
    var(--sc-bg);
  color: #fff;
  padding: 5rem 1.5rem;
  font-family: Montserrat, Sfprodisplay, Arial, sans-serif;
}

.site-certs--page {
  position: relative;
  min-height: 70vh;
  padding: 7.5rem 1.5rem 5rem;
  overflow: hidden;
}

.site-certs--page::before {
  content: "";
  position: absolute;
  inset: -10% auto auto 50%;
  width: min(720px, 90vw);
  height: 380px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(253, 162, 40, 0.16), transparent 68%);
  pointer-events: none;
}

.site-certs__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.site-certs__head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.site-certs__eyebrow {
  margin: 0 0 0.6rem;
  color: var(--sc-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-certs__title {
  margin: 0 0 0.75rem !important;
  color: #fff !important;
  font-family: Montserrat, Sfprodisplay, Arial, sans-serif !important;
  font-size: clamp(1.85rem, 3.2vw, 2.7rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.15 !important;
}

.site-certs__sub {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--sc-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.site-certs__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.35rem;
  min-height: 42px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--sc-accent);
  color: #111 !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(253, 162, 40, 0.22);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-certs__linkedin:hover {
  background: #ffb84d;
  color: #111 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(253, 162, 40, 0.3);
}

.site-certs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.site-certs__grid--page {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.site-certs__card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--sc-line);
  border-radius: 18px;
  background: var(--sc-card);
  overflow: hidden;
  text-decoration: none;
  color: #fff !important;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

a.site-certs__card:hover {
  border-color: rgba(253, 162, 40, 0.5);
  background: rgba(253, 162, 40, 0.07);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.site-certs__media {
  aspect-ratio: 16 / 10;
  min-height: 180px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--sc-line);
  background: #111;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.site-certs__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  display: block;
}

.site-certs__badge {
  color: var(--sc-accent);
  font-size: 2.2rem;
}

.site-certs__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem 1.25rem 1.35rem;
  flex: 1;
}

.site-certs__name,
.site-certs h2.site-certs__name,
.site-certs h3.site-certs__name {
  margin: 0 !important;
  color: #fff !important;
  font-family: Montserrat, Sfprodisplay, Arial, sans-serif !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em;
}

.site-certs__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.site-certs__desc {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-certs__cta {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--sc-accent);
  font-size: 0.86rem;
  font-weight: 700;
}

a.site-certs__card:hover .site-certs__cta {
  color: #ffb84d;
}

.site-certs__empty {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
  .site-certs {
    padding: 3.5rem 1.1rem 5.5rem;
  }

  .site-certs--page {
    padding: 6.5rem 1.1rem 4.5rem;
  }

  .site-certs__grid--page {
    grid-template-columns: 1fr;
  }
}
