/* Certificates page.
   Hero block matches PrivacyPolicy.css / Downloads.css so the page sits inside
   the existing corporate-page family rather than introducing a second style. */

.slide {
  position: relative;
  overflow: hidden;
  display: flex;
  height: 80vh;
  justify-content: center;
  align-items: center;
}

.slide img {
  height: 100%;
  width: calc(100% - 20px);
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 10px;
  z-index: 0;
}

.slide-text {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  z-index: 2;
  align-items: center;
  padding: 0 20%;
  text-align: center;
}

.slide-text h1 {
  font-weight: 600;
  font-size: 60px;
  line-height: 150%;
  text-transform: uppercase;
  color: var(--white-text-Color);
}

.certificates-section {
  max-width: 1200px;
  padding: 40px 20px 60px;
  margin: auto;
}

.certificates-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #002366;
}

.certificates-intro {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.7;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.certificate-card {
  background-color: #ECEDF3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
}

.certificate-thumb {
  background: #fff;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.certificate-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.certificate-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.certificate-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-Color);
  margin: 0;
}

.certificate-issuer {
  font-weight: 500;
  margin: 0;
}

.certificate-dates {
  font-size: 0.875rem;
  opacity: 0.75;
  margin: 0;
}

.certificate-desc {
  line-height: 1.6;
  margin: 0;
}

.certificate-download {
  margin-top: auto;
  align-self: flex-start;
  background-color: var(--primary-Color);
  color: #fff;
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
}

.certificate-download:hover,
.certificate-download:focus-visible {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .slide-text {
    padding: 0 8%;
  }

  .slide-text h1 {
    font-size: 32px;
  }

  .certificates-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
