body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}

header {
    background-color: #222;
    color: white;
    padding: 30px;
}

.section {
    padding: 40px;
}

h2 {
  margin-bottom: 40px;
  font-weight: 700;
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cert-card {
  background: white;
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
}

.cert-button {
  background-color: #4CAF50;
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: default;
  margin-bottom: 15px;
  user-select: none;
}

.cert-button:hover,
.cert-button:focus {
  background-color: #45a049;
  outline: none;
}

.cert-card img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  object-fit: contain;
  max-height: 350px;
}

/* Responsive */
@media (max-width: 900px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .cert-card {
    width: 90%;
    max-width: 350px;
  }
}

footer {
  margin: 40px 0;
  color: #666;
  font-size: 0.9rem;
}

.cert-card img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  object-fit: contain;
  max-height: 350px;
  transition: transform 0.3s ease; /* smooth transition */
  cursor: pointer; /* indicates interactivity */
}

.cert-card img:hover {
  transform: scale(1.1); /* zoom in 10% */
  box-shadow: 0 6px 20px rgba(0,0,0,0.3); /* slightly stronger shadow on hover */
}

/* Existing .cert-card img hover */
.cert-card img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  object-fit: contain;
  max-height: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cert-card img:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Modal styling */
.modal {
  display: none;  /* stays hidden on load */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);

  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.close {
  position: fixed;
  top: 25px;
  right: 35px;
  background: transparent;
  border: none;
  font-size: 50px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  z-index: 1100;
}

.close:hover {
  color: #ff4c4c;
}