/* ===== Certificates Common Style ===== */
.ctd-certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 40px 0;
  }
  
  .ctd-certificate-frame {
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    border: 2px solid #d4af37; /* gold tone */
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .ctd-certificate-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    pointer-events: none;
  }
  
  .ctd-certificate-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }
  
  .ctd-certificate-inner {
    text-align: center;
  }
  
  .ctd-certificate-inner img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
  }
  
  .ctd-certificate-title {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.3px;
  }
  
  /* ===== Carousel Enhancements ===== */
  .ctd-certificates-carousel {
    width: 100%;
    padding: 50px 0;
    position: relative;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    color: #d4af37;
    transition: color 0.3s ease;
  }
  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    color: #333;
  }
  
  .swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.7;
  }
  .swiper-pagination-bullet-active {
    background: #d4af37;
    opacity: 1;
  }
  
  /* ===== Responsive ===== */
  @media (max-width: 768px) {
    .ctd-certificate-inner img {
      height: 200px;
    }
  }