/* certificates.css — Certificate grid page styling */

.certificates-section {
  padding: 2rem 5% 5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  border-color: rgba(26, 58, 42, 0.15);
}

.cert-card:hover::before {
  opacity: 1;
}

.cert-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.cert-card:hover .cert-icon-wrapper {
  background: rgba(232, 160, 32, 0.1);
  border-color: var(--accent);
}

.cert-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cert-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-issuer::before {
  content: '\f19d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.9rem;
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--accent);
}

.cert-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cert-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.cert-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cert-link:hover {
  color: var(--accent-dark);
}

/* Certificate CTA */
.cert-cta {
  background: var(--bg-soft);
  padding: 5rem 5%;
  text-align: center;
  margin-top: 2rem;
}

.cert-cta-inner {
  max-width: 580px;
  margin: 0 auto;
}

.cert-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

@media (max-width: 580px) {
  .certificates-section {
    grid-template-columns: 1fr;
  }
}
