.certificates-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
  }
  
  .certificates-carousel {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
  }
  
  .carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 30s linear infinite;
    width: calc(250px * 24); /* Double the content for seamless looping */
  }
  
  .certificate-item {
    min-width: 250px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .certificate-item:hover {
    transform: translateY(-5px);
  }
  
  .certificate-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #f8f8f8;
    padding: 1rem;
  }
  
  .certificate-info {
    padding: 1rem;
    text-align: center;
  }
  
  .certificate-info h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #2c3e50;
  }
  
  .certificate-info p {
    margin: 0.3rem 0;
    color: #7f8c8d;
    font-size: 0.9rem;
  }
  
  .view-btn {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
  }
  
  .view-btn:hover {
    background: #2980b9;
  }
  
  .carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .nav-prev, .nav-next {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #3498db;
    transition: color 0.3s;
  }
  
  .nav-prev:hover, .nav-next:hover {
    color: #2980b9;
  }
  
  .pagination-dots {
    display: flex;
    gap: 0.5rem;
  }
  
  .pagination-dots span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bdc3c7;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .pagination-dots span.active {
    background: #3498db;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-250px * 12)); /* Move by half the width */
    }
  }
  
  /* Pause animation on hover */
  .certificates-carousel:hover .carousel-track {
    animation-play-state: paused;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .carousel-track {
      animation: scroll 20s linear infinite;
    }
    
    .certificate-item {
      min-width: 200px;
    }
  }

  .pdf-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .pdf-popup-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .pdf-popup-container {
    width: 90%;
    max-width: 900px;
    height: 90vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }
  
  .pdf-popup-overlay.active .pdf-popup-container {
    transform: scale(1);
  }
  
  .pdf-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .pdf-popup-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
  }
  
  .pdf-popup-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #333;
  }
  
  @media (max-width: 768px) {
    .pdf-popup-container {
      width: 95%;
      height: 80vh;
    }
  }