.hero {
  position: relative;
  width: auto;
  /* margin:  0 30px 10px 30px; */
  height: 90vh;
  background-image: url("../img/certificate/SLIDER\ IMAGE\ FOR\ CERTIFICATE.png"); /* 🔥 same image */
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

/* dark to transparent gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 30%,
    rgba(0, 0, 0, 0.2) 55%,
    rgba(0, 0, 0, 0) 75%
  );
}

/* text */
.hero-content {
  position: relative;
  z-index: 2;
  padding-left: 80px;
  color: #fff;
}

.hero-content h1 {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-content p {
  font-size: 18px;
  color: #e5e7eb;
}

.hero-content span {
  color: #f7941d;
  font-weight: 600;
}

/* ✅ RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
    background-position: center;
    /* margin:  0 10px 10px 10px; */
  }

  .hero-content {
    padding-left: 24px;
  }

  .hero-content h1 {
    font-size: 28px;
  }
}


/* CERTIFICATE SECTION */
.certificate-section{
  padding: 40px 20px;
  background: #fff;
}

.certificate-head{
  text-align: center;
  margin-bottom: 40px;
}

/* reuse site style */
.small-title{
  color:#f7941d;
  font-weight:600;
  position:relative;
  padding-left:40px;
  font-size: 24px;
}

.small-title::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:30px;
  height:2px;
  background:#f7941d;
  transform:translateY(-50%);
}

/* GRID */
.certificate-grid{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:30px;
}

/* CARD */
.certificate-card{
  border:1px solid #ddd;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
  transition: box-shadow .3s ease;
}

.certificate-card:hover{
  box-shadow:0 10px 28px rgba(0,0,0,0.15);
}

/* IMAGE */
.certificate-img{
  height:260px;
  overflow:hidden;
  background:#f5f5f5;
  position: relative;
  cursor: pointer;
}

/* soft overlay */
.certificate-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* zoom indicator */
.zoom-indicator {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  border-radius: 20px;
  opacity: 0;
  transition: all 0.3s ease;
}

/* DESKTOP hover */
.certificate-card:hover .certificate-img::before,
.certificate-card:hover .zoom-indicator {
  opacity: 1;
}

.certificate-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  transition: transform .4s ease;
}

/* 🔥 HOVER ZOOM */
.certificate-card:hover .certificate-img img{
  transform: scale(1.25);
}

/* TITLE BAR */
.certificate-title{
  background:#f2f2f2;
  padding:12px 14px;
  font-size:14px;
  font-weight:600;
  width: 100%;
  text-align: center;
}

/* Remove download button styles (deleted) */

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  animation: modalZoom 0.35s ease;
}

@keyframes modalZoom {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close {
  position: fixed;
  top: 20px;
  right: 24px;
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}


/* RESPONSIVE */
@media(max-width:992px){
  .certificate-grid{
    grid-template-columns: repeat(3,1fr);
  }
}

@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
  }

  .close {
    top: 14px;
    right: 16px;
    font-size: 32px;
  }
}

@media(max-width:480px){
  .certificate-grid{
    grid-template-columns: 1fr;
  }
}
