/* ================= Certificate Section ================= */
.certificate-section {
  padding: 60px 0;
  background: #f8f9fc;
}

.certificate-section .auto-container {
  max-width: 100%;
  padding: 0 20px;
}

/* ================= Certificate Section Title ================= */
.certificate-section .sec-title {
  text-align: center;
  margin-bottom: 35px;
}

.certificate-section .sec-title .title {
  color: #0066ff;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}

.certificate-section .sec-title h2 {
  font-size: 35px;
  font-weight: 700;
  margin-top: 8px;
  color: #1c1c1c;
}

/* ================= Certificate Carousel ================= */
.certificate-carousel {
  margin-top: 20px;
}

/* Control spacing between items */
.certificate-carousel .owl-stage {
  display: flex;
}

.certificate-carousel .owl-item {
  padding: 2px !important;
}


/* ================= Certificate Card ================= */
.certificate-item {
  width: 100%;
}

.certificate-item .inner-box {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e6eaf2;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Certificate Image wrapper */
.certificate-item .image {
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

/* Certificate Image default */
.certificate-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.3s ease;
}

/*  Certificate Zoom on hover effect */
.certificate-item .inner-box:hover img {
  transform: scale(1.15);
}

/* ================= Text ================= */
.certificate-item .lower-content {
  padding: 14px;
  text-align: center;
}

.certificate-item .lower-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #1c1c1c;
}

/* ================= Dots ================= */
.certificate-carousel .owl-dots {
  margin-top: 20px;
  text-align: center;
}

.certificate-carousel .owl-dot {
  width: 9px !important;
  height: 9px !important;
  background: #cfd6e3 !important;
  border-radius: 50%;
  margin: 0 4px;
}

.certificate-carousel .owl-dot.active {
  background: #0066ff !important;
}

/* ================= Certificate Lightbox ================= */
.certificate-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.certificate-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.certificate-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.certificate-lightbox.active img {
  transform: scale(1);
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}


/* ================= Responsive ================= */
@media (max-width: 768px) {
  .certificate-carousel .owl-item {
    padding: 10px !important;
  }

  .certificate-item img {
    height: 150px;
  }

  .certificate-section .sec-title h2 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .certificate-item img {
    height: 130px;
  }

  .certificate-section .sec-title h2 {
    font-size: 22px;
  }
}