.certifications-section {
  position: relative;
  padding: 100px 20px;
  background-color: #FFFFFF; /* ✅ Solid blue background */
  text-align: center;
  color: #fff;
  overflow: hidden;


}

/* Fade to white above */
.certifications-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, rgba(28, 85, 198, 0) 0%, #fff 100%);
}

.certifications-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(28, 85, 198, 0) 0%, #fff 100%);
  z-index: 2;
}

/* ------------------ Section Title ------------------ */
.section-title {
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  background-color: #FFFFFF;
  background: linear-gradient(90deg, #e10c5d, #f9681c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

/* ------------------ Filter Buttons ------------------ */
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-btn {
  background: transparent;
  border: 2px solid #f74670;
  color: #f74670;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #e10c5d, #f9681c);
  z-index: -1;
  transition: width 0.4s ease;
}

.filter-btn:hover::before {
  width: 100%;
}

.filter-btn:hover {
  color: #fff;
  transform: scale(1.05);
}

.filter-btn.active {
  background: linear-gradient(90deg, #e10c5d, #f9681c);
  color: #fff;
  border: none;
}

/* ------------------ Grid ------------------ */
.certifications-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* ------------------ Certificate Cards ------------------ */
.cert-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: scale(1);
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: block;
}

.cert-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.cert-card:hover img {
  transform: scale(1.06);
}

/* ------------------ Info ------------------ */
.cert-info {
  padding: 15px;
  text-align: center;
}

.cert-info h4 {
  font-size: 1.1rem;
  margin: 8px 0 4px;
  background: linear-gradient(90deg, #e10c5d, #f9681c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.cert-info p {
  font-size: 0.9rem;
  color: #444;
}

/* ------------------ View Overlay ------------------ */
.cert-card a {
  position: relative;
  display: block;
}

.view-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(241, 79, 115, 0.92);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.cert-card:hover .view-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------ Hide Animation ------------------ */
.cert-card.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 768px) {
  .filter-buttons {
    gap: 10px;
  }
  .filter-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  .cert-card img {
    height: 200px;
  }
  .certifications-section {
    padding: 60px 16px;
  }
}