
body {
      font-family: "Josefin Sans";
      margin: 0;
      padding: 0;
      background: #ffffff;
    }

    .carousel-wrapper {
      position: relative;
      overflow: hidden;
      padding: 20px;
    }

    .carousel {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      gap: 30px;
      scroll-behavior: smooth;
      padding-bottom: 10px;
    }

    .cert-card {
      flex: 0 0 auto;
      scroll-snap-align: center;
      max-width: 250px;
      height: auto;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
      position: relative;
      background: rgb(255, 255, 255);
    }

    .cert-card img {
      width: 94%;
      height: 100%;
      object-fit: cover;
    }

    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.3);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s;
    }

    .cert-card:hover .overlay {
      opacity: 1;
    }

    .overlay a {
      background: #007BFF;
      padding: 10px 16px;
      border-radius: 8px;
      color: white;
      text-decoration: none;
    }

    .nav-btns {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 10px;
    }

    .nav-btns button {
      padding: 10px 20px;
      font-size: 16px;
      border: none;
      border-radius: 1px;
      background: #ffffff;
      color: white;
      cursor: pointer;
      transition: background 0.3s;
    }

    .nav-btns button:hover {
      background: #dddddd;
    }

    /* Mobile tweak */
    @media (max-width: 480px) {
      .cert-card {
        width: 85vw;
        height: auto;
      }
    }


