

/* Certificate starts here */

.certificates {
  padding: 4rem 1rem;
  /* max-width: 1200px; */
  margin: auto;
  background-color: #ffffff;

}

.certificates h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color:#0b5ed7;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.5rem;
}

/* Card */
.certificate-card {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(65, 67, 68, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.certificate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(65, 67, 68, 0.08);
}

.certificate-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.certificate-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #43454617;
}

.certificate-content h3 {
  margin: 0 0 0.5rem;
  color: #0b5ed7;
  font-size: 1.1rem;
}

.certificate-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
  color: #000000;
}

.view-btn{
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  color: #000000;
  background-color: #0495f527;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: bold;
}

.view-btn:hover {
  opacity: 0.9;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 95%;
  max-height: 95%;
}

.modal .close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .certificate-card img {
    height: 160px;
  }
}

.more-equip-btn-wrapper{
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.more-equip-btn{
  display: inline-block;
  padding: 10px 60px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  background-color: #30aa18;
  color: white;
}
/* Certificate ends here */