.cert-carousel-wrapper-db8ae1f5 {
    position: relative;
    padding: 0 40px;
    --items-per-view: 3; /* Default, overridden by Elementor control */
    --gap: 20px;
}

.cert-carousel-db8ae1f5 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    gap: var(--gap);
    padding: 15px 5px;
    scroll-behavior: smooth; /* CSS smooth scroll */
}

.cert-carousel-db8ae1f5::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.cert-item-db8ae1f5 {
    flex: 0 0 calc((100% - (var(--gap) * (var(--items-per-view) - 1))) / var(--items-per-view));
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item-db8ae1f5:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-5px); /* Add a slight lift animation on hover */
}

.cert-image-db8ae1f5 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px; /* Spacing between image and title */
    flex-grow: 1; /* Pushes title to the bottom if images are different heights */
}

.cert-image-db8ae1f5 img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.cert-title-db8ae1f5 {
    font-weight: 600;
    color: #333;
    margin-top: 0; /* Changed from auto to 0, relies on flex-grow of image */
}

.cert-btn-db8ae1f5 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.cert-btn-db8ae1f5:hover {
    background: #f5f5f5;
    transform: translateY(-50%) scale(1.05); /* Slight scale on arrow hover */
}

.cert-btn-prev-db8ae1f5 { left: 0; }
.cert-btn-next-db8ae1f5 { right: 0; }
