/* Стили для слайдов */
.certs_examples .slick-slide {
    transition: transform 0.5s ease, opacity 0.5s ease;
    box-sizing: border-box;
    display: flex !important; /* Важно: используем flex для центрирования */
    align-items: center;
    justify-content: center;
}

/* Контейнер для изображения */
.certs_examples .slick-slide > div {
    padding: 10px;
    height: 100%;
    width: 100%; /* Занимаем всю ширину слайда */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для изображений внутри слайдов */
.certs_examples .slick-slide img {
    width: auto !important; /* Автоматическая ширина */
    max-width: 90% !important; /* 90% от ширины контейнера */
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Центрирование по горизонтали */
}
/* Стили для кастомных стрелок */
.slick-custom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.slick-custom-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slick-custom-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slick-custom-arrow svg {
    width: 100%;
    height: 100%;
    color: #333;
    transition: all 0.3s ease;
}

.slick-custom-arrow:hover svg {
    color: #007bff;
}

/* Позиционирование стрелок */
.slick-prev.slick-custom-arrow {
    left: 30px !important;
}

.slick-next.slick-custom-arrow {
    right: 30px !important;
}

/* Адаптивность для стрелок */
@media (max-width: 1024px) {
    .slick-prev.slick-custom-arrow {
        left: 20px !important;
    }

    .slick-next.slick-custom-arrow {
        right: 20px !important;
    }
}

@media (max-width: 768px) {
    .slick-prev.slick-custom-arrow {
        left: 15px !important;
    }

    .slick-next.slick-custom-arrow {
        right: 15px !important;
    }

    .slick-custom-arrow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .slick-prev.slick-custom-arrow {
        left: 10px !important;
    }

    .slick-next.slick-custom-arrow {
        right: 10px !important;
    }

    .slick-custom-arrow {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 360px) {
    .slick-prev.slick-custom-arrow {
        left: 8px !important;
    }

    .slick-next.slick-custom-arrow {
        right: 8px !important;
    }

    .slick-custom-arrow {
        width: 28px;
        height: 28px;
    }
}

.certs_examples .slick-prev:not(.slick-custom-arrow),
.certs_examples .slick-next:not(.slick-custom-arrow) {
    display: none !important;
}

/* Показываем только кастомные кнопки */
.certs_examples .slick-prev.slick-custom-arrow,
.certs_examples .slick-next.slick-custom-arrow {
    display: block !important;
}

/* Убираем псевдоэлементы у дефолтных кнопок */
.certs_examples .slick-prev:before,
.certs_examples .slick-next:before {
    display: none !important;
    content: '' !important;
}

/* Состояние disabled */
.slick-custom-arrow.slick-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.slick-custom-arrow.slick-disabled:hover {
    transform: translateY(-50%) !important;
}

.slick-custom-arrow.slick-disabled:hover svg {
    color: #333 !important;
}