.custom-certificates-carousel {
    position: relative;
    width: 50%;
}

.custom-certificates-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: transparent;
}

.custom-certificates-slides {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: transparent;
}

.custom-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.custom-slide.active {
    opacity: 1;
    z-index: 1;
}

.custom-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Стили для кнопок навигации */
.custom-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.custom-nav-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.custom-next-button {
    right: 10px;
}

.custom-prev-button {
    left: 10px;
}

.custom-nav-button svg {
    color: #333;
}

/* Стили для точек пагинации */
.custom-dots-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    z-index: 10;
}

.custom-dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-dot.active {
    background-color: #333;
    transform: scale(1.2);
}

/* Адаптивные стили */
@media (max-width: 992px) {
    .custom-certificates-carousel {
        width: 100%;
    }

    .custom-nav-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .custom-nav-button {
        width: 36px;
        height: 36px;
        display: none;
    }
}